Reading a Binary XML stream in WCF

If you don’t provide a dictionary to read the XML stream with, you will get a weird and unhelpful exception that says “the input source is not correctly formatted”, and googling around will only bring you to posts telling you that “your client/server endpoints are not matched” or “you need to use the basicHttpBinding”. This is not a binding issue – it’s a deserialization issue that comes up when i make an attempt to inspect the soap messages coming in to (or going out of) my WCF service.

Installing VMware Tools on VMware Player 4.0.2 – Temporary fix

While looking for a fix for the inability of VMware player 4.0.2 to get updated vmware tools (I was getting the error message “Could not find component on update server. Contact VMware Support or your system administrator.”), I found a workaround on the vmware community threads. They say the issue will be fixed in a […]

Specifing the bridging network adapter in vmware player 4

For those of you using VMware Player 4 on linux hosts, if you’re not happy with the autobridging for the vmnet0 network, you can choose a specific network adapter to bridge to using vmware-netcfg.

How TestDisk and the GParted LiveCD saved my deleted partitions

I was messing around with Vmware converter (in windows XP, running from a dual-boot partition), and then I kept getting the following message: “FAILED: Unable to find the system volume, reconfiguration is not possible” at 95% in the reconfiguration step. Apparently the windows ‘System’ drive was not marked as active. This was indeed true, because […]

Compile Nvidia Driver 195.36.31 for Debian Squeeze with backported kernel

I’ve been trying to get a backported kernel to work on my installation of Debian Squeeze, but it seems some include files are not included in recent kernel versions. There are also some issues with Kernel version checks in the Nvidia Makefiles.

I finally got it to work by combining information from the Debian Wiki and Paul Goins’ blog at vultaire.net

Reset Forgotten Local Administrator Password on Windows

Where angels fear to tread, fools rush in. I happily removed my computer from the domain and restarted Windows 7. When the computer came back up, I couldn’t login with my domain user account – which was not surprising. However, I could not log in with the local admin account either! I had reset the password like 6 months ago and forgotten about it. Now I couldn’t log in to the computer, and no one could help me remotely.

Posted in Tech Tips. Tags: , , , . 1 Comment »

ConvertEmptyStringToNull not working with ASP.NET SqlDataSource Parameters

The ConverEmptyStringToNull property of SqlDataSource Parameters does not work for asp.net 2.0 applications. You probably need this kind of setting when you have a stored procedure that can handle null as a valid parameter value, but the framework assumes nothing has been supplied and prevents the select/insert/update/delete statement from executing.