Tag Archives: Michael Vogt

Michael Vogt: The django.test.client.Client

I like django and the more I work with it, the more I like it

For a unittest I needed to simulate requests coming from different remote addresses. And the django.test.client.Client makes this pretty easy:

class DistributedTestClient(Client):
    def request(self, **request):
        request["REMOTE_ADDR"] = "192.168.%i.%i" % (random.randint(1,254), random.randint(1,254))
        return super(DistributedTestClient, self).request(**request)

class DistributedClientkTestCase(TestCase):
    client_class = DistributedTestClient
    def test_distributed_meep(self):
        test_stuff()

Thanks django!

…read more

Source: FULL ARTICLE at Planet Ubuntu

Michael Vogt: Using gdebi to install build-dependencies

I wrote gdebi a long time ago to make it really easy to install .deb package with proper dependency resolution from the commandline and via a gtk (and kde) UI. But another neat (but not very well known) feature of the gdebi-core cli tool is to install the build-dependencies of a debian source package. If you run:

$ gdebi debian/control

in a unpacked debian source package it will check for missing build-dependencies and offer to install them.

…read more
Source: FULL ARTICLE at Planet Ubuntu

Daniel Holbach: Ubuntu: you’ve changed

Ubuntu 4.10 (CC BY-SA 2.0 - http://www.flickr.com/photos/silwenae/4632675/)

I can’t precisely date back when I got involved in Ubuntu, all I do know is that Michael Vogt helped me out with some Debian CDs in university and some months later told me: “you might like this, you can upgrade to it”. I tried it and was hooked immediately.

Ubuntu 4.10

When some time later the Ubuntu preview was announced and I learned more about the project goals and values, I felt totally inspired and knew I would totally love this. I had a hard time focusing on my thesis, I ignored it for a while and got involved in Ubuntu. Many folks encouraged me and I started to do some packaging. I packaged some software outside of Ubuntu first (coaster for example, it seems not to exist any more), but quickly got dragged into Ubuntu itself. (pyzor was the first upload I could find.)

Life in 2004 was exciting:

  • Plugging in a USB key and having it show up on your desktop finally worked.
  • We used GNOME 2.8, Firefox 0.9, XFree86 4.3, Evolution 2.0 and OpenOffice.org 1.1.2.
  • Some months later we had Live CDs!

This was a very special time, it inspired many to do all kinds of crazy things.

April Fool’s login

Admittedly, I looked funny too.

myself at Ubuntu Down Under (picture taken by Tollef Fog Heen)

myself at Ubuntu Down Under

Ubuntu was very different. Its focus on making things work and favouring simplicity won many hearts over. Also its friendly community with high social standards inspired many and made it a pleasure to be involved and try something new. Ubuntu introduced LoCo teams, which brought Ubuntu into many parts of the world, which helped many finding new friends and which brought many new opportunities to everyone.

Ubuntu always was full of change. We pioneered and forged ahead in many many places. We were the first to ship a 2.6 kernel, we modularised X, derooted many services, made it easier to upgrade and install packages, wrote upstart, made booting fast and very often were the first to think new, shake up the standards and improve things for everyone.

Each of these changes was hard work, sometimes brought some problems with it, had its opponents, but also inspired many others, often new folks to jump in and help.

Some of these disagreements were very loud, sometimes they were inside the Ubuntu community, sometimes included Canonical people, sometimes they were on the sidelines of the Ubuntu world. And they were almost accompanied by calls that Ubuntu/Canonical should do more, do less, do it earlier or do it later. Some of the decisions which were made were reverted as a result of testing and feedback, but many stuck around and proved themselves as wise choices.

We were quick to embrace and count on new technologies. Many casual Ubuntu …read more
Source: FULL ARTICLE at Planet Ubuntu