I write about

    Automatically connect a RPi to a Wifi network

    Setting up WiFi connection Start by booting the Raspberry Pi, connected to a display and a keyboard. Open up the terminal and edit the network interfaces file: $ sudo nano /etc/network/interfaces This file contains all known network interfaces, it'll probably have a line or two in there already. Change the first line (or add it if it's not there) to: auto wlan0 Then at the bottom of the file, add... [Read More]

    Cool bash hack(s)

    This hack ensures that when you log on to a server/pc it will execute a screen session which minimizes the risks of you losing your work in case of network disruptions . Just copy command to your bashrc file and source it. #Best used when you have to work on a different server via ssh. [sourcecode language="bash"]if [ "$TERM" != "screen" ]; then screen -xRR fi[/sourcecode] This hack enables mouse... [Read More]

    RPi What's My IP

    Do you know what really grinds my gears. Having to boot Raspberry Pi with a new image on and no HDTV to configure and find the IP in order to ssh to it, and have fun with it. Grrrrrrrrr... That's when I decided why not create a script, that when the pi boots up it sends me the internal and external IP addresses... Clever right. [sourcecode language="bash"] gedit whats_my_ip.py [/sourcecode]... [Read More]

    Include eps in Latex

    Recently I wanted to include a directed graph in a LaTeX doc­u­ment. unfortunately I couldn't import an svg file to my document. So which meant I had to find another alternative method rather than converting the file to any other image format to avoid rasterization. $ sudo apt-get install inkscape $ inkscape -z image.svg image.eps --export-eps=image.eps to receive the EPS(Encapsulated Postscript Vector graphics) file which I wanted to include in LaTeX.... [Read More]

    How to mount Google Drive on your Linux(Ubuntu) system

    I have always been a fan of cloud storage as anything can happen on my mechanical harddrive, but now that I have completely migrated to Ubuntu and having to realise that the is no support whatsoever for Google drive applications, I was on a quest to find a working and reliable on. Then I stumbled upon Google Drive Ocamlfuse which is a FUSE filesystem backend for Google Drive which you... [Read More]

    GitHub Repo creation via CLI

    I am so excited after creating my first repository on github and successfully adding some test files to it from my local machine! But due to my limited internet connection, I stumbled upon some diffulties. It took me a lot of time and effort, and there were actually a few times when I thought that I wouldn’t be able to do it. It took me hours, and that is not... [Read More]

    The Zen of Python, by Tim Peters

    While browsing around the Interweb I found a little python poem - Words to-live-by in this world of Pythoning/Pythonian/Pythonization/Pythology or whatever its called. >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough... [Read More]
    Tags: python

    Guide to Installing and Running MiniDLNA on an Ubuntu Server

    I have recently been experimenting with running MiniDLNA on a headless Ubuntu Server. I have written this guide to hopefully take some of the pain out of installing and configuring an amazing program. "minidlna - lightweight DLNA/UPnP-AV server targeted at embedded systems" [sourcecode] sudo apt-get update sudo apt-get upgrade sudo apt-get install minidlna [/sourcecode] Once this is installed, you need to configure the MiniDLNA conf file located at /etc/minidlna.conf. My... [Read More]