Offline Password Reset

February 26th, 2010

It’s fun to get paid to hack.

We got a new laptop at work that had just arrived from the Provost’s office. They did a good job setting it up, but somehow in the shuffle, we weren’t told what the administrator password was.

After trying the usual suspects, we resorted to Plan B — a bootable, highly-customized Linux CD specializing in Windows password removal. In less than five minutes (three of which were spent finding a USB CD drive to plug in), the admin password was gone. (Security? We don’t need no steenkin’ security…)

http://pogostick.net/~pnh/ntpasswd/

(Use it with caution; if any encrypted files are on the machine, resetting the password will make them unreadable.)

Enjoy — and remember, kids — be a Jedi, not a Sith.

cp /dev/drillpress /dev/sda1

February 18th, 2010

Paleotech Formatting. When it absolutely, positively has to be made unrecoverable…

A hard drive used by one of our financial gurus at work died. A recovery service was able to get most or all of the data out, and I was asked to handle the warranty claim for a new hard drive. We had purchased the “no-HD-return” option on the warranty, and Dell did a nice job getting us a good replacement drive the next day — but we still needed to make sure the old drive couldn’t be read by nefarious evildoers (should they decide to go Dumpster-diving and have a cleanroom).

I vaguely remembered reading that one suggested Best Practice for such a situation involved a drill press — which we just so happened to have available in the lab.

I dare say the data has done left the building.

Prius cruise control problems?

February 11th, 2010

As an embedded enthusiast, I’ll admit I’ve been a little skeptical about the recent complaints about spontaneous acceleration problems on the Toyota Prius. I don’t have one myself (can’t afford anything that new yet), but I’ve been impressed by the ideas behind the design. The “spontaneous acceleration” complaints sounded to me more like either people’s imagination running away with them, people who don’t understand their cars and/or can’t drive, or people looking for a quick buck or cheap publicity out of all of this.

This changes my opinion. If Steve Wozniak, who owns a Prius, says that he’s experienced problems with the cruise control system causing uncommanded acceleration, I believe him. This guy designed the original Apple computer system way back when, and truly understands digital electronics. He also has nothing to gain from badmouthing Toyota, and being a typical engineer, has never been one to look for publicity (unlike that “other” Steve.) He’s just an engineer who noticed an important problem and is trying to help get it solved. (Good for you, Woz.)

I hope Toyota is taking these reports seriously, and comes up with a good, solid fix for them. Were it me, I would suggest a paleo-tech solution: Install a hardwired killswitch which cuts power to the electric propulsion and forces the transmission into Neutral. (The engine *does* already have an RPM defenser, yes?)

Hopefully Toyota can solve the problem and get this behind them. They have done a lot to popularize hybrid cars (and fuel efficiency in general); I would hate for such a good idea to get more bad press just because of some engineering glitches which should have been caught long ago.

Digital Is Better Than Analog. God Said So!

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

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

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

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

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.

Newtonian Physics Demonstration

December 13th, 2009

…courtesy of Mother Nature.

Guys, Joshua/WOPR said it best:
“A strange game. The only winning move is not to play.”

Just — WOW.

December 4th, 2009

Speaking of Bad Code, I just ran across "The Who-Knows Code".

Either someone out there has a very VERY sick sense of humor, or otherwise he or she should be tracked down (we might want to put the FBI on this) and restrained by whatever means necessary from ever using a programmable piece of technology ever again.

Don’t believe me? Go see for yourself. “GOTO Considered Harmful,” indeed!