Category Archives: Tips and tricks

Removing files and folders

It is no secret that with a terminal client you can get many things done very easily. One thing in particular that is done easily via terminal is removing files and folders. Sure, you could use a Gui for file and folder removing but then again it is just as easy – or perhaps even easier when done via terminal client.

First, you should navigate to the folder structure, which contains the files or folders you want to remove. You do this by using cd: Continue reading

Python: “Cannot import module” issue and installing needed Python bits.

You have your Python program in front of you. You have already made it executable with chmod +x program.py and you are ready to run it. But, when you execute your program via terminal typing something like python program.py you will be greeted with an error message saying something similar to this:

“Cannot import module X, no such module.” Continue reading

The five most important things I have learned while writing a code

Coding is fun and a great way to get your creativity flowing. Here are the five most important things I have learned while writing a code. These views are subjective but I do hope that you can learn from them.

1. Coding is nothing like in the movies.

Nine times out ten, you do not just casually write some really awesome code in the middle of a disaster. In real life coding is mostly about debugging – and yes it does take more time than five minutes to write something useful. Continue reading

Prevent process from closing with nohup command

Sometimes you will come across a situation where you need to make absolutely sure that program x is not being accidentally closed in anyway. This is where the nohup command comes in. When you add the command in front of your program/script of choice then the process will keep on running on the background even after you have seemingly closed the program in a regular way. Continue reading