Windows 7 x64 32 Bit ODBC

05:44 PM

[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

If you need to create a ODBC Datasource for 32 Bit Applications under Windows 7 x64 you have to use C:\Windows\SysWOW64\odbcad32.exe. More info can be found in this tutorial.

Windows 7 OpenVPN

05:21 PM

Successstory: OpenVPN Build 2.1_rc19, released on 16.07.2009, successfully installed on Windows 7 x64!

Mysterious data changes

04:36 PM

This error has cost me almost two days to debug:

Conditional Breakpoint

Its only symptoms where spurious but widespread changes to a single property. While this is “obviously” human error, these “easy” points would have mitigated the damage done:

  • strict type checking: the expression is of type string and not of type bool, the C# compiler would have known the difference and issued an error
  • in-band evaluation: The expression didn’t trigger breakpoints within the MethodName property. This would have pinpointed the cause of the data change immediately
  • constant vigilance!

Puppet Module Repository Beta

03:08 PM

Finally! Luke and I took out a minute and hashed up a scheme to get the ball rolling on a central one-stop-shop for puppet modules.

Let me quote the pertinent part from Luke’s mail:
Read the rest of this entry »

XCache

09:46 AM

Installed XCache a few days ago. Traded 64MB RAM for instant PHP speed goodness. Sometimes you can have your cake AND eat it. :)

subst and TortoiseSVN/TortoiseGIT status caches

12:12 PM

TortoiseSVN and TortoiseGit use the TSVNCache.exe to collect all update notifications and update the status overlay icons in one place. This provides real-time updates and improves latency when showing folders in the explorer.

On the downside, TSVNCache is easily confused by subst.exe since it’ll receive updates only for one of the locations. The TortoiseGIT documentation provides this work-around:

[...] exclude the original path from showing overlays, so that the overlays show up on the subst path instead.

We use subst to have a default “project drive” located at P:, therefore I disabled updates for all drive types and only set the “Included Paths” option to “P:\”.

Attaching Events to ListViewItems in WPF

01:13 PM

I was looking for a way to attach a MouseDoubleClickHandler to the implicitly generated ListViewItems in a databound control:


<listview ItemsSource="{Binding Instances}" />

For some strange reason all the mouse events seem to be directly routed instead of bubbling like other input events. Only some magic of the framework causes them to be raised for every hit control. This causes the sender to be totally worthless, since it is always the “current” object.

Read the rest of this entry »

What is puppet?

03:15 PM

Puppet is an application to automate the configuration of UNIX systems. The puppet master defines the intended system state (packages, files, services, etc) on a central server. On the managed installations an agent regularly fetches the manifest and applies it to the system. The agent sends information (like hostname or IP address) from the system to the server. This can be used to parametrise the configuration.

Read the rest of this entry »

Migrating User Profiles and Outlook

01:07 PM

I’ve joined my computer to a Domain. Therefore I migrated my User Profile (under Computer -> Properties -> Advanced System Settings -> User Profiles). It… let’s say: worked.

But I couldn’t save attachments in Outlook.

Can’t create file: Right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder

The problem is, that Outlook saves a path to a “OutlookSecureTempFolder” in the registry. This path pointed to my old profile where my new user has no right to write to. I changed the path to my new profile path, restarted Outlook and it worked.

Source: http://msmvps.com/blogs/steveb/archive/2007/08/24/can-t-open-or-save-an-attachment-in-outlook-2003.aspx

C++ templates for Fun and Profit

11:36 AM

Wijaa asks on stackoverflow: What’s the most brilliant use of templates you’ve ever encountered?

Reading the linked articles gave me much joy. Here are some highlights:
Read the rest of this entry »