Category: Quickies

0

Good Bye HTML5 – Welcome HTML5.1!

As you might have already heard the W3C has finally officially published a recommendation for the (15 years old) HTML5 standard. In fact, HTML 5.0 has (co-)existed for quite some time now. Numerous frameworks...

Source Code Icon 0

Remove Passphrase from SSL Keys

When it comes to generating SSL keys passphrases play an immanent role. They need to be specified when creating SSL keys and are checked each time the key is being used to ensure authorized...

Unable to remove read-only attribute for folder on Windows 0

Unable to remove read-only attribute for folder on Windows

Recently I ran into a little problem when trying to remove the read-only flag from a folder to be used as data store for a web application. Trying to remove the read-only attribute via...

Determine last day of month using Bash script 1

Determine last day of month using Bash script

Oftentimes software systems need to carry out tasks on a regular basis at a given time, such as archiving log files or sending out newsletters. Normally cron is able to handle all kinds of...

How to access loop counters in Smarty 0

How to access loop counters in Smarty

Sometimes Smarty’s syntax is not quite self-explanatory. Recently I was asked how loop counters can be implemented for foreach-loops. According to the API docs there’s an @iteration directive for this case, such that the...

Problem activating Wireless USB adapter (WN727N) under Windows 7 64bit 3

Problem activating Wireless USB adapter (WN727N) under Windows 7 64bit

Recently I ran into the problem of setting up a Wireless USB adapter (TP-Link WN727N V3) under Windows 7 x64. Although the driver installation went smoothly it failed to activate. Running the built-in diagnostics...

Updating Tables across multiple Databases 0

Updating Tables across multiple Databases

Recently I was asked if it is possible to update tables with data from other databases. Of course it is 🙂 Imagine the case where you want to update your customer table with data...

Source Code Icon 2

Selecting nth sibling using XPath

XPath (XML Path Language) can be used to parse highly complex XML structures without the need to iterate over each node independently. A likely use case is to select the nth sibling or nth...

Auto Mount TrueCrypt Drives on Windows Boot 0

Auto Mount TrueCrypt Drives on Windows Boot

Update: Please do not use TrueCrypt anymore. Development of TrueCrypt was discontinued a while ago due to numerous security flaws detected in the core part. In fact, TrueCrypt is not secure and you should...

Error loading Python DLL: python27.dll (error code 193) 2

Error loading Python DLL: python27.dll (error code 193)

Recently I needed to run a Python based application on Windows 7 x64 with Python 2.7.3 64-bit already installed. Unfortunately, the target application did not start, instead the following error was displayed: One might...

Solving error “interactive login denied” in Microsoft Virtual PC running in Windows XP Mode 4

Solving error “interactive login denied” in Microsoft Virtual PC running in Windows XP Mode

If you receive the error “The local security policy does not allow you to log in interactively” when trying to login to a virtual machine instance in Microsoft Virtual PC running in Windows XP...