Wednesday, May 16, 2007

Magic Bucket - part 001

I've got ActiveState Python installed on my laptop and work machines. I took about 35 minutes on the train today to write this little program.

import datetime,os

thisdate =
foldername = "c:\photos\source\%04d\%04d%02d%02d" % (thisdate.year,thisdate.year,thisdate.month,
try: os.makedirs(foldername)
except WindowsError, e:
print e.strerror
if e.winerror <> 183:

os.system("explorer "+foldername)

I'll comment it up and add some more logic later, but the gist of it is that it automates the creation and opening of a folder which I do when I transfer photos. It'll save about 30 seconds each time it's run.

One small set on a long journey.


PS: I used a variant of this code to colorize/HTML the code.

Tuesday, May 15, 2007

Wanted - Magic Bucket

I want to put all of my stuff into a "magic bucket".

This stuff would include:
  • Email
  • Work Stuff
  • All of my photos and videos
  • Scanned pieces of paper
  • Bookmarks
  • Source Code
  • Misc files
The "magic" would be that I could then set up rules to be followed when resources were available. Sample resouces include:
  • Network connectivity at work (or home)
  • Server space at work, home, etc
  • Access to my various email accounts
  • A newly inserted SD card with files from my camera
  • USB thumb drive
  • External backup drive
Some of the rules would be things like:
  • Keep copies of all of my photos on my home machine up to date
  • Read the tags (keywords, etc) from my photos, and send the interesting ones to flicrk, zoomer, etc.
  • Take things composed while offline (on the train communting) and send them as appropriate
I don't want to have to tell it GO on any of this stuff... I don't want to worry that it'll break if interrupted... it should just WORK. Technology is our tool, and it should work like one.


Wednesday, May 09, 2007

Good guys wear black

Originally uploaded by --Mike--.
I decided to try out a new look with the facial hair... and ended up with this.