Archives for September 2011

perl script to generate a list of Julian day/day of year dates, given start and end.

I discovered myself on a unix system with a ‘date’ utility that only accepts the -u and + parameters, a fairly basic perl install, and lots of archives that are listed by the “Julian day” (day of year) date. I put together a perl script using the functions I had at my disposal. The script [...]

This kid knew enough to be dangerous.

Running this old code, which was probably not actually turned in for anything, through the gcc compiler alone showed that there was a glaring error that would have been exposed on the the first run. Beyond the initial compiler warnings, there are the ALL CAPS variables, the while loops used as pure for loops…   [...]