Showing results for May 2004 - Page 2 of 5 - The Old New Thing

May 25, 2004
0
1

The F*deral Bur*au of Inv*stigations

Raymond Chen
Raymond Chen

According to the Chicago Division, Use of the NAME, INITIALS, or SEAL of the F*I is restricted by law and may be used only with written permission of the F*I. Asterisks inserted to avoid being arrested by the F*I for using their name and initials without written permission. (I hope they don't go after me for using their initials...

Non-Computer
May 24, 2004
0
0

Extending the Internet Explorer context menu

Raymond Chen
Raymond Chen

In a comment, Darrell Norton asked for a "View in Mozilla" option for Internet Explorer. You can already do this. Internet Explorer's context menu extension mechanism has been in MSDN for years. Let me show you how you can create this extension yourself. First, create the following registry key: Of course, you need to change C:\some\...

Code
May 24, 2004
0
0

Callback, the safety newsletter for the aviation community

Raymond Chen
Raymond Chen

Yes the "S" in NASA stands for "Space", but don't forget that the "A" stands for "Aeronautics". One of the programs that I (amateur aviation wannabe) find fascinating is the Aviation Safety Reporting System, where pilots can submit anonymous reports of "stupid things I have done" in order to teach other pilots "Don't do what I did...

Non-Computer
May 21, 2004
0
0

Do you know when your destructors run? Part 2.

Raymond Chen
Raymond Chen

Continuing from yesterday, here's another case where you have to watch your destructors. Yesterday's theme was destructors that run at the wrong time. Today, we're going to see destructors that don't run at all! Assume there's an ObjectLock class which takes a lock in its constructor and releases it in its destructor. Pretty standard stuff. ...

Code
May 21, 2004
0
0

You can do anything at zombo.com, anything at all

Raymond Chen
Raymond Chen

Zombo has been around for many years, and yet I still find it hilarious (requires Flash). I just went back to check, and alas the introduction actually ends. But fortunately, they made it even cooler by having a text-only version. (Still requires sound...

Non-Computer
May 20, 2004
0
0

Do you know when your destructors run? Part 1.

Raymond Chen
Raymond Chen

Larry Osterman discussed the importance of knowing when your global destructors run, but this problem is not exclusive to global objects. You need to take care even with local objects. Consider: Easy as pie. And there's a bug here. When does the destructor for that smart-pointer run? Answer: When the object goes out of scope, which is ...

Code
May 19, 2004
0
0

Letterboxing: Geocaching without the GPS

Raymond Chen
Raymond Chen

Geocaching is sort of like global hide-and-seek (with hints) for technology geeks. I stumbled upon a non-GPS version of this diversion, known as Letterboxing (not to be confused with letterboxed movies, another subject entirely). By the way, if geocaching isn't enough "fun with a GPS" for you, you can try The Degree Confluence Project...

Non-Computer
May 19, 2004
0
0

Beware the hash reset attack

Raymond Chen
Raymond Chen

There are a variety of message digest algorithms out there, MD5 being a particularly popular one. These generate a "message digest" (essentially, a hash) so you can detect whether somebody has tampered with a file, the theory being that it's hard to tamper with a file without changing its hash. But make sure you record the file size as well as ...

Other
May 18, 2004
0
0

The coolest thing you can do with a Gameboy is not "play a game on it"

Raymond Chen
Raymond Chen

From Public Radio International, The Next Big Thing covers The Gameboy Music Match. These days, a lot of electronic music is performed directly off of a laptop, which most people complain looks a lot like someone up there on stage checking their email. But Gameboy music isn't just for listening. It's also a performance. Nullsleep ...

Non-Computer