Cleanup the default Python environment

I have been messing around with Python these last few weeks. Playing with Python means installing a lot of packages. I did this without using virtualenv, so my default Python environment had a lot of packages installed globally.

I now have a couple of projects that I want to work on and I what each project to have its own clean environment. That means using virtualenv. When running virtualenv without with the option --no-site-packages all the packages that are installed globally are included in the virtualenv.

I wanted to remove all the global packages to have a clean default environment. I did this by running the following command.

Windows

pip freeze > remove.txt && pip uninstall -y -r remove.txt && del remove.txt

Linux

pip freeze > remove.txt && pip uninstall -y -r remove.txt && rm remove.txt

After cleaning up the default envrionment by removing all the global packages don’t forget to install virtualenv en virtualenvwrapper-win by running the following command.

pip install virtualenvwrapper-win

For quick instructions of the main commands please check out virtualenvwrapper-win Github page.

Improving readability of WordPress home page with Read More tag

I have a large number of blog posts and a few of them are quit long. The WordPress theme I am using show the complete post on the home page. This means users visiting the home page need to scroll “forever” going through the posts. This was annoying me. I was thinking of switching to a theme that limited the blog post size on the home page providing a read more link to the full blog post. I could not find a suitable theme that worked well for desktop, tablet and smartphone. What to do? Continue reading