Web Development Services

by Irish on June 21, 2012

Just wanted to make a quick post that if you’re interested in Ruby on Rails Development, please contact me over at Velocity Labs instead of here. Thanks!

{ 0 comments }

RailsConf RubyAZ Presentation Slides

by Irish on May 16, 2012

This past Tuesday evening I presented to the RubyAZ user group. The talk covered useful libraries and gems that I saw at Rails Conf 2012 that I thought others might find helpful in their day to day work. I’ve made the presentation slides available as a pdf. Enjoy!

{ 0 comments }

How to set the timezone on Ubuntu Server

by Irish on March 21, 2012

I find it’s pretty annoying when you have to go log file spelunking only to find all the timestamps are in UTC.  But we can set the timezone of the server so when Rails, cron, scripts, etc run, they output more readable dates.

You can check your current timezone by just running

$ date
Thu Mar 21 18:02:49 MST 2012

Or checking the timezone file at

$ more /etc/timezone
US/Arizona

So to change it just run

$ sudo dpkg-reconfigure tzdata

And follow on screen instructions.  Easy.

Also be sure to restart cron as it won’t pick up the timezone change and will still be running on UTC.

$ /etc/init.d/cron stop
$ /etc/init.d/cron start

UPDATE July 2016
In the comments Dan mentions that in 16.04 you use something like:

$ sudo timedatectl set-timezone Australia/Melbourne

Need web application development, maintenance for your existing app, or a third party code review?

Velocity Labs can help.

Click here to get started!

{ 63 comments }