Impossible is just a big word thrown around by small men who find it easier to live in the world they’ve been given than to explore the power they have to change it. Impossible is not a fact. It’s an opinion. Impossible is not a declaration. It’s a dare. Impossible is potential. Impossible is temporary. Impossible is nothing. http://quotevadis.com/post/4046940916/impossible-is-nothing

RubyOnBeer Ohm presentation

Did a presentation at last night’s RubyOnBeer meetup. Went to Higher Ground at Saints - really cool venue.

Redis, Resque & Friends

I recently did a presentation at the RubyFuZa 2011 ruby conference down in Cape Town. Cant wait for RubyFuZa 2012 :)

Check out the slides and let me know what you think.

Retry and clear failed Resque jobs

This is for posterity’s sake :)

Retry all jobs:

(Resque::Failure.count-1).downto(0).each { |i| 
  Resque::Failure.requeue(i)
}

Retry jobs for a particular worker:

(Resque::Failure.count-1).downto(0).each { |i|
  payload_class = Resque::Failure.all(i)['payload']['class'] 
  Resque::Failure.requeue(i) if payload_class == 'MyWorker' 
}

Clear failed jobs:

Resque::Failure.clear

You get the idea :P

Performing Disk Repairs on OSX without Install Disk

I dont travel with my OSX install disk (seriously, who does?) and found myself in a situation where i needed to repair my macbook pro’s hard drive using said installation disk.

There are two options if you find yourself in a similar position:

  • Start in safe mode: Hold shift down during start up (performs a simple disk scan)
  • Start in single user mode and run fsck: hold down command+s during start up and run the following command in the terminal prompt when ready: /sbin/fsck -fy

You’ll find more details on this apple support page

Really beautiful time of year in Johannesburg at the moment: I <3 Jacaranda Trees

Really beautiful time of year in Johannesburg at the moment: I <3 Jacaranda Trees

Engine Yard have started a new project, Rails Dispatch with info about the upcoming Rails 3 release. They’ve also done an updated version of the famous “Blog in 15 minutes” screencast - see above.