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 […]
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, […]
You know you get serious with Python programming language when you start to learn about exception handling. But why do we need exception handling? The best way to understand exception handling in Python and why do we need it is to look at examples and practice all the time. Sometimes, even if your programs’ syntax […]