2007/7/31

新 Template Toolkit Plugin 兩則

Template::Plugin::Num2Word

在 TT2 裡面,很容易將數值轉換成「字」的 plugin。如: [% menu.size.to_word %]-items 由於,有時候 element 的 class name 需要針對其內容做一些配合,所以可能會生出 "five-items" "six-items" 這樣的 class name,如果在模版系統裡面沒有方便產生這些數字「字」的方法,那還真是傷腦筋啊。

Template::Plugin::Text::Greeking

這是讓你在 Template 裡可以產生假文的。在模版仍在設計階段時,有時候需要一些填版面的假文,是故為之。這東西其實還有另一個用處,因其可以調整要產生的長度,所以可以拿來進行視覺上的測試。看看自已所設計的版本,在裝載各種長度的內文時,都能夠保持一定的水準。

2007/7/28

massage: A SPA plugin for Rails

SPA Stands for Single Page Application, it's a concept that totally depends on AJAX. We just made an Rails controller extension that makes it so easy to do spa, it's called: massage. (We are really enjoying it when the name feels just right, aren't we.)

The massage project is now on Rubyforge. To try it, first you would need to install it as a Rails plugin like this:

script/plugin install http://massage.rubyforge.org/svn/trunk/

Then, in the controller that you want to make it work like SPA, add:

spa :only => [:index, :settings]    # or :except => [...]

This would make index and settings actions work just right for both xhr and non-xhr. Non-XHR would show the page just like it was, and it'll work if you change those calls to link_to to link_to_remote too. By default, it uses RJS to update an element with id "content" (better to be a div for best look). If you need to change it to, say, "my-spa-arena", you can say:

spa :only => [:index, :settings], :update_element => "my-spa-arena"

And of course, make sure there's is such an element inside your layout, otherwise RJS would just pop-up an error message.

massage project is still at bleeding edge, if you find it broken please contact us, you can leave comments here.

2007/7/11

Chatlino 0.10 Released

After months of development, we're very thrilled to release our humble work of this simple Rails Application: Chatlino. It's an OpenID-based Chatroom application. Please download Chatlino from Chatlino Google code project page, and give it a try.

Chatlino started as a sub-project of a production website YouHolder. It's an open source counter-part of the Chatroom component of YouHolder. We appreciate ICE Technology for providing this great opportunity to support the development of free software / open source projects, and to re-use our development results in those projects to make this fully-functional production web 2.0 website. It's a nice positive feedback between commercial websites and open-source projects that we'd like to see.

This initial release of Chatlino is by default, using Juggernaut as its push solution. You may re-configure it to use iPush, which dramaticly improves the performance of message delivery, and capacity. Please also visit Push4Free and ICE Technology for more information about iPush Technology.

This initial release is still in it's early, bleeding edge. Please don't hestitate to send us comments so we can improve it in the way you like. Or you can join our project development directly, to embrace all the pros of co-developing open source projects .

2007/7/3

Handlino暑期實習生已額滿

謝謝大家對我們工作室的興趣。經過一個月的面試,我們夏季的徵人活動在此告一個段落。

和多工作室會發展更多好用的open source軟體,也希望大家能多多參與。