Search Results: "edd"

23 July 2006

Dirk Eddelbuettel: Waterfall Glen Xtreme 10m

Ran in the third annual Waterfall Glen Xtreme 10mile race this morning. Beautiful scenery in the forest preserve around the Argonne labs southwest of Chicago, and gorgeous weather now that the heat wave has broken. This race starts and ends in cross-country fashion on an open field and begins with a wide 'parallel' start -- something I'd never done but quite enjoyed. The course is fairly hilly by Illinois standards and thus a bit of challenge. As with some other race, started too fast and faded somewhat. The final time of 71:54.5 is still fine with a 7:11 pace/mile and minimally faster than the previous personal best from two years ago on a flat course. I think I'll be back for the race next year.

21 July 2006

Dirk Eddelbuettel: Undeleting from ext3

Kudos to Paul Wise who suggested late last night to try magicrescue to recover an OpenOffice file with meeting notes I had mistakenly deleted from the laptop before I even got to editing these very notes, or backing them up. And it worked -- despite the dire warnings from the ext3 FAQ about the near impossibility of undeleting from ext3 partitions. But a few things worked in my favour here: OpenOffice files are zip files 'under the hood', and magicrescue knows how to deal with certain file formats via its collection of 'recipes' (which one can extend), and zip is among the shipped recipes. Also, I still had the 'ls -l' session in one konsole tab so I knew the exact file size I was looking for. And I wasn't in a hurry. So this morning, after magicrescue had faithfully restored 4479 files in over four hours, its companion magicsort then filtered these into a handful of directories, one of which was 'OpenDocument Text' -- which contained a few files, including two versions of the desired file as well as copies of the version from the previous meeting. Nice. And OpenOffice gladly opened the file. Lastly, it cetainly helped that I happened to have a lurking debian-devel irc session open where --- where Paul not only caught my remark, but almost immediately suggested to try magicrescue. So here goes a well-earned Thank You to Paul!

20 July 2006

Evan Prodromou: 1 Thermidor CCXIV

Happy 1 Thermidor to everyone -- I'm sure you're all busy meditating on the virtues of epeautre (wp:einkorn wheat), the wild grain to which this day is dedicated on the French Revolutionary Calendar. Thermidor is best known for wp:Lobster Thermidor, but also for the so-called wp:Thermidorian Reaction, a revolt by moderate revolutionaries during the French Revolution against the bloody excesses of the Committee for Public Safety. I think about this because I've just been reading Bob Sutton's blog today based on the reference in Ross Mayfield's blog. Sutton is the author of an upcoming book called the No Asshole Rule (pardon my French, but that's just the name of the book). It's about how poisonous, unhealthy personalities can ruin a workplace, and how beneficial it is to support your reasonable, human employees by kicking out the jerks. They're happier, more productive, and more loyal if you show some compassion and get rid of the a-holes. Coincidentally, I also saw the Top 5 reasons why The Customer Is Always Right is wrong on reddit. It also recommends against allowing unpleasant people to ruin your workplace environment -- but here, the culprits are the customer, not other employees. I especially liked the stories from Southwest Airlines. I think I'm going to have to pick up this Nuts! book about SWA business theories. Why all the thoughtifying about jerks and meanies in business? Because I think the same principles might be applicable to Open Source and Open Content projects. Specifically, with Debian, we've had a few personalities who generate a lot of discussion and attract a lot of attention, causing some real Excedrin headaches. The project as a whole has tended to bend over backwards to respect these individual's rights and personal values and blah blah blah, but maybe it's best to just say, "You're causing more conflict that you are providing value and no matter whose fault it is, we as a group will do our job better if you leave." In another realm -- that of wikis -- I know that I personally lean on longtime Wikitravel administrators, experienced users, etc. to be "the bigger person" and treat obnoxious personalities with respect and decorum. The theory is that every user counts, and any contribution is worthwhile. But maybe it's better sometimes to show some loyalty to the established contributors with a proven track record, and let the occasional mouth-foaming weirdo go wander off and bother someone else. We've got a real conflict-averse culture at WT, but sometimes it might be good to say, "We welcome everyone's input -- except yours." tags:

18 July 2006

Ross Burton: EDS and Berkeley DB

Back in the good old days of Evolution 0.9, Evolution depended on Berkeley DB being installed. At the time Berkerley DB ("BDB") was undergoing a some major changes so it wasn't uncommon to upgrade your distribution and find that the new BDB can't read your addressbook. This was solved by Evolution embedding a copy of BDB into the source code. and statically linking it into the relevant addressbook backend. Problem solved. Over time Evolution was refactored, split into Evolution and Evolution Data Server, and so on. Then BDB was statically linked into not only the addressbook backend but also libedataserver, which contains some generic caches based on BDB. Now BDB isn't exactly a small library (it adds ~600K to a .so), so the second static linking started to irritate people. Not only does EDS have a private copy of a library, meaning extra work when BDB has security bugs, but there is 1.2M of code that could be shared. This led to various distributions patching EDS to use a system copy of BDB, a patch that has finally made it upstream, but not everyone is using it: by default EDS uses it's private copy. Now fast-forward to today. I did a full build of EDS from CVS using the system BDB (it's also a lot faster to build that way) and hit build failures from code demanding the static BDB to be built. Fixing these was trivial, but when I checked in the patch it worked fine... I investigated and discovered that BDB is now used in four places inside EDS: Now, BDB is approximately 600K when statically linked, and a typical EDS build statically links it four times. The server process will load both backends and both libraries, so it contains all four copies of BDB at once. This is getting silly. Please, all packagers, if you support multiple versions of BDB in your distribution, use --with-libdb=/usr to dynamically link to BDB. As a fallback I'm about to create a patch that installed the private BDB into a private library directory, to avoid all of this static linking. NP: Neighbour Radio, Last.fm (via Last Exit)

15 July 2006

Erich Schubert: JSP-like C++ webpages

TNTnet, just uploaded to Debian, looks interesting. Basically it offers JSP-/PHP-like embedding of C++ code into web pages (or the other way round). Well, if you want to be precise, the syntax is actually much closer to HTML::Mason, a perl-based web application framework I've used some years ago. You can bet that these pages, compiled into native code, are hard to beat speed-wise... Think of compiling your website into your webserver. It's obviously not suited for wide audiences - you can have your users upload PHP files, but you probably won't allow them to upload C++ code - but more for high-performance sites with specialized applications. I have, however, one major gripe with it: The syntax is not XML. I wish they would have picked true XML as data format, instead on basically using string processing. I hate how many people treat webpages as mere character strings with some special characters instead of structured data serialized in some way or another. I don't want to be stuck using a line-based editor for structured data forever. I'm still using vim, and I'll probably continue for a while, but for XML I'm actually just waiting for an editor with a true understanding of XML and the power and speed-of-use of vim... KID remains my favourite way of generating web pages. It's templating transparently embedded in a XHTML file using a separate XML namespace. And it's actually compiling the templates into python modules. P.S. if your ever need the Dummy 16 and Dummy17 functions, get them from microsoft (excel) now! No need to write them yourself anymore! (Dummy 1-15 are apparently discontinued.) P.P.S. I just wanted to point out, that I'm convinced that embedding much code into a layout file is a bad idea (one of the reasons why I despise PHP). Keep logics and layout separate. KID for example is quite good at that. In my DNSoupdate tool for example, all the template contains is loop constructs and simple case disinctions. This also brings me to my biggest gripe with KID: it depends on python. I don't see a way of using the same template with a different language. So maybe I'll actually go back to some TAL solution or so that is a bit more portable templating-wise (and still perfectly reuseable XML).

7 July 2006

Jordi Mallach: B tera 2006

For most of the past winter I've been trying my best to get back into a somewhat regular schedule of training. I have failed miserably. At most, I've managed to go swimming at 7AM once or twice a week with my teammate Rafa, but I've been quite irregular. I also tried getting some running done, which revealed my condition is the worse in the last 7 years, probably. The first days I went running I felt I couldn't go faster than 4.5 mins/km without having my legs warn me about what I was doing. It was horrible. And when I started to get into the habit, I had to stop. I started getting some pain in both knees whenever I ran more than 45/50 minutes, and I associated it to my weird knee crack I get after a while of cycling. So, in March or so, I decided to stop, frightened of the pain being a serious injury or something. I wanted to visit a physiotherapist as soon as possible, but that only happened a few months later. I visited my teammate Jordi Reig in Alcoi, and after exploration, he deducted my knee problems probably come from the massive contractures in both quadriceps. I was meant to start running again, adding minutes to the sessions progressively until reaching the problematic 50 minutes of pain. I've been so busy though, that I haven't been able to do anything in the last months, so I can't say how bad my quadriceps are now. Two weeks ago, during the WarmUp Weekend in Vilanova, I got a bad kick on my calf during the semifinals game, and the day after even walking was painful. I had already signed up for the B tera triathlon, so I thought I may not be able to finish it. I signed up as I did with other competitions last year, with the goal of finishing and nothing more. This time, all my cycling training was a 40km stage I did back in December. B tera is a sprint with swimming done in a 50m pool, 27kms of cycling in an irregular circuit and a bit more of 5kms of running around the town. It is organised by our team mate Jordi Jord , and this year was the second edition. I already attended last year. On Sunday, I had to wake up at 6:10AM after going to bed at 3 or so, had some chaotic breakfast and drove up to B tera. This year I haven't got a triathlon licence, so I was in the teamless and veteran people leg. The judges made us wait in the water for nearly half an hour, apparently because one team was missing and was about to arrive. They could have warned and I wouldn't have frozen in there. The people in my lane tried to organise the start of the race, in order of what people said they swam. As the older people claimed they swam in 14m or so, and I had no idea of how much I would do, I offered to go last. Ok, that was a fuckup. It seems the 4 guys immediately before me weren't exactly van den Hoogenband or Phelps. After the first 100 metres I got tired of swimming at half speed and decidedd to overcome a few of them. I managed to get rid of two on the 350, but when I tried with the third, he didn't seem too cooperate too much, so when there were just 200 metres left I decided to not waste more energy on that. My swimming time wasn't spectacular, but at least I got out without being tired at all. Cycling made me remember my biggest problem when there's some climbing in the circuit. I climb very well, but everything you climb you'll have to descend eventually. So the three laps were the same: I passed many people on the way up, but on our way down they would go past me again like rockets, due to my minimal body weight. That sucks. At this point, I thought I would have abandoned the race due to my calf injury, but as I was feeling more or less ok, I decided to give it a try. The first lap of two wasn't so good, I felt my legs weren't used to the transitions, but after they warmed up a bit I started running faster. Until, 1.5kms away from the end, the quadriceps started warning me; I had to slow down again until I crossed the finish line.


I would look more like an athlete if I shaved... The rest of the team did pretty well on their leg, specially Rub n who came in third after having raced on Friday night. A few hours and many children races later, we received the team award for the Komando's second place.


Everyone loves the Komando. Go Komando! It always feels good to do races like B tera. I plan doing a few more races this summer: Val ncia, Pinedo, maybe Antella, maybe Cuenca...

3 July 2006

Evan Prodromou: 15 Messidor CCXIV

Gar! It looks like life's not so rosy after all with this blog. YULblog, the Montreal blog aggregator, apparently uses TrackBack for updating the aggregator. So I'm going to have to build some kind of trackback system into WiLiKi. At some point I should probably collect my customizations for WiLiKi into a nice WikiBlog? add-on -- but there's still a lot Todo before that'd be ready. On the same subject, it seems that I'm getting more and more frequent WikiSpam on the About This Site page. I'm going to have to start instituting some anti-spam measures. Using regexps to refuse submissions with blacklisted URLs works very well for Wikitravel (see wt:Wikitravel:Spam filter), so I'm tempted to try it here. tag:

Piknik missed We were going to head to Piknic Electronik yesterday -- we had a great time a few weeks ago, and Piknik is such a harbinger of Montreal summer -- but Amita June is going through some freaky personal schedule issues, and she wouldn't take an afternoon nap. By the time to leave for the Parc, she was wiggin' out from sleep deprivation, and we couldn't really force her to go out to the island and dance to big fun beats. Which was kind of a bummer, since our friends Meg and Patti were out there, and it would have been good to see them. They came by on Friday night for Pizza Night Chez les Bads, and we talked about Ignition 2006 (yes, Montreal Burners, it is going to happen... I think) and kids and dancing and weddings and fun. Amita June and Meg get along like gang-busters; they have a lot of fun together. So instead of going out to the Island Amita June and I went across the street to Parc La Fontaine and played in the baby pools right next to the playground. How is that for lucky? We have two huge pools, about 18 inches deep, right across the street, next to the baby playground. Oh, and there's a good bar a block and a half away. This is the greatest apartment ever. We moved in this time last year, and I feel so at home here now. So many important things have happened to us in the last year -- Amita June, Wikitravel -- and this apartment has been a part of it. We're going to look for a house to buy in the fall, but right now this feels like home. tag:

Two months I almost forgot that it's my two-month blogiversary. Yes, I just made that word up. And it's months in the French Revolutionary Calendar, not, like, real months. But close. tag:

My mom For those of you who asked: yes, my Mom's doing great. She was bit by a rattlesnake last week (!), but now she's back on her feet, the swelling is down, and she's doing all the stuff she did before. Good for her; she's pretty resilient. tag:

Microburst I now officially have a new phobia, since a Quebec woman was recently killed in her trailer by a microburst. Apparently a wp:microburst is a localized gust of wind that can reach speeds of 100 kph, kind of like a tornado. Unlike a tornado, a microburst doesn't spin around -- it goes straight down. It's usually accompanied by rain, and can be devastating. These freak winds happen several times a year in Quebec. Great. tags:

OpenID My current work project is enabling single-signon for all the language versions of Wikitravel. My preferred method for this is OpenID, since it will allow sign-on not only to Wikitravel language versions, but in the future other sites as well. So I'm writing an extension for MediaWiki to allow logging in to MediaWiki with an OpenID URL, and for making MW an authentication server for other sites. I realize this is a little roundabout for Wikitravel's needs, but for interfacing with new partner World66, as well as other MW sites like Wikipedia or Wikia servers, it'd be fantastic. I'm using the great OpenID Enabled libraries from JanRain. They're working out pretty well, although they're a little flaky around the Yadis edges. Given that I don't really care about Yadis -- sorry, LID and inames -- having to deal with those errors is pretty annoying. Even so, I managed to get a working consumer-side system going today. It was pretty exciting logging into my development machine for the first time with an OpenID, and having it work. Hooray for OpenID! tags:

2 July 2006

Evan Prodromou: 5 Messidor CCXIV

Good news for us: Wikitravel was selected as Featured Commoner for June 2006 by Creative Commons. There's a long interview with me and Maj about the origins of Wikitravel and why we think it's so cool. It may be the best interview I've seen about the project yet; I really recommend it for curious people. tags:

Creative Commons plugin for Microsoft Office I'll say it right now: kudos to both Creative Commons and Microsoft for the new Creative Commons Add-In for Microsoft Office. I'm not a frequent user of Microsoft Office, but I do get lots of .doc and .xls and .ppt documents over the transom, and it's good to know that Creative Commons is doing something to make it possible to Free works in these formats just a little bit. There's been a bit of controversy on the cc-community list about the move, but I think it's great. It took me a while to warm to it, but I really like Creative Commons's approach to Open Content. It reminds me of wp:harm reduction theories. I think they're not universally loved for this, but I also think it's been a big part of the success of the project. tags:

Sucks-Rules-Votes-o-Meter I keep forgetting to ask Don about making a microformats-oriented version of the Sucks-Rules-o-Meter. After all, the VoteLinks microformat isn't much more than a semantic-web-formalized SROM, is it? I figure a plugin for Nutch to look for vote-links would do the trick; and I bet Technorati would be cool about adding an SROM system to Pingerati. tags:

100M We were driving from wt:Culver City to wt:Santa Barbara yesterday, and we stopped in wt:Calabasas for a soda and some breastfeeding. I had on K-RTH 101, the soi disant "soundtrack for Southern California", when on came a commercial for HP laser printers. We were astounded to hear that there have been 100 million HP LaserJet printers shipped since 1984. Yes, one hundred million. That's one HP laser printer for every 60 human beings on Earth. Do we really need that many laser printers? Why? What the hell are we printing so much? It's pretty obvious that 100 million people haven't bought laser printers; much fewer people have bought more than one laser printer over and over. HP seems to think this is something to crow about, but I've looked into a lot of laser printers, and they're full of some pretty heavy iron. Those old ones aren't going anywhere anytime soon. Some quick math suggests that that's about one million metric tons of trash generated principally by HP. Probably the majority of HP printers have been smashed to bits, like the one in Office Space. Whose fault is it that we've gone through 100 million of these poisonous, heavy, clunky metallo-plastic whizzbangers in 20 years? Does the company have a responsibility to make machines out of reusable, recyclable materials? To not make its growth based on wp:planned obsolescence? If you're marketing the machine as a disposable device, shouldn't you have a plan for where they go at their end of life. Why aren't more machines upgradeable in small chunks, so you don't have so much material going into landfills? One hundred million laser printers, buried under piles of banana peels and diapers, or embedded in the ocean floor, or rusting in basements and warehouses. It doesn't seem like something to celebrate; it seems to me to be pretty depressing. tags:

1 July 2006

David Welton: Good thing that he doesn't speak Italian

The Java Conference in Milan was a pretty good experience on the whole. Took a train there in the morning, and managed to arrive just in time for James Gosling's talk. It wasn't a bad talk, but he's not a great speaker - you can tell he's more of a technical guy who's interested in the details, and perhaps would do a better job of transmitting some of what he's interested in/working on in a small group or individually. He did talk some about utilizing Java in real time embedded environments, which I found interesting, because those guys tend to be very careful, 'no bullshit' sorts of engineers, who have people's lives riding on their work. It's not an environment where enterprisey fad things go over very well. In general, the technical level was reasonably high - I was pleasantly surprised, expecting a bit more in the way of marketing driven presentations. Indeed, the association of Java with Big Business sorts of applications has long been something that has turned me off on the language. As an individual, or part of a small team, I'm much more interested in systems like Tcl and Tk or Ruby on Rails that let me do more with less code. I've felt that it made more sense to avoid competing on terrain where the differentiating factor is the ability to crank out massive amounts of code (getThis, setThat, etc...), because alone, I can't take on a larger group. As I was explaining some of this as part of 'Why I wrote Hecl' to one of the other guys slated to talk about J2ME in the speakers' lunch room, I was talking about how "non e che Java mi piaccia in modo particolare" (I'm not particularly wild about Java), the person I'm talking with starts gesticulating at me, and I turn around and look, and who should be there, talking with someone else, but James Gosling. Hope no one provided a translation for him! To tell the truth, I think Java has its place. It seems to be an appropriate technology for something like OFBiz, or other apps that genuinely do need to be reasonably large and complex. Just that I have more fun with other languages like Ruby and Tcl.

23 June 2006

Edd Dumbill: Illustrated Rails, smart folks and publication

It's been a fun day today, the pre-conference warm up day for RailsConf.Over breakfast with Surj Patel and Matt Biddulph, we got to talking about debuggers and poking around inside Rails applications. With Rails being so new, I was intrigued in what happens when you hand a Rails application over to somebody. Does all the Rails magic help or hinder their ability to understand what's going on?What kind of ways are there, beyond documentation (which nobody writes), to communicate the workings of a Rails app? We thought that what might help would be some kind of graphical illustration of the flow of control, linked to a source viewer, that showed requests being processed. Rails is built in a convenient way for instrumentation and introspection, by virtue of the aggressive use of DSLs and Ruby's language features. Based on these, are there tools we can write to help people understand what a Rails application is doing?
I've not yet had enough experience of either handing off, or being handed, mature Rails apps to say for sure what's needed. But it's going to be a problem we all face when Rails sneaks further into the system. Java's redeeming quality in the enterprise is that it's damn hard to write anything one might consider idiomatic. As a consequence, there are predictable ways in which one can approach code written by somebody else, all other factors being equal. Will Rails idioms cause trouble for long-term maintainability?
Lunchtime included an interesting exchange with Rich Kilmer. Rich used to work for DARPA on RDF and OWL stuff, and has apparently written all manner of interesting Ruby code that processes RDF. It's a crime I'd not come across his work before, but it's all open sourced in the Semitar project. The project web page looks modest, but if Rich's description is anything to go by, it sounds a wonderfully appropriate way to approach programming for the semantic web.Finally, I notice that, as the day finishes, IBM developerWorks have published my Introduction to Rails for DB2 developers.RailsConf proper starts tomorrow. 

22 June 2006

Simon Richter: Welcome to level 2 of embedded systems programming hell

HTTP is an evil protocol these days. There are headers that tell you to ignore other headers. There is no formal order, so technically, this could be the last header that is sent. And there is no limit on the lengths. And to top it all off, there is the concept of "trailers", i.e. headers that are sent after eventual POST data. At least the spec allows me to reject things without giving a reason.

20 June 2006

Dirk Eddelbuettel: UseR! 2006 presentation

A quick note to mention that the slides from my talk at last week's UseR! 2006 conference in Vienna are on my website. My presentation introduces and briefly discusses fifteen different ways to 'use R' in Quantian. Roughly bucketed into four categories (classic, graphical, web-based and programmatically), these approaches cover the spectrum from the well-known to newer and promising interfaces. And of course all run 'as is' directly off a self-configuring and directly bootable Quantian dvd or iso image. Once again, thanks to the organizers in Vienna who mounted yet another conference that was both fun, informative and packed with excellent talks. It also drew even more R users and developers than before -- almost twice the number of participants and presentations than in 2004. It looks like we will meet next year in Boston for a North American UseR!, followed by Munich in 2008.

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.

17 June 2006

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. 

10 June 2006

Steve Kemp: Looks like a shotgun wedding to me

Last night I reinstalled Debian GNU/Linux upon my laptop so that I could have a clean starting point and a simple LVM setup. Why? Well xen-tools has had half-hearted LVM support for a few months, but not complete. And waiting for other people to add fixes has become unbearable. So now I have a 7Gb root partition and a 12Gb LVM group which can be used to create new Xen instances upon. (Or for anything else I guess!) Speaking of Xen Tools. Yesterday was a major day of work. I’ve split up the code from one monolithic script xen-create-image into three simpler programs which are called in turn:

9 June 2006

David Welton: Tcl on eCos

This is noteworthy - running Tcl on the eCos embedded operating system: http://ecos.sourceware.org/ml/ecos-discuss/2006-06/msg00083.html http://ecos.sourceware.org/ml/ecos-discuss/2006-06/txt00000.txt Looks like my friend Salvatore's Jim interpreter is gaining some mindshare in the embedded space. Note Comments are broken... ask the Typo guys when they'll be fixed.

7 June 2006

Philipp Kern: Embedding Lua into qmail

So I spent most of yesterday's time on embedding a Ruby interpreter into qmail, and most of today's time on embedding a Lua interpreter into it instead. The latter worked well enough, the former did not and the resulting scripting environment was just weird. Not even the File object did work, I was not able to put some strings into a debugging file. Why I do that? Well, I needed greylisting, which seems to require a bit more policy than expected. There was a patch for qmail-smtpd which called a shell script to check if a certain file is present, representing the greylisting triplet. I first changed the script to sanitise its input variables and it looked to work well. But no, it broke sender verify. Another machine of mine, running exim, was not able to do a proper callout to this server, out of dubious reasons I have not yet fully explored. I wanted more control over the policies when to accept mail (considering that qmail does not implement anything like this by itself), so embedding looked like a good choice. I still hope that Lua provides me enough functions through its libraries, just like Ruby would. And why I use qmail... The commercial web hosting panel I got for free with the server, called Plesk, uses it, so I will stick to it until I find a drop-in replacement. I cannot be bothered to either write a free replacement for the panel which takes some work off me, or to take the challenge and replace qmail on the live server, having no other server equipped with the panel to try it on. Especially considering that I do this hosting for free in my spare time...

Dirk Eddelbuettel: Vraiment mal!

A few days ago, AvantGo syncing to my trusted (yet dated) Tungsten C failed all of a sudden. As I hadn't updated anything on the Kubuntu / Ubuntu box I use as my home workstation, and the (aptly named) malsync library which implements the protocol under Linux/Unix didn't change, I was a tad puzzled. Perusing AvantGo's website was pointless. Years ago they mentioned Linux support via the (unsupported) malsync library, now they seem to hide it. So what the heck, off went an email to AvantGo's support. To their credit, a reply arrived within 48 hours. While they pointed me to a Mac OS X answer (eek!) in their knowledgebase, it contained the basic hint: new prc files for a new version were required. So Google: if someone asks you why AvantGo syncing from Linux all of a sudden fails, tell them to get the new files from here. The app is now called M-Business and requires a fresh setup of server, id and password; but you're off to the races afterwards.

Neil McGovern: For those who care about security...

Extract from the secure testing team list of doom changelog:
maulkin@cheddar:/home/repos/secure-testing$ svn log -r4160 data/CVE/list
------------------------------------------------------------------------
r4160   stef-guest   2006-06-07 00:20:30 +0100 (Wed, 07 Jun 2006)   7 lines
some bug reports have been closed, but were missed:
fftw fixed
moodle fixed
gnumach fixed
linux fixed
------------------------------------------------------------------------
Finally! Linux has been fixed!

4 June 2006

Dirk Eddelbuettel: Sunburst Races Marathon 2006

Went to South Bend, Indiana, on Friday for the 2006 Sunburst Marathon yesterday morning. This is a smallish marathon with 600 runners, embedded in a half-marathon, 10k and 5k all of which start at the College Football Hall of Fame and end in the Notre Dame football stadium. Early 6:00am start, made worse by the fact that it is one time zone earlier too so I got up at 3:30am 'my time. Ouch. The race almost didn't start as a hazardous materials spill was announced right at start time. Luckily, that got taken care of and we were off and running at 6:15am. The first ten to twelve miles went pretty well and fast, and I slowed down a little afterwards. I started to pay for the fast first half with some oncoming cramps starting around mile 18. Somehow I managed to suppress the cramps with a combination of walking water stops, gatorade, gu (handed out by the race organisers a four or five water stops -- nice!) and sheer stubbornness and some more walking when needed. I had aimed to beat my Boston qualifying time of 3:20 -- and I did with a chip time of 3:17:48, which is also another PR and a nice improvement over the previous three marathons. So on to Boston for the one hundred eleventh Boston Marathon next April!

Next.

Previous.