Locating config file from .dll in both Desktop and Web applications

I’m using Nini for most my config needs. Nini is a .Net library for reading/writing/merging all kinds of config files. It provides a good API with type conversion, default values, etc. To be able to access both app.config and web.config using Nini in .dll files included in test projects, desktop applications, services, web applications, webservices, … Read more

Unsafe kernel32-mapped memory Bitmap WPF

Okay, its vacation time so I thought I’d take time from vacation (and from reading news about the terror attacks in Oslo that happened a few miles from here) to do a little post. This time is an unsafe kernel32 memory mapped bitmap image I’m constantly improving upon. I do a lot of DSP-related stuff … Read more

Kinect face recognition

Using OpenCV haar image processing library to find faces on Kinect RGB cam real-time. Source will be released, but I’m in the middle of some major refactoring so hold on a bit longer…

Kinect OpenCV object recognition

OpenCV SURF object recognition. Capable of detecting object that is tilted and rotated. Using EmguCV OpenCV .Net wrapper. It’s part of my Kinect starters kit, a framework and a few sample modules for playing with Kinect programming in C#. Source will be released soon.

.Net GUI thread crossing

In this article I thought I’d try to explain the exception: Cross-thread operation not valid: Control ‘someControl’ accessed from a thread other than the thread it was created on. This article is a simplification and applies to WinForm and WPF (though samples are for WinForm). What is the GUI thread? When an application starts the … Read more

Early alpha release: Kinect C# Starter Kit

NOTE: Microsoft has released Kinect SDK since this article was written. You probably want that instead of this. 🙂 Much of the stuff I’m doing with Kinect involves two input pictures and one output I figured I’d make a platform to make it easy to test new stuff. The main idea is that I can … Read more

Kinect

Yesterday I bought a Kinect and hooked it up to my PC. After a couple of hours of compiling drivers and finally realizing I had to switch USB ports for the camera to work I could start writing code. I used the CLNUIDeviceTest as a base since it already had the lines of code required … Read more

Merging multiple Visual Studio Solution (.sln) files into one (Outdated)

Update: As commented by ‘pifcnt’ this is for VS2010 files. Today I had the daunting task of combining multiple solution files into one. The reason for this was that the project I’m working on originally started as multiple separate solutions with shared projects. Now we find it more convenient to have it in a single solution … 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 … Read more