avatar

chuyeow's pings

Sort By:

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 …
chuyeow Posted by chuyeow User Menu on March 2, 2007 at redemption in a blog
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 …
chuyeow Posted by chuyeow User Menu on January 28, 2007 at redemption in a blog
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 …
chuyeow Posted by chuyeow User Menu on January 20, 2007 at redemption in a blog
Google Chart API looks quite useful. I’ve used Gruff to generate graphs before but this looks way easier (and much lighter on the server without all that ImageMagick magic!) I’ll have to play with it someday - if only I didn’t have to mess with those URL params!Well, Deepak Jois from singapore.rb (the local Ruby ...
chuyeow Posted by chuyeow User Menu on December 12, 2007 at redemption in a blog
The last time I wrote about ActiveRecord#to_json on edge Rails, it was missing some key functionality. For one, you couldn’t include any associations. Another thing was you couldn’t do something like this in your controller:@authors = Author.find(:all)render :json => @authors.to_json(:only => :name)Oh and did I mention it wasn’t emitting valid JSON by …
chuyeow Posted by chuyeow User Menu on October 10, 2007 at redemption in a blog
Note to self:When a table column has a default value, such as for the type_category column/attribute like so:t.string :type_category, :limit => 20, :nil => false, :default => 'tv'a new instance of your ActiveRecord model will try and set the defaults from the database. Meaning:Anime.new => #<Anime id: nil, type_category: "tv"...Courtesy of this in ActiveRecord::Base:def …
chuyeow Posted by chuyeow User Menu on September 19, 2007 at redemption in a blog
So it seems DHH was inspired by the Sexy Migrations plugin (which in turn was inspired by Hobo) and committedchangeset 6667.Now, you can do this:create_table :products do |t| t.integer :shop_id, :creator_id t.string :name, :value, :default => "Untitled" t.timestampsendSuccinct!
chuyeow Posted by chuyeow User Menu on May 7, 2007 at redemption in a blog
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 …
chuyeow Posted by chuyeow User Menu on March 10, 2007 at redemption in a blog
Yup, it’s that fast and simple, using Ferret, a Ruby port of Lucene (the de facto full text search engine written in Java) and the acts_as_ferret plugin, I added “Did you mean this?” functionality to a small Rails application (non-perma link) today rather quickly and painlessly.Adding full text search funtionality to your Rails applicationsInstall Ferret via …
chuyeow Posted by chuyeow User Menu on December 4, 2006 at redemption in a blog
Just go to the release announcement and major features blog post by DHH already!If you’re having trouble installing the Rails 2.0.1 gem, do a gem install rails -y --source http://gems.rubyonrails.orgNow that the obligatory link to the Rails 2.0 release announcement is done, I’d like to urge anyone with any interest in improving Rails or seeing ...
chuyeow Posted by chuyeow User Menu on December 8, 2007 at redemption in a blog
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.
chuyeow Posted by chuyeow User Menu on February 5, 2007 at redemption in a blog
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 …
chuyeow Posted by chuyeow User Menu on March 27, 2007 at redemption in a blog
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 …
chuyeow Posted by chuyeow User Menu on February 28, 2007 at redemption in a blog
I know I said I was going to try and keep the features in “a feature a day” to those not mentioned in popular places, but this feature is one of the few nicest features in Rails made by a contributor outside of the Rails core so I couldn’t resist mentioning it.First, an exampleclass CommentsController ...
chuyeow Posted by chuyeow User Menu on December 10, 2007 at redemption in a blog
So what exactly is new in Safari 3 (other than the big OMGWTFBBQ over Safari for Windows)? TUAW has the best writeup (with screenshots of course) of the new features in Safari 3 I’ve seen so far. Check it out if you’re lazy to try it out - I did install the beta and took it for a test drive, but was never much of a Safari user to recognize what exactly did change …
chuyeow Posted by chuyeow User Menu on June 13, 2007 at redemption in a blog
I haven’t been following Thunderbird development like I used to so I was presently surprised to see how far Thunderbird has come when I tried a beta of Thunderbird 2 a while back (of course, Thunderbird 2 has been released for over a week, but I’m still clearing a backlog of blog drafts).One of the things I noticed was how Gmail POP integration is baked right in …
chuyeow Posted by chuyeow User Menu on April 29, 2007 at redemption in a blog
Firefox 3, or Gran Paradiso, is really shaping up with some pretty cool new features being implemented in the recent months. That’s not including the cool FUEL (Firefox User Extension Library) JavaScript library that promises to make extension development a bajillion times more productive, Places for data storage, and the use of Cairo for graphics.The ...
chuyeow Posted by chuyeow User Menu on August 20, 2007 at redemption in a blog
If you’ve worked with JSON long enough in Rails, you’d probably have noticed that the JSON the convenient Object#to_json method spits it is not strictly JSON-compliant (according to the RFC 4627, which states that object keys should be “strings”, and “strings” should be double-quoted). Here’s an example of what to_json produces when …
chuyeow Posted by chuyeow User Menu on June 20, 2007 at redemption in a blog
Season 2 of The Melancholy of Haruhi Suzimiya was announced in the August 2007 edition of NewType Japan - check out the scans. The announcement isn’t official, but there’ll be one on the 7th - that’s 7/7/2007!
chuyeow Posted by chuyeow User Menu on July 6, 2007 at redemption in a blog
I never really fancied download accelerators but Axel is different - it’s a command line application and is naturally significantly more lightweight then those graphical download managers I’ve stopped using since 1996 (teh intraweb was slower then, and I was sucking bits of it through a state of the art 33.6kbps dial-up modem).I’ve been using wget for its …
chuyeow Posted by chuyeow User Menu on April 29, 2007 at redemption in a blog

The Community Meta Blog
for Singapore Bloggers
v2.1.0

Join Singapore Blog Awards 2012

Bloggers: Singapore Blog Awards 2012
is now acceping nominations!

 

latest comments rss feed

 
 

shouts rss feed for latest shouts history

avatar hexsarash: hai....
avatar aieza: siang all
avatar 88henry: morning every1
avatar felizaong: SHOES SHOPPING! Me wearing it>> www.ping.sg/read/Shopping-Aldo-Wedges
avatar nawwaf: salam semua.. heyyy
avatar hexsarash: khukhukhu...
avatar sl417k: hai
avatar birthmark: A small bit of China.
avatar bloggerindonesia: Penyebab Ketidakseimbangan Neraca Saldo
avatar mingisland: www.bigmouth8.com
avatar coolinsights: Why You Need to Start Journalling and Blogging ping.sg/item/The-Benefits-of-Journalling-and-Blogging
avatar sevra: ^_^
avatar hexsarash: halo all...^_^
avatar bloggerindonesia: Proses Pembuatan Neraca Saldo
avatar hariagsutomo: tes...tes...
avatar grandong: pagi semua...
avatar w_delon: isilo
avatar blue8118: Is Coconut one of Miss Earth Sabah Finalists?
avatar hexsarash: huahem....
 

new users

hongxingpeggy dingqian101212 kamipenjajah dipaali70 hpilitysg irgimnur andi_11