Showing results for November 2009 - Page 3 of 4 - The Old New Thing

Nov 12, 2009
0
0

Why can you create a PIF file that points to something that isn't an MS-DOS program?

Raymond Chen
Raymond Chen

James MAstros asked why it's possible to create a PIF file that refers to a program that isn't an MS-DOS program. (That's only part of the question; I addressed other parts last year.) Well, for one thing, there was indeed code to prevent you from setting PIF properties for something that isn't an MS-DOS program, so the precaution was already ...

History
Nov 11, 2009
0
0

Leave it to the Taiwanese to think of wrapping a donut inside another donut

Raymond Chen
Raymond Chen

The food known in Mandarin Chinese as 油條 (yóutiáo), but which in Taiwanese goes by the name 油炸粿, is basically a fried stick of dough, similar to a cruller, but puffier rather than cakey. The traditional way of eating it is to wrap it inside a 燒餅 (a sesame-coated flatbread), and dip ...

Non-Computer
Nov 11, 2009
0
0

Trying to avoid double-destruction and inadvertently triggering it

Raymond Chen
Raymond Chen

We saw some time ago the importance of artificially bumping an object's reference count during destruction to avoid double-destruction. However, one person's attempt to avoid this problem ended up triggering it. The explanation for the line was that it was done to avoid the double-destruction problem if the object receives a temporary during...

Code
Nov 10, 2009
0
0

I reorganized your kitchen for you, sweetie

Raymond Chen
Raymond Chen

I suspect most people are familiar with the It may be a mess, but it's my mess and I know where everything is phenomenon. That doesn't necessarily mean that items are in the best location, but at least you know which suboptimal location you chose. :: Wendy :: told me a story some time ago about something that happened while her parents...

Non-Computer
Nov 10, 2009
0
0

Little-known command line utility: clip

Raymond Chen
Raymond Chen

Windows Vista includes a tiny command line utility called . All it does is paste its stdin onto the clipboard. For the opposite direction, I use a little perl script...

Tips/Support
Nov 9, 2009
0
0

Stories of anticipating dead computers: Windows Home Server

Raymond Chen
Raymond Chen

Like most geeks, I have a bit of history with dead computers. In the past, I used the "wait until it breaks, and then panic" model, but recently I've begun being a bit more anticipatory, like replacing an old laptop before it actually expires. Anticipating another future dead computer, I bought an external USB hard drive for backing up important...

OtherDead computers
Nov 9, 2009
0
0

How do I create a toolbar that sits in the taskbar?

Raymond Chen
Raymond Chen

Commenter Nick asks, "How would you go about creating a special toolbar to sit on the taskbar like the Windows Media Player 10 minimised toolbar?" You would look at the DeskBand API SDK Sample in the Windows Platform SDK. The magic word is DeskBand. This MSDN page has an overview. Bonus chatter: I've seen some online speculation as to whether ...

Code
Nov 6, 2009
0
0

Signs that the symbols in your stack trace are wrong

Raymond Chen
Raymond Chen

One of the things programmers send to each other when they are trying to collaborate on a debugging problem is stack traces. Usually something along the lines of "My program does X, then Y, then Z, and then it crashes. Here is a stack trace. Can you tell me what's wrong?" It helps if you at least glance at the stack trace before you send it, ...

Code
Nov 5, 2009
0
0

The day the coffee machine exploded

Raymond Chen
Raymond Chen

Some time ago, Microsoft began installing Starbucks coffee makers in the kitchens, and caffeine addicts waited anxiously for the machines to reach their building. Or at least that's what happened on the main Redmond campus. But what about the satellite offices? I'm told that each satellite office qualified for an iCup machine when the number of ...

Non-Computer
Nov 4, 2009
0
0

In the product end game, every change carries significant risk

Raymond Chen
Raymond Chen

One of the things I mentioned in my talk the other week comparing school with Microsoft is that in school, as the deadline approaches, the work becomes increasingly frantic. On the other hand, in commercial software, as the deadline approaches, the rate of change slows down, because the risk of regression outweighs the benefit of the fix. A ...

History

Feedback