zengun

weblog » tag view

2005 11 27

red and green on white

red and green on white

First snow in Paris yesterday, Jardin des Tuileries.

Only my second experience of shooting in the snow.
The first one was disastrous, as my old digicam fell in the snow and refused to boot up for weeks. This time, I could really trust the camera’s body, and that makes a tremendous difference.
Too bad there’s no snow anymore this morning…

2005 11 08

jeu gratuit sans obligation de rachat de véhicule brûlé

Jeu de la citation de blogueur, de qui est la phrase suivante ? « Je n’ai pas de fantasme sécuritaire : je te rappelle que je vote déjà à droite. »

2005 11 04

the Eiffel beam

the Eiffel beam

On a photo trip with madflo, I took this, while he took that.

2005 10 28

someone somewhere in autumn

someone somewhere in autumn

Statue in the Jardin des Tuileries, Paris.

one bird on one statue

one bird on one statue

Near the western entrance of the Jardin des Tuileries, Paris.
One bird, many passers-by with cameras.

two birds on one statue and one lampost

two birds on one statue and one lampost

Near the western entrance of the Jardin des Tuileries, Paris.
Two birds, a child looking psyched.

blue ride

blue ride

On top of Hôtel Hermès is this rider. I have no idea who he might be.

three and a half

three and a half

Trees in front of the US embassy, just down the Champs Elysées, Paris.

2005 10 15

the queen’s shower

the queen's shower

(Blurry, but I liked the weird composition enough. Somebody donate a tripod to me. Please.)

à dada

à dada

Slightly off-focus, as I was trying to keep up with the merry-go-round’s pace.

une toutes les 4 secondes (7)

une toutes les 4 secondes (7)

The collective Action Contre la Faim (action against hunger) held this event where every four seconds, as the two speakers spelled a name, a human figure dropped dead, to symbolize a death by hunger.

In the end, every figure was down.

une toutes les 4 secondes (6)

une toutes les 4 secondes (6)

The collective Action Contre la Faim (action against hunger) held this event where every four seconds, as the two speakers spelled a name, a human figure dropped dead, to symbolize a death by hunger.

In the end, every figure was down.

une toutes les 4 secondes (5)

une toutes les 4 secondes (5)

The collective Action Contre la Faim (action against hunger) held this event where every four seconds, as the two speakers spelled a name, a human figure dropped dead, to symbolize a death by hunger.

In the end, every figure was down.

une toutes les 4 secondes (4)

une toutes les 4 secondes (4)

The collective Action Contre la Faim (action against hunger) held this event where every four seconds, as the two speakers spelled a name, a human figure dropped dead, to symbolize a death by hunger.

These figures were not part of the event, they were standing behind a tent.

une toutes les 4 secondes (3)

une toutes les 4 secondes (3)

The collective Action Contre la Faim (action against hunger) held this event where every four seconds, as the two speakers spelled a name, a human figure dropped dead, to symbolize a death by hunger.

une toutes les 4 secondes (2)

une toutes les 4 secondes (2)

The collective Action Contre la Faim (action against hunger) held this event where every four seconds, as the two speakers spelled a name, a human figure dropped dead, to symbolize a death by hunger.

une toutes les 4 secondes

une toutes les 4 secondes

The collective Action Contre la Faim (action against hunger) held this event where every four seconds, as the two speakers spelled a name, a human figure dropped dead, to symbolize a death by hunger.

The text above was written by an unknown person on the back of the collective’s banner.

2005 10 10

transatlantic move

If you can read this, then you’re reading a page served by a lighttpd instance in Paris.
More on the migration later…

Update : the whole thing. Hopefully this serves as a guide of sorts to whoever runs through the troubles I’ve faced.

Part I : fetching files

Using rsync over ssh, it was a no-brainer.
I just made sure that I had the same /home/$username on both hosts, in order to avoid editing some web apps’ config files to correct absolute paths.

Part II : setting up lighttpd

It was only after I was done that I noticed the lighttpd wiki has a cheat sheet to help you migrate from Apache.

Since I serve multiple sites, I went for a vhost setup using conditionnals, and then set each site’s accesslog, errorlog, and so on (so that my hostees could see their own access logs).

Mod_rewrite rules were another problem. You basically have to understand the rewrite rules that your apps generate (I can only hope you understand those you manually typed in), in order to simplify them and put them in the right order in lighttpd’s config file.
Also, since I didn’t care to remove .htaccess and .htpasswd files, I denied their access. They’re still useful for when an app (think WordPress or another CMS) wants to regenerate rules.

Part III : setting up PHP

Easy as pie with fastcgi in lighttpd. I took the occasion to harden its settings, and add stuff.
Each vhost runs PHP as suexec.

Part IV : struggling with tildas, aka using real utf-8 with MySQL

Here comes the part that took me ages to figure out. I made a dump of my databases, then when I loaded the dump on the new host I had double-encoded utf8. Both hosts are running MySQL 4.1, so I was rightly puzzled.
Turns out that, to have a future-proof MySQL setup I let it use utf-8 by default, while on most webhosts (including TextDrive) the default encoding is iso-8859-1, which leads to what I would call “fake utf-8″ content.
There were multiple solutions to this problem: I could set MySQL’s encoding to iso-8859-1 (no!), I could set the database with the problem to use iso-8859-1 (no!), or I could tell whichever app depended on “fake utf-8″ in utf-8 tables to use iso-8859-1 for its communication with MySQL.
This can be done with the SQL command SET NAMES 'latin1' at the beginning of the app’s execution.

In my case, WordPress was the app that used fake utf-8, so in order not to modify the code everytime I would upgrade WP, I made a simple plugin (latin1-fix.php), activated it, and voilà!, my text was readable again!

Part V : sleeping

Thank $DEITY there was no part V!

2005 09 21

l’improbabilité d’une ville

(La scène se passe à Paris, onze ans et demi après un quatrième gauche.)
De réunions improbables en pique-niques surprise, pizza-verre annulée et dîner ajax-fessée-hardlite-germanographie, je ne conjugue les personnes qu’au verbe de leurs pluriels. Je je je nous vous ils. Et e-l-l-e-s, aussi, toutes cinq qu’elle son.

2004 12 15

RATP, Météo France, même combat

L’avantage circonstanciel du blogueur parisien sur son homologue provincial, c’est la possibilité de publier un post sur le métro quand il se fait chier et n’a rien à bloguer.
Avec un post sur le métro, tout le monde est gagnant : du lecteur provincial, conforté dans son idée que Paris est une ville déshumanisante, au lecteur parisien, auteur bientôt d’un hochement de tête en forme de commentaire.

Ce matin, petite plongée en apnée avec la faune parisienne. Leur vue cachée par les œillères Tele 7 Jours et L’Equipe, le wagon RATP achemine les bêtes de somme vers leur destination de grégarité bestiale.

Têtes baissées, traits creusés par la résignation, avec cette attitude du bétail qui se dirige inéluctablement vers l’abattoir, les passagers se laissent bercer par le poids mort du cérémonial sans cesse recommencé.

source: un blog très chiant découvert par Laurent (et/ou George ?)

Oh regardez, la vingt millionnième comparaison d’un transport en commun avec le transport de bétail, servie par un style digne d’un ado dépressif, le tout après 15 jours sans posts. Novateur !

Finalement (je suis en cure de désintox anti-”en fait”, et vous ?), bloguer à propos du métro, c’est comme bloguer à propos de la météo. Autant ne pas bloguer.