Ruby

Handling Time Zone Conversions in Rails

A couple of days ago, an HourPatch customer emailed me with a bug he'd found. When he created a time entry on a Saturday night, that entry would "jump" a week ahead on the schedule. I was able to fix it pretty quickly, and it turned out the problem related to time zone conversions, so I thought I'd share a little of what I learned when fixing that bug. Read more about Handling Time Zone Conversions in Rails

Batch Image Resizing with Ruby and ImageMagick

A couple of days ago, I was working on an upcoming website that displays a hundred or so images of an artist's paintings. Each painting on the website will be represented in two sizes: a smaller view, and a "full-size" view. Also, for each painting there is associated information that needs to be displayed (title, size, medium, etc.). I certainly didn't want to do all that work by hand! So I wrote a script...

Subscribe to RSS - Ruby Subscribe to Coffeeshopped Blog