Archive for November, 2009

Office Compatibility

OpenOffice or Microsoft Office. Use either. It’s like OS X vs. Linux… whatever tool that is best for the job right?

Here’s how you can make the two play a little nicer…

OpenOffice

Users with older versions of Microsoft Office Products, including Word 2000/2002/2003, Excel 2000/2002/2003, PowerPoint 2000/2002/2003)

Users of Microsoft Office 2007

Posted by Karl Herrick on November 20th, 2009 in Apple, OpenOffice, Microsoft, Linux | No Comments »

Renaming MP3s in Bash

It seems like this comes up every now and again, but I end up forgetting how to do it. So, I will post the example here, where it will live forever on the intarwebs.

While there are a ton of ways to script this, using Bash, cut, ls, find, grep, sed, awk, perl, etc… In this particular instance, I find myself with a directory of about fifty files, each named in the following manner…

  1. 01 Song Title.mp3
  2. 02 Another Song Title.mp3
  3. 02 Same Number Song Title.mp3
  4. 03 Author - Title.mp3

Bash and cut to the rescue. The following code provides for each file in the current directory to have the number stripped off of the front, even it has spaces in the filename.

#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for f in *; do
    mv "$f" "$(echo $f | cut -c 4-)"
done
IFS=$SAVEIFS

Posted by Karl Herrick on November 17th, 2009 in Bash | No Comments »

The calendar has moved

So, I moved my calendars off of Apache/WebDAV and onto Google Calendar. Have I lost some control? Yes. Have I gained a huge amount of convenience. Definitely.

Google don’t fail me now!

Posted by Karl Herrick on November 1st, 2009 in Google, Linux | No Comments »