chuyeow's pings
Sort By:
Setting up svnsync-ed (mirrored) SVN repositories on Ubuntu (part 1 of 2)This is a 2-part journal on setting up migrating and upgrading a Subversion repository, and then using svnsync to mirror the newly created repository. (Part 2 hasn’t been written yet!)Initial setupEver since Subversion 1.4 was released, I’d been eying the new svnsync tool because we had a …
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 …
This is a 2-part journal on setting up migrating and upgrading a Subversion repository, and then using svnsync to mirror the newly created repository. (Part 2 hasn’t been written yet!)Initial setupEver since Subversion 1.4 was released, I’d been eying the new svnsync tool because we had a single repository that was not, erm, really backed up (we had daily server …
I’ve been writing a database importer plugin for some “legacy” production databases (well, not really legacy, but the schema differs from ActiveRecord conventions) with the intention of scheduling a cron job to run the imports. Why not connect the Rails app to the legacy databases? Hmm, let’s see:the records don’t have to be up to date (so I can …
Ugh, I wish I found this earlier: Tab Completion in IRb. I only went googling for this after I realized I have been tabbing to get auto-completion on script/console for a bit but it never sunk in that tab-completion wasn’t ever working. Useful stuff, go set it up if you haven’t already.
I like to keep my links in my Rails applications that make AJAX requests degradable in non-JavaScript browsers so I often find myself doing this:link_to_remote 'Show details', { :url => { :action => 'show', :id => post.id } }, { :href => url_for({ :action => 'show', :id => post.id }) }This allows me to get HTML links like so:<a …
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 …
The Favicon validator ensures that you have a correctly created favicon. If you’re wondering why your favicon works in some browsers but not in others (like IE), it probably has an incorrect format.I also learnt from validating my favicons that you can actually place more than 1 version of the favicon image into the .ico file (it seems to be a container for these images …
I was at the 2nd WebSG (Web Standards Group Singapore) meetup (read about the recap of the meetup) on Wednesday (28 Feb 2007) where I hosted a short session on some Firefox tips. It’s all thanks the urgings and encouragement of Lucian (the organizer) that I finally got down to publicly sharing my Firefox knowledge ever since I wrote Firefox Secrets.I was asked to blog …
I saw a Lifehacker blog post today in my RSS reader on this Firefox extension, took one look at the screenshot, and went “Woooooow, give me some of that“. Aforementioned Firefox extension: Tab Groups extension for Firefox.As its name suggests, it allows you to group your tabs in, er, groups. Forget the verbiage, just look at the screenshot:This extension is a …
At yesterday’s WebSG meetup, someone asked me how you can have 2 different user sessions in Firefox, and I was unable to answer as I never had the need for 2 different user sessions (though I imagine it’d be nice for testing certain types of interactive web applications).Anyway, I found the answer today after some Googling - Lifehacker’s “Manage …
After a longer than desired struggle with getting sshd to accept my public key, I think a blog post is in order to remind myself not to repeat the same mistakes. Here’s how you should go about debugging your SSH public key authentication woes:Getting more debug info when connecting with your ssh client: Add a ‘-v’ option to your ssh command (e.g. ssh …
Yup I switched to Apple Mail from Thunderbird a few months back, primary reason being back then I was barely able to run my developer applications on 512MB of RAM (Apple Mail runs lighter than Thunderbird, unfortunately). It’s comforting to find that there is an IMAP-IDLE plugin for Apple Mail (Thunderbird got its IDLE support way back in 2004.)What’s IDLE? Well, …
It was a few weeks later than planned, but finally (actually, about 3 days ago), we‘re up on the News.com.au Travel section.No thanks to a CSS bug in IE6, we were delayed by a week. The last thing we expected was a CSS bug hanging IE6 but yeah, well, it was. At least now my conscience is clear - everything works nicely in IE6, IE7, Firefox, Safari and Opera.
Not too long ago I was asked to use hook up the Mac Mini that was collecting dust in our office to our HP Deskjet printer (HP Deskjet 1280 to be exact) and have it function as a “print server” of sorts (we have since replaced it with a NAS with print server functionality, which subsequently broke - that’s how long this post has been sitting in my drafts …
sudo chown -R dick /instead ofsudo chown -R dick ./You won’t be able to su - or sudo to chown the ownerships back properly because the sudo executable needs to be owned by root. Some people should never have unfettered sudo rights… like me.
Got an email today that disputed web page sizes I reported (diplomatically telling me to get my facts right):Regarding the size, if you save the homepage as webpage complete you can get the size of the iframes files individually.<teenage-angst>Ick… Learn to use Firebug or a Web Page Analyzer. Or anything else that does better than saving the page from a web …
If you’re doing web development or design of any sort, you have to check out Joe Hewitt’s talk on Firebug at Yahoo! - download the movie or watch it online, just make sure you watch it.If you aren’t already using Firebug, this will convince you. If you are, you’ll probably find some gems in there that you didn’t know before. I didn’t know …
I just got back from BarCamp Singapore a few hours ago. I was only vaguely familiar with the Rules of BarCamp prior to this, and actually only found out about the event from Choon Keat (of RssFwd fame - check it out if you haven’t already) 2 days ago.Anyway, props to the organizers for putting this together (especially the free BarCamp t-shirts from Yahoo!). Personally, …
RubyGems has been updated to 0.9.1 and is a required update due to a security issue. The blog announcement reveals more:The most important change in RubyGems 0.9.1 is that RubyGems no longer allows files to be installed outside of the installation directory.It’s a required update as the RubyForge gem repository will soon disallow installation of gems if you have an …



…