Search Results: "bod"

9 July 2007

Matthew Palmer: Hell is other people('s code)

I've been working (part-time) on an existing Rails application for the last month or so, getting comfortable with it, modifying some sections to support needed functionality, and beginning an all-out, carpet-bombing "shock and awe" assault on it's test suite. However, a significant portion of the system is (or rather was, since I've already gutted a lot of it) a chunk of rather messy and unpleasant auto-generated code. I've always been a bit iffy about code generation tools, ever since my first encounters with them whilst working on some $DEITY-awful access application years ago. (First encounters with anything Microsoft usually have that effect on me, though). Since then, I've never found any reason to change my mind, and dealing with this particular chunk of auto-generated code has pushed me over the edge into "wild-eyed extremist" territory. Please note that when I say "code generator", I'm talking here about programs or wizards or whatever that create a block of code that you're then expected to tweak to suit your conditions. If it's just a mechanical transformation of an input format to an output format, where a human is never expected to maintain the output by hand, that's not code generation in my book -- that's just a compiler being used for it's intended purpose. I like compilers. I'm fairly sure you do too. Code generators, though? EVIL. Consider what you get out of your generator: A big blob of code in your application that you then have to understand and maintain. It's like you gave a commit bit to some random person who dropped a 5000 line change into your tree and then ran away into the night, cackling. If there's bugs in the generated code (and remember, there's always bugs in software), when they get fixed upstream you're up the creek unless you haven't modified the code at all (and thus can regenerate), or you're willing to apply the necessary patches to your modified version, often by hand. Hand-patching is error-prone, and if you've modified the code at the same place that has to be patched, things can get unpleasant. In the case of the generator I'm dealing with at the moment, I'm not even blessed with it being decent code. It's ugly code, in every possible sense of the word. There's inconsistent formatting, poor commenting, it uses some totally whack coding constructs[1], the hard-coded text strings are ungrammatical, it's got very few (and poorly covering) test cases, the methods are huge and unwieldy, and it's got security bugs (not so hot for something that's supposed to be guarding your application). In short, it looks like some quick-and-dirty internal hack that escaped one night and is now wreaking havoc on the world. There's probably some really good code generators out there. I've been poking around a bit, and there's some written for Rails by people who I know produce good code. However, no matter how good the author of the code generator is, the very best you can hope for is solid, clean code that is the equivalent of some portion of your application having been coded by some member of your team who you (and nobody else) has ever met, who didn't follow your team's coding conventions, and who has never looked at any other part of your application to make sure that everything hung together in a consistent manner. Which you now have to maintain. I've read a lot of books, articles, blog posts, and mailing list messages, and participated in no shortage of "why software sucks" discussions with other programmers, but I've never heard anyone advocate that the way to clean code, minimal bugs, and happy programmers was to drop a big chunk of unknown code right in the middle of things. Before you start charging up the e-mail-delivered tasers, ready to fry my delicate braincells for the twin crimes of Xenocodophobia and a vicious case of Not Invented Here syndrome, though, please understand that I'm not against code reuse in the right place. That right place is a library, component, or other abstract, documented, fairly static, and presumably-replaceable chunk of code. By using a library, you get a relatively simple interface to somebody else's complexity. This is a good thing, for all the reasons that everyone should already be able to recite. Items such as a comprehensible interface, minimal learning curve, and so on. Things you don't get with generated code because, pretty much by definition, the entire chunk of code is you "interface". There are some times, though, when what you want to do can't be done in a library. Either the thing has too many tentacles to be able to easily encapsulate behind an abstracted interface, or you need to modify it's behaviour in too many places to be able to get away with a few simple callbacks to get the job done. Hence, it might be tempting to fire up the code generator to get yourself out of a hole quickly. Don't do it though. Don't succumb to the temptation of saving yourself a little bit of time by firing up a code generator. What you're doing there is just making pain for yourself, by inheriting a big chunk of code that you don't fully understand, probably doesn't solve your problem particularly well, and which you (or whichever poor slob gets the job after you) will have to maintain into perpetuity -- most likely by gradually rewriting large pieces of it so that it fits your application better. The output of a code generator is likely to be the least maintainable code in your tree -- either by virtue of the fact that it's crap code, or at the very least because you just don't understand it. The general principle of good codebase hygiene is that you get rid of unmaintainable code quickly, so it doesn't infect everything else (a la the "broken window theory"). With that in mind, why would you ever consider deliberately introducing a huge chunk of unmaintainable code into your application? The closest I can come to a defence of code generators is something like Rails' scaffolding, where the controller and views for a set of simple CRUD operations on a table are auto-generated. The key word there, though, is scaffolding. It's very name suggests that it's temporary, to be replaced with something more robust and useful as soon as is reasonable. The default scaffolding is ugly as sin, besides, which encourages you to replace it, and -- as of Rails 1.1 (I think), there's a 'scaffold' method which creates the scaffolding output at runtime, so you never, ever need to generate scaffolding code any more. Anyone planning on producing any significant piece of their application through the use of code generators is, in my book, committing a crime against software decency.
1. My favourite whack code construct thus far has been this gem:
 case somevar
   when 17
     do_something_here()
 end
Because, you know, if statements are for people who know how to program, or something.

8 July 2007

Mirco Bauer: Hello World, how small can you get?

Today I was checking how much diskspace is need when a small CLI (.NET) application like gfax is installed. The last 2 years I am optimizing the Mono packages in Debian to reduce dependency chains. Dependency chains can cause a small application to become very big (at least it looks that way) when they are installed, as modern Linux distributions automaticly install all required dependencies. So first I worked against GUI dependencies for non-GUI applications, those are annoying for servers, you don't want to install a X server or other GUI libraries when you only serve webpages using ASP.NET.
Splitting CLI 1.0/1.1 vs 2.0 also seemed to be a very good candidate to split apart, as applications usually are target at 1.0/1.1 or 2.0.
Then I split Base-Class-Libraries that have dependencies on native libraries (via P/Invoke), as those packages must depend on those native libraries, like DB drivers.
Last but not least I split debug symbols in a different package, as those are not needed for normal production usage, and embedded systems don't have much diskspace. The mono-dbg package is 28.2MB in size when installed, that's alot.
The Mono source package in Debian is now building 67 binary packages, but thanks to APT nobody has to care for that, every part is installed when needed. So today I was checking the results of it, how much will a small application download and install?
I am testing with a clean minimal Debian system, that way all dependency chains will show up very easily.
Installing GFax + required libraries today takes 43MB to download and 138MB on the harddisk. GFax is a small GNOME application, it uses libraries like: Mono, GTK#, GNOME#, Evolution#, GConf#.
So someone might say: "of course, it is based on that bloaty Mono virtual machine!", well let's check a different application.
What about a GTK# only application (no GNOME) like graphmonkey + required libraries? That will download 19.5MB and uses 56.4MB on the harddisk. That's alot less, isn't it? graphmonkey only uses Mono and GTK#.
So it's not Mono taking all no diskspace? Well after all my packaging optimizations, it's not Mono smile.png
So how big is a install of a minimal Mono runtime + all required libraries then?
Minimal as in enough to run famous the "Hello World".
It's 2.4MB to download and 7MB on the harddisk, yes you read it correctly, the super monster bloaty virtual machine just needs 7MB. Mono only has glib as dependency which will be replaced by the eglib library some day. After I had this great result, I wondered how big other runtimes are.... like.... Java and Python? The results are interesting...
A minimal Python install takes 3.9MB to download and 13.4MB on the harddisk. Yes, that's almost double the size of Mono, I was surprised too.
So and Java? Here it becomes a bit unfair as SUN's license is not allowing to ship parts of a Java runtime. So the Java package in a distribution is one package. 34.5MB to download and 95.2MB on the harddisk. Yes, that's alot, but thats the smallest install you can get when you want to run anything on it. So, if you want to run Hello World on a virtual machine: use Mono! tongue.png just kidding...
Small runtimes are important when it comes to acceptance and adaption of new technologies, as nobody wants to kill all his computer resources for it. And I often hear the replies on Linux IRC channels, when people ask which software they can use to do $task: "No I don't want o install 100MB just for $task" and they decide to try some other software with less dependencies and less resource usage.
Also for the embedded area, resources are very limited, every MB still counts there. For the completeness of my report, here the naked numbers of other available Java runtimes: sablevm 22.0MB (63.2MB), kaffe 52.2MB (118MB), jamvm 28.3MB (65.4MB), cocoa 28.8MB (66.0MB).

7 July 2007

Jan Wagner: Ignoring security (usability)

Since some time, Deutsche Bahn rolled public wireless lan called “WLAN am Bahnhof” out at 25 railroad stations, you can choose between 4 providers. Sounds really nice, but beside the economical conditions, there is also at least one security issue.
Connecting to the network and opening your favorite browser redirects you to a encrypted portal. So far, so good … the really bad news is, that the certificate expired over 6 years ago.
Broken certificate
This seems to be a normal behavior, since it happens often, that invalid certificates are used. This leeds to blunted users, which aren’t verifying such certificates anymore, even when it’s important.
Does anybody know a reasonable way to notify anybody who can solve the problem there beside the normal contact forms? , , ,

Martin F. Krafft: Bircher M esli

Due to popular demand and a related story, I am herewith sharing my recipe for what I consider to be among the best types of food available: the Bircher M esli. As you'll see shortly, I am talking about mush, about a creamy, cereal-and-fruit-based mix of all kinds of ingredients. Its creator, Mr. Bircher designed this M esli to release the contained energy into the body very slowly. Thus, with some M esli in the morning hours, I can easily make it through to dinner without losing blood sugar or feeling down. And from the recipe, you'll be able to conclude that it's also, in fact, quite healthy. My recipe started out from a recipe by Aline's mother, but it bears little resemblance to the original, I've spent two years experimenting on it. No kidding. This also means that you don't have to copy the recipe, but you can freely replace, add, or leave out ingredients to your liking. Especially the ginger, kardamon, and chili aren't exactly what the Swiss would put in there (I almost never use ginger or chili anymore, but kardamon works really well). Without further ado:
martin's M esli
Ingredients (4-6 servings)
  • 1 large banana, mushed
  • 2 apple (not too sour) or pear, grated, but not too fine
  • 1-2 kiwi fruits, cut, not too fine.
  • Optionally a mango or papaya, mushed or cut to small pieces
  • 175g frozen raspberries
  • 125g frozen blueberries
  • 30g ground hazelnuts
  • 30g ground walnuts
  • 500g single-fruit or plain yoghurt (can be low fat; alternatively quark, fromage blanc, cottage cheese)
  • 100-150ml milk or cream (can be low fat)
  • 200g oat flakes, fine
  • several squirts of lemon juice
  • a bit of lemon peel, ground
  • a slush of orange juice
  • kardamon, ginger, grated; chili powder
Preparation
  1. Combine mushed banana and grated apple into tuppaware container, squirt lemon juice and mix to prevent discolouring.
  2. Add yoghurt, kiwi fruits, nuts, lemon peel, frozen berries, and mix.
  3. Stir in oat flakes, use milk/cream and orange juice to balance viscosity, which should be a bit thicker than the fruit yoghurt. Keep in mind that you can always add a bit of milk when eating it, but you can't really make it less viscous later. Also, the oats soak up a bunch of liquid, so it'll be more solid the next morning anyway.
  4. Add kardamon, ginger, chili powder according to taste.
  5. Seal tuppaware container and leave in fridge for several hours.
Now enjoy; the M esli is best if consumed within 3-4 days. NP: Dream Theater: Octavarium Update: because licences suck, I am releasing the recipe to the public domain. Yet, if you make any worthwhile changes, I'd appreciate if you fed them back to me, and if your M esli wins a price, at least note my name in the acknowledgements of your biography.

6 July 2007

Patrick Winnertz: German law

Hey for everybody who doesn’t already know it: The upper house of the German Parliament (Bundesrat) decided today that in germany now programs like nessus and nmap are illegal.. since only hacker will use them. This means that not only the use of that programs is illegal, but having them installed already. Mh… I think I’m now one of the many persons who is doing, when the law is published, something illegal… having nmap (and nessus) installed.
Time to think about emigration to another country, better than this one. Keep hacking! ;-)

5 July 2007

Adrian von Bidder: /proc/sys/whatever

Just playing around with powertop and laptop-mode. Why didn't anybody tell me about the excellent documentation of /proc before?

3 July 2007

John Goerzen: Mail Readers Still Stink

Five years ago, I started work on OfflineIMAP. I couldn't find any mail reader that offered good IMAP support and a good feature set. Rather than write my own mail reader, I simply wrote OfflineIMAP and used it with mutt. OfflineIMAP does a bi-directional sync between an IMAP server and local mailboxes. This lets you work offline, and also speeds up reading since each new message doesn't have to be downloaded from the network on the spot.

I kept hoping that OfflineIMAP would become obsolete soon, as mail readers got better. Back in 2004, two years after writing OfflineIMAP, I looked at mail readers. In 2005, after some more frustrations with mail readers, I wrote a comparison. I wound up sticking with mutt and OfflineIMAP each time.

I've gone out looking at mail readers again. Here's what I've found.

KMail
Overall a nice reader, KMail has almost every feature and setting I want. It has "disconnected IMAP" folders, which download every new message in folders to the local disk as part of the routine mail checking. It then caches local changes and syncs them to the remote on the next mail check. This boosts interactive performance and permits offline operation -- very similar to OfflineIMAP. KMail has keyboard shortcuts for most things, and keyboard shortcuts can be added or changed for most other things as well.

KMail also integrates with the KDE calendar and addressbook, which I already use. That's nice, too.

I have two big gripes about it though.

Back in 2004, I noticed that KMail crashes a lot. By 2005, it was worse. Sadly, KMail still has a tendency to crash. I've seen an average of 1-2 crashes per day, due to SIGFPE, SIGSEGV, and I think also SIGILL. This doesn't make me happy at all. Especially to see that it's no better on that in three years. Just don't try emptying trash while your mailbox is being synced, for one thing....

Gripe #2 is that there is absolutely no way to select a different alternative in a multipart message without using the mouse. Simply no way using the keyboard. It's also cumbersome, though possible, to view attachments using the keyboard -- you have to press Enter to open the message in its own window, then tab to the attachment.

KMail also sometimes works a bit sluggishly -- for instance, when you delete a message, you first see strikethrough through it, then it disappears. It doesn't feel very "snappy".

Evolution
Evolution has a decent core. It is easy to get set up and has an extensive set of keyboard shortcuts. It does IMAP downloading and syncing like Kmail, and it does it by default. It doesn't offer all that much flexibility in configuration, but probably enough.

Here's my gripe. There is no way for it to show a total message count next to each folder in the folder list. It will show an unread message count, but not a total message count. You have to click on each folder individually to see a total message count. I can't figure out why this is missing from Evolution. It's one of the main benefits to switching from mutt, and so I didn't bother looking at Evolution any more past there.

Thunderbird / Icedove
By default, it isn't all that capable of a mail reader. There aren't that many configuration options, and the keyboard shortcuts -- while existing for most things -- are cumbersome.

The Nostalgy extension helps with the keyboard shortcuts significantly. You still can't change some of them (Ctrl-L for forward, anyone) -- at least not without an extremely cumbersome process involving editing text files.

Thunderbird can do automatic IMAP downloading and syncing like KMail and Evolution, but for some inexplicible reason, only for your INBOX. In fact, Thunderbird won't even check for mail in folders other than INBOX unless you set an undocumented configuration option. It seems to assume that nobody does server-side mail filtering.

If you want IMAP downloading for offline use or performance, you have to manually invoke a download operation. There is a Sync on Arrival extension, but it isn't compatible with Thunderbird 2.0. From reading comments online, there are a lot of people frustrated about that.

So Thunderbird strikes out as well.

mutt + OfflineIMAP
The good thing about this combination is performace. mutt is extremely fast, and OfflineIMAP works faster than anything else for IMAP downloading. mutt is also far more configurable than anything else.

There are some annoyances about mutt.

#1 on that list is the lack of a folder list. There is just no way to see a list of folders along with new or total message counts. You can press c, Enter to go to the next folder with unread mail, which is something, but not enough. There have been numerous abortive projects over the years to address this, but for whatever reason, mutt itself doesn't have this yet. Probably the most promising current project is this one.

#2 is HTML mail. I don't mind the lack of default support for HTML mail. That's to be expected. There are some things that do bug me involving viewing HTML mail. First off, sometimes people attach graphics to messages that also have an HTML component. Viewing these graphics doesn't represent a security risk, but mutt doesn't make them available to a browser for viewing -- you have to manually save them if you want to view them. Also, you normally don't want to load graphics from the Internet for HTML mail. The only way to accomplish that with mutt is to set your browser to lynx or something; just using Firefox to view a HTML component will load all of that.

#3 is handling of embedded URLs. xterms can pass mouse clicks, and it would be nice if mutt made URLs clickable like other mail readers do.

#4 is the IMAP support. No support for caching, fragile, etc. That's why I use OfflineIMAP. That works, but it's a hassle.

#5 is printing. Printouts from mutt just spew the text of the message at the printer. No page numbers, formatting, nothing. muttprint makes that situation a bit better, but the integration is flaky and weird.

Conclusions
I'm not sure what I'll do. None of these are really where I want them to be, though mutt and KMail are probably the closest.

2 July 2007

Adeodato Sim : The right place for staging areas?

During DebConf7 in Edinburgh, a dak BOF was held. Several topics were covered, one of them being staging areas. It was an interesting discussion, during which I had a recurring thought: that staging areas should be between testing and unstable, and not behind unstable (like experimental is), like everybody suggested. By the time I decided to share this aloud, though, the discussion was already over.

Gunnar Wolf: Keep rolling!

It seems that I've held up -at least for half a year- what I stated back in January - I come by bike to work almost every day, and really enjoy the time spent on two wheels. My times have -of course- improved, as has my dominion of the bike - I make ~10 minutes each way (must be a bit more on my way to work than on my way back, as it is uphill).
My city's government seems to be seriously promoting people to consider using the bicycle as means for regular transport and not just as a recreational device - I see some of its measures as quite silly, but some are just perfect. One week ago, while I was on the plane from Edinburgh, we had the first Ciclot n, a 32Km ride open to everybody (and of course, Nadezhda was among them). Over 70,000 people took part, reportedly, and it seems it will be held monthly. Besides that, yesterday we had the paseo dominical in Coyoac n very close to my house - What's that? Something similar to the ciclot n, only much smaller (14Km), much less publicized, and in a different place of the city every Sunday. Well, we started up the day at 8 AM by cycling from Metro Copilco to Miguel ngel de Quevedo, Av. Universidad, R o Churubusco, Divisi n del Norte and Henriquez Ure a back to Metro Copilco. We later learnt that around 10,000 people took part. 14 Km, 30 minutes - not bad, and quite enjoyable!
We didn't go for the second round, because we wanted to be by ~10 AM at Reforma, probably the city's most emblematic avenue, to be part of the demonstration marking one year of the electoral fraud. But... Well, we didn't want to just leave the bikes at home and go by metro - What can we do? Yes, take the open streets. We followed a bit of the path we had taken a bit earlier, then took Minerva, Insurgentes until Reforma (~45 minutes). And once we got to the meeting point, we didn't want to step down and crawl the bikes along... So we both found out that not only we dared take the main streets where people are not really used to cyclists and where taxi drivers will often try to make a point that if you don't own a car you should use a taxi and not a bike - We were able to cycle most of our way to Z calo, going slowly and moving through people, in what seemed to be almost an unthinkable feat for me just a couple of months ago. We can now control the bike, we can even be almost still while riding it, and not crash into anybody!
Of course, the way back was similar - We took our bikes across Obrera, Doctores, Algar n and lamos, then took Av. Universidad all the way down to Copilco, and -after some three hours riding, with my arms quite red and of course somewhat dehydrated and sore-butted- got home.
It feels great to have a well-deserved siesta! And... Well, biking is just too enjoyable. I guess we had ~45Km yesterday, plus some ~5 extra zig-zagging through the crowd. It rules.

Edd Dumbill: Nokia N800, the second time around

Nokia's N800 internet tablet is an intriguing device. When I originally got one a few months back I tried to treat it purely as a consumer object, just using the installed apps and things available through the obvious point-and-click channels.As a consequence it served mainly as a portable (and expensive) internet radio, streaming me the cricket commentary from the BBC. And when I upgraded my wireless network I somehow managed to make it WPA2 only, knocking the N800 offline. An offline N800 is an almost thoroughly useless device, so it went into the drawer and I forgot about it.Ultimately you can't leave something that expensive unused, so I dragged it out again, fiddled the wi-fi router into compliance, and decided not to deny my hacker nature this time. The N800 is Linux underneath, so who could resist?
The result is two-edged, really: I'm a lot happier with the device, but on the other hand must conclude that the N800 is still a bit far from being consumer-ready.Must-have softwareSo, what things did I install this time around that made the device happier?Claws Mail is a nice email client that works well with my IMAP accounts, which all use SSL and TLS, have lots of messages and a deep folder hierarchy. I don't really want to write much mail on the N800, but an easy reading interface is a bonus.The FM radio is something I can't believe I missed before. I had no idea this was in there, but plug some headphones into the N800 and they act as the antenna for an FM receiver. Desperately cute and old-world, a bit like when laptops still used to have parallel printer ports.I had previously ignored Maemo Mapper, thinking it was useless without a GPS, but it turns out to work very nicely as a dedicated client for Google Maps, as well as several other mapping sources. Must-do geeky bitsTry as I might to like the touch screen, the first thing I had to do with the device was find a way of not using the stylus to do sysadmin type tasks on it.So, first stop is to get a terminal up, figure out how to use the root account, install a SSH client and server, and get my pubkey onto the N800. Now I could shell into it and use a decent keyboard.On my local network I hate maintaining DNS if I don't have to, so the next thing I wanted was Zeroconf support in the shape of avahi. One of the quickest ways to get this going is to install the Canola media application, which uses Zeroconf to find shared music.With these basics in place, the N800 supports APT package repositories familiar to Debian and Ubuntu users, so the device becomes a lot less weird and much more manageable. I felt the same pleasant familiarity as I did with the NSLU2. Things to look forward toThe N800's video camera is neat, but nobody I know uses Google Talk for conferencing. Fortunately it seems that Skype for the N800 is just around the corner. Initially, video support is unlikely, but I imagine that if Skype on the N800 proves popular, it won't be far off.The N800 is something I don't mind having kicking around the kitchen or nursery, so staying in touch with my family while I'm travelling will become a lot more fun.
Also, I'd like to get NFS running on the N800, but that requires the installation of a new kernel, which I've not quite yet had the time to do. Once that's done, all my media, photos and storage will be handily available. 

29 June 2007

Martin F. Krafft: DebConf7

I am sitting at Frankfurt airport in between flights home from Edinburgh (not anymore, but that's where this post was born). It's been an intense 2.5 weeks of DebConf7, which has been unlike other DebConfs for me in two respects: this was the first time I actually went to DebCamp, the week leading up to the conference, which is designated to teams and individuals with development goals to achieve during the week. And I was also actively involved in the organisation of the conference, which was unexpected, but a very good experience I am not going to miss next year. Well, it wasn't unexpected. When I booked my flights in January, I had decided to arrive a day early and leave a day late to be able to lend a hand. In between then and the conference, my life turned somewhat upside-down and I had forgotten everything about these noble goals of mine. So when I arrived at the conference venue on Saturday morning with thoughts of netconf circling my head, I was surprised to find everyone buzzing about (how na ve of me) and somewhat clueless as to how I should merge in: my wrists didn't really hold up to heavy lifting, and my knee certainly didn't enjoy stairs, of which there were plenty on the way up to the top floor, where DebCamp was taking place. After trying and being mostly ridiculed by the other organisers ("friends"... ha!), I set out to accomplish some other tasks more suited to my bodily condition, such as wiring the hack lab to accomodate 40 geeks for the first week. That took me most of the day, but at least the space was ready for Sunday morning and the official start of the camp. My goal for the week was netconf and I made good progress until I ran into a wall on Tuesday and had to back off and rethink my design. Reinhart Tartler and Enrico Zini dedicated their time to listen to my design and the problems and helped me clear the mess up and helped me reduce complexity and converge on a straight-forward, event-based design. As the newly appointed DebConf press officer and one of the organisation volunteers, I did not get any further for a few days, as I was manning the front desk or preparing and releasing my first press release (with the help of several others), which lead to a lovely story on The Register and doubled the number of attendees that preregistered for DebianDay (which marks the end of DebCamp and the start of DebConf). I blame the geeks in skirts, actually. Silly bunch, but not quite as silly as those attendants who could get a laugh out of the underwear question for two weeks in a row. Up to this point, I had managed to keep a perfect balance between netconf, orga-team, and sleep. So good, apparently, that when the orga-team t-shirts arrived, Uncle Steve made it quite clear that I should be getting one, even though I had spent considerable time on netconf, am sure some of the others must have worked twice the amount, and I was still quite well rested then. But they gave me a shirt and thus I became part of the orga-team. And even though it was rough at times, running around during the day, filling spare minutes with netconf brain-work, and enjoying nights that got longer with every day of the conference, I am glad and proud to be a member of this team now. It took me until after the official start of the conference to return to the netconf code, but with the new design, I got most of the framework to a point where it could obtain static and dynamic addresses from configuration files as well as DHCP servers in time for my presentation on Tuesday (the recording of which shall be linked from the netconf homepage as soon as it's available). Of course, nothing worked on screen in front of the audience, but noone really expected that anyway. and then I took it all apart for further simplification, so by the time night fell, the slides from the talk had already become outdated as I moved to yet another design, which is even simpler and which allowed me to sketch complex scenarios, such as DHCP after WPA. For two days, I made good progress, but the time available for hacking decreased noticeably, as I kept volunteering for more tasks that needed doing, and more and more people turned up. Somewhere in between, Keith Packard took hostage of (and fixed parts of) my broken X40 laptop, but that's the meat of another story. And on some other night, our leader Sam, in his official capacity as DPL, presented me with the instantiation of my innermost desires as consolation for my hosital stay: a pony. Just look at that smile! With 400 attendants, this year's DebConf continued the trend of immense growth of the event, and while it's great to witness this increase in popularity among attendees and sponsors, who make it possible each year to fly more people to the destination, I am also rather sceptical. The problem is less the additional load on the organising team the next 100 people are going to be easier to accomodate than the previous 100 were. It is more that the conference is losing focus. More people make you spend less time with the same folks, and as the number of non-contributors increases, the social element starts to outweigh the technical element. I am not condemning the social element, but to paraphrase the words of my favourite Debian developer, it's painful to come to DebConf or even IRC with a project and questions just to find that the people are generally more interested in being social, even to the point of preventing technical discussions. I realise that this is a sensitive subject as the issue of various cabals keeps coming up frequently and it does not seem right to start limiting the audience to this conference, but unless we consider the matter, DebConf might deteriorate similarly to other conferences, which have enjoyed enormous growth as well before it was too late. I think we must make sure that people understand that we are, after all, a technical project and must not lose touch with out roots. Of course, I may also be overreacting, after a week of intense coding and many other stress factors I continued working hard on netconf and helping with the organisation throughout Friday, briefly taking time off to prepare a presentation on my Ph.D. research, which was very well received, as well as a workshop on Debian packaging with modern (distributed) version control systems, which yielded around a dozen new subscribers to the vcs-pkg mailing list. But now, back to netconf. All things considered, I was making good progress, but not getting netconf into a releasable state just yet. I can parse /etc/network/interfaces files and get data from DHCP servers, even configure interfaces with those, but it's all still work in progress as I have not yet bothered to implement such basics as default gateways or DNS servers. But the framework is in place, and I am very happy with it as everything I keep adding falls into place beautifully. To mark the end of my netconf development sprint at DebConf7, I scheduled a code introduction session on Friday, where around 15 people turned out to get a walkthrough of the code and explanation of some of my design decisions. The session was recorded and will be available on video shortly. I think it turned out to be a very good idea; I found myself intrigued by someone else's code before until that someone took the time to explain what was going on. I sincerely hope that this introduction helps bootstrap a few people's experiences with the code and yields more contributors! Even though we ended almost every single evening of the two weeks in one of the surrounding pubs, the last few nights were definitely the most enjoyable. On Thursday, the local team had organised a Ceilidh with a band teaching us geeks how to dance the Scottish way, and the venue stayed open for two hours longer than before, causing most people to come out for beer or bouncing about. On Friday and Saturday, the folks of InfoSeed let us use their comfy couches (in the basement of the conference night venue) and we chilled to music and massages, while on Sunday, after a very tiresome day of cleaning up, the noticably lesser number of survivors hung out at the Forest Cafe for some so-so live music, few beers, and an early journey to bed, where a Dutch Muppet kept us entertained for at least another hour. The best about Monday, my day of return, must have been that the airline lost my backpack, which saved me from having to lug it around in Zurich, and made for a great moment on the phone with the baggage tracing service, who announced that my bags would be delivered in about 6 hours between 20:00 and 22:00 just as the door bell rang and the courier dropped off my bag. I'll be back in Argentina, unless something goes seriously wrong. And I'll be on the orga-team again. If you guys stop holding your meetings on Monday night. Thanks to everyone who made DebConf7 possible. I am proud to have been able to contribute, but the real work was done by a few others. You know who you are. NP: Solar Project: Five

28 June 2007

Joey Hess: heat

Imagine that you went somewhere cool in the middle of the summer and screwed up your body's ability to cope with heat. And then had to come home and suffer. I thought this had happened to me, and was pondering putting in air conditioning (and dreading next week's trip to the beach). It was frightning. But it turns out that I just had a fever.

MJ Ray: Last Chance for the Working Draft of the Web Content Accessibility Guidelines 2.0

As a result of commenting on some problems in CUBA's Jam Busting June site I was made aware of the Working Draft of WCAG 2.0 or the Not-Working Draft, as I think it could be called. If you want to comment on it yourself, you had until the end of 27 June 2007 (US EDT, I assume). Put simply, it's too confusing for both web developers and site managers. Even the Quick Reference is rather long for practical use. It's very indirect - it's not even clear whether xhtml over HTTP is preferred. I submitted a comment about that - also rather disappointing to find that W3C appear to fail to use stripslashes() when needed. I submitted another comment about the backwards step of allowing Javascript-required sites to be called accessible. Javascript is dangerous for accessibility and bad for power consumption. What the blue blazes is an AJAX-only webmail doing as one of the accessibility examples? I see that notable sites have already criticised WCAG 2.0. While I don't necessarily agree with everything they say, this is a very disappointing situation. Will WCAG 2 be rescued? Are accessible-friendly webmasters screwed if WCAG 1.0 is replaced by 2.0 in our national standards? It lets all the Flash-only cowboys claim WCAG-conformance as long as they note their site relies upon Flash. (Question: is a site still WCAG-2.0-accessible if it requires Flash to view the note that says it requires Flash?) Should we start looking towards MACCAWS, WHATWG, expanding IETF to cover the web, or starting another democratic/meritocratic standards body?

27 June 2007

Neil Williams: UK politics

I usually don't foray into this topic but I'm unsure whether this is something that others simply haven't noticed or whether everyone else is just being nice to the new UK PM and the new deputy leader of the governing political party.

Gordon Brown: GB
Harriet Harmann: HH

Is it just me or doesn't that just lend itself to being shortened to: GBH ?
(Grevious Bodily Harm in UK court speak) - the repetition of harm in Harmann almost qualifies as a recursive acronym!

Martin F. Krafft: Dog control theory

For the next two weeks, I am proud owner of a dog. Or well, at least care taker:
Zeno and myself
Zeno, that's his name, is absolutely convinced that he is the centre of the universe, the "l'ombelico del mundo", as Jovanotti would sing. So it's very incomprehensible to him if I do anything but play with him and he follows me even to the toilet to make sure I don't miss a chance. Apart from having learnt to type single-handedly now (the other hand petting him), what's really amusing is his never-ending, asymptotic quest for perfect comfort. Enter the sequence at any point:
  1. if not being petted, walk up to martin
  2. strike paw against whatever body part is available.
  3. if martin does not react, bite into his thigh, lightly.
  4. repeat 1-3 until martin reacts and starts petting.
  5. slowly start to lie down, thereby leaving martin's circle of reach
  6. wait a second so as to not arouse suspicion
  7. stand up, continue at 1.
I find this extremely reminiscent of control theory or a crap PID controller. You'd think dogs are intelligent until you witness the 20th iteration. I am not exaggerating. And I still love that dog. NP: Gazpacho: When Earth Lets Go

Michal Čihař: Gammu and Symbian 3rd generation

As I recently got yet another round of requests to make Gammu work with 3rd generation of Symbian phones. I know there is still more and more of them, but none of developers have possibility to port gnapplet to work with these phones. Basically all required steps are described on Nokia website, so it should not be that hard. It only needs somebody who is able to write in C++. You can get CDK for Symbian phones for free (eg. from Nokia, but I guess that from any phone vendor) and start to port gnapplet. Any contributions in this area are welcome, because I can't do much without Symbian phone.

Martin F. Krafft: Removing background from images

Every now and then, I want to remove the background from an image and replace it with transparency. Instead of painful pixel work with the select tool, the following Gimp recipe does the job quite well, provided the background is a single colour:
  1. Choose Layer->Transparency->Colour to Alpha and select the background colour in the dialog box. Then click OK.
  2. Use the magic wand tool (Z) to select the contiguous region around your object. Make sure to use a sufficiently high threshold such that the selection line coincides with the image's silhouette.
  3. Press Ctrl-I to invert the selection.
  4. Choose Select->Shrink and shrink the selection by a pixel or two.
  5. Create a new, transparent layer. The selection should still be active.
  6. Make the background colour you previously converted to transparent your foreground colour and choose Edit->Fill with FD Colour from the menu.
  7. Switch the two layers such that the current one moves behind the one containing your image.
The method isn't perfect, but it certainly saves me a lot of time. For instance, my new hackergotchi a tribute to Scotland and the local team of DebConf7 only took me a few minutes to get ready. Suggestions still welcome. NP: Barclay James Harvest: Everyone Is Everybody Else

26 June 2007

Matthias Urlichs: Be prepared!

>> Thank you for your message to the Adaptec Customer Service department.
>> Your case # is 000000000005432. (NB: not the real number.)

*ROTFL*  Exactly how many customer requests do they expect to handle?

If the answer is "about 100/day", which sounds somewhat high to me given the above number, then space will last roughly three times as long as the time until this nice planet will die a fiery death in its expanding sun's outer heliosphere.

Maybe somebody was afraid of the Year-100-Billion problem

25 June 2007

Wouter Verhelst: Joshua Bell in the metro

A few months ago, the Washington Post featured an article about Joshua Bell playing his violin (which happens to be a Stradivarius) in a Washington metro station. Contrary to their expectations, nobody stopped by to listen. The article tries to find reasons for why this happened, digging into theories by a number of famous philosophers. While those are undoubtedly not far from the truth, let me dig up another theory: Joshua Bell may be one of the best musicians in the world; that doesn't mean he's one of the best street musicians in the world. You see, if you play your Stradivarius in a concert hall, you don't have to do much to get people's attention. If your name is Joshua Bell and you play in the New York Opera House, people pay good money to get a seat months in advance, they circle the date on their calendar, and they look forward to it for weeks. When the big day arrives, they dress up, they drive up to the opera house, they queue for the privilege of being allowed to show their tickets and being allowed in, they take their seats, and they wait in excitement and anticipation until the big moment arrives. If your name is Joshua Bell and you play your Stradivarius in a concert hall, people will clap their hands you before you've even started. You'd better make it be good, or they'll demand their money back. If, however, you play on the street, then that's a completely different matter. You don't get to have people circle the date of your street concert months in advance. You have exactly one second to let them know you're playing. You don't get to have an audience that will clap their hands the very moment they see you turn the corner; instead, you'll see an audience that would rather you did not stand in the middle of the way like that, so that they would not have to look out for you. In short, you don't get their attention on a silver platter; instead, you have to earn it. As someone who's done street music in the past, I can tell you that earning someone's attention isn't something you will do by playing the most difficult music that can be found. You should remember that you've got just a few seconds to catch someone's attention; from the moment they vaguely hear someone's playing, until that time when they're getting annoyed at the volume your, no doubt wonderful, instrument is making. If you want people to stop and listen, you need to do it in that very short timeframe. A wild and fast virtuoso piece, while sure to get you a great reaction by an audience in an opera house, is only a very noisy thing if you just get a few seconds of it—even if those few seconds are by the best violin player alive. The best way to get someone's attention is to give them something they recognize. The article notes the reactions from a few passers-by. It did not surprise me that of the three or four people who actually stopped and listened, one recognized the violinist as Joshua Bell, and the other had been a violinist himself in a previous life. Both had something they recognized, which made both stop for a few moments to check what they were seeing. That's what gave them more time to appreciate how truly beatifull this music was, and that's why they waited. The real way to get people to stop, to get a crowd around you, and to have them to listen to you, is not to play what gets you the best results in an Opera House or other concert hall. Instead, you should play something that will catch people's attention. A brilliant piece that is unknown will not do that. A funny variation on "Oh When The Saints" will, because people recognize the music. That's not to say that street musicians should only play stuff like "Oh When The Saints". Getting money from playing on the street has more to it than just the music you're playing; just as important is the place where you're playing, and the time when you're doing it: A good street musician knows these things, and applies them even without knowing. He'll instinctively know whether it's a good day to do street music, and he'll rather go to a bar and have a hot drink if it's not. So why didn't Joshua Bell get a crowd around him? Easy: he isn't a very good street musician.

Gunnar Wolf: Back from DebConf7

Ok, I'm officially back. Yup, when you have a meeting just over your regular lunch time and are suddenly seen as the guy who will fix the institute's video needs just because you worked manning cameras with the amazing DC7 video team, it just means you are back home. Lets see how several projects that have sprang up in the last couple of weeks (both at DebConf and at work) start materializing.
Anyway... DebConf was great. Just great. This time I had time both to feel I was useful and productive (mainly doing video-related stuff, although on some other points as well), to attend several interesting talks (although manning the camera did not leave my attention as complete as I would have liked), to have several nice chats, to play a good couple of hands of Mao - Hell, thanks to Kitty, I managed even to have some chats _while_ having a hand of Mao!
Of course, I was not productive neither with my Real Life duties nor with with the Debian stuff I wanted to hack on - In fact, the most productive period during the two and a half weeks I was away (excluding probably the two days I spent understanding/hacking Pentabarf with Dami n) was the flight back - During the ~12hr we were on the air, I managed to read the second half of my book, to review two chapters for a thesis, to write a (really simple) article and to work on another one.
Anyway... Thanks to everybody. I had a great time, and am only looking forward towards Argentina.
Ah, and I also got The Debconf Flu.

Next.

Previous.