Search Results: "tim"

20 June 2006

Kai Hendry: debian-python traffic

There are interesting developments afoot, complete with Ubuntu conspiracy theories on debian-python. Since I’m working on a couple of Python packages, a new policy has been announced. The python policy has for a long time been inadequate. Come python upgrades practically all python packages needed updates. So I am glad we have something like python-support now. The unfortunate issue is that Ubuntu uses python-central to do this. So having two ways of doing the same thing is a little confusing. The bigger issue though is how the new policy isn’t stable. New X?-Python- control fields were added and now, they look like they’re being taken out. Much to the frustration of some. Oh well, I’m going to keep watching until the dust settles. That means I’m in no rush with the Python policy transition; so don’t worry, be happy.

Jurij Smakov

It’s really a pity that in the rush of the modern fast-paced world we hardly have time to slow down and notice little details which make the life so much more enjoyable. I, for example, totally missed the end of Prairial. It’s good to know though that the same way summer follows the spring, Prairial is followed by Messidor, which, I’m sure, is going to bring us even more wonderful moments.

Gunnar Wolf: Fractional sleep

How cool is this?
if pid=fork
  while true
    puts "# Time.now.sec : I'm the slow # Process.pid , parent of # pid "
    sleep 1
  end
else
  while true
    puts "# Time.now.sec : I'm the fast # Process.pid , child of # Process.ppid "
    sleep 1.0/3
  end
end
What do I get?
18: I'm the fast 9900, child of 9899
18: I'm the slow 9899, parent of 9900
18: I'm the fast 9900, child of 9899
19: I'm the fast 9900, child of 9899
19: I'm the slow 9899, parent of 9900
19: I'm the fast 9900, child of 9899
19: I'm the fast 9900, child of 9899
20: I'm the fast 9900, child of 9899
20: I'm the slow 9899, parent of 9900
20: I'm the fast 9900, child of 9899
20: I'm the fast 9900, child of 9899
And for those of you not familiar with sleep(3), what is so cool about this? Simple: The prototype for sleep in almost any language is:
#include
unsigned int sleep(unsigned int seconds);
(note the unsigned int part?)
Even the Perl documentation clearly says, being compliant with the rest of the world:
For delays of finer granularity than one second, you may use Perl's "syscall" interface to access setitimer(2) if your system supports it, or else see "select" above.
The Time::HiRes module (from CPAN, and starting from Perl 5.8 part of the standard distribution) may also help.
But... Well, in this case I just loved the Ruby way: If it does not hurt to cause surprises, then don't cause them! Keep a simple, portable definition, that will work with seconds or with fractions! Why not?

19 June 2006

Edd Dumbill: Edd on Rails

This Wednesday I'm heading out to Chicago to visit RailsConf. The full schedule has now been posted, and it looks like a pretty absorbing affair.It amuses me that US-based conferences often have evening sessions timetabled. In Europe, I've always preferred to leave evenings empty so people can eat, drink and socialise. But in big city hotel-land, I can understand the appeal of timetabling more of the day.Here's a selection of the talks I'm most interested in hearing: Internationalizing Rails (almost the number one question we got asked about Rails when we taught our tutorial at XTech), anything related to testing, Rails Application Optimization Techniques and Tools, Rails Deployment. Oh, and some guy's talking about his work at the BBC.I've just finished writing an article for IBM developerWorks introducing Rails to DB2 users. (I had surprisingly little problem getting DB2 up and running in a matter of minutes on my Ubuntu box.) IBM's DB2 integration for Rails is a great development, and it's nice to see them pushing forward with Rails as a platform. I'm hoping they'll post the article up before RailsConf starts.
Given a bit more hacking time, I'll be intrigued to see how DB2's XML support can play with Rails.I'll be staying at the conference hotel, and am very interested in meeting up with anyone building Rails apps of a decent scale, or looking for a project to work on. Do drop me an email.

Lars Wirzenius: Debian: Packaging tutorial (again)

I gave my Debian packaging tutorial today. The Computer Science department of the University of Helsinki provided the space (a classroom with networking), for which I hereby offer grateful thanks. There were fourteen students, and everyone made a package out of my hello world program (especially written for this tutorial). The slides used my liwc package as an example, and during the talk I noticed a couple of problems, which promptly resulted in a bug report. Excellent! Nobody wanted to do a victory dance, people are too shy. I've now given this tutorial twice: once for three of my friends privately, and once for a larger group. It only covers the very basics of creating packages, and there's much more to learn. Some day I might do a second part, and cover things like maintainer scripts, advanced dependencies, debhelper, pbuilder, and piuparts (the last three were only briefly touched upon today). I might be willing to do the first part again, if there's enough interest. Not very soon, though, teaching is surprisingly exhausting and time-consuming. However, if you'd be interested, please do mail me (at liw@iki.fi).

Joachim Breitner: The BOFH song

The song “Fifty Ways to Leave Your Lover” by Paul Simon just played in the radio this morning, and I felt it was time for a new text: “Fifty Ways to Bug your Users”. Enjoy!

Michael Janssen: Weekend Weeviews: Jawbreaker, Real Genius, Primer

There are three reviews this week, because I neglected to review one which I watched earlier. I'm also trying to decide whether the links at the end are of any use, and whether it's useful to syndicate this to Planet Debian. Feedback is encouraged! ;-)

Jawbreaker

The whole premise of Jawbreaker gets laid out right at the beginning - after a opening sequence in which we see the title candy being made, a couple of girls kill a friend by surprising her and using a jawbreaker as a gag. The movie then degenerates into a formulaic nerdy girl gets to be pretty storyline. Unfortunately Jawbreaker doesn't pull it off as well as Mean Girls does, and ends up falling pretty flat. One saving grace of this movie is that it is very short at just 87 minutes. One small treat is that Rose McGowan is playing a decent role, although I do have a much older vision whenever I see her from her work on Charmed. One thing which keeps bugging me is how the movie reminds me of But I'm a Cheerleader, even though the plots and premises are very different. The soundtrack is very well done with good placement of good songs. Jawbreaker is bittersweet at a 5. (imdb, amazon)

Real Genius

I have always heard good things about Real Genius, but never saw it all the way through. Supposedly this is a tragedy. Apparently [info]ceilingsarecool saw it before, but didn't remember a bunch of the plot. A whiz kid enters college early and starts working for a professor. The premise is setup in the first 10 minutes or so, which is that Herr Professor is really corrupt and working to provide a laser weapon to the military. This leaves ample time for the comedy in the movie to play out, as Whiz Kid gets to experience all the wild antics of college with a high-IQ twist. Lasers are used fairly extensively in the movie (mostly as part of the plot) and get a nice chunk of credits in the end. The movie unfortunately doesn't really age well with time, unless you're a fan of 80's movies. There are no less than 2 montages with music, and the ultimate 80's end-of-movie song "Everybody wants to rule the world" by Tears for Fears is playing at the end. Real Genius still is smarter than many movies you'll see nowadays, so it burns in a 7. (imdb, amazon)

Primer

Small budget films are usually interesting to watch, because either they are simple masterpieces, or they try to be way more than they can be and end up being a trainwreck which you just can't stop watching. Primer is the rare gem which found a happy medium between complex and simple. At the start, a garage business is introduced with four tech friends making a bit of money selling to hobbyists. Apparently they have some sort of deal about who gets to pick the next thing they try, and one of them wants to try something related to physics. Two decide to attempt it on their own and they create a device which apparently lowers density, or gravity, or something. Then they discover it does much more than that - it can manipulate time. Fortunately there is still much of the movie left after this. The acting is not top notch by any means, and comes off as cardboardish, but it seems well-placed in this script because most techies that I know are not the best with social skills. It's important to note that the main focus doesn't lie on the device, but on the implications and ramifications. As the movie approaches it's end, the pace and convolution increases quickly. A rewatch is in order for Primer - and even then you still may be missing parts in the giant puzzle which is laid out before you. Shane Carruth directs, writes, and produces an amazing film, especially considering the sub-10k budget. Primer scores e^2.30258509. (imdb, amazon)

Carlos Villegas: D1:State-of-the-art in the boot process and promising hotspots (SoC2006)

Finally the first deliverable (D1) is ready for revision here. It can be modified according to comments and extended if it is considered that some subject should be further investigated. Besides, some hotspots were identified and, as stated in the proposal it is time to implement some of them. At least the 5 more promising for the second deliverable. Comments about the order will be appreciated.

Together with this 5 hotspots, the second deliverable will deal with the evolution of the boot process in Debian: from woody to sid. Already, initial results were presented through this blog during the last week concerning boot times from woody, sarge and etch.

18 June 2006

Joerg Jaspert: Pictures and text from my Trip in Mexico

Finally Im done, and uploaded all pictures from my trip after DebConf. I also made some little .html files, describing parts of the trip, you can find that behind http://kosh.ganneff.de/~joerg/mexico/. All pictures are available behind http://kosh.ganneff.de/~joerg/gallery/mexico, if you really want to look at them. Sometimes there is a subdirectory bad/, I put pictures there I do not like that much. Space enough, so why delete? :)

Ben Armstrong: Geek father

Being Father's Day today gives me pause to consider Debian Jr., a project for kids. The goal was to make Debian the OS kids prefer to use. I wanted my own kids to grow up enjoying using a system that puts the fewest barriers in the way to learning about how computers work, and to making computers work for them. It's nearly six years later now: enough time for my second youngest to grow from a toddler to an eight-year-old girl, for my youngest girl to be born and put to the test the lower limit of our "for kids from 0 to 99" slogan, for our boy in the middle to grow from a preschooler to a preteen, and for the two oldest girls to turn into teenagers. Perhaps by the time we have grandkids, Debian Jr. will finally be "done". In that time, our kids have gone from using a VT-420 attached to my Pentium 100, exploring commands using the "magic" tab-key at the bash prompt, playing with words and letters in pico, to playing 3D games and creating artwork in the Gimp on the family Sempron 3300+. And through it all, they've remained happy and proud to use Linux, which none of their friends have. They have become, I believe, more firmly grounded and comfortable with computing than they might have been using a system "dumbed down" for kids. To all the Debian using fathers out there today, Happy Father's Day! May you and your kids' lives be enriched as you share in the finest OS in the world.

David Nusinow: When Is Enough Enough?

At one point is someone so destructive that they don't deserve to participate? How can we find the balance between letting good people fly off the handle from time to time and preventing damage to a project? Is large scale procmail/killfiling really a workable solution? I don't know, but I'm getting sick of seeing a small number of names causing stupidly big problems.

Alexander Schmehl: Damn, why did you splitted the package?

From time to time it's funny to run a scriptlett and play a bit with numbers. For example:
find /pub/debian/pool/main/ -name \*_i386.deb -or -name \*_all.deb -exec ls -s \; sort -nr
157696 /pub/debian/pool/main/f/fgfs-base/fgfs-base_0.9.10-1_all.deb
152284 /pub/debian/pool/main/v/vegastrike-data/vegastrike-data_0.4.3-2_all.deb
141144 /pub/debian/pool/main/o/openclipart/openclipart-png_0.18+dfsg-4_all.deb
89808 /pub/debian/pool/main/f/fgfs-base/fgfs-base_0.9.6-1_all.deb
86304 /pub/debian/pool/main/k/koffice/koffice-doc_1.5.1-1_all.deb
81892 /pub/debian/pool/main/l/llvm/llvm-doc_1.7-1_all.deb
78860 /pub/debian/pool/main/t/texlive-extra/texlive-latex-extra_2005-2_all.deb
67844 /pub/debian/pool/main/b/beneath-a-steel-sky/beneath-a-steel-sky_0.0372-2_all.deb
67764 /pub/debian/pool/main/b/beneath-a-steel-sky/beneath-a-steel-sky_0.0368-3_all.deb
62252 /pub/debian/pool/main/f/fillets-ng-data/fillets-ng-data_0.7.1-1_all.deb
61660 /pub/debian/pool/main/f/fillets-ng-data/fillets-ng-data_0.6.1-1_all.deb
58984 /pub/debian/pool/main/v/vegastrike-music/vegastrike-music_0.4.3-1_all.deb
56260 /pub/debian/pool/main/t/tetex-src/tetex-src_3.0-3_all.deb
Interesting, I always thought one of my packages would be on of the biggest, bit according to my find, planetpenguin-racer-extras is just on place 117! But now I sponsored an upload for an other member of the pkg-games group: nexuiz_2.0-1_i386.changes uploaded successfully. Sadly Bruno decided to splitt of the music of the -data package, so we won't take the crown, but will still get the fourth place, as soon as Ganneff let it the packages through new :) PS: Damn, they still didn't fixed the bug, that I allways get killed.

Daniel Burrows: Unsubscribing from most Debian lists.

After six (seven?) years of being almost continuously subscribed, I have decided to finally remove myself from most Debian mailing lists. While I don't intend to actually unsubscribe, I even doubt I will continue reading -private. No, strike that. I especially doubt I will continue reading debian-private.


This is not a decision that I wanted to make or took lightly, but two ongoing problems, combined with my own lack of free time, have convinced me that it is the best route:


(a) Virtually all the traffic on the lists is useless. I don't think this was the case when I subscribed, but it certainly is now. The few interesting technical or procedural tidbits that I can find are buried under (and within) piles of messages that are useless flames, off-topic discussions, kooky threads, or mails that combine two or more of the above.


(b) The tone and content of the lists is increasingly hostile, personal, and aggressive. Based on what I see on the lists, Debian is not a friendly project these days. I'm sad to say it, but being able to block the rest of the Project (except bug reports, of course :) ) out will not only increase the time I have for Debian, it will increase my motivation to work on it. A lot.



The straw that broke the camel's back here was that after finally getting my Internet access back a couple weeks ago, I decided to catch up on Debian list mail this weekend. After spending a significant fraction of my free time just wading through the sludge and reading the most useful and interesting-looking of the mail that people had spewed onto the lists, I realized that I would have been far better off doing something more useful, enjoyable, and productive with my time ... like, say, picking lint out of my carpet by hand, or committing Postal Service regulations to memory.


I'm still of two minds about the whole issue: while I blamed the lists above, there are plenty of major contributors to Debian who have full-time jobs and still manage to not just read all the garbage on the lists, but actually reply to a lot of it. So I can't help feeling this is partly due to my own inadequacy or advancing decrepitude (I turn 26 in just a few months; isn't that about when your brain atrophies? ;-) ) -- but regardless, I think that I personally can't justify the "expense" of staying on the lists in terms of the benefits I get from doing so.

Christine Spang: Graduation: Many Pictures, Few Words [dialup warning]

Friday - The Party Good food. Good Food Good times. (Though, I have to admit it was considerably more interesting when it got dark and the torches were lit and we tried to avoid melting the beach ball.) Playing volleyball Helpfully labelled drinks. Helpful labels! Saturday - The Graduation Good music. Brian Maxsween, singing Good speeches. (<plug> yes, this is me </plug>) Christine Spang, speaking Saturday - After We Are Graduated In which I pose with the superintendant. Me with Dr. Rudolph Rubeis, West Genesee Superintendant In which I pose with my brother outside in the blinding sunshine and blazing heat, while thinking about the cool water that happens to be behind us. Blinded outside In which I pose with my parents and brother in a moderately more forgiving environment at home. The Parental Units In which I pose with my brother and grandparents, who could probably stand in for an alternate Matrix cast, and kick your [posterior]. At least in this picture. The Matrix In which my cousin Mark discovers that my stole is kinda fun. Peekaboo! In which a good friend of mine gives me a freaking awesome shirt. This Blows I will now proceed to summarily disappear off the face of the ‘net from sometime tomorrow until late Monday or so, in which I Move To Cambridge.

Ben Armstrong: Junior programming refocused on "kid languages"

I've refocused the Debian Jr. programming metapackage on languages made for kids. I'm sure there are some who have used scheme or python with their kids, and sure, if you want to do that, go ahead. But these were only initially included because of a lack of choices. Littlewizard is an icon-based language only recently added, and kturtle replaces the less-kid-friendly ucblogo. I've also been pursuing #236721 to see what it would take to get Squeak into main. While it doesn't look like there's hope of that anytime soon, recent changes to their licensing might allow it to go into non-free.

Adam Rosi-Kessel: Deep Net Neutrality

Via Susan (who is unlinkable), a thoughtful essay on the net neutrality debate: Net Neutrality is a Deep Issue. The writer identifies what is probably the key battleground: video delivery. The question isn’t whether Google is going to take five seconds to return search results; it’s how multimedia content will be handled.

Carlos Villegas: Bootchart vs Stopwatch (SoC2006)

Today I did some serious polishing of the first deliverable of the boot process project and made it available here. One of the things added were some hotspots ordered by how promising they are. The final version of the deliverable will be ready tomorrow evening.

One question that I had today was about the relationship between Debian's update-rc.d and Fedora's chkconfig command. Both of them seem to arrange the order of execution of the init scripts. The other question was about the acceptance of file-rc and it seems that, at least for debian, it is used quite seldom (1).

Finally, as a result from Petter Reinholdtsen's feedback to the previously published bootcharts of woody, sarge and etch, I compared the bootcharts time using a stopwatch. Petter considered that the times were too small and it looked like KDE autologin time was too short. The time results (in seconds) for Sarge and Etch are:

Sarge 0:44 (bootchart) and 1:06 (stopwatch). Difference = 0:22
Etch 0:34 (bootchart) and 0:49 (stopwatch). Difference = 0:15

Big difference. The stopwatch was activated when the key ENTER is pressed at the GRUB selection screen and stopped until the KDE in-progress window disappeared.It should be noticed that bootchart doesn't account for the time of initrd.

Besides, from the time that the message of starting kdm appears until the KDE stops loading there is an important time difference:

Sarge ~0:06 (bootchart) and 0:23.5 (stopwatch). Difference=0:17.5
Etch ~0:05.5 (bootchart) and 0:19 (stopwatch). Difference=13.5

Then, most of the time difference seems to be because of bootchart stopping to count the time before the KDE stops loading.

Just as a final remark, the PC time from pressing the ON botton to the grub is around 11.5 second. Then the total startup times of Sarge and Etch end up being as big as 1:17.5 and 1:00.5, respectively. Both above one minute.

(1)http://qa.debian.org/developer.php?popcon=file-rc

Steve Kemp: What we re dealing with here is a total lack of respect for the law

Right it is 23:43 and I’m just back from a dodgy metal night - picture the winners of the Eurovision song contest but with a lesser budget. Normally this would be described upon my real blog which contains adult language, and a mixture of random trivia, sadism, and geekyness in more detail than is displayed here. (You might think this is a hard mix, but I’ll tell you it isn’t suprising if you’ve ever programmed Gtk 2.x in raw C ;) ) Anyway the reason I went to the gig in the first place was that last year one of my partners was a bass-player, and she was often playing gigs in different locations. Unfortunately for the duration of our relationship I managed to never actually hear her play. Not deliberately - it was just the way things worked out. We kinda tailed off seeing each other because I was sleepy and she lived in a different city. Actually this is a common theme with me. I once lived with a concert chello player and for the entire 2.5. years of our relationship I managed to never hear her play, or practise (and we lived together!). Again not deliberate, it was just the way things worked out. (Even now I don’t think she’s ever heard me play the guitar.) Later I had a relationship with a Swedish dentist and for the duration of our relationship I refused to let her look inside my mouth [mostly ;) ]. It was only after we’d ceased being .. close .. that I let her extract some wisdom teeth of mine. Of course she was Swedish, living abroad, and all her friends were Swedish too - so I had a lot of Swedish “friends” around that time. Maybe one day I’ll even meet a genuine blonde Swede. (I can say “hello”, “goodbye”, “I love you”, “marry me”, and “you’re cute” in Swedish!) (I’m not a slut; I just know what I like.) Anyway .. enough side-tracking. The only reason this is coming up at all is because I think context is important when writing about people that aren’t known - I hate seeing people in blogs write about “J”, or “C”, with no hint of the nature of the relationship, or why we should know/care about their actions - people are important, and if you’re going to bring them up you should explain who they are, and why they are relavent. The fact that I’ve drunk 5 bottles of cider now is also helping extend this entry If it helps I almost promise not to mention these people again. So, to recap, I’m at this metal gig, and damn they were a fantastic band. Miranda (the woman I was “with”, previosuly if not recently) was a total camera-slut, and she was technically extremely competant. I guess I shouldn’t have been suprised but I was. So, why do I mention any of this? Well I was standing outside before the band started as it is illegal to smoke in public enclosed places in Scotland (since Marche this year) and this obviously rules out smoking in a pub in the basement bar. (The bar was unstaffed since the bands playing tonight were “too loud”. Sucky having to walk upstairs to find beer.) So .. stood outside, totally under-dressed for the occasion. Almost everybody else in the (very sweaty) basement bar was dressed in monochrome and I had shiny white shoes and colourful t-shirt. Still I was one of the tattoo’d + pierced people so all was good. “Excuse me, you look like Steve Kemp”. For the first time ever somebody recognised me from my planet debian hackergotchie. Neat huh? And now it is 23:58 and I’m going to listen to some nice Rammstein and go sleep. Tomorrow I must do some Debian work, and tidy a friends flat - since they just moved out and want their deposit back. In the future I will try to keep the entries here more on-topic, unless people actually care about this kind of entry …

17 June 2006

Enrico Zini: DB-ALLe released!

DB-ALLe has been released! After more than a year of (paid) work, DB-ALLe has been released!
DB-All.e is a fast, temporary, on-disk database where meteorological data can be stored, searched, retrieved and updated. To make computation easier, data is stored as physical data, that is, as measures of a variable in a specific point of space and time, rather than as a sequence of report.
These are the main characteristics of DB-ALLe:
  • it is temporary, to be used for a limited time and then be deleted.
  • does not need backup, since it only contains replicated or derived data.
  • write access is enabled for its users.
  • it is fast for both read and for write access.
  • it is based on physical principles, that is, the data it contains are defined in terms of omogeneous and consistent physical data. For example, it is impossible for two incompatible values to exist in the same point in space and time.
  • it can manage fixed station and moving stations such as airplanes or ships.
  • it can manage both observational and forecast data.
  • it can manage data along all three dimensions in space, such as data from soundings and airplanes.
  • it can work based on physical parameters or on report types.
DB-ALLe has been written by me on behalf of ARPA-SIM a public agency which realises that being funded with public money also means letting the public access the result of what they do:
Copyright (C) 2005,2006 ARPA-SIM <urpsim@smr.arpa.emr.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License
Oh, and they make an outstanding weather forecast, the best you can find for my region. It's so good that people even started to trust them! :)

Edd Dumbill: In search of agile infrastructure for web applications

Many advances have been made in agile software development. Frameworks such as Ruby on Rails embody agile principles by making software easy to write, easy to test, and above all, easy to change.If only we could say the same for the infrastructure on which we develop and deploy web applications. Not every application can be a Rails one, especially where it's been up and running for years. The systems we deploy on often rely on configuration files scattered all over the filesystem, and can be complex results of years of change.By extension, the systems we develop on often don't exactly mirror where we deploy. If we're lucky and careful, then we have a staging server which mirrors the live environment, but that's not too much of an advantage. Among other things, we need ways to evolve and refactor the live environment, and have our development environments easily track that.I'd like to call such an environment "agile infrastructure". Infrastructure that doesn't hamper developers, and allows live configurations to change and evolve. Infrastructure that allows new things to be tried with minimum cost, and can provide the best information possible to help future planning.Tools enable techniques, of course. It's a lot easier to be agile if you're programming in Rails rather than plain old PHP. So what are the tools enabling agile infrastructure?
Techniques I've found usefulWhile there's a long way to go, I'd like to describe some of the techniques I've been using to help create a flexible environment for developing a sizeable PHP/MySQL application.Operating systemAn operating system must be easy to bring into a known state with minimum interference. For this, I've found Ubuntu or Debian to be an ideal choice. Two of the main reasons include the constancy of stable releases and the fact that it's rare you need to stray outside the distribution's servers to get the software you need.DeploymentDeploying an application shouldn't break the cleanliness of your OS build. I prefer to package deployed applications into .deb files. This enables me to build on several advantages of the package management system:Source controlThe case for source control, thankfully, doesn't need making these days. Yet not every source control system is created equal. Developers shouldn't be constrained by source control, it should be cheap and easy to try new ideas and merge these in later.Not only cheap branching, but also easy merging, is required to keep development agile while still retaining the benefits of source control. Many people flock to Subversion these days, predominantly because it fixes some of CVS' more egregious misfeatures. However, merging can still be pretty difficult in Subversion.I prefer to use a system allowing easy merging, such as svk or bazaar. Because so many of us use laptops these days, disconnected operation is also a huge boon. Bazaar-NG offers both repository-oriented and completely decentralized operation, giving the best of both worlds. It also wins the competition for least setup overhead.VirtualizationPreviously a high-powered technology, cheap virtualization is now with us. Many identical virtual machines can be quickly created to enable testing and experimentation. Deployment to virtual machines can enable hardware independence for applications, reducing another big headache.Large organisations have it within their reach to bring new hardware online easily, and have invested much in management systems for it. Virtualization brings this in reach of small and one-man development teams.Desktop-based virtualizationSystems such as VMWare and Parallels untether developers from their desks. I use the OS X desktop daily for its productivity software, but an Ubuntu virtual machine for a large proportion of development work. A simple keypress lets me flick between the two. The advantages of multiple desktops to hand for web development are well known. (In fact, thanks to WINE and IES4Linux I can run Internet Explorer cheaply too from the same virtual machine).
Xen virtualizationAfter the initial novelty wears off, one of the most tedious tasks in the world is bringing new machines online. Combined with the tendency development environments have to get crufty as new ideas and tools are tried out, this makes for increasing disparity between the development and deployment environments.Wouldn't it be nice just to take a clean machine off the shelf, check out the source, and pick up again? Using Xen for Linux, this cheap virtualization is possible.Sadly, Xen isn't yet a packaged part of Ubuntu, but getting it up and running on Ubuntu Dapper isn't too hard. Warning: here's where things get pretty deep. Skip this bit if you're not interested in the nitty-gritty.I followed these steps:Getting over the DNS mountainIf you want it to be easy to bring new virtual machines up and down, you need to adopt a different approach to managing your DNS. You need to know how to predictably connect to a virtual machine. Yet it's going to get very boring and error prone to manage the IP address space manually in your DNS, or even to map the MAC addresses of your virtual machines in your DHCP configuration.
Help is at hand in the form of mDNS (also known as Rendezvous / Bonjour / ZeroConf). In the host machine, and in each virtual machine, I ensured the avahi-daemon and avahi-utils packages were installed, providing mDNS services. (You should also check that mdns is present in the hosts entry of /etc/nsswitch.conf).What all this does is allow the machines (virtual or otherwise) on the network to resolve names using mDNS. So if I create 3 VMs, alpha, beta and gamma, I can access these right away using the hostnames alpha.local, beta.local and gamma.local.Hey presto! Easily make machines appear and disappear without any need for sysadmin involvement. All the extra steps to add avahi installation can be easily scripted with xen-tools, to reduce the number of commands needed to birth a new machine to one.With this ease of creating new machines, it's much more straightforward to experiment with server topology and conduct experiments on server environments.ConclusionAgile development is necessarily constrained by the infrastructure on which it is conducted. The infrastructure itself is constrained by the tools and platforms of choice.By appropriate tool choice we can reduce the commitment and overhead of infrastructure. This enables developers to get on with the job they do best, and makes experimentation and evolution of infrastructure much simpler.When programming, it's dangerous to fall in love with your code, as the best solution may often involve throwing half of it away. The same hazard exists with infrastructure, with bizarre and awkward effects propagating back into code and operations. Get yourself a low commitment, agile environment, and you'll be able to keep up with the pace. 

Next.

Previous.