Conway's Law
Software is doomed to reflect structure of the organization that produces it.
This is a blog about me, Seinfeld, okonomiyaki, japanese toilet seats, and other things of interest
I realized during my honeymoon that I actually like caper berries, something that I have avoided for the last 12 years.
A few months ago I wanted to write a script that would run top in batch-mode every minute or so to write stats about a server to a log file. The script worked fine when I tested it on the command line, but when run from cron it truncated all lines at 80 characters. This meant that some important information was lost and then I gave up and moved on to something else. After recent events at work I again decided that this script would be useful. Again as I was stumped about the truncating problem until I got help on the bbs.linux.se forums. The solution is to set the COLUMNS environment variable for the top call, e.g
COLUMNS=150 top -bc -n 1 | grep bla >> $LOG_FILE
One cool thing about the 80s were the films based on a cool new sport or dance. Films like Breakdance the Movie, Beat Streat, and of course BMX Bandits. I never knew until this morning that BMX Bandits was actually filmed in Manly. In the first scene you can see the cool guys biking from Shelly beach to Manly beach along the road I run almost every morning.