Joe Hsu

@Hector

Joined on Jul 3, 2018

  • 4457f36af7a2b27547d2a48351975f94 Nemo 功能 說明 Column 3 Column 4 Nemo models 提供語音識別、自然語言理解和語音合成等模組功能 Text
     Like  Bookmark
  • CMyEdit.h #pragma once #include "afxwin.h" class CMyEdit : public CEdit { public: CMyEdit(); // standard constructor ~CMyEdit();
     Like  Bookmark
  • 在使用 s3 plugin 時候, 遇到 java error message 時候, 在 log file 會印出多行的 error stack trace. 可以使用 codec multiline 來解決, 把這些 error message 合併成一個 log message. 問題: 使用 multiline 後, add_field 和 @metadata 的資料會在每個 log file 的最後一筆 message 被清空, 導致讀不到設定的值. github 有人提出, 但是目前還沒把解決方法更新. https://github.com/logstash-plugins/logstash-input-s3/pull/173 解決: 自己安裝 ruby 使用 gem 從 source code 自己加入網友提供的程式碼 build 一版新的 logstash-input-s3-3.5.1.gem
     Like  Bookmark
  • # Sagas pattern ###### tags: `design pattern` 用在 microservices 間的 transaction model 如何維持 consistency 參考來源: [Using sagas to maintain data consistency in a microservice architecture by Chris Richardson](https://www.youtube.com/watch?v=YPbGW3Fnmbc) [TOC] ## ACID is not option 在一個使用者購物情境中要保證, 購買商品的總額要 <= 使用者可用金錢餘額, 並建立新訂單. ### monolithic 在傳統的 monolithic 架構, 直接建立一個 transaction 在database 確認使用者的金錢餘額並建立新訂單. 符合 ACID 準則. ### microservice 在 microservice 架構中就是要把各種服務 loose Coupling. 因為每個 service 都會有自己的
     Like  Bookmark
  • # Bitcoin.conf 設定 ###### tags: `bitcoin` ## 安裝 ```shell= sudo add-apt-repository ppa:bitcoin/bitcoin sudo apt update -y sudo apt install bitcoind ``` ## 設定 config 需要在自行建立 bitcoin.conf檔案 ```shell= /home/ubuntu/.bitcoin/bitcoin.conf ``` ## 啟動: * 監聽主鏈 ```shell= bitcoind ``` * 監聽測試鏈 ```shell= bitcoind -testnet ``` ## 關閉: * 主鏈 ``` bitcoin-cli -rpcuser=user -rpcpassword=password -rpcconnect=192.168.1.2 -rpcport=8333 stop ``` * 測試鏈 ``` bitcoin-cli -rpcuser=user -rpcpassword=password -rpcc
     Like  Bookmark
  • # How to rewrite, a bit at a time ###### tags: `ddd` ###### 參考: [How to rewrite, a bit at a time - Sabrina Leandro - DDD Europe 2019](https://tinyurl.com/y4jnmhso) ## 如何開始計劃 有些專案像 monolithic 系統, 把很多功能放在一起, 沒有把物件做很清楚的抽象化. 或者是區分成太多的 feature, 抽象化的物件太細過於複雜. ![](https://i.imgur.com/tpJ78vy.png) ### How to start it? 對於這些現有的複雜系統, 要如何使用 DDD 的技巧來改善呢? 首先要針對幾個問題, 來判別改善的時機跟方法是否正確? ### Is it the right time? 當目前的 product 專案對於 business 是有價值的, 是值得花時間投資在上面去改善它. ### Is it the right reason? 確保自己有良好的理由去改善一
     Like 1 Bookmark