Archive for January, 2010

Digital Is Better Than Analog. God Said So!

Saturday, January 30th, 2010

It’s true. God (at least the Christian one, as Jesus) said so Himself:

“But let your communication be, Yea, yea; Nay, nay: for whatsoever is more than these cometh of evil.”
(Matthew 5:37, King James Version)

Directory Size Management

Saturday, January 23rd, 2010

I’m in the process of organizing and backing up the rather large directory structure on my desktop box, in preparation to try out Windows 7 and Ubuntu Linux.

Until I finally buy a BD-R drive (which will probably happen sometime this year), this means backing up to DVD-R discs. My mail spool is no problem at 2.3GB or thereabouts, but the \docs directory is another story entirely. There is content in there — probably large, unused content — from at least as far back as the first Clinton administration. I don’t mind keeping old data around if it’s reasonably sized, but how to tell where the disk-hogging directories are?

Googling “directory tree size,” I came across WinDirStat. It’s a freeware application to scan a given directory structure and show how much is taken up by which subdirectories.

It also takes this data and maps it into pretty fractal pictures.

I’ll post my thoughts on Ubuntu and Windows 7 when I get to them. I may even try out the 64-bit version of XP, depending on how much I like or dislike Win7. (With 64-bit support and newer versions of DirectX, I *want* to like it — but I have concerns about the way the GUI has been evolving since Office 2007 and Vista.)

Data.gov

Saturday, January 23rd, 2010

This looks interesting: the US Federal Government has released some 300 data sets to the public via Data.Gov.

They say sunshine is the best disinfectant; making as much data as possible as public as possible sounds like a great idea to me.

Paleotech Transportation

Tuesday, January 19th, 2010

In other words, bipedal locomotion — walking!

My friend DOSquatch (not his real name, but it’s quite appropriate) has recently started a personal weight-loss program (and is doing quite well.) He has inspired me to get back into my routine of walking home from work (at least part of the way; it’s 4.7 miles, so I only do the entire distance when it’s reasonably light out.)

An interesting way to stay motivated, doing something like this, is to add up your mileage and then use a mapping program to chart your progress towards some distant goal. The “Virtual Me” is currently walking — very slowly — towards the Space Needle, in Seattle, WA. He’s very nearly to Harrisburg now (~90 miles), having started in Philadelphia!

Some geek observations on the art of walking:
* Cool weather is your friend. There are limitations to speed, and one of them is heat dissipation. I go a lot slower when it’s 80 degrees out than when it’s 50.
* Uphill can be just as easy as straight and level, provided you’re willing to go slower. Shorten your stride and pull it down a gear or two — no problem.
* People generally don’t walk very fast. I’m by no means athletic, but my standard cruising speed when walking tends to be a lot faster than most (~3 mph / ~5 km/hr). I’m not sure why this is, since I know many of these people could run circles around me if they cared. Weird.
* Know your neighborhoods. The nice thing about my route home is that there are plenty of options to stop and take the train along the way — there are twelve subway/trolley stations along the way, including the two near work and where I live. Some neighborhoods (and some SEPTA stations) are nicer than others, and that factors into my planning, too.

So long, Loran; we hardly knew ye

Tuesday, January 12th, 2010

I guess it had to happen eventually. The US Coast Guard apparently intends to turn off Loran-C next month.

Just as Loran took over from Omega, GPS is now making Loran-C obsolete. Still, we dinosaurs will miss it. Loran has long been associated with marine and aircraft navigation, of course, but it also has a special place in my heart as the first navigation technology that I used.

Back in the day (mid ’90s?), I found a surplus Loran-C receiver at a hamfest. I didn’t really know how they worked at the time, but it was cheap ($10 or $20, I think), and it came with a book that explained what voltage and polarity it needed on the power connector, so I bought it.

After a little reading, some soldering, and some programming in TRS-80 Model 100 BASIC (an awesome little laptop — more about it later), I actually had a functional navigation system! That is, I could tell my latitude and longitude, and calculate line-of-sight distance to various waypoints that I set. Not the most practical thing in the world to mount in a car, but it was a lot of fun.

It actually did help with navigation, too. A few days after installing it, I was driving home from a friend’s house in Norfolk, and turned the wrong way onto Tidewater Drive. I’d have found this out soon enough myself, but I happened to glance down at the Loran, saw that my heading was 360ish when it should have been 180ish, and did a U-turn. That was pretty cool — I never expected it to actually do something practical.

I got a lot of programming experience out of it, too. The Loran would output its latitude and longitude (in degrees, minutes, and seconds) once a second. Even compressed into bytes, this was three bytes for latitude and three for longitude, every second. Today, this is a ridiculously low data rate — but on a Model 100 laptop with a whole 22k of free memory (including the logger program code), six bytes a second was WAY too much for logging a long trip — it wouldn’t even last an hour.

So I got creative. I realized that the latitude and longitude *degrees* hardly ever changed — and that the minutes didn’t change much, either. I came up with a scheme to compress the data: two bytes were normally recorded each second for the latitude and longitude, except when one or the other rolled over to the next minute and/or degree. In those cases, an “!” was inserted in the data, telling the plotting program that a full six-byte frame would follow.

With that scheme, I was able to record over eight hours’ worth of data in the M100’s 22k of memory — including the recording/compression program! My friend Jason and I took the whole setup (ported to a larger Compaq Plus computer) along on a road trip to Milwaukee and back. It worked pretty well — even when we had to shift it over onto the Great Lakes Loran chain.

I don’t know how good its accuracy (repeatability) was, but its precision was sometimes pretty good. On the way back from one roadtrip, I decided to drive all the way around a cloverleaf interchange (four 270-degree turns) as a test. When I got back home and looked at the data using a quick-and-dirty plotting program I wrote, the whole cloverleaf was clearly visible, albeit squashed a bit in places due to only having one update per second. Not bad for several-decades-old technology.

I know it had to go — but I’m still going to miss it.