Android 開發環境安裝、設置 與 開發

HTC Desire 用到現在, 目前的需求大致都滿足了, 剩下的應該可以用 Python for Android (ASE: Android Scripting) 來補足.

不過手機都買了, 總是要研究看看該怎麼開發, 才不會太浪費, 所以第一步先來建立開發環境吧~

閱讀全文〈Android 開發環境安裝、設置 與 開發〉

Thunderbird 設定 IMAP 只保留最新10天的信件

Notebook 的硬碟爆掉, 查查看是哪個目錄吃最兇.

於根目錄尋找吃最多空間的指令:

  • cd /; du --exclude="proc" | sort -g -r | head

或者 在自己目錄下, 顯示佔用空間最多得前 10名:

  • cd; du | sort -g -r | head -10

閱讀全文〈Thunderbird 設定 IMAP 只保留最新10天的信件〉

我在 COSCUP 2010 演講的投影片 - 多國語系製作

有幸能在 COSCUP 2010 分享, 主題是: 不用Framework, 一天完成網站的多國語系製作.

主要是介紹一套歷史悠久的程式 - gettext, 然後能快速製作出網站的多國語系, 而且可以容納進任何一套 Framework 裡面, 到處都適用. 🙂

投影片於此: (此投影片為純文字版)

閱讀全文〈我在 COSCUP 2010 演講的投影片 - 多國語系製作〉

Git clone 出現 "remote: fatal: object xxx is corrupted" 修復

git clone ssh://example.com/project.git # 出現下述錯誤

error: git upload-pack: git-pack-objects died with error.
remote: fatal: object 161824656702683f2b9c06a3511143f56da8ee0a is corrupted
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.

git clone -v ssh://example.com/project.git

Initialized empty Git repository in /home/user/project/.git/
[email protected]'s password:
Server supports multi_ack_detailed
Server supports side-band-64k
Server supports ofs-delta
want 1dd602b6095d36e8c50bcc1335f7b6b2320ab9cd (refs/heads/master)
done
remote: fatal: object f3c8013acb933dc392e3ac2905901671141fbae1 is corrupted
error: git upload-pack: git-pack-objects died with error.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.

閱讀全文〈Git clone 出現 "remote: fatal: object xxx is corrupted" 修復〉