01 juli 2009

Ubuntero van de maand juli: Sebastian Schauenburg

Het leven

Wie ben je?
Sebastian Schauenburg a.k.a. SWAT

Hou oud ben je eigenlijk?
Inmiddels ben ik al de kwart eeuw gepasseerd, maar ik voel me nog jong en vitaal.

Waar woon je?
Woensdrecht, een klein dorp gelegen in het westen van Noord-Brabant. Elke keer moet ik weer uitleggen waar het precies ligt, omdat er bijna niemand van gehoord heeft.

Hoe ziet je leven buiten Ubuntu eruit?
Druk ;-) Doordeweeks ben ik ontzettend druk in de weer met mijn werk als Open Source consultant en trainer. Gelukkig is het na uiterlijk 5 dagen weer weekend en dat spendeer ik graag aan vrienden, met de nadruk op gezelligheid en bijpraten.

Moet er nog iets veranderen aan de wereld en waarom?
Ja er mag nog genoeg veranderen. Op sociaal vlak schieten tegenwoordig nog steeds veel mensen de mist in, wat zich onder andere manifesteert in asociaal gedrag. Ik ben nog steeds verbaasd als er een klein kind (tussen 8 en 12) voor je staat en een ontzettend grote mond heeft. Dat zou vroeger nooit in mij opgekomen zijn! Op de snelweg blijft iedereen asociaal links rijden, gebruiken geen richtingaanwijzers en geven je ook vaak niet de ruimte om even in te voegen. Waar gaat het heen met deze wereld? Wij moeten nu op de rem trappen en het goede voorbeeld geven, hopelijk worden dan ook anderen hiermee ‘besmet’.
Op technisch vlak mogen software patenten en de bijbehorende rechtzaken maar eens snel verdwijnen, ze houden nog steeds innovatie tegen en bieden geen meerwaarde. Open is de weg en Vrij is het asfalt.

Hoe lang gebruik je al Ubuntu en hoe is dat zo gekomen?
Nou, ik gebruik Ubuntu eigenlijk al sinds de eerste versie namelijk 4.10, ook wel “Warty Warthog” genoemd. Ik gebruikte toen al jaren Debian op een server, dus de overstap ging vrij natuurlijk. Debian liet ik toen nog op mijn server draaien, gezien het gewoon stabiel was. Uiteindelijk werd Ubuntu mijn default desktop besturingssysteem en kon ik eindelijk afscheid nemen van de Windows  installatie. De belangrijkste redenen destijds voor het overstappen qua desktop OS:

  • Bij Windows kon ik niet alles aanpassen wat ik aan wou passen. Deze vrijheid heb je bij Linux wel, alhoewel je daarvoor soms wel erg veel kennis nodig hebt.
  • Ik was nogal uitgekeken op Windows, had zin in een nieuwe uitdaging en gebruikte al jaren Linux op de server, waarom dan niet ook als desktop?
  • Linux is gewoon cool.

Hoe kom je aan je username?
Het klinkt flauw, maar ik weet het niet meer! Ik heb deze nickname nu al ruim 10 jaar, dus het is allemaal erg lang geleden.

Hoeveel uren per dag ben je met computers bezig? Wat boeit je het meeste en wat ergert je het meeste?
Je kunt beter vragen hoeveel uren per dag ik niet met computers bezig ben. Op mijn werk zit ik eigenlijk voortdurend bij een computer in de buurt, onderweg naar huis gebruik ik mijn G1 (wat eigenlijk ook een computer is) en zodra ik thuis kom, gaat mijn thuiscomputer aan.
Wat mij het meeste boeit? Veel en dat verandert ook erg snel. Nu ben ik bijvoorbeeld weer eens mijn Python kennis aan het opfrissen. Laatst had ik een echte “kernel panic”, dat was eigenlijk weer eens leuk voor de verandering, een echte uitdaging!
Wat mij het meeste ergert? Tja, laten we het houden op intolerantie, asociaal gedrag, mensen die zeuren en/of geen geduld hebben en personen/instanties die openheid tegenwerken.

Doe je nog iets specifieks voor de Ubuntu-community?
Voornamelijk IRC operator en server beheerder. Op het forum ben ik ook wel eens te vinden, maar dat is erg zelden. Inmiddels zit ik nu al jaren bij het LoCo team (ongeveer sinds het begin) en heb al erg veel facetten hiervan meegemaakt. Hopelijk krijg ik binnenkort weer iets meer tijd om aan Ubuntu-NL te besteden.

Wat mis je nog wezenlijk in Ubuntu?
Goede ondersteuning voor games, maar dat ligt niet aan Ubuntu. Dat komt doordat er nog steeds te weinig spellen gemaakt worden die (native) Linux compatible zijn. Als je een Windows spel wilt spelen moet je meestal enorm hard aan de slag met wine en/of cedega.
Aan Ubuntu zelf mis ik eigenlijk alleen de BlueRay ondersteuning. De Linux software stack mist nog wel een aantal applicaties (of features), dus er is nog meer dan genoeg werk aan de winkel. Langzaam, maar zeker komen we er wel!

Wat was de vraag van de vorige Ubuntero en wat is je antwoord?

Wat was je eerste kennismaking met een computer en idem met Linux ?
Hmmmm, volgens mij kwam ik het eerste in aanraking met een computer toen ik jaar of 8 was. Dat is dus inmiddels een hele tijd geleden en in die tijd is er een hele hoop veranderd. De eerste computer waarmee ik werkte was nog erg pre-Windows. Later heb ik Windows 95, Windows 98 SE, Windows 2000 en Windows XP SP2 gebruikt. Toen ik ADSL kreeg, kwam Linux pas “echt” in beeld en probeerde ik het USB modem te bridgen naar mijn Linux machine. Helaas wou dat destijds niet werken, gezien de ondersteuning er nog niet in zat. Na een paar maanden wachten kon ik de kernel bouwen, omdat er wel experimentele USB ondersteuning in zat. Voor die tijd gebruikte ik Linux niet heel erg veel en had het licht dus nog niet gezien.

Famous last questions

Wat is je favoriete dooddoener, gezegde of gedicht?
Ik kon niet kiezen tussen de volgende twee gezegdes: “Rustig aan, dan breekt het lijntje niet” en “First they ignore you, then they laugh at you, then they fight you, then you win”.

Wie moet de volgende Ubuntero van de maand worden en waarom?
siegi

Wat zou je aan de volgende Ubuntero van de maand willen vragen?
Je was de afgelopen tijd erg hard bezig met je studie, hoe combineer jij Ubuntu-NL met je prive leven?

29 juni 2009

MySQL replication >=5.1.14

On page 1375 of 3288 of refman5.1_en.a4.pdf:

In MySQL 5.1.14 and later, the mysql database is not replicated. The mysql database is instead seen as a node-specific database. Row-based replication is not supported on tables in this database. Instead, statements that would normally update this information — such as GRANT, REVOKE and the manipulation of triggers, stored routines (including stored procedures), and views — are all replicated to slaves using statement-based replication.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Language guessing game

I just wrote this last night. 10 points for the person who guesses which language it is. 20 if you can tell me what the result of these statements will be :)

VARIABLE found
: prime
    DUP 2 < IF
        DROP
        FALSE
        EXIT
    THEN
    DUP 4 < IF
        DROP
        TRUE
        EXIT
    THEN
    FALSE found !
    DUP 1 - 2 DO
        DUP I MOD NOT IF
            TRUE found !
        THEN
    LOOP
    DROP
    found @ NOT
;
VARIABLE current
: primes
    1 current !
    BEGIN
    DUP 0 > WHILE
        BEGIN
        current @ prime NOT WHILE
            1 current +!
        REPEAT
        current @
        SWAP
        1 -
        1 current +!
    REPEAT
    DROP
;
10 primes

Stop using mono!

Seriously, why are people still using mono? It’s hopeless, horrible and completely obsolete, given the alternatives that currently exist. Its successor, stereo, has been around for ages and even surround sound is not really a new invention. Good old mother nature has been doing multi-channel surround for millions of years. So please, for the love of all that’s holy, don’t inflict mono on your ears!

25 juni 2009

SSL pricing madness

All *.ubuntu-nl.org pages are reachable via https. This currently uses a self-signed CA certificate, signing the wildcard certificate (and some others as well). This is of course far from optimal, since all modern browsers warn that they don’t recognize the CA.

So how to solve this? Buy a wildcard certificate. Walking around in a bad neighbourhood and getting mugged repeatedly is probably cheaper. SSL certificate providers like to charge you through the nose for a wildcard certificate, and that’s definitely something Ubuntu NL or myself cannot afford at the moment. The cheapest wildcard I could find was godaddy at $180 a year. All the others charge between $500 and $1000 a year. Sigh.

20 juni 2009

The internet is broken!

Yesterday I used that phrase for the first time as explanation for a downtime problem. Looks silly for a professional sysadmin, but I can defend it :) Customers N and M, connecting to telco V had problems connecting to our service O, reachable via telco T. The route between V and T has AS path V-AT-AB-T and there were routing issues between AT and AB, making O unreachable for N and M. So for all intents and purposes: the internet was broken!

Now this kind of thing of course happens all the time on the internet, but this time it was funny because (freely quoting my colleague): “some people at N were running around like headless chickens”. I don’t know if they already have an explanation from their telco, but I guess not given that V is notoriously bad at these things. It took us about 20 minutes to get an answer from T, that’s pretty decent for a telco, given that communication went via a ticketing system and an outage like this causes more customers to call/mail/file a ticket.

11 juni 2009

/m3 1z 1337 k3rn3l h4×0r

A few weeks back I submitted a small modification to the ALSA subsystem maintainers. My patch added some code to actually displays the Intel HDA device function ID, which was being kept silent before. My patch got accepted and commited. I have proof because now I’m in the Linux-2.6.30 changelog. Whieh!

06 juni 2009

A strange concoction

Libvirtweb is a bland and unoriginal name for a spiffy new web interface to libvirt. Huzzah, I am releasing something!

This is an early prototype kind of thing. Here’s what it looks like:

libvirtweb viewing the console of a domain over an SSH tunnel

You will find the code and some quick instructions are hosted at Github:
http://github.com/stephank/libvirtweb/

The rest of this post is some background.

Our office is a battlefield split in two

On the one side, there’s Linux on the desktop, Mac OS X on the desktop, Linux machines powering all primary services we sell. And then on the other, Microsoft Exchange, and Windows administrators. Sarcastic retorts and counter retorts go back and forth.

So far, this is holding up fairly okayish. There’s just one piece of iron powering our office, and a Windows virtual machine gobbling up about half of it’s resources.

We’ve tried a couple of alternative virtualization technologies, but surprisingly, an Ubuntu Server install with KVM was the most stable of all! Now comes the problem of colleagues wanting to manage the thing from their Windows desktops.

Turns out it was a good choice not to make Windows the host. When we doubled up the processor, we found our Windows license goes up to just 4 cores. Score one for the *nix side.

Face to face with libvirt

No doubt one of nastiest obstacles in creating this was libvirt. When you look at it’s goals from a high level (a very very high level), it sounds nice: a single API to manage virtual machines of any kind.

In practice, that has become a single API to manage local and remote iron over various types of connections and tunnels, and running various virtualization technologies. All that in a blocking fashion. Hell, I can’t even imagine how to do all that in a nice asynchronous API.

It looks like the only useful thing the libvirt API can be used for is to script some things in Python. And the Python bindings are very limited. Scripting things in bash works just as well using virsh.

If I had a say in it, the libvirtd daemon would not be optional, and would simply expose a DBus API. Rather like NetworkManager.

Mixing Twisted and CherryPy

The above is written in Twisted and CherryPy. However, when dealing with SSH tunnels, I had to find a way to take the tunnel out of the equation for the browser. The approach I took is a proxy for the RFB protocol, which is what is used to view consoles in KVM and QEMU.

Adding an RFB server to a CherryPy server is not really one of CherryPy’s use cases. However, CherryPy can be treated like a WSGI application. This allowed me to host CherryPy in a twisted.web.wsgi.WSGIResource, and mix the rest of my Twisted components with the webapp.

Using CherryPy as a WSGI application, and specifically in Twisted, is not really documented well anywhere. So here’s a snippit of code to do it. This is based on CherryPy 3.1.2 and Twisted 8.2.0.

#!/usr/bin/env python

import cherrypy
from twisted.internet import reactor
from twisted.web import wsgi, server
from twisted.python import threadpool

# Here's our hello world CherryPy application
class Root(object):
   @cherrypy.expose
   def index(self):
      return "Hello world!"

# Use the 'embedded' configuration template
cherrypy.config.update({'environment': 'embedded'})
# We need to unsubscribe the CherryPy server to prevent a port conflict
cherrypy.server.unsubscribe()
# Start CherryPy internals
cherrypy.engine.start()
# Make sure we shut down CherryPy when we're done
reactor.addSystemEventTrigger('after', 'shutdown', cherrypy.engine.exit)

# Create a WSGI callable from our application
app = cherrypy.Application(Root())
# Twisted needs a threadpool to run WSGI applications
threads = threadpool.ThreadPool()
threads.start()
# Make sure we shut this down too
reactor.addSystemEventTrigger('after', 'shutdown', threads.stop)

# Setup the twisted.web factory, and listen on 8080
resource = wsgi.WSGIResource(reactor, threads, app)
factory = server.Site(resource, 'server.log')
reactor.listenTCP(8080, factory)

# The main loop
reactor.run()

01 juni 2009

Ubuntero van de maand juni: Ron

Het leven
Wie ben je?
Ron Bakker

Waar woon je?
Sint-Annaland, op het eiland Tholen in Zeeland

Hoe ziet je leven buiten Ubuntu eruit?
Getrouwd, vader van 2 dochters, opa van 2 kleinzoons en 1 kleindochter. Voor mijn werk zit ik in de electronica, portofoons, mobilofoons e.d. Mijn hobby is naast de PC, vooral muziek luisteren en geschiedenis. Mijn werkgever zit in Delft, elke dag met de auto naar Bergen op Zoom (25 km) en dan met de trein naar de randstad en na een dag werken weer terug, er gaat veel vrije tijd zitten in werken (lol)

Moet er nog iets veranderen aan de wereld en waarom?
De moderne mens is niet sociaal en vaak ook nog gewelddadig, waar is de eerlijkheid gebleven?
De wereld moet meer leiders hebben, die verdraagzaamheid en liefde voor de medemens uitstralen.

Hoe lang gebruik je al Ubuntu en hoe is dat zo gekomen?
Ooit begonnen met een hex-systeem, toen een TRS-80, een P-2000 en daarna een CP/M systeem.
CP/M heb ik in één jaar volledig herschreven voor de Z80 processor, die meer kon dan de 8080, waar CP/M voor geschreven was, hierdoor heb ik erg veel geleerd over operating systemen.
Windows heb ik vanaf 3.11 gebruikt, alle versies t/m XP, maar mijn mening was altijd, dat ik geen beschermingssoftware nodig zou moeten hebben.
Na een test met Beatrix Linux ben ik met Ubuntu 4.10 begonnen, dat was vlak voor de release van 5.04.
Hierna ben ik altijd bij Ubuntu gebleven, het puzzelen en laten werken zoals ik het wil, en niet zoals een ander het wil, staat mij aan.
Mijn PC’s doen dan ook wat ik wil, zoals ik het wil, dankzij Ubuntu!

Hoe kom je aan je username?
Die naam gebruik ik op een aantal forums, zo komt er nooit verwarring met een andere “Ron”.

Hoeveel uren per dag ben je met computers bezig? Wat boeit je het meeste en wat ergert je het meeste?
Op mijn werk bijna de hele dag (DOS en Windows), en als ik thuis kom gaat gelijk mijn werk PC aan, dus eigenlijk ben ik buiten het woon-werk verkeer altijd wel in de buurt van een PC te vinden.

Doe je nog iets specifieks voor de Ubuntu-community?
Op het forum ben ik moderator, maar dat heeft wel zijn langste tijd gehad, door het reizen en werken kom ik elke dag een paar uur te kort.

Wat mis je nog wezenlijk in Ubuntu?
Dat weet ik pas wanneer ik het nodig heb, of wanneer ik het zie.
Zo heb ik net het programma Opstart-Manager gevonden (dankzij een tip), waarmee de opstartfile van GRUB (/boot/grub/menu.lst) grafisch aan te passen is.

Wat was de vraag van de vorige Ubuntero en wat is je antwoord?
Het is eigenlijk een hypothetische vraag. Stel vooreerst dat vanaf heden alle software gratis en open source zou zijn en er geen virussen e.d. meer zouden bestaan. Kun je dan even jouw volgorde van voorkeur voor de grootste besturingssystemen geven met een korte uitleg waarom dit voor jou zo is?
Mijn voorkeur zou dan alleen gericht zijn op stabiliteit en mogelijkheden, tot nu toe komt Ubuntu daar aardig aan toe………….

Famous last questions
Wat is je favoriete dooddoener, gezegde of gedicht?
Komt tijd, komt raad, moregen weer een dag.

Wie moet de volgende Ubuntero van de maand worden en waarom?
SWAT, hij heeft bijna overal toegang toe, ik ben benieuwd wat hem motiveert.

Wat zou je aan de volgende Ubuntero van de maand willen vragen?
Wat was je eerste kennismaking met een computer en idem met Linux?

Eclipse 3.4 on Ubuntu is tricky, but possible

Unfortunately the version of Eclipse in the Ubuntu repositories is old, almost three years to be precise; even though the latest version is 3.4.2, Jaunty Jackalope gives you — like earlier releases — 3.2. This is quite hindering because most new plugins, like the Google Plugin for Eclipse — which I wanted to try — require at least 3.3.
There was a session at Karmic’s UDS — Tuesday 17.10 in room 7 — about including Eclipse 3.4/5, but the mentioned action points are rather passive. Taking into account the fact that Eclipse is very hard to package properly, the decision was made that if Debian would drop Eclipse, Ubuntu would drop Eclipse too. The QA team was contacted to see how complaints from users about an obsolete version could be handled. The policy is to encourage community members to ix the problems.

It’s a shame that they didn’t decide to package it themselves. Eclipse is a good and often-used IDE and I think it should be included in the repositories. We don’t have to use Debian for all packages, do we?

Fortunately there is a PPA that offers 3.4, maintained by the Eclipse Team. The PPA can be found at https://launchpad.net/~eclipse-team/+archive/ppa. Unfortunately — there we go again — the amd64 build for jaunty failed. It’s still possible to get it working. Here’s how:

Using the PPA, no ‘Software Updates’ can be installed

People using 32bit can just use the provided PPA without any problems. If you are a 64bit user you’ll have to an earlier, successful build: in this case intrepid. Everything will work just fine.

So, for 32bit use this:

deb http://ppa.launchpad.net/eclipse-team/ppa/ubuntu jaunty main

and for 64bit use this:

deb http://ppa.launchpad.net/eclipse-team/ppa/ubuntu intrepid main

Add this line to source.list with an text-editor or use System->Administration->Software Sources.

Now add the PPA’s key to your keyring using:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5126890CDCC7AFE0

Run the usual command: sudo apt-get update and you can install Eclipse like you usually install programs. However, the Software Updates functionality won’t work.

Using the eclipse.org download, with plugins

You thought this would be the easy way? I’ll have to disappoint you. When I tried to use the official download I ran into some problems that could only be solved by installing the latest — 3.4 — version of Eclipse. So, yes, you’ll have to go to the previous part and follow those instructions too. Install Eclipse and go to Eclipse.org and download the latest version of Eclipse, pick your flavour.

In the archive you’ll find a compiled Eclipse, which can be executed right away. The plugin/Software Updates functionality works.

However, you will have to use Sun’s distribution of Java. Install sun-java6-bin and make it default by executing the command sudo update-java-alternatives -s java-6-sun.

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

31 mei 2009

A slick looking desktop is possible on Ubuntu!

Yeah, your probably already knew that it’s possible, but for the first time I can honestly say I succeeded in achieving that goal myself. At last I’ve got a clean desktop that can compete with and even defeat the RC of Windows 7 that’s busy taking way too much space on my hard-disk at the moment.

Looking good is important for an OS — Mac OS would be a lot less cool if it wouldn’t be considered so well designed — and I think that this is where Linux stays behind. There are a lot of terribly awesome pieces of art out there on the Internet, but they aren’t always that easy to find. For example: the place to be for a good wallpaper is of course deviantART, but you have to know about it’s existence. If you want a good looking theme, go to GNOME-Look.org. There are loads and loads of elements, window borders and, the hardest part to make, icons.

I hope the promised focus on design for the next two Ubuntu releases is going to pay off. Because in my eyes Ubuntu cannot succeed on the desktop without looking good.

Enough chatter, bring on my desktop!

Schermafdruk A slick looking desktop is possible on Ubuntu!Schermafdruk 1 A slick looking desktop is possible on Ubuntu!

A quick overview of the used components:

" href="apt:gtk2-engines-murrine
">install it from the repository)

Conky

As you can see on the screenshot I’m using the wonderful program Conky. This program writes text on your desktop/wallpaper and can be used for all sorts of interesting things. With scripts you could even let it display the status of your coffee maker!

The configuration syntax is rich and although not that complex, takes time to learn. I wanted quick and beautiful results, so I used the CONKY-colors script — unexpectedly written in C — to generate my .conkyrc file. Have a look at it’s description for the installation instructions and make sure you read them carefully.

I used this command to generate my configuration file:

./conky-colors -c brave –cpu 1 –hd –network –weather –weathercode NLXX0012

Please keep in mind that both the resulting file and the required .scripts folder are all hidden by default. Press Ctrl+H in Nautilus to see them or copy the folder and file with terminal commands.

The translation to Dutch are done by myself, although the script does support localisation to some extend, the number of languages supported is limited. (Don’t mind the large amount of English left, that’s normal nowadays in Dutch, unfortunately.)

A lot of people add the command conky -c ‘path/to/conkyrc’ directly to GNOME’s Start-up Applications. although letting Conky start right away might work flawlessly on XFCE, it does give troubles in GNOME and KDE. Therefore you should use a script like the following one to start Conky:

#!/bin/bash
sleep 20 &&
conky -c ~/.conky/conkymain &

Dock

The dock at the bottom of my screen is Avant Window Navigator, right from the repositories. I chose this dock because its appearance is easier to configure and it’s lighter than equivalents like GNOME Do.
Install AWN

The background colours are completely transparant, the only colour is the grey in the border. Doesn’t it look great?

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

21 mei 2009

Cool Stuff: The Blueman Project

I’m probably not the only one who noticed that there’s no easy way connect to a 3G mobile network via Bluetooth for on-the-go Internet access. Luckily there a cool project which integrates well with Network Manager. It’s called the Blueman Project, they have packages for Ubuntu available on their PPA repository.

UFRaw and Canon EOS 500D

Folks who have recently purchased the brand spanking new Canon EOS 500D camera, may have noticed that current UFRaw versions (usually 0.15) don’t properly support this new camera. The raw files are usually decoded properly,  but colors are off (probably because of mixed-up channels)…

A few days back the parameters (Color Matrix) for properly interpreting EOS 500D colors was commited to UFRaw CVS (development version). And yesterday the white balance presets were commited to CVS as well.

I’ve rebuilt my UFRaw packages for Ubuntu Jaunty from CVS this morning, complete with 500D support. The packages are available at my PPA repository as usual.

20 mei 2009

sK1 vector graphics editor is now available for Ubuntu


At the last Libre Graphics Meeting I met Igor Novikov, who is the lead developer of sK1. sK1 is a vector graphics editor, just like Inkscape but with a different focus. While Inkscape is oriented to the SVG format and is ideal for web design, sK1 targets professional designers from the prepress world. So sK1 supports CMYK, multiple pages and separating colour plates. To quote wikipedia:
sK1 is an open-source illustration program for the Linux platform that can substitute professional proprietary software like CorelDRAW or Adobe Illustrator. Unique project features are CorelDRAW formats importers, tabbed multidocument interface, Cairo-based engine, color management etc.

The multipage feature is very handy for designing booklets with vector graphics or presentations, which you could project with impressive (former keyjnote). Under the hood Inkscape and sK1 share Uniconvertor, for importing, exporting and converting vector graphics. Uniconvertor was developed by the sK1 team. (sK1 is a fork of the Skencil project.) Another difference from Inkscape, is that sK1 itself is developed mostly in python. So you could in a way it use as a python library.

sK1 is being developed under Mandriva and it is hard to install on Ubuntu (especially for graphic designers). I noticed that Vladimir Osintsev was preparing a package for Ubuntu. I contacted him and invited him to work together on it within the Debian Python Package Team. So hopefully sK1 will become available in Debian and Ubuntu (from Karmic).

As some of you can't wait and like to use sK1 with the current Ubuntu releases, I decided to add sK1 for Jaunty and Intrepid to my PPA:
deb http://ppa.launchpad.net/stani/ppa/ubuntu jaunty main

To add the key of my PPA to your system, type the following in a terminal (replace jaunty with your ubuntu version):
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7B0FB2CA

You can read my PPA page https://launchpad.net/~stani/+archive/ppa for more information.

Disclaimer: this is the development version of sK1 and the packages have not been tested by a critical mass. In case you have problems, you should report them on the sK1 forums. The packaging is not perfect yet. For example there will be no entry in the start menu. This will be fixed in a next release. I've sent Igor from sK1 the necessary files to resolve this issue. So for now start sK1 by typing "sk1" in the run dialog (Alt+F2) or in a terminal.

As a final remark: you need to remove your ~/.sk1 folder, otherwise sK1 might have troubles starting up.

19 mei 2009

Traincoding: making functions conditionally unavailable

In one of my projects, the codebase is shared between several instances. Some administrative code really should not be available in some read-only instances, such as the save() method on django objects, or some of the view functions. Of course it’s possible to write checks in each function or a decorator that does these checks, but I prefer to go one step further and make the code object unavailable, like what #ifdef in C does. Here is a simple decorator that does this:

def only_if(cond, callable=None):
    """Make a function conditionally unavailable by simply discarding its code object
       and returning another one that raises a NotImplementedError. Allow to
       override this callable with another one or an exception class."""
    def inner_decorator(f):
        # We need to return a callable, so here's a minimal one that raises NotImplementedError
        def default_callable(*args, **kwargs):
            if callable:
                raise callable
            raise NotImplementedError("Function %s is not available" % f.__name__)
        if cond:
            return f
        if callable and not (isinstance(callable, type) and issubclass(callable, Exception)):
            return callable
        return default_callable
    return inner_decorator

# Create another decorator that raises a 404 when cond evaluates to True
from django.http import Http404
raise_404_if = lambda cond: only_if(not cond, Http404)

# Examples:
some_condition = True

@only_if(some_condition)
def foo():
    print "foo called!"

@only_if(not some_condition)
def bar():
    # This will never be run
    print "bar called!"

@raise_404_if(True)
def baz():
    # This will never be run
    print "baz called!"

# This will print "foo called!"
foo()
# This will see the exception
try:
    bar()
except NotImplementedError:
    print "Apparently bar() does not exist"
# This will raise django.http.Http404
baz()

16 mei 2009

TurboPrint To The Rescue

I’ve been strugling a bit with my prints. HP makes pretty good open source printer drivers. However, one thing they haven’t built-in is good color management support. Which has been my achilles heel lately.

The latest F-Spot has facilities to apply a color profile before sending an image to the printer, which works fine in the sense that F-Spot does what it’s supposed to do. I had a profile made by a local print shop, and my colors got more accurate but the print also got darker, which was rather problematic, except for in brightly lit environments.

Not entirely happy with the above, I recollected TurboPrint being mentioned on several forums… So one day I decided to try the trail version. Before even downloading the trial the first thing that I noticed was that ZEDOnet offers both proper (native) 32bit and 64bit versions, packaged in Deb, RPM and tarball formats. Making sure nobody gets left out…

After the installing the 64bit Deb package on my (back then) Ubuntu Jaunty beta installation, two new icons were correctly placed  on the System Administration menu. The two utilities are nice GTK applications and thus integrate well into the default Ubuntu desktop experience, even though they are not fully GNOME HIG compliant, and do not yet integrate with PolicyKit.

TurboPrint mainly seems to concentrate on drivers for Canon printers, which is mostly logical since Canon seems to completely ignore operating systems other than Windows or Mac OS X. Even Gutenprint has very limited Canon support. Leaving a void in the drivers spectrum which TurboPrint nicely fils. But other brands are supported as well, I used TurboPrint with my HP Photosmart C6280.

When I verified my printer was operating properly using the trial version of TurboPrint, I bought the Pro version, and purchased a few color profile coupons. Then printed the color charts and sent them to be profiled by ZEDOnet. 7 days later I got my profiles (please note I live in the Netherlands, so snail mail takes a while to get delivered in Germany).

I purchased several coupons to profile different papers, but thus far I’ve only used Tetenal Photo Archival Matte and it’s corresponding profile, and the results have been absolutely stunning. With HP’s original drivers printing on true matte paper has been horrid at best. Matte papers in general seem to need less ink, so HP’s original drivers seem to soak the paper, and procedure a dark and soggy mess. TurboPrint to the rescue, with the profile each and every print thus far (disclaimer, I’ve only produced several A4 size prints) has been great. Color’s are quite accurate, and the prints are dark where they should be, and light where they should be. I still need to try my other color profiles and a wider variation of photographic subjects, but results so far and extremely encouraging.

For me there is a disadvantage though, TurboPrint’s HP Photosmart C5100 driver backend seems procedure significantly more dithering than HP’s hpijs. I doesn’t bother too much, since I only do A4 sized prints. But I can imagine this to be an issue for 6″ x 4″ prints. I’m assuming this to be less of an issue for printers which support a higher resolution, like Canon’s latest models which do 9600×2400 DPI (instead of “only” 4800×1200 DPI).

Another nice thing about TurboPrint is the fact that they still seem to be actively developing it. Updates are released more or less once a month, and new supported printers are still being added.

So if you’re not entirely happy with the results you’re printer is producing for you, I highly recommend you try TurboPrint and ZEDOnet’s accompanying profiling service, both of which are extremely affordable!

Shared folders in virtualbox

Gedeelde mappen in virtualbox met windows als gast besturingsysteem reageren vrij traag.  Soms moet je tot 30 seconden wachten voor je file wordt geopent.

Na een beetje zoekwerk vond ik een oplossing op het internet. Door het toevoegen vboxsrv aan de hosts file van windows, openen de bestanden ineens tegen een aanvaardbare snelheid.

De locatie van de windows host file: c:\windows\system32\drivers\etc\hosts

De nieuwe inhoud : 127.0.0.1 localhost vboxsvr mijn_hostname

15 mei 2009

Dutch Usenet user group charges Brein, Dutch anti-’piracy’ foundation

FTD sleept Stichting Brein voor de rechter. De usenet-community wil dat Brein door de rechtbank wordt gedwongen een rectificatie te plaatsen. Daarin zou het uitspraken dat FTD’s activiteiten strafbaar zouden zijn, moeten herroepen.

via FTD sleept Brein voor de rechter | Pro | Tweakers.net Nieuws[NL].

The small piece of text above is the first part of a Dutch article that announces an interesting change in the (anti-)’piracy’ world. The Dutch Usenet user group FTD charged the Dutch RIAA-light, Stichting Brein — Foundation Brein or Brain, website at http://www.anti-piracy.nl/home/home.asp — because they finally had enough of their Director Tim Kuik — yes, the same one who said that downloading software is always illegal — constantly telling the press and the rest of the world that the group of Usenet users was doing illegal things, without providing much funding.

Earlier the FTD already gave in to pressure[NL] adapted their client to meet Stichting Brein’s demands a bit, one of the things the removed was the NZB search engine. According to advices from a legal counsellor they were operating within the law at least afterwards. Brein continued with spreading messages saying that the FTD was doing illegal things. Moreover, they said legal action wasn’t ruled out.

FTD also has commercial interests in their client, because they sell ad space. Because of continuing, and like said before, unfounded, claims by Brein they were afraid they might lose people willing to pay them for placing their ads. Furthermore they were getting fed up with constantly being threatened.

Now, for the first time in the Netherlands, and probably also in Europe — correct me if I’m wrong — someone has charged the anti-’piracy’ organisation instead of vice-versa. What’s more, they don’t only want to get Stichting Brein to place a rectification at their website for three months, they also want the judge to tell if downloading via Usenet and providing links to Usenet downloads on forums is either legal or illegal. For that they’ve used the form of a bodemprocedure — German: Hauptsacheverfahren, Google Translate English: substantive issues.

I’m curious about the results of this very interesting trial. I’m sure other parties like Google and The Pirate Bay will also keep an eye on this to see if it’s going to have any consequences for them. I hope the judge will manage to stop Stichting Brein from spreading it’s FUD — they’re very good at it, they once spread a anti-’piracy’ tool that removed all music from your computer, regardless of its legal status.

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

Bestandsbeheerders: Nemo en PCManFM

Het tweede artikel in de serie Bestandsbeheerders. Vorige keer hadden we het over Thunar en Nautilus, dit keer hebben we het over twee minder bekende bestandsbeheerders: Nemo en PCManFM. Dit artikel is geschreven door Tumie (Thomas Berends).

Nemo

Website: http://www.iola.dk/nemo/

Nemo is een bestandsbeheerder van Iola. Je kunt Nemo gebruiken om bestanden te beheren via een kalender. Je bestanden staan namelijk op een kalender. Als je het voor het eerst ziet, lijkt het raar maar daarna went het snel.

Sterren
Je kunt sterren toevoegen aan belangrijke bestanden. Hierdoor heb je de optie om alleen belangrijke bestanden weer te geven. Dit scheelt je een hoop tijd als je even snel een belangrijk bestand moet vinden.

Zoekfunctie
Een zoekfunctie lijkt erg handig, maar ik zocht zelfs naar een bestand dat op de zojuist geopende maand stond, en toch vond hij het niet. Het is duidelijk dat de zoekfunctie er wel al staat, maar nog niet werkt.

Kortom, Nemo is een prachtige bestandsbeheerder maar hij is gewoon nog in de alpha status. Hierdoor zijn er weinig functies en kun je er nog niet heel veel mee. Ik verwacht dat Nemo verder niet groot zal worden, aangezien de laatste alpha versie (0.2.3) uit is gekomen op 19 augustus en er verder geen updates meer zijn geweest. Verder is het idee wel grappig, maar het werkt gewoon niet fijn. Bestanden worden niet voor niets geordend in mappen, en niet op datum.

PCMan File Manager

Website: http://pcmanfm.sourceforge.net/

Als eerste wil ik graag een waarschuwing geven, voor alle mensen die vaak via Nautilus inloggen op een FTP server, en hiervoor een bladwijzer in Nautilus hebben toegevoegd. Deze kunnen namelijk bij het gebruik van PCMan File Manager verdwijnen. Dit gebeurt omdat PCMan File Manager niet met FTP om kan gaan.

Overzicht
PCMan File Manager is enorm overzichtelijk. Je ziet bovenaan de locatie waar je bent, onderaan het aantal zichtbare/verborgen items. En dan heb je nog de verschillende knoppen.

Tabbladen
PCMan File Manager heeft ook een tabbladen functie. Deze is zeer gemakkelijk te bedienen. Een tabblad toevoegen kan met één enkele klik via de + knop, en dat heb ik nog nergens gezien.

PCMan File Manager is fijn om te gebruiken ipv Nautilus, behalve als je met FTP werkt, want dat werkt simpelweg niet. Als dit erbij komt, zal ik zeker overwegen om PCMan File Manager te behouden en voortaan te gebruiken.

Django {% url %} tag with hostname

The Django {% url %} tag always gives you urls that only work on the same host. Not good enough for me, as parts of my project only work on certain hosts. The logic behind {% url %} can still create the correct path though, so why not reuse it?

Here’s a modified {% url %} called {% hosturl %}, that allows you to specify a base path. Usage:

{% hosturl http://other.host/other-path/ my.view.name arg1 arg2 %}

12 mei 2009

How to become an Ubuntu member, the easy way

I joined the Ubuntu community in 2004, shortly before the first version was released. Was co-founder of the dutch locoteam in that same year and became member in 2005. Since then I’ve been on many meetings of the community council, as a spectator and later as their secretary. I am currently part of the EMEA membership board, which is responsible for approving Ubuntu members in that region.

What I want to say is: I know what the hell I am talking about here, and if you want to become Ubuntu member, it’s good to read this page and listen to what I am saying :) Too many people show up to our meetings ill-prepared and that costs a lot of our valuable volunteer time. Yes, surprise, the membership boards are volunteers, like most of the Ubuntu community. They have become Ubuntu members by following this same procedure.

With that message out of the way, here’s the highway to Ubuntu membership. Just cruise along, try not to speed and watch out for any weird community managers who fancy waterfowl.

Update 2009-05-13: Emphasize the importance of working within a team

Step zero: learn what Ubuntu means

Ubuntu is not just a buch of software on a cd and some servers. The most important bit about the Ubuntu project is its unique and huge community. One of the many unique things (well, not unique anymore as more and more free software projects are adopting this) about the Ubuntu community is its code of conduct. Whenever you participate in the Ubuntu community, you are expected to follow this code which basically says: be respectful to each other. Read the code, sign it with GPG (manual) and become an ubuntero. In all the steps that follow below, you should always keep this all-important step in mind. Ubuntu is a community where everyone is welcome and where we all collaborate to make Ubuntu and its community better.

Step one: contribute to Ubuntu and its community

This is the easy bit. It will take more time than any of the other steps, but the beuaty is: you can do whatever you want! There are a lot of ways you can contribute to Ubuntu. Everybody can guess that it is possible to write code to help out the project, but that’s just one of the many ways. Here are some good ones, that I think should be done by more people:

  • Translate. Unless your native language is english, there will always be some things in Ubuntu that are not translated. If your english is good and you are not afraid of technical terms, translate some untranslated software and send your translations to its owner and/or the Ubuntu project. You will help many people near you and far away who do not speak english very well and want to use Ubuntu in their own language.
  • Support. Without users there will be no Ubuntu. Even though I like to think Ubuntu is the easiest-to-use operating system, people still need help with it. Hell, even if it really is the easiest to use operating system people will need help. Computers are just annoying things that never do exactly what you want. So help people and make them happy Ubuntu users. There are forums, mailinglists, irc channels, social network groups and most important: local events all over the world where new Ubuntu users meet experienced once and information and experience is shared.
  • Advocacy. Let people know Ubuntu exists. Explain its benefits, but don’t forget to tell about its downsides. `Sell’ Ubuntu as an alternative to proprietary software, explain about the benefits of open source and free software. Awareness is half the battle, when you can convince someone to give Ubuntu an honest try you’re almost there. Tell them about the warm and welcoming community and make that community grow!

Of course there are a lot of other ways (really, read that page too) to contribute to Ubuntu. As I said: do whatever you want to do and can do to make the Ubuntu community a happier place. But don’t go off and do things on your own, make sure you work with the rest of the community. The Ubuntu community is not just a bunch of people each doing their own thing, there are many teams focusing on all kinds of things. When you figure out what you want to do, find the team you can join and work with them. If there is no team yet for what you want (for instance a new LoCo team), make sure you work with related teams to get this set up. Other members are more than willing to get you started and make you feel right at home in our community.

So I lied a bit, you cannot really do whatever you want. But you didn’t really expect that either, did you? As long as you work with the community and for the community, you still have an awful lot of freedom though. For me, it is pretty close to doing exactly what I want and for most people it is not far away from that either.

Step two: documentation

Ok, this is the important one, well it is for me and my colleagues of the membership boards. You will probably not like this step but this is just something you must go through. It’s not as fun as a toothache, but less painful than a root canal. This is the bit that many people get wrong, so pay close attention and you’ll get it right. This makes the difference between being accepted in a 5-minute meeting and being rejected twice even though you do an awesome job.

By the way, did I say this is the important part? Good!

Whatever you do, document it! This is especially true for offline things that do not log themselves (such as forum posts, wiki edits and packaging work), but no less important for people who exclusively do things like editing those wiki pages. When you apply for Ubuntu membership, there are between four and eight people who will decide whether your actions so far have been a sustained and significant contribution to the Ubuntu community. The easier you make their job, the quicker you get accepted.

You will need to tell us about yourself. You do this by creating a page for yourself on the Ubuntu wiki that tells us who you are and what you do. Not just Ubuntu, we want to know our members so besidies saying what brought you to this community and why you like it, tell us about yourself as well.

Then tell us what you did so far. Give links to forum profiles, forum posts that you did, wikipages you wrote, launchpad information about yourself. When you do lots of promotional activities, make photos and publish them somewhere. When you do artwork or documentation, summarize what you did and link to things you are proud of. When you do packaging, tell us about your experience. Make sure we know what you did. Convince us that it has been a sustained and significant contribution.

And tell us about your plans. You have obviously tried to make a commitment and you want to be recognized for this. But your involvement with Ubuntu does not stop here! Why do you want to become Ubuntu member and what are you going to do in the future?

Okay, so that sucks. You will need to write that page, just deal with it. I hated it myself, and my wikipage definitely wasn’t the best. Still, I got accepted on my first try, because I did one thing right: there were people cheering for me! This is as important as the writing, if not more important. You can write down anything you want in your wikipage, but we must be sure it is true.

So get people to cheer for you and make them leave testimonials!

This makes all the difference in a meeting! Make people write their support for you on your wikipage and make them support you during meetings. When you do good work, you will have no problems in getting testimonials. But make sure you also get them from recognized Ubuntu members. This might make Ubuntu sound like a friends-only club, but that is definitely not true! Everyone is welcome, but it sure helps us decide a lot quicker if people we know and whose opinion we value highly tell us that they like what you are doing and should become an Ubuntu member.

Step 3: come to a meeting

With the easy (doing) and difficult (writing) bits out of the way, it is time to meet with one of the governance bodies that decide on Ubuntu membership. If you focus mostly on packaging, you should become a MOTU, and with that an Ubuntu member. For all other applicants (which is most of you), there are three regional membership boards: North & South America, Europe, Middle East and Africa and Asia and Oceania. These boards meet regularly on IRC, and in these meetings you can become Ubuntu member.

Put yourself on the agenda of a meeting for which you have time, you do not necessarily have to go to the board in your region if the schedule of another board fits your schedule better. Make sure you show up at the meeting (surprisingly enough, some get this bit wrong). Prepare a short summary of your wikipage (about 3 lines). You will be asked to introduce yourself, paste these three lines into the channel as introduction.

And then you wait, and wait… The board members will be reading your wikipage, launchpad profile and all the things you link to. We will ask you some questions about your work, make sure you answer them as correct as possible. This is not an exam, but we are trying to get to know you. This is also the point where we make people tell us about you. You did remember to bring some supporters, didn’t you? The more the better, especially people we know.

And then we vote. Each board member will say +1, 0 or -1 (or a creative variant if the situation requires it). There is hardly ever a non-unanymous vote, we all want the same from people. If you’ve prepared well, you will see all +1’s. If you’re ill-prepared, it’ll be -1’s. But the latter should not happen if you followed my advise.

Conclusion

It is really not that difficult to become Ubuntu member, and it of course should not be. The biggest hurdle in recent months is that the membership boards sometimes forget about meetings :) So if you contribute to the Ubuntu community and want to be recognized as Ubuntu member, come to the next meeting and see how it works. Then maybe apply for membership a few meetings after that. Good luck!

Changelog feeds, now for debian too

Since my Ubuntu changelog feeds are quite popular according to feedburner feed stats, I thought it would be a good idea to do some for Debian too. So here they are:

Enjoy!

11 mei 2009

Star Trek

Best. Star. Trek. Ever.

Just came back from the cinema, will go back there tomorrow to watch again. Won’t give any spoilers, but if you like star trek: go see it. If you don’t like star trek: go see it anyway, it’s that good.

HCC!Regiodag report

Last Saturday there was the HCC!Regiodag (Region Day) for the North of the Netherlands in the town of Drachten. Next to a gaming, Bible & PC, C, Commodore this computer and electronics hobby club also has a Linux group. Nowadays no conferention is complete without a Linux stand and Ubuntu NL was asked if they wanted to help.

We got a reasonable large group, about 10+ people and a conference pack from Canonical gave us some material. A pitty the leaflets were in English, so not all people were confortable reading them, but thanks to Maarten of OS4Free we didn’t only have Dutch leaflets, but also two demo computers — on a nice demo table! — and a barebone which was used to display a loop of FOSS-related movies on a beamer, in fact the largest beamer of the whole room!

Unfortunately the CD’s that were sent to us were still in Lelystad, so the only CD’s we had were self-made and the four official I took with me — apparantly I was the only one that already had the CD’s, not anymore though.

We had a lot of room, in fact we had one of the largest stands: a rectangular table for showing some stuff and helping with problems and installation and two round tables for showing stuff — one was largely focussed on technologies for disabled, Linux seems to lead here. In the morning we had to share one round table with a person showing Windows 7.

The CD’s were popular and I think we gave about 30+ away, even one to the tech support table. Unfortunately the lecture about installing Ubuntu next to Windows wasn’t very popular, but that was compensated by the many people turning off the offer of a free CD because they already had installed Ubuntu.

At our stand we installed Ubuntu about three times. This went without problems although the Dutch translation doesn’t seem to get fully installed at all occasions. This isn’t new though.

Some pictures, thanks to ‘mr Gee’ and ‘Reekje’ for making and uploading them.

 HCC!Regiodag report HCC!Regiodag report

More pictures can be found here and here.

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

10 mei 2009

Evolution vs sha256, or why my new key is useless

There’s again a bit of cryptographic related panicing going on at the moment. This time it’s not a bug in the Debian version of OpenSSL, but another attack on SHA-1 that appears to break it a bit worse than before. So now everybody is generating new gpg keys to move away from SHA-1 hashes. There’s one problem though: even when you generate a new gpg key that supports better hashing, your applications will still need to support the better hashing for it to be effective.

Given that gnupg is pretty unusable as a library, making everyone create library-ish wrappers around its command-line interface, it is very easy to get this wrong. So when I decide to generate a new gpg key as well (didn’t want to miss a good crypto panic :)), I tested it with evolution to see if this shiney new key would cause better hashes to be created. To my surprise, I found that gnupg as called by evolution still generates SHA-1 hashes even though I indicated in the key and in the gnupg config that I wanted better hashing. A quick look through the evolution and evolution-data-server source revealed the bug:

camel-cipher-context.h says:

43 typedef enum {
44     CAMEL_CIPHER_HASH_DEFAULT,
45     CAMEL_CIPHER_HASH_MD2,
46     CAMEL_CIPHER_HASH_MD5,
47     CAMEL_CIPHER_HASH_SHA1,
48     CAMEL_CIPHER_HASH_RIPEMD160,
49     CAMEL_CIPHER_HASH_TIGER192,
50     CAMEL_CIPHER_HASH_HAVAL5160
51 } CamelCipherHash;

With CAMEL_CIPHER_HASH_DEFAULT being treated the same as CAMEL_CIPHER_HASH_SHA1. So evolution doesn’t support the SHA-2 family of hashes. And worse, it doesn’t respect preferences set in the key or the gnupg config. Bug 304415 has been open for almost 4 years requesting improvement in this area, but nothing really happened so far.

So when it comes to e-mail, my shiny new key is still pretty damn useless.

05 mei 2009

Restoring the Xfce panels


One question that people looking for help with Xubuntu often have is some form of “my panels/taskbar/menu disappeared”. Unfortunately, this is something that happens quite frequently.

The good news is that this is fixed easily. All that’s required is to press Alt+F2 to bring forward the Run program window, and run the command xfce4-panel.



Not only is this a quick fix for the problem, it also makes for a quick blog post that might still help quite a few people ;)

Update: Xubuntu 9.04 will include Xfce 4.6 which should be able to automatically restore the panel in the event of a crash. Hooray :)

Update to that: According to willerlite, the panels do not automatically re-appear. Hmm :S

03 mei 2009

Traincoding: SQL views for Django multi-table inheritance models

A django multi-table inheritance model works like this:

from django.db import models

class A(models.Model):
    foo = Models.IntegerField("foo")

class B(A):
    bar = Models.IntegerField("bar")

Which in SQL translates to:

CREATE TABLE `foo_a` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `foo` integer NOT NULL
)
;
CREATE TABLE `foo_b` (
    `a_ptr_id` integer NOT NULL PRIMARY KEY,
    `bar` integer NOT NULL
)
;
ALTER TABLE `foo_b` ADD CONSTRAINT a_ptr_id_refs_id_3d7a1a0e FOREIGN KEY (`a_ptr_id`) REFERENCES `foo_a` (`id`);
COMMIT;

In one of my django projects, I use multi-table inheritance an awful lot. It is an asset database that for instance enforces unique asset tags among a variety of assets. The data is used outside of django as well, where the required joins make code and sql less readable. Some models use fourr levels of inheritance, and thus up to 3 joins depending on the fields to retrieve.

SQL views to the rescue. It is of course simple to define a few views to overcome this problem, but that’s not as much fun as writing a ./manage.py command to do it for you :)

So, here is ./manage.py sqlviews, an extension that abuses some django internals to create CREATE VIEW statements for the models that need them. It even colors them like ./manage.py sqlall etc. do.

01 mei 2009

Ubuntero van de maand mei: asilnevs

Het leven

Wie ben je?
Hallo, ik ben Jef Damen en ben vorig jaar 50 geworden, dus ik ben begonnen aan mijn 2de helft van mijn levenscarriere :-)
Ik heb 2 kinderen (bijna 18 en 20) en ben sinds een 6-tal jaren gescheiden in goede verstandhouding.

Waar woon je?
Ik woon in het kleine Belgenlandje in Arendonk, dus vlak bij de grens met Nederland. Meer specifiek: iedereen kan zich die 3 bulten van Belgie voorstellen, in de rechtse bult ligt Arendonk.

Hoe ziet je leven buiten Ubuntu eruit?
Ik werk bij een grote lampenfabrikant in Turnhout met zijn hoofdzetel in Eindhoven en dan weet iedereen wel over welk bedrijf het gaat vermoed ik. Daar ben ik werkzaam op de kwaliteitsafdeling. Ik ben trouwens al mijn gehele werkcarriere werkzaam op een kwaliteitsafdeling.
Elke dag met het fietsje naar Turnhout en terug en alzo combineer ik mijn sport met het werk. Geen files of andere ergernissen zoals je anders met de auto zou ondervinden.
Voor de rest doe ik ook graag wat korte wandelingen en nu en dan een boekje lezen over de dingen des levens. En tegenwoordig is dat meer en meer over spirituele dingen.

Moet er nog iets veranderen aan de wereld en waarom?
Ik vind vooral dat de mensen moeten veranderen en dat hierdoor vanzelf de wereld zal veranderen.
En wat moet er dan veranderen aan de mensen, men moet eens inzien dat iedere persoon zijn eigen identiteit heeft en in alles zijn eigen waarheid ziet en dat wordt niet altijd aanvaard door iedereen. Men moet ook meer vergevingsgezind zijn.
Als iedereen het medianieuws (dat ons bewust wordt opgedrongen) negeert zoals de TV, kranten,radio en eens zelf op zoek gaat naar het echte nieuws dat zou al een mooi begin zijn want dat gewone medianieuws is er gewoon om van ons angsthazen te maken zodat men iedereen zijn vrijheid kan afnemen. Door zelf op zoek te gaan naar dat echte nieuws krijg je te zien hoe het leven echt in mekaar zit en het enkel draait om de liefde voor elkaar.
Nog even iets dat we ook op het forum kunnen gebruiken: Ik heb geleerd dat als er irritaties zijn het niet bij de ander ligt maar bij jezelf…

Want ja……..wie irriteert zich nou?

Hoe lang gebruik je al Ubuntu en hoe is dat zo gekomen?
Mijn verhaal staat op mijn website maar ik zal het hier ook even vertellen.
In juni 2006 las ik toevallig op een nieuwssite dat Ubuntu weer met een nieuwe gebruiksvriendelijke versie ging uitkomen.
Wat was dat ? Ubuntu ? Nooit van gehoord. Dit bleek nu een Linux operatingsysteem te zijn en helemaal gratis.
Je hebt dan geen Windows meer nodig, geen virusscanner, alle software is gratis, dit operatingsysteem stelt ook geen hoge eisen voor uw PC , enz…
Kortom, vele voordelen.
Mijn zoon had ondertussen gratis installatie CD’s aangevragen bij shipit om deze uit te kunnen delen op zijn LAN-party die hij ging geven.
Na veel wikken en wegen had ik de knoop doorgehakt en met een bang hartje had ik Ubuntu in dualboot geinstalleerd naast Windows XP.
Dit is allemaal zonder problemen gelukt met de professionele hulp van dit forum.
Na een tijdje was mijn Windows een keertje gecrasht en dit leek me de ideale gelegenheid om het Windows tijdperk achter me te laten.
Ik moet toegeven dat ik in de beginperiode nog serieus gevloekt hebt om alles te kunnen doen binnen Ubuntu, zelfs de simpelste dingen bleek niet altijd vanzelfsprekend te zijn. Maar de volhouder wint.

Hoe kom je aan je username?
Toen in die tijd had ik nog nooit op een forum gezeten en ik moest dus dringend op zoek naar een username.
Zoals de meeste ouders toch wel fier zijn op hun kinderen probeerde ik een naam te vormen door de voornamen van mijn 2 kids achterstevoren te gebruiken en dit klonk wel goed. Nu gebruik ik die naam op alle fora waar ik geregistreerd ben.

Hoeveel uren per dag ben je met computers bezig? Wat boeit je het meeste en wat ergert je het meeste?
Vooreerst op het werk, daar zit ik bijna de gehele dag achter 2 Windows pc’s. Eentje voor mijn administratieve dingen te doen en de andere is een oscilloscoop die op Windows draait en waar ook Office op beschikbaar is via het netwerk zodat ik gemakkelijk meetrapporten kan genereren.
En als ik dan thuiskom dan gaat ook direct mijn laptop aan, muziekje op, het Ubuntu forum start steeds op als Homepagina om direct te kunnen zien wat er leeft hier op het forum.
Mijn eeepc gebruik ik om films op te kijken en mijn oude Compaq laptop dient voor wat te experimenteren met nieuwe Ubuntus.
En als je dan al die uren optelt dan zijn er dat veel te veel vermoed ik, maar ja, het is mijn hobby.
Wat me het meeste ergert is als er weer eens problemen zijn op het netwerk op het werk vanwege virussen of andere onhebbelijkheden.
Wat me het meeste boeit is steeds weer een nieuwe Ubuntu te kunnen installeren in een recordtempo. Ik heb momenteel een scriptje gemaakt waarmee alle extra programmas die ik gebruik worden geinstalleerd alsook de multimedia toestanden.

Doe je nog iets specifieks voor de Ubuntu-community?
Buiten dat ik op het forum probeer te helpen doe ik niet echt iets speciaals voor de community.
Ik merk voor mezelf ook dat de vragen die tegenwoordig gesteld worden ook moeilijker zijn dan enkele jaren terug.
Dit wijst er volgens mij toch wel op dat de meeste installaties geen problemen meer opleveren of dat de mensen gemakkelijker hun oplossingen vinden op het forum en dus geen vragen meer hoeven te stellen.
Oh ja, eigenlijk doe ik onrechtstreeks toch wel wat voor de community, namelijk mijn webstek: http://damen.dommel.be/Ubuntu.html
Dit is eigenlijk gegroeid vanuit mijn favorieten. Dit werden er zoveel dat ik dacht van ze beter te kunnen delen met iedereen, zodoende.

Wat mis je nog wezenlijk in Ubuntu?
Van programmas mis ik eigenlijk niets momenteel.
Wel vind ik het spijtig dat sommige dingen die vroeger werkten opeens niet meer (optimaal)werken bij een hogere versie van Ubuntu zoals de Wireless Ralink RT2500. Ik kan hier eigenlijk met mijn verstand niet bij dat dit niet in enkele weken opgelost kan geraken.
Maar hierover gaan we niet klagen want ik ben zeer content.

Wat was de vraag van de vorige Ubuntero en wat is je antwoord?

Kan jij het spirituele goed combineren met het dagelijks leven en kan dat in combinatie met het werken met computers en Ubuntu ?
Velen zullen al wel gemerkt hebben dat je via mijn webstek bij die andere hobby van mij kunt geraken , namelijk het jaartal 2012.
Nu zijn er die hier niet over te spreken zijn maar toch voel ik dat de interesse van mensen stilletjesaan toch wel gewekt wordt.
Ik moet eerlijkheidshalve toegeven dat ik mijn webstek van Ubuntu heb gemaakt om onrechtstreeks mensen naar dat andere gedeelte te lokken.
Maar iedereen is vrij om te doen en laten wat hij hiermee wil. Ik zal niemand opdringen met iets.
Voor zulke dingen moet je ook open staan en ik merk dat dit beter en beter gaat.
Het is ook dankzij de computer, het internet, dat ik eigenlijk bij dat spirituele ben uitgekomen.
En ik heb enkele collegas in mijn buurt die hier wel eens graag over discusieren.
Dus die combinatie spiritueel-dagelijks leven-computer-Ubuntu is voor mij perfect.

Famous last questions

Wat is je favoriete dooddoener, gezegde of gedicht?
Eigenlijk heb ik er geen maar als ik iets moet kiezen dan is het deze: “Hier cè, doar cè, nonkel Jef” dat voortkomt uit de Vlaamse serie “nonkel Jef”
En nu ik erover nadenk, dit zeg ik ook wel geregeld: “Niks moet, alles mag”.

Wie moet de volgende Ubuntero van de maand worden en waarom?
Ik zou graag Ron bombarderen tot Ubuntero van de maand. Eigenlijk had hij al veel vroeger aan de beurt mogen komen vind ik, zodus bij deze.

Wat zou je aan de volgende Ubuntero van de maand willen vragen?
Het is eigenlijk een hypothetische vraag.

Stel vooreerst dat vanaf heden alle software gratis en opensource zou zijn en er geen virussen e.d. meer bestaan.
Kun je dan even jou volgorde van voorkeur voor de grootste operatingsystemen geven met een korte uitleg waarom dit voor jou zo is?

26 april 2009

ioQuake3 version 1.36 went Gold

The guys are ioQuake3 have been doing excellent work. Maintaining the basic Quake 3 engine, without fiddling with it. No upgraded graphics, no gameplay changes. Just the plain old Quake 3 with heaps of bugfixes and minor improvements. A few days ago they released version 1.36, and I took Timo  Roehling’s packages and modified/rebuilt them for 1.36, which are now available on my PPA.

Ubuntu Jaunty and my PPA

Ubuntu Jaunty has been a milestone release for me personally. Two pieces of critical software have been packaged upstream now, namely Exiv2 (0.18) and Lensfun. Even my Lensfun patches (for newer camera’s) made it in. All this because of the fantastic work of Luka Renko. Especially getting Exiv2 0.18 in on time has been a boatload of work for him.

The above means I have much less work for my own private PPA repository. Because of oversights on my part in the past, I had to flush my entire repository and start over for Jaunty. In my PPA, I now (again) have ArgyllCMS available, together with a development version of UFRaw built with Lensfun support, both built for Ubuntu Jaunty.

25 april 2009

Open Source en karten

Vandaag organiseerde Proxy het “Proxy Open”, een kartevenement bij Raceplanet in het mooie Delft. Raceplanet heeft een erg mooi parcours in Delft, namelijk 2 banen die verdeelt zijn over maar liefst 4 verdiepingen!

Proxy organiseerde dit evenement voor professionals die werken met Open Source en Open Standaarden, een nogal nobele zaak. Laten we het erop houden dat het goed geregeld was en bovendien ook erg gezellig. Er werd behoorlijk wat rubber verbrandt en het blijkt dat de Open Source mannen toch best wel een zware voet hebben, wanneer ze een voertuig besturen ;)

24 april 2009

Ubuntu Jaunty install parties

De nieuwste versie van Ubuntu, 9.04 “Jaunty Jackalope”, is net uitgekomen en dat is een goede reden om dit vrije besturingssysteem eens flink in de schijnwerpers te zetten.

Daarom worden er op verschillende plaatsen in Nederland en België Ubuntu install parties georganiseerd. Op een install party kunt u kennismaken met Ubuntu door middel van demonstratiecomputers of hulp krijgen bij het installeren van Ubuntu op uw eigen computer. Op sommige parties is er ook een aantal interessante presentaties en workshops te volgen.

Er worden install parties georganiseerd in Apeldoorn, Den Haag, Groningen, Hasselt (BE) en Oss. Op de HCC Regiodag in Drachten is een Ubuntu-stand aanwezig.

Meer informatie: http://www.releaseparty.eu
Zelf meewerken aan een party? Dat kan, schrijf je hier in.

Ben je benieuwd hoe zo’n install party er nu uitziet? Hier vind je sfeerimpressies van eerdere install en release parties.

23 april 2009

Jaunty Jackalope (9.04) jumped into the spotlight

Has it been 6 months already? Time flies when you are having fun or when you are very busy, it seems. The Dutch and English announcements can be found on the official Ubuntu wiki as well as the Dutch and English release notes. Another great upgrade, loaded with new stuff and changes. Here are some tips to get you through the potentially “rough” part of it ;)

Fast upgrade

I gave a friend of mine a great tip. That tip enabled him to upgrade his system in less than an hour and downloading the updates took less than 10 minutes (at about 1.6 MB/s). I told him that the default is to use the official nl.archive.ubuntu.com as an update source and he should use an alternate local mirror if the main one is slow. Just add a line to your /etc/hosts :

ip.of.the.alternate.mirror nl.archive.ubuntu.com

Do not forget to undo this after the upgrade though ;)

GNOME-RDP

Apparently the GNOME-RDP database “breaks” again if you upgrade. This bugreport also contained the “fix” (by Mick K), but make sure sqlite and sqlite3 are installed:

sudo apt-get install sqlite sqlite3
cp ~/.gnome-rdp.db ~/.gnome-rdp.db.backup
mv ~/.gnome-rdp.db ~/.gnome-rdp.db.old
# Open GNOME-RDP to create and initialize a new database and then close the application:
gnome-rdp
sqlite ~/.gnome-rdp.db.old “.dump session” | fgrep INSERT | sqlite3 ~/.gnome-rdp.db
# Keyring support slows it down a lot (and produces errors) so disable it:
sqlite3 ~/.gnome-rdp.db “INSERT INTO appOptions VALUES(’UseKeyring’,'False’);”

Note: please keep your backup file in place (an extra backup is never a bad thing), since GNOME-RDP seems to have database issues when upgrading. I can not ensure this is ‘the’ best way to fix your current database, so use with caution.

Compiz and Intel

I suddenly found myself unable to enable compiz (”Blacklisted PCIID ‘8086:2a02′ found”). After a quick Launchpad error search I found this bug which referenced the Dell site, which eventually contained the workaround. Just edit /etc/xdg/compiz/compiz-manager and add the following line:

SKIP_CHECKS=”yes”

CTRL+ALT+BACKSPACE

I really do NOT get this. This shortcut was disabled because some people accidentally triggered it and this restarts X. Which idiot accidentally presses CTRL+ALT+BACKSPACE? Anyway, this is how you get the famous shortcut back and working as intended:

sudo dontzap –disable

Karmic Koala changes feed

As always, I am providing an RSS feed of all published package uploads in Ubuntu. This is now updated for Ubuntu 9.10 “Karmic Koala” as well, subscribe now!

And some more:

22 april 2009

Ubuntu-NL mirrors - Geheimen ontrafeld!

De titel is heel erg wervend, maar met een reden. Ik weet namelijk niet hoeveel Ubuntu gebruikers in Nederland weten dat we meerdere mirrors hebben. Na diverse gesprekken bekroop mij het gevoel dat lang niet iedereen wist dat er mirrors zijn en waarom deze handig zijn (en wat ze doen), dus bij deze een korte uitleg. Zeker met de release van Jaunty Jackalope (9.04) morgen, kan dit ervoor zorgen dat je de updates sneller binnen hebt dan je buurman ;-)

Wat doet een mirror?
Een mirror is een spiegel (letterlijk vertaald). Een mirror in deze context is een lokale server, die onder andere de officiële (initiële) pakketten, updates en releases bevat. Met lokaal bedoel ik een server in je eigen land, in mijn geval Nederland. Het is namelijk een nogal zinloos om je updates/pakketten vanaf een server in Amerika te halen, als er ook een lokale server ter beschikking staat. Dit scheelt iedereen tijd, moeite en bandbreedte!
Opmerking: De officiële mirrors zijn te herkennen doordat de URL’s eindigen op .archive.ubuntu.com

Welke mirrors zijn er in Nederland?
Inmiddels zijn er 3 mirrors in ons kikkerlandje, welke onder andere te vinden zijn op de Ubuntu wiki.

Je kunt dus voor een andere mirror kiezen, als blijkt dat deze (tijdelijk) traag is omdat meerdere mensen van die server aan het downloaden zijn. Dit is natuurlijk enkel voor diegenen die weinig geduld kunnen opbrengen.

Alternatief: BitTorrent
Je kunt natuurlijk ook de Jaunty Jackalope (alternate cd/dvd) via BitTorrent downloaden, waarbij je niet gebruikt maakt van een centrale server. Hierdoor zul je dus waarschijnlijk erg snel kunnen downloaden en vervolgens kun je deze CD/DVD gebruiken om je systeem te upgraden. Let wel, dit is eigenlijk enkel bedoeld voor systemen die niet met het internet verbonden zijn.

21 april 2009

Databases in 2010

Will we see this in the future? I hope (and think) not, but who knows :)

dennis@mosquito:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
 oracle10g
E: Package mysql-server has no installation candidate
dennis@mosquito:~$

GNOME-Do does it!

Eventually I also got convinced to use GNOME-Do (Launchpad)  and I do not regret it. I use the keyboard even more and use the mouse less, what is there not to love? You can even enable searching your bookmarks, contacts etc. which means that you can open up a conversation window or an e-mail draft right away (yes, it is that easy). Unfortunately all the really cool stuff is still upstream, so if you want to latest/greatest version you have 3 options available:

  1. Download it from the website (don’t do it, you want the packaged/maintained version)
  2. Use the PPA of the GNOME Do Core Team to get the latest upstream version which is packaged (I used this version which is for those of us who like to live on the edge)
  3. Upgrade to Jaunty (the release is only 2 days away!)

If you choose option 2), I can give you this small how-to:

  1. Add the PPA’s key to your system:

    sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com a5d19fdcaa6abb440cd3464628a8205077558dd0

    Source

  2. Add the repository to your /etc/apt/sources.list

    deb http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main
    deb-src http://ppa.launchpad.net/do-core/ppa/ubuntu intrepid main

  3. Update your cache and install

    sudo apt-get update && sudo apt-get install gnome-do gnome-do-plugins

Note for 64-bit users! There is a bug in Launchpad’s ppa that causes 64-bit mono package builds to fail, but David was in the marines for 12 years and only learned one thing- Leave no man behind. This message doesn’t apply to plugins, however. Plugins are architecture independent and build fine in the PPA. You should use plugins from the PPA, and for core we’ve got a package for you at http://launchpad.net/do/+download (source)

18 april 2009

Ubuntu Wanted Launchpad integration finally starting

Today I finally started working on the integration of Ubuntu Wanted with Launchpad by branching their official Drupal Teams module for Drupal 5 and making it work on Drupal 6.
I’ve pushed the adapted version to lp:~ubuntu-wanted-dev/ubuntu-wanted/openid-teams.

At the moment(revision 4) the module works and can be used as a full replacement for the D5 version. You don’t need to have an adapted version of the OpenID module, that is only needed if you want to use Launchpad as the single sign-on provider.

The module won’t be specifically modified for Ubuntu Wanted, because the hooks it provides to request team information are already enough.They can provide us with enough information to ensure that the person that places the task actually is a member of the team he’s placing it for.

If we want more information about the teams, e.g. contact information, we’ll need something else. However, that won’t happen soon, especially since I’m not aware of a Drupal module that implements the Launchpad API, but also because it isn’t an essential feature. If you do happen to know such a module, please tell us.

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

16 april 2009

Twitter - I joined the hype

Finally it happened, I joined the masses and added myself to Twitter and thus joined the Twitter hype.

Twitter is a website through which you can tell your ‘followers’ what you are currently doing and through which you can follow other people. They themselves describe it as follows: “Twitter is a service for friends, family, and co–workers to communicate and stay connected through the exchange of quick, frequent answers to one simple question: What are you doing?

My first reaction, was the same reaction I had towards the SecondLife hype: “Really, I am NOT going to join it, just because it is a hype”. Then I had a interesting talk with Kim who convinced me to use Twitter and not because it is a hype, but because it can be useful. Examples:

  • Let your colleagues/friends know which projects your are currently working on. A lot can happen very quickly and the 140 characters Twitter allows you to use is just enough for one good tweet (one Twitter message) to Keep It Simple Stupid.
  • Let your friends know what you are doing. The best example I could imagine: “I am sitting in bar/cafe X in city Y, anyone want to join me for a drink/bite to eat?”
  • It integrates perfectly with my G1 (using twidroid).

So if you want to see what I am doing, you can read my Twitter page. I will try not to post useless stuff, but I can not promise anything at this time ;-)

14 april 2009

Ubuntu Wanted migrated to Drupal 6

About an hour ago I merged the migration changes in the trunk of