Monthly Archives: November 2008

Normalizing LoC Call Numbers for sorting

Updated: I missed a ‘?’ in the original code that pushed a single cutter into the second-cutter position. Fixed below.

Crap. Update 2: Initial letters can be three characters long. Regexp and output changed.

LoC Call numbers tend to be a mess, and I’ve been working this morning trying to normalize them for easy string comparison.

The perl [...]

How to rig an election

No matter where I’ve gone today and for the past few days, I keep running into people (on both sides) who are sure that if Their Guy Doesn’t Win, it’s going to be because of dirty tactics.

I’m not an expert in this stuff. Not by a long shot. But I thought it would be fun [...]