Category Archives: Technology
Stripping Vertical Whitespace Using tr
The Translate command, tr, is available on all Unix-y systems, including Cygwin. tr -d will delete the specified characters from a stream. Several handy escape sequences are provided for stripping newlines, carriage returns, and form-feeds: \f – form feed \n … Continue reading
SetThreadLocale and SetThreadUILanguage for Localization on Windows XP and Vista
Simple Localization In classic Windows programming, the quickest way to handle localized resources is to put all languages into the same resource file, then use SetThreadLocale to tell Windows that it should return resources tagged with the specified language identifier. … Continue reading
Autohide Ubuntu Menu in MythTV
When running MythTV under Ubuntu, the top menu (panel) may appear over MythTV’s output. The panel can be set to auto-hide, but even when hidden, several pixels will be displayed to remind you of its presence. Luckily, the number of … Continue reading
Hauppauge HVR-1800 with MythTV
The Hauppauge WinTV HVR-1800 is a PCI-Express card which has two tuners: one for ATSC/QAM digital video, and one for NTSC analog video. According to the MythTV wiki, only the digital video tuner is currently supported. Hauppauge’s Windows driver, which … Continue reading
Underlining Characters in a ToolTip
My product, a toolbar for Outlook Express, uses tooltips to display keyboard shortcuts. For some localization work, I needed to display an underlined character within a tooltip. The only hint I could find was a reference to .Net tooltips. Apparently, … Continue reading
Worst Spam Ever
It’s not even really spam. I assume it’s an attempt to validate random email addresses by analyzing bounces.
Entertainment Center Power Consumption
I used my Kill A Watt to measure the power consumption of various items in my entertainment center. PVR Antec case, Biotstar TF-7050M2 motherboard, Hauppauge tuners, 2.5″ Hitachi drive. 80 watts peak at bootup 65 watts nominal Dell 2001FP 20.1″ … Continue reading
SSH Key Generation and Conversion With OpenSSH
Key Generation Generate a DSA key: ssh-keygen -t dsa This will generate an RFC 4716-formatted key file similar to the following: —–BEGIN DSA PRIVATE KEY—– MIIBuwIBAAKBgQDijfpmyXBZpnq8EhEhSxeJz7fNxIlWYD6t7bviDZMARh8mLCr2 bug2J1K+Rl4qoLQJ7zRGlytwQ2krTCmvVahOjy9m/QW5936rCyVS19PRdJMEEMSN vLQaMtpKbnHp0z8Xs/X1CkDmxThOlvRVjiObdd0U9eELLoo5VHauVHmufwIVAO7j l4bxgVXeX09WJcyOXAUauNXHAoGAF20ESXgTvbbdxDECa2tfTi/j1/+emNV/+zuR aq6xms/K0piZhMlkK3BD9PgHhXfqZuRT/Z9b8ja3nR34H2KL3UInCNV6kSq6h+MD MLJnNQG4wADLYw3p5Tzz/hUwtfqpZ/9e7FpBdgfooS274GgPKTG8BFRiudIztPpK 4GueicoCgYEAy8hllDrFzQUqFG0kMe8r3dOFDjMQHf6ITttmAiScwEPg+a5D++Sq bj42vkKSNgaYHc+Z8QPgerPehIkBde6wx0ukq0a8IXy8F86IasXz3wzotPeJsdKi mynQKzhSm9Jzbk/SK/yh5NGhJzz1VmHsg+ir/qReguMHfqDGCI4kSFYCFDJKXQ4h MteJHSlu62RrGwInRBOh —–END DSA PRIVATE KEY—– An … Continue reading
Compiling X264 on Ubuntu
I noticed that HandBrakeCLI displayed this message: x264 [info]: using cpu capabilities: none! I thought that, perhaps, I could gain some performance by recompiling x264 directly for my AMD dual-core, 64-bit CPU. It turned out to be quite a task. … Continue reading