My thoughts as an enterprise Java developer.

Friday, February 15, 2008

Rename multiple files

Options for renaming multiple files on Windows
  1. Windows explorer: It only renames them to xxxx (y).ext where the only thing that varies is y (an incrementing number).
  2. Various utilities available for download: I don't like to risk running some unknown program for something that seems so simple.
  3. Command line for in do command. To prepend "3-" to every directory that starts with "60-" run: for /d %i in (60-*) do ren %i 3-%i

Monday, February 11, 2008

Geek Status

In my IM client I set my status to the following. I admin that I'm a geek but it's fun!
echo "JANS" | sed "s/A//" | sed "s/J/Ava/" | sed "s/N/il/" | sed "s/S/able/"

Monday, February 04, 2008

3 paychecks in February

I get paid bi-weekly on Fridays and this year I get 3 paychecks in February. I was wondering how often that happens and with Excel's help I found that it happens every 56 years. I also found that a month with 3 paychecks will be 5-7 months later than the last month with 3 paychecks. In 2010 there will be 3 months with 3 paychecks.