Fri, 23 Jul 2010 21:28:00 in Tech stuff | permalink
Just a short note to myself. There's a bug in qooxdoo tool in generator.action.ContribLoader.getRevision(). The regular expression part should be
match = re.compile("\/viewvc\/qooxdoo-contrib\?view\=revision\&revision\=([0-9]+)").search(line)
Fri, 23 Jul 2010 00:12:00 in Tech stuff | permalink
brevé dsl love pylons python rudd software turbogears wsgi
It's been a long time since my previous update, and many things have changed in my life. I've changed my job, quit my job, gone crazy, fallen in love, found myself, had two trips to Crimea, had a psychedelic experience and got a real African djembe from Ghana.
But there's one thing I haven't done yet and it's confession of love. Not the kind of love we fall into, no. I'm talking about the professional kind of love.
Why do I even talk about love in such an intellectualized high-tech field as information technology? I do this because I it's very important for me. Really, I've been working in IT since 2003, not to mention my earlier programming experience in the university and at school, and only now I fully realize why I'm still here. I simply like it.
Sun, 17 May 2009 11:53:00 in Tech stuff | permalink
Yesterday I made a working prototype of my Last.fm stream ripper written in
Python. This is my second project that relatively intensively uses
urllib2 from Python standard library.
One of important things that I've learned about
urllib2.urlopen() from my previous project is that it does raise
some other exceptions besides urllib2.URLError (e.g.
http.HTTPException and socket.error) which is the only one mentioned
in the documentation.
Wed, 17 Dec 2008 01:02:00 in Tech stuff | permalink
Updated 2009-03-03. Arbitrary constructor arguments (Mark's suggestion).
Updated 2008-12-30. Thread-safety.
A recent discussion has drawn my attention again to the use of the Singleton pattern in Python. Here's how and why I do this.
Fri, 15 Aug 2008 16:35:00 in Tech stuff | permalink
I've updated my Last.fm tag renaming utility.
Mon, 21 Apr 2008 14:08:00 in Tech stuff | permalink
linux mplayer python watchdog watchdogdev
One of my projects is a Linux-based embedded device for playing commercials. The software part is a Python application controlling an MPlayer process in slave mode.
To make the whole system more fault-tolerant I wanted to use watchdog timer which would reboot the machine in case of software failure. Thus I needed to talk to Linux watchdog driver from my Python application. The Linux watchdog API defines a number of ioctl commands which can be sent to the driver. So, I wrote an extension module which enables Python programms to use Linux watchdog API.
Wed, 19 Mar 2008 11:05:00 in Tech stuff | permalink
apache cherrypy debian linux python turbogears virtualmin webmin
Recently Matvey (thanks dude!) has set up a new Virtualmin hosting platform on Debian GNU/Linux. When I was migrating timka.org to this new platform I found out that Virtualmin is actually very powerful and nicely integrated with Apache in Debian. Looking at all these new features and capabilities I thought that I could try to use them for running home-based TurboGears applications on Virutalmin's virtual hosts.
Wed, 30 Jan 2008 11:38:00 in Tech stuff | permalink
Many popular Python libraries are available in various Linux distributions. However, it is not always possible and/or desirable to install them from packages. For instance, sometimes you don't have root access to the target machine or just want to have other vesrion of some library isolated under your home directory.
I've been successfully using this approach on my laptop and several development and production sites for about two years so far.
Sat, 26 Jan 2008 20:01:00 in Tech stuff | permalink
blog python timka.org wadcomblog
I've been looking for some simple static blog engine and stumbled upon WadcomBlog by Vlad Skvortsov.
Thu, 01 Feb 2007 in Tech stuff | permalink
Recently I've stumbled upon some MP3 files containing no tags. I tried to tag these files using Quodlibet but it appeared to be impossible. After a breif investigation of the problem I found out that it's just raw MPEG Layer III streams with no proper ID3 headers. In order to fix this I decided to write a Python script.
Mon, 22 Jan 2007 in Tech stuff | permalink
htmlparser httplib last.fm python tagging xml-rpc
Updated 2008-08-15. Works with new Last.fm.
I've written a Python program for renaming tags on Last.fm.