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)
[…]
Latest Entries
- Getting things done.
- Free city broadband quietly shelved
- The truth comes out about Omnidrive.
- Big coffee
- Know your plastics
- (L)CHINA campaign
- Capitalism will lead us to death
- This sums it up…
- Another documentary - “Brits get rich in China”
- Interesting documentary on China’s democratic primary school.
Archives
Categories
- ankoder (1)
- business (8)
- environment (2)
- personal (10)
- politics (5)
- ruby on rails (1)
- travel (2)
- Uncategorized (9)
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.