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
I’m a qualified yoga teacher now too - check out my teacher profile in the link above :)
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.
