Logo-of-the-Day goes hi-tech
A few days ago, I announced I’d be trying to update my blog logo to reflect events, holidays, etc. Thus far, the idea is working (at least for me). The problem is one of timing. I got the St. Patrick’s Day logo up (a few hours late) and took it down (many hours late). While the logo was ready days in advance, I still had to upload it; switch it in; then remember to switch it out. That has all changed.
I can now upload logos hours, day, weeks, or even months in advance. A simple cronos job runs at the start of every day and looks for a logo file with today’s date in the name. If it finds one, it makes it the “logo of the day”. If it does not find one, it reverts to the default logo.
I started with some PHP code over at DZone Snippets that made finding the files a snap. I use …
$pattern = date(’Ymd’) . ‘.*jpg’;
… to find JPEG files with the current date. If I find one, I simply copy it over the default logo. The nice side effect is I retain all my old logos for reference and posterity.
Now I can start to go wild with logos … provided I can find good events to highlight. What are you favorite or most memorable events ?




March 19th, 2008 at 10:47
A recent favorite of mine - September 19th - International Talk Like a Pirate Day.
Hahrrrrr.
March 19th, 2008 at 12:55
well that *was* easy … of course, now you’ll have to wait 6 months to see it
March 20th, 2008 at 23:16
Spring break begins tomorrow at my place of employment. It doesn’t mean I have the week off, but my mind has a chance to catch its breath - so to speak. I’m feelin’ almost as festive as Zen in the hat.