Search Results: "tb"

26 August 2006

Russell Coker: common mistakes in presentations

I attend many presentations and have seen many that had a lower quality than they should have. Some things are difficult to change (for example I have difficulty speaking slowly). But there are some things that are easy to change that many people seem to get wrong and I will list some that stand out to me.<br /><br />Unreadable presentation notes. You have to use a reasonably large font for it to be read by most people in the room. This means probably a maximum of about 16 lines of text on the screen. I have attended some presentations where I couldn't read the text from the middle of the room!<br /><br />Too many slides. On a few occasions I have heard people boasting about how many slides they are going to use. An average of more than one slide per minute does not mean that you have done a good talk, it may mean the exact opposite. One of my recent talks had 8 slides of main content plus an introductory slide while waiting for people to arrive and a Q/A slide with my email address and some URLs for the end. The speaking slot was 30 minutes giving an average of a slide every 3-4 minutes.<br /><br />Paging through slides too quickly. If you have 60 slides for a one hour talk then you will have no possibility of going through them at a reasonable speed (see above). Even if you have a reasonable number of slides you may go through some of them too quickly. On one occasion a presentation included a slide with text that was too small to read, I tried to count the lines of text but only got to 30 before the presenter went to the next slide.<br /><br />Using slides as reading material for after the lecture. Sure it can be useful for people to review your notes after the lecture, and it's generally better to give them the notes than to have them be so busy writing notes that they miss somehting you say. But if you want to have something verbose and detailed that can't be spoken about in the lecture then the thing to do is to write a paper for the delegates to read. Serious conferences have papers that they publish (minimum length is generally 4 solid A4 pages) which are presented by a talk of 30 to 60 minutes. That way people get a talk as an introduction and they get some serious reference material if they want to know more. Also people who miss the talk can read the paper and get much of the value. Is it not possible for slides to take the place of a paper.<br /><br />Bad diagrams. Diagrams should be really simple (see the paragraph about readable text). It is OK to have diagrams that don't stand alone and need to be described, a lecture is primarily about talking not showing pictures.<br /><br />When simplifying diagrams make sure that they still represent what actually happens. Simplifying diagrams such that they don't match what you are talking about doesn't help.<br /><br />Animations. The only thing that is animated in the front of the room should be the person giving the presentation. Otherwise just do the entire thing in flash, publish it on the web, and don't bother giving a talk.<br /><br />Staged content, particularly when used as a <span style="font-style: italic;">surprise</span>. Having a line of text appear with every click of the mouse forces the audience to stay with you every step of the way. This may work for primary school students but does not work for an intelligent audience. Give them a screen full at a time and let them read it in any order that they like. This is worst when they someone tries to surprise the audience with a punchy line at the end of every paragraph. Surprising the audience once per talk is difficult. Trying to do it every paragraph is just annoying.<br /><br />One final tip that isn't as serious but is not obvious enough to deserve a mention. Use black text on a white background, this gives good contrast that can be seen regardless of color-blindness and with the bright background the room is lit up even if all the lights are off. The audience wants to see you and sometimes this is only possible by projector light. Also the more light that comes out of the projector the less heat that builds up inside, it can really mess up a presentation if the projector overheats.

Russell Coker: blocking spam

There are two critical things that any anti-spam system must do, it must not lose email and it must not cause damage to the rest of the net.<br /><br />To avoid losing email every message must be either accepted for delivery or the sender must be notified.<br /><br />To avoid causing damage to the rest of the net spam should not be bounced to innocent third parties. To accept mail, process it, and then bounce messages that appear to be spam will result in spam being bounced to innocent third parties.<br /><br />The only exception to these two conditions is for virus email which can be positively identified as being bad and therefore they can be silently discarded. For any other category of unwanted mail there is always a possibility of a false-positive and therefore the sender should be notified if the mail will not be accepted.<br /><br />Therefore the only acceptable method of dealing with spam is to reject it at the SMTP protocol level. Currently I am not aware of any software that supports Bayesian filtering while the message is being received so that it can be rejected if it appears to be spam, it would be possible to do this (I could write the code myself if I had enough spare time) but AFAIK no-one has done it.<br /><br />The most popular methods of recognising SPAM before it is accepted are through DNSBL lists (DNS based lists of IP addresses known to send SPAM), RHSBL lists (DNS based lists identifying domains that are known to be run by spammers), and Gray-listing (giving a transient error condition in the expectation that many spammers won't try again).<br /><br />Gray-listing is not effective enough to be used on it's own, therefore DNSBL and RHSBL systems are required for a usable email system. Quickly reviewing the logs of some of my clients' mail servers suggests that the DNSBL <span style="font-weight: bold;">dnsbl.sorbs.net</span> alone is stopping an average of 20 SPAMs per user per day! The <a href="http://www.sorbs.net">SORBS</a> system is designed to block open relays, machines that send mail to spam-trap addresses, and some other categories of obviously inappropriate use. The number of false-positives is very small. On average I add about one white-list entry per month, which isn't much for the email for a dozen small companies. For every white list entry I have added I have known that the sender has had a SPAM problem. I have not had to add a white-list entry because of a DNSBL making a mistake, just because people want to receive mail from a system that also sends SPAM.<br /><br />I was prompted to write about anti-spam measures by an ill-informed and unsubstantiated comment on my blog regarding DNSBL services.<br /><br />If anyone wants to comment on this please feel free. But keep in mind that I have a lot of experience running mail servers including large ISPs with more than a million customers. The advice I give in terms of anti-spam measures concerns techniques that I have successfully used on ISPs of all sizes and that I have found to work well even when both ends use them. Make sure that you substantiate any comments you make and explain them clearly. Saying that something is <span style="font-style: italic;">stupid</span> is not going to impress me when I've seen it work for over a million users.

Evan Prodromou: 9 Fructidor CCXIV

We're still in wt:Copenhagen today, but we head out this afternoon for our tour of the Baltic Sea. We've had a great time in the city so far, mostly due to staying with longtime Wikitraveller wt:User:Elgaard, who generously offered us the extra room in his apartment for the time we're here. There's something about staying in an actual human being's home while you're travelling to really recharge the batteries. After a week in hotels and restaurants, a little time in a real house can make you feel a lot more human. We took our time getting to Copenhagen from wt:Odense at the end of the Wikisym conference, mostly because I was really hung over. I'd spent the last night of the event drinking at the Irish pub in the pedestrian area, and I probably had 1-5 pints too many. Paul Yount calls Irish pubs "the first Open Source franchise", and it's true: you can expect certain things at a pub no matter where it is in the world. Although we started out with about 30 people, the crowd thinned through the night. I had a good time talking with Brion Vibber and Chuck Smith about the state of Esperanto-language wikis on the Web -- in a mish-mash of English and Esperanto, of course. (In case you were wondering: the state is "fine".) I also chatted Wikimedia Foundation politics with Angela Beesley; we both think Erik Moeller is going to make a good addition to the WMF board. After the pub shut down, I headed to the deathly silent casino in the sub-basement of the Radisson of Odense. The bar was eerily silent, and the gaming tables were intense and serious; I don't think people could have been more somber if they were organ harvesters gambling for body parts. The last hangers-on were Andrea Forte of Georgia Tech, Alex Schroeder of CommunityWiki, Sunir Shah of MeatballWiki, and Eugene Eric Kim, of Blue Oxen and HyperCore. In other words, some of the smartest people in the wiki world today -- we talked wiki politics and theory until the wee hours of the morning. They all switched to mineral water while I was still slugging down pints of Carlsberg Special, which is probably where I went wrong. Wikisym, for me, was one of the best conferences I've been to this year, and I've been to a lot. It capped off a long summer of conference-going, and this fall should be relatively tranquil. Which is great: I have a lot of work to do, based on the ideas I've picked up this season. tags:

sterbro All of which is to say that I was feeling pretty crufty the next morning as we got on the train. Kindly Maj got us a late checkout and let me sleep in late, which helped a lot; a falafel sandwich around 11AM also cleared my head a bit. The train ride from Odense to Copenhagen was great, and by the time we got to Niels Elgaard Larsen's house in sterbro (a neighborhood of Copenhagen) I was pretty refreshed. Niels took us out to an early dinner at a restaurant called Pixie in a square by his house. Copenhagen has some pretty strict traffic laws, and the number of cars on the street is possibly the least I've ever seen for a major metropolis, leaving a lot of room for sidewalks, bike paths, and open parks and plazas. We got to chat with Niels over a fresh pasta dinner, and thence home to his house for beers and more talk. One great thing about visiting Wikitravellers is that they tend to be a) very smart, b) well-travelled, and c) interested in Free Software and Free Culture. Niels is no exception; he's active in the Danish and European Free Software and information freedom communities, and he's extremely interesting to talk to on the subject. We shared travel stories and talked about Open Source and Open Content later than I would have thought, based on my earlier-morning hangover. Probably the high point of the evening, for me, was when Niels shared a brilliant idea for a way to distribute Wikitravel guides in digital form for a very wide array of users. We've had a hard time settling on a mobile document format for Wikitravel guides, since mobile devices like PDAs and cell phones support standards so poorly. It's one of the most requested features for Wikitravel, but it's going to take a huge amount of work to cover even a fraction of the mobile device owner community. Except Niels had a genius idea for how to distribute guides in a simple, standard format that works on a mobile digital device many if not most travellers carry with them every time they travel. The idea: make guides that are downloadable JPEG images which can be copied to a SD card or Compact Flash or Memory stick or whatever, then stuck into a digital camera. If the camera supports zooming on images, and has a decent screen for review, the guides might be useful and readable. I'm going to try to do some experiments with the idea -- I think it could be a real winner. Adding 30-40 images to a camera today is pretty cheap, and if they're just text I think some aggressive compression can work well. tag:

Copenhagen on foot Yesterday we did a big tour of the city on our own. In the morning, we had some breakfast at the Laundromat Cafe right next door to Niels's house, and I took the opportunity to clean a week's worth of dirty laundry. Nothing like a stack of clean clothes to make you feel more like a decent citizen. I was down to a bathing suit and the ICANNWiki t-shirt Ray King gave me at Wikisym. Then we headed out on the town to do some sight-seeing. First we hit the Kastellet, a fortress in northeast Copenhagen that's the oldest operational military base in Europe. It's got the distinctive star-shaped outline typical of old fortifications, and is surrounded by a lovely park with ducks and swans. We had lunch at a nearby caf , with large beers. (Gee, I'm getting worried about the pattern here.) After lunch we made an unscheduled stop at den lille havfrue -- the famous Litle Mermaid statue in the harbour. It was miniscule and surrounded by perhaps 100 onlookers, crammed into a tiny swatch of sidewalk. We stopped about half a mile away, took some pictures of the crowd, and moved on. We then hoofed it down through the harbour and across Nyhavn and a bridge to Christianhavn and Christiania. We'd both heard about the city-within-a-city run on anarchist principles -- kind of like a giant squat -- but neither of us had been there before. It was an interesting place -- packed with people, lots of food cooking a beer-drinking, caf s and restaurants all over the place, interspersed with art installations and little gardens. But it had the unkempt scumminess of a big squat, too -- especially on the main drag -- and there were a few too many pitbulls and gutterpunks for my tastes. Overall a good experience but I don't know if I'll go back. After our long walk we took the metro back to Niels's, where we napped until he and wife Chiquita got home. Chiquita is an investment banker from wt:Toronto who does a lot of business in Europe, where she met Niels a few years ago. They were married last year and have had a long-distance relationship -- visiting each other a week or so out of each month -- for the whole time. She's moving here this year, which I think will be nice for both of them. We had a good dinner at a place called Thomas's -- a buffet, which seems to be very popular here -- and then back home for a nightcap and bed. Amita June was overtired by the time we got her to bed, and she let us know that we'd pushed her too hard with a quarter-hour of heavy crying. But we all got to sleep pretty well afterwards, and at least the parents know that we should take it easy in the future. tags:

21 August 2006

Gustavo Franco: epiphany 2.14 in Debian

<a onblur="try parent.deselectBloggerImageGracefully(); catch(e) " href="http://www.telecable.es/personales/algarcia/img/epiphany-88x31.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 89px; height: 31px;" src="http://www.telecable.es/personales/algarcia/img/epiphany-88x31.png" alt="" border="0" /></a>If you're using GNOME as your desktop environment, it's possible that you're using the wrong browser or just using one that isn't doing everything you want as i was, right ? Well, when Firefox came into the scene with one of its previous names i was using Galeon. Galeon worked for me, but it lacked some features that the new browser was offering. I would like to tell you that the same thing is happening again, and it's now time to give <a href="http://www.gnome.org/projects/epiphany/">epiphany</a> a try. If you did it before, do it again with the latest epiphany (2.14.0) in Debian sid, my reasons are below:<br /><span style="font-weight: bold;"><br /><span style="font-weight: bold;">Gecko<br /><span style="font-weight: bold;"></span></span></span>Yes, it uses Gecko 1.8 as backend and not gtkhtml so don't worry about page rendering. For those 'in the loop', it's already linked against <a href="http://developer.mozilla.org/en/docs/XULRunner">xulrunner</a><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"> </span></span></span>library. Firefox (in Debian sid) isn't yet.<br /><br /><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"></span></span>Bookmarks</span><br />You can attach tags (epiphany calls them 'topics') to the bookmarks and it will organize everything in a tree for you. The bookmark manager looks good for me too, i'm not too much into the bookmark thing but together with deskbar-applet and epiphany topics i can find what i want.<br /><br />The most interesting feature is that epiphany can look up to bookmarks published using avahi (mdns/dns-sd daemon) and show them as "local sites". In other words, you can setup a centralized bookmark server and all the epiphany users in your network will be able to see them. I've a mt-daapd server, and epiphany recognize that there's a admin website around, just like rhythmbox does.<br /><br /><span style="font-weight: bold;">Extensions<br /></span>Yes, it has extensions and is able to do ad-block and all that. Unfortunately the latest <a href="http://packages.debian.org/epiphany-extensions">epiphany-extensions</a> package still needs to be built for i386, but it's already ok for amd64 arm hppa powerpc s390.<br /><span style="font-weight: bold;"><br /></span><span style="font-weight: bold;">RSS<br /></span>I had some rss apps around, but wasn't really using them because what i needed was subscribe from the browser, organize the feeds in the app using topics/tags or folders and see some interesting integration between that app and the browser. It's now done, try epiphany and liferea. =)<br /><span style="font-weight: bold;"><br /></span><span style="font-weight: bold;">Memory<br /></span>After eight hours using epiphany it won't eat all your memory to 'optimize page loading' and even with this "bug" i don't see epiphany (and the rest of my desktop) too slow to open a new page after all this time.<br /><br />I think that a lot of users and developers will just look to epiphany as a serious Firefox alternative, after a big "user oriented" distribution pick it as the default browser. Thanks to the epiphany developers anyway, keep the good work.

20 August 2006

Rob Bradford: Fu ball

Yesterday myself and a work colleague went to the Olympic Stadium here in Berlin to see Hertha play Hannover in the Bundesleague. Since I’d never been to a football match before I wasn’t really sure what to expect. When we got onto the S-Bahn the train was full of optimistic fans drinking beer and rehearsing their football chants. Once we had found our seats in the overwhelmingly agoraphobic stadium we got to see quite a lot of action, in fact Hertha scored 4 goals to, uhm, Hannover’s, nil point. By the third goal my initial anticipation and scepticism had been replaced by an optimistic tension as I attently tracked the ball around the somewhat distant field. Ready to cheer along with the rest of the Hertha fans who surrounded us. Once the game was over we were submerged in the stream of blue and white as it left the stadium, their expectant optimism happily satiated. I think I now have some idea of what it feels like to be a football fan.

19 August 2006

Clint Adams: Whaling in Memphis

I was sitting in the airport, watching all the teenage Marines hitting on each woman they saw, and watching them get consistently rejected, when I may have had an auditory hallucination. By means of the public address system, some sort of airline employee had summoned a list of passengers to the gate, and none of those passengers were named Horselover Fat. Nevertheless, I sashayed up to the desk and inquired of the manchimp standing there, Did someone call my name? He looked at me, grinning smugly, and asserted his intellectual superiority by pointing out that he couldn't answer that question without knowing my name. Rather than explaining to him that he could have assimilated that little bit of knowledge by reading the boarding pass that I was holding in front of me, I told him that my name was Jarom Hennessey, for that was the name in the passport I was using. (Hi, Alana. Hi, Ophira. Die, Aliza.) Nope, he said, and as I began climbing over a pile of Marines, he continued, Oh, wait. She called your name and I didn't hear. So I climbed back, and waited for him to ask my name. Alas, he did not; he only said, You don't have any objection to sitting in Business class, do you? No, I lied, and so he printed me a new boarding pass. It turns out that this was the good sort of Business class not the foul sort you might get on British Midlands, where your seat is exactly 14 millimetres wider than those in Economy, and they still stab you with sharpened Yorkshire pudding and plead with you to do your part in lightening the load of the airplane, even though you are several thousand feet in the air and don't even want to be going to the UK in the first place, but the kind where the enormous seat reclines all the way back, has electronic adjustable lumbar support and all kinds of other gadgets, the food is pretty good, and you can even get snakes if you ask for them. First class on that flight looked even better, especially because there was a 55-year-old 4'7"-tall man giving people laypdances and begging them not to keep calling him a stewardess , because apparently he is some sort of flight attendant . Anyway, I sat next to some fratboy douchebag who eventually learned to mind his own goddamn business, and passed on the free Bellinis since it was only 6am. I did avail myself of other free stuff, and when the stewardess (not the guy from First class) took my breakfast order, she asked if I wanted a DVD player. In mimicry of Fratboy Douchebag, I grunted, Sure. She brought me a portable DVD player, which claimed to have a battery, but didn't work unless it was plugged in, and also claimed that it would not play any DVDs not provided by the airline. I did not have the opportunity to test this, since I had opted to not bring any DVDs with me. Instead, I perused the selection provided me. These DVDs were all labeled to indicate that they could be played only in the airline-provided DVD player. I have a funny story about that. I'm not going to tell it. I don the noise-cancelling headphones, and jack them into the DVD player, into which I have put Transamerica. For a little while, I think that the lack of speech is the movie being artsy. Then I begin to suspect that something is horribly wrong, so I start over, with subtitles on. It becomes clear that all the speech has been elided, as well as some of the sound effects. A bad burn? I swap the DVD out for Firewall, and experience similar problems. Summoning one of the stewardesses, I complain that there seems to be something wrong with something. I trade everything in for a new set. This time I don't get Transamerica, so I put in Firewall; having seen the first two minutes, I have to watch it to completion now. There's no sound at all. I discover that if I press down on the headphone plug, shifting the jack sideways, I can hear the audio portion of the presentation. What a pain in the ass. Here would be another good place to not tell the funny story. I switched to a better movie after that. In retrospect, I should have taken more advantage of the in-flight service, since my next leg was abysmal. This airline was one of my favorites a little over half a decade ago, and now I am plotting ways to never fly it again. I'll note that the seat was smaller than Greg Pomerantz's former toilet, that the radio controls were from the wrong century, and instead of having hot food included, the flight staff sold sandwiches and snack boxes . Matthew Garrett might say that this sort of flight gives one more freedom than the sort where you get a choice between two different meals or nothing at all, but I think that it is a travesty. There should be giant warning indications for such flights, so that one has ample time to purchase crappy, overpriced airport food to drag on board, as that is a better alternative. The third leg was rather unremarkable, except for the elderly Jewish man who kept fondling a stewardess and gesticulating some sort of claim that he had no command of English. Just prior to the descent, she gave him a loud scolding, repeating at the end, Yes, you understand me. I imagine that she could make quite a bit of money as a prostitute for the Chasidim; they like their hookers blonde. Now the fourth leg was pleasant for numerous reasons, most of which are boring. The guy across the aisle from me bore some disturbing similarities to Mr. Foxworthy, but was not nearly entertaining enough to hold either my interest or the interest of a blonde chick, who sat on the other side of him and probably wouldn't be all that popular with the Chasidim. One of the stewardesses was Latina, but spoke like a limp Swiss man. Her partner in comedy was not Latina, and did not speak like a limp Swiss man. I didn't catch their names, so I'll call the first one Marta and the second one Gladys. Marta and Gladys were having a work-related discussion about a complimentary beverage prior to it having been served to some fool behind me. There was a bit of a communication mixup, so Gladys leaned over to me and gestured a few allegations about Marta, concluding with So if you have to talk to her, just use sign language or somethin'. Hearing this, Marta shoved Gladys out of the way, leaned over to me, and said, You just wait. Later on, I'll tell you something really bad about her. Then I wrecked some guy's priceless painting. Oops. Isn't paint a liquid- or gel-like substance? If you ask me, all instances of art are terraist weapons. Oh, Gladys sighed happily, I don't know what I'd do if you weren't here. Later, at the deplaning, Gladys cried out, My friend! , and Marta nudged me and said, She's single!

18 August 2006

Martin F. Krafft: Talk on Debian "etch"

Tomorrow I will deliver a talk on Debian "etch" at the University of Limerick Computer Society. Staying true to my principles, I held back the preparation of slides until the last minute, but now I actually ended up having them done well in advance, with enough time to invite you to take a look [*] and provide feedback. In this talk, I introduce Debian, give a status update on the "etch" release, talk a little bit about the future and how I see Debian's strategies evolving/developing/changing, and finally relate a bit to Ubuntu. That latter point was added on request, and I will remain objective and talk about the status quo, problems, and benefits (so it won't be a subjective take like this, although I certainly will address some of the issues). Comments welcome!
[*]the slides were prepared for S5 and can be viewed directly in modern browsers. The best experience is with a 1024x768 or higher resolution. Here are instructions on how to browse them (though you probably don't need them).
Update: the talk went well. I planned it to be 40 minutes (which is ambitious for 25 slides, but I can zip through them at high speed if I need to), and I learnt that the room was scheduled for two hours, so I added about 5 slides and went into it without a clock... and totally enjoyed delivering a talk with almost no time restrictions, which turned out to last just under 2 hours in the end. I talked a bit too much about what Debian is, then delivered the status report on the "etch" release, and in the end also had quite some time to spare on talking about our current and future challenges, as well as discussing some of the problems with the distribution and the project, as I see them. I would like to thank the attendants for making their way to the campus on a Saturday, and for their attention throughout the two hours of presentation without a single one of them giving me the impression of disinterest! We ended in a bar with beer in the afternoon, of which I probably had a little more than I should have had, given that I needed to be a little more productive that day. But even that worked out well. Laura, the society's president, offered me an honorary membership with skynet.ie, which I gladly accepted [ ], and I enjoyed hearing some of their stories about the past and the present. Given that university computer societies may be somewhat in decline, I think they still have their rightful purpose, and they are definitely a great place to gain experience and have a lot of fun. Thanks, skynet.ie for a good time! And now on to meet them at a pub...
[ ]If nothing else, then an account on skynet.ie should allow me to port-forward or even use VPN from Zurich, to access some of the electronic library resources available here, to which the University of Zurich has not subscribed.

17 August 2006

Wouter Verhelst: SMTP-time bayes filtering

Russell, ... but I ranted on those two before already on this blog, so won't repeat that. What I wanted to say: Of course it's possible to do bayesian filtering at SMTP time. If you use the exiscan features of Exim 4 (available in the mainline since exim 4.50, or as a separate patch before that), you can run external programs (virusscanners and/or SpamAssassin's spamd) on the mail data. Read section 40, "Content scanning at ACL time", of the exim4 info file for the documentation.

Martin Zobel-Helas: Why m68k should not become release architecture for Etch

m68k is blocking the release for Debian Sarge r3 now for longer than a week. We are currently only waiting for one (essential) package from this arch: debian-installer. For some curious reasons this package did not build on any of the build-deamons and as porter machines are still locked down after compromise one can’t even do hand-builds. Wouter is currently doing this on one of his machines, but that might take a while… So one can still say what we said pre-sarge release: “It’s ready when it’s done”. Disclaimer: This is my personal opinion and reflects neither the opinion of the whole release team nor is consensus there.

Mark Brown: Postfix SMTP rejection

Russel, Postfix does support SMTP time rejection using either a SMTP based mechanism Postfix provides or Sendmail Milters. It’s particularly nice to see the Milter support in there - the amount of wheel reinvention with things like antispam support always depressed me.

16 August 2006

Andreas Metzler: callback problems

Russell, you are unhappy that you cannot send mail to some addresses because the recipients are using callbacks, trying to verify your address. Actually that looks almost like a feature, the system is preventing you from sending mail to somebody who would not be able to reply to you. ;-) If you wanted to break this nice symmetry while continueing the usage of blacklists to reject all mail from the blacklisted hosts but allowing smtp callbacks to succeed you could reject these on pre-DATA stage instead after RCPT, i.e.
 -> RCPT TO:<foo@example.com>
<-  250 Accepted
 -> DATA
<** 550 go away

15 August 2006

Steve McIntyre: DNSBL and SMTP callouts

Russell asks about the interaction between blocking and callouts. If people have configured their mail server to block connections completely using blacklist data, then they're quite simply asking to not get mail. The traditional way to implement these checks is to allow connections, MAIL FROM and RCPT TO. Drop connections at the DATA stage. Normal callout connections will never get that far. Aside: I'd have simply added this as a comment on your blog, but I'd need to set up a blogger.com account (which is a pain) and they currently don't seem to be allowing any of the 20-ish account names I just tried, including random alphanumerics (worse).

13 August 2006

Andrew Pollock: [tech] More benchmarking

When I did my Red Hat Certified Engineer training, the second time around (when I updated from Red Hat 7.1 to Enterprise Linux 3), the trainer mentioned this Ext3 vs Reiserfs benchmark that Gurulabs performed. Probably because it had such a memorable name, I've remembered it and referred people to it, and referred to it myself, a few times over the years since. So it seemed only fair to try out their benchmarking methods (i.e. use NetApp's postmark with a few different settings) on the uber-disk as well, while I had it idle. So I did. Firstly, I ran it locally on minotaur, the piddling little 866Mhz Pentium III, with 320Mb of RAM (but with 1.5Tb of disk attached directly via USB), and then I ran the exact same tests from teevee, the box destined to become my MythTV server (3.0Ghz Pentium 4, 1Gb of RAM), with the disks mounted with ATA over Ethernet. This was with a JFS filesystem on a single logical volume striped across four physical volumes. I ran the tests three times, just like the Gurulabs benchmark, first time around, it was with: The idea being that this will generate around 150Mb of data, which should all fit in the RAM (of either system) The second time around was with: The idea being that this, generating 1400Mb of data, will exceed the RAM on both systems (but not uniformally, obviously). The final run was a total thrash with: This one causes about 19Gb of data to be written, and absolutely hammers the living daylights out of the disks (or the network, and the disks, in the case of ATAoE). So, now for the results:
Test case 1, with locally attached disks
Time:
        22 seconds total
        21 seconds of transactions (2380 per second)
Files:
        27170 created (1235 per second)
                Creation alone: 2000 files (2000 per second)
                Mixed with transactions: 25170 files (1198 per second)
        24986 read (1189 per second)
        24697 appended (1176 per second)
        27170 deleted (1235 per second)
                Deletion alone: 2340 files (2340 per second)
                Mixed with transactions: 24830 files (1182 per second)
Data:
        149.53 megabytes read (6.80 megabytes per second)
        161.85 megabytes written (7.36 megabytes per second)
Test case 1, with ATAoE attached disks
Time:
        27 seconds total
        25 seconds of transactions (2000 per second)
Files:
        27170 created (1006 per second)
                Creation alone: 2000 files (2000 per second)
                Mixed with transactions: 25170 files (1006 per second)
        24986 read (999 per second)
        24697 appended (987 per second)
        27170 deleted (1006 per second)
                Deletion alone: 2340 files (2340 per second)
                Mixed with transactions: 24830 files (993 per second)
Data:
        149.53 megabytes read (5.54 megabytes per second)
        161.85 megabytes written (5.99 megabytes per second)
Findings
A degradation in performance, sure, but not a huge one. Graph of the results
Test case 2, with locally attached disks
Time:
        218 seconds total
        209 seconds of transactions (239 per second)
Files:
        27144 created (124 per second)
                Creation alone: 2000 files (400 per second)
                Mixed with transactions: 25144 files (120 per second)
        24830 read (118 per second)
        25094 appended (120 per second)
        27144 deleted (124 per second)
                Deletion alone: 2288 files (572 per second)
                Mixed with transactions: 24856 files (118 per second)
Data:
        1405.24 megabytes read (6.45 megabytes per second)
        1535.91 megabytes written (7.05 megabytes per second)
Test case 2, with ATAoE attached disks
Time:
        165 seconds total
        158 seconds of transactions (316 per second)
Files:
        27144 created (164 per second)
                Creation alone: 2000 files (1000 per second)
                Mixed with transactions: 25144 files (159 per second)
        24830 read (157 per second)
        25094 appended (158 per second)
        27144 deleted (164 per second)
                Deletion alone: 2288 files (457 per second)
                Mixed with transactions: 24856 files (157 per second)
Data:
        1405.24 megabytes read (8.52 megabytes per second)
        1535.91 megabytes written (9.31 megabytes per second)
Findings
Whoa, who'd have thought this? Better performance over the wire? I'm blaming the fact that minotaur is a bit of a weakling compared to teevee, and teevee had a better caching advantage with more RAM. Mind you, you'd expect to see the same for the first test as well, unless size is a factor. Inconclusive results I guess. Graph of the results
Test case 3, with locally attached disks
Time:
        7356 seconds total
        7310 seconds of transactions (27 per second)
Files:
        104099 created (14 per second)
                Creation alone: 4000 files (117 per second)
                Mixed with transactions: 100099 files (13 per second)
        100246 read (13 per second)
        99560 appended (13 per second)
        104099 deleted (14 per second)
                Deletion alone: 4198 files (349 per second)
                Mixed with transactions: 99901 files (13 per second)
Data:
        18995.06 megabytes read (2.58 megabytes per second)
        19738.85 megabytes written (2.68 megabytes per second)
Test case 3, with ATAoE attached disks
Time:
        12320 seconds total
        12111 seconds of transactions (16 per second)
Files:
        104099 created (8 per second)
                Creation alone: 4000 files (32 per second)
                Mixed with transactions: 100099 files (8 per second)
        100246 read (8 per second)
        99560 appended (8 per second)
        104099 deleted (8 per second)
                Deletion alone: 4198 files (49 per second)
                Mixed with transactions: 99901 files (8 per second)
Data:
        18995.06 megabytes read (1.54 megabytes per second)
        19738.85 megabytes written (1.60 megabytes per second)
Findings
So presumably the network latency made its presence felt with data volumes of this magnitude. Graph of the results

12 August 2006

Daniel Burrows: Dynamic typing strikes again.

Traceback (most recent call last):
File "/usr/bin/reportbug", line 1731, in ?
main()
File "/usr/bin/reportbug", line 1471, in main
listcc += ui.get_multiline('Enter any additional addresses this report should be sent to; press ENTER after each address.')
TypeError: argument to += must be iterable


BTW, for anyone who reads my blog and not Planet, this has a simple fix.

Martin F. Krafft: Summer in Limerick

As some of you may know, I am currently in Ireland, spending most of the summer at the Irish Software Engineering Research Centre to get a start on my Ph.D. research. This is the story of how I got here and how it's been so far. In the middle of July, I left my beloved city of Zurich and headed for Dublin. I commenced my stay in "the green country" with a three-day Debian workshop for the Google Europe sysops, which was intensive and yet enjoyable. I had between 4 and 10 participants, and the syllabus was to cover most everything, from APT basics to advanced concepts. That's a lot for three days, and I usually advise clients to consider a five-day or even two-week course instead, but after convincing the organiser to plan for three days rather than just two, I figured I'd be dealing with pretty good people anyway, given Google's hiring standards. I was not to be disappointed. We started the course with installation problems, because the 2.6 kernel install which I suggested could not deal with the SATA driver in the new IBM T43p notebooks which the participants were using. While one guy decided to try a 2.4 install with the IDE-sata driver, I opted to go down the debootstrap route instead, and was especially delighted -- at first -- to learn about a working netboot setup in the Google LAN. My joy vanished when I found the Ubuntu rescue image not to contain debootstrap, so I didn't have much choice but to prepare a root tarball and offer it for wget download. This worked, and after manual tweaking and making the system bootable, running into some issues after inadvertedly upgrading the entire system to the backports.org archive (which still does not offer a proper default pin), we decided to just go with testing and be done with it. I have to say that I really like courses where stuff does not work, as I believe those to be far more valuable to the participants. This time around, it was also the first time (after having taught maybe 60 or 70 courses in total) that I did not let myself get stressed out. Realising this put me in a great mood and made those days even more enjoyable. The rest of the workshop went without further complications, but judging from feedback over cigarettes, lunch, or the evening beer(s), the guys and girls still appreciated it. I have to thank Google and all participants for a great three days of hospitality and challenges, interesting discussions and fun. I really ought to reconsider my decision not to accept their offer for a sysop position... The last day saw me getting sick though, it must have been the air-conditioning. When I reached the hotel after the course, I definitely knew I had high fever and was developing a bad headache and cough, so I didn't get to enjoy a Friday night out in Dublin. Instead, I slept from 18:00 hours until the late morning, when I had to drag myself to the train station to catch the train to Limerick... which was painful, but I managed. Some time in between, I tried out nstx and managed to get a decent SSH connection to the outside world from the hotel room (just don't forget the -a -x flags!). Arriving in Limerick, I registered for the student apartment I had rented and found myself in a small room with a bed and desk, my own bathroom, a common room and kitchen I share with my room mate (whom I barely saw), including a TV, fridge, oven, microwave, and enough "little stuff" to make me conclude that this place was livable -- for 60 /week not a bad deal. I spent most of the weekend sleeping, but it was not until Tuesday that my state had returned to normal. The place also has an Ethernet jack, but that turned out to be unusable as it was (a) behind a fascist firewall, and (b) on the same network as about 40 other users, 17 of which seemed to be running peer-to-peer filesharing clients all hours of the day. In my office at the university, I found myself in the same situation as (a), but at least I managed to install OpenVPN, and dsniff and was thus ready to take back the net in my apartment. I wrote a little script which would (a) spoof ARP replies from the router for all hosts for a few minutes, (b) analyse the traffic it got to identify obvious P2P machines, and (c) proceed to poison their ARP cache every few seconds, effectively shaping their connection. I had to go this way, because tools like tcpnice (part of dsniff) do not work in a switched network very well, and neither did macof. Unfortunately, I lost the script in the recent XFS fiasco, but the major P2P offenders seem to have left anyway. Thanks to OpenVPN, I also got VoIP working and am happily tunneling through the university's proxy (which otherwise would require me to use the SOCKS4 proxy protocol with proxychains, which would be a nuisance). I really don't understand why a university blocks outgoing traffic. Oh well... It's been three weeks since I've come to Limerick, and my feelings are mixed. I've been spending most time in my (temporary) office (pretending to be) doing work, I have not really acquainted myself with the food here, the university campus is filled with hundreds of 14 year old summer school students but nobody of my age, and, well, research is coming along slower than I had hoped. I guess that's normal in a sense, but I also know for sure that I have a lot of work left to do on my discipline. I am a master of procrastination, you see, and Debian is a dangerous drug, a black hole that sucks in your time while it excites your synapses and splashes endorphines all around. But I've not lost my hope at the very least... Thanks for caring.

11 August 2006

Martin F. Krafft: XFS and zeroed files

Erich complains: "If the file is damaged, just fill it up with zeroes?" (in response to my recent post on filesystem problems). Update: I rewrote the second sentence of the next paragraph (up until and including the footnote) to get things right. Thanks to Russell Cattelan for providing the info. This must be the most misunderstood feature of XFS. What happens is that XFS logs all metadata changes to the journal, except for the inode size, which gets flushed to disk immediately for performance reasons [*]. At this point, the file will actually be a sparse file, which is nothing more than a file whose metadata lists a file as being of a size different than it currently is (I realise the "sparse" does not really apply when the file is "overfull", i.e. when the metadata lists it as smaller than it really is, but I am lacking a good word for that). The disk extents get allocated only when the data actually hits the disk (that's XFS's famous delayed allocation mechanism). If the power fails before the data was flushed to disk and the journal entry cleared, XFS will serve zeroes, rather than the potentially random or sensitive data that is actually on disk. This is a good thing.
[*]since almost every write() changes the file size, it would be a massive performance hit if every size change was logged. However, XFS actually violates its own journaling rules by doing this.
You can run into more or less the same problem with any journaling filesystem; the others just don't serve zeroes. Instead, they give you the data that's physically on the medium. Imagine the situation when the corrupt /etc/motd suddenly becomes a window to your previous /etc/shadow contents... I really prefer how XFS handles that. Sometimes you do get the old data back with the other filesystems, but this is because the filesystems may reuse the blocks of the old file. So it's a trade-off, and your choice between security and, uh, convenience. The only way to protect against this is to use "physical-block journaling" (as opposed to "logical journaling"), which is only supported by ext3 as far as I know (option data=ordered), at a massive performance loss. See this mailing list post by Theodore Ts'o for more info. Thanks to Alceste Scalas for sharing it with me. PS: Thanks to Wessel Dankers and Eric Sandeen for their help on #xfs. Update: Again thanks to Russell Cattelan, I just received word that code has been added to the 2.6.17 kernel which will flush an inode at close if it was truncated at some previous point. This should take care of many of the zeroed-file issues. Update: RazorFS also supports data=ordered. Thanks to Hans Kratz for pointing this out. He also adds some more information, parts of which I've written about previously:
One of the major problems of all journalled filesystems especially on notebooks/desktop machines leading to filesystem corruption is the harddisk writeback cache (enabled by default). With the writeback cache some writes are not immediately written to disk Now if a crash happens some of the data may not have hit the disk. The journalling filesystems however need a way to rely that the certain writes have hit the disk to ensure filesystem consistency. There are two solutons: Enable write barrier support in the filesystems (avalable for ext3 since around 2.6.8, mount option: barrier=1, available for the other filesystems as well now probably) or disabling the write cache altogether with hdparm/sdparm.
XFS supports barriers as well, but unfortunately not yet on non-physical media, like RAID or dm-crypt. ext3 seems to work okay on both. Enable your barriers today!

Philipp Kern: Broken reportbug

People are going crazy when reportbug is broken, not able to report new bugs. Well, now I know how we could release etch in time... Here is the fix:
--- reportbug_ui_text.py.broken 2006-08-11 14:43:01.000000000 +0200
+++ reportbug_ui_text.py        2006-08-11 14:43:28.000000000 +0200
@@ -223,6 +223,7 @@
             break
         list.append(entry)
     ewrite('\n')
+    return list
 def get_password(prompt=None):
     return getpass.getpass(prompt)
Pipe it into cd /usr/share/reportbug; patch. Well, I hate my blog, I does not display heredocs correctly, otherwise that would have been a copy'n'paste receipt. Though I don't know if the patch fixes all the bugs introduced.

10 August 2006

Martin F. Krafft: Blackouts and encrypted filesystems

After some recent filesystem fun, I now have a laptop with encrypted partitions, using dm-crypt and LUKS, conveniently installed with partman-crypto. Pre-Scriptum: I have updated my previous post about XFS troubles in response to Ingo's statements. Just in case you care... The following post poses a question and a meta-question: As I was cycling home today, I thought about what would happen if my laptop lost power now in the middle of a write operation. Sure, ext3's journal would make sure the filesystem was consistent, but what about the actual data on the disk? Journaling works by writing a change to the journal, then writing it to disk, then deleting the enty from the journal. If the filesystem is mounted and it has entries in the journal, those are "played back", meaning they just get written to disk again, overwriting potentially incomplete data written as the power was lost. Yes, this is simplified, but it'll do for now. With encrypted filesystems, there's an important layer between the filesystem and the physical storage: the encryption algorithm. An encryption algorithm like AES works on blocks, by default 64 bytes in size. 64 bytes are not a whole lot, but given the nature of hard drives, it's not possible to write 64 bytes to the drive atomically [*]. Thus, conceivably, it could happen that your power cuts out after only 32 bytes have been written. I don't believe dm-crypt does journaling for the encrypted data it writes, so effectively, a power loss on systems with encrypted filesystems almost certainly means data loss? Please correct me if I'm wrong! And the meta-question would be: where would I go to discuss such issues? I've abused debian-security previously, the issue seems too general for the dm-crypt mailing list, there is cryptography t metzdowd.com but somehow this does not seem to be a crypto problem... so where would you take this? Let me know...
[*]

In a computer architecture course in college, the prof raised the interesting point that between the loss of power and the actual disappearance of all current in the circuits, several million operations are possible on modern machines. I have not yet heard of any computer or hardware device making use of those precious cycles.

Update: actually, several manufacturers are making use of the precious cycles. See for instance this post, which describes some stuff done by SGI. Hanspeter Kunz also adds that harddrives use this time to park their heads.

9 August 2006

Thom May: The Solaris Installer

I had my first introduction to the Sol10 installer today. Oh My. For anyone who has ever complained that Debian is hard to install, go try solaris and then come back. Dependency resolution? Sure, we can tell you what dependencies you’ve missed. Then you get to go hunt around the appallingly laid out tree of packages (subtrees with one package in, no indication of what subtree a requirement might be in) trying to find the thing. Then you hope you’ve not missed something else, otherwise, repeat ad infinitum. And the granularity of the thing is just dreadful. I’ve ended up with all kinds of crap installed that I’ll never use just because something else that I’ll never ever use, but is a required package, depends on it. And Heaven forbid that you should wish to search for something in the package list. I walked back into our office and the Solaris Admin I share an office with tells me about all this cool stuff you can do, that is utterly undocumented in the manual as far as I can tell, that would actually be a really useful default, like Live Upgrades. And don’t get me started on the package system itself, especially not when you have to throw the abortion that is Blastwave into the mix. Tim Bray has also mentioned just how good the Debian/Ubuntu packaging system is in comparison, and wonders why Sun aren’t investing quality engineering time in making it work on Solaris. In contrast, the Ubuntu installer’s approach of installing the bare minimum and letting the packaging system do the work post install feels to me like the perfect method for installing a server.

8 August 2006

Martin Zobel-Helas: mostly done

The moderation queue of proposed-updates is now down to four packages, with one waiting to be accepted by ftpmaster. As soon as the Debian Installer is now build on the still missing architectures (alpha, arm and m68k), we should be ready to release Sarge r3 realy soon. Update: two packages are now waiting for ftpmasters, thanks to dannf, who’s first accept this was.

Next.

Previous.