Author: Gugu Ncube
-
Ubuntu – Removing Unity and Getting Started with Xfce
# Install the gnome-fallback-session and Xfce sudo apt-get install gnome-session-fallback xfce4 -y # Check if the new sessions have been actually installed ls -ail /usr/share/xsessions total 48 drwxr-xr-x 2 root root 4096 2012-04-15 11:55 ./ drwxr-xr-x 307 root root 12288 2012-04-15 11:55 ../ -rw-r–r– 1 root root 233 2011-12-04 22:15 gnome-classic.desktop -rw-r–r– 1 root root…
-
Python – Performance Tests of Regular Expressions
Regular Expressions: To Compile or not to Compile ? When using regular expressions one often has to decide whether to compile the expressions before applying them. Below is a simple test I ran and the results. tee ./regextest.py python regextest.py python regextest.py ————————————————– 1 calls in 0.194 ms – compiled_once 1 calls in 0.124 ms…
-
Ubuntu – How to Install Apple Safari in Ubuntu 12.04, 12.10, 13.10, 14.04, 14.10
Apple Safari Installation in Ubuntu Firstly install PlayOnLinux, which allow easy installation of Safari in Ubuntu. PlayOnLinux also enables the easy installation of several games and application designed to run with Microsoft Windows. PlayOnLinux wget -q -O- http://deb.playonlinux.com/public.gpg | sudo apt-key add – sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list sudo apt-get update # useful dependencies sudo…
-
redis – Installation and Simple Test using redis-py in Ubuntu
Installation Redis is a fast key value store developed by Salvatore Sanfilippo (antirez). Redis can be viewed as a next level memcached server. It is easy to install and has lots of cool features. Ubuntu Repository Installation # standard ubuntu repository installs an old redis version – redis 2.4.15 sudo apt-get install -y redis-server Installation…
-
pylibmc – Kestrel Queue Client – Simple Test using Memcache Protocol
Installation pylibmc is a great Python client for memcached written in C. sudo pip install pylibmc Mini Benchmark cat > kestrel-benchmark.py
-
beanstalkc – beanstalkd queue – python client library
Installation beanstalkc is a c-based python client library for beanstalkd. Installation using PIP Installer The library and dependencies can be easily install using the pip installer sudo pip install PyYAML sudo pip install beanstalkc Installation directly from Github This can useful if the pip installed library is too old and required new functionality/bug fixes are…
-
Beanstalkd – Simple, Fast Queue – Installation
Installation through Ubuntu Repository sudo apt-get install -y beanstalkd The version installation is often one to three versions behind. Currently the latest stable is 1.9, the repository has 1.7. It is sometime better to install the latest binary from the beanstalkd home. Manual Installation from Github Repository # create download and build directory mkdir -p…
-
Apache Cassandra CQL3 – Installation and Tests using Python
Installation using PIP # install python-pip sudo apt-get install -y python-pip # install cql driver sudo pip install cql Manual Installation from the Sources # download path mkdir -p ~/build/python-cql cd ~/build/python-cql # download git clone https://github.com/pcmanus/python-cql cd python-cql sudo python setup.py install Query Example # create and move to diretory mkdir -p ~/build/python-cql cd…
-
pycassa – Gettting started with Apache Cassandra using python
Install easy_install and pip # install easy_install sudo apt-get install -y python-setuptools # install python-pip sudo apt-get install -y python-pip Install pycassa sudo pip install pycassa Test pycassa cat > cassandra_test.py
-
Kestrel Queue – Installation in Ubuntu
Introduction Kestrel is a cool, light-weight persistent message queue server written in Scala that speaks the memcached protocol. It was originally developed by Robey Pointer (robey) from Twitter. It was originally a port of its predecessor Starling, which is written in Ruby. Installation It’s pretty straight forward to install Kestrel but requires a number steps…