Recent Posts

Git 筆記

從 branch merge 回 master, 導致 pom.xml conflict, 想 reset pom.xml 因為這不是我要 merge 的內容. (stackoverflow) git reset pom.xml git checkout pom.xml 想清掉 untrack fil...

Basic Perl 筆記

單引號的 \n 不會換行, 雙引號內的 \n 會換行 print("line1\nline2\n\n\n\n"); print('line3:abc\nabc'); d:\>test.pl input string:abc input number:4 abcabcabcabc d:\>test...

Scrum Q&A

Q: 我們用用 SCRUM 想幹嘛?  A: 我們都曾經遇過在某個專案已經花費很多時間跟人力做得一團亂. 但在某個機緣下少少幾個人展現強大的戰鬥力把待辦清單做完, 成為膾炙人口的佳話. 這個佳話也成為團隊員日後美好的回憶. 會有佳話是因為:  待辦事項清單清楚 有人排出優先順序, 先...

User Story Template

Reference Thomas Tseng User story format: “As a (user type), I want to (goal), so that (reason).” Attributes of good user story: I...

compound interest

Reference http://shooeugenesea.github.io/compoundinterest.html Description 不想工作, 最好投資可以每年幫你賺 200萬, 就是在不工作的情況下還是可以賺200萬. 怎麼做呢? 我先做個網頁, 用複利的方式去替你算每年的目標是多少...

Android APP: GameVolumn

Reference Android SDK Tutorial: Working With The SeekBar Android: Enable click event on empty activity area How to create Transparent Activity in Android...

Fight with Bitmap OOM problem.

Reference Managing Bitmap Memory Supporting Multiple Screens BrightImage in Github BrightImage in Google Play How To Pick Image From Gallery In Android A...

split big log file

Description 一個 log 檔 3G 怎麼看? 不想裝工具, 就只能把檔案切小 Dependencies JDK7 apache commons io Codes public static void main(String[] params) throws IOException ...

python http download cassandra

Reference http://www.apache.org/dyn/closer.cgi?path=/cassandra/2.0.4/apache-cassandra-2.0.4-bin.tar.gz http://docs.python.org/3/library/urllib.request.htm...

python compress/decompress file

Reference http://docs.python.org/3/library/shutil.html#module-shutil Description 把 d:/nginx-1.4.3 壓縮到 d:/ziptarget/test.zip 再把 d:/ziptarget/test.zip 解壓...

JDK6 to JDK7 => Basic IO

Reference Lesson: Basic I/O 讀寫小檔案 如果檔案比較小可以使用 Files 提供的 read/write. package test;

JDK6 to JDK7 => API Enhancements

Description 打算把系統的執行環境從 JDK6 升級到 JDK7, 整理一下有哪些可用. 比較期待的部分是語法, NIO2, G1. 這頁是整理語法的部分. Reference Enhancements in Java SE 7 Java Language Enhancements Poin...

python 處理 json

Description 現在很常用 json 當成儲存資料的格式, 用 java 的話需要導入 library. python 則是內建 json 的 module, 只要操作原生的資料結構就行了. 很方便. Reference http://docs.python.org/3/tutorial/in...