2012年11月8日

git command 心得

git annotate file (相當於git blame -c file)
可以秀出file中每一行code的修改人與修改日期。

git stash
將目前所有修改的檔案暫存 (不含新產生的檔案)
建議用git stash apply取回暫存檔,避免使用git stash pop (取出後刪除該stash檔)取回檔案時產生衝突,解完後仍有問題而無法找回。

2012年1月1日

以Java抓取SQLite (for eclipse)

透過Java抓取SQLite資料(for eclipse)

參考


關於步驟(3)的安裝 DTP (Data Tools Platform)
可以直接由eclipse中的"Install New Software"頁面下載:
Work with: Indigo - http://download.eclipse.org/releases/indigo
找到 Data Tools Platform Enablement Extender SDK
安裝即可

步驟(8)是Driver定義DB檔的相對位置,格式為jdbc:sqlite:/path,例如:
jdbc:sqlite:/DRIVE:/dirA/dirB/dbfile