XmlWriter that automatically close elements using IDisposable

System.Xml.XmlWriter provides an easy and lightweight way to write xml strings, unfortunately it has a little gotcha. consider the following xml string (borrowed from IronPython in Action): Using XmlWriter the following code is needed to create that string: Keep in mind the fact that the code above only creates 5 lines of xml, and as … Continue reading XmlWriter that automatically close elements using IDisposable

Three different ways to raise events in C#

The Event model in C# finds its roots in the event programming model that is popular in asynchronous programming. The basic foundation behind this programming model is the idea of "publisher and subscribers." In this model, you have publishers who will do some logic and publish an "event." Publishers will then send out their event … Continue reading Three different ways to raise events in C#

How-to Render managed (.NET) form using native DirectX

Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Although a managed DirectX exist some of the time you need the power of C++ when using it. In the past I used DirectX with C++ for image processing and video … Continue reading How-to Render managed (.NET) form using native DirectX

New StackOverflow Notifier Released

This is a maintenance release until I finish the new features I’ve promised. Changes: Added Proxy Support so that users behind firewall can use SO-Notifier. I’ve done a few changes to reduce the bandwidth overhead of the application.   As suggested by Jeff Atwood I’m using gzip http header specified to reduce network bandwidth. It … Continue reading New StackOverflow Notifier Released

StackOverflow Notifier update

Due to a (stupid) bug I accidentally caused SO notifier to poll the StackOverflow site every half a second. The new version has a polling interval of once per hour. In case you want to use StackOverflow Notifier use this newer version instead so your IP won't be banned.

If you’re using StackOverflow Notifier – Read this!

This morning my client has stopped working on my computer. After checking the usual suspects (network connection, proxy server etc.) I discovered that only http://www.stackoverflow.com blocks my web requests. After a quick search on the Internet I found the following post on StackOverflow blog: We’ve noticed there are a number of users running a script … Continue reading If you’re using StackOverflow Notifier – Read this!