How to send desktop notifications in Linux.

Desktop notifications are used to inform the user about an event or display some form of information without getting in the user’s way. Notifications are usually small pop up windows that disappear after a short while. There are a number of ways to display notifications using Python, but most of these depend on some GUI … 

 

Working with CSV files in Python

A common file format used to store data is the .csv file. The ‘csv’ in the name stands for “Comma Separated Values”. CSV files are very similar to Excel spreadsheets in that the data theiris arranged in rows and columns. Excel files are written in binary format whereas csv files are simple text files that … 

 

Virtual environments in Python

In Python, a virtual environment is way of isolating a working copy of Python to test software or to install new packages without affecting existing packages. virtualenv is a tool used to create isolated Python environments. virtualenv is a useful tool for creating sandboxes or for installing packages locally without system administrator access and also … 

 

Working With Excel Spreadsheets using Python

Microsoft Excel is a popular application for Windows that is used to work with spreadsheets, tables and charts. Spreadsheets are used extensively in the business world to record budgets, create reports, manage inventory or perform calculations. Working on Excel tasks in your day to day work can be boring, mind-numbing and even daunting especially if … 

 

How to install 3rd party python modules

Python follows a “batteries included” philosophy, which means that a lot of functionality you may need is built in to the language itself.Python developers have developed their own modules to extend Python’s capabilities even further. These third party modules are kept in the Python Package Index or PyPI which is similar to an app store … 

 

My solution to the FizzBuzz challenge.

The “FizzBuzz Test” is an interview question meant to filter out candidates that cannot program their way out of a paper bag. When I first read about this test on codinghorror, I assumed that it must be a very difficult challenge for it to filter out 99% of software development job candidates but it turns … 

 

Python: Storing Objects Using Shelve

The shelve is used to store Python objects to a file in a dictionary like format.shelve is used where using a relational database would create too much overhead or is unnecessary for example to persist data between program runs. Shelve is part of the Python Standard Library so getting it to work in your programs … 

 

Debugging Python Code

The Python programs I have written from the time I started learning Python up to now are very simple scripts. I still consider myself a beginner, but I have started to write not so simple code that is usually very brittle and buggy. I have a Github repo of scripts that automate common tasks on …