Search Results: "agi"

17 October 2006

Wouter Verhelst: Linux 2.6.18 vs NBD

Version 2.6.18 of the kernel contained a small(ish) change to <linux/nbd.h>:
--- nbd.h	2006-10-17 19:53:55.000000000 +0200
+++ /usr/include/linux/nbd.h	2006-09-20 05:42:06.000000000 +0200
@@ -37,19 +37,28 @@
 /* userspace doesn't need the nbd_device structure */
 #ifdef __KERNEL__
 
+#include wait.h>
+#include mutex.h>
+
 /* values for flags field */
 #define NBD_READ_ONLY 0x0001
 #define NBD_WRITE_NOCHK 0x0002
 
+struct request;
+
 struct nbd_device  
 	int flags;
 	int harderror;		/* Code of hard error			*/
 	struct socket * sock;
 	struct file * file; 	/* If == NULL, device is not ready, yet	*/
 	int magic;
+
 	spinlock_t queue_lock;
 	struct list_head queue_head;/* Requests are added here...	*/
-	struct semaphore tx_lock;
+	struct request *active_req;
+	wait_queue_head_t active_wq;
+
+	struct mutex tx_lock;
 	struct gendisk *disk;
 	int blksize;
 	u64 bytesize;
@@ -68,11 +77,11 @@
  * server. All data are in network byte order.
  */
 struct nbd_request  
-	u32 magic;
-	u32 type;	/* == READ   == WRITE 	*/
+	__be32 magic;
+	__be32 type;	/* == READ   == WRITE 	*/
 	char handle[8];
-	u64 from;
-	u32 len;
+	__be64 from;
+	__be32 len;
  
 #ifdef __GNUC__
 	__attribute__ ((packed))
@@ -84,8 +93,8 @@
  * it has completed an I/O request (or an error occurs).
  */
 struct nbd_reply  
-	u32 magic;
-	u32 error;		/* 0 = ok, else error	*/
+	__be32 magic;
+	__be32 error;		/* 0 = ok, else error	*/
 	char handle[8];		/* handle you got from request	*/
  ;
 #endif
Which meant that the userland NBD utilities would not build against that anymore. The Debian packages are unaffected (they ship their own nbd.h since they need to build on non-Linux ports, too), but that doesn't mean we can leave it like that. The first hunk is unimportant, as it's enclosed within an #ifdef __KERNEL__. The others represent an interface change: rather than having u32 and u64, they come with __be32 and __be64. Nothing that can't be fixed with a few #define lines, but still something that had to happen. So today I released nbd versions 2.7.8 (from the outdated 2.7-branch), 2.8.7 (from the current stable and supported 2.8-branch), and 2.9.0-test3 (from the current development branch) to sourceforge, and released version 1:2.8.7-1 to Debian unstable. I'll probably also release 1:2.9.0-test3-1 to Debian experimental "some time soon", but not just yet. Apart from the obvious #define lines, the 2.9.0-test3 release also fixes some issues (in contrast to -test2 which was a bit of a crashing horror, -test3 actually works) and has revamped multi-file support. Most of the changes in -test3 (in fact, most likely all of them apart from the #define lines) were done by Phillip Hellewell, whom I owe a beer if I ever see him. Occasionally, the 2.9 line has some extra code and features that aren't available in 2.8, such as configuration file support and the ability to serve multiple block devices from one nbd-server parent process. Check it out if you have a chance and/or are interested. On top of that, the 1:2.8.7-1 release also contains some fixes in the debconf stuff, that close 3 bugs. Am I cool or what? Nah.

Isaac Jones: Haskell Packages 6.6?

I'm excited because we're pretty well along the way to getting cabal-install and friends working nicely. We've got almost 30 packages in the database. Let's imagine something that would be awesome for the Haskell community. A set of Haskell packages which are all known to work together with a particular version of cabal (the one that GHC comes with), and a particular version of GHC. GHC version 6.6 was just released, and I think we should try to make this happen. Currently, we have a set of 27 "unstable" packages. They may or may not work with each-other. I just created an empty directory "testing". I propose that we start testing packages, starting with the Cabal release that'll went into GHC 6.6, and make sure they work nicely together. Once they're known to work, we can migrate them from the "unstable" directory to the "testing" directory. Once we have a sufficient collection of packages, and once ghc 6.6 is released, we can make a snapshot of this directory, call it "stable-6.6" or something. Then if you have ghc 6.6 and cabal-install, you should be able to "cabal-install p" for any package, and it'll definitely work. So what will we need for this to happen?
  • An installed version of ghc 6.6 on the hackage/darcs server. Maybe in a chroot or something. Maybe from the nightly build tree or the previous snapshot?
  • Some initial set of packages (maybe just cabal-install) to start off.
  • Some script that goes through and builds all of the "unstable" packages in dependency order. I think cabal-install can do this already. In fact, it would be ideal if we used cabal-install for this.
  • The script should also run ./setup haddock and ./setup test. If the packages seem to work w/ 6.6 and the other packages in "testing", it should get migrated from "unstable" to "testing".
  • A web interface (lemmih is working on it)
  • A script to upload packages to "unstable" (Paolo is working on it).
  • Someone to spearhead all of this! We need volunteers. Please email me if you think you can head this up.
  • Martin F. Krafft: Digging the iAudio

    A little while ago, I finally gave in and bought myself a music player. Now I find it hard to imagine how I coped all these years without one -- I did not have a music player since my MiniDisk player from about seven or eight years ago. I bought the iAudio X5L with 30Gb of space as part of a fall special sale, and even though it's still a bit on the expensive side, I am glad I did go with the X5L as opposed to the X5 or models by other manufacturers. Here's my analysis, which isn't all positive:
    • The iAudio players can play more formats than any other player I've seen, including, of course, Ogg Vorbis and Flac.
    • The casing is sturdy and smooth; the player is a little heavy but not too heavy. The display is gorgeous, although I would not watch videos on it even though I could. All in all, it feels and looks great.
    • The software seems archaic at first, but after a little use it's quite enjoyable and intuitive to use. It does not compare to the scroll wheel of the iPod when scrolling large directories, but it does quite alright. I really appreciate being able to browse while listening. Also, the display contains a lot more information than on any other player I've seen.
    • One quickly gets used to the joystick; however, considering that the right direction is the one used the most, it starts to go loose after only a bit of usage. This has not really been an issue so far, though.
    • The X5L has only 30Gb of storage, as opposed to the 60Gb you can get with the X5. However, the L in the product title refers to long-life, and the battery in the X5L lasts about twice as long as the one in the X5. I just took the device for a spin in the alps and after two 5 hour train rides of continuous playing, and another 6 hours of playing at the cottage, the battery was still around 40% full. If I ever run out of space, I could exchange the internal 1.8" harddrive for a bigger one.
    • I can use the device to record from microphone or line-in (using an adapter) directly to MP3, and the microphone's quality is quite fair. This is great!
    • The sound quality is good, but all the sound enhancers, like BBE and Mach3Bass are useless; better leave them off.
    • When connected to a computer, the harddrive appears to the machine as a regular USB storage device, so no software is required to maintain the data on it.
    • I am a little annoyed by the fact that the USB connector on the device can only be used to connect cameras and the like to store data on the X5L's harddrive. In order to dump data onto the device, you have to connect a little dongle and then attach the USB cable there.
    • It does not appear to be charging while connected via USB. I am not sure about this yet though, since the configuration menu offers an option to enable and disable charging via USB.
    • I've been told that firmware upgrades aren't rare and that they're easy to apply.
    • It comes with two years of warranty (as opposed to the default one year in Switzerland).
    Altogether, the player isn't perfect, but it does what it should (and more) quite well. I can warmly recommend it. It comes in at a slightly higher price than the iPod, but quite frankly I am happy to support the manufacturer Cowon for its product line and philosophy of supporting open formats and caring for the customer. NP: Porcupine Tree / Tarquin's Seaweed Farm (Side B)

    16 October 2006

    James Morrison: Living in the city

    So I went out to a independent short film showing down in the mission today. I was able to put my bicycle inside the small theatre. I went down because one of the shorts that was supposed to be shown is called "Toddler Zombie Sluts", now with a title like that, I curious what is up. "Toddler Zombie Sluts" was not shown, instead I saw a music video for the song "My Pussy is Magic".

    The other thing I learned is that going up Duboce from Castro is a rather steep section of road. I wasn't able to bike all the way up it. I'll have to work on that.

    James Morrison: Mystery rocks

    So this afternoon while I was wading through some old email, I kept hearing rocks land in my kitchen. Twice I picked up rocks that magically appears. They could have come through the window, but that would be a difficult throw.

    I've discovered that wandering over to Golden Gate Park is almost always a good idea. Yesterday was the Tour de Fat where I got rather sunburnt. This evening there was a drumming circle going on. I'll have to get a diggery-doo for next week's drumming circle.

    John Goerzen: More Goerzen News

    On Saturday, my brother Peter was over to help us pack and move. While he was here, he told us that he got engaged to be married! Peter has known his fiancee ever since they were in Kindergarten together, when she was upset that he didn't invite her to his all-boys birthday party.

    We're very excited for them and I know they'll have more happiness that they can imagine in the years to come.

    15 October 2006

    Florian Ragwitz: Random seeking on gzip streams

    After asking the lazyweb on how to seek on gzip streams I got a very useful and comprehensive reply by Paul Sladen. As my previous searches on this topic didn't turn up to much useful things I'd like to publish Pauls reply (with his approval) here to help other people having the same problem as well:
    Paul Sladen:
    Seeking on compressed streams is a little like reading sectors from a harddisk; to read one byte requires reading a much large sectors. Two things are needed, the sector size and the sector length. On a hard-disk the sector length is nominally 512 with the mapping between an offset and sector start often as simple as: $offset >> 9. In compressed streams, the relationship between stream position and sector start is non-linear. Using a non-linear mapping is more involved as searching a lookup table is required. Mapping between an uncompressed position instead cannot be calculated and a 'zmap' table listing all sector start position and corresponding on-disk points needs to be created. The size of a sector must be determined aswell. Bzip2: It is fairly easy to seek on compressed bzip2 streams. In a Bzip2 stream, each block is totally separate and self contained---have a look a the 'bzip2recover' program. 'bzip2recover' scans through a bzip2 stream locating each block/'segment' (normally 900kB of input, so ~200kB of compressed output), then copying each segment to separate bzip2 file. Gzip: Seeking on gzip streams is somewhat more involved; Gzip uses a dictionary design where back-references are made to uncompressed data within the last 32kB ("the window"). The only safe place to start reading a 'sector' in a gzip stream is somewhere where that the dictionary size is zero. An empty dictionary occurs at the start of a stream, or where the stream has been 'reset'. Gzip resets: A gzip 'sector' (the length required to be read, to safely decode a byte) could be the full length of the file-size, or could occur more frequently. A gzip sector start occurs when the stream is reset---resetting the stream more frequently leads to more sector starts, but a reduction in compression thanks to less use of the sliding dictionary. Trade-off. The "gzip --rsyncable" is an example of stream resetting; in this case the stream is reset (and the dictionary closed) each time that the sum of the last 4096 octets of input data, modulo 65536(?) equals a magic number (zero normally). In exchange for the extra reset/start points, you get a size increase of 4-5%, but a better "hit rate" for random access. Gzip reset point lookup tables: More likely you'd want to reset the stream every eg. 4096kB of input, then save the corresponding position of the output stream for a give input position. This lookup table of start positions needs to be stored somewhere. 'squashfs' does in a separate file; 'zsync' in the zmap. (If you wanted to define a standard, these reset points could be stored in the 'extra' or 'comment' fields at the start of a gzip file; storing them with a suitable header would enable some degree of seeking for sufficiently intelligent readers---files could be post-processed to add this data). Storing a LUT takes space; adding extra reset points and storing the LUT data for these extra points takes more space---but I found storing the LUT as a set of double-deltas cut it down; could be gzipped aswell. Gzip partial resets: A gzip stream doesn't just contain 'reset' points, but also 'partial reset' points, a partial resets the huffman tables, but doesn't reset the dictionary. It's safe to stop reading at a partial reset (which effectively shortens the sector length). Whilst not normally possible, partial reset points /are/ able to be used as a starting point /if/ you can populate the previous uncompressed 32kB that forms the dictionary window from another source---'zsync' does this when reconstructing a file, however 'zsync' only does construction in a linear fashion, from the start of a file. Further Reading: Magic words to search for: zsync, squashfs, apt-sync, succinct Succinct is my unfinished project. Succinct involves many parts, one of which covers what you're doing. It might be good to break separate off seeking of compressed streams into a separate project---many small pieces make big problems easier! What I might do is store the LUT in the EXTRA field of the gzip header (limited to 64kB though). Though, within 64kB it would always be possible to construct a useful LUT; based on the final length of the input data, it would be possible to reduce the granularity of the LUT such that it only mentioned 50%, 30%... even 5% of reset points. The LUT itself could be gzipped for extra gain. Hope that's useful, -Paul PS. In all the cases (except one) that I mentioned gzip, I probably meant 'zlib' or 'deflate'! :)
    In a later mail Paul also added the following:
    Paul Sladen:
    BTW, in my search around a bit later for something I turned up two more things that might be interesting: dictzip, examples/zran.c in the zlib source 'dictzip' is a similar idea to what I suggested at the end of the previous email. A lookup table is built and stored in the EXTRA section at the start of the gzip file and the utilities ('dictzcat' et al) then use this look-up table for random-access on the data. 'dictzip' are still slightly wide of the mark, forcing a flush/chunk every 58969 bytes. That number is chosen so that even in the worst case, the compressed version will never be more than 216 in length. However I think their math is slightly wrong as even in the worse case, gzip only generates 5 bytes per 32kB for an uncompresed store. -> ~65514 by my reckoning. Squashfs uncompressable chunks by setting the top bit of the file offset to indicate a true store. Their lookup table format appears to be flexible enough that I /might/ be able to create a table by scanning an existing stream rather than re-encoding. Depends about the 64kB limitation. Mmm.
    Thanks Paul!

    14 October 2006

    Rodrigo Gallardo: And more packages!

    I’ve finally finished packaging keytouch, and gotten approval for it by my sponsor. It’s currently in NEW, and probably won’t make it to etch, because of the freeze. Kind of a shame, since I could have finished a little earlier and it would have gotten in. Well, can’t have everything. I did manage to upload a new version of sawfish, which finally documents how to prepare the source tarball. sawfish has so many old bugs I’m at a loss as how to handle them. I’ll be RFHing it soon, to see if someone can help me triage. But still, with upstream almost dead, it’s hard to think of a good approach.

    Brett Parker: So, what have I learned today?

    1) I'm not attractive (OK - so less learned, more reaffirmed) 2) Not all hills lead back to the flat 3) See 2. (OK - so I left $club which I can't remember thinking "tired, home time", wished people good byes, and looked for a hill, usually any going up are back to the flat... wandered up the hill, carried on wandering, discovered pizza shop that I normally order from, said "Oh bollocks" and started heading in the right direction, down the hill, across the road, back up the other hill. Sucks to be on the wrong side of London Road.) 4) Sleep is good. That's what I'm just about to do.So, what have I learned today? EDIT: OK - writing an entry in vim at nearly 3am when you've been to a club results in the unfortunate side effect of somehow managing to put several copies of the post in the entry - BAH!

    12 October 2006

    Daniel Jacobowitz: Fun (and un-Fun) with qemu

    We have started using qemu for automated testing at work. Right now we only have one kernel and disk image that I threw together by hand (for ARM), so I spent a big chunk of this afternoon trying to figure out how to do it and document the process. When I did it last time, I needed major kernel hacks and qemu patches and debian-installer tweaks, because the ARM emulation didn't have anything capable of working as a hard drive; so I took some code that Paul had written to use the Angel RDI semihosting operations as a "virtual block device" that talked to the host system. I added support for this hack to qemu and forced d-i to install even though there was only a single non-partitionable device. Since then, Paul added real PCI support to the ARM qemu. So I expected everything to be much easier. I took Aur lien Jarno's excellent writeup and prepared to try again. But since we already had a functional ARM disk image, that was lower priority... I decided to try MIPS. I helped get the MIPS softmmu port working about a year ago, but it hasn't been receiving a whole lot in the way of care (though there's a bunch of unreviewed patches for it). First I discovered that I'd never gotten initrds implemented last time I worked on qemu-system-mips. So I hacked that together. Then I needed a drive; I used root NFS in my last setup, but the whole point of this experiment was to avoid that. So I added the emulated ISA IDE controller. Good news: both of those worked easily! And the d-i session starts up OK, and even writes to the disk OK; partition tables were discovered at next boot. I've posted some patches for these. Bad news: it hangs during formatting the swap partition, consuming endless CPU. It's definitely doing _something_ in userspace, but I'm not sure what, and it's hard to find out. I've heard other reports of faulty MIPS emulation recently, too. I know how to debug this sort of thing, but it's really more time-consuming than I can manage now :-( While waiting for builds in that, I resolved to try reproducing a nasty kernel bug in qemu for x86-64: since I booted into 2.6.19-rc1 all my coredumps have been truncated very short. My normal hardware kernel boots OK, but if I rebuild the kernel with the default config and debug info, it doesn't:
    checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
    Freeing initrd memory: 5498k freed
    *hang*
    And the other thing that's apparently not been getting a lot of love lately is the debugging stub; if I attach GDB, it dies much earlier, so I can't set a breakpoint at initramfs detection to see what's going on. Overall result for the day: Argh!

    Martin F. Krafft: In love with Porcupine Tree

    Somewhere around the mid-nineties, I was listening to Pink Floyd around the clock. Later, I slowly approached (and stuck with) David Bowie, to whom I dedicated my Honours thesis. Genesis, and specifically Peter Gabriel, followed. Right around the time I released my book (which is dedicated to Peter Gabriel), I lost my bearing and strayed about in the sea of independent and/or progressive post-rock, encountering bands like Godspeed You Black Emperor, Mono, Explosions in the Sky, and Mogwai. I don't think I'll grow old of those anytime soon. Lately, however, I've gotten hooked to more modern progressive rock, and in particular Porcupine Tree. And when I say hooked, I mean hooked: I've tried various times to dig the tunes by no-man, a project by the Porcupine Tree singer Steve Wilson which is more ambient in mood, and various excursions into the world of the German Solar Project (more experimental) or Porcupine Tree's sibling project Psychomuzak (more psychedelic). But none come close, I have been listening to Porcupine Tree pretty much consistently for the past 6 months. And I am still in love with what these 4-5 guys produce, especially the four albums Deadwing, In Absentia, Stupid Dream, and The Sky Moves Sideways. Being a drummer myself (who hasn't played seriously in several years), it is hardly surprising that Gavin Harrison is my favourite, some of the licks he plays send shivers down my spine, and he managed to get me on track thinking about how to pick up percussion again. But I could not imagine the band without Steve's voice and lyrics and guitar solos, Colin Edwin's most enjoyable bass guitar theatre, or Richard Barbieri's innovative synthesiser work. It's pretty cool how 30 years after the term progressive rock was coined, these guys still manage to ride the tide. If you're in San Francisco, they're coming to the Fillmore on Friday! I've seen two of their shows and was simply ecstatic during and after. And in November, they're coming to Japan. If you know and like Mono, you should just go! I'll definitely be on their next nearby concert! Interestingly, next to my development of taste of rock music, I've always been a major fan of electronica. I've found, however, that electronic music is far more short-lived, meaning that you grow old of it way faster. And now I wonder what's next. I feel I may soon return to King Crimson, even though their music is not as complete as Porcupine Tree. Don't ask me to define what I mean with that. Update: if you're into jogging, "Lazarus" off the Deadwing album is a really good energiser. Richard plays some very sweet arpeggios on the (synthesised) piano, and about a minute into the piece, Gavin and Colin deliver a truly groovy flow; I sometimes feel as if my legs move without my doing (haha, I just typo'ed "doping") when listening to this track. I guess this applies to much of their music. And if you're into drums, listen up at 3:18 minutes into the song. It's a very convincing fill on the drums. Gavin has better, but this one somehow strikes me as a damn good combination of innovation, simplicity, and feeling. NP: Porcupine Tree / In Absentia (Bonus Disc)

    David Welton: Practical Agile?

    At work, we've decided we need a little bit more process, so I'm going to attempt to lead our small group of programmers in that direction. We have a vague feeling that since there aren't many of us, we need to keep things as lightweight and practical as possible, and that something "agile" would probably be the best direction. Beyond having read a bit here and there, I've never had any direct contact with "agile" in the wild. We don't want a rigid methodology so much as a set of guidelines and, perhaps, tools that help us track time and projects. It all needs to impose very low overhead - because an imperfect tool that gets used is far better than something very fancy that gets ignored when people get in a rush. So... advice? I'm willing to get a book or two, but I have a sneaking suspicion that many of them are quite inflated with respect to their core concepts which could likely be summed up in a few pages. Anyone have any practical guides for small shops that want to try and reduce the chaos level just a bit?

    11 October 2006

    Benjamin Mako Hill: Who Gets To Be on Planet Debian?

    I've been spending more time that I want to in the last week talking about should or should not be on Planet Debian. In particular, there is some disagreement on what should happen to the blogs of people who resign from the project. In the interest of my own sanity, here is the text I just posted on the wiki page that talks about Planet Debian:
    Planet Debian is for any active and directly involved participant in the Debian development community. Inclusion in Planet should reflect a relationship that already exists -- it is not meant to create one. Inclusion is not restricted to people who are currently Debian developers nor are ex-developers necessarily barred from inclusion. Defining activity and direct involvement is tough and there are many ways of participating in Debian (e.g., packaging, translations, administration, etc). I am happy to consider all of these types of involvement for the purposes of inclusion in Planet. In terms of deciding what is enough activity, I am daunted by the fact that there has been academic research on the difficulties of deciding what an active member in Debian is. As a result I will continue to rely primarily on what blog owners themselves feel unless the evidence available to me points to the contrary. Planet participants should include feeds that provide stable permanent URLs so that they do not flood planet repeatedly and should include content in English only. An inability to do either of these will be grounds for exclusion from Planet until this can be fixed.
    In the past, I've made incorrect assumptions about whether people did or did not want to be included in Planet. I've apologized to those involved. In the future, I will ask people that appear inactive to me or that have resigned from the project if they feel that they still qualify under the terms above. If I approach you about inclusion in Planet, please don't be offended or assume that I, or the project, doesn't want you on Planet. There are feeds in Planet Debian that annoy me but I have yet to remove a feed from Planet that I dislike.

    Steve McIntyre: BSP Marathon - Zurich, 07 - 08 Oct 2006

    Last weekend, I went to Zurich for the second leg of my own personal BSP marathon. Martin Krafft organised the BSP at the AI Lab in Zurich, arranging sponsorship and encouraging local DDs and users to turn up. Martin and I started early on Saturday morning, opening up the lab shortly before 9am and making a start on the RC bug list. Over the course of the next few hours, more people turned up and started work too - local DDs and a couple of Debian users from ETH. We worked our way through a fair number of bugs that day; personally I closed #389318 (a grotty FTBFS bug caused by IMHO a design mistake upstream - parsing header files using a simple awk script to create an m4 script to then generate C source) and spent quite some time digging into some other bugs. For our late dinner on Saturday, we headed to a local American-style bar/restaurant in Oerlikon called Cheyenne. Their speciality, it seems, is the "Big Mama", the largest burger I've ever seen! It comes on a huge serving plate, and is enough to feed up to 4 people...

    BSP I took the chance over dinner to chat with the small group of locals, especially Axel Beckert who had some interesting stories about Fedora, Opera and other groups. On Sunday, we started slightly later but probably had a more productive day in terms of the number of bugs closed. I fixed some silly FTBFS issues in ser: #384772 and #390008 were both caused by the build system assuming i386/amd64 compiler options. I adapted patches suggested by Julien Blache from his own work on openser (thanks!) and tested on my sparc and hppa systems at home. Job done... For the rest of the day, I used the time to work on remaining bugs in my own packages. Both CVS and debian-cd needed new uploads to be ready for the Etch freeze. CVS had a bucket-load of new translations following Christian Perrier's call, and debian-cd had a large number of bugs that had already been fixed in svn for a long time. Between those 2 uploads (and some other old bugs in debian-cd that needed reviewing) that made another 17 bugs fixed, although none of them were RC. Once those uploads were done, I continued on with my debian-cd multi-arch development work. On Sunday evening, we went into the middle of the old city centre in Zurich to a more traditional Swiss restaurant. Several of Martin's colleagues from the lab joined us, and we had some widely varying conversation, ranging from Debian (of course! *grin*) to gossip in the lab via lots of other topics. Due to my ridiculously early flight home on Monday morning we couldn't stay out too late nattering, but nonetheless all the people seemed to enjoy themselves. The Swiss group were a fair bit quieter then the Dutch the previous weekend, but seemed just as committed to getting work done and getting Etch out on time. It was lovely to meet and spend time with them, and I've promised to go back and visit again soon. Until then, I've put my small selection of photos online.

    10 October 2006

    Matthew Garrett

    So it's been pointed out that since I'm no longer terribly involved in Debian, I possibly shouldn't be on Planet Debian nowadays. So unless there's any violent objections I'll ask to be removed at the end of the week - my RSS gunk is at http://mjg59.livejournal.com/data/rss for those who want to read my delightful prose in any case.

    Anyway. Some token Debian-related content. Mozilla corp are unhappy with Debian providing a package called "firefox" unless every patch provided has been approved by Mozilla in advance (there's also some stuff about the logo, but that's basically a bizarre corner aspect of the same problem). I'm not going to argue against this on philosophical grounds - it's clear that that isn't going to change anybody's mind. Instead, let's compare this to some other major applications:On the Mozilla side of things, the closest I can really come up with is cdrecord. There's some pretty strong parallels (upstream being unhappy about various patches, requiring a sufficiently different work to have a different name), but the end result in the cdrecord case was that we ended up with an application that was poorly integrated with the rest of the Linux environment for the sake of remaining consistent across different operating systems.

    I'm not saying that that's going to happen to Mozilla. But we've seen numerous cases where allowing vendors to distribute derived versions has encouraged development and testing of new ideas, and I think in most cases that's resulted in benefits to the upstream project. The fundamental problem with refusing to allow patches that cause significant deviations from upstream behaviour is that it makes it impossible for anyone to actually get things like UI experiments into the hands of users. With Gnome, if upstream don't like your idea you have the opportunity to prove them wrong and possibly change their mind. With Mozilla, if upstream don't like your idea you're pretty much screwed. Most distributions are going to be unhappy about losing the magic Firefox branding, so you're unlikely to sell them on it. And you're not even allowed to provide binaries or source on your website unless you've renamed it away from Firefox.

    I think the Mozilla corporation are missing something here. We shouldn't be prizing cross-platform consistency over integration and innovation, and we certainly shouldn't be doing our utmost to make it difficult for people to experiment with code. There's a reason that cd writing under Linux has been sucky for years, and it's not because people lacked the technical ability to make it better.

    [1] Ok, the X.org case is slightly confused by the fact that they are upstream now. But without the ability to fork under the same name, they wouldn't have been.

    Erich Schubert: Cluster computing with AJAX (aka: ajax-seti)?

    Ajax has shown how viable it is to run client-side computations, while just downloading the raw data from a server. But Ajax is not restricted to doing fancy user interfaces. It should easily be possible to use an iframe based ad to use the CPU power of page visitors to do some large-scale computations. Can you imagine how much processing power Google could churn up by having its GMail users do some distributed computing? Or on YouTube. While the user is watching the video, a javascript does some calculations in the background. By keeping data in a cookie, your calculations might even be able to survive page reloads. And if you're running a large ad network such as Googles', you might even be able to dect user inactivity. Update a cookie whenever the user comes onto an adsense page; if he didn't go on such a page for 30 minutes assume the user is idling and start computation. If he leaves open his web browser over night you'll get a lot of CPU cycles. (Yes, I know that Google is supposedly not in desparate need for free CPU cycles...)

    9 October 2006

    Wouter Verhelst: On Firefo^WIceWeasel

    Recently there's been some awe in the Free Software and general Linux world from several people over the fact that Debian is dropping Firefox from its distribution, and planning to replace it with GNU IceWeasel. Personally, I don't see what else the Firefox maintainers should do. While I can understand the Mozilla people's concern over modified (read: possibly trojaned) versions of Firefox and that they need to protect their trademark against abuse, I can't believe that there can't be a better way to handle this than to require review of every patch in the Debian package. After all, packaging a browser requires more than just writing a script that gets it compiled and that gets the compiled stuff in the .deb archive. There is also branding to be done—the Debian firefox package contains a search engine for Debian packages. I doubt this is part of the original firefox source, and there are more things. Additionally, sometimes you may have to change stuff so that it works with the specific quirks of the Debian distribution, or other things. Finally, in accordance with its published policy on the matter, the Debian distribution also wants to be able to distribute security-patched versions of Firefox after Debian Stable releases; and we want to do that not just by throwing in the new version of Firefox, but by using the older version, patching it so that the security bug (and only the security bug) gets fixed, and releasing that. We can't use the official mozilla.org/mozilla.com source for that, since they cease security support after half a year or so (which is, by far, not enough for Debian); and the discussion in the bug report on the matter does not inspire confidence that we would be allowed to release a security-fixed version of firefox and still call it firefox. The alternative would be to forget about our own security releases and ceding to the braindead mozilla.org/mozilla.com security policy, but I have a pretty public opinion on that one. So that leaves us with not adhering to their braindead trademark policy, which requires us to choose another name. And as it happens, there already appears to be a piece of software that not only is a forked Firefox, it also drops non-free software from the release, something which Debian has to do anyway. So why not use that instead? BTW, yes, I did call their trademark policy braindead. No, IANAL. But you don't have to be a lawyer to see that doing something like the way Debian manages its trademark—you're not allowed to call it "official" unless your product is bit-by-bit the same thing as what Debian produces—is sane enough without being a nuisance like the firefox trademark policy.

    8 October 2006

    Erich Schubert: On Google Reader

    First of all, I havn't really used Google reader yet. I think I tried it a long long time ago once, and they apparently did a UI redesign. However, it doesn't work for me anymoe, all I get is "Loading..." (and a Javascript error). I'm using liferea, and I'm quite happy with it. Some of the things I do like: Because of these I can't imagine using an online reader. P.S. If you fold your blog entries or don't do full-text RSS, I likely won't read your entries, either. It doesn't work with offline reading habits.

    Jesus Climent: Xen breaks my NAT.

    Dear lazyweb. I have the following setup:
    INTERNET (ADSL)
    [192.168.255.1]

    –> 192.168.255.x

    [eth0:192.168.255.2]
    (SERVER)
    [eth1:192.168.10.1]

    (WIFI wrt54g) [192.168.10.2]

    ‘–> 192.168.10.x
    The configuration is like described to be able to activate OpenVPN at some poing in the future (it worked at some point in the past but it started breaking apart). Now, the moment i activate Xen with bridge, the whole thing falls apart. I cannot connect from the wireless to internet. I have been playing with brctl and etables and iptables and so on, but i have not figured out how to make it work without problems. I have been getting different results: being able to connect from the wifi network to the server, being able to connect from the server to internet, sometimes the eth0 device gets like frozen and i cannot reach the ADSL modem even after switching off the whole bridging and network configuration, stopping Xen and running the “ifup eth0″ magic. Any ideas are more than welcome. Even if it just a “basics of bridging” document ;)

    Andreas Metzler: Kicking gnupg2 packaging

    Yesterday I got an e-mail from Werner Koch (gnupg upstream) about the status of gnupg2 in etch since he somehow thought me to be involved in its packaging. I am not involved at all but have nevertheless wasted a little time on giving gnupg2 1.9.91 a shot. Initial packages can be found here:
    deb http://www.bebt.de/debian/ sid gnupg2
    deb-src http://www.bebt.de/debian/ sid gnupg2
    I have not tested them at all, except for checking installability and for comparing filelists, however they should spare the maintainer a nontrivial amount of time, as the packaging is a lot less crufty than before. Check the changes file.

    Next.

    Previous.