The Old New Thing

I'd like to register my stolen car, please

On NPR's All Things Considered Robert Siegel reported on the curious status of legally stolen cars in Gaza. Gaza license plates can be red for official, green for taxis, and white for private vehicles. The lower the number on the red plates, the higher the position of the official. The number 30 designates a truck. All this is pretty ...

When is a window visible yet not visible?

Today, a quick puzzler. Consider the following code fragment: We just showed the window, certainly it is visible, right? Yet the assertion can fire (even in the absence of multi-threading). Why? Answer below - stop reading if you want to try to solve it yourself. Take a look at the function. If the specified ...