Greg Benedict

Thoughts on the web and creativity.

Category: photography

Backing Up Your Heroku Database With PGBackups

Heroku recently announced that they are changing the way you backup your app’s database. They are deprecating their bundles add-on and have added a new PostgreSQL only backup feature. This is great news as the old bundles method included a copy of your source code as well. In one instance, our backups went from 90MB [...]

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) [...]

Upgrading to the Canon 50mm F/1.4

One of the first recommendations from nearly every photographer I know was to buy a 50mm lens and just keep it on all the time. They said the f/1.8 was a great value, and i have to agree. It was the first lens I purchased and I paid around $85 on Amazon.