Have you ever wondered if there is a simple way to copy files and run commands on multiple machines from one command? Well there are several tools available that will allow us to do just that, but for starters we will discuss just pssh (Parallel SSH). pssh (Parallel SSH) pssh (Parallel SSH) is a command-line […]
The Raspberry Pi is a great device with many possibilities and one such great use is as a NAS server for your LAN. The Raspberry Pi by itself is limited by the space it can offer so you will need to add a USB SATA storage device like the Thermaltake BlacX attached to the Pi […]
A dictionary is a container that stores Python objects and each item of the dictionary consist of a key and value. Python dictionaries are also known as associative arrays or hash tables. Curly brackets distinguish a dictionary from other objects. The following example shows a dictionary with three items. Figure 1 Items in a dictionary […]
What are lists in Python? Lists are one of the six built-in types of sequences in Python programming language. A sequence is the most basic data structure in Python programming language and each element of a sequence has its own index. The first element has the index 0, the second has the index 1 and […]
Argument handling gives user the chance to interact with the script and use it for different tasks. Two ways to do this in Python are with ARGV and optparse. The optparse module offers more options for argument handling, but we will use the sys module for our simple example to demonstrate argument handling in Python […]
All Linux distributions come with wget pre-packaged by default. Sure, wget does do the job, but there is an alternative which I believe does a much better job at downloading from the command-line. aria2 is available in the repositories from most mainstream distributions. To install aria2 in Ubuntu or Linux Mint, just perform the following: […]
MySQL Workbench is a graphical design tool for MySQL databases. It is used for database server administration, database design, creation, security management and server as well as database maintenance. Install MySQL Workbench on Ubuntu: sk@sk:~$ sudo apt-get install mysql-workbench Add Database Server connection Now open MySQL Workbench from Menu or Dash. The main page of […]
The Haiku community is living a very peculiar moment these days. They are witnessing the creation of its Package Manager. Generally considered as the last missing piece before the Beta, Haiku Inc. was recently awarded two contracts to allow full-time work on this sub-project.
The key to networking in Python is the socket module, which provides a library for making network connections using Python. The socket module is used for low level networking and it provides the standard BSD Sockets API. Unix programmers are very familiar with this networking service. If you want to build server sockets and clients, […]
This is a widget panel. To remove this text, login to your WordPress admin panel and go to Appearance >> Widgets, and drag & drop a widget into this widget panel. If you want to leave this area blank, simply put a blank Text widget into this widget panel which will overwrite this text.