Running the same code on server and desktop – Exception/Error handling

Recently, I was bogged with a problem where I had a code running on the server which moves files after execution of the entire process from one folder into another. This created a dilemma for me if I should create the same folder paths on my desktop to keep the code running or to bearContinue reading “Running the same code on server and desktop – Exception/Error handling”

Basic file operations in Python – Move and Delete files

In this article we will show very simple examples of how to move, and delete files in Python using the built-in functions such as shutil.move(), and os.remove(). Shutil module in Python provides many functions of high-level operations on files and collections of files. It comes under Python’s standard utility modules. This module helps in automating the process ofContinue reading “Basic file operations in Python – Move and Delete files”

Exiting CLI and VIM in Linux

Well this is another issue faced by noobs. According to a recent report (Stack Overflow: Helping One Million Developers Exit Vim) exiting VIM is one of the most searched article on Stack Overflow. This article is intended to help noobs exit in a Linux environment. Exiting the CLI To force quit or “kill” a runningContinue reading “Exiting CLI and VIM in Linux”

Copying commands from external environment into CLI (command line interface) or VIM

Well there was no need for creating a blog for this. But I did not know this and had spent considerable time typing each and every command into the VIM and CLI. This I wrote to save time of poor soul’s like me who are new to the Linux environment All you need to doContinue reading “Copying commands from external environment into CLI (command line interface) or VIM”

Installing multiple python packages in one go – Avoid installing one package at a time

Hey Guys, So I recently had the problem of moving from one python environment to another due to some issue with my computer. Now the problem was that I had tons of packages already installed on my python environment, now pip installing each package again would be more than a day’s task. So I cameContinue reading “Installing multiple python packages in one go – Avoid installing one package at a time”

Python stuck – Displaying output of last execution for any code executed – Buffer Overflow/Cache issue

Hey Guys, I recently ran into a problem while playing with Python. The output on the console was displaying the output of a previous code that I had modified. I was playing around PyQt4 to PyQt5 conversion of Sentdex’s PyQt4 YouTube tutorial right here. Everythng went fine until I tried to print the entire page onContinue reading “Python stuck – Displaying output of last execution for any code executed – Buffer Overflow/Cache issue”

Design a site like this with WordPress.com
Get started