SuSE Linux (SLES) 11: SSH authentication via Kerberos (GSSAPI) with PuTTY and Windows Server 2008

After many days of trial and error, today I finally managed to automatically log on to my SuSE Linux 11 (SLES11) server with PuTTY using Kerberos authentication by a Windows Server 2008. Here are the exact steps I followed to reproduce the working configuration: Follow the setup described in Michele’s blog: Active Directory and Apache [...]

Setting the position of guidelines in PowerPoint from a VBA script

As I had to find out today, you cannot set the position of guidelines in PowerPoint from a VBA macro. But if you need a set of accurately positioned guidelines like shown in the screenshot below (exactly 32 vertical guidelines with the same distance between them), it would be almost impossible to position them by [...]

Permanently setting Windows environment variables from scripts (e.g. PowerShell)

To permanently set Windows environment variables (e.g. PATH) from a (PowerShell) script, you can use setx or Set-ItemProperty like this (for the current user): setx VARIABLE value Set-ItemProperty -Path ‘Registry::HKEY_CURRENT_USER\Environment’ -Name VARIABLE -Value “value” And here is the result:

Enable daily Java Updates in Windows 7 (64bit)

Java has had quite a few security issues recently. Therefore, it definitely makes sense to enable the Java Updater and to install every Java update right after Oracle releases it. However, on my different Windows (64bit) boxes I could not configure the Java Updater. There was simply no “Update” tab in the Java control panel. [...]

Database is locked when committing to a Subversion repository

I added a new Subversion repository on our Debian webserver today and got the following error messages when committing to it: [Wed Oct 10 ...] [error] [client ...] mod_dav_svn close_stream: error closing write stream [500, #200029] [Wed Oct 10 ...] [error] [client ...] Couldn’t perform atomic initialization [500, #200029] [Wed Oct 10 ...] [error] [client [...]

System error 5 when accessing a network share on Windows 2008 using a DNS alias name

When I tried to access a network share on a Windows 2008 server locally (!) today using a DNS alias I configured, I got System error 5 has occurred. Access is denied (Systemfehler 5 aufgetreten. Zugriff verweigert in German): As you see in the screenshot, the shares are enumerated correctly when using the server’s computer [...]

Setting up the JDBC adapter in webMethods’ Integration Server to connect to an Oracle database

Today, I wanted to use the JDBC adapter in webMethod’s Integration Server to connect to a database from a Java service. As it turns out, the configuration was quite frustrating for me. Here’s a history of the problems that appeared while trying to get a database connection running: Error encountered [ART.118.5042] Adapter Runtime (Connection): Unable [...]

Migrating an existing Scuttle database to SemanticScuttle

I’ve migrated my existing bookmark collection from Scuttle to SemanticScuttle. All it took was these three lines of SQL: INSERT INTO semanticscuttle.sc_users (uId,username,password,uDatetime,uModified,name,email,homepage,uContent) (SELECT * FROM scuttle.sc_users); INSERT INTO semanticscuttle.sc_bookmarks (bId,uId,bIp,bStatus,bDatetime,bModified,bTitle,bAddress,bDescription,bHash) (SELECT * FROM scuttle.sc_bookmarks); INSERT INTO semanticscuttle.sc_bookmarks2tags (SELECT * FROM scuttle.sc_tags);

PowerShell: Configure some basic Windows settings after a fresh installation

After installing Windows I always started configuring the same old basic settings: move Desktop, Documents, Music, Videos, Pictures folders to D:\ configure some basic settings in Windows Explorer folder options (e.g. show hidden files, show file extensions) remove Internet Explorer from taskbar and add PowerShell to it Today I set up a few virtual machines [...]

PowerShell: Check whether a Windows command or executable is available

In one of my recent PowerShell scripts I needed to find out if certain commands (in my case “svn”, “git”, “ant” and “mvn”) were available or not. I wrote this small function that tries to call the given command and returns whether it is callable. function commandAvailable($cmd, $options) {   $error.clear();   $ErrorActionPreference = "silentlycontinue"; [...]