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 web application starts.… 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, etc I’ve put… 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 and the best… Read More »

ArrayBuilderQueue

… is that the right name? It basically works like a combination of the StringBuilder and Queue objects. You enqueue arrays of T, and you dequeue custom sized chunks of the array. What makes it nice is that I’ve optimized memory usage so it never creates any temp arrays internally except the one returned to you when you… Read More »

IE favorites, NTFS symbolic links and Dropbox

NTFS symlinks Well-known to *nix-users, unknown to most Windows-users. A file or folder can exist in more than one place, meaning the file is stored once to disk, but can have two different names on different locations. If you change it one place the change happens to the other place. I won’t bother going into details, but in… Read More »

Optimizing RDP for casual use (Windows 7 SP1, RemoteFX)

NOTE: I have made new blog-post containing useful info about RDP 8.x (i.e. Windows 8) Using RDP Since some time back around 2000 I’ve been running a dual desktop configuration at work. One screen for my laptop at work, and one screen with RDP home to a more powerful computer. Since I spend most of my time in front… Read More »

Another day, another bug…

This time it is NVIDIA User Experience Driver Component. I usually have two gfx cards, one ATI and one Nvidia. Currently the Nvidia card is not inserted, but the drivers are still active. Every now and then this happens: And guess when I killed it…

Android vs WinMo 6.5

Last Friday I replaced Windows Mobile 6.5 (WinMo) with Android on my HTC HD2. I used a cracked Android-version based on HTC Desire HD which is very similar to the HD2. The interesting thing about this “upgrade” is that it is possible to compare WinMo and Android directly without putting too much weight on differences in hardware. So… 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…