Is Delayed Job :run_at => DateTime Giving You Fits?

I’ve been implementing Delayed Job to poll Twitter every minute for changes. However, it was immediately running everything and ignoring the run_at time in the database. Or so I thought.

Upon inspection of the code for Delayed Job, it is polling the database time to UTC and not local time.

def self.db_time_now
      (ActiveRecord::Base.default_timezone == :utc) ? Time.now.utc : Time.now
end

What was

Delayed::Job.enqueue PollTwitter.new(), 0, 1.minutes.from_now

has now become

Delayed::Job.enqueue PollTwitter.new(), 0, 1.minutes.from_now.getutc

Four hours is a large difference.

Note: Normally I would just run this as a cron job, but Heroku will only run cron once per hour.

Indianapolis Ruby Brigade

A lot of effort has been going into transforming IndyRB into a valuable group of talented people. We’re at 116 members and growing!

Here are a few ways you can interact with the group:

Quite a few of us hang out on IRC during the day and late at night. It’s a great way to see what some of the best Ruby developers are discussing and get some help when you’re stuck.

Looking for Ruby Developers

Update: This position has been filled. Thanks!

My company, TGFI, is currently looking for two full time Ruby developers with LAMP/CSS/XHTML experience in Indy. Even if it’s just a passion on the side, as long as the person has a solid web development background and is eager to learn, that will work.

If you know anyone who is interested, please visit http://www.tgfi.net/2008/08/12/come-work-with-us/.

Thanks! ~Greg

WordPress 2.5 RC2 Is Out

Update: WordPress 2.5 has gone final. Great work from the teams at Auttomatic & Happy Cog, along with all of the contributors.

The latest release candidate of WordPress, 2.5 RC2, is out. So far I haven’t noticed any major changes from RC1, just some tweaks based on feedback.

Matt (WordPress co-founder) has put together a quick screen cast as an overview of the major changes compared to earlier 2.x releases. It’s well worth the look

Also, if you are going to upgrade to any release of 2.5, check out the official which plugins work and which don’t list before upgrading. Once you’re in the clear, go install. The admin tool is so much better.

WordPress 2.5 RC1 – First Impressions

Update: WordPress 2.5 has gone final. Great work from the teams at Auttomatic & Happy Cog, along with all of the contributors.

Yesterday I was working through my latest feed updates in Google Reader when I came across more information on the new WordPress 2.5 changes on Jeffery Zeldman’s blog. I kept it unread so I could come back to it later, but after what I saw, I kept thinking about it all day. Could it really be that good?

Tonight I pulled a copy of the site down to my laptop and did a test upgrade. Everything checked out( themes and plugins), so I went for it on the live site. Don’t worry, I backed up first.

I really enjoy the new editor – TinyMCE 3. Especially since it works correctly in Safari 3. I prefer Safari for its superior font rendering and speed, but I was relegated to Firefox under 2.3.3 and below.

Hats off to the team at Happy Cog. They’ve done some great work here. For more details, Techosailor has a full write up on the changes that is worth a read.

Also, Matt from WordPress notes this is production ready, but they wanted feedback on the design before finalizing 2.5. Don’t be scared of that RC1 name, go upgrade!