Thursday 28 February 2013

The compiler made me do it...

From the 3proxy FAQ...

Q: Why the code is so difficult and non-intuitive?
A: First, I'm not programmer. Second, . Third, . Fourth, the aim is to support different platforms. It's well known - the worse code is, the better it compiles.
This chap is way too harsh on himself. Sounds to me like he is a programmer - and of the highest order.

It's so good, I'm using in my next code review.

Friday 22 February 2013

Asus Eee complains about 'Assuming drive cache: write through'

I had an old Asus Eee kicking around. Seemed like a perfect candidate for a headless Ubuntu 12.10 server.

That is, until it booted the first time, and played back the following message, over and over again:
[sdb] Asking for cache data failed
[sdb] Assuming drive cache: write through

Everything works fine. But the message is, err, annoying to say the least. Fortunately, the easy fix is to just turn off the buggy drivers. Which is a doddle. Just edit /etc/rc.local and add a line to turn it off.
rmmod ums_realtek

Reboot to make sure it kicks in, and we're done.

Source: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/925760