Don’t use strptime, use a regex

I am using Python to do some data file processing, converting data from a horrendously verbose, repetitive format to a nice, clean, CSV format. The date and time are in two different fields, and the date is in MM/DD/YYYY format, plus, the MM and DD might be one …

View comments.

more ...

Generating PDF thumbnails

Had the need recently to generate a bunch of thumbnails for some PDFs we had. ImageMagick to the rescue.

for P in `ls *.pdf`
  do echo $P
  outfile="thumbs/`echo $P|cut -d . -f 1`.jpg"
  convert -quality 50 -geometry 64x82 $P[0] $outfile
done

The [0] tells it to …

View comments.

more ...


When marketing gets ahead of engineering

Bob (from marketing): I have this great new idea for our product!

Joe (from engineering): Lay it on me!

Bob: Let’s make our product easier to use! People will love it!

Joe: OK, we’ll need three months to develop and test that feature.

Bob: Great! We’ll start …

View comments.

more ...


Chaining SSH Connections

Today I was trying to figure out how to ssh into one system, and then automatically ssh into another system. The logical way:

ssh user@outside_host "user@inside_host"

wasn’t working. The logs on both inside and outside hosts would show a connection, but I would get no prompt. I …

View comments.

more ...


Looking for work again

So, my contract with WordStream has ended, and I am now in the ranks of the unemployed. If you know of any programming or system administration positions you could point me to, that would be greatly appreciated!

My resume is linked over on the right side of this page. Feel …

View comments.

more ...

Be Careful Who You Prank

I had this conversation this morning via a random AOL IM sent to me:

(10:09:04) AtypicalCoho: If you respond with an away message containing a phone number, I will laugh… then rickroll you by phone. (10:10:08) Me: I am not available. If you need to contact …

View comments.

more ...