I write about

    Rock-paper-scissors-lizard-Spock in Python

    So I recently enrolled for a course from Coursera.org on Introduction to Interactive Python, After I received a certificate on Introduction to Python programming instructed by Prof. Charles Severance. https://www.coursera.org/course/pythonlearn My first mini-project is a simple Rock-paper-scissors-lizard-Spock game. [sourcecode language="python" wraplines="false" collapse="false"] # Mini-project #1 - "Rock-paper-scissors-lizard-Spock game" # Created by Mpho "!nerd" Mphego - Marion Island SANSA Engineer 2014-2015 # # 'Introduction to Interactive Programming in Python' Course #... [Read More]
    Tags: python

    How to install Gummi(LaTex) on ubuntu

    How to install Gummi on ubuntu This post is trivial since Gummi has recently released an PPA (Personal Package Archive) for Ubuntu. btw, there are only 3 commands needed to get Gummi up and running: 1- First, add the PPA to your repository: $sudo add-apt-repository ppa:gummi/gummi 2- Then, update your repository to reflect the new changes: $sudo apt-get update 3- Everything is now ready to install Gummi: $sudo apt-get install... [Read More]

    Installing Latex on Ubuntu

    Latex is a document markup language for the Tex typesetting program. Due to its high quality typesetting capability, {\LaTeX}/TeX system is popularly used in academia and research communities to prepare professional looking documentations and research papers. To install/upgrade to TeX Live 2014: Open a terminal with Ctrl+Alt+T Add the texlive-backports PPA by typing the below (enter your password when prompted): [sourcecode language="bash" wraplines="false" collapse="false"] $ sudo add-apt-repository ppa:texlive-backports/ppa $ sudo... [Read More]

    Python - processing GMail IMAP email

    Here is an example of processing your GMail IMAP email in Python. The script below will: login to GMail account using IMAP open your Inbox retrieve and print all messages close mailbox logout # Script adapted from Corey Goldberg# http://coreygoldberg.blogspot.com/2011/07/python-processing-gmail-imap-email.html#!/usr/bin/env python [Read More]
    Tags: python

    How to make Ubuntu Local Repository

    1. Open terminal. Install dpkg-dev ,apache2 and apt-mirror $ sudo su $ apt-get update && apt-get upgrade $ apt-get install dpkg-dev apache2 apt-mirror 2. Create a directory where you will keep your packages. For this example, we'll use /usr/local/mydebs. $ mkdir -p /usr/local/mydebs 3. Now copy your packages into the directory you've just created. $ rsync -truv /var/cache/apt/archives/* /usr/local/mydebs #tip: you can place that command on crontab to sync every... [Read More]

    Send email via Linux Terminal[Ubuntu]

    After searching throught the web, I eventually found a simple way to send emails via linux terminal, by using a simple package called Postfix. This guide is tested with Ubuntu 12.04.I use a Gmail account as SMTP server on Ubuntu-Linux server. Reason as to why I needed to be sending mails via terminal was for system checks, Server disk space monitoring, Server ping status and etc. Postfix via smtp.gmail.com. First,... [Read More]

    ArchLinux4.0: Setting MTU with netctl

    First things first: Ive been encountering some serious internet problems,with either my gateway or the way the network was set. I always felt a huge drop in throughput. After some searching I found out, that netctl can handle custom mtu configurations as well. The 'ExecUpPost' entry in a connection profile handles this. Here's the simple ethernet-static profile that I'm using for my work network : nerd@trojan:/$ sudo nano /etc/netctl/my_lan Description='Science... [Read More]
    Tags: Linux

    How do I find my optimum MTU setting?

    I haven't been updating my blog for the past few months, But hey I finally got to Marion Island(-47.876404, 37.861019), when I got there I found out the internet was a bit crappy, (1mbps Satellite link). So i was set on a mission to optimize my internet experience - I finally found a way to optimize my browsing experience. By adjusting the MTU - Maximum Transmission Unit On Windows: Step... [Read More]