2018年10月24日 星期三

emacs 的 eshell 及 python 等各種 shell command 在 windows 10 無法正常輸出 utf-8 , 只要這樣作就OK…

這下標有內容農場的味道吧呵呵

開啟"控制台"中的"時鐘和區域"設定,"變更系統地區設定",勾選"Beta:..."選項,按"確定"


這樣就不用每次在那兒 chcp 65001了,而且 eshell 也可以正常執行並輸出 utf-8 囉

2018年10月21日 星期日

Stanford parser初探(3)--CoreNLP version 3.9.2(20181005)

相較於在 Stanford parser初探(2) 一文中,對於中文的處理略有增強


同時在4G記憶體的筆電上也能跑得動了,速度也大幅提升。

用英文測試一下,感覺也滿不錯。測試句為:

A 36-year-old pregnant woman was evaluated at 33 weeks of gestation because of newly diagnosed adenocarcinoma. One week earlier, severe pain in the lower back had developed; computed tomography revealed hypoattenuating hepatic lesions. Management decisions were made.


好 parser ,不 try 嗎?

2018年9月29日 星期六

以 email 送出 git diff (patch) 的方法

參 https://orgmode.org/worg/org-contribute.html#commit-messages

使用 git format-patch 產生 *.patch ,其中 * 會是個序號加上 commit 的註解訊息內容


2018年9月16日 星期日

github上有趣的專案

https://github.com/trending?since=monthly

來看我覺得比較有趣,有時會有些很無厘頭的專案,例如 "Windows 95 in Electron" 之類

https://github.com/trending?since=weekly

來看就有點 radical 了,看人囉

https://github.com/trending?since=daily

來看有時也滿好玩的,某些特定專案被衝高了讚數

其實比較正經點的做法,當然是搭配各種(自己拿手的)語言為條件來過濾。

像最近有個影片對影片翻譯(?!)的專案

改天再寫個介紹文。真的是很有趣




2018年8月31日 星期五

Install VS CODE on ubuntu 18.04 LTS

ref: https://qiita.com/shaching/items/69dfc000f13ff55dde99

to summarize:

  1. download *.deb from official site, for me it's "code_1.26.1-1534444688_amd64.deb"
  2. sudo apt install libgconf-2-4
  3. sudo apt --fix-broken install
  4. sudo dpkg -i code_1.26.1-1534444688_amd64.deb

2018年8月22日 星期三

windows 10 自動對時服務設定

參考這篇文章

不知為何預設值是手動

請執行 services.msc 來設定 windows time 為自動啟動,並執行之即可


2018年8月5日 星期日

windows上的無痛(?)caffe安裝

因為之前已經安裝過 tensorflow 了,所以變得很輕鬆,參 https://github.com/BVLC/caffe/tree/windows


  1. 先裝個 cmake (參 https://cmake.org/)
  2. git clone https://github.com/BVLC/caffe.git
  3. cd caffe
  4. git checkout windows
  5. 設定檔 build_win.cmd 中 set WITH_NINJA=0
  6. scripts\build_win.cmd
  7. pip install cmake ninja numpy scipy protobuf==3.1.0 six scikit-image pyyaml pydotplus graphviz
  8. copy the C:\Projects\caffe\python\caffe folder to your site_packages folder.(C:\Users\[你的名字]\AppData\Local\Programs\Python\Python35\Lib\site-packages)