Hi! Tom doesn't post here anymore. Please go here to see new posts.

Friday, September 26, 2008

Sorry IE7 Users

By the way I'd like to apologize to anyone who has viewed my site recently with Internet Explorer 7.  Sometimes it rendered very badly, randomly writing text all over the place, shifting boxes around and generally looking ugly (see below).  It had something to do with an overflow:hidden CSS attribute in the rounded boxes, which apparently is not well liked by Internet Explorer.  I had to implement one of those "conditional comment" hacks to use an alternate style sheet for Internet Explorer browsers.

Read more…

Friday, September 19, 2008

Finally != Inevitable

For future reference:  I had always heard that there were cases where finally blocks were not run.  The other day I actually witnessed one of those situations:  In a .NET console app, if you hit CTRL-C to exit the application, finally blocks are not executed.  Fortunately garbage collection will still handle standard cleanup of objects for you (at least I assume so).  But if you need to do something special you have to use the System.Console.CancelKeyPress event, like so.

Read more…