Le weblog entièrement nu

Roland, entièrement nu... de temps en temps.

Archives 2005-04

raidtools2 to mdadm

Tonight's dist-upgrade being ridiculously small for some reason, I started having a look at the "obsolete and locally created packages" section in aptitude. What the... raidtools2 obsolete? Quick, #debian-devel to the rescue!

Right. So it is obsolete, and should be replaced by mdadm. There's no transitional package though, and the debconf notes are quite scary. With a bit of hand-holding (thanks doogie), here's how I did the switch, and how you should maybe do it too:

  • install mdadm;
  • stay calm when debconf tells you to run an obscure tool on /dev/xxx (that's right, it doesn't tell you what device);
  • answer yes (or no, your call) to the "should I autostart RAID at boot?" debconf question;
  • check your partition types with fdisk/cfdisk/partman/parted/whatever — they should be type fd (RAID autostart);
  • check your md* devices, make sure they have persistent superblocks (mdadm --detail /dev/md0 should say "Persistence : Superblock is persistent" — if it doesn't, well, twiddle and frob until it does);
  • reboot and hope;
  • remove raidtools2.

It worked for me. I'm not suggesting it's going to work for everyone, but tbm insists I post this so someone can prepare a transitional package based on that. Have fun.

Oh, and I didn't mention the first step (backups). But of course you all have recent backups, so that wasn't needed, right?

Tags:
Posted ven. 29 avril 2005 00:00:00 CEST
Printemps, saison culturelle

Thomas, qui se défend d'être un geek, se justifie en annonçant les dates des représentations des chorales et troupes de théâtre dans lesquels il est impliqué. J'ai toute tendance à penser que ce sont des spectacles à ne pas rater.

De mon côté, j'assume avec une certaine fierté ma facette de geek, tout en notant que j'en ai d'autres. Notamment, je fais du cirque. Et notamment, se déroulera bientôt sous le chapiteau de Piste d'Azur la manifestation « Piste au Soleil », qui inclut les représentations de fin d'année des différents cours et ateliers hébergés par l'école.

Venez donc me voir jongler et acrobater les vendredi 13 (soir) et samedi 14 mai (après-midi et soir), venez aussi voir les rencontres régionales des écoles de cirque le dimanche 15 après-midi, et venez voir le spectacle professionnel le dimanche soir.

Plus de détails sur le site de l'école, au fil des mises à jour...

Tags:
Posted ven. 29 avril 2005 00:00:00 CEST
debian/watch vs. sf.net

There are quite a few Debian packages around for which the upstream tarballs are hosted on sourceforge.net. Unfortunately, sf.net has this annoying habit of not providing a fixed URL that uscan can use. Sometimes one URL scheme seems to work, then it stops working. And suddenly millions of debian/watch files suddenly cry out in terror, and are suddenly silenced.

So I came up with a Grand Plan to Fix That Problem (three lines of PHP), and I proudly present you the New Watch File for project foobar:

version=3
http://people.debian.org/~lolando/sfdlr.php?project=foobar foobar-([\d.]*).tar.gz

Now if the guys at sf.net change their minds again, there's one file to change. Yell at me, possibly with a new scheme.

Added bonus: if I get run over by a bus, I get millions of mourners. Unless that magic 3-line script is moved/copied to somewhere where people living where there aren't any buses can take care of it, but that's not fun.

Update: The fine people at QA integrated this program into qa.debian.org. Please use

version=3
http://qa.debian.org/watch/sf.php?project=foobar foobar-([\d.]*).tar.gz

now.

Tags:
Posted jeu. 28 avril 2005 00:00:00 CEST
De la barbe et du cuivre

J'avais commandé quelques disques sur Internet. Pour des raisons d'approvisionnement, la commande est partie en deux lots. Le premier contenait un coffret et deux albums (dont je vous parlerai plus tard), le deuxième ne contenait qu'un album. Bien qu'ayant été expédiés à deux jours d'intervalle, les deux ont été livrés vendredi. Sauf que le gros est reparti, parce qu'il ne rentrait pas dans ma boîte à lettres, alors que le petit est resté. Grrr.

Grrr, mais pas trop en fait : il s'agit d'un album de Forficule (et que j'ai découverte grâce à une radio française dont le nom comporte trois lettres et que je cite tous les deux articles ici). Forficule, c'est la réunion des fanfares de l'École Boulle et de celle des Beaux-Arts en 1968. Elle a été dissoute un peu plus tard pour des considérations de contraintes de vie active des anciens étudiants, mais elle s'est réunuie récemment pour enregistrer un album, qui trône présentement sur mon présentoir à CD. C'est parfois sautillant et parfois juste dansant, j'adore. Et comme c'est des cuivres (bon, et une clarinette), et qu'il y a plusieurs morceaux en trois temps, et d'autres avec des rythmes sympas et changeants, ça fait très musique de cirque. Aaah, si j'osais me mettre dans la rue avec des balles et une petite sono... Si je n'arrive pas à me décider et que je deviens vieux sans jamais le faire, pas grave, j'apprendrai à jouer du cornet à pistons ou du saxhorn (voire de l'hélicon) et je m'engagerai dans une fanfare. Vous allez voir, quand je serai à la retraite, ça va être terrible.

Bon, donc samedi matin je vais à la poste de Vallauris, muni de mon avis de passage du facteur, et bien décidé à récupérer mon autre colis. On m'apprend alors que le dit colis n'est pas là, qu'on ne sait pas où il est. Double-grrr. J'y retourne demain, y'a intérêt à ce qu'il ait été retrouvé.

Bref. Hier aussi, je suis allé faire quelques courses à Cannes : j'avais prévu de jeter un œil à un appareil photo numérique qui m'avait accroché dans les comparatifs que j'avais lus et d'aller dans une agence de voyages pour préparer ce que vous savez peut-être. Le photographe chez qui je voulais aller était fermé (mais il avait le modèle en vitrine), donc je me suis rabattu sur la Fnac. Eux n'avaient pas ce modèle, du coup j'étais encore plus dépité. Pris d'une rage consumériste indicible, je me suis donc ruiné sur d'autres choses. Notamment une place pour un concert de Babylon Circus et quelques autres qui passent à Nice dans une semaine. Mais surtout, un double album des Quatre Barbus. Les Quatre Barbus, c'est un groupe vocal français du vingtième siècle, dans un style proche des Frères Jacques : pas mal d'harmonie, des chants a capella ou accompagnés d'un simple piano (ou parfois plus), et des textes... Ah, ces textes... L'album/compilation s'appelle « La Pince à linge ». La chanson éponyme est un régal, comme on peut s'en douter au vu des auteurs (Pierre Dac et Francis Blanche) et du compositeur (Ludwig van Beethoven). Mais je vous recommande également « l'Ouverture du Barbier de Séville » (« Car un jeune homme qui sort sans sa barbe, c'est un repas sans vin, un soleil sans rayons ») et sa suite, « Honneur aux Barbus » (« Ah mes amis voyez la jolie ronde qu'autour de la Terre on ferait dès demain si toutes les barbes du monde voulaient se donner la main »), totalement jubilatoires et parsemées de cet autosatisfecit barbutronique qu'on retrouve parsemé un peu partout.

Je sais pas si vous avez remarqué, mais chaque fois que je reçois de la musique, je me retrouve de bonne humeur. Je prends ça comme un signe que je n'achète que de la bonne musique. Vivement que je récupère le colis manquant !

Mise à jour du lundi : héhé, le colis est là. Mais comme il totalise 8 disques dans des styles très variés, il va falloir un certain temps avant que je les écoute tous pour vous en faire un résumé.

Tags:
Posted dim. 24 avril 2005 00:00:00 CEST
Wordpress rant

It's time for some ranting... And today, it'll be about Wordpress. Please prove me wrong — it'll probably mean I'm ignorant of some facts.

So Wordpress 1.5 has been out for a few weeks (months?), and apparently everyone has upgraded already. Some of you may notice that I haven't, yet (yes, still using 1.2.2 at the time of writing). 1.5 looks like a large regression. I'll focus mainly on localisation issues, because that's what bugs me at the moment, but I'll try to be even-handed and rant about other aspects too.

Wordpress is advertised as internationalised and localised. Fine. Now since I'm French, and I part of my target audience is French too, I'll want to have fr_FR.mo somewhere. Yet it's nowhere in sight. If I go to the website, I have to click on Docs, then on an obscure link called "Codex", which points me to a Wiki, of which one page contains a link to an external site, which in turn contains the URL of the fr_FR.mo I'm looking for. Rinse, repeat for all languages I need. For some reason, I had expected to just have the *.mo in the tarball, or at least not far from it. How foolish of me.

"For all languages I need", said I. Hah. Like Wordpress can manage several at once. Well, it can't. It doesn't contain the astonishingly difficult 40 lines of PHP to extract the language preferences from what the browser announces, and instead relies on a configuration item. Sorry guys, come visit me sometime — only don't expect to be able to read the pages.

Oh, except you English speakers shouldn't worry, actually. Only the poor French-only souls should. The pages are in English. (The admin interface isn't, but only I have access to it, so it doesn't count.) Sounds daft, but there you are: the two provided themes (classic and default) are not translated. Just a matter of editing the *.po and rebuilding the *.mo, right? Wrong. The themes are not internationalised. They contain lots of hardcoded English text.

Oh, they do call some functions though, which will call gettext on some strings. Like, they call the date-printing function with a hardcoded English-style date format (grrr), but the words will be translated. So instead of seeing 2005-04-23 as I specified in the admin interface, or "23 avril 2005" as I'd expect in French-style format, I'll see some horror like "avril 23rd, 2005". Blargh.

I've been ranting about all that for some time, and I even found the courage to try and help several times. Two or three times, I even survived half an hour of looking at the code, and really got into hacking. Joined #Wordpress, expressed my opinions, asked for directions on where I could find the .pot files, got yelled at. Reminded me of the time I submitted an obvious one-line patch for a real problem in 1.2 (got yelled at), then again against 1.2.1 (got yelled at), then *again against 1.2.2 (got yelled at).

Since I think I'm persona non grata on #Wordpress now, someone please tell me these problems are at least acknowledged (worked on would be even better). Otherwise I'll have to sort-of-fork WP — I sort of did it already, by importing it into tla and maintaining a -fixes-1.2 branch as well as a -local-1.2 branch, but that would be a depressing waste of time. Especially since they use SVN upstream. You'd think since they encourage people to customise their code locally (and ignore contributions), they'd use a versioning tool that makes it easy, maybe. Like, a distributed one. Well, I'd think so, at any rate.

Perhaps my standards are too high. They certainly seem too high for WP to meet them.

In my next rant, we'll discuss something else — I hope.

Tags:
Posted sam. 23 avril 2005 00:00:00 CEST
Alors c'est quand ?

Alors c'est quand ?

Alors c'est quand
Ce changement
De « quand j's'rai grand »
À « de mon temps » ?

Alors c'est quand ?

Est-ce important,
Précisément ?
En attendant,
J'ai tout mon temps.

J'ai vingt-huit ans.

Tags:
Posted lun. 11 avril 2005 00:00:00 CEST
Deuxième édition du cahier Debian

Le cahier de l'admin Debian, écrit par Raphaël Hertzog, vient de subir sa deuxième édition, toujours avec une relecture assidue par votre serviteur.

Voilà, c'est tout.

Tags:
Posted jeu. 07 avril 2005 00:00:00 CEST
Debian book, 2nd edition

Raphaël Hertzog's book on Debian (in French) has just reached its second edition, with even more goodies. You want to visit the book's page again.

Tags:
Posted jeu. 07 avril 2005 00:00:00 CEST
Read-only Debian on Soekris HOWTO

The Read-only Debian on Soekris HOWTO, which isn't exactly adequate for a blog entry, has been moved to its own page, along with the Debian on Soekris HOWTO.

Tags:
Posted lun. 04 avril 2005 00:00:00 CEST
Creative Commons License Sauf indication contraire, le contenu de ce site est mis à disposition sous un contrat Creative Commons.