Solution to DelayedJob(DJ) gem server start problem I had installed delayed_job gem 2.0.3, daemons gem but after staring DJ server it shows daemon started but actually process gets killed automatically.I performed steps given by Kevin on google group and it worked like charmHere are the steps:1) sudo gem sources -a http://gems.github.com2) sudo gem install alexvollmer-daemon-spawn3) … Continue reading Solution to DelayedJob(DJ) gem server start problem
blog
Introduction To Delayed Job
Check out this SlideShare Presentation: Introduction To Delayed Jobhttp://static.slidesharecdn.com/swf/ssplayer2.swf?doc=introtodelayedjob-091110110012-phpapp01&stripped_title=introduction-to-delayed-job&userName=jonathanjulianView more presentations from Jonathan Julian.
Best ways to populate dynamic array of numbers in ruby
Array of years using range((yr=Date.current.year)-9..yr).to_a#=> [2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010]Array of years using lambda Array.new(10){|i| Date.current.year-i}#=> [2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001]Array of monthsDate::MONTHNAMES.compact#=> ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]Array of abbreviated monthsDate::MONTHNAMES.compact.collect{|m| m[0..2]}#=> ["Jan", "Feb", "Mar", "Apr", "May", "Jun", … Continue reading Best ways to populate dynamic array of numbers in ruby
