Robert Collins: 8 Mar 2008
Best Breakfast place if you are in london: Roast
Yum.
(Also most expensive I suspect).

device-mapper: table: 254:0: crypt: Error allocating crypto tfm device-mapper: ioctl: error adding target to table device-mapper: ioctl: device doesn't appear to be in the dev hash table. Command failed: No key available with this passphrase.Thanks go to the corresponding thread on the pkg-cryptsetup-devel mailinglist. Now I cannot use this new kernel anyway because fglrx fails to compile just again (maybe because I used SLUB this time, don't know).
I’ve released dsyslog 0.2 tonight with support for BSD syslog facility and severity decoding, as well as some other nice features. You can download the source here.
In other news, my computer died, so I got a new one with an Intel Core2Duo E6550, and it surprisingly outperforms my old Opteron 265 system. I’m confused as to why, after all… less cores.
Also, daytime business has been forcing me to keep a schedule opposite to the one I am used to. Luckily enough for me, that will end soon and I might actually be able to get more than five hours of sleep. Sadly the lack of sleep results in weird grammatical and spelling mistakes, so it’ll be great when that’s over with!
Umm, what else is new? I’m working on a Debian-derivitive which is more community-oriented: think Ubuntu except less corporate; a true grassroots project to enhance and bring Debian to the masses. Big selling point? No static releases, so users always get the latest and greatest. I don’t want to make any big claims about planned success or anything, we’ll see what happens. It’s called Defusion (you could claim it means “debian fusion” or something, but that sounds ricetastic, and if I wanted rice, I’d clearly be running Gentoo, not Debian (or Defusion for that matter)). Hmm, perhaps it’s the Debian version of ArchLinux? Well, we’ll see about that — anyone who cares is invited to participate, the requirements of entry for joining Defusion is much less than joining Debian (no keysigning parties needed here, instead we intend to do a peer review sort of thing where people who do good work get their keys added to our keyring eventually — kind of like how Ubuntu works if I understand it correctly; no flames please).
As for Ubuntu, I guess I need to debug why my patch to make pulseaudio be used as default didn’t work.
Hopefully this blog will be updated more in the next few weeks!
Oh, please, I don t think I ever had a favourite film:
I cannot remember what I wrote here when I signed up more than two years ago.
And, of course, there s something good about this form, and something (else) bad about it:
The bad: this is displayed just after it has verified my email address.
The good: at least it s not asking for my mother s maiden name.
Often if you see a block diagram like this, what comes to mind is a
compatability layer in between a program and several operating systems.
Generally something that's general-purpose like java, or a web browser, or
a widget toolkit.
-------------
-------------
-------------
-------------
(Generally it's drawn up all purty, but I'm lame.)
But lately I've seen and written a lot of code where the diagram is more
complex:
-------------
program
-------------
V C S
-------------
OS
-------------
Sometimes the program code is littered with multiple switch statements, as
in debcheckout, debcommit, and etckeeper.
case "$vcs" in
git)
svn)
hg)
esac
Sometimes it pushes the VCS-specific code into modules.
use IkiWiki::Rcs::$rcs;
rcs_commit();
But if it does, these modules are specific to that one program. This isn't
a general-purpose library.
dpkg source v3
doesn't need to use the VCS is the same way as ikiwiki, and even
ikiwiki's rcs_commit is very specific to ikiwiki, in its error handling,
conflict resolution, locking, etc.
pristine-tar injects and extracts data directly from git, using
low-level git plumbing, in a way that probably can't be done at all with
other VCSes. But even as I was adding that low-level, very git-specific
code into pristine-tar, I found myself writing it with future portability
in mind.
if ($vcs eq 'git')
# git write-tree, git update-index, and other fun
else
die "unsupported vcs $vcs";
When Avery Pennarun talks about
git being the next unix,
he's talking about programs like these, that build on top of a VCS.
But if git is the next unix, then so is mercurial, so is darcs,
so is bzr, so too even svn (unless it's Windows?). In other words,
we're back to the days when every program had to be ported to a bunch of
incompatible and not-quite-compatible operating systems. Back to the
unix wars.
In Elija's discussion of the "limbo" VCS state
he gives several great examples of how multiple VCSes that each seem on the
surface to offer similar commands like "$vcs add" and "$vcs commit" can
behave very differently.
echo 1 > foo
$vcs add foo
echo 2 > foo
$vcs commit
What was committed, "1" or "2"? Depends on which $vcs you use.
Compare with unix where open(2) always opens a file, perhaps with
different options, or different handling of large files, but portably
enough that you generally don't need to worry about it. Even if you're
porting to Windows, you can probably get away with a compatability layer to
call whatever baroque monstrosity Windows uses to open a file, and emulate
open(2) close enough to not have to worry about it most of the time.
A thin compatability layer that calls "$vcs add" isn't very useful
for a program that builds on top of multiple VCSes. mr is
essentially such a thin compatability layer; it manages to be useful only
by being an interface for humans, who can deal with different limbo
implementations and other quirks.
The VCSes are to some degree converging, but so far it's mostly a surface
convergence, with commands that only look the same. Where will things go
from here?
Riku Voipio just sent a "bits from armel porters" in debian-devel-announce (sorry, no link: I'm offline while writing this).
I just want to point out that the success of armel becoming an official architecture is also due to the very clever and efficient way the porters interacted with maintainers.
As a very small example, Riku recently sent a bug report about samba for armel-related issues and this bug report was full of useful and precise information. Even without Steve Langasek endorsing the fixes, I would have applied the suggested changes even though I don't understand a single bit of it: just because it was so obvious that Riku knew what he was talking about.
As Riku points in his announce mail: this is a great succes and this also demonstrate that good interaction between package maintainers in Debian can still happen, despite some general perception that maintainers are "grumpy".
Or, as it's said, history repeats itself.
Today I sold my motorcycle (wait for the “blade” photograph).
Continuing from where we left off…
The lower bound for me becoming a DD was 8th Feb ‘98 when I applied;
for comparison, the upper bound as best I can make out was 23rd Feb,
when I would have received this mail through the debian-private list:
Resent-Date: 23 Feb 1998 18:18:57 -0000
From: Martin Schulze
To: Debian Private
Subject: New accepted maintainers
Hi folks,
I wish you a pleasant beginning of the week. Here are the first good
news of the week (probably).
This is the weekly progress report about new-maintainers. These people
have been accepted as new maintainer for Debian GNU/Linux within the
last week.
[...]
Anthony Towns <ajt@debian.org>
Anthony is going to package the personal proxy from
distributed.net - we don't have the source... He may adopt the
transproxy package, too.
Regards,
Joey
I never did adopt transproxy – apparently Adam Heath started fixing
bugs in it a few days later anyway, and it was later taken over by Bernd
Eckenfels (ifconfig upstream!) who’s maintained it ever since. Obviously I
did do other things instead, which brings us back to where we left off…
(The mails have always been sent with Ben's name attached) That mail was followed by another suggesting a phone conversation; unfortunately nobody seemed to notice the mail, at least until a year later (to the day!) when Joerg pointed out he was getting bounces form the BXA email address we'd been using... (Since then, based on the above mail, we've been recording notifications, but not passing them on; I sent a reply to the mails above indicating that, but didn't receive a response. There's been about 5000 notifications since then)From: Encryption Date: Fri, 23 Sep 2005 12:51:02 -0400 Subject: Addition to Debian Source Code updates Dear Mr. Collins, Your diligent reporting of updates to the Debian source code to the Bureau of Industry and Security has been an excellent example of perspicacity. However, you no longer need to do so per the following update to the EAR: [...]
Yesterday I was invited onto the group that administers the Debian bug tracking system. I can't decide whether to be intimidated or excited. There's a great deal to do: my first couple of major projects look set to be integrating some of the existing QA interfaces to release-critical bug tracking, and developing a tool to help us edit spam out of bug histories.There's a lot to be said for grabbing people at the point where they're still intimidated by what they're joining; sure there's a definite risk that they'll break something you'll have to clean up, but that's pretty easy to deal with, and well worth all the extra excitement and energy that comes with a little bit of nerves. I did a talk on debbugs a few years later, at the 2005 DebConf, at which point we managed to entice Pascal Hakim and Don Armstrong into signing up, if I'm remembering right. At the same time Colin rolled out his implementation of version tracking support for debbugs (which I'd specced up a while ago, and helped design, but cannily avoided actually coding). Shortly after, Pasc put together bug subscriptions, and these days Don's pretty much the primary maintainer of debbugs. How cool is that? Passing on release managership was a bit less fortuitous though; it's a big job, and it's not something that you can offer "patches" for, generally. So after a bit of cogitating on just how to do it, I went with an open recruitment call in March 2003, and then a bunch of practical assignments to get the volunteers used to what RM work actually entailed and to see whether they actually like it. The recruitment call was mostly focussed on all the negatives, half to avoid people volunteering to be RM for the power (to decide which release policy wins, to tell maintainers what to do, to drop packages, or to just decide what name/number the next release gets) instead of wanting to actually do the work to get the next release out and keep developers happy; and the other half was the theory that if you make a job look hard, technical, but not terribly risky, it starts looking interesting to the right kind of people. The assignments generally were two parters -- first to introduce some stuff about release management that they mightn't be familiar with, and the second a bunch of problems that needed resolving that'd use those skills. The first set was RC bug fixing, followed by working out why packages aren't getting into testing, followed by dealing with packages with mutual dependencies and removing packages. At some point that evolved into the testing scripts accepting "hints" from the release team as to what packages to try in combination, or which packages to force out of testing. That turned out pretty successful, with Steve Langasek, Colin Watson and Joey Hess becoming official release assistants in August, and Colin and Steve replacing me as RM in mid-2004. It was also pretty satisfying to see Andi Barth do some more release assistant recruiting in 2005 following much the same model, and indeed using much of my mail verbatim. You can't really ask for better than that, I figure.
hosts.allow and hosts.deny.parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_mapsin to:
parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,smtpd_access_mapsBy removing the relay_domains setting I was able to limit incoming mails to just the domains that are actually on the server. Problem solved? Not quite... I still have ~2500 mails waiting to be delivered to update.ressukka.net (and various other removed hosts). Luckily there are tools out there to remove certain mails from the postfix queue. By (ab)using the script mentioned in Postfix: The definitive guide (download script) I was able to easily clear the offending mails from the queue. The trick was to use a regexp as the mail address for the script.
./pfdel.pl .\*@update.ressukka.netIn any other script I would call this a security problem, but here it's a feature =)
As some people may know, I'm a member of the Debian testing security team. As well as tracking all CVE IDs with which packages they affect, we also keep a list of known embedded code copies. Embedded code copies are a bad thing, as they cause no end of problems for the security teams.
for I in find /mirror/debian/pool/ -name *all.deb ; do clamscan -i -d smarty.ndb --deb --tempdir=/home/maulkin --no-summary \ --max-space=1024m --stdout $I >> /home/maulkin/smarty.log; done;Step 3??? Step 4PROFIT!!!

Woody to Buzz: That wasn't flying! That was... falling with style! Woody: Buzz, could you give me a hand here? [Buzz throws his broken arm at Woody] Sid (the boy who destroys toys): I want to ride the pony. Alien #1: A stranger. Alien #2: From the outside. All: Oooooooooooooooh.Now of course that's all of Part One and out of context, but well, here you are. In other "news" I like how portable some applications are. I was able to get Final Fantasy VII running on Isabel's Windows Tablet PC just like on my Linux notebook, with the same emulator (epsxe), the same memory cards and even the quick saves were working as expected. Wow. A pity that its authors won't release the source code albeit the source of the plugins needed anyway actually is public. It's using some kind of Gtk 1.x linked in statically, so it's horrible usability wise. With source code that could have been improved.
You can now vote on the 2008, Webware 100. This is an annual awards program where users get to vote on their favorite Web 2.0 sites. There are some really good finalists this year, so don’t forget to vote for your favorite. Will WordPress win their category this year as well?
#bzr a link to this post by Elijah
Newren, where one comment said:
There’s one thing I keep telling people though: Learning git is like learning vi — it’s different from the VCS/text editors you know on a fundamental level. But once you’ve overcome that problem, you’ll not want to go back. Ever.Which pretty much matched the idea I had of git. In the summer after my first year at Uni, I told myself: “OK, let’s learn vim.” And I think it’s one of the decisions that has paid off the most. Like learning to touch type. Reading the above quoted paragraph made more urgent the doubts I had been sporadically having during the past year: maybe I would have been better served by choosing Git instead of Bzr in the first place. What would be my life like if I had stayed with joe? 3. More about Git So yesterday I decided to spend a couple hours (or three) getting the feel of it, trying to find cool stuff. Until now, whenever I had had the need to use git, I just sticked to the bare minimum, without diving into it. I’m going to mention only two examples of the cool stuff I found. And I’ll confirm that, in my opinion, the comparison to vi really holds.
git log -S. It allows you to show entries whose
diff contains the given string (or pattern, with --pickaxe-regex).
I was missing bzr’s log --message, but it was obviously there, as
log --grep.git add -p makes those parts no longer appear in your
git diff, which is... whoa.
I like to review before committing a lot. However, with other VCSen
I always find myself reviewing/glancing at the same parts over and
over. So having a way to review what’s pending or WIP is something
to die for. And I know even before getting addicted to it!git-fast-import. One of the bzr authors, Ian Clatworthy, has written
bzr-fastimport, and he tells me a simple exporter would not be very
hard to write, and that he may even put some work into it.
Also, I’m (still?) not very sold with some of the git standard practice
of throwing away parts of your history regularly. We’ll see about that.
Finally, one feature of bzr I would love to see in git is indented
formatting for non-mainline revisions in log output (for git, in
--topo-order mode only). This is most needed when you’re not rewriting
your history for submission to mainline, I’ll reckon. Compare
—date-order to —topo-sort to
—topo-sort with —indent.
Update: For this —indent thing, one could use tig, which after
pressing g offers a sort of tree view in a curses-based interfaces.
Somebody had mentioned this on IRC, and Peter Baumann kindly mentioned
again over e-mail after reading this entry.
It seems fashionable for people to finish their doctorates at their moment, and on Monday I (almost) joined the herd. The outcome of my defence was that they'd like a couple of extra experiments done, so it's back to the lab for a fortnight, new credit cards for everyone[1] and cab it to the Gold Club[2].
It’s here!
In contrary to the estimated delivery time of about ten weeks, my
Brompton arrived at Velofix at Saturday the 16th of February after
only three weeks. The orange color is much nicer than the apple green
I initially favourited from what I saw in the catalouge and the axle
dynamo also proved to be a good idea, so I’m really happy about my
choice.
I used the Brompton to go to work everyday the last two weeks, even
when it’s snowing like today:
Although I’m starting slowly and taking the bus (hey, it’s a
folding bike! :-) for the steepest parts (either from Am
B rtli to Waidbadstrasse or Gsteigstrasse)… I even managed to fold
the bike although I saw the bus already coming around the corner when
I still was in the saddle. That was the day I was at work in less then
10 minutes — Perfect timing. :-)
Since the local H ngg bus (route 38) only makes it’s round every 30
minutes, with the bike I’m now much more flexible and don’t have to
hurry in the morning to catch the bus. (OTOH I had to notice that
“being more flexible” doesn’t mean “having more time”… :-)
I also use it on the campus for visits in other buildings. Although
there are mostly stairs between the different levels of the campus,
it’s no problem with the Brompton since it’s easy to carry, even if
not folded. It’s much more comfortable than daduke’s little kickboard scooter whose
hard wheels don’t feel healthy for bones and especially knees on ETH
H nggerberg’s paths made out of washed-out concrete. Air tyres and
rear suspension are much better… :-)
Regarding the choice of gears: The MountainDrive would surely be
helpful in hilly Z rich, especially since my fitness isn’t the best
one at the moment, but 6 ears are ok, too, and will be even more ok as
soon as my fitness gets better. The slower transmission wasn’t a bad
choice either, although a wider transmission range would have been
better.
Next.