Thursday, August 18, 2005

Wisdom from the Hovamal

The Hovamal, (or Hávamál) is a collection of Norse poems from around the ninth century. Also called "The Words of the High One", they are supposed to be a set of rules or advice, set down by Odin, covering everything from surviving one's enemies to the etiquitte of being a guest. It reads like a combination of advice from Sun Tzu's Art of War, Benjamin Franklin's Farmer's Almanac, and even a little Worst Case Scenario Handbook.

I've read excerpts from it in various books I've read on Norse Mythology and the Icelandic Sagas, but I've yet to find a single english translation which conveys both the time-neutral wisdom and the artistic turn-of-phrase I think the work merits.

In any case, it is hard to miss the teutonic sensabilities that must have been shaped by lives far harsher than any of us can imagine. I'll leave you with a few of my favorite passages, as translated by various authors:
#34:
To a false friend the footpath winds,
Though his house be on the Highway.
To a sure friend there is a shortcut,
Though he live a long way off.
#38:
A wayfarer should not walk unarmed,
But have his weapons to hand:
He knows not when he will need a spear,
Or what menace meet on the road.
#81:
Praise no day 'til evening;
no wife 'til on her pyre;
no sword 'til tested;
no maid 'til bedded;
no ice 'til crossed;
no ale 'til drunk.
More to come at some further point. For extra credit, there are a few references on the Web, although I don't think that any single one has the best overall set of translations, at least not as good as those I've got in some hardcopy books: Havamal with parallel Icelandic, Swedish, and English, The Ragweed Forge, and Woden's Harrow.

Tuesday, August 09, 2005

Hack of the Day: Altoids iPod Armor Redux

Needed a break from reading specs at work today, decided to update my implementation of my Altoids-tin-turned-iPod-case.

Originally, I had trimmed a section of the original vacuum formed plastic Shuffle packaging to fit the Altoids tin. It had the Shuffle-shaped recess to hold the player and a bit of "flange" sticking out to keep this section from moving around too much. There were two major negatives of this implementation:
  1. The extra plastic that held things in place left very little room for the earbuds. Unless I was very careful about coiling the cord and put the buds in place just right, then the case wouldn't close reliably. This was dumb because there was plenty of wasted volume under this bit of plastic.
  2. Listening to the shuffle meant removing it from the tin and either clipping it to the lanyard (which I don't always wear because it also has my RFID work badge), or leaving the shuffle to bang around in my pocket or bag.
Inspired by Adam Whitlock's and ChriSamo's superior Altoids mods, I set about working out my own solution, which I think it simpler than either of these, but accomplishes much of the same function. Here are the steps for mine, hope you can follow along. (Once again, pics courtesy of my Motorola V600 cameraphone with a dirty lens, so excuse the picture quality.)

  1. First I needed to solve the problem of too-little room for the earbuds. I re-trimmed the fitted rectangular recess so that it was mostly just the space for the Shuffle, with a very short flange on the topside to space the Shuffle away from the edge of the tin just slightly. This made tons of room for the earbuds, but the fitted plastic is free to move around the tin which would be very inconvenient. Note that since I planned to be able to plug the earbuds in through the case, I trimmed the fitted-rectangle so that it was slightly off center, placing the jack as close to one edge of the tin as possible.
  2. Next, I scrounged a new piece of thin vacuum-formed plastic, with a flat section large enough to cover the bottom of the Altoids tin. I think mine was from an OEM hard drive blister pack or something similar. Laying this over the top of the tin, I marked the corners and trimmed it to fit snugly into the tin. You can still see the markings in the photo, which is helpful to see the shape, since its clear plastic on a light colored background. This will serve as a "baseplate" which will keep things from moving around inside the tin.
  3. I placed the new baseplate into the tin, and then the fitted rectangle on top of it. I used three small drops of superglue to attach them to each other, but not to the tin. (Its helpful to be able to remove this assembly from the tin, either to replace the tin if it gets damaged, or for convenient marking if you're proceeding with Step 4.)
  4. OK, that takes care of the earbud problem, now there is plenty of room for the buds, but the Shuffle-shaped plastic is held firmly in place inside the tin. If you don't care if you are able to listen to the Shuffle while it's in the tin, you can stop now. Otherwise, continue: I removed the plastic assembly from the tin, and inserted the Shuffle into the recess, then marked the location of the earbud jack with a fine-tipped marker.
  5. Remove the Shuffle and make a hole 3/16" to 1/4" in diameter in the plastic. Note that in order for the earbuds to plug all the way in, the hole needs to be as big as the wide portion of the plug, not just the 1/8" width of the tip-ring-sleeve portion. To make the hole, do whatever you feel is safe that will make a clean hole. Don't stab yourself in the hand trying to poke through with a knife. Easiest is to make a small hole and file it out, or heat a 1/4" piece of rod to red-hot and just melt a hole...
  6. After confirming that the hole is in the right place, and big enough for the jack, temporarily replace the plastic assembly in the tin and use it as a template for marking for a hole in the side of the tin. The easiest thing for me was to use a sharp scribe to just barely mark the center of the hole from the inside, then centerpunch and drill the hole from the outside,(after removing the plastic, of course). If you have a tapered reamer, I'd drill a small pilot hole and then ream the hole to size, for safety. If you're careful, you should be able to drill it to size, just be careful of the drill bit grabbing into the thin sheetmetal as you punch through the tin. Clean up the hole, if needed, and reinsert the plastic assembly for the final time. Voila', you can now store your iPod Shuffle and earbuds in armored security or have the option of listening to the Shuffle while its in the tin.
So there you have it. Once again, a hack that takes longer to document than it takes to perform. In the spirit of Adam Whitlock's cost breakdown, here's mine, which I think you'll find superior:
  • One Altoids tin - If you're like me, you've got 20 in a drawer somewhere (Free), if not: $2.00 or so...
  • The original vacuum-formed blister pack from your iPod Shuffle package. (Free). If you didn't keep this, you'll need to try one of the other mods listed above.
  • A flat piece of thin plastic large enough to fit the bottom of the Altoids tin. There might be a large enough piece from the original packaging for this purpose, I don't remember. Just about anything will work here... (Free)
  • 3 Drops of Superglue, borrowed from a tube at work. (Free, or ~$1 for more than you're ever need.)
NOTE: One thing I haven't done, but considered: You could cut out the back portion of the tin to allow access to the off/on/shuffle switch. For me, its not a big deal to flip the Shuffle out of the tin when I'm grabbing the earbuds anyways, so I wanted to keep the case as intact as possible to keep out the crud. Some folks, however, might want a little more access...

Thursday, August 04, 2005

Automated Parking Garage

OK, here's one I haven't seen before. On our way to a meeting in Irvine,

some coworkers and I stopped at the Spectrum for lunch. Upon entering the parking garage, we saw this: (please excuse the image burn, the bright-ass display was too much for my wee camera phone). Here's the thing I found fascinating: The numbers would jump up and down pretty quickly, in a clearly non-human manner. In other words, this system is automated, with the number of spaces determined by computer. Others in the car were guessing sensors in the garage, but I'm betting its based on the feed from the various security camera domes I saw. The simplest thing would just be to have the computer try to "count" cars entering and leaving the various levels, in order to keep a running total of the cars. I imagine that trying to visually inspect each space (via machine vision) to determine if a car is actually parked there is unnesessarily complicated. There was too much math for me to get very far in the computer/machine vision classes I tried to take in school, but from what I know about it, this seems like an interesting and straightforward, if not altogether easy, piece of tech. A brief search for info from Daktronics (the name on the sign), reveals little about the source of the data, only the nature of the display system.