Blog Archives

CEC adventures on the Raspberry Pi

OUTDATED Previously I made available a precompiled version, a-premade-libcec-deb but don’t use it.  These days all you have to do is sudo apt install cec-utils And if you want to do development sudo apt install libcec4-dev And read my article on

Tagged with: , ,
Posted in Uncategorized

Text to speech on linux

My previous searching had led me to believe that the first stop for text to speech on linux is a program called “festival”. However after much more searching it seems that flite is the successor to festival. Example Usage: flite

Tagged with: ,
Posted in Uncategorized

strace+

I had a problem with one of my programs going abnormally slow.  Being a linux developer, one of the steps I took to diagnosing the problem was to strace the executable. Interestingly it showed me that I was accessing /usr/share/zoneinfo/GMT a

Posted in Uncategorized

Linux Swappiness

I finally got sick of linux (Ubuntu and Centos to be more precise) swapping all the time when I have 8GB and 16GB of memory in the two machines I use all the time.  So I decided that it was

Tagged with: ,
Posted in Uncategorized

Theoretical maximum data rate possible for LiFi implemented with webcams

Background If you do a quick search you can quickly find more than two million articles about LiFi.  Recent articles I’ve seen have talked about obtaining data transfer rates of GB/s. What I became interested in was whether I could

Tagged with: ,
Posted in Uncategorized

When (as in temporally) does the vtable get set up?

TL;DR At least for g++, as part of each constructor call. As a derived class object is instantiated the vtable pointer will be updated at each constructor called. The Zero class One of the common jobs you have to do

Tagged with: ,
Posted in Uncategorized

Why doesn’t debugger stop at breakpoint?

TL;DR Remember to give the -g option to the compiler. The problem Tonight I was trying to make a toy example program and wanted to examine the memory of some structures.  I do this all the time at work, but

Tagged with: , ,
Posted in Uncategorized

Compiling raspistill

Raspberry Flavoured Goodness I am working on a problem where I need to capture images with a camera and put them on a large screen.  The raspberry pi with its optional camera board, and a large screen TV are the

Tagged with: , ,
Posted in Uncategorized

Speeding up interations with the remote git repository

Why? I interact with git a lot.  Even my prompt interacts with the remote git repository. In my case the git repo is now located 1000km away which means I noticed the slow down compared to when it was on

Tagged with: , ,
Posted in Uncategorized

First Post!

When I was employed at the University of Queensland I had my own webpages that I used to keep hard won technical information.  I left UQ five years ago and this sort of  knowledge is often consigned to the back

Posted in Uncategorized