Monthly Archives: October 2008

run multiple rake tasks simultaneously

Here’s a quick and simple tip for using threads and Rakefiles: task :one do puts "start one" sleep 10 * rand puts "one done" end   task :two do puts "start two" sleep 10 * rand puts "two done" end   task :three do puts "start three" sleep 10 * rand puts "three [...]
Posted in programming, ruby, tips | Leave a comment

Feature Creep

feature-creep, originally uploaded by opcprogrammers. Apparently my canon scanner-driver has a built-in music player.
Posted in programming | Leave a comment

visualize state_machine’s with graphviz

The guys at Plugin-a-week have written a nice ActiveRecord state machine gem called state_machine. One of the great things about state machines is that they often can be visualized. To that end I’ve written a small utility that will load a class that uses state_machine and produce dot output which you can use with graphviz. This [...]
Posted in programming, rails, ruby | Leave a comment