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)

2018年8月4日 星期六

ubuntu 下 edirect 中的 xtract 需手動下載

執行 xtract 時出現以下訊息

Unable to locate xtract executable. Please execute the following:

  ftp-cp ftp.ncbi.nlm.nih.gov /entrez/entrezdirect xtract.Linux.gz
  gunzip -f xtract.Linux.gz
  chmod +x xtract.Linux

這個 ftp-cp 還要先這樣安裝:

sudo apt install ncbi-entrez-direct


2018年7月19日 星期四

windows 上產生聚光燈效果的軟體


Mac 上有出名的 Mouseposé , win 平台上則有 pointerfocus 提供類似功能,請至以下連結下載

http://www.pointerfocus-for-presenters.com/index.html