chuyeow's pings
Sort By:
It looks like Cyril Mougel has translated my 2 latest posts to French: LotE #17 and #18. Thanks Cyril!
I’m a heavy tabbed browsing user - I have around 30 tabs open in my day-to-day Firefox profile all the time. Since the day Firefox 3 was released, I’ve noticed Firefox progressively getting slower with this particular Firefox profile (I use a different profile for web development). When it got to the point where changing ...
Here’s this week’s update of the important changes that have been happening on edge Rails. There were lots of performance patches this week, credit mostly due to the guys from …
See this.history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head4605 cd3576 svn2141 ls1701 ruby1308 cap21066 ss978 rake867 sshb688 rm635 matecap2 is just my alias for Capistrano 2 (I use both 1.x and 2.x, since I’m lazy to upgrade some old Rails applications, ss is my alias for script/server. sshb ...
Funniest bug report I’ve seen on the Rails issue tracker: http://dev.rubyonrails.org/ticket/10919. Be sure to read the comments, and the resolution:I appreciate that penis enhancements are the norm for most of the commenters here, but their use is definitely not widespread enough to justify fixing this.
Some notes on setting up a gateway server for deploying via Capistrano that I couldn’t find at the source.You can specify the user you want to use to login to your gateway server like so: set :gateway, 'deploy@deploy.example.com'. This logs in to your gateway server as the “deploy” user.You can specify an alternate SSH port ...
It’s been a slow week on the Rails trunk this week in terms of exciting changes.This week’s report covers changes from 18 Feb 2008 to 24 Feb 2008 (the day the corresponding Rails Env …
Juan Lupión wrote in to inform me that he’s also translating my Living on the Edge (of Rails) series of blog posts to Español. Thanks Juan!
This week’s report covers changes from 5th May 2008 to 11th May 2008 (the day the corresponding Rails Envy podcast was recorded).script/dbconsoleA script/dbconsole script has been added th …
Prior to the introduction of nested example groups in RSpec, I’d always felt that descriptions got a little unwieldy when trying to describe the different cases and disliked specifying the controller_name repeatedly. For example (and these are real examples from real projects at work, with actual code removed for conciseness):describe 'POST HotelDealsController#create …
It’s that time of the week again (every Wednesday for the overly observant, coinciding with the release of the Rails Envy podcast) for some choice updates of what changes have been happening on edge Rails. This week’s report covers changes from 4 Feb 2008 to 10 Feb 2008 (the day the Rails Envy podcast was ...
My fellow Rubyist at work, Arun Thampi, has released ActiveCouch, a Ruby library for CouchDB (if you don’t know what CouchDB is, read this). Check out the official blog announcement of ActiveCouch.ActiveCouch tries to be an ActiveResource and ActiveRecord (yes, there is even an ActiveCouch::Migration class for creating CouchDB views) equivalent for representing CouchDB …
I have a rather old Linksys WRT54G (v2.2) wireless router that used to disconnect rather frequently for no apparent reason. It is almost guaranteed to get disconnected when I go crazy with using Axel to download files.The worse part of the entire “router disconnected” thing is how it takes down my DSL connection (provided by ...
After overriding rescue_action_in_public in the ApplicationController to deal with ActiveRecord::RecordNotFound exceptions (a very common exception to rescue in the canonical ’show’ actions of your controllers), I decided to test it. I’ve been getting used to BDD with RSpec (and the Spec::Rails plugin), so I stumbled a bit when writing the spec.I finally …
Here’s another week of noteworthy updates on the Rails trunk. Thanks once again to the Rails Envy podcast for featuring my updates, and even bigger thanks to the Rails contributors and committers who make things happen.The company I work for, Bezurk (yeah we know some of you hate the name “Bezurk” - that’s going to ...
Another week of edge Rails changes, featured on the Rails Envy podcast. This weeks’ report covers changes from 21 Jan 2008 to 27 Jan 2008 (the day the Rails Envy podcast was recorded).Eage …
It’s another slow week (just 2 changes of note imho) after the release of the 1st Release Candidate (RC1) of Rails 2.1. Follow that link for installation instructions - though if you’re reading this blog post you probably don’t care! (because you’re, you know, “living on the edge”). Cheesiness aside, be sure to report any ...
Prototype’s Try.these is a really useful bit of code (though I doubt it sees much application outside of JavaScript libraries). I have this evil bit of code somewhere, for example:var results = Try.these( function() { return response.responseText.evalJSON(true); }, function() { return eval('(' + response.responseText + ')'); });Evilness personified in its evaled …
The Singapore MRT has to be one of the best public rail transport systems in the world (I fancy the Tokyo train/subway system as well - fare adjustment machines is one of those “since sliced bread” ideas), but they still have room to screw up in a Daily WTF-worthy way.This sign at Raffles Place MRT used to show train arrival times:It’s been there for about 3 …
Day 1 of RailsConf 2008 was basically tutorial day (schedule) and started with my colleague here with me, Arun, missing out on Yoga on Rails and me sleeping until the first tutorial session. Anyway, I snapped some photos while trying to remain the unobtrusive tourist.Here’s a shot of Portland Convention Center where it’s all happening:There’re ...



…