Showing results for March 2010 - Page 3 of 4 - The Old New Thing

Mar 10, 2010
Post comments count0
Post likes count0

One of the consequences of accepting a job offer is that you might end up working with an interviewer who didn't like you

Raymond Chen
Raymond Chen

At an informal gathering, my colleagues and I started talking about our experiences being interviewed at Microsoft. One of the people there remembered how one of the pieces of feedback on the interview lo these many years ago was that although my colleague was certainly smart enough and hardworking enough, there seemed to be insufficient enthusiasm...

Other
Mar 9, 2010
Post comments count0
Post likes count0

Why is the fine for a basic traffic infraction in the state of Washington such a random-looking number?

Raymond Chen
Raymond Chen

Willy-Peter Schaub was puzzled by a sign reminding drivers that the fine for obstructing an intersection is $101 and wonders what the extra $1 is for. The laws of the State of Washington defer the monetary value of traffic fines to the Infraction Rules for Courts of Limited Jurisdiction (more commonly known as the IRLJ), specifically section 6....

Non-Computer
Mar 9, 2010
Post comments count0
Post likes count0

PSM_ISDIALOGMESSAGE is to modeless property sheets as IsDialogMessage is to modeless dialog boxes

Raymond Chen
Raymond Chen

Dialog boxes and property sheets are similar in that most of the time, you use them modally. You call or , and the function doesn't return until the user closes the dialog box or property sheet. But you can also use dialog boxes and property sheets modelessly, using or by including the flag when you call . One of the more common problems people...

Code
Mar 8, 2010
Post comments count0
Post likes count0

The best actors in the business still lean into the microphone when they talk

Raymond Chen
Raymond Chen

Now let me get this straight. The Oscars honor, among other things, the best actors in Hollywood. These are people who have devoted their professional careers to reciting dialog in front of a camera and making it look spontaneous and natural. But for some reason, put them on stage at the Oscars, and instead of reciting dialog spontaneously and na...

Non-Computer
Mar 8, 2010
Post comments count0
Post likes count0

Why doesn't double-right-click bring up the Properties dialog?

Raymond Chen
Raymond Chen

kip asks why double-right-click isn't a shortcut for Properties. Recall the logical consequences of the way Windows converts single-clicks into double-clicks. The double-click action is an extension of the single-click action. In the case of context menus, the proposed double-right-click action is not an extension of the single-right-click, bec...

Other
Mar 5, 2010
Post comments count0
Post likes count0

Delegation of responsibilities within a family during pregnancy

Raymond Chen
Raymond Chen

When friends of mine were expecting their first child, the wife frequently received comments like "That's okay. You're eating for two now." The husband had a response ready: "If she's eating for two, I'm drinking for three!"

Non-Computer
Mar 5, 2010
Post comments count0
Post likes count0

How do I access the magic IEEE floating point values like NaN in code?

Raymond Chen
Raymond Chen

There are functions like , , , and for detecting that a floating point value is one of the special values like NaN, but how do you actually generate one of these values? You can access these values from the template. Wait, where's negative infinity? The compiler folks provided these handy little definitions for when you need to generate ...

Code
Mar 4, 2010
Post comments count0
Post likes count0

Everyday is Grammer Day

Raymond Chen
Raymond Chen

March fourth is not just a pun on march forth, but it's also National Grammar Day, sponsored by the Society for the Promotion of Good Grammar.

Non-Computer