April 29, 2008
Photo hunt
In the last four years, I've taken thousands of photos. I'd say maybe eight of them have descriptive names like "kevin_saves_dolphins.jpg" or "kevin_receives_key_to_city.jpg", so finding particular ones later is a big pain. (Did I file that photo of my parents and Amy's parents under "Cooney," "Gawelek," or "Funny Looking People"?). To compound the issue, I don't believe in the delete button, so bad photos are constantly showing up in our various slideshow programs (screensavers, digital picture frames, etc).
What I needed was a good way of labeling photos for easy retrieval later. Flickr does a great job with this by allowing users to "tag" photos. But I wanted to do this on my computer, so I'm not dependant on Flickr. Also, Flickr ain't free for large amounts of uploads (as would likely be the case for me). And for Pete's sake they can't even spell, how can I trust them with my precious family memories?
Picasa also has a way to tag photos, which wouldn't require uploading all my photos, but I'm not a huge fan of Picasa, due to its "What happens in Picasa, stays in Picasa" attitude. On the one hand, it's great that the original photo is always available, but sometimes I like to view photos outside of Picasa, which won't show those edits.
Then there's the big problem: I just don't have the discipline to sit down and tag photos, or the memory to remember to do it regularly. I think most families have two nicely organized photo books, and then 10 shoeboxes filled with piles of photos (or even just film canisters). If this was going to work, it had to be futureproof.
Then last year, I was getting an MRI (don't worry, I'm fine), so I had about an hour of staring at the ceiling to think about the situation. I had an insight: If I set my browser's homepage to a page that picked a photo at random and allowed me to tag it, I'd get through a few a day, and slowly tag my entire collection.
I already had my photos available from a webserver in my house, and I use a photo album program called phpAlbum, which can read these types of tags and search for them. So all I needed to do was write the program to allow me to insert the tags, and I'd be all set. So that's what I did.
I wrote it in PHP, using The PHP JPEG Metadata Toolkit, a library that can read and update the IPTC header of JPEG photos (a fancy way of saying it can edit tags within photo files). The tags get saved within the file itself, so if I ever switch computers, or systems, the tags will still be there.
Tags are entered as a comma-delimited list, like so:

Once saved, they can be searched for using phpAdmin:

Ta-Da!
It's been set as the homepage of our home computer for about two months now, and we've tagged about 30% of our photos. In addition to tags like "kevin" or "amy," we've also started using more abstract tags like "favorite" or "funny," which give some great sets of photos. Also, I've been using some practical tags like "rotate" or "redeye" so if I'm ever feeling motivated, I can easily find photos that need fixing.
The next step will be to build a process to generate lists of photos to be used for slideshows based on search results. For instance, if my family comes over for dinner, I'd like to only have family-related photos on my digital picture frame.
For the nerdly-inclined, the source code is here. It's not what I'd call "good" or "correct syntax", but it gets the job done.
March 19, 2008
It's a boy!
Amy and I are thrilled, and looking forward to a lifetime of robots, football, and projectile peeing.
February 21, 2008
Citizen Vain
On a lark, I decided to put up my picture on hotornot.com, the site that lets visitors vote on others' attractiveness. I'm not sure why I did it. I guess I wanted to see what others thought of me, without petty details like personality or behavior getting in the way.
Here's the picture I went with.

Amy had taken this one over the summer while I was gardening. To be perfectly honest, I think this picture makes me look better than I actually do in person. So it may be a bit unfair. Then again, I am gardening in the picture, which isn't a hobby guys usually list in personal ads. (Speaking of personal ads, I also made sure to pick a shot that had my wedding ring in it, so Amy wouldn't freak out to see my picture on that website.)
I was surprised to find I don't have many photos of just myself to choose from. In fact, here were the only other recent pictures that feature only me.

But my hair looked terrible in those, so I didn't use them. I didn't have time for a trip to Glamour Shots, so I went with the gardening photo instead.
The next morning, I checked back, and was shocked to discover I was a 9.9!

"9.9," I asked myself, "out of what?"
It looks like they use a 10-point scale, but on further investigation, I'm not sure how they calculate that, as the vote count says it should be more like a seven (I think it's 7.125, to be precise, but then again, us hotties aren't usually very good at math). I'm guessing that's inflated by my flattering picture.
So bottom line: I'm about average looking.
I'll take it!

