A few years ago I came across this poem. A must to have in any large project. // // Pointers to pointers to printf()-like functions, // Unary minus and nested conjunctions, // Integers, booleans, characters, strings, // These are a few of my favorite things! // // Encapsuled functions with routines embeded. // Parallel process to run multi-threaded.… Read More »

Compression algorithm

Found an article from May 2007 that haven’t been posted. About time I guess. :) Every now and then I get a bright idea about a new compression algorithm I have to test. Here are results from my latest idea: Debug checksum: 418 Original data: Tedd! Original data length: 5 Compressed data length: 7 Result (non-binary): 418,5,295700136 Time… Read More »

C# Image Analysis (“auto-gaming”) – with source

For the past couple of weeks I have been playing Age of Conan with Sara. I am Weathor, Aquilonian Priest of Mitra. MWAHAHA. :) As always I’m looking for something to tinker with. Just playing the game is not that fun. I’ve been searching for addons for AoC, but I can’t find anything useful. Basically they don’t support… Read More »

Tip: Upgrading VS2008 projects to VS2010

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 »

Setting up Debian with Varnish as internet proxy

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 »

WPF MVVM Thread annoyance

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 »

Refactoring IRC client with MVVM and “MDI”

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 »