Monthly Archives: January 2010

Swap 2-Finger and 3-Finger Tap in Linux

When I upgraded my netbook from Ubuntu 9.04 to 9.10, I quickly noticed that they had flipped the functionality of 2-finger and 3-finger tapping. I need middle-click (3rd mouse button) functionality far more often than I need right-click, and by … Continue reading

Posted in input, ubuntu | Tagged , , , , , , , , , , , , | Leave a comment

Shift + Scroll = Horizontal Scroll in Linux

Firefox kept going back and forward when I used my favorite Shift + mouse wheel scroll combo to try to scroll horizontally. It was driving me mad. After some rigorous googling, I found a Stack Overflow question, which suggested that … Continue reading

Posted in input, ubuntu | Tagged , , , , , , , , , , , , , , | 1 Comment

Framework-Free Automatic Brush Loading for SyntaxHighlighter

Update: Have you heard of SyntaxHighlighter? It’s pretty cool. I like that it adds little controls for popping the code out into a new window in plain text and that it has line numbers. However, I think that these days … Continue reading

Posted in javascript, scripts | Tagged , , , , , , , , , , | Leave a comment

Sanitizing File Names with Ruby

At work, I ran into a problem wherein I was copying files from one filesystem (FAT32) to another (NTFS), and there were file names with characters that were legal in the first, but not the second. I wrote a Ruby … Continue reading

Posted in ruby, scripts | Tagged , , , , , | Leave a comment