Showing archive results for 2011

May 3, 2011
Post comments count0
Post likes count0

Like a chicken talking to a duck

Raymond Chen

Many years ago, I called the home of my Chinese-speaking nieces. This was before they started learning English and before I started learning their dialect of Chinese. After the call was over, the eldest niece asked, "Who was that on the phone?" "That was Uncle Raymond." "Oh, I want to talk to Uncle Raymond!" Her mother replied, "That'd be like ...

Non-Computer
May 3, 2011
Post comments count0
Post likes count1

That's not a duck

Raymond Chen

One of the audio features added to Windows 7 goes by the formal name stream attenuation, but it is more commonly known to people in the audio world as ducking. Ducking is the process of lowering the volume of background sounds in order to draw more attention to the foreground sound. For example, when you're watching a big battle scene in a s...

Tips/Support
May 2, 2011
Post comments count0
Post likes count0

The Importance of Being Snooki

Raymond Chen

What if Jersey Shore were actually a play written by Oscar Wilde? Algernon Moncrieff and Jack Worthing from Broadway's current production of The Importance of Being Earnest explore that premise in a five-part series titled "Jersey Shore" Gone Wilde, drawing its dialogue from things actually said on "Jersey Shore". The dialogue and delivery are ...

Non-Computer
May 2, 2011
Post comments count0
Post likes count1

Hidden compatibility constraints of redirecting program execution via a stub

Raymond Chen

One of the "obvious" solutions to the issue of how much work you're willing to do to save 68KB of disk space was to replace one of the copies with a stub that launches the other copy. If you try this obvious solution, you may run into some compatibility issues. First of all, there are programs which launch Notepad and then wait on the process ...

Other
Apr 29, 2011
Post comments count0
Post likes count1

Not quite understanding why you wash your hands before playing the piano

Raymond Chen

My niece wanted to play my piano, and I asked her to wash her hands. She said, "I don't need that, I have Magic Soap," and she produced a bottle of hand sanitizer. Um, the purpose of washing your hands isn't so the piano doesn't get sick. My piano-instructor cousin-in-law tells me that her young students often say, "My hands are not dirty. They ...

Non-Computer
Apr 29, 2011
Post comments count0
Post likes count1

Why is there a RestoreLastError function that does the same thing as SetLastError?

Raymond Chen

Matt Pietrek noticed that and do exactly the same thing and wondered why there's a separate function for it. It's to assist in debugging and diagnostics. Say you're debugging a problem and when you call you get . It would really help a lot if you could figure out who set the error code to . If you set a breakpoint on , you find that people...

Code
Apr 28, 2011
Post comments count0
Post likes count1

Microspeak: Hipo

Raymond Chen

A friend of mind was asked out of the blue, "What does hypo mean?" She started to flash back to high school English class and Greek word roots. "I've started to hear it everywhere. Like Everyone in that meeting is a hypo or We need to reach out to hypos." My friend realized that she had mis-heard the question. It was not about the Greek root hyp...

Non-ComputerMicrospeak
Apr 27, 2011
Post comments count0
Post likes count1

How do I pin a program directly to the Start menu rather than a shortcut?

Raymond Chen

Anonymous bemoans the fact that pinning programs to the Start menu (in Windows XP) actually pins the shortcut rather than the program itself. This means that if you right-click on a shortcut to pin it, then delete the shortcut, the pinned item stops working. How do you pin the program directly? You pin the program directly by right-clicking ...

Tips/Support
Apr 26, 2011
Post comments count0
Post likes count1

No, you can't ask whether your notification icon is visible or not

Raymond Chen

A customer asked what started out as a simple question, but by now you know that this sort of simple question only raises new questions: Is there a way that we can detect that the user has hidden our notification icon? No, there is no way to ask whether your notification icon is hidden or visible. Users decide which icons they want to see, and y...

Code
Apr 25, 2011
Post comments count0
Post likes count1

There's only so much you can do to stop running code from simulating UI actions

Raymond Chen

Commenter KiwiBlue asks whether Captcha-style tests were considered to prevent unsigned drivers from programmatically clicking the 'Install anyway' button. I'm sure somebody considered it, but Captcha has its own problems. "Type the (distorted) letters below"-type Captcha cannot be used by people with visual impairments, people who are dyslexic,...

Other