Posts by this author

Mar 14, 2006
Post comments count0
Post likes count0

Top ten things to do to make your application a Vista application

On MSDN, there's a series of articles on the top ten things to do to make your application a Vista application. The series began last December, and just this month, they covered a topic dear to my heart: Application compatibility. [Update 2pm: If you have feedback about these articles, posting that feedback here won't accomplish much since I am...

Other
Mar 14, 2006
Post comments count0
Post likes count0

Controlling resource consumption by meting out work items

At the PDC, one person came to talk to me for advice on a resource management problem they were having. To simplify, their system generated dozens of work items, each of which required significant resource consumption. For the sake of illustration, let's say that each of the work items was a single-threaded computationally-intensive operation that ...

Code
Mar 13, 2006
Post comments count0
Post likes count0

The social skills of a thermonuclear device, part 2

I guess I'm living up to my reputation of having the social skills of a thermonuclear device: From: <name withheld> It'd be awful swell of you to add my blog to your blogroll. You don't know me, and I know you only by your superlative writings, but I'm a big fan. http://<link withheld> P.S. Would you like you home remortgaged?...

OtherThe social skills of a thermonuclear device
Mar 13, 2006
Post comments count0
Post likes count1

A thread waiting on a synchronization object could be caught napping

If you have a synchronization object, say a semaphore, and two threads waiting on the semaphore, and you then release two semaphore tokens with a single call to , you would expect that each of the waiting threads would be woken, each obtaining one token. And in fact, that's what happens—most of the time. Recall in our discussion of why the ...

Code
Mar 10, 2006
Post comments count0
Post likes count0

Betsy's interview tip: Wear pants

Last year, our retiring Blog Queen Betsy Aoki reminded us to wear pants.

Non-Computer
Mar 10, 2006
Post comments count0
Post likes count1

Why does the size of a combo box include the size of the drop-down?

Many people are surprised to discover that when you create a combo box (either in code via or indirectly via a dialog box template), the size you specify describes the size of the combo box including the drop-down list box, even though the drop-down list box is not visible on the screen. For example, if you say that you want the combo box to be 20...

History
Mar 9, 2006
Post comments count0
Post likes count0

If you ask for a window caption, you also get a border

Some people may have noticed that the is defined as the combination of and : Since includes , it is impossible to get a caption without a border. Sometimes people don't quite get this and keep asking the question over and over again, and I have to keep trying to explain the laws of logic in different ways until one of them finally sinks in...

Code
Mar 9, 2006
Post comments count0
Post likes count0

Reading the fine print, episode 3: What's in the bottle?

Caught out by the FDA. I happened to be in the bug spray section of the store when I spotted a bottle of mosquito repellant that proudly proclaimed "100% DEET". But the FDA-mandated labelling tells a different story: 95% 5% Similarly, foods labeled "zero fat" are actually allowed to contain up to a half gram of fat. (Well,...

Non-ComputerReading the fine print
Mar 8, 2006
Post comments count0
Post likes count0

Reading the fine print, episode 2: Portable headphones

Marketing writes the big print; lawyers write the small print. I bought some portable stereo headphones. The front of the box says you can use it "while in-line skating, power walking, biking, jogging, skiing, running, weightlifting, climbing and more." (Emphasis mine.) The back of the box says that it should not be used "while driving or cyclin...

Non-ComputerReading the fine print
Mar 8, 2006
Post comments count0
Post likes count0

Why is there no message for disabling the Cancel button on a wizard?

Some people have noticed that there is no message that lets you disable the Cancel button on a wizard. This is on purpose. Usability studies reveal that users find it extremely frustrating when they get partway through a wizard and then decide they don't want to perform the operation after all, but find that the wizard doesn't give them a way to ca...

Code