Continue Reading...

cronolog.pl

Cronolog rocks. It's an elegant alternative for logrotate and it's ilk. It's small app that takes a log file name template as an argument on the command-line and logfile data on STDIN. Cronolog then outputs the log data to a log file with the given name template. The template is a subset of the C strftime() format tokens. But I'm peculiar and even cronolog's meager installation needs are too much hassle for me, so I whipped up a copy in a couple dozen lines of Perl that can be cut and pasted into a new server. It supports an even smaller subset of tokens (those resulting from Perl's localtime()) and a couple features I preferred (like gzipping on closing the log file).

Continue Reading...

Trivia-o-matic

The Trivia-o-matic is a set of tiny perl scripts that can be used to set up an impromptu trivia server for any gathering of geeks sitting around with networked laptops. It was developed during The Sixth Hope (July, 2006) as an amusement for loungers in the 2nd floor theater. The idea was to advertise a login/password on a quickly deployed box with an invitation to connect and compete in a trivia challenge. A banner with the current winner(s) and the invitation was displayed on a scrolling LED sign. The code was designed to be simple, with only basic precautions for security, assuming that the system getting hacked might be part of the amusement. It was also designed to be a quick bit of code and only took 6 or so hours to put together, which is reflected in its lack of sophistication.

Continue Reading...

O_RDONLY?

O_RDONLY?

I needed a desk.

During my college years I had been using fold-up rectangular tables, which were very practical for someone needing a whole lot of work space, but not the most attractive things in the world. When I moved to NYC and needed a temporary desk solution, I did what any uninspired 20-something would do: I went to IKEA. But after a couple years of a tiny computer hutch it came time to build a desk that would serve as a work space for all my mad science experiments.

Continue Reading...