這是什麼? 程式週記主要內容如下: Gihub project 介紹: 主要會貼一些github,但是會盡量寫上一些有用的評語(或是我容易想到的關鍵詞)幫助以後查詢 網路文章心得: 會寫些心得,強迫自己閱讀. “程式週記”並且定期週期性更新. 大部分內容在我的twitter都會有,這邊只是將一些簡單的心得與感想註解一下. 本週摘要 這個禮拜花了太多的時間再弄自己的jekyll blog.本來想migrate到hugo去,但是因為hugo import jekyll有太多的問題(即便已經改了一些)還是有不少部分需要改. 後來還是把jekyll 3.0產生的樣板相關問題修復,也另外換了一個主題來使用. 好像jekyll又可以再戰十年? 本週持續NSQ的學習,先透過上週的Disk queue來改寫之前寫過的PubSub. Go Introduction Go 1.6 Go 1.6剛在02/17正式release,Brad Fitzpatrick馬上在GopherCon India發表了這篇.裡面不僅僅有介紹了Go 1.6的功能也有順便預告了Go 1.7 ~ 1.10的產品規劃.當然也有一些笑話很有趣. PlanB: a distributed HTTP and websocket proxy inspired by Hipache 透過Redis來架設的HTTP websocket proxy,可以拿來好好學習其中的作法與應用方式. Google Cloud Vision API on Golang 在上週Google 總算開放Cloud Vision API給一般人申請使用,這篇文章有講解該怎麼做,當然也有提供他寫好的Golang Package GOPHERCON INDIA 2016 Summary 2016最早開始的Gopher Con 有不少關於Go 1.6的相關議題. nsq的使用與一部份介紹 最近幾週都在學習NSQ,這篇文章有不少的探討從技術層面跟他的設計理念都有提到. Open-Source Phishing Toolkit 網路釣魚的工具給企業做測試與訓練用的. Handling Database Migrations in Go 由gophish網路釣魚的package公司發的DB migration 介紹文.裡面使用的是goose,但是比較多人推薦migrate goose: A database migration tool DB migration tool,可以在無痛的狀況下變更你得資料庫schema.並且查看有無任何問題也可以快速的rollback. A Go library for carefully refactoring critical paths and code. lightweight port from github scientist 精簡版的scientist用在golang上面. gago is a genetic algorithm written in Golang 基因演算法的golang套件,會隨機產生數個解法,評估後挑選最適解法. Building binary executables for Android in Go 在Android系統上面跑go的excution,由於Go 1.6支援x86的Android系統,這篇文章的應用又更多了. HOW WE BUILT UBER ENGINEERING’S HIGHEST QUERY PER SECOND SERVICE USING GO Uber 如何透過Go來打造高效率的查詢系統.不少架構與內容的討論. Python gRPC Practical Tutorial — Magic That Generates Code 這篇主要講解如何使用grpc.很詳細地講解從protobuf開始,到一些簡單的應用. Ruby scientist: A Ruby library for carefully refactoring...
Issue hugo import jekyll is very easy to import your blog post from jekyll to hugo. However it has some issue, original you have change you permallink ex like: permallink: /:title/ permallink: /:categories/:title/ I just file a issue#1887 on Hugo project, detail as follow: I try to use it to convert my blog from jekyll which run over decade and contain over 1000+ posts. I found it will force to add “url” in every post which is /year/month/dat/postname. for ex: --- date: 2016-02-18T00:00:00Z description: "" tags: [] title: '[Visual Studio] Using Visual Studio 2015 to remote debugging C++ on linux' url: /2016/02/18/vs-debug-linux-exe/ --- However it will conflict with my configuration of “permallink”, I found it force to store the same “url” no matter your jekyll “permallink”. Here should be two approach of “url” generation rule: Load config from jekyll and parse “permallink” configuration to apply it. Just not use “url”,...