2015年10月16日 星期五

[Homebrew] Install a specific version of a homebrew package/formula (運用 Homebrew 安裝特定版本的套件)



Ubuntu 和 Debian 有好用的 apt、dpkg,Fedora 和 CentOS 也有 yum、rpm,OS X 則有非內建的 Homebrew,方便到有分支專門開發維護 Linux 上可以使用的 Linuxbrew!

這邊分享較繁複的部分:安裝特定版本的套件,以安裝 2.8.4 版的 Redis 舉例。

2015年10月15日 星期四

2015年8月30日 星期日

[Tool] Useful Chrome Extensions (好用的 Chrome 擴充工具)


使用 Chrome 多年,記錄並分享幾款好用的 Extension。



一般


 Bookmark Search  ()
網頁忘記存到哪,可以運用關鍵字搜尋所有書籤。



分頁小幫手

2015年5月22日 星期五

[NodeJs] Solution of Redis runnig out of memory when using Kue (使用 Kue 時 Redis 記憶體空間不足解法)



將碰到的情況整理分享,下次碰到可以少花些時間到處爬。



與 Redis 相關的環境

1. Sails Session 存放在 Redis。
2. Kue (處理 job queue 的 node module) 使用 Redis。



事由

這次正式機發生 Redis 的記憶體空間不足,
導致使用者無法登入,因為 Session 無法存入 Redis。

錯誤訊息
ERR command not allowed when used memory > 'maxmemory'


2015年4月28日 星期二

[Scrum] Observation & Suggestion (導入之觀察與建議)




團隊從二月初導入 Scrum 專案管理方式,到現在將近三個月,

Run 了 6 個 Sprint 共 10 個 Story,
Success 了 9 個 Story,
Fail 了 1 個 Story,
現在正在 Run 第 7 個 Sprint 兩個 Story。






什麼是 Scrum?Scrum 的本質、精神是什麼?

可以參考以下兩篇:The Scrum GuideScrum是甚麼?


2015年1月15日 星期四

[Testing] Black Box Theory (測試黑盒子理論)


最近工作中使用到的後端架構分成了三個部分:Controller、Service、ThirdPartyService。



像是把車送修,

我 / Controller Testing:
    壞的車 ➔ 判斷、選擇給哪一廠修 ➔  黑盒子  ➔ 好的車
    Controller Input ➔ Controller (Basic Conditions) ➔  Service Black Box  ➔ Controller Output

跟我接洽的人 / Service Testing:
    壞的法拉利 ➔ 怎麼修、修哪些零件 ➔  黑盒子  ➔ 好的法拉利
    Service Input ➔ Service (Logic, Processes) ➔  Third Party Service Black Box  ➔ Service Output

掌管整個修車流程的人 / Third Party Service Testing:
    壞的零件 ➔ 請外面的修理師傅修 ➔  黑盒子  ➔ 好的零件
    Third Party Service Input ➔ Third Party Service (Third Party Library / API)
    ➔  Third Party Black Box  ➔ Third Party Service Output



之前寫測試要用黑盒子理論發現 SinonJS 這樣的東西,
覺得挺好用的,就來分享一下~

這篇只是簡單提到其中的 stub,有興趣的人再自行深入囉!


2015年1月6日 星期二

[Hook] Trigger Jenkins build/polling from Web hooks of old version GitLab (設定 GitLab Web hooks 觸發 Jenkins 事件)



前情提要

1. 在 GitLab 的 Web Hooks 中,有四種 event 可以選擇。
2. 在 Jenkins 中,build event trigger 和 polling event trigger 的差異在於,polling 會在檢查到有更新才 build。



GitLab