Blog
django-openid-auth
Last week, we released the source code to django-openid-auth. This is a small library that can add OpenID based authentication to Django applications. It has been used for a number of internal Canonical projects, including the sprint scheduler Scott wrote for the last Ubuntu Developer Summit, so it is possible you've already used the code.
Rather than trying to cover all possible use cases of OpenID, it focuses on providing OpenID Relying Party support to applications using Django's django.
Blog
Sansa Fuze
On my way back from Canada a few weeks ago, I picked up a SanDisk Sansa Fuze media player. Overall, I like it. It supports Vorbis and FLAC audio out of the box, has a decent amount of on board storage (8GB) and can be expanded with a MicroSDHC card. It does use a proprietary dock connector for data transfer and charging, but that's about all I don't like about it.
Blog
PulseAudio
It seems to be a fashionable to blog about experiences with PulseAudio, I thought I'd join in.
I've actually had some good experiences with PulseAudio, seeing some tangible benefits over the ALSA setup I was using before. I've got a cheapish surround sound speaker set connected to my desktop. While it gives pretty good sound when all the speakers are used together, it sounds like crap if only the front left/right speakers are used.
Blog
In Montreal
I'm in Montreal through to the end of next week. The sub-zero temperatures are quite a change from Perth, where it got up to 39°C on the day I left.
The last time I was here was for Ubuntu Below Zero, so it is interesting seeing the same city covered in snow.
Comments: Tester - 25 Feb, 2009 I hope you enjoy our nice, cool, snow covered city!
Blog
In Hobart
Today was the first day of the mini-conferences that lead up to linux.conf.au later on this week. I arrived yesterday after an eventful flight from Perth.
I was originally meant to fly out to Melbourne on the red eye leaving on Friday at 11:35pm, but just before I checked in they announced that the flight had been delayed until 4:00am the following day. As I hadn't had a chance to check in, I was able to get a pair of taxi vouchers to get home and back.
Blog
Getting "bzr send" to work with GMail
One of the nice features of Bazaar is the ability to send a bundle of changes to someone via email. If you use a supported mail client, it will even open the composer with the changes attached. If your client isn't supported, then it'll let you compose a message in your editor and then send it to an SMTP server.
GMail is not a supported mail client, but there are a few work arounds listed on the wiki.
Blog
Using Twisted Deferred objects with gio
The gio library provides both synchronous and asynchronous interfaces for performing IO. Unfortunately, the two APIs require quite different programming styles, making it difficult to convert code written to the simpler synchronous API to the asynchronous one.
For C programs this is unavoidable, but for Python we should be able to do better. And if you're doing asynchronous event driven code in Python, it makes sense to look at Twisted. In particular, Twisted's Deferred objects can be quite helpful.
Blog
Red Bull Air Race
Yesterday, I went to see the finals of the Red Bull Air Race here in Perth. This was my first time watching the event, since I was over seas at the times it was held the previous two years.
The weather was good, and gave me a good opportunity to play with my camera a bit. Sometimes you can miss out on the action by trying to take photos, but in this case the camera made it a lot easier to see the planes from the shore.
Blog
Re: Continuing to Not Quite Get It at Google...
David: taking a quick look at Google's documentation, it sure looks like OpenID to me. The main items of note are:
It documents the use of OpenID 2.0's directed identity mode. Yes this is "a departure from the process outlined in OpenID 1.0", but that could be considered true of all new features found in 2.0. Google certainly isn't the first to implement this feature:
Yahoo's OpenID page recommends users enter "yahoo.
Blog
Streaming Vorbis files from Ubuntu to a PS3
One of the nice features of the PlayStation 3 is the UPNP/DLNA media renderer. Unfortunately, the set of codecs is pretty limited, which is a problem since most of my music is encoded as Vorbis. MediaTomb was suggested to me as a server that could transcode the files to a format the PS3 could understand.
Unfortunately, I didn’t have much luck with the version included with Ubuntu 8.10 (Intrepid), and after a bit of investigation it seems that there isn’t a released version of MediaTomb that can send PCM audio to the PS3.
Blog
Thoughts on OAuth
I've been playing with OAuth a bit lately. The OAuth specification fulfills a role that some people saw as a failing of OpenID: programmatic access to websites and authenticated web services. The expectation that OpenID would handle these cases seems a bit misguided since the two uses cases are quite different:
OpenID is designed on the principle of letting arbitrary OpenID providers talk to arbitrary relying parties and vice versa. OpenID is intentionally vague about how the provider authenticates the user.
Blog
Django support landed in Storm
Since my last article on integrating Storm with Django, I've merged my changes to Storm's trunk. This missed the 0.13 release, so you'll need to use Bazaar to get the latest trunk or wait for 0.14.
The focus since the last post was to get Storm to cooperate with Django's built in ORM. One of the reasons people use Django is the existing components that can be used to build a site.
Blog
Transaction Management in Django
In my previous post about Django, I mentioned that I found the transaction handling strategy in Django to be a bit surprising.
Like most object relational mappers, it caches information retrieved from the database, since you don't want to be constantly issuing SELECT queries for every attribute access. However, it defaults to commiting after saving changes to each object. So a single web request might end up issuing many transactions:
Blog
Storm 0.13
Yesterday, Thomas rolled the 0.13 release of Storm, which can be downloaded from Launchpad. Storm is the object relational mapper for Python used by Launchpad and Landscape, so it is capable of supporting quite large scale applications. It is seven months since the last release, so there is a lot of improvements. Here are a few simple statistics:
0.12 0.13 Change Tarball size (KB) 117 155 38 Mainline revisions 213 262 49 Revisions in ancestry 552 875 323 So it is a fairly significant update by any of these metrics.
Blog
Double the Fist
For anyone that cares, the new series of Double the Fist is starting tonight at 9:30pm on ABC2 (and repeated tomorrow on ABC1 for those who don't get ABC2). It has been a long time coming (4 years since the previous series), so will hopefully be worth it. I guess it will be available on the internet shortly after for those outside of Australia.
It is also good to see Roy and HG covering the Olympics again, even if it is only on the radio this time rather than television.
Blog
In Orlando
I've just finished the first day of the Ubuntu online services sprint in Orlando, Florida. I didn't repeat last year's trick of falling asleep at the airport, so the trip was only about 29 hours all up.
We've got a great team that I am looking forward to working with, so it'll be interesting to see what we do over the next little while.
Comments: neo - 6 Aug, 2008 Is any of the Ubuntu "online services" open source or are they all proprietary stuff you are advertising in Planet GNOME?
Blog
Using Storm with Django
I've been playing around with Django a bit for work recently, which has been interesting to see what choices they've made differently to Zope 3. There were a few things that surprised me:
The ORM and database layer defaults to autocommit mode rather than using transactions. This seems like an odd choice given that all the major free databases support transactions these days. While autocommit might work fine when a web application is under light use, it is a recipe for problems at higher loads.
Blog
Metrics for success of a DVCS
One thing that has been mentioned in the GNOME DVCS debate was that it is as easy to do "git diff" as it is to do "svn diff" so the learning curve issue is moot. I'd have to disagree here.
Traditional Centralised Version Control
With traditional version control systems (e.g. CVS and Subversion) as used by Free Software projects like GNOME, there are effectively two classes of users that I will refer to as "committers" and "patch contributors":
Blog
DVCS talks at GUADEC
Yesterday, a BoF was scheduled for discussion of distributed version control systems with GNOME. The BoF session did not end up really discussing the issues of what GNOME needs out of a revision control system, and some of the examples Federico used were a bit snarky.
We had a more productive meeting in the session afterwards where we went over some of the concrete goals for the system. The list from the blackboard was:
Blog
MySQL Announces Move to Bazaar
It has been a while coming, but MySQL has announced their move to Bazaar for version control. This has been a long time coming, and it is great to finally see it announced publicly.
The published Bazaar branches include 8 years of history going back to MySQL 3.23.22, imported from the BitKeeper repositories. So you can see a lot more than just the history since the switch: you can use all the normal Bazaar tools to see where the code came from and how it evolved.
Blog
How not to do thread local storage with Python
The Python standard library contains a function called thread.get_ident(). It will return an integer that uniquely identifies the current thread at that point in time. On most UNIX systems, this will be the pthread_t value returned by pthread_self(). At first look, this might seem like a good value to key a thread local storage dictionary with. Please don't do that.
The value uniquely identifies the thread only as long as it is running.
Blog
Prague
I arrived in Prague yesterday for the Ubuntu Developer Summit. Including time spent in transit in Singapore and London, the flights took about 30 hours.
As I was flying on BA, I got to experience Heathrow Terminal 5. It wasn't quite as bad as some of the horror stories I'd heard. There were definitely aspects that weren't forgiving of mistakes. For example, when taking the train to the "B" section there was a sign saying that if you accidentally got on the train when you shouldn't have it would take 40 minutes to get back to the "A" section.
Blog
bzr commit --author
One of the features I recently discovered in Bazaar is the --author option for "bzr commit". This lets you make commits to a Bazaar branch on behalf of another person. When used, the new revision credits two people: you as the committer and the other person as the author.
While Bazaar does make it easy for non-core contributors to send changes in a form that correctly attributes them (e.g. by publishing a branch or sending a bundle), I doubt we'll ever see the end of pure patches.
Blog
SSL caching on Firefox 3
Since upgrading to Ubuntu Hardy, I've been enjoying using Firefox 3. The reduced memory usage has made a lot of other things nicer to use (I don't feel like I need to buy more memory now). One thing that is nice to see fixed is caching of SSL content.
In previous versions of Firefox, SSL content was never cached to disk with the default settings. While you certainly don't want all SSL content to be written to disk, a lot of it can be cached without problem.
Blog
Psycopg migrated to Bazaar
Last week we moved psycopg from Subversion to Bazaar. I did the migration using Gustavo Niemeyer's svn2bzr tool with a few tweaks to map the old Subversion committer IDs to the email address form conventionally used by Bazaar.
The tool does a good job of following tree copies and create related Bazaar branches. It doesn't have any special handling for stuff in the tags/ directory (it produces new branches, as it does for other tree copies).