Friday, August 31, 2012

Validating a User's Age in Rails

We ran across an interesting bug in our application recently: a user who was 18 years old exactly could not sign up for our service.  This happened only in our production environment (not staging, development or test) and when we manually tested a number of dates, a user who was 18 years and 7 days old could sign up, but a user who was 18 years and 6 days old could not.

Improve yourself with crontab and growlnotify

Its been a very long time since I last posted.  I've moved, changed jobs, major technologies (Windows / ASP.NET / C++ to Mac / Rails), had twin boys and am now working from home.  Working from home provides some great opportunities (family time instead of commute time being the big one).  I've found that I need help making sure that I take a break and step away from the computer occasionally during the day.  Also, I'm a skinny ex-cyclist who doesn't like to go to the gym, but does want to be stronger.  Enter GrowlNotify and crontab to the rescue.