Unfinished Sofware's Blog

This recipe is based on the PyQt recipe found here. 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.

Read on...

 

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.

Read on...

 

So, I was trying out Kubuntu Maevrick and found out that my bluetooth mouse did not work anymore as it previously did with Jaunty…

Read on...

 

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!

Read on...

 

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 :\

Read on...

 

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 virtualenv‘s packages.

Yet, there’s a solution!!!

Read on...

 

This TextPress widget enables search on your blog using Google Adsense For Search.

Read on...

 

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.

Read on...

 

This was my first serious TextPress plugin.

This plugin will enable your TextPress install to be logged by Google Analytics.

It ads the necessary javascript code to log your blog, plus, it also logs the downloads of regular filenames which end with a specific extension; these extensions are defined by you; and also external links.

Configuration

The necessary configuration is:

  • UID: Google Analytics’ UID. The UID is needed for Google Analytics to log your website stats. Your UID can be found by looking in the JavaScript Google Analytics gives you to put on your page. Look for your UID in between the javascript:

      var pageTracker = _gat._getTracker("UA-111111-11");
    

    In this example you would put UA-11111-1 in the UID box.

There are other, more advanced configuration options:

  • Admin Logging: Disabling this option will prevent all logged in TextPress admins from showing up on your Google Analytics reports. A TextPress admin is defined as a user with a level 4 or higher.

  • Outbound Link Tracking: Disabling this option will turn off the tracking of outbound links.
    It’s recommended not to disable this option unless you’re a privacy advocate (now why would you be using Google Analytics in the first place?) or it’s causing some kind of weird issue.

  • Google Analytics External Path Prefix: This will be the path shown on Google Analytics regarding external links. Consider the following link:

    <a href="http://textpress.pocoo.org/">TextPress</a>
    

    The above link will be shown as(for example):

    /external/textpress.pocoo.org/
    

    Outbound link tracking must be enabled for external links to be tracked.

  • Download Extensions To Track: Enter any extensions of files you would like to be tracked as a download. For example to track all MP3s and PDFs enter mp3,pdf.
    Outbound link tracking must be enabled for downloads to be tracked.

  • Tracking Domain Name: If you’re tracking multiple subdomains with the same Google Analytics profile, like what’s talked about here, enter your main domain here. For more info, please visit the previous link.

You can submit bugs and/or new features to DevNull

Download It