Mobile emulation in Google Chrome

Building a web site or web application that should also be useable on other devices than ‘regular’ desktops or laptops? You don’t always have your mobile device at hand, or might not even own one. Yet, you want to see how your new gem looks on such devices. Worry no more! Google Chrome to the rescue. We all know the ‘Developer Tools’, accessible using F12. If you press ESC while inside the ‘Developer Tools’, the ‘DevTools console drawer’ appears.

This method is likely to yield significantly better performance

This week, I came across an interesting difference between the Java API documentation and its current implementation. A difference? Or is it just a matter of thorough reading? If you look at the Javadoc for Double.valueOf(), you’ll find that it is likely to outperform the use of new Double(). Sounds good! And don’t we all ove it when we get a free performance boost? However, examining the source code to see what causes this “significantly better space and time performance”, we find….

Checking logfiles with logcheck

If you own a private server, like me, you’ll probably know the feeling you need to check your logfiles every now and then. It’s not a lot of work, it’s not difficult, but it needs to be done, and it needs to be done regularly. As for me, the solution is simple. I installed the logcheck tool. This nice little tool will send you a daily email with all logging information on your system.

IPv6 on Raspbian

A default Raspbian installation does not have IPv6 enabled. That’s quite a pity in 2013, where IPv4 addresses will be running out shortly. Have no fear, it’s not too hard to enable it. Just add ipv6 to the file /etc/modules (it should be on a separate line) and reboot your Pi. If you don’t want to reboot, enable it immediately by issuing sudo insmod /lib/modules/`uname -r`/kernel/net/ipv6/ipv6.ko. Note that after a reboot, you’ll have to re-enable it again, so just change /etc/modules either way…