Search Results: "bod"

11 April 2007

Erich Schubert: System init - part #2

Yesterday, I wrote about our init actually being /bin/sh, since all sysvinit does it start a single shell script. Today, I'm going a bit into how services are brought up with sysv-style init. I won't be writing much about runlevels, since most users will not make use of multiple runlevels anyway. So what does a typical init script in /etc/init.d do? If you want to find out yourself, consider looking at /etc/init.d/skeleton, which is a template for init scripts. A modern init script should (as required by the LSB) start with a formatted comment with metadata such as dependencies and description. This is already trying to address some shortcomings of sysv-style init, but no actual code. The first thing most init scripts do is to check if their application is actually still installed. Init scripts are sometimes created by users, or are not automatically uninstalled since being treated as 'configuration files'; so it occurs often that the init script is still around even when the service was uninstalled. So they test if they're installed and executable. Next they probably read a configuration file, usually named /etc/default/packagename, with user settings (people used to do such changes in the init script itself, but for upgrading it proved to be a lot better to put all settings the user might want to modify there). The third step is to do the requested user action, which usually is one of 'start', 'stop', 'reload' and 'restart'. Some init scripts also have extra actions such as 'status'; not all init scripts support 'reload'. Doing such an action usually means to print out a status message and launching the service in the background (usually using the 'start-stop-daemon' daemon helper, which offers functionality to e.g. record the process PID in a file or forcing applications into the background that don't do so on their own), or locating the service (usually via a PID file, again this is commonly done using start-stop-daemon) and reloading or stopping it. Upon success, they again print a status message. An init script could be as simple as:
#!/bin/sh
if [ "$1" = "start" ]; then
  /usr/local/sbin/mycheapdaemon &
fi
There are many good reasons not to do it that way, but it will work. Some characteristics of sysv-style init scripts: Keep your eyes open for the next part of this series, where I'll show how some init systems improve on these issues.

Erich Schubert: System init - part #2

Yesterday, I wrote about our init actually being /bin/sh, since all sysvinit does it start a single shell script.Today, I'm going a bit into how services are brought up with sysv-style init. I won't be writing much about runlevels, since most users will not make use of multiple runlevels anyway.So what does a typical init script in /etc/init.d do?If you want to find out yourself, consider looking at /etc/init.d/skeleton, which is a template for init scripts.A modern init script should (as required by the LSB) start with a formatted comment with metadata such as dependencies and description. This is already trying to address some shortcomings of sysv-style init, but no actual code.The first thing most init scripts do is to check if their application is actually still installed. Init scripts are sometimes created by users, or are not automatically uninstalled since being treated as 'configuration files'; so it occurs often that the init script is still around even when the service was uninstalled. So they test if they're installed and executable.Next they probably read a configuration file, usually named /etc/default/packagename, with user settings (people used to do such changes in the init script itself, but for upgrading it proved to be a lot better to put all settings the user might want to modify there).The third step is to do the requested user action, which usually is one of 'start', 'stop', 'reload' and 'restart'. Some init scripts also have extra actions such as 'status'; not all init scripts support 'reload'. Doing such an action usually means to print out a status message and launching the service in the background (usually using the 'start-stop-daemon' daemon helper, which offers functionality to e.g. record the process PID in a file or forcing applications into the background that don't do so on their own), or locating the service (usually via a PID file, again this is commonly done using start-stop-daemon) and reloading or stopping it. Upon success, they again print a status message.An init script could be as simple as:
#!/bin/sh
if [ "$1" = "start" ]; then
  /usr/local/sbin/mycheapdaemon &
fi
There are many good reasons not to do it that way, but it will work.Some characteristics of sysv-style init scripts: Keep your eyes open for the next part of this series, where I'll show how some init systems improve on these issues.[Update: next part]

10 April 2007

Gunnar Wolf: Etch is done! Sarge is done once again! Sam rules! Yay for the weekend!

Wow, what a wonderful weekend was this for Debian. And, yet again, I managed to miss the live announcement and party on IRC.
So... We got a shiny, new, French DPL. Just after that, we got one last release for Sarge, and right away we got a stable Etch - Who says having a new DPL cannot speed up things? ;-) Anyway... I don't remember where I started the meme when Sarge was released (it was not on my blog, it seems)... But here it goes again:
What were you doing at...
Etch release? Having a nice time with Nadezhda, walking around this broken and dear city in my last day of vacations.
Sarge release? At my psychologist. Yes, Sarge drove us all nuts.
Woody release? Sitting at a lent workstation at Departamento de Seguridad en C mputo in my University. Of course, the announcement was broadcasted right away to everybody around me ;-) I was in NM by then, and was a bit disappointed because my work didn't appear in the release.
Potato release? Don't know... I was not yet involved with Debian by then.
[Update]: Thanks to Wouter, my old meme-starting message appeared - is he more patient than I am, or just more organized? :-) Anyway, boo for Jaws breaking old URLs (I upgraded 0.4->0.5->0.6->0.7 since then)

9 April 2007

Erich Schubert: Renaming applications

You probably have read it alread Gaim will be renamed to Pidgin. Most likely because of AOL being unhappy with them using AIM in their name (although they support a dozen other messengers as well; getting rid of AIM in the name was also 'wanted' by the Gaim developers I guess). However, such software renames eventually cause some problems. For example, will the API also be renamed? Will libgaim become libpidgin? Will the DBus interfaces change their name? A dozen of applications might be affected by that, including the popular AdiumX messenger for OSX. (One of the prettiest I've seen so far, btw.) Other examples of such renames (and the problems caused by that) is the Mozilla chaos. Mozilla doens't allow to distribute modified versions of Firefox or Thunderbird under these names, so Debian has to replace the names (though most of our patches at some point are adopted by upstream, or they'd be okay with them, Debian also has the requirement that our users must be able to do their own modifications!). This is why etch just shipped with "Iceweasel" and "Icedove" instead. However some web sites don't test for the browsers "Gecko" version, and for example Google Groups, when trying to set the profile image, tells me I need to run Firefox or Internet Explorer. Though I'm pretty sure the function would just work fine with both Epiphany (my primary browser) and Iceweasel. The transition from "cdrecord" to "wodim" was a bit smoother. On the one hand, many application were already expecting functionality not present in the "official" cdrecord (and yes, Joerg, I know that your opinion might differ on that point - I don't care, nor does anybody else I know). On the other hand, it mostly affects programs included in the distribution, so they can be easily handled. There aren't random websites testing for it either, and custom scripts written by users can probably handled via a wrapper (this is much more difficult for libraries I guess, or the DBus API of Gaim. Fortunately for Gaim, these interfaces aren't used much, so it can be solved with a simple search and replace and recompilation in affected applications). I think when more distributions switch from Firefox to Iceweasel because of realizing that it might be important to some of their users and recommend Epiphany because of it's smoother user interface, we might also see less websites doing incorrect browser capability detection.

8 April 2007

Nacho Barrientos Arias: Thanks

13:55 -!- aba changed the topic of #debian-release to: Done. Superb guys! Thanks again to everybody who made it possible, release team, translators, bug reporters, Debian CD, ftp team, QA team,… and to everyone who is part of this wonderful project called Debian! See you next weekend at Dudesconf! By the way, the #debian-release’s topic change notice was stolen from Steve’s blog.

Steve McIntyre: And relax

13:55 -!- aba changed the topic of #debian-release to: Done. Thanks to everyone - the DDs, the release team, the ftpmaster, the CD testers, Joey, Frans and everybody else. Time to P-A-R-T-Y!

Josselin Mouette: Everybody loves the Debian cabal - 5: You should have voted for me!

5 April 2007

Gunnar Wolf: Won a book for YAPC::Europe!

Wow!
I got a mail from the YAPC::Europe organizers telling me I won a book for registering early and sending in a submission (as I have previously told you). I was even more surprised to find out I am one out of two lucky winners! So my new book is Es lebe der Zentralfriedhof.
No news yet on whether my talk (Integrating Perl in a wider distribution: The Debian pkg-perl group) will be accepted... But this kind of incentive does push me towards attending even if I am not accepted - Of course, it depends on the University sending me there. But anyway, I'm a step closer to Vienna. Somebody wants to join over there?
Oh, and by the way: On my previous posting on this topic I linked to my conference proposal URL. Little did I know that this URL is private, accessible only to the Academic Committee and me. Yes, different from what I'm used to... but that's the way it works there.

Adam Rosi-Kessel: Bad Bicycle News

I used to be a hardcore daily bike commuter. (By “hardcore,” I mean I commuted 20-30 miles roundtrip every day in Chicago in January.) Lately, I’ve gotten lazy, especially since I now live about thirty seconds by foot from a train station that takes me to a spot about thirty seconds by foot from my job. Also, since I’m now supporting two people (including my nearly two-year-old daughter), I’m a little more reluctant to get myself killed. I was reminded of the perils of biking in Boston this afternoon when a 22-year old bicyclist was killed by a dump truck in an area where I used to ride daily:
The bicyclist, a 22-year-old man from Halifax, was riding between two lanes of traffic on Huntington Avenue when he was clipped by a taxicab near Northeastern University at about 2:30 p.m., police said. After being clipped by the cab, the bicyclist was run over by a McCauley and Sons Co. dump truck, police said.
When I was a bike commuter, I was fairly cavalier about this sort of incident. I realize it’s still fairly rare and biking may not be any more dangerous than driving. But we still see these events in Boston fairly regularly. I don’t think it can be fixed fully by better driver education/behavior (or better bicyclist education/behavior). There are just too many streets that are poorly designed and naturally hazardous. On a related note, Nat mentioned this nasty run-in during a recent Critical Mass in San Francisco (the article is obviously from the driver’s point of view — there may be another angle on this):
Susan Ferrando, her husband, their two children and three preteens had come to San Francisco from Redwood City to celebrate the birthday of Ferrando’s 11-year-old daughter. They went to Japantown, where they enjoyed shopping and taking in the blooming cherry blossoms. Things took a turn for the worse at about 9 p.m., when the family was leaving Japantown — just as the party of about 3,000 bikers was winding down its monthly red-lights-be-damned ride through the city. Suddenly, Ferrando said, her car was surrounded by hundreds of cyclists. Not being from San Francisco, Ferrando thought she might have inadvertently crossed paths with a bicycle race and couldn’t figure out why the police, who she had just passed, hadn’t warned her. Confusion, however, quickly turned to terror, she said, when the swarming cyclists began wildly circling around and then running into the sides of her Toyota van. Filled with panic, Ferrando said, she started inching forward until coming to a stop at Post and Gough streets, where she was surrounded by bikers on all sides. A biker in front blocked her as another biker began pounding on the windshield. Another was pounding on her window. Another pounded the other side. “It seemed like they were using their bikes as weapons,” Ferrando said. One of the bikers then threw his bike — shattering the rear window and terrifying the young girls inside. All the while, Ferrando was screaming, “There are children in this car! There are children in this car!” …
Update 4/5/2007: the 22-year-old bicyclist had a myspace page.

2 April 2007

Steve Kemp: While we live according to race, colour, or creed

I'm back from Vienna (Ask Alfie for picture(s) of me wearing my partner's hat ..!) with a new need to update my killfile. I use procmail to filter my mail, and my current setup looks like this:
# If the sender is in the killfile then drop the mail into killfile
:0:
# grep for it in the killfile
* ? grep -i  formail -rtzxTo:  $HOME/.procmail_killfile
/dev/null
This invokes formmail to get the sender of each incoming message and then drops the mail into /dev/null if the message is from somebody whos email address is contained in ~/.procmail_killfile - there are two problems with this approach: Any improved recipes are greatfully received. And that's all I'm going to say about Debian communications for today.

29 March 2007

MJ Ray: Google Bugs

A relatively recent addition to the Google range is Google Docs. I'll be testing it shortly, but I see it has already suffered google's usual security/privacy bugs Apart from encouraging the larger Atom feed format, dropping RDF support and unreliable alternatives to its eyetests, Blogger is one of Google's best services. The basic service seems to work in a half-decent manner. Of course, it still has bugs and that let someone post a hoax Google news release Google's search results are still unstable: here's a consultant spotting lots of turbulance in the results. If Google's actions were unfair and harmed your performance, you can't touch them, as kinderstart discovered (but that ruling might be an interesting reference for other ratings sites, so there's a silver lining). The site complains constantly that I don't let it rampage through my browser and I haven't downloaded the latest from Adobe. It's a bit less annoying now that ytplay is available, but it shows that Google doesn't care much for free software support. An interesting twist has been Viacom suing Google for a billion dollars and calling them all sorts of names. (Beware bias in the BBC reporting on this, as BBC just signed up for Google-YouTube [BBC] - is there a monopoly that the BBC won't befriend?) Adwords and adsense looks like some of Google's top mass-market money-makers. I have mixed reports about them, including some of my customers that are happy to use them, and others that get results like this commenter at Problogger which suggests that adsense referrals maybe don't always report accurately. There is also a privacy/trust problem with having one company seeing so much of the world's searches. This was the basis for a recent Ask.com ad campaign (nice idea, shame about the microsite's poor accessibility and various other things - it gave one Google-worker a good laugh and got better commentary from Susan Hallam Communications). Privacy bodies backed Google's step towards allowing user privacy [BBC] but there's more that should be done. That's enough for now. I've got some more positive news which I'll post along with the Docs review.

Matthew Garrett

I'm not really sure which I find more disappointing - this, this or this.

The Ubuntu Code of Conduct is something that's designed to ensure two things. Firstly, and perhaps most obviously, that discussions don't end up bogged down in personal abuse with no useful conclusions being drawn. Secondly, and perhaps more subtly, to ensure that potential contributors aren't put off by an atmosphere of perceived hostility.

The second point has been most commonly raised with respect to women in computing (perhaps most notably by the FLOSSPOLS findings), but it's not limited to that. One of the reasons I'm not involved with Debian nowadays is the atmosphere on the mailing lists[1]. If you're about to make something that you expect to be a controversial point, realising that the likely result is going to be a certain number of responses implying that holding that opinion is stupid is a pretty strong incentive to avoid posting in the first place. Suppressing the expression of thoughts isn't beneficial, even if you're not doing so deliberately.

Now, the obvious response to this is to accuse the CoC of enforcing some sort of Tellytubby land where people are nice to each other and it's all a mutual love-in. Which isn't, in fact, the case. Disagreeing with people is fine, but disagreeing in a factual and precise manner is significantly more useful than disagreeing in a manner that gives the strong impression that it would have been more helpful if the original poster had died rather than sending the mail in the first place. You're not even obliged to behave in a friendly way towards people - just avoid behaving in a clearly unfriendly way. A good rule of thumb is probably that if you think it would potentially result in a complaint to your boss if you did it in a moderately large company, then doing it on an Ubuntu mailing list is a bad plan.

So, the original point. The joke itself implies that there's no way to know why women behave the way they do, even to the point where a (presumably) omniscient god has no idea. Unsurprisingly, telling a large body of potential contributors that their behaviour is irrational[2] isn't a great way making them feel like their contributions are welcomed. But, oh no! It's actually ok - we're supposed to replace "women" with "newbs", because suggesting that basically your entire pool of potential contributors that their behaviour is irrational is much less bad.

Cough.

We then get to Caroline's post, an expression of frustration about an aspect of life. It contains the word "Fuck", which doesn't seem unreasonable in context. There's then a complaint from someone claiming that it's offensive, which means we have to consider a few things. Firstly, is the author of the complaint actually offended, or just attempting to claim that there's hypocrisy involved? Given the context, I'd suspect the latter. Arguably this isn't really the point, though - the issue isn't whether a given person is offended, it's whether it'll offend someone who would otherwise potentially make a valuable member of the community. Right now, I'd suspect that we (as a community) don't really object to it strongly. Google suggests that swearing isn't unheard of on the lists. While swearing in the context of a personal attack is pretty clearly a violation of the CoC[3], people don't seem to be objecting to it in general.

So, is it unacceptable to swear within the Ubuntu community? Right now, I'd say that (in appropriate contexts) it's not a problem. If a moderate number of people claim that the current degree of swearing dissuades them from being involved, then it may become a problem. Accusing someone of hypocrisy for swearing (not clearly a CoC issue, especially in context) after they claimed that a sexist joke might be, well, offensive? Yeah, I'd say that that one's pretty clearly unacceptable. Telling people that it's pretty funny and that they're wrong to be offended? History suggests that it's not a good plan. If you think someone's wrong to be offended, then a good first step is trying to figure out why rather than just dismissing them.

Of course, there's also the entirely secondary issue of what the roles of planet sites in the community are. Personally, I like to think of them as opportunities to see what people are really like rather than being reflections of people's behaviours on project mailing lists[4]. From that point of view, I think that the bounds of acceptable behaviour should be a little more liberal. If people disagree, that's not a problem and things can change - but expecting people to change their behaviour before there's any sort of general opinion that it's unacceptable isn't ok.

Which leaves open the question of whether posting sexist jokes to mailing lists is on the acceptable side of the CoC[5] or not. I'd be surprised if the ubuntu-uk community genuinely thought so, but if they do then there are pretty clearly issues that we need to solve. As far as I'm concerned, justifying that sort of behaviour has no place in Ubuntu.

[1] Yes, I'm aware that there's a certain degree of irony there
[2] For the record, yes, I do believe that women often behave in irrational ways. So do men.
[3] I find it surprisingly hard not to write that as COCK. Too much Jerkcity
[4] Which is, to an extent, why this journal isn't on Planet Ubuntu - there'd be potential for things I said to be mistaken for some sort of official Ubuntu position, which would end up limiting what I could say, which would kind of ruin the point
[5] Must... resist... temptation...

Gerfried Fuchs: Rhonda blogs

I think it's time to start blogging more often about this topic, and fill this section a bit more. I mean, Mermaids was a long time ago... And debconf in Mexico with my first try on skirts, getting rid of my beard and dying my hairs red is history in the meantime, too. So, what has happened in between... Well, there was of course the Regenbogenparade which I attended and which was nice. I even ordered a special t-shirt from a shop in Australia that I totally love. In summer I met up in Bratislava with a longtime friend from a MUD I played way back, and enjoyed running around in a skirt there, too. Gladly it was a sunny day. It was though... people back here in Vienna looked more awkward at me than in Bratislava. At least that was my impression... Had been to Extremadura for the i18n meeting which was quite nice. It was quite productive, even though I have to admit that I haven't done much on that front since. Even in Spain people didn't look that strange at my skirt as over here in Austria... At our company's Christmas party I got into a talk with a work colleague about the topic and she informed me that a former working colleague of us is starting with hormone treatment after the year change and if I'd fancy a meeting with him. I was quite happy about that offer so we arranged a meeting on December 23rd. It was a bit strange at first to address him as he, and we didn't know how to start talking because said working colleague was late, but after a while we talked about various things and even were finished with the more interesting topics when she finally appeared. We arranged to visit the next Trans-X meeting after the year change.
I left them for leaving home, but I wasn't able to catch my bus on time—the subway had serious problems. Well, I thought I might spend the night in the Flex so I called another working colleague who usually hangs out there about what was going on that evening, and interestingly he told me it was Gay Heaven night. I stopped believing in coincidence long ago... Anyway, was a nice evening all in all, they had a Christmas rabbit handing out "I love you" stamps with pink ink-pads. :) The Trans-X meeting wasn't too bad. It was some discussions about various topics. After a while my first shyness dropped a bit and I started to join in the discussion at some points. After the first started to leave I had some more direct talks with two of the women from there, one of them had mostly the same trip home as me so we talked on in the subway. A week later they had set a transgender weekend—no wonder, it was the weekend of the Rosenball. They were meeting in a cafe on Friday and I joined them, a bit less shy now that I at least knew some of the faces. Maria was quite ill and was sitting in her jacket within the cafe, shivering like hell... But all in all it was a nice meeting too, got to know some more nice people. I was a bit lazy from there on, didn't join another meeting... But another working colleague did invite me to the carnival party of his sister. I thought I could try a bit more than before, in the disguise of the carnival party, so I used a bra my former wife left behind, filled it with some socks, and put up some eye makeup (quite discreet, I hate overdone makeup already on natural females...) The light there wasn't the best, so they just saw my tall body at first. It took them a while to even notice the skirt, and only after I put off my long-sleeve they haven't noticed my breast. But well, I don't really blame them, my working colleague has announced me as a he, and given the low lights it's not too bad. Though, after the host noticed my breasts he asked if he could touch them and I even received a quite nice kiss from him. :D I stumbled upon the Gaia TG Guild on Gaia Online—a quite interesting web-based community. In general Gaia is filled with mostly kids, many of them immature, not able to spell and considering that even cool, but there are some quite special guilds that are lots of fun. But still, when I stumbled upon the TG Guild I was in awe of that such a thing could exist there. What I read made me feel totally happy and more confident on the path I'm having ahead of me. Last week I finally had been to an Trans-X meeting again, and Maria showed some quite interesting reportages about transsexual people—including one that was on TV just the day before about a 14 year old girl who is already on hormone treatment and has the absolute support from her family since she was 4 and confronted them with cutting "it" off when they don't allow her to wear skirts when going out, too. All the best to you, Kim! I so envy your strength... I'm sorry about the length of this entry—but I'm sick of people who tell me that I'm only playing it, or that I would hide... And I also see it as a chance to document my path for myself. I promise—the next entries will be more often and thus shorter.

27 March 2007

Adrian von Bidder: Samsung D900

David, after the demise of the little joystick of my previous phone (Sony Ericsson T610), I opted for the D900 (at CHF 21.-- plus 2 years, quite a good offer IMHO.) The hardware is very slick, though the display is disappointingly dark if you use the phone outside in bright light (Look at Casio's Exilim cameras for a good example of how a display can be readable even in direct sunlight.) Since I'm using the device as a phone only (and write less than 5 messages per month, usually), I still think it's a nice thing, but... Would I buy that phone again? I don't know. The price was good, and, again, it's still a very slick looking phone. But the firmware designers should be locked up for a few years and forced to write their code with the built in editor or someting like that. But if you expect anything other than to be able to call people over this device: don't go near it. I haven't relly looked at any other phones when I bought it, so I can't compare.

Axel Beckert: New virtual home

There were quite a lot of small changes in my personal e-mail, web server and DNS infrastructure during the last months. While for more than ten years all my mails came together on a Linux account at the Students Representatives of Computer Science (German: Fachschaftsrat Informatik, short: FS Info) at the University of Saarland and all but one domain was hosted at my former employer, now nearly everything (including this blog) has moved to a Hetzner root server run by me and some friends and running Debian Sarge for AMD64. Most of these moves happend divided in small steps during January and February this year. Only one move happend a little earlier than expected: Without any notice all external mail to my FS Info account got lost in a black hole one hop in front of the FS Info mail server. It looks like the RBG of the Dept. of CS at the University of Saarland didn’t like my face —eh— mails anymore and just dropped them. No bounces, no notices. Not that I knew them as friendly and kind, but blackholing active e-mail accounts without notice leads to dismissal at other places. They should really go and hear alphascorpii’s BOFH talk. So my long-time e-mail address abe@fsinfo.cs.uni-sb.de is no more valid and any mail there won’t get read or answered. But I don’t mind if you send any junk there, it’s not my job anymore. For luck the hoster of my deuxchevaux.org domain, Internett, which I used for all non-university e-mail, changed the forward within a good hour, so I only lost incoming mails of about one and a half day (which was the time until I noticed the blackholing), namely most mails written to all of my addresses at 30th and 31st of January 2007. If you wrote me around that time and miss the answers, you now know why. The few people I expected mail from, already have been contacted. So for the future, write emails only to abe@ either deuxchevaux.org or — if you can’t remember how to spell that (no, you’re not the only one ;-) — noone.org (“no one” as in “nobody”, not “no. one” as in “the best” ;-) And so since then none of my coworkers can make fun of me because I don’t have root on the box where my mail is received. ;-) One of the moves also gave me the possibility to get “my own” Jabber server, so the time with those two jabber addresses (abe@jabber.noxa.de and abe@amessage.de), where usually at least one had some problems with some gateways are also over. If you want to contact me using Jabber, use abe@noone.org, equal to my easier to remember e-mail address. ;-) So there’s still left to move: web, mail and DNS of deuxchevaux.org and beckert.at (domain of my parents) and my old web pages on fsinfo.cs.uni-sb.de as well as Planet Symlink. And of course the redesign of my web pages, which I’ve planned since more than a half decade… ;-) The infrastructure in my real-life home also changed: My gateway to the world is now a 266 MHz MIPS based ASUS WL500g Premium (which I named “pluriel” after the multifunctional Citroën C3 Pluriel) running FreeWRT 1.0.1 which replaced tryane, an as noisy (power supply fan) as compact Unisys Aquanta CP mini-desktop with a passively cooled 200 MHz Pentium MMX.

26 March 2007

Jose Carlos Garcia Sogo: Do you have a multitask enhaced brain?

Who of us, computer literate people, is not used to multitasking when working? We are bombed with information from different sources when in front of computer and we try to get the info as soon as it is produced. But this is no the only environment when you made things in a multitask way: I am sure you have tried to cook while you clean or you read Slashdot at the same time, however not the way your mother does (it is not that my mother reads Slashdot, though), who puts on the fire something that is long to be cooked, and then goes for house cleaning. You try to do that almost at the same time in realtime: pity you don't have a core duo brain and body. The problem is that all we think that this way we perform more: "hey! we are doing a lot of stuff at the same time!" You reply the email as soon as it arrives, though you were writing that report your boss asked you in about that issue, and at the same time you can even drink a coffee, and IM your friend about which movie are you going to watch tonight. But this article in New York Times can help you to see that this is not true. As any CPU out there is penalized when multitasking, as it has to change context, the same happens to us, but for our brain that gap is longer. It is not a good idea to try to multitask and at the end not achieve any of the goals we made. Perhaps this is the reason that can explain Debian Etch release delay. Stop multitasking!

John Goerzen: Some more git, mercurial, and darcs

Ted Ts'o had an interesting post about git recently. He has a lot of good thoughts on the subject. He comments that he wound up using git because it's so Unixy (with its small commands to do things), that he sees the git community developing innovations faster than Mercurial, and that they are working to improve the documentation and user interface problems.

The being so Unixy is a double-edged sword. On the one hand, it can make it easy to write shell scripts to extend Git. That itself can be a double-edged sword (think filename quoting and the like). But one doesn't have to use the shell. The other downside is that being Unixy makes it hard to run on platforms that aren't, such as Windows. So if one is working on Unix-only software (X, the kernel, e2fsprogs, etc.), there's no need to care about it. But if you're a person like me, who has Windows users using my software, or a large organization like Mozilla, it's maybe a showstopper. Of course, workarounds exist (cygwin, git-cvsserver), but none of them are particularly nice.

I think that both Git and Mercurial are working to address their shortcomings. I've chosen hg for now because it does what I need now. And because there are very nice tools to convert hg to git, and vice-versa. So if Ted's right, and a year from now git is easier to use, better documented, more featureful, and runs well on Windows, it won't be that hard to switch over and preserve history. Ted's the sort of person that usually is right, so maybe I should starting looking at hg2git right now

So following up on my bzr post, here are the things that Mercurial is great at right now:

  1. Performance. Approximately even with git, occasionally faster. Nobody else can compete with these two right now.
  2. Simplicity. It's almost as easy to get started as with darcs, and with recent patches, will be even closer in the future.
  3. Lots of ways to interact. You can send hg bundles, which preserve all metadata (parents, hash, authors, etc), or you can send git-format email patches, or you can push and pull between repos. The email tools will shortly be able to automatically detect what patches to send. Your choice. git doesn't seem to support lossless emailing of bundles like this, and bzr doesn't make emailing of anything easy by default.
  4. Merging. hg seems to be able to automatically resolve more merge conflicts than anything else, and when it can't automatically resolve them, has a nicely configurable system to let you use your choice of tool to manually resolve them.
  5. Community. The Mercurial community is open and inviting, and open to new/different ideas. It seems similar to Darcs in that respect, and somewhat dissimilar to git.
  6. Rebase does not trash history like it does (barring undocumented manual intervention) in git.


I've written before about Darcs, so I won't duplicate that here.

Peter Van Eynde: 'The Trap'

Yesterday I went to bed too late because I was captivated by the last episode of The Trap: What Happened to Our Dream of Freedom, a series by Adam Curtis. Even since I saw Pandora's Box I've been an avid viewer of his work. The Trap talks about what freedom is, and this morning I realised that many things he talked about can be seen in the OSS world, and more specifically in Debian. I'm certain Biella can write something much better (and shorter) and I'm still thinking about it, but I wanted to write some stuff down.
One of the main ideas is the modern western culture has been formed to appeal for people thinking like a model in the 'prisoners dilemma': they only case to further themselves. This lead to the idea that life (not only the economy) should be like a free market, and that people should be 'free' to choose what they liked. Of course in practice the rich are 'free' to send their kids to better schools then the poor who are 'free' but constrained to send their kids to worse schools. The program called this negative freedom: there is constrained freedom. Think of it as Microsoft's vision of freedom, their 'freedom to innovate' (which they don't), your freedom to select which of the N licences of vista is good enough for you. This limited freedom is more stable then the positive freedom that is actual seeking true freedom, without constraints. This positive freedom was then developed by Satre, Fanon and Shariati into the idea that true freedom could only be gained by armed struggle, to gain freedom but also an identity that transcends the simple individual.
The whole idea of the two freedoms was described by Isaiah Berlin and he also had the idea that freedom can only be gained by limiting the power of the state over the individual, otherwise both concepts of freedom would become tyrannical because the powers that be would decide what freedom is, and then suppress anybody that does not agree with that idea. Examples are the communists in the USSR, but also how the Americans turned to torture, imprisonment without tribunal to 'liberate the Iraqi people'. Or older still the Reign of Terror during the French revolution.
All of this has some relevance to OSS and Debian in particular. Don't we search freedom from constraints (licences, absence of source)? Don't we want a revolution in the use of computers? Are we not using disruptive means to get it? The introduction of a samba file-server in a pure MS environment by a disgruntled admin who just wants stuff to work could be seen as being almost a terrorist method of working. Not that we want to terrorise the population, but make them aware that an alternative exists. And this to chance the system. Sometimes the whole mindset does seem to be a little too much confrontational, almost towards having a real conflict. Just think about the many references that some disaster should wipe out the Seattle area. Are we not at risk of becoming tyrannical in many ways? Ignoring any Debian discussions, there is the whole FreeBSD/OpenBSD split, people complaining that wikipedia is removing contents the consider valuable, projects refusing to create howto's and introductions to keep the newbies away etc. OOS does seem to have a tendency to become tyrannical in some aspects. Not that this is always bad, see the benevolent dictators handling the Linux kernel or python.
If I understand the idea's correctly it means that even if we want freedom, from the moment we start using the powers of the project to limit somebody we start the slide towards being oppressive and tyrannical. Somehow I fear that all this will lead to a lot of reading and thinking...

23 March 2007

John Goerzen: bzr, again

I've talked a lot lately about different VCSs.

I got some interesting comments in reply to my most recent post. One person took issue with my complaint that nobody really understood how to specify a revision to git format-patch, and proceeded to issue an incorrect suggestion. And a couple of people complained about my comments about bzr, which generally came down to the released version of bzr didn't have anything compelling and also didn't support tags.

So I went into #bzr, asked them what bzr has that git, Mercurial, and darcs don't. And gave bzr the benefit of the doubt that 0.15 will be out soon and will be stable. What I got back were these general items:

  1. Renaming of directories (not in hg, git)
  2. 2-way sync with Subversion (not in hg, darcs)
  3. Checkouts (not in any others by default)
  4. No server-side push requirement


Let's look at these in more detail.

1. Renaming of directories

All of them can rename files and (excepting git) completely accurately track back the file's history. But consider this: if person A commits a change to branch A that adds a file, and person B then renames the directory that the file is in on his branch, will a merge cause person A's file to appear in the new directory name? In darcs and bzr, yes. In Mercurial and git, no.

So yes, this is a nice thing. But I have never actually had this situation crop up in practice, and even if it did, could be trivially remedied. I would say that for me, I don't really care.

[Update: Current stable releases of Mercurial can do this too. I'm not quite sure how, but it does work. So git is the only one that can't do that.]

2. 2-way sync with Subversion

This is a really nice feature and is present in both git and bzr. I haven't tested it either place, but if it works as advertised -- and properly supports tracking multiple related svn branches and merges -- would be slick. That was enough to make me consider using git, but in retrospect, I so rarely interact with people using svn that it is not that big a deal to me.

Still, for those that have to work with svn users, this feature in bzr and git could be a big one.

Better yet would be to get all those svn holdouts over to DVCS.

3. Checkouts

A bzr checkout is basically a way to make local commits be pushed to the remote repo immediately, as with svn. This is of no utility to me, though I can see some may have a use for it. But it can be done with hg hooks and probably approximated with scripting in others.

4. No server-side process necessary for pushing repos

bzr has built-in support to push to a server that has sftp only, and doesn't require a copy of itself on the server. While I believe that none of the other three have that, it is possible to rsync (and probably ftp) darcs and Mercurial repos to a server in a safe fashion by moving repo files in a defined order. Probably also possible with git. All four can pull repos using nothing but regular HTTP.

What bzr still doesn't have

Integrated patch emailing. The big thing is that it has no built-in emailing of patches support. darcs is extremely strong in this area, followed by hg, and git is probably third. "darcs send" is all it takes to have darcs look at the remote repo, figure out what you have that they don't, and e-mail a bundle of changesets to them. I posted an extension and later a patchset that does all this for Mercurial except for automatically figuring out what default email address to do (that'll come in a few days, I think). One feature Mercurial has had for awhile that Darcs hasn't is sending multiple textual diffs as a thread, with one message per changeset. bzr doesn't have any support for emailing patches yet, which is disappointing. Because of the strong support for this in darcs and Mercurial, people running those systems feel less of a need to publish their repos.

[Update: There is a plugin for bzr that seems to address some of this. I haven't tested it, and it's not in bzr core (so doesn't quite meet my very friendly for a newbie requirement), but this does exist, though apparently not as advanced as Mercurial]

Performance. Supposedly 0.15 is supposed to be better on this, but even if bzr achieves the claimed doubling of performance, most benchmarks I have seen would rate it as still being significantly behind git and Mercurial, though it may overtake darcs in some tests.

Extensive documentation. I would say that bzr's docs are better in some ways than git's (its tutorials especially), but lack depth. If you want to know some detail about how the repository works on-disk, it's not really documented. Darcs still has David's excellent manual, and Mercurial has the hg book which is still great as well.

Merging not as advanced. darcs is pretty obviously way on top here, but of the others, Mercurial does a pretty good job with its automatic handling of renames and automatic resolving of different branches that commit the same change (even if that same change is a rename, or an add of the same content). bzr can't resolve as much automatically.

Summary

Well, I'll say that bzr still doesn't look compelling enough for my use cases to use, and the lack of an easy-for-a-newbie-to-use automated email submission feature is a pretty big disappointment. Though I did appreciate the time those on #bzr spent with me, and if I needed to sync with svn users frequently, I'd probably choose bzr over git.

For now, I'm happy with sticking with darcs for my code and hg for my Debian work.

But all four communities are aggressively working on their weaknesses, and this landscape may look very different in a year.

22 March 2007

Bastian Venthur: Dear SoC enthusiasts,

please stop writing mails asking me whether I’d like to mentor your yet-another-reportbug-alternative project. It’s not that I’m opposed to the idea of rewriting reportbug(-ng) for gtk or as a webapp — really. I just don’t see why your project needs to be part of SoC. I know working for/with google is kinda sexy nowadays and as a student you can even get some money — but be honest: what was Debian’s benefit of last year’s SoC projects? My question which of last year’s projects failed and which succeeded is still unanswered. So no, I’m not yet jumping on this bandwagon everybody seems to be so exited about. Don’t get me wrong: I don’t hate google or the SoC, I’m just not convinced of the success of our last year’s projects, plus I don’t think we need such an event to write useful tools for Debian. NP: The Beatles — Happiness Is a Warm Gun

Next.

Previous.