Older blog entries for zeenix (starting at number 176)

4 May 2008 »

python strikes back

The joy of getting my python problems fixed on my debian testing were short lived. This time when i ran `apt-get dist-upgrade`, apt failed saying:


ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.4
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
...
Errors were encountered while processing:
/var/cache/apt/archives/python-uno_1%3a2.4.0-5_i386.deb
/var/cache/apt/archives/deskbar-applet_2.22.1-1_i386.deb
/var/cache/apt/archives/python-ctypes_1.0.2-4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


So removed the link to python2.5 and recreated it but this time pointing to pythong2.4. It should fix the problem, right? No! here is what apt says now:


ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.5
...

Syndicated 2008-05-04 16:28:00 (Updated 2008-05-04 16:35:49) from zeenix

1 May 2008 »

GUPnP presentation at GUADEC

So my GUPnP presentation for GUADEC has been accepted and scheduled for 14:30 on 11 Jul 2008. It will be essentially the same talk I delivered at FOSDEM but this time I'll try to make sure the demos really do work. :) If you missed it at FOSDEM, don't commit the same mistake at GUADEC. :)

Syndicated 2008-05-01 21:31:00 (Updated 2008-05-01 21:40:01) from zeenix

28 Apr 2008 (updated 29 Apr 2008 at 15:14 UTC) »

whats wrong with my python setup?

Can any python guru out there explain whats going on here:


$ /usr/bin/gnome-about
Traceback (most recent call last):
File "/usr/bin/gnome-about", line 35, in ?
import gtk
ImportError: No module named gtk

$ head -n 1 /usr/bin/gnome-about
#!/usr/bin/python

$ head -n 36 /usr/bin/gnome-about|tail -n +29

import pygtk
pygtk.require ('2.0')

import gobject
from gobject.option import OptionParser, make_option
import gtk

$ /usr/bin/python
Python 2.4.5 (#2, Mar 12 2008, 00:15:51)
[GCC 4.2.3 (Debian 4.2.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>> import gtk
>>>

$ /usr/bin/python
Python 2.4.5 (#2, Mar 12 2008, 00:15:51)
[GCC 4.2.3 (Debian 4.2.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>> pygtk.require ('2.0')
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named gtk
>>>

UPDATE: Thanks to Karl-Lattimer, the problem was solved by:

# rm /usr/bin/python
# ln -s /usr/bin/python2.5 /usr/bin/python

Syndicated 2008-04-28 21:25:00 (Updated 2008-04-29 14:41:14) from zeenix

26 Apr 2008 (updated 27 Apr 2008 at 13:16 UTC) »

gupnp-media-server coming soon..

Next on my TODO is a desktop-wide UPnP MediaServer based on tracker. Basically, it will make all of your media availabe to other UPnP devices that is tagged as "shared via UPnP". I already have a working dummy implementation, based on code from Jorn's rhythmbox plugin. I call it "dummy" because ATM it only exports a hardcoded list of media files. Here is a screenshot of Windows Media Player playing music from it using on2share plugin:

Syndicated 2008-04-26 14:59:00 (Updated 2008-04-27 12:54:14) from zeenix

17 Apr 2008 »

History Meme

I don't know what the hell is this all about but seems like a cool thing to do and in-fashion these days so here I go:

$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
100 cd
78 make
58 ls
36 vim
22 ldd
21 ssh
12 git-diff
11 src/av-cp/gupnp-av-cp
10 git-log
10 ./autogen.sh

Syndicated 2008-04-17 18:16:00 (Updated 2008-04-17 18:21:21) from zeenix

12 Apr 2008 »

talking of overnight changes

My last blog entry reminds me of what my bank (Sampo bank) recently did. They were recently bought by a Danish bank and as part of the integration process, the e-banking system of Sampo was replaced by a stupid system that Danish bank had been using. The biggest problem with it is that it doesn't work on every machine, not even all i386 running windows. The result was that a large number of customers moved there money to other banks. Fortunately for me their system do work on this Linux laptop I am using to write this blog entry but my 64-bit desktop is another story. :( According to Riku Voipio, the problem is that they are using some 'native code' in their JAVA applet, now how pathetic is that. These kinds of things happen when a bunch of no good managers with no (or not enough) technical knowledge make decisions about technology behind closed doors.

To add to my agony, their cross-border money transfer has some problems too and if I knew that I would never have used bank-to-bank transfer as the method to send money to my mother for her chemotherapy. I had to call my ex-boss to talk to his friend who works in the destination bank and he just told us that the Bank's branch number/name wasn't conveyed to them.

Syndicated 2008-04-12 11:38:00 (Updated 2008-04-12 11:57:10) from zeenix

12 Apr 2008 »

SOAP support dropped from libsoup

Soon after I announced the release of gupnp-tools/av, someone pointed out that libsoup-2.4 is already out and therefore gssdp and gupnp needs to be ported to the new API. I am already done with the porting of gssdp and most of the gupnp (thanks to Dan Winship for being so helpful) but then came the shock: the SOAP support has suddenly been dropped from libsoup. I blamed my ignorance on me not being subscribed to libsoup ML so I started to dig into the archives but failed to find any mention of this change.

I know how to solve this issue and I am sure Dan will help me out in this one as well but IMO APIs should be deprecated first and then removed in the next major release.

Syndicated 2008-04-12 10:55:00 (Updated 2008-04-12 11:14:28) from zeenix

8 Apr 2008 »

stupid blogger.com

If you have recently seen a post by the name "Back to Hel(sinki)", from me, please ignore that. It's just just blogger.com (or is it p.g.o?) punishing me for adding tags to a two week old post. :(

Syndicated 2008-04-08 22:54:00 (Updated 2008-04-08 22:56:52) from zeenix

8 Apr 2008 (updated 9 Apr 2008 at 00:09 UTC) »

GUPnP Tools 0.3 released

This release features AV Control Point, a simple media player UI that enables one to discover and play multimedia contents available on a network. Hopefully a useful tool to test and debug UPnP MediaServer and MediaRenderer implementations. [Zeeshan Ali]

Other changes in this release:

- Desktop file for each tool. [Ross Burton, Zeeshan Ali]
- New Icons. [Vinicius Depizzol]
- Various misc improvements and fixes. [Zeeshan Ali]

Download from http://gupnp.org/sources/gupnp-tools/gupnp-tools-0.3.tar.gz

Here is a screenshot of GUPnP AV CP in action:

Syndicated 2008-04-08 22:34:00 (Updated 2008-04-08 23:20:52) from zeenix

8 Apr 2008 (updated 9 Apr 2008 at 00:09 UTC) »

Introducing GUPnP A/V

The first release of GUPnP A/V is now available. GUPnP A/V is a small utility library that aims to ease the handling and implementation of UPnP A/V profiles.

GUPnP A/V is free software released under the GNU LGPL.

Syndicated 2008-04-08 22:29:00 (Updated 2008-04-08 23:21:05) from zeenix

167 older entries...

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!