Landfill of wisdom

Dumping ground for small tips and big papers

Browsing Posts in Software

I have a pretty simple mythtv box. It boots over PXE and the root partition is read-only exported over NFS. After bumping the kernel on the server that hosts the NFS to 2.6.34 my mythbox no longer wanted to boot. It was hanging right after managing to look up the mountd port on the NFS […]

Check what the clipboard contents are: xsel -b Put foo in the primary X selection: echo foo | xsel -p Copy the clipboard to the primary X selection: xsel -b | xsel -p This is just a hint on how to copy/paste between X programs that cannot agree on which X buffer to use. Say […]

I just had a very hard time trying to change my address on the JAL Mileage Bank page. They still had my address from about 4 years ago which changed at least a couple of times since then. When I tried to change it I realized why. I submitted the form, properly filled with full-width […]

Finally! A set of fonts that look good and properly display Japanese and Cyrillic. That is, the Cyrillic is half-width as it is supposed to be. For Gentoo users the package is media-fonts/efont-unicode or there is the official page for everyone else. Some characters like the lowercase б and д are oddly designed but that’s […]

The built-in SD card reader on my Thinkpad x60 has been always giving me headaches. It works reliably well, but when copying files my system becomes very unresponsive. The mouse is jerky and the CPU usage jumps through the roof. Obviously, DMA is not being used. I couldn’t find much about it for a while […]

When trying to install grub2 (whatever snapshot was current as of today) I kept getting the following error: $ sudo /sbin/grub-setup -v –directory=/media/sysrescd/boot/grub \ –device-map=/media/sysrescd/boot/grub/device.map -r ‘(hd1,1)’ ‘(hd1)’ …. snip … grub-setup: error: Cannot read `/media/sysrescd/boot/grub/core.img’ correctly The error was not very descriptive because grub was apparently able to read other important files like boot.img […]

Me, a long-term Windowmaker user, recently switched to Gnome. There main reason is that I had wanted to drop Windowmaker for a while now. There has been no development for a while now and I don’t really like the fonts or the lack of themability of window borders and such. I decided to give Gnome […]

A common issue — setting the onSubmit event handler of a form with JavaScript. I mean, it’s easy enough to set it with <form id=’theForm’ onsubmit=”return confirm(‘Really submit?’);”> but here is how to do it with JavaScript <script type=’text/javascript’> document.getElementyById(‘theForm’).onSubmit = function() { return confirm(‘Really submit?’); }; </script>

I have had to write an HTML parser a few times already and I’ve always used HTML::Parser. Because it’s simple and because I never bothered to do it anohter way. I always wanted to ideally do some parsing with XPath because that way I can easily find what I need with one or two queries. […]

Die Reste meines Lebens (2017) HD Director : Jens Wischnewski. Release : May 25, 2017 Country : Germany. Language : – Runtime : 82 min. Genre : Comedy. ‘Die Reste meines Lebens’ is a movie genre Comedy, was released in May 25, 2017. Jens Wischnewski was directed this movie and starring by Ulrike Kriener. This […]