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 …
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 …
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 …
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 ...
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 …
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 …
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!
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 …
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 …
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 ...
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.
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 …
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 …
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 ...
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 …
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 …
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 ...
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 …
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!
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 …



…