Search Results: "ina"

22 July 2006

Andree Leidenfrost: Bag of Little Fixes

mondo-2.08-2-3 and mindi-1.08-2-1 are now in incoming and hopefully soon at a Debian mirror near you.

Apart from (finally) fixing the compiler warnings on amd64 by changing some int variables to long and a fix for image sizes getting wrongfully changed in mondorestore's partition editor, this is mainly about reducing screen corruption during restore - for people using RAID and/or LVM, the newt screens should not get partially or totally overwritten by some crap anymore.

I spent quite some time on the screen corruption fixes, partially because I have little knowledge of newt, partially because restore runs are always a pain to trouble-shoot and partially (especially in retrospect) because I can be a bit thick at times. ;-) However, I feel that fixing these types of "cosmetic" issues is well worth the effort, because it improves user experience and increases faith in the software - pretty important, particularly the latter, especially for disaster recovery software like Mondo Rescue. (It obviously still has to live up to it! ;-))

The new versions were tested on sid amd64 and i386 with native kernels and using NFS as backup media. Oh, and mindi should now also build out of the box on Ubuntu Dapper Drake.

Ross Burton: DBus Performance

Ah, the classic DBus performance issue has reared it's head on Planet Gnome again. I'll chip in my thoughts on this, as I've done a fair bit of profiling on a large user of DBus. When I first ported of EDS to DBus, it didn't perform as fast as the original ORBit implementation. However when I dug out OProfile I discovered that the main bottle necks were deep in EDS itself, and DBus although in the profiles, wasn't anywhere near the top. We spent a few months optimising EDS-DBus (there was some serious low-hanging fruit) and by the time we'd done the obvious optimisations, EDS-DBus was faster than upstream EDS for the typical usage (running a book view, which happens every time you search in Evolution). For some methods EDS-DBus was still slower than EDS, and getContacts() is a perfect example. This method takes a query, builds the set of contacts that match, and sends it back to the client in a single list (compared to book views that do the same thing incrementally, and provide future updates). When profiled you discover that libdbus and libc are the top offenders, taking almost 70% of the runtime. The benchmark was asking for all contacts, so EDS-DBus was sending a 150 contacts as vCards over the bus in a single list, which amounts to about 100Kb of data. Now, this gets copied when it enters the library, copied again as it enters the sockets to the bus, which then sends it into another socket to the client, which then makes a copy. These copies really hurt, and are one of the things that ORBit does better than DBus: it copies less frequently and has generally had more optimisation time. There are several ways of making it better. In conclusion, the DBus vs ORBit performance issue isn't a real one generally. It's a rare case where the cost of the transport is the bottleneck (generally only in fake benchmarks), and when the transport is the bottleneck, there are generally other ways of optimising the code: as Havoc says DBus makes doing true asynchronous method calls trivial, and if you are sending huge amounts of data down the bus a private connection should be used (which will also make you a nicer citizen on the bus, as sending huge messages will clog up the tubes). NP: Kind Of Blue, Miles Davis

Erich Schubert: Students' Triathlon

Summary: Think, Bike, Dance. Best grade in final exam for my previous six years of life. Biked 20 km in 50 minutes in city after-work traffic. Partied 9:30 hours, dancing most of that. Biked 20 km back, in 55 minutes.

21 July 2006

Randall Donald: The wife and the swan

So last night my wife picks up my
Openswan: Building and Integrating Virtual Private Networks
book and starts reading it aloud. She started with the Introduction which is about the need for cryptography and history of the Internet and found it fascinating. She like the line about "The Internet was, in fact, not invented by Al Gore." So, although I suspect the rest of the book may not be as interesting to her, kudos to Paul Wouters and Ken Bantoft for writing a good Introduction.

Norbert Tretkowski: Yet another try to install Ubuntu

Yesterday I got my new workstation, a Dell Optiplex GX620. And after my bad luck with Ubuntu 6.06 in my IBM T42 notebook, I wanted to give Ubuntu another try. And it failed again. Installation with the Alternate CD just hanged when writing much to the harddisk, e.g. when installing the packages. I had to reboot the machine, which ended up in a kernel panic. This was reproducible a few times, but happened at different positions during the installation. I played around with some apic, acpi and pci boot parameters, but none of them helped. Then I decided to try it again, without any special boot parameters, and finally, it worked! Packages unpacked, grub installed, and reboot. It ended up in grub telling me "Error 17: Cannot mount selected partition". The reason was because the installer used one of my two swap partitions for the root device in grubs menu.lst. After fixing this, the machine booted fine. Everything looked good, until I rebooted the machine. Again a kernel panic during shutdown. This kernel panic during shutdown still happened after upgrading the kernel to the latest security update. Then I took a Debian CD, and it just worked. Altogether I really can't understand the hype around the Ubuntu distribution. Compared with Debian, it's indeed easier at some points, but it's also much more broken.

Evan Prodromou: 3 Thermidor CCXIV

Last night's CC Salon in Montreal went extremely well. I spent the time haranguing Marcus and Tina Pipers (the co-director of Creative Commons Canada) about the evils of anti-DRM clauses in licenses. (See Free content and DRM for my opinionated take on this matter.) Apparently there was a lot of talk about this at the iCommons summit in Brazil. Amita June enjoyed the noise and attention and spent an inordinate amount of time patting one hacker's very long beard. We'll see what kind of psychological symptoms that develops into later. tags:

Ben Macintyre on Wiki It was kind of tiring to see Ben Macintyre's note on How wiki-wiki can get sticky in The Times Online.
  • Many years ago, I wrote a book about a Victorian crook called Adam Worth, a subject so obscure that no one had ever written a book about him before, or since. When I found an entry for Worth on Wikipedia, I was at first astonished, then flattered to find the book cited in the references, and then slightly infuriated: whoever had written the entry had plainly read my book and summarised it, but added several small but irritating errors.
Wikipedia isn't perfect and contains some errors? Oh, really? Boo hoo hoo. Yawn, turn the page. Wait, though; what's that last paragraph say?
  • At first, I ignored the mistakes. This was only Wikipedia, after all. But the landscape of knowledge has changed since then, and I have joined the club. Wikipedia should always be taken with a pinch of salt. But the more we contribute and revise, the less salt we will need. We are all Wikipedists now.
Huh. A mainstream journalist who realized the way to deal with errors in Wikipedia is to fix them? Am I dreamin'? tags:

John Goerzen: RedHat Gripes

Lately we are looking at groupware options, and have been looking at Scalix and Zimbra. We may need the features in the proprietary versions of these products, unfortunately.

So I downloaded an evaluation copy of Scalix.

They say they support RedHat and SuSE. Fine, I think, I'll just alien the RPMs to debs and be happy.

Not so fast. They have a whole proprietary install system. They check for /etc/redhat_release or /etc/SuSE_release (or something like that) and do different things depending on what is there. Ugh. Why can't these proprietary vendors just target LSB? The differences seem mostly related to init anyway.

So I touch /etc/SuSE_release into existence, run the installer again. It complains that DISPLAY is not set. UGH. I log in with ssh forwarding, to root (sigh), and run it again.

Now it complains that the SuSE_release file doesn't contain a valid release. I google a bit, but the file format doesn't seem to be documented anywhere. I extract it from an RPM somewhere, but no luck.

So, I figure at this point, let's try an actual RPM distro. I'm running this in a Xen domain anyway, so it should be no big deal, right?

I think CentOS will be a good choice. It's RHEL with the non-free stuff stripped out. And they support RHEL and don't need any non-free stuff. I google, and find instructions for installing via rpmstrap for Xen uses.

Let me say, rpmstrap is not nearly the nice tool that cdebootstrap is. rpmstrap totally hosed the networking on the Xen host machine, requiring me to reboot to get it back to proper state. The resulting install wouldn't boot, either -- I later found out that, even though I listed explicit devices in /etc/fstab like usual, it requires labels on all my partitions to boot. Ugh. There are a host of other problems with the rpmstrap-installed chroot, and it's broken beyond my ability to repair due to problems with the rpm database.

So then I downloaded the "Server" CD for CentOS, which is supposed to have just the stuff a person would need for a server, and leave off all the graphical tools, multimedia, etc. I fired up VMware and did an install. Then I booted Debian From Scratch in VMware and used tar and netcat to copy the installed image over to Xen.

I got it booting fairly easily. But now I start to remember why I had this instinctive gag reflex last time I used RHEL.

First off, the network configuration, by default, is tied to the MAC address of your ethernet card. So if you replace your Ethernet card, your network is broken by default.

Then, there's the way the network is brought up. It uses arping as part of its procedure to bring up a NIC. If it sees a reply anywhere on the network with the IP you're trying to assign, it leaves the NIC half-up -- it's been ifconfig'd up, but without an IP. So that's right, if somebody happens to have a rogue device plugged in at the moment your server boots, your server will come up without a network configured. This is *Enterprise* Linux and it's pulling this sort of thing. Terrible design.

Next, there's the way the network is *configured*. There are commands such as system-config-network-tui, -gui, -cmd, -druid, etc. I go for -tui. to start with. It's a dialog-like interface, and asks the basics like IP address, etc. It doesn't have any way to configure more than one Ethernet card that I can tell. And some of the settings -- like nameserver -- apparently require you to press F12 to visit. But the program doesn't recognize F12 as sent by an xterm, so it doesn't work.

All the other options require X. So, I reluctantly ssh -X into it as root and run system-config-network-gui. It doesn't work -- complains it can't find DISPLAY. Strange, I think; DISPLAY is set properly to localhost:whatever. It turns out that /etc/hosts is empty by default, so the thing can't resolve localhost! Argh. I add a line to /etc/hosts and it fires up.

This tool works decently. I save, uncheck the tie to a MAC address box, and exit. I then think it might be good to fire it up again and see what it did. I try running it again, and get the same error about DISPLAY. The stupid tool blew away /etc/hosts and replaced it with an empty file! This is NOT what I would expect from an Enterprise Linux. You don't blow away a config file the administrator touched without asking, EVER.

Next, I figure, let's try installing the XFS tools so I can switch the root filesystem to xfs. I start with "yum update", which doesn't quite do what I expect. (It is more like apt-get update && apt-get -u dist-upgrade) So I hit Ctrl-C, but -- surprise -- IT DOESN'T WORK. I press it a few more times, and it seems to just make the downloader cycle through mirrors because of a "download error". So I hit Ctrl-Z and kill %1. I have my prompt, but it's STILL DOWNLOADING STUFF and spewing all over my console. Ugh.

I finally use ps and kill -9 and eventually get it killed off. Stupid thing.

I don't understand why anybody would want to use RedHat Enterprise Linux in an enterprise. It seems more suited to a hobbyist system at home. From reading some forums, it seems there are quite a few people out there using Debian for enterprise systems for similar reasons.

So now, maybe I'll have the chance to actually try Scalix.

(BTW, our intern got Zimbra installed on Debian just fine, so that's a plus for it.)

Mike Hommey: Firefox 2.0b1 in experimental

After quite some work on packaging it, Firefox 2.0b1 is finally being uploaded to experimental. It is linked to the system libmyspell instead of the bundled one, and can use system dictionaries like Thunderbird already does. I’m also working on using the system libsqlite3, but it first requires some build changes in the debian sqlite3 package and some more work to see if it’s really feasible… you see, they like to take external libraries and modify them so much as adding symbols, changing some internals… and these changes only exist in the mozilla codebase… (the 2 main examples of that being expat and sqlite3) It also includes a working DOM Inspector which upstream didn’t include in their release because they are in the process of moving the component in the core. I also had to fix some more the build system so that some things would be installed by make install (they tend to forget it), others would just be installed (mistakenly removed rules…) or make clean would do its work: cleaning (they tend to forget to flag files for removal when they create it in a Makefile). All that makes me wonder what their review/super-review thing is worth. Anyways, please give it a try, especially if you reported a bug on earlier versions, it would be helpful if you closed bugs that are fixed by this release (don’t forget the ‘Version:’ in the closing message so that the BTS version tracking would do its work). Update: Upstream Firefox 2.0b1 has a working DOM Inspector. It only appears it just doesn’t build correctly the way we build Firefox… might be some missing changes to the Makefiles. Again. *sigh* Update 2: It was trickier: missing something to make the inspector symbols public instead of having a hidden visibility… Update 3: It was actually my fault. /me goes hiding under a rock. And I managed to remove a comment to this post when removing spam… *sigh*. I think I need to take a break.

Andrew Pollock: [life] Wackiest. International departure. Ever.

And I haven't even left yet. So I'm now sitting in the domestic terminal, waiting to board my international flight to Sydney, for SAGE-AU'2006. This is after a very slow check-in with my least favourite airline, United, because they had to do everyone's check-ins sneaker-net to some remote location because the "computers were down". I was sitting in the departure area (post x-ray machines) eating some dinner (with a metal fork and a plastic knife, incidentally) and having a beer, and an announcement came through that we had to move to a gate in the domestic terminal. This is after I've checked in, surrendered my I-94, and done the bullshit US-VISIT thing. I'm effectively out of the country now. This made me realise, that if I wanted to "go dark", all I'd have to do is check in for an international flight, check out of the country on the bullshit US-VISIT thing, and then turn around and exit the international departure lounge area and disappear. Seems like a rather serious flaw in the system to me. Oh, and because I'd exited the international x-ray area, I had to go through a way busy domestic x-ray security check point. They're now calling up passengers for "documentation checks". This flight is so not leaving on time.

Carlos Villegas: Now Parallel execution works better (SoC 2006)

A bug was found when doing parallel execution with startpar. The scripts seem to have been executing twice and it is being fixed by Petter Reinholdtsen. To compare the effect of the bug, the parallel execution boot time using startpar was compared with the one using "shell". The main difference between using CONCURRENCY=startpar and CONCURRENCY=shell in /etc/default/rcS is that the latter doesn't care about the order in which messages are printed to the screen.

The issue made me try things again and this time I didn't accept the default script reorder from insserv. Insserv seems to have the following reordering issues:

a)repeates scripts in /etc/rc2.d that were already started in /etc/rcS.d
b)doesn't reorder /etc/rcS.d
c)puts stop-bootlogd near the beginning in /etc/rc2.d and bootlogd while sysklogd and klogd are at the middle.
d)includes scripts present in /etc/init.d that were not previously executed at boot time.


Issues (a) and (c) were corrected and the boot time was 2 seconds faster than without insserv(See bootcharts).
While testing parallel execution, using CONCURRENCY=startpar, there was no improvement (the bug hasn't been fixed) and while testing with CONCURRENCY=shell there was a 4 second time improvement from the original system without insserv. (See bootcharts)

20 July 2006

Holger Levsen: tuxtype and tuxmath updated

Finally, after 6 month or so, new updated packages for tuxtype and tuxmath are available. Due to the much appreciated summer heat, I will not go into more detail, especially as I already announced this to the debian-edu mailinglist. Instead I'm going out in the even more appreciated rain now ;-)

Erich Schubert: Etch artwork

Dear etch-a-sketch-lovers. Or basically, anyone who cares about etch hopefully being released in december. If you aren't busy with fixing RC bugs, probably because you don't trust your own skills enough (or don't have upload privileges, or are taking a break of your favourite BSP) - how about working on Debian artwork? Ubuntu is working on their artwork for Edgy. I'd love Debian to have (optionally) some cool Debian look. I mean, we'll probably be never as polished as Ubuntu artwork-wise, but we sure could do a lot better than now. That is, do at least something... You don't need to be a DD to work on this. You can just use the existing linux theming web pages such as art.gnome.org, Gnome-look.org and KDE-look.org to share your artwork, and maybe use the Debian Wiki to coordinate your efforts. If enough people are interested, you probably can organize a mailing list, too. P.S. Although the release will be codenamed "etch", there is no need to make the default desktop look like an etch-a-sketch. Just make it something smooth... ;-) [Update: The EtchGNOME status page lists "update desktop-base" as work in progress. This is where the artwork will be "deployed". However, KDE and XFCE integration is still a bit lacking apparently.]

Evan Prodromou: 2 Thermidor CCXIV

I talked with Raymond King and Mark Dilley at RecentChangesCamp in February (uh... I mean Pluvi se) about their plans to develop Mark's excellent SwitchWiki wiki directory into something... more. I'm glad to see that WikiIndex is really picking up steam. It's becoming my first-stop for getting information on what's wiki, what's not, and who's doing what. The site uses MediaWiki, but the principles and community are very much rooted in the traditions of Ward's Wiki, MeatballWiki and CommunityWiki. I really hope this site keeps up it's momentum and growth. tags:

CC Salon in Montreal Tonight is the first Creative Commons Salon in Montreal. The get-together is at Caf l tranger, 680 Sainte-Catherine Ouest (at Alymer) at 19h30. More details on the Creative Commons Canada blog: http://creativecommons.ca/blog/?p=185 . Maj and I are trying to get a sitter for the event -- Amita June is starting to get grumpier and grumpier about going to sleep after 8PM. But I'll be there regardless. tags:

Great camping Website So, maybe I just haven't been camping a lot in other places outside Quebec in a while, but I'm extremely impressed with the quality of the S paq Web site. You can search the entire network for available campsites based on various criteria (size of tent vs. RV, for example), and then use a map-based interface to browse possible sites. The maps go down to the individual site level, and have popup descriptions of each and every site -- how much sun, how close to water, how private, etc. It's really nice. I have my quibbles -- we tend to do road-trip camping, where we'll stay in a different campground each night for a few days. It'd be nice to do all those reservations at once, but the site doesn't support that. And there are some search criteria I'd like to be able to specify (number of neighbors, access by car) that aren't possible. But as far as it goes, this is a real good site. tags:

Wikispam lockdown I've been having a real problem with Wikispam on my site lately -- several of my pages have nothing-to-sniff-at wp:PageRank values of 6 or 7, and I think that attracts a certain spammity crowd. I think that dealing with Wikispam is something most wiki sites do very well-- an active community is the best counter-measure against spam. And there are lots of good tools, like regexp filters, per-page locking, email and IM notification, and ip blocking that make it easier to maintain a site. But I don't have an active community working on this site -- it's pretty much just me. And WiLiKi, as beautiful and Scheme-y as it is, doesn't have many of the anti-spam tools that users of other wiki engines take for granted. I plan on building more anti-spam tools into the site, but for now I've just been locking the site up when I'm not writing something. It's not as wiki-ish, but it does keep my writing up more often. I'd feel pretty bad about it, but it looks like Alex locks up CommunityWiki for days at a time. tags:

Amazon man at the door Just got an order from Amazon in... full of CDs and books. When I used to live in my car (long story, there), I had my 100 favorite CDs in a box in the back. It was safe there in tons of cities -- wt:Chicago, wt:Saint Louis, wt:New York City, even wt:Monterrey and wt:Guanajuato. But I parked it about a block from It's Tops in San Francisco one night while visiting home, and one of my windows was smashed and the discs were taken. Devastating. Slowly but surely I've been re-stocking my music collection, but it's painful to buy the same album twice (and, yes, I know... I shoulda made backups! I do that now). Today's shipment contained a lot of stuff I re-bought: ''wp:The Last Waltz'', a bunch of wp:Neil Young (including the DVD of wp:Greendale), and one of my favorite albums ever, the eponymous first album from Lamb. Also in the box were a bunch of Lost paperbacks ("inspired by the hit series") and the hardback copy of Bad Twin, the mystery novel supposedly written by one of the people who died in the crash of Flight 815. Yeah, I know -- but I like the show, dangit. tags:

Best thing ever Vaguely reminiscent of the very fine Good or Bad? feature from Brunching Shuttlecocks, bestthing.info, by the enigmatic but talented xkcd, is a good way to waste a few minutes. tags:

Ross Burton: Crap Speakers Of Doom

I just discovered a use for the Treble Booster EQ on my iPod... Now that I'm working in the spare room study pretty much all the time I really miss not sitting in the sweet spot for the hifi downstairs. Hanging around I had some cheap Logitech computer speakers, so I've dug those out and plugged my iPod in. This morning I fancied a bit of Sigur Rós so I slapped on Ágætis Bryjun and after two minutes was enjoying the bass (the speakers are sub/sat) but was left wondering what happened to the drums. If I listened very carefully I could just make out a snare, but the cymbals... totally inaudible. Thus Treble Booster, which has at made this album listenable too at least. It's a pain that these speakers are so bass-heavy as my laptop doesn't have bass/treble controls. The irony is that the sub doesn't even go that low, on Flugufrelsarinn the bass drum is totally drowned out by the organ. The mid-bass is just very, very loud. Oh well, I'm planning to get a pair of small speakers (MS Avant 902i are looking good) and one of those super-cheap Super-T amps for this room at some point. NP: Ágætis Bryjun, Sigur Rós

John Goerzen: Am I being scammed?

So today my auction for the tc1100 tablet PC ended. The winning bidder:



I replied to the buyer's e-mail giving shipping prices to Nigeria and Malaysia, and restating my policy of shipping to only PayPal Verified Addresses.

So what do you all think? Is this a scam?

I was shocked at the amount of scams that sellers on eBay are exposed to these days. I've never seen this before, even just a few months ago when I sold my last item on eBay. But with this one, spammers and scammers are using the "ask seller a question" interface. One person tried to get me to use an eBay phishing clone site. Quite a few tried to get me to sell to them off eBay, to people in China, using a non-reputable billpay service. And there was just some generic spam.

So all that, plus the fact that they want me to ship to Nigeria, plus the fact that the person just registered on eBay today, is making me nervous.

So it seems odd, but I can't quite work out how somebody would actually defraud me here. Also, I'm interested in what I should do if it is a scam.

Clint Adams: The stillborn cap your knees at midnight

In the sack: Lemon and orange Wet: A tiny gulp of Lymon, like you might get from a 28cl bottle of Sprite, when you had wanted a real beverage instead. Dry down: Olive oiled HARD. The touch: The discarded husks of a bygone era. The feel: In a power vacuum, those least deserving will sally forth to claim their prize. The magic of our lives: Eh. Final verdict: Neh.

Evan Prodromou: 1 Thermidor CCXIV

Happy 1 Thermidor to everyone -- I'm sure you're all busy meditating on the virtues of epeautre (wp:einkorn wheat), the wild grain to which this day is dedicated on the French Revolutionary Calendar. Thermidor is best known for wp:Lobster Thermidor, but also for the so-called wp:Thermidorian Reaction, a revolt by moderate revolutionaries during the French Revolution against the bloody excesses of the Committee for Public Safety. I think about this because I've just been reading Bob Sutton's blog today based on the reference in Ross Mayfield's blog. Sutton is the author of an upcoming book called the No Asshole Rule (pardon my French, but that's just the name of the book). It's about how poisonous, unhealthy personalities can ruin a workplace, and how beneficial it is to support your reasonable, human employees by kicking out the jerks. They're happier, more productive, and more loyal if you show some compassion and get rid of the a-holes. Coincidentally, I also saw the Top 5 reasons why The Customer Is Always Right is wrong on reddit. It also recommends against allowing unpleasant people to ruin your workplace environment -- but here, the culprits are the customer, not other employees. I especially liked the stories from Southwest Airlines. I think I'm going to have to pick up this Nuts! book about SWA business theories. Why all the thoughtifying about jerks and meanies in business? Because I think the same principles might be applicable to Open Source and Open Content projects. Specifically, with Debian, we've had a few personalities who generate a lot of discussion and attract a lot of attention, causing some real Excedrin headaches. The project as a whole has tended to bend over backwards to respect these individual's rights and personal values and blah blah blah, but maybe it's best to just say, "You're causing more conflict that you are providing value and no matter whose fault it is, we as a group will do our job better if you leave." In another realm -- that of wikis -- I know that I personally lean on longtime Wikitravel administrators, experienced users, etc. to be "the bigger person" and treat obnoxious personalities with respect and decorum. The theory is that every user counts, and any contribution is worthwhile. But maybe it's better sometimes to show some loyalty to the established contributors with a proven track record, and let the occasional mouth-foaming weirdo go wander off and bother someone else. We've got a real conflict-averse culture at WT, but sometimes it might be good to say, "We welcome everyone's input -- except yours." tags:

19 July 2006

Alexis Sukrieh: Gimme bandwith and CPU!

I finally managed to get my new servers up-and-running (got all the worst issues you can imagine with my hardware provider), hosted in the french data-center “TeleHouse 2″. It’s a Dual Core AMD 64 that runs a “Debian 3.1 Sarge” system, rock on babe! Now, it’s time to move everything from nyx.sukria.net (my home-hosted box) to hypnos.sukria.net… (…and yeah, @backup-manager.org services are affected by these changes)

Steve Kemp: So hot, so cold, so far so out of control

The cron patch I posted previously attempted to discard any crontab file which contained non-ASCII characters was a flawed approach. Lots of people told me that this would break scripts with foreign character sets, and that was something I’d not considered. A real solution would be to read each line and test for : Looking at the code for cron is hard because it is written in a “strange” style, so I’m not even going to attempt it this level of validation. However I have produced an updated patch which should work on ASCII + foreign character sets equally well. Instead of testing for the presense of non-ASCII characts it looks for NULL characters (’\0′). Binary files should contain at least one NULL character - as a string terminator, for example - and text-files should never contain them. So I think this simple test will work for 99% of cases.
Regardless of whether this patch, or another like it, is accepted and applied I do believe strongly that whilst being liberal in what you accept is a good thing being too liberal is asking for trouble.

Erich Schubert: live.com is slooooow

live.com, Microsoft's latest branding experiment (read: their new Passport+MSN+whatever) features a new version of their search engine. Some time ago they promised they'll be the leading search engine this year... It's unuseable. They've packed it with so much AJAX that it's so slow I can't really use it on my computer (which has 1.8 GHz). I'll remain a Google user. Without even looking at your results, just because I can't really use your fancy schmansy scrolling CPU-eating thingy. Some fun from March, Reuters (original article no longer available):
"What we're saying is that in six months' time we'll be more relevant in the U.S. market place than Google," said Neil Holloway, Microsoft president for Europe, Middle East and Africa.
More relevant with Vista users that is, probably. ;-) If you want to see an AJAX-using search engine which is useable and useful, try Exalead. They have thumbnails, clustering, and still a pretty nice interface.

Next.

Previous.