Showing results for April 2009 - Page 2 of 3 - The Old New Thing

Apr 22, 2009
0
0

If you can’t find the statistics you want, then just make them up

Raymond Chen
Raymond Chen

Yesterday, the Wall Street Journal reported on America's Newest Profession: Bloggers for Hire and included this handy little chart: I found this number hard to believe, so I followed the Source link to the information from the Bureau of Labor Statistics. I found that, yup, in a May 2007 survey, the Bureau of Labor Statistics estimated that the...

Non-Computer
Apr 22, 2009
0
0

What structure packing do the Windows SDK header files expect?

Raymond Chen
Raymond Chen

/Zp8 In words, integral types and pointers up to eight bytes in size are stored at their natural alignment. Larger types are stored at eight-byte alignment. In other words (saying it a third time), let be an integral or pointer type. If ≤ 8, then is aligned at a -byte boundary. If ≥ 8, then is aligned at an 8-byte boundary.

Code
Apr 21, 2009
0
0

How to answer the telephone, according to the manual

Raymond Chen
Raymond Chen

I have a fancy new office telephone with a bajillion features (most of which I will never even find, much less use). The telephone comes with a helpful manual, explaining how to carry out various tasks. For example: Answering a Call Using the Handset: Pick up the handset. Cool, I was wondering about that.

Non-Computer
Apr 20, 2009
0
0

Principles of economics, translated

Raymond Chen
Raymond Chen

Yoram Bauman, the stand-up economist translates Mankiw's ten principles of economics into English. The proof presented in the footnote to principle 5, as well as an extended version of the translation, can be found in the Annals of Improbable Research.

Non-Computer
Apr 20, 2009
0
0

The dangers of destroying a window while it is processing a sent message

Raymond Chen
Raymond Chen

Commenter BryanK wonders why weird things happen if you destroy a window while it is processing the message. He suspects that it's similar to the problems you encounter when you destroy a window in response to the message. Although I haven't studied the situation, I wouldn't be surprised if the problem is indeed entirely analogous. It just f...

Code
Apr 17, 2009
0
0

Why is the animation common control limited to RLE8-compressed animations?

Raymond Chen
Raymond Chen

The animation common control is very limited in the type of animations it can play. The animation must be in AVI format, it cannot have any sound, and it must be either uncompressed or use RLE8 compression. Why so many restrictions? Because if it could handle other file formats, play sound, and support arbitrary codecs, it would just be a reimple...

History
Apr 16, 2009
0
0

The frustration of people who are not interested in why something works but only interested in the magic phrase they need to type

Raymond Chen
Raymond Chen

It's frustrating when people who are presumably smart (or who are at least pretending to be) have a problem and are satisfied to receive the magic phrase they need to type with no interest at all in understanding why the magic phrase works. For example, here's a question sent to an internal mailing list for users of something I'll call Program&nbs...

Other
Apr 15, 2009
0
0

Taxes redux: You can’t open the file until the user tells you to open it

Raymond Chen
Raymond Chen

One of the so-called taxes of software development on Windows is being respectful of Hierarchical Storage Management. You can't open a file until the user tells you to open it. This rule has consequences for how Explorer extracts information about a file, because what you definitely don't want is for opening a folder full of archived files in Expl...

Other
Apr 14, 2009
0
0

Microspeak: The plate

Raymond Chen
Raymond Chen

To have a lot on one's plate means to have a lot of tasks and responsibilities. We shouldn't give this task to Bob. He already has a lot on his plate. (Or: He already has a full plate.) At Microsoft, this common English language idiom is treated as a normal part of the language. The metaphorical plate has become a synonym for assigned tasks an...

OtherMicrospeak
Apr 13, 2009
0
0

Why is there no support in the window manager for mouse button chording?

Raymond Chen
Raymond Chen

Commenter Nekto2 asks why there is no mouse action associated with "click both buttons at the same time". The window manager doesn't fire a special event for both mouse buttons held down simultaneously like it does for double-clicks. As with higher-order clicks, mouse chording is something that you have to put together yourself from the basic m...

Other