I write about

    Memory - Card game

    I have been spending quite some time learning python for the past few months from text processing to game development using simplegui. And I must say for a person that always thought in C, I find Python completely straight forward and an easy but high level language. As my journey to Python continues, This weeks project was a memory game. Although it does have a couple of bugs in it,... [Read More]

    Install and configure NFS server on Ubuntu for serving files

    When it comes to serving media content within your local network, a NFS share is way better than Samba/CIFS share in terms of speed and resource usage. If you have a XBMC box to watch TV shows and movies from a central server then a Network File System (NFS) share should be the choice for a media source. It only takes a few minutes to install and configure NFS server... [Read More]

    script to generate BASH scripts

    I create scripts on a day to day basis, and I eventually got bored of manually creating scripts from initial phase everytime, hence this master of scripts. [sourcecode language="bash" wraplines="false" collapse="false"] #!/bin/bash # BASH script to generate BASH scripts # Created by Mpho Mphego echo "What do you want to call your BASH script?" read RESPONSE echo "#!/bin/bash" | tee ~/tmp/$RESPONSE.sh echo "# Filename:$RESPONSE.sh" | tee -a ~/tmp/$RESPONSE.sh echo "#... [Read More]
    Tags: pygame python

    1972 Pong "python"

    That feeling when, your program compiles and runs like it should... So last week, was a pong game challenge, need I say more. Here goes nothing. [sourcecode language="python" wraplines="false" collapse="false"] #http://www.codeskulptor.org/#user38_5WtyGnsPgb_0.py # Implementation of classic arcade game Pong try: import simplegui except: import SimpleGUICS2Pygame.simpleguics2pygame as simplegui # To run simplegui in idle python, install SimpleGUICS2Pygame module # download module : https://pypi.python.org/pypi/SimpleGUICS2Pygame import random # initialize globals - pos and vel... [Read More]
    Tags: python

    Stopwatch "python"

    Well as for this week, we were to create some sort of stopwatch game. Player gets a point when, they hit "stop" button if it stops on seconds. A bit even more trickier, but challenge was accepted and completed...Hell Yeah. [sourcecode language="python" wraplines="false" collapse="false"] #http://www.codeskulptor.org/#user38_TSo5mURks3_2.py #http://www.codeskulptor.org/#user38_TSo5mURks3_3.py #or http://www.codeskulptor.org/#user38_nJvMd8w50P_0.py # Mini-project #3 - "Stopwatch: The Game" # Created by Mpho "!nerd" Mphego - Marion Island SANSA Engineer 2014-2015 # # 'Introduction... [Read More]
    Tags: python

    Guess the number [python]

    The following weeks mini-project was starting to get a bit trickier. A simple game called, "Guess the number" [sourcecode language="python" wraplines="false" collapse="false"] # http://www.codeskulptor.org/#user38_p561LbO9KO_0.py # http://www.codeskulptor.org/#user38_SeTv0Tz7E7nAlil_11.py # Mini-project #2 - "Guess the number game" # Created by Mpho "!nerd" Mphego - Marion Island SANSA Engineer 2014-2015 # # 'Introduction to Interactive Programming in Python' Course # RICE University - https://class.coursera.org/interactivepython-005 # by Joe Warren, John Greiner, Stephen Wong, Scott Rixner... [Read More]
    Tags: python

    setting up python-simplegui library

    CodeSkulptor is a web-based python compiler/interpreter, That I have been using for the Interactive Python course offered on Coursera . And being were I am now, which is in Marion Island - our internet can be so slow at times so I resulted on running my python codes on my local machine not needing to go to CodeSkulptor. I had troubles importing simplegui library, So after vigorous google searches I finally... [Read More]
    Tags: linux python

    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]