Net::INET6Glue version 0.6.2 is now available in pkgsrc as net/p5-Net-INET6Glue. Patched to avoid warnings with the default Perl version 5.20. Enjoy!

Blockquoted code blocks

Written in the mid-afternoon in English • Tags: , ,

I’ve been writing in Markdown for nine years now, because it allows me to spend more time on content as opposed to formatting. Using it with WordPress has required a couple of bug-hunt sessions, but overall I feel it has been a time-saver.

This week I spent a little bit of time experimenting with formatting code snippets. While looking into my earlier writing I realized I’ve had an issue with code snippets repeatedly. Today I took the time to fix the problem by changing the Markdown parser slightly. (more…)

Two-factor authentication for WordPress

Written late in the morning in English • Tags: , , ,

Content management systems are being targeted by brute-force password attacks. Improve the security of your self-hosted WordPress blog by installing the Google Authenticator plugin. (more…)

Total keyboard control

Written at evening time in English • Tags: , , ,

I was researching what people do about keyboard mappings when using virtual machines or remote desktop connections from their Macs, especially when the other system is running Windows. Different software packages map the keyboard differently and some even have different modes that provide different mappings. Now whenever I see a Windows desktop, I have no idea what keys to press anymore.

My research led me to KeyRemap4MacBook. It comes with a kernel driver that lets you map any key presses you like, in one or more applications, on one or more keyboards. All this power is configurable in XML and selectable through a preference panel applet.

I haven’t fixed my Windows keys yet (partially because I realized I might want to keep Alt as Alt, instead of using Cmd), but I have added a binding to switch keyboard layouts using a combination similar to the one used on Windows: Command + Left Shift (or Shift + Left Command, if you prefer). As far as your muscle memory is concerned, this maps to Alt + Left Shift on a PC keyboard.

I switch between the Finnish and US English layouts, so I also needed to add support for the Finnish input mode. This is why I added the bindings in checkbox.xml instead of private.xml (see patch) — you could add similar entries in the latter file for the input modes you need.

Update: My patch has been merged upstream and is included in version 7.2.47 and later.

Fixes to VMware Tools

Written at evening time in English • Tags: , , , ,

I just patched a couple of ESXi hosts to 4.0.0 build 256968 and found that VMware Tools were no longer loading after upgrading them. After some digging everything is more or less back to normal. (more…)

SqueezeCenter 7

Written in the mid-afternoon in English • Tags: ,

I’ve been slowly pushing upgrades through my NetBSD machines and recently upgraded the “music server” that runs SlimServer to power my SqueezeBoxen. That brought a new version of Perl on the machine, which made SlimServer unhappy — it wouldn’t start anymore. I tried to rerun the little script that downloads the “blessed” versions of various CPAN packages from Slim Devices, but the files needed for my trusty old 6.2.1 version were no longer available on their server.

Well, I can’t live without the SqueezeBoxen so an emergency update was needed. (more…)

Search tweaks

Written at evening time in English • Tags: ,

Some time ago I added some UTF-8 pages to this site. I promptly started receiving one error message per page from the Swish-e search engine I’m using. Of course, the search results also showed “garbage” since Swish-e only handles single byte characters.

Today I got tired of the errors arriving in my mailbox, so I dug into the code and fixed things. (more…)

Entity fix for WordPress

Written at evening time in English • Tags: , ,

I was having trouble with ½ and ¾ in an article I was trying to publish on another WordPress-powered site. First I thought my browser was acting up, but soon became doubtful and realized I should look at the source of the page generated by WordPress. To my surprise I saw that the entity codes had been deliberately mangled.

I tracked down the source of the problem in the WordPress code. This patch fixes the problem.

EtherIP added to NetBSD

Written at evening time in English • Tags: , ,

Hans Rosenfeld ported EtherIP support from OpenBSD to NetBSD 2.0. Today I’ve committed that work to NetBSD-current, to be included in future releases of NetBSD.

EtherIP (RFC-3378) makes it possible to bridge Ethernet networks using tunnels over the Internet. While you could already use tunnels for IP traffic, now they can be used for any Ethernet traffic. I’m looking forward to using the Internet with my friends to play legacy networked games that only use IPX for LAN communication.

To setup a bridged network using tunnels, you need to create gif(4) interfaces for the tunnels, and a bridge(4) interface to connect the tunnels and the Ethernet (LAN) interfaces. (more…)

Bitten by browser caching

Written in the wee hours in English • Tags: , ,


I ended up writing the bottom half of the previous article three times, thanks to not having been careful enough when upgrading WordPress. I had lost my fixes that send out the necessary headers to prevent the admin pages from being cached. I guess others don’t get bit by this because they don’t have ExpiresActive enabled on their web server.

Anyway, I’ve saved the changes in a patch file now, for future reference…