Trois nouveaux blogs romands [fr]

[en] Announcing the works of some of my blog-pupils. Amongst them, my sister!

Il y a quatre mois presque jour pour jour, je vous encourageais à rendre visite à un de mes “élèves-blogueurs”. Chronique de l’Abrincate prenant en ce moment des vacances bien méritées, il est temps que je vous présente deux nouvelles dans la blogosphère.

Tout d’abord (restons chronologiques), Catherine Martinson, qui alimente son blog depuis un peu moins de quatre mois. Elle y aborde des sujets touchant à l’environnement, ouvrant parfois la fenêtre sur des instants volés ou une journée ordinaire au WWF.

Deuxième blogueuse, double, car deux blogs, et pas n’importe qui: ma soeur Isabelle. Sur son blog, elle parle de numérologie (une de ses nombreuses passions!) et aussi de la vie tout court. Elle a tellement “mordu” qu’elle a ouvert un deuxième blog, pour le centre de loisirs dont elle est responsable depuis bientôt quinze ans: visitez le blog du CRAB! En alimentant ce dernier blog, elle a découvert à quel point c’était facile d’ajouter des photos en utilisant son compte Flickr. Franchement, pour quelqu’un qui n’avait pas particulièrement d’atomes crochus avec les ordinateurs… chapeau, Isa!

Donc, un grand bravo à ces trois “élèves-blogueurs”. Vous pouvez être fiers de vous!

Superlocal.ch [fr]

[en] Superlocal is a somewhat intriguing local news site. The Vevey and Lausanne parts of it seem to be clearly separated, the latter clearly managed by 24heures, and the former seemingly more "citizen journalism" oriented.

Je connaissais superlocal.ch/vevey pour m’y être retrouvée people-isée une petite moindre (pardon my French!).

Je découvre aujourd’hui superlocal.ch/lausanne, qui reprend un extrait de l’excellent billet de Virginie sur la fermeture du Ciné Qua Non.

Un peu de perplexité, tout de même: la version “Lausanne” affiche clairement les couleurs de 24heures, alors que la version “Vevey” ne semble pas dépendre d’une publication quelconque, et fait la part belle au journalisme très citoyen (coucou Sebi, en passant). Et pourquoi est-ce que depuis Vevey, on ne peut pas aller directement à Lausanne — et vice-versa? Quand je tape “superlocal.ch” dans mon navigateur, j’arrive directement sur Lausanne, alors qu’il y a moins de deux mois, j’arrivais à Vevey. Qu’est-ce que c’est donc, dites-moi, que cette jolie entreprise quelque peu bifide? Et si on voulait faire un blog “Lausanne” à la sauce “Vevey”?

Addendum: en plus du Léman, du blog de Salem et du salon un peu vide, facilement trouvables depuis Lausanne-en-ville, je découvre encore le photoblog et le blogosphérique (merci Technorati). Faudra d’ailleurs m’expliquer pourquoi il porte ce nom, le dernier, là. Y’en a d’autres qui se cachent encore entre les dossiers?

Firefox Extension Can Work With Flock [en]

Good news for all you Flock users out there (for those who don’t know Flock, you should try it now, it’s great): the magic Firefox extension which lets you forget coComment exists as it silently records all your comments can be made to work with Flock.

The bad news is that it took me until now to realize that (I’m an avid Flock user and have been frustrated by the extension incompatibility for weeks, if not months).

The good news is that it’s dead easy: install the Flock coComment extension now!

A small word of caution, though, or two:

  1. I’ve been using this extension for a few days and it seems to work, but it hasn’t been extensively tested by the coCo-team. If you’re geeky enough to understand how converting an extension really works, be kind to leave a comment and let us know if there seems to be any risk of breakage.
  2. The Flock extension I’ve linked to is one particular version of the extension. Within the next weeks (or so I heard!) there will be a new release of the extension, and the link above will still point to the old extension (still with me?) I’ve also been told the Flock conversion may not be necessary anymore… let’s keep our fingers crossed and our eyes open.

technorati tags:, , , ,

Initially posted on the coComment blog.

Flock, extensions, and coComment [en]

[fr] Une adresse de site pour convertir des extensions Firefox pour utilisation avec Flock, qui est un excellent navigateur. J'étais déçue de ne pas pouvoir utiliser l'extension Firefox pour coComment avec Flock -- maintenant je peux!

My ex-collegue and now friend Gabriel introduced me to the Flock browser quite some time back. I mentioned it quite a bit on my other blog but I don’t think I talked about here much.

Anyway, it’s great. It’s Firefox, but with all sorts of nice bloggy, flickr-y, del.icio.us-y stuff tied in. I’d like to get coComment integrated in there too.
(Disclaimer: I work for coCo.)

One thing that makes coComment really nice to use is the Firefox extension. Once you’ve installed it, you don’t need to do anything, and it automatically records all the comments you make (as long as the blog platform is more or less compatible to show them on your user page. Here’s mine.

The thing that bothered me when I started using Flock again sometime back was that I had to revert to using the bookmarklet (which, let’s be honest, is a real pain — who remembers to click on a bookmarklet before posting each comment? not I!) Today, as I was starting on my tour of the blogosphere to see what people are saying about coComment I came upon another Flock user who regretted the extension wasn’t compatible.

So, I headed to our internal bug-tracker to find out what the status of my request for a Flock extension was, and saw that Nicolas (coComment’s Daddy!) was asking for more information on converting extensions. I googled a little and here’s what I came up with:

Well, I installed the extension in Flock, restarted my browser, and after a painful start (wouldn’t be able to tell you if it was because of the extension or just good ol’ Windows acting up) it was up and running. I now have Flock running the coComment Firefox extension!

Let me know how it goes for you if you try it, particularly on other platforms. And if you haven’t tried Flock yet, you should. It’s really neat!

Finally out of MySQL encoding hell [en]

[fr] Description de comment je me suis sortie des problèmes d'encodage qui résultaient en l'affichage de hiéroglyphes sur tous les sites hébergés sur mon serveur.

It took weeks, mainly because I was busy with a car accident and the end of school, but it also took about two real whole days of head-banging on the desk to get it fixed.

Here’s what happened: remember, a long time ago, I had trouble with stuff in my database which was supposed to be UTF-8 but seemed to be ISO-8859-1? And then, sometime later, I had a weird mixture of UTF-8 and ISO-8859-1 in the same database?

Well, somewhere along the line this is what I guess happened: my database installation must have been serving UTF-8 content as ISO-8859-1, leading me to believe it was ISO-8859-1 when it was in fact UTF-8. That led me to try to convert it to UTF-8 — meaning I took UTF-8 strings and ran them through a converter supposed to turn ISO-8859-1 into UTF-8. The result? Let’s call it “double-UTF-8” (doubly encoded UTF-8), for want of a better name.

Anyway, that’s what I had in my database. When we upgraded MySQL and PHP on the server, I suddenly started seeing a load of junk instead of my accented characters:

encoding-problem-2

What I was seeing looked furiously like UTF-8 looks when your server setup is messed up and serves it as ISO-8859-1 instead. But, as you can see on the picture above, this page was being served as UTF-8 by the server. How did I know it wasn’t ISO-8859-1 in my database instead of this hypothetical “double-UTF-8”? Well, for one, I knew the page was served as UTF-8, and I also know that ISO-8859-1 (latin-1) served as UTF-8 makes accented characters look like question marks. Then, if I wanted to be sure, I could just change the page encoding in Firefox to ISO-8859-1 (that should make it look right if it was ISO-8859-1, shouldn’t it?) Well, it made it look worse.

Another indication was that when the MySQL connection encoding (in my.cnf) was set back to latin-1 (ISO-8859-1), the pages seemed to display correctly, but WordPress broke.

The first post on the picture I’m showing here looks “OK”, because it was posted after the setup was changed. It really is UTF-8.

Now how did we solve this? My initial idea was to take the “double-UTF-8” content of the database (and don’t forget it was mixed with the more recent UTF-8 content) and convert it “from UTF-8 to ISO-8859-1”. I had a python script we had used to fix the last MySQL disaster which converted everything to UTF-8 — I figured I could reverse it. So I rounded up a bunch of smart people (dda_, sbp, bonsaikitten and Blackb|rd — and countless others, sorry if I forgot you!) and got to work.

It proved a hairier problem than expected. What also proved hairy was explaining the problem to people who wanted to help and insisted in misunderstanding the situation. In the end, we produced a script (well, “they” rather than “we”) which looked like it should work, only… it did nothing. If you’re really interested in looking at it, here it is — but be warned, don’t try it.

We tried recode. We tried iconv. We tried changing my.cnf settings, dumping the databases, changing them back, and importing the dumps. Finally, the problem was solved manually.

  1. Made a text file listing the databases which needed to be cured (dblist.txt).
  2. Dumped them all: for db in $(cat dblist.txt); do mysqldump --opt -u user -ppassword ${db} > ${db}-20060712.sql; done
  3. Sent them over to Blackb|rd who did some search and replace magic in vim, starting with this list of characters (just change the browser encoding to latin-1 to see what they look like when mangled)
  4. Imported the corrected dumps back in: for db in $(cat dblist.txt); do mysql -u user -ppassword ${db} < ${db}-20060712.sql; done

Blackb|rd produced a shell script for vim (?) which I’ll link to as soon as I lay my hands on the URL again. The list of characters to convert was produced by trial and error, knowing that corrupted characters appeared in the text file as A tilde or A circonflexe followed by something else. I’d then change the my.cnf setting back to latin-1 to view the character strings in context and allow Blackbr|d to see what they needed to be replaced with.

Thanks. Not looking forward to the next MySQL encoding problem. They just seem to get worse and worse. (And yes, I do use UTF-8 all over the place.)

Dell s'y met aussi! [fr]

[en] Announcing Dell's blog.

A surveiller: le blog de Dell. Jetez un oeil, du coup, à ce qu’en disent les blogueurs. Vous pouvez aussi voir ce que raconte la blogosphère au sujet de Dell. Comme quoi, les blogs ce n’est pas que pour les PME, ça marche aussi dans les grandes boîtes!

Technorati est un service vraiment utile, dommage que tout le monde ne le connaisse pas encore! Robert Scoble nous rapportait il y a quelques jours comment il a montré Technorati à une équipe de dirigeants Nestlé: ils ignoraient totalement qu’ils pouvaient suivre en temps quasi-réel ce qui se dit au sujet de leur marque! (Il y a un peu de bruit, c’est sûr, mais garder un oeil là-dessus peut s’avérer loin d’être inutile.)

Bloggy Friday de juillet un peu spécial [fr]

[en] Bloggy Friday and birthday party all-in-one: this Friday in Lausanne.

Mise à jour 06.06: vu le (grand) risque d’orange, la fête aura lieu au Reighikan Dojo. C’est en ville de Lausanne près de l’Hôtel de Police (derrière le Tunnel), à la rue de l’Industrie 10 (dans la cour intérieure, en face de Textura, Théâtre Pull-Off, etc). Grillades toujours possibles 😉

Comme annoncé il y a quelque temps le Bloggy Friday de juillet est un peu spécial: primo, il se passe au bord du lac, et deuxio, il s’intègre à mon traditionnel barbecue d’anniversaire — ce qui a pour conséquence qu’il y aura des non-blogueurs présents.

Que ceci ne vous arrête pas! Je vous attends dès 19h00 au bord du lac à Vidy. J’ai tenté de faire un vague plan: http://flickr.com/photos/bunny/179905099/

Via les transports publics, prenez le bus numéro 2, sortez à euh… Bois-de-Vaux (si je ne me trompe pas), descendez direction lac et marchez ensuite direction Genève. Si ça pue, c’est la STEP, et c’est un peu trop loin. Le mieux, appeler le 078 625 44 74 et la standardiste vous aidera.

Amenez un quelque chose à griller et un quelque chose à partager, plus de quoi vous amuser si vous êtes du genre frisbee/foot/échecs.

Laissez un petit mot si vous pensez être de la partie, et on vous garde un petit coin de grill!

Théâtre au CPO [fr]

[en] If you're in Lausanne, go and see "Deus ex machina" at the CPO tonight.

Deus ex machina -- autosatisfaction

Si vous n’avez rien de prévu ce soir, allez voir “Deus ex machina”, une pièce écrite et jouée par la compagnie des cerceaux, sous la direction de Sonia Piscitelli.

Mon frère y joue, je suis allée la voir hier soir, et j’ai beaucoup ri! Déçue en bien, comme on dit dans notre pays. En quelques mots: Zeus s’ennuye ferme, regrette son pouvoir du temps de l’Antiquité, et met en place un plan machiavélique pour que les humains croient à nouveau en lui.

Deus ex machina -- paperasse

Représentations à 18h30 ce soir, et 20h00 vendredi (il y a en a d’autres, le rôle de mon frère étant dédoublé, mais je ne sais pas quand). Le spectacle a lieu au CPO (Centre Paroissial d’Ouchy) à Lausanne. Entrée gratuite, sortie donnante (tirelire).

Suggestion: sortez votre mythologie grecque du placard, vous rirez d’autant plus.

Gandi fait peau neuve [fr]

[en] If you haven't yet checked it out, go and see Gandi.net's new design.

Je ne le vois que maintenant, mais au cas où vous seriez encore plus à  la traîne que moi, allez regarder la nouvelle interface de Gandi.net. Gandi (sans h!), c’est l’endroit où aller pour enregistrer vos noms de domaines. Souvent, votre hébergeur vous proposera des formules hébergement+nom de domaine: très joli, jusqu’au jour où vous voulez changer d’hébergeur et où ça devient compliqué.

Tous chez Gandi!