Many of us are upgrading our projects to Visual Studio 2010 nowadays. You start Visual Studio 2010, load the project and the conversion wizard pops up. You click finish, try to compile and get a bunch of errors. Oh no! The fact is that what Visual Studio version you are using is totally irrelevant to the code. If… Read More »
Varnish is a great http accelerator, “10 times faster than squid”. This partially due to its use of modern computer architecture. Although its main purpose is as a web server accelerator it can also be used as a traditional internet accelerator/cache. The web page FAQ says it requires a lot of work though. But there is a simpler… Read More »
Sweet… :) Status and channels open in pure binding to ViewModel.
In WinForms one of the annoyances is that any GUI operation requires invoking GUI thread to do it. I wrote a blog article on a quick hack to bypass it. I was really hoping this limitation was gone in WPF, but alas… Lately I’ve been refactoring my IRC client to use a MVVM-like architecture. In MVVM ViewModel should… Read More »
A screenshot of the first working window after refactoring the IRC client. I had to create my own MDI window in WPF as it doesn’t support it. Extra fun when it doesn’t support inherited user controls, but that wasn’t too difficult to solve. Just made a class to inherit MDI window and then programmatically added a user control… Read More »
This post is a bit of a personal rant on whether or not to use MVVM. I’m comparing MVVM with my current architecture and try to look at a few pros and cons. Clearly MVVM is not optimal, but there might be parts to borrow. At the moment I’m doing some heavy refactoring of the IRC client I’m… Read More »
Make sure people can’t autoconnect!
In .Net WinForms (and WPF for that matter) only the main GUI thread is allowed to make any change to GUI. If you attempt to do so from another thread then Visual Studio MDA will let you know that you made a mistake. This is actually an improvement from VS2003 where nobody said anything, so your application would… Read More »
I’m using BitLocker for HD encryption on all partitions, USB disks and USB pens. For USB* it works fine by just asking for a password. But for HD encryption it is a bit more complicated. Basically BitLocker should encrypt your HD without you having to provide any password at every startup. It should also be secure from tampering… Read More »
For most ASP.Net applications I make I add some code that emails me any unhandled exceptions. This way I immediately know when something has gone wrong with an application. The email contains a lot of useful information, including a MiniDump of the process. If you are not familiar with it, a MiniDump is a snapshot of the process… Read More »