Showing results for May 2009 - The Old New Thing

May 29, 2009
Post comments count0
Post likes count0

Lessons from the state police, like what to do when they pull you over

Raymond Chen
Raymond Chen

NPR's Noah Adams rides along with the Idaho State Police and learns the answers to questions like what you should do when you are pulled over, and why the first thing the officer does is touch your car.

Non-Computer
May 29, 2009
Post comments count0
Post likes count0

Alternatives to using the #error directive to check whether the compiler even sees you

Raymond Chen
Raymond Chen

In response to my description of how you can use the #error directive to check whether the compiler even sees you, some commenters proposed alternatives. I never claimed that my technique was the only one, just that it was another option available to you. Here are some other options. scott suggested merely typing asdasdasd into the header file ...

Code
May 28, 2009
Post comments count0
Post likes count0

An unexpected application of the First Law of Thermodynamics

Raymond Chen
Raymond Chen

This past winter, my furnace failed catastrophically. (The furnace repair person told me that when furnaces fail, it tends to be catastrophic failure.) It was a few days before everything was back in order, and the very day everything was working again, the furnace belonging to one of my relatives stopped working. This was an application of the F...

Non-Computer
May 28, 2009
Post comments count0
Post likes count0

I’m sorry, you don’t have permission to know where this shortcut file should show up in the Explorer window

Raymond Chen
Raymond Chen

Commenter Gabe suggested that the shortcut file should contain a bit that indicates whether the target of the shortcut is a folder, so that shortcuts to folders can sort with real folders. "That would allow them to sort properly without doing any additional work beyond that required to see its icon." (Commenter Josh agreed that "The performance re...

Other
May 27, 2009
Post comments count0
Post likes count0

Before designing and implementing around an assumption, it helps to check that your assumption is true

Raymond Chen
Raymond Chen

When your component depends on another component in the project, and that other component is missing features you need, you have a few ways of resolving the situation. Most people would recommend working with the people responsible for the other component during the project planning phase and coming to some sort of understanding about what you req...

Other
May 26, 2009
Post comments count0
Post likes count0

How to hide privacy violations in a privacy disclosure statement, part 2

Raymond Chen
Raymond Chen

It seems that nearly every privacy statement somebody sends me doesn't actually protect my privacy. They start out saying all sorts of great things, like Company X is committed to maintaining the privacy of its customers. After the section listing what information they collect, there's the section describing who they will disclose it to. ...

Non-ComputerReading the fine print
May 25, 2009
Post comments count0
Post likes count0

The latest installment of Wallace and Gromit coming to Seattle

Raymond Chen
Raymond Chen

The Seattle International Film Festival is under way, and you get only one chance to see Wallace and Gromit: A Matter of Loaf and Death, featuring our favorite inventor/cheese-aficionado and his trusty sidekick on their latest animated adventure. Be there on Saturday morning, but please leave the Stinking Bishop at home.

Non-Computer
May 25, 2009
Post comments count0
Post likes count0

Why can’t you change the alignment of an edit control after it has been created?

Raymond Chen
Raymond Chen

Commenter Kevin Eshbach asks why you cannot programatically change the text centering style of an edit control after the control has been created. The edit control is one of the original window manager controls, so it comes with a lot of history. First thing to note is that the message did not exist until Windows 95. The edit control preda...

Code
May 22, 2009
Post comments count0
Post likes count0

Chicken chicken chicken chicken

Raymond Chen
Raymond Chen

Chicken chicken chicken chicken. [pdf] Chicken: Chicken chicken chicken.

Non-Computer