.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

Disable Windows 7 Sound Card Jack Sensing

Windows attempts to auto detect any changes to the plugs in your sound card. That doesn’t work well with my sound card (X-Fi something) so the speakers keep falling in and out randomly. Solution: The sound card drivers are located under the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E96C-E325-11CE-BFC1-08002BE10318} Search for “EnableDynamicDevices” (located under GlobalSettings somewhere) and set it … 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

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 … Read more