用 JRuby 整合 Ruby 和 Java

, , , , at February 13th, 2008 by 小影

JRuby 是一個純 Java 下的 Ruby 實現。在 JVM 下執行的 Ruby 的移植性更好,而且可以讓 Ruby 直接使用 Java 的庫。今次我會介紹如何安裝和設定 JRuby ,並用它去呼叫現有的 Java RMI 。

Appjet – delight: del.icio.us for mobile

, , , , at February 4th, 2008 by 小影

現在用手機上網己經很方便,可是慣用了 del.icio.us ,自然會覺得手機的 bookmark 太陽春。用手機去 del.icio.us 嗎?每次也要下載全部 tags 又太慢。 剛剛在 Appjet 寫了個小軟件,可以用 user name 和 tags 去 search ,每次只返回一頁的結果,較適合手機用吧?有興趣的朋友請到 http://delight.appjet.net/ 看看。

在 Jboss Seam 中使用 PojoCache 和 Page Fragment Cache (2)

, , , , at February 3rd, 2008 by 小影

直接在 component 中使用 PojoCache 讓我們可以在物件的層次控制緩存,雖然這可以很強大和靈活,但如果每個物件都要特別地作緩存,那業務的源碼就會充滿著緩存代碼,難以維護。這時候我們可以用 Page Fragment Cache。

在 Jboss Seam 中使用 PojoCache 和 Page Fragment Cache (1)

, , , , at February 2nd, 2008 by 小影

實際的 Web Application 中,緩存 (cache) 是不可或缺的事。 JBoss Seam 當然也提供了多種緩存服務。在這系列的文中我會講講最高層,最易應用和最易理解的 PojoCache 以及 Page Fragment Cache 。

Rails plugin: i18n

, , , at June 6th, 2007 by 小影

An update from mod-i18n module. My first Ruby on Rails plugin. It is modified from Localization module. It do translation using YML based translation file, and choose language based on URL parameter. Installation script/plugin install http://mod-i18n.googlecode.com/svn/trunk/plugins/i18n/ 1. Create Language File Create a directory config/lang, under the directory, create yml files using the langugae name, e.g. ...