Showing archive results for 2006

May 17, 2006
Post comments count0
Post likes count0

Don't mention the war. I mentioned it once, but I think I got away with it all right

Raymond Chen

The Germans is probably the most well-known episode of Fawlty Towers. Who better than John Cleese, therefore, to release the song Don't Mention the War, just in time for the World Cup. The purpose is to mend fences between Britain and Germany, but it might just make things worse, who knows.

Non-Computer
May 17, 2006
Post comments count0
Post likes count1

Beware of digits before the redirection operator

Raymond Chen

If you want to put the string "Meet at 2" into the file "schedule", you might be tempted to use If you try this, however, you'll see the string "Meet at" on the screen and the "schedule" file will be blank. [Typo fixed, 10am] What happened? A digit immediately before a redirection operator modifies which stream the redirection operator appl...

Tips/Support
May 16, 2006
Post comments count0
Post likes count0

The real scoop on the the x64 calling convention on 64-bit Windows

Raymond Chen

Official (though preliminary) documentation on the x64 calling convention is available on MSDN, for those who want more than my quack overview. (Oops, I meant "quick overview". Little Freudian slip there.)

Code
May 16, 2006
Post comments count0
Post likes count1

Command line redirection is performed by the command line interpreter

Raymond Chen

The magic characters like <, >, and | in command lines like are interpreted by the command interpreter ; they aren't built into the function. (This is obvious if you think about it. That command line created two processes; which one should return a handle to?) If you pass a command line like this to , it will merely run the program w...

Tips/Support
May 15, 2006
Post comments count0
Post likes count1

The first word on the command line is the program name only by convention

Raymond Chen

The format of the command line returned by is "", but this is only a convention. If you pass for the to the function, then the function will treat the first word of the as the program name. However, if you pass a value for , then that string determines the program that is run, and the string passed as the is not used for that purpose. This ...

Other
May 12, 2006
Post comments count0
Post likes count0

On languages and spelling

Raymond Chen

When I brought up the topic of spelling bees earlier this year, it triggered several comments on how various languages deal with the issue of spelling. Here are some thoughts on the topics that were brought up: German spelling is only partly phonetic. Given the spelling of a word, one can, after applying a rather large set of rules, determine it...

Non-Computer
May 12, 2006
Post comments count0
Post likes count1

When people mimic the display rather than the actual data

Raymond Chen

I recall a bug that we were investigating that was being caused by a registry key being set when it shouldn't have been. But when you looked at the key in Regedit, it say "(value not set)". Why were we going down the "value is set" branch? A little spelunking with the debugger revealed the reason directly: Whoever set up that registry key wrote the...

Other
May 11, 2006
Post comments count0
Post likes count0

Automatic messages when you're not in the office – the infamous OOF

Raymond Chen

"OOF" is a word you hear a lot at Microsoft. KC Lemson gave the etymology a while back (though my recollection is that it stood for "Out of Office Feature", not that my memory is good for much nowadays). Incidentally, KC is profiled on the Microsoft Careers site, though she goes under the top-secret code name "KC" there. Most people set their "...

Other
May 10, 2006
Post comments count0
Post likes count1

Solutions that don't actually solve anything

Raymond Chen

If changing a setting requires administrator privileges in the first place, then any behavior that results cannot be considered a security hole because in order to alter the setting, attackers must already have gained administrative privileges on the machine, at which point you've already lost the game. If attackers have administrative privileges,...

Other
May 9, 2006
Post comments count0
Post likes count0

Why doesn't Ethan Hunt have to wear identification?

Raymond Chen

Whenever there was a scene in Mission: Impossible III that took place at the agency offices, I was repeatedly bothered by the fact that all the people in the building are wearing their identification badges clipped to their jackets or shirts. Except Ethan Hunt. He gets to walk through the halls like a cologne advertisement. Why doesn't he have to ...

Non-Computer