Entries from July 2007

Backstory

Sunday, July 22nd, 2007

Due to the miserable weather, we saw both the Harry Potter and Transformers films this weekend.
I was kinda disappointed with the Potter film: it seems like you need to have read the books to enjoy the films. There are just too many characters, with similar names, and huge past histories to make the film [...]

First published photo!

Wednesday, July 4th, 2007

The Irish Guide Dogs for the Blind association runs a competition each year for doggy-related photos to include in their calendar. After much cajoling by my wife and mother (sometimes it’s a mixed blessing that they get on so well), I submitted three entries.
Today I got a very polite letter informing me that one [...]

EXIF Date and Photo Titles in Smugmug

Wednesday, July 4th, 2007

By default, my camera stores the comment “KONICA MINOLTA DIGITAL CAMERA” as the EXIF ImageDescription in each photograph I take. This isn’t much of a problem except that Smugmug thinks it’s a proper comment and displays it beneath each photo, which is pretty ugly:

Until I’ve found a suitable workaround, the best option seems to [...]

Conditional Validation in Rails

Wednesday, July 4th, 2007

I was implementing the Strategy pattern presented here to avoid the limitations of Single-Type Inheritance but I wanted to implement some conditional validations based on the type:

If it’s a “MonthDay-based” recurring event (e.g. 23rd of every month), then the monthday field must be present
If it’s a “Date-based” recurring event (e.g. 1st August, repeating every year), [...]