
IT Associate
National Gardening Association
1100 Dorset Street
South Burlington, VT 05403
Email:
[D]
A pretty simple random password generator for GNU/Linux systems written with shell scripting, pwgen.sh -- random password generator.
I've started a blog called refusal computing. I'm such a tool. Soon I'll be making a Flickr page and starting an account on a social networking site. The social decay continues.
shuffle-stl.cpp - This is another version of shuffle.cpp (see below), except it uses more of the C++ Standard Template Library (STL) as suggested by the article by David R. Musser, "Test-line Random Shuffling Program" (25 April 2005).
shuffle.cpp - After writing a shuffle command in the Awk scripting language (see below), I ported it to C++. I like the Awk version better.
shuffle.awk - Randomly shuffle the lines in a file. Other implementations I came across were either suspect of being only pseudo-random, were guilty of being obtusely written or were incomplete for all cases. Most importantly, they missed an optimization that requires only iterating once through all the lines after reading them in: Pick a random number, X, between 1 and N (here, N is the number of lines). Print the Xth line, and swap it with the Nth line. Then generate a random number between 1 and (N - 1).
15.awk - An Awk script that plays "numerical" tic-tac-toe. Tic-tac-toe is equivalent to taking turns picking a number between 1 and 9. The first player whose sum of three numbers is 15 without picking an already picked number wins.
min-expand - A Bash and Awk script that calculates the tab stops in a file and then expands the tabs minimally to spaces to make a tab delimitted file as narrow as possible.
txt2rss - A PHP script that converts text files to an RSS XML Web feed.
Rules to Double King Pede -- A variation of the card playing games Pedro, Cinch, All Fours, Pitch ... local to Vermont.
Rules to Pinochle -- Basic two-hand Pinochle playing card game.
Some thoughts on programming environments.
The shortest tutorial to compiling Java in GNU/Linux. The trick is to use Debian.
After correspondence with some of the original hackers responsible for writing or contributing to the development of the diff(1) command, I've collaborated in writing and organizing a comprehensive encyclopedia article for the command located at WikiPedia: Diff. Enjoy the "History" section.
[Personal Info]
[Computing]
[E-Mail me]
URL of this page: http://agave.garden.org/~aaronh/
Insert Comments Here