Search Results: "dom"

24 July 2006

Otavio Salvador: New GRUB packages has Xen kernel detection support

Today will hit unstable the new GRUB package version. This version has a new and very interesting feature: Xen kernel detection. Until now, every Xen user needed to change the menu.lst byhand to have it suitable to boot the dom0 and that’s a very error prone way of to do that. Currently, like any other image on menu.lst, you can change the Xen dom0 kernel options and they will be use to write down the kernel entries. Very nift. Thanks by all Xen Packaging Team for their work on it.

Ross Burton: American In Britain

Britain is often said to be part of "the United Kingdom", along with several other countries, including England. Ireland is also nearby, and is considered part of Scotland, which, in turn, is adjacent to, and included in, a small country called Wales. To first-time visitors this can be confusing, especially when one learns that - paradoxically - France is considered by the British to be its very own nation!
A snipped from the first article in a series in The Guardian. It continues later:
The traveller must, of course, always be cautious of the overly broad generalisation. But I am an American, and a paucity of data does not stop me from making sweeping, vague, conceptual statements and, if necessary, following these statements up with troops.
NP: Neighbour Radio, Last.fm

David Pashley: Strict feed parsers are useless

Erich, I'm not entirely sure what you did to break Planet, but using a strict feed parser will just result in you missing a significant number of entries. People sadly don't produce valid feeds and will blame your software rather than their feeds. It doesn't help that a number of validators aren't entirely strict and that RSS doesn't have a very comprehensive spec. RSS is a lot worse than Atom, in part thanks to the Atom validator and very well thought out spec. It's for this reason that I ended up writing Eddie rather than using ROME as it was a DOM parser and just failed to get any information out of a non-wellformed feed. Eddie on the other hand is a SAX-based parser. In a recent comparison, an Eddie based aggregator managed to correctly parse several more entries than a ROME based aggregator one particular day. You also have major aggregators being liberal. Sam Ruby discussed this recently with Bloglines becoming the defacto validator; if bloglines parses it, then it's valid. We had the same problem with HTML with people making sure their pages worked in a browser rather than met the spec. I suspect the problem you had with Planet is that you failed to close a tag, causing the rest of the page to be in bold or be a link etc. This is fairly easily solvable and in fact has been with FeedParser, which is the feed parsing library Planet uses. It has support for using HTMLTidy and similar libraries for fixing unbalanced elements. Eddie uses TagSoup to do a similar thing. As a result I've not noticed any particular entry leaking markup and breaking the page. Parhaps Planet Debian just needs to install one of the markup cleaning libraries. I agree that people should use XML tools where possible. Unfortunately, most blogging tools use text based templating systems, which makes producing non-wellformed XML too easy. To deal with this I pass all my output through an XSLT filter, which means that everything is either well formed or doesn't output at all. Unfortunately I don't think everyone would be capable or willing to use XSLT.

Bdale Garbee: A True Story

Flying home from Frankfurt yesterday via Chicago, as usual I randomly selected a shortish looking line in the immigration and customs hall. When it was my turn, the agent behind the counter saw the "business" box checked on my form and asked who I work for, which is pretty standard. He then asked me what I do for HP, but before I could answer, he said "No, wait. You've been through here before. I recognize your passport." I managed to retain my composure just enough to agree that he certainly could have seen my passport before. He smiled, stamped my form, and waved me through. My wife wonders why I was so surprised.

23 July 2006

David Nusinow: burp

What a couple of weeks.

So I went off to Europe. I had planned to meet up with Daniel Stone and many others in Paris, but fate decided to piss in my cornflakes and delay my flight out of Boston so that we missed the connecting flight to Paris. I spent the whole next day in Montreal's airport, and while I got a lot of reading about Norse mythology done, I didn't have nearly as much time in Paris and didn't get to meet up with anyone. Daniel and I will have to postpone drinking and bashing X in person until a latter date. The time that I did spend there, was great though, and I got to do some of the tourist things that I didn't get to do last time I was there. Nicole, my girlfriend, had never been to Europe, so she was thrilled to see things for the first time.

Then it was off to Munich, where I did get to spend some time with Michael Banck, who is even more awesome in person than on the internets. Michael was my sponsor in Debian for well over a year, as well as my advocate, and now we're both ops in #debian together, so it was a real thrill to finally meet up with him. He was too polite to let me buy him dinner or a drink as thanks, so I'm hoping he comes to visit so I can repay him. I also got to meet several others, including release manager extraordinare Andreas Barth, which was a lot of fun. We were in town when Germany was playing Sweden in the world cup, and Germany actually won, so the whole city was singing until dawn. Ever since I've been back I've been drinking lots of Hefeveisens and wishing that they were served in 1 liter form.

Surprisingly, since I've been back, I've had the opportunity to do some programming at work and push Free Software at the same time. A co-worker of mine recently did an experiment that got her a list of 900 genes, and she wanted to narrow that list by comparing them to another list or two, but had no idea how to get this done in a reasonable amount of time. So one afternoon I wrote a small ruby script to do this, and all of a sudden my boss is looking at me wondering what other sort of neat computer things I could whip up. I also had to start doing some statistics, and I found a test that I needed to do which Excel couldn't do, so I started learning and coding a bit of R, which is pretty nice so far. The co-worker of mine just invested $800 in a two day class on learning to use an add-on for R, which is cool because I've totally failed until now to get anyone to use Free Software in the lab. The whole thing is making my labmates look at me a little funny though, since this stuff is way out of their league for the most part.

The bad news is that a few days after I came back, I found that my laptop's hard drive started making some very bad noises. I moved my data to backup computer that I'd inherited but not really used, only to find that the backup machine was prone to weird random errors. That left me without a functional computer at home. I took the opportunity to order a new machine for myself, but for now I'm kind of stuck with a web browser at work. In the meanwhile, I've taken to teaching myself statistics, and in order to do that, I've been re-learning calculus. I find it a little weird that I'm going home at night and picking up a calculus text book in my free time.

As far as X work goes, not having a working computer has caused a bit of a problem. Luckily, just before my machine died, Andres Salomon had nearly finished work on backporting Xorg 7.1 to sarge. Afterwards, he decided that he wanted to join the XSF, so since then he's been spearheading getting 7.1 in to experimental. He's been continuing the work that I haven't been able to do lately, and I'm excited to work with him in the future. In addition, Jurij Smakov joined the team as sparc driver maintainer, and Drew Parsons is officially joining the team, bringing Xprint officially in to the XSF. So even though I haven't been able to do much, things are moving forward, which is wonderful to see. As soon as I can get set up, I'm going to keep working with Andres to get 7.1 ready to ship in December.

Surprisingly, I drink far more lately than when I had a working computer. I think something is wrong with me if working on Debian helps to keep me from seeking chemical modification.

Dirk Eddelbuettel: RQuantLib 0.2.3

A few minutes ago, a new RQuantLib package 0.2.3 was uploaded to CRAN and Debian. The main changes are an upgraded the very newest version 4.2 of RcppTemplate by Dominick, and updates throughout ensuring that RcppTemplate is now used for all R to C++ interfaces.

Amaya Rodrigo: Resistance is futile

I had a nice talk with ender on the phone, and he introduced me to ccache. I quickly found a way to take advantage of it using pbuilder. Next step would be to hook that into distcc. Has anyone successfully done this? My bux fixing power will increase, as most of the time, while looking at packaging bugs, the code is seldom changed and rebuilds take for ever, helping me get distracted by Cute Overload or similar procrastination tools. So resistance is futile, these bugs will go away :)

Steve Kemp: I swear I don t know how

Collection Management I like to collect things, books, audio cds (which I buy exclusively second-hand/used then rip), and films. I’ve had a lot of fun putting my film collection online (Warning image-heavy). Although I admit the reason I did it in the first place was because I found myself buying DVDs I already owned more than once. I do the same thing with books. I can recognised covers easily, so if I see a book which is by an author I like I will look at the cover and think “Hmmm got this”, or “Hmmm thats new”. This leads me to buy duplicates too often. This leads me to wanting to organise the hundreds of books I have, so I can lookup what I have/dont have easily. My recent query the other day about scanning ISBN numbers with a barcode reader seemed to suggest that using the hardware is trivial. However the next step is hard. I can’t find a decent tool for using storing the data in. So far I’ve looked at:
alexandria
I loved this when I started it up and imported a few books by ISBN. It found the title, the publisher, a cover image, and more. However the backend seems to be a bit hit and miss. Picking books at random I soon found major gaps. e.g. Adding Terry Pratchett’s Mort gave me all the details. Adding Witches Abroad gave a blank image and just the title, all the other details were wrong/missing.
tellico
Tellico I’ve just ruled out. It allows you to create collections of things, but you must enter all the details yourself. I’ve neither the time nor the patience to do that.
So I’ll postpone this project for a while. Probably just as well since I’ve discovered that a suprisingly large number of my books do not actually contain ISBN numbers! Mostly the older paperback fiction books I have such as “H.G.Wells the valley of the spiders & other stories”, but even modern books like some of Steven Brust’s Vlad Taltos series are free of ISBN numbers.

22 July 2006

Uwe Hermann: ScatterChat - secure, anonymous, free, cross-platform Instant Messaging client

ScatterChat is a new cross-platform IM client announced by the Cult of the Dead Cow / Hacktivismo (during the HOPE conference, it seems). From the website:
ScatterChat is a HACKTIVIST WEAPON designed to allow non-technical human rights activists and political dissidents to communicate securely and anonymously while operating in hostile territory. It is also useful in corporate settings, or in other situations where privacy is desired. It is a secure instant messaging client (based upon the Gaim software) that provides end-to-end encryption, integrated onion-routing with Tor, secure file transfers, and easy-to-read documentation. Its security features include resiliency against partial compromise through perfect forward secrecy, immunity from replay attacks, and limited resistance to traffic analysis... all reinforced through a pro-actively secure design.
So the client is a "friendly-fork" of Gaim, it uses Tor to achieve anonymity, and for the crypto parts (secure messaging, secure file transfer) ScatterChat uses libgcrypt. It's a cross-platform application available for Linux, Windows; support for other OSes is planned (Mac OS X, others). You can always download the source code, of course, as it's free software. Actually, not quite. While ScatterChat itself is based on the GPL'd Gaim, it has to be GPL'd, too. However, the scatterchat-module package, which seems to contain the crypto-parts, is licensed under a custom "Hacktivismo Enhanced-Source Software License Agreement" (HESSLA) right now, which is so horribly long I didn't even bother reading it. However, the README says:
I am open to the possibility of re-licensing parts of this library to GPL, BSD, public domain, or some other license. I cannot make any promises, but I will try to accomodate reasonable requests.
I'm going to do just that, email the author and ask him nicely to change the license to some sane, well-known free software license. If you feel similar, please let the author know (hint, hint). Depending on what the HESSLA really says, it might prevent ScatterChat from entering Debian, for example. I haven't yet tried to use the application, but it sure looks like it has a lot of potential. It also seems do most security-related things right: Of course that's no guarantee that it's secure; I hope some crypto-gurus look over it soon. But at least they didn't make obvious stupid mistakes we've all seen in many other pieces of software. Anyways, I feel this is a real important project which will help lots of people (activists, political dissidents, normal people like me and you who value their privacy). Go check it out! (via Boing Boing)

21 July 2006

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.

19 July 2006

Pierre Habouzit: QOTD

"NMUs are not an excuse to get random pet bug fixes in."
Obviously not ! NMU are meant to fix bugs (what is a pet bug btw ?) especially the old with trivial merged-upstream patches (not to mention the 2 month old security problems).

18 July 2006

Jordi Mallach: Seventy years of the Spanish Civil War and the Spanish Revolution

A few months ago I wrote about the 75th anniversary of the proclamation of the Second Spanish Republic which was celebrated throughout the state. That weekend I visited a fantastic exposition of Republican and Revolutionary war propaganda posters, in Segorbe.

Today, Spain remembers the beginning of the end. During the evening of the 17th of July and morning of the 18th, a group of generals of the Spanish regular army raised against the democratically elected left-wing government of the Republic. History says that the murdering of Calvo-Sotelo, a right-wing leader, was what finally provoked the conflict. It was no secret that the same right-wing and some elements in the army had been conspiring for weeks about an uprise. The only question was when, but the government was fooled by general Mola and didn't take really effective measures to prevent it.


Warning from sanitary authorities against venereal diseases Mola and Sanjurjo planned to start taking over official buildings and army quarters and quickly seize control of the major cities. During the first hours of their rebelion, they managed to take over most of the southern regions in Andalusia, Extremadura and parts of the Northwest, plus most of the islands and the Moroccan protectorate area. Meanwhile, the Republic did not manage to react quickly due to the weakness of the government, and in the first days of the crisis, the government changed a few times. Finally, the Republican parties decided that to defend the state they should give arms to the unions, and soon after many militia groups were getting organised in the cities, and columns sent off to liberate other towns.


Solidarity of Catalunya to the Basque front The insurrection was suffocated in Barcelona after some heavy fighting against the military in the Montju c castle; the Anarchists of the CNT grew strong in Catalunya and Arag n, and offered good resistance in those fronts. After the first days of the coupe d'etat, it was clear neither the legitimate government or the rebels calculated how things would go after the first days. The government was confident in being able to end the rebelion as they did four years before; the fascists thought they would have quickly brought down the government with a successful coup. But after the first week, the country was divided in two halves, and both sides of the conflict were keen on fighting, due to the big social fracture during the last months of the government. The Republic asked for help to the League of Nations, but the United Kingdom and France decided not to intervene, scared about the conflict trespassing the Spanish borders and becoming another bloody war in European fields. The only official external aid came from the USSR and the International Brigades, formed by volunteers of more than 50 nations. Some well-known personalities like Ernest Hemingway or George Orwell came to aid as well. Orwell wrote about his life-changing experience in a Barcelona immerse in the social revolution, where he joined the anti-stalinist socialist party POUM. Badly wounded in the neck, he left the front and went back to Barcelona, and witnessed the assault of the Telef nica by the communists against the anarchists, during the fets de maig, after which the POUM was declared illegal. Orwell captured his experiences in the frontline and Barcelona in his book Homage to Catalonia.


To defend Madrid is to defend Catalunya Franco and Mola, aided by the Northafrican troops and soon after by their fascist allies of Italy and Germany, didn't have big problems seizing the Basque Country and Asturies in the North, but not before making the town of Gernika disappear below the nazi Condor Legion bombing, in what would be a test for the massive aereal bombings of Word War II. The battle for Madrid was fierce, and the city wasn't occupied until the very last days of the war. The long defence of the capital made was immortalised in the famous phrase No pasar n.


Madrid's No pasar n During the war, anarchist groups controlling fields and towns in Arag n and Catalunya managed to bring a Social Revolution to the area. The people collectivised the land and industries, administered by local assemblies. This experience is regarded as the time when Libertarian Communism has been successful. The experience ended dramatically when the anarchists were treasoned and blocked by the communists, and eventually defeated by Franco at the front.


Each bullet for a target After the first and a half years, the fronts had stabilised in Madrid and the East of Andalusia, until early in 1939, Barcelona fell in Franco's hands, after the bloody Batalla de l'Ebre, being followed by Girona and the rest of Catalunya. The fate of the democratic state was clear. Two months later, Madrid fell and Val ncia and the small area still under Republican control surrended.


Robert Capa's Muerte de un miliciano Franco declared a totalitarian regime to, according to the fascists, reconcile the two Spains. In the first five years of the regime, up to 100.000 were executed in the franquist repression, including the Catalan president, Llu s Companys and many intellectuals. The dictatorship continued executing people until two months before Franco's death, 36 years later. Hundreds of thousands also had to exile in M xico, France and other destinations, leaving Spain in ashes, road gutters full of scattered bodies and the population facing famine. The cultural elite left the country, making the state's clock go back at least a decade. Their reconciliation really meant humiliation and repression. Many people were also murdered during the war behind republican and rebel lines, but the genocide of the aftermath had was unmatchable.


The Republic promoted education among the troups It is a bit late to restore the dignity of the victims, but not too late. Some associations have been fighting since the end of Franco's regime to get some kind of public recognition for their suffering, for their priceless fight for the legal and democratically elected Republic, for the people who didn't make it.


Excellent anarchist poster rejecting the politisation
of children by any of the three loyal groups Other people reject these efforts banning them of "revisionism". Not too surprisingly, these are the sons or grandsons of the people who won the war. The current government is about to pass a Historic Memory law which aims to give recognition to all these people who gave their lives for an ideal and freedom. Unfortunately, due to pressures from the right, it is probable that the text will be ammended to make it more acceptable by them. I fear it will end up not pleasing the victims at all. I have a passion for Spanish Civil War related matters, and in the last years I tried to use any opportunity to listen to my Catalan grandmother talk about war affairs in Barcelona, and my grandfather, from a town in the middle of the Republican side of the Teruel front, but born in a very catholic family, about how the war went on in Vall and the nearby mountains.


From the defensive No pasar n to the encouraging Pasaremos! I know my grandfather only told me the less compromising stories, like how he was sent to dig refuges until he was 16 and apt to fight in the Front, or how he was put in charge of hiding the church's valuable relics in a few barns. He never told me about how life was after the war in the small town. It is dramatic to see that all the people who were old enough to have a sense of what was going on at the time are so old that these unvaluable memories and stories will be mostly gone in ten years. (Most of the pictures are taken from the Sociedad Ben fica de Historiadores Aficionados y Creadores' website, which has a huge documented catalog)

15 July 2006

Ian Murdock

Simon Phipps: “Stewart is spot-on with Flickr’s policy and paradoxically will keep my business by allowing me to leave at any time.” Absolutely. This post nicely explains something I’ve noticed about my own actions recently, namely why I’ve remained a del.icio.us user even as I’ve become less than enthralled with its new owner: I can export my data at any time from del.icio.us and take it to a competing service. As Simon so eloquently explains, I remain a customer because it’s easy to stop being one. To compete, a rival service needs to not only provide a better product but also make it equally simple to take my business elsewhere, and most service providers don’t seem to be in any hurry to let me do that. Furthermore, the usual reasons for moving data elsewhere, better integration with other providers’ services or more compelling features in a competing service, are less important when the service I’m already using has an open, well-documented API that allows me to do whatever I want with my data without needing to export it.

Lars Wirzenius: Random thought: Understanding, accepting, agreeing

"I can understand why he said it." "Why do you defend him? How can you of all people agree with him?" In everyday language, to "understand something" is often interpreted as "agree with something" or "accept something". Usually, that is also what is meant, but it would be better if it weren't. There is a subtle difference between these meanings, and it is annoying when this is lost in the communication and misunderstandings happen. For example, I can definitely understand the urge of breaking into computers without permission. It is an intellectual, technical challenge, and there's the intense thrill of doing something you're not supposed to be doing. However, I do not, emphatically do not, agree, accept, condone, or otherwise suggest that it should be allowed. On the contrary, crackers should be taken out and spanked. Let's agree to understand and accept this subtlety. On the other hand, if making a point, it's good to know that not everyone understands subtlety, especially not all the time. Making the distinction clearer can prevent unnecessary disagreements.

Eric Dorland: The Damage So Far

So I've spent the last 8 days at Fantasia, neglecting friends, family, my health and Debian work. Probably a good time to look back at what I've seen so the memories don't melt away has they have other years. So only 8 movies left to see. So far it's been pretty good.

13 July 2006

Martin F. Krafft: Pearls and Dents

In Germany's pharmacies (and all around the world), you can buy a tooth paste with "pearls". These are little, soft grains, and the combination of the seemingly suggested concept "sandpaper" (they even have to deny that on the front page of the product's home page) with the clean and beautiful image of "pearl" seem to lead people to believe that these particles will make your teeth twinkle in the dark. I am not in the capacity to judge whether those actually perform better deplaquification. The tooth paste goes by the name of "Pearls and Dents" (for non-German speakers). That's another German product carrying a name made of English words, which appears to be cool these days. I find it a sad development how English replaces German all over the German media and every day language use (second only to the germanification of English words, like "downgeloadet" -- the use of English words according to German grammar rules). But that's not the point, at least not this time. What I find even more disturbing is the stupidity of the masses that go with the flow, or even try to be creative at designing captive slogans, regardless of the widespread lack of command of the English language. "Dents" may be close to "dental", but it does not actually mean teeth. Thus I am left to wonder whether the manufacturer is trying to hint at what those little pearls actually do to your teeth, or whether it's just another instance of a crap marketing team (who'd probably be better off learning proper German first, before venturing into the domain of another language). Along similar lines, is it only me who thinks that Adidas' slogan "impossible is nothing" is just plain stupid. Are they trying to be extra clever by giving the all too common phrase "nothing is impossible" a witty twist (and failing at it)? Or are they instead hinting that "impossible" is for others -- wear Adidas and you'll encounter even less possible situations? PS: This post is dedicated to helix.

11 July 2006

Matthew Palmer: User Interfaces as Slideshows

Backstory: I recently found a new game. It's called Oolite, and is (probably unsurprisingly) a clone of that great old spacefaring game, Elite (for BBC Micro and C64, amongst others). This game (unlike the original!) uses OpenGL and hardware rendering, so it was a good motivation to get accelerated rendering going on my laptop (never bothered before; it's unlikely that DRI is going to make an Xterm run any faster, after all). The problem with DRI under Ubuntu Breezy on my laptop is that it makes the machine unstable. Every couple of hours, my screen would freeze, and I'd get a lovely collection of randomly-coloured 80x25 text-mode characters on my screen, flashing madly at me. That's the signal for "game over", apparently, and I'd have to reboot. Incidentally, this used to happen, but very rarely, before I turned DRI on, so it's not really DRI-specific, but it went from occasional irritation to regular irritation. End backstory.
So it was time to upgrade. "Dapper's Out", thought I. "May as well see what all of the fuss is about". I think the phrase "oops" correctly describes the result. For reasons which I have not fully determined yet, my system is now Dog Slow. (That's the technical term, anyway; I've got a few more colourful phrases for it that I'm using privately). What was, previously, a nice quick Xterm launch is now a slowly progressing set of concentric rectangles culminating in the eventual, lacklustre, appearance of a terminal window. Oolite, my new obsession, is like playing Quake3 (the last OpenGL game I really got into, many years ago) on a P-II 300 with no 3d graphics card -- here a frame, there a frame, oh, by the way, you died a couple of minutes ago. (And yes, before you ask, glxinfo says "direct rendering: Yes".) This isn't an old machine -- it's a Thinkpad T43, with gobs of RAM and a 1.7GHz processor. It ran Breezy like a charm. Now, my machine looks like a powerpoint presentation. I've got to put something onto my wife's "new" (P-III 700) laptop -- lord only knows what it'll think of Dapper. Other strangenesses I've noticed so far include: Ultimately, I think that the cause of my problem may be closely related to that last point. I need to find out what's chewing my machine's CPU and kill it dead. Oh won't that be fun. Well, enough moaning. Time to find the cause(s) of these problems and nail it/them to the floor.

Roland Mas: File set split utility, or the backpack problem

Joey Hess is looking for a tool that allows him to split sets of files across subsets with a known maximal size, for archival on DVD. That sounds a bit like what my ~/bin/prepare-gallery-backups.pl script does. Actually, my script doesn’t operate on a per-file granularity, but per-directory (think photo gallery albums), but I suppose it would be rather simple to adapt. Also, there’s no guarantee of optimality, and it may well be that you’ll end up with a few subsets more than what is strictly needed. I’m not trying to solve the notoriously hard “backpack problem", just looking for a “good enough for me” solution. Now if Joey wants to recode that properly and add it to moreutils, I’ll be a happy man. I was about to paste just the relevant excerpt of my script, but since only a few lines would have been omitted, I figured what the hell. Here’s the whole script, licensed under a “send me a lot of money if you like, otherwise do what you want” license.
#! /usr/bin/perl use File::Find ; $maxsize = 700000 ;
$remote_dir = "/srv/www/gallery.placard.fr.eu.org" ;
$rsync_dir = "/space/backups/gallery-backup/rsync/" ;
$albumsdir = "/space/backups/gallery-backup/rsync/gallery.placard.fr.eu.org/albums" ;
$backupdir = "/space/backups/gallery-backup/backups" ;
# system "rsync -avL --rsh=ssh --delete clodomir:$remote_dir $rsync_dir" ;
system "rsync -avL –rsh=ssh –delete mirobole:$remote_dir $rsync_dir" ;
if ( (defined $ARGV[0])
     && ($ARGV[0] eq "–make-isos") )
    File::Find::find( wanted => \&wanted, follow => 1 , $albumsdir);
      for $i (@alist)
          $fname = $i ;
          $fname =~ s,.*/,, ;
          $du = qx/du -hk $i/ ;
          $size = $du ;
          $size =~ s,\s.*,, ;
          $albums $fname size = $size ;
          $albums $fname path = $i ;
      
      foreach $album (sort $albums $b size <=> $albums $a size keys %albums)
          $size = $albums $album size ;
          $name = $album ;
          $name =~ s,.*/,,;
          if($cur + $size > $maxsize)
              my @bplist = @curlist ;
              my %entry = ('list' => \@bplist,
                           'size' => $cur) ;
              push @backpacks, \%entry ;
              $cur = 0 ;
              @curlist = () ;
          
          $cur += $size ;
          push @curlist, $name ;
      
      my @bplist = @curlist ;
      my %entry = ('list' => \@bplist,
                   'size' => $cur) ;
      push @backpacks, \%entry ;
      $i = 1 ;
      foreach $bp (@backpacks)
          print "Backpack $i (size $bp-> size ) :\n" ;
          $bpdir = $backupdir . "/backup-$i" ;
          system "mkdir -p $bpdir" ;
          foreach $n (@ $bp-> list )
              print "\t$n\n" ;
              system "cp -a $albumsdir/$n $bpdir/" ;
          
          system "mkisofs -quiet -r -o $backupdir/backup-$i.iso $bpdir" ;
          system "rm -rf $bpdir" ;
          $i++ ;
      
  
sub wanted
    my ($dev,$ino,$mode,$nlink,$uid,$gid);
    (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) ;
# print "$File::Find::name ; $File::Find::dir\n" ;
    if ((-f $File::Find::name) && ($File::Find::dir eq $albumsdir))
# print "Keeping file $File::Find::name\n" ;
        push @alist, "$File::Find::name" ;
    
    if ((-d $File::Find::name) && ($File::Find::dir eq $albumsdir)
        && ($File::Find::name ne $albumsdir))
# print "Keeping dir $File::Find::name\n" ;
        push @alist, "$File::Find::name" ;
    

Next.

Previous.