android, app, development at November 17th, 2009 by 小影
有用家發現 Agile Stock 不能在 Android 1.6 的 market 搜尋。
經過一番研究發現是因為軟件用 1.5 的 sdk built,缺少支援 support-screens = small screen size 的標記。本來害怕要同時 built 數個不同版本,但幸好 Android 沒有那麼笨。只要在 Eclipse 把 project 更新為 1.6 或以上 ,再在 AndroidManifest.xml 中指定 minSdkVersion=3 和 support-screens 後似乎就把問題解決了,而同一個 built 在 Android 1.5 上同樣可以執行 (當然,前提是我沒有使用 1.6/2.0 的 API)。
比想像中簡單,可以去睡了。
Posted in Tech | 1 Comment »
android, development, pattern at August 5th, 2009 by 小影
Problem
Your software has bugs, and you would like to notify users you have an update.
Forces
Android OS do not provides auto update for softwares, nor do they got iTunes on PC
Android Market, although tracking software versions and are available online, their API are not open to public
Solution
Build a web service that ...
Posted in Tech | No Comments »
bookmark, development, web at March 28th, 2008 by 小影
Abnormal (變態) - 其中一個他叫大家想的,是什麼是一份工作 (Job),什麼是你的事業 (Career),又什麼是你生命裏的召喚 (Call)。
網言不入罪,但會被開除 - Blogging is the best chance we have had in a while to overturn old hierarchies, giving voices to the voiceless and empowering the powerless. Individual blogs will come and go but the internet revolution will continue apace.
Martian Headsets - Joel 用火星人去講 Web ...
Posted in Tech | No Comments »
development, mysql, osx, rails at February 20th, 2008 by 小影
這幾天遇到奇怪的問題, rails 在 production server 中間中出現 500 error。看 server log 是 MySQL 的錯誤:Lost connection to MySQL server during query。奇怪在 Server 和 Rails 程式也看不到有甚麼錯處,refresh 之後問題又往往會消失。
找了遍 Google 發現這竟也算是個常見問題,原因是 MySQL 的 library 沒有更新或安裝齊全。在我的 OS X 10.5.2 中,我使用以下指令安裝 mysql 相關 library:
sudo port install rb-mysql
重新啟動 server 後問題似乎就解決了。
Posted in Tech | No Comments »
development, distributed-computing, DRb, java, rmi, ruby at February 16th, 2008 by 小影
DRb (Distributed Ruby) 是 Ruby 的 RPC。使用 DRb 我們可以經 TCP/IP 去使用遠端的物件。DRb 的運作方式跟傳統的 RPC 差不多,只是定義 Stub 和 Skeleton 都交給 Ruby 負責,遠端的客戶甚至不需任何有關類的定義,一切都動態地由 Ruby 完成了。
Posted in Tech | No Comments »