I bought 6 screencast episodes of Ruby metaprogramming about 3 years ago and only recently have I watched them all. And I must say: it was quite worth it! Just a reminder that it’s never too late 🙂 See below for my notes (which have been approved by Dave Thomas himself). Episode 1 – Objects […]

I’m running Snow Leopard and it seems like a fresh Capistrano install did not forward my ssh credentials when I was deploying my Rails 3 app on a remote server, having my git repo on beanstalk (similar to the popular github). After a lot of googling, I understood the problem and went on to fix […]

Question What would be the output of this code snippet?   Solution The output is “nil”. Here is the reason why, taken from Programming Ruby 2nd edition (p. 86): [W]ritable attributes have a hidden gotcha. Normally, methods within a class can invoke other methods in the same class and its superclasses in functional form (that is, with […]

I have been away from hacking some Ruby for about a year by now, and I wanted to get up to speed with Ruby 1.9.3, so I bought Peter Cooper’s Ruby 1.9 Walkthrough. No doubt: my $24 was excellent value for my money. That’s a 3-hour session where he talks about what’s new in Ruby 1.9.2 […]

I’m a bit late with that one, but I wanted to have an overview of Node.js from the man behind it. So I watched the presentation from Ryan Dahl at JS Conf Berlin 2009.   Here are my notes: Apache vs nginx Apache uses OS threads nginx uses an event loop Threads context switching is […]

I wanted to have write access to my HFS+ external hard drive. It took me (frustrating) hours to find out, since I kept on having it mounted automagically (i.e. seconds after I inserted the USB plug in my labtop) as read-only. So I could read from it, but not write to it. This post did […]

I did a lightning talk (< 10 min) about ‘git log’ @ Montreal.rb yesterday. My sources were Scott Chacon’s git log screencast, Nick Quaranto’s gitready post, as well as git-log manpages. Here are my notes: Usecase: I want to be up to date with the latest activity git log git log -4 git log –since=”1 […]