Quick and dirty resque retry all failed tasks
If you have a lot of failed tasks staked in resque, you can retry them all in one shot, but it’s the dirty way. >> (Resque::Failure.count-1).downto(0).each { |i| Resque::Failure.requeue(i) } Dirty because it does not dequeue task when there done. You should then remove the...
ruby arrays short tutorial: ruby way for ruby noobs
Ruby arrays the ruby way (with code blocks). Instanciate an array from words >> els = %w(one two three four five) => ["one", "two", "three", "four", "five"] Iterate over the array >> els.each { |el| puts el } one two three four five Build an...
android spycamera server en 15 minutes = ruby + sinatra + sl4a + jruby
android spycamera server en 15 minutes = ruby + sinatra + sl4a + jruby
#microblog capistrano sans rails: un bon tuto pour commencer
Deploying With Capistrano Without Rails. Capistrano est un outil de déploiement initialement créé pour déployer pour rails mais il peut faire d’autres choses. Ce tuto est excellent comme point de départ si vous souhaitez déployer votre propre application (django ? wordpress ? drupal ? framework...
