How to untar files in Linux/Ubuntu

In Linux, a common file format is the tarball. A tarball is a compressed folder similar to a zip file. Most Linux distributions include a graphical archive manager that allows the user to extract and manage different types of archives. While GUI based packages are great, I prefer using the terminal to manipulate files. A … 

 

This week in Firefox: Testing Graphics

On Friday February 17 2017, the Firefox Beta community tested Firefox 52 Beta 7. The focus of this test day was on WebGL. WebGL is a JavaScript API for rendering¬† graphics in the browser without the use of plugins such as Flash or Silverlight. Graphics testing involves testing how Firefox renders websites that use WebGL … 

 

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 … 

 

Set Comprehension in Python

In a previous article I discussed list comprehensions. Today I will talk about set comprehensions. Set comprehensions were added to Python in version 2.7 and they are similir to List Comprehensions, the only difference is that we use curly braces instead of square brackets when making them. A set is an un-ordered collection in which …