January 20, 2011
January 14, 2011
A stopped clock is right twice a day, and a ticket queue is empty twice in a geek’s tenure.

A stopped clock is right twice a day, and a ticket queue is empty twice in a geek’s tenure.

August 5, 2010
Sadness in the contemporary world.  (artist unknown)

Sadness in the contemporary world.  (artist unknown)

April 17, 2010

Openvz pretty printing disk usage

Second verse almost the same as the first.

/usr/sbin/vzlist -o ctid,hostname,diskspace,diskspace.s | \
awk 'BEGIN { totalused=0; totalquota=0; } \
$1 ~ /CTID/ { printf "%5s %20s %6s %6s\n", $1, $2, "used", "quota"; next; } \
$1 ~ /[0-9]+/ { totalused += $3; totalquota += $4; split($2, arr, /\./); \
printf "%5s %20s %6.2f %6.2f\n", $1, arr[1], $3 / 1024 / 1024, $4 / 1024 / 1024; } \
END { printf "total %20s %6.2f %6.2f\n", "", totalused / 1024 / 1024, totalquota / 1024 / 1024; }'

March 31, 2010

Pretty printing openvz memory allocation

awk: when you can’t be bothered to write a proper while loop.

/usr/sbin/vzlist -o ctid,hostname,privvmpages.b | \
awk 'BEGIN { total=0; } $1 ~ /CTID/ { printf "%5s %20s %5s\n", $1, $2, "mem"; next; } \
$1 ~ /[0-9]+/ { total += $3; \
split($2, arr, /\./); printf "%5s %20s %5.2f\n", $1, arr[1], $3 * 4 / 1024 / 1024; } \
END { printf "total %20s %5.2f\n", "", total * 4 / 1024 / 1024; }'

February 17, 2010
You’re east coast, not New Mexico. If you aren’t used to seeing so much snow, you have to fake that you are used to it, puff up your chest and go to work. No goddamn excuses, I don’t want to hear “but we don’t have plows” You’re a goddamn American!

eject: Here’s the part where I tease you about Snow in America

I moved away from the snow so I wouldn’t have to feel like a pansy while making excuses.

April 15, 2009
HAVE YOU EVEN THOUGHT ABOUT THIS PROJECT FOR MORE THAN A MILLISECOND? THE SPEC FOR THIS PROJECT WILL BE 5,000 PAGES! IT WILL TAKE THOUSANDS OF MAN-YEARS TO IMPLEMENT, AND *NOBODY* WILL UNDERSTAND HOW IT WORKS OR HOW TO USE IT, EVEN IF WE SOMEHOW MANAGE TO LAUNCH IT!
The thought that has gone through every software developer’s mind at some point during a big project, as channeled throuh the inimitable Steve Yegge.
March 31, 2009
March 29, 2009
Square Wave, also by Steve Hanov. Fanboyish to post two links back-to-back but this one hit a little too close to home for me.

Square Wave, also by Steve Hanov. Fanboyish to post two links back-to-back but this one hit a little too close to home for me.

How a programmer reads your resume by Steve Hanov.  Seems like this would work pretty well.  By way of Jeremy Zawodny.

How a programmer reads your resume by Steve Hanov. Seems like this would work pretty well. By way of Jeremy Zawodny.