Archive for September 2006

OGG podcasts, no OGG feeds

I just received my new Samsung portable music player. The main reason for choosing Samsung was that it plays OGG.

After going through the podcasts I listen to I have two that I want to shame. I won’t name the podcasts that don’t do OGG—I can’t really blame them because the demand for it is probably not that high. The podcasts that deserve a bork-out are LQ and FLOSS weekly, both do offer OGG versions, but neither offer a feed for it!

First time in Wales

This bank holiday weekend (26-28 August) we went to Cardiff. The drive there was uneventful, just as I had hoped and traffic was less crazy then expected.

The first impression of Cardiff was mixed. We got slightly lost on the way in—print-outs from online route planners can be really confusing to follow. Well, it only meant we got to see a bit more of Cardiff than expected :-) At first Cardiff—actually all of the part of Wales that we saw from the car—looked very run down. It looked old and tired. Then we drove through the university area and the impression changed somewhat. Driving on we went down High Street and I again I was starting to wonder if going to Cardiff was such a hot idea. We found our hotel after a few missed turns and U-turns.

Novotel in Cardiff is made up of two buildings, one old and one new. The old one used to be a fruit warehouse, I think, and the new one is a typical Accor building. The result is a really nice hotel, with an interesting interior. Off course the room was what we expected—after all it’s a chain hotel. We were happy with it.

Since we arrived a bit early we couldn’t get access to our room just yet so we chucked our bags in their luggage room and walked out to find a place to eat lunch. The centre of Cardiff turned out to be nothing special, basically a collection of the same stores you can find in any medium to large town/city in the UK. It was slightly disappointing really. We had lunch at Zushi, a sushi place frequented by Miss Church (personally I think she has a very busy schedule because she seems to frequent every place in Cardiff). Good sushi and not overly expensive. The gyoza was not quite as good as I had hoped though.

After lunch we walked back to the hotel and checked in, then we took off in the opposite direction, away from the city centre, to Cardiff Bay. Now, here’s what sets Cardiff apart from other places! We strolled around a bit enjoying the weather. We went through the Dr. Who exhibit at the Red Dragon. Unfortunately the Norwegian Church was closed so we ended up having a drink at Eddie’s American Diner—very good root beer float!

For dinner we wanted to try The Wharf—a pub we’d seen walking to the bay. It turned out they had stopped serving food. We ended up having dinner at a Thai place in the brewery quarter in the centre instead. The lasting impression of walking around in Cardiff on a Saturday evening is that people in Cardiff go out, a lot, and they drink, a lot. It also seems that people in Wales get married, a lot!

Sunday we went to Cardiff Castle. The guided tour we took mostly concentrated on the last owners of the Castle, the Bute family. Personally I found that to be a little disappointing, but it’s understandable since the Butes had such a big impact on Cardiff in general. We were looking for something Welsh for lunch but the closest we came was a small place just off High Street that served Welsh rarebit and lamb pies. After lunch we relaxed in the hotel spa for a while and then went to the bay to have dinner. The pubs and restaurants were just as busy as the day before and we got the second to last table at a Turkish restaurant located on one of several small piers.

The next day we checked out and once again went down to the bay. During the weekend they had a “festival” (read “a few stands selling stuff”) in the bay and we had noticed a stand selling Kopparberg cider (you can order online from Designa Drinx). After buying 4 bottles and 4 cans of different flavours of cider we headed home.

All in all it was a great weekend and in we both think that Cardiff is well worth a visit. Also, in our experience Wales has very good weather! :-)

Django is cute

I’ve been playing around a bit more with django, and writing simple web services in it. I have to say it’s cute!

Building on my simple authentication middleware I added a second decorator that extract argument out of the URL and passes them to the function as regular arguments:

def extract_arguments(required, optional):
    def _wrapper(func):
        def _iwrapper(request):
            kwargs = {}
            try:
                for r in required:
                    kwargs[r] = request.GET[r]
            except MultiValueDictKeyError, e:
                return HttpResponse('Failure')
            for o in optional:
                if request.GET.get(o, ''):
                    kwargs[o] = request.GET[o]
            return func(request, **kwargs)
        return _iwrapper
    return _wrapper

This allows me to write functions like this

@extract_arguments(['req1', 'req2'], ['opt1', 'opt2'])
def exposed_func(req1, req2, opt1='default', opt2=''):
    # perform magic

Yes it’s lacking in type information, but it shouldn’t be too difficult to add that if the need arises. For now string are enough.

I’m also impressed with the documentation. It didn’t take me long to dig out unique_together in the model reference. I have to admit I was stuck at the thought of a generic unique_for field option, luckily I scrolled down and read through the meta options as well.

DPA SAR from T-Mobile

A while ago I signed up for the SAR (subject access request) pledge on PledgeBank. I’ve taken even longer to get started than Matt (original post, second post), but since he doesn’t seem to have finished yet (if you have Matt, you really should string the entries together).

I basically wen’t the same route as Matt on this, I choose my mobile phone provider—T-Mobile. I’ve only lived in the UK for about 18 months, and I got a T-Mobile PYG the first week in the country. It’ll be interesting to see just how much they’ve managed to collect in that time.

I started with going to the horses mouth regarding SARs. The link in Matt’s blog lead to a non-existing page. A quick search on ICO’s pages lead me to a PDF about subject access.

T-Mobile doesn’t list a contact for this purpose, and nothing on their “Contact Us” page seemed relevant. I went for the “Write Us” link at the bottom and voilá, there was the address of the head office:

Hatfield Business Park
Hatfield
Hertfordshire
AL10 9BW

I’ll be writing a letter based on the sample in ICO’s PDF and send it off as soon as possible.

Stay tuned.

Some stuff (01/09/2006)

What exactly will banning violent porn actually achieve? My bet is, not much! Won’t this make killers into victims?

Another good reason to not have ID cards. Like we needed any more.

I am not surprised that tobacco companies are lying, scheming bastards. Just like companies in the computer business tailer their products to the standard test benches, tobacco companies will tailor their products to tests.

Lip service at its best—an online magazine censoring itself based on IP.

The Pirate Party has a manifesto. I wonder how long it’ll take until the general public pressures the major parties in all countries to start addressing the “IT issues” we face.