Archive for February, 2007
In Prototype.js, there’s a handy function $F to get the value of a form element.
However it doesn’t work well with a group radio buttons. The argument of $F is the id of the element, and since id is unique, we can’t use the name of the radio group to get the value, which is essentially […]
For multi-dimension Hash, .merge will replace the values as a 2 dimension hash.
>> {”number” => {”1″ => “one”,”2″ => “two”}}.merge({”number” => {”3″ => “three”}})
=> {”number”=>{”3″=>”three”}}
We needed the keep the hash values and merge complex hash together that is loaded from YAML.
Solution?
class Hash
def recursive_merge(h)
[…]
HK Web & Tech Meetup Index
HK Ruby on Rails User Group
My Tumblr blog
Latest Entries
- Hong Kong’s “Groupons”
- Hong Kong Startup Summary 2009
- Online Video Platform successes in 2009
- Want to put the upcoming HK IT Events to your blog?
- Gravatar experiment
- Ankoder @ Web Direction South
- Google Wave users are socialising in Hong Kong
- Last 6 Months = 200% on Ankoder.
- Introduction to cloud computing.
- I am planting a tree
Archives
- August 2010
- December 2009
- October 2009
- September 2009
- March 2009
- January 2009
- December 2008
- November 2008
- September 2008
- August 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- November 2007
- July 2007
- June 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- February 2006
- January 2006
- December 2005
Categories
- ankoder (7)
- australia (3)
- business (19)
- china (7)
- conference (8)
- environment (2)
- facebook (1)
- firefox (1)
- git (2)
- github (2)
- hangzhou (1)
- hong kong (9)
- interface (1)
- internet (2)
- javascript (1)
- jobboard (1)
- olympics (1)
- osx (1)
- personal (19)
- politics (6)
- railscamp (1)
- rorcraft (7)
- ruby on rails (7)
- scriptaculous (1)
- startup (4)
- sydney (1)
- taiwan (2)
- travel (5)
- trend (2)
- trends (1)
- twitter (1)
- Uncategorized (12)
- unfuddle (1)
- usability (2)
Twitter Updates
Friends blog
Read Write Sleep
雨樂文康匯
852 Signal
Enjoy Rails
Gang Lu
Web Wednesday
I am the founder of RoRCraft Ltd., a web consultancy firm that develops usable and speedy web applications for our clients.
Based in Sydney, I travel to Hong Kong and HangZhou China to meet with my team regularly. I love exploring new technologies and business ideas that helps making our world a better place.

An online video conversion tool. It allows everyone to freely convert their videos for ipods, mobiles and flash.
Rails Job
Job board for Ruby and Rails developers.
