Daily Archives: May 3, 2012

Installing printers with the CUPS web interface in Debian Linux.

I recently had to add a printer to my Debian System and the System Settings -> printers dialog in the Gnome 3 System Settings application would not detect my Canon MP150 printer. Therefore, I started the CUPS interface by visiting: http://localhost:631 in my web browser and I was then able to add my printer. This […]

Miscellaneous programming tricks with C.

This is a very simple Hello World program in C. int main() { write(1, “Hello World\n”, 14); } Counting how long a text string is. #include #include #define MSG “Hello Doctor, let’s get back to the TARDIS!” int main() { int g; g = strlen(MSG); if (g < 1) { printf(“The string is not very […]