Raspberry Pi Library for Sharp Memory LCDs

I have now ported my Arduino library for controlling Sharp Memory LCDs to the Raspberry Pi. The extra memory and processing power available on the Pi certainly expand what you can do with this great little display. The lowly Arduino and even the 80 MHz ChipKIT did struggle to complicated process frames of data for […]

Reading Linux System Info With C++

Ever wondered where utilities like top, jnettop, free and mpstat get their information on CPU usage, network throughput, free RAM etc. from? Well, the majority of it is hidden within the /proc filesystem, most of the rest can be found in /sys and the last few scraps have to be gleaned from elsewhere. Some of […]

Sed – match something, then change something else

Here’s a useful feature of sed, the linux stream editor, that I didn’t know about before. My problem was that within a file, I wanted to only operate on lines that contained a certain expression – but leaving that expression intact and instead changing another expression on that line. The standard sed command for replacing […]