.Net Dictionary speed and memory

I love writing and optimizing stuff that puts strain on memory and CPU. Lately I’ve been wondering how well the .Net Dictionary object performs, and after looking at the source code for it, Googling and SO’ing I thought it would be good to complete the project with some real-world data that could be shared. So … Read more

Resolving application path in .dll Web, Console, WinForms and WPF applications

When sharing .dll’s between desktop applications and web applications finding the current application path can be troublesome. For desktop applications you can usually just use the path of a loaded assembly (.exe or .dll) in the application directory. For web applications that won’t work since the .dll’s are copied to a temporary directory when the … Read more

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.

Should I defrag my SSD?

The answer is: “Yes!” and “No, never!” or somewhere between. SSD disks has overcome the physical limitations of traditional harddisks. It is actually not a harddisk any more because it doesn’t have a disk. Traditionally when you access a fragmented file the data is scattered around on the disk so the read heads has to … Read more