I don’t have the time to write the full blog post, so, here’s the recipe!
On your pylint rcfile setting:
exec 'aW1wb3J0IHN5cywgb3MKCmlmICdWSVJUVUFMX0VOVicgbm90IGluIG9zLmVudmlyb246CiAgICBz \
Don’t be scared, the decoded version of the above is:
import sys, os
if 'VIRTUAL_ENV' not in os.environ:
ve_dir = os.environ['VIRTUAL_ENV']
ve_dir in sys.path or sys.path.insert(0, ve_dir)
activate_this = os.path.join(os.path.join(ve_dir, 'bin'), 'activate_this.py')
# Fix for windows
if not os.path.exists(activate_this):
activate_this = os.path.join(os.path.join(ve_dir, 'Scripts'), 'activate_this.py')
This recipe is based on the PyQt recipe found
This is just the PySide port of it.
In some cases you might find yourself in the situation of wanting to use
gettext in a PySide project in which you
have .ui files generated using QtDesigner.
For those kind of situations is a good idea to extend the PySide compiler.
The following example shows how to do so in a distutils command.
So, I found myself with the need to make automatic backups of my postgres databases…
After some Google’ing and reading of some peoples recipes, here’s mine.
So, I was trying out Kubuntu Maevrick and found out that my bluetooth mouse did not work anymore as it previously did with Jaunty…
I recently started to monitor my servers with monit.
As such, I started creating scripts for all services that needed monitoring until I got stuck on one of them DavMail. It did not write a pid file and didn’t even had a specific process name!
As you can read on a previous post of mine,
I was, and still am quite pissed at ATI.
However, being forced to choose from upgrading my favourite linux distribution,
Kubuntu, to latest stable version 9.04 and loosing
the ATI proprietary drivers, or, staying at the old version of kubuntu, but keep the
proprietary drivers, Kubuntu won. I was ready to stop using
compiz once more :\
Fuck You ATI!!!!!!
Ever since I bought my laptop which is UNFORTUNATELY attached to an ATI card, I’ve had issues running it on Linux! And now you tell me that you’re dropping support!? This laptop is not 2 years old!!!! Now What!?
If I could, believe me, I’d buy a new laptop and would make SURE there wasn’t anything ATI inside, in fact, be sure that you won’t EVER again see a penny from me!!!!
Recently I started developing my python applications using
virtualenv so that I don’t clutter up the system’s
python installation with non-system python packages.
Everything was good until I wanted to use IPython
instead of python’s shell…
The issue is that virtualenv
creates a different python executable that includes the
virtualenv‘s packages into
sys.path while IPython stays unaware of the
Yet, there’s a solution!!!
This TextPress widget enables search on your blog using Google Adsense For Search.
I try to get my applications written in python, this way I’m able to tweak it as needed.
When I thought about putting a blog online, of course, I searched for a python blogging application, but, by that time, I was unable to find one. So, like most users, I ended up installing WordPress which suited my needs until a week ago, when Google emailed me.