Sending your email database to your GMail account

After I got my GMail account, I wanted to transfer all my local emails there. Why? I don't know, beacause it doesn't seem like the best thing to do. I tried Mark Lyon's Google Mail Loader, but it kept locking up, so I wrote a little php script to read an mBox file and send the emails it contains one by one to a GMail account.

Copy the source from this page to a php file or get the gzip file, uncompress and host it on your own web site, but make sure no one has access to it, as it can be used to send span or whatever to any account. When you load it up in your browser, it will ask you for your GMail address and the mBox file to send. Click on 'go' and it starts sending your emails. It sends one every three seconds, so sending a whole database might take a while...


Record de la traversée de la Méditerranée.

17 heures 56 minutes 13 secondes ! Voila le temps qu' Orange II a mis pour naviguer de Marseille Carthage (Tunisie). Ils ont donc battu de 50 minutes le précédent record établi par Steve Fosset et Playstation, une vitesse moyenne absolument extraordinaire de 25,53 noeuds sur la distance de 548 miles !

D'après Bruno Peyron, ce fut un véritable sprint très stressant, les écoutes la main dans des vents soutenus de 30 35 noeuds.

Les nouveaux détenteurs du record de la Méditerranée se nomment désormais : Bruno Peyron (skipper), Sébastien Audigane (barreur), Lionel Lemonchois (barreur), Halvard Mabire (barreur), Yves Le Blévec, Ludovic Alglaor, Marc Englebert, Tanguy de lamotte, Stanislas Devorsine, Quentin Gilles et Arnaud de Bélinay (vidéo).


Wordpress and StatTraq

StatTraq seems to be getting more popular. Another Wordpress plugin using it has been published by Rich Boakes. It gives the number of times that a particular post has been viewed, and is quite attractive. I think I'll be installing it. Also don't forget to take a look at the latest version of StatTraq. A great many improvements.


1 Comments on C'est quoi ces boutons ?

Très rapidement

Téléchargez un lecteur de news (essayez Sage pour FireFox, ou FeedDemon pour Windows) et trainez y un de ces boutons. Vous devriez maintenant pouvoir lire ce blog sans y être connecté(e) et être mis(e) au courant lors des mises jour.

RSS c'est quoi ?

En anglais ça veut dire Really Simple Syndication, Syndication Très Facile. Les fichiers (ou flux) RSS sont écrits en XML et ne sont pas fait pour être vus avec votre navigateur, mais avec des aggrégateurs ou lecteurs de flux. En fait, il y a plus d'une version de RSS, mais les programmes les gèrent en général toutes, donc ne vous en souciez pas.

Au départ, la syndication de contenu a été conçue pour des sites d'information, où le fichier RSS contient le titre, la date et un résumé des dernières nouvelles. Ce flux d'informations peut alors être affiché sur un autre site.

Les Boutons

Ils vous emmènent directement aux fichiers RSS qui sont difficles lire dans un navigateur. Pour lire plus confortablment, trainez le bouton jusque sur votre 'aggrégateur', et le contenu du site apparaitra de manière lisible.

  • Rss 2.0 pour les articles
  • Résumés des articles en Rss 2.0 pour les résumés de tous les articles
  • Commentaires Rss 2.0 pour les commentaires de tous les articles

Aggrégateurs RSS

Il y en a énormément. Je vous conseille particulièrement l'extension Sage pour Firefox, qui a l'avantage de fonctionner sur la plupart des plateformes (Mac, Windows, Linux), ou bien consultez Google

En savoir plus

Je vous conseille l'article de Sébastien Lardière qui approfondit les explications, ou cette page, où vous pourrez tout savoir de Atom, RSS, etc...


2 Comments on Firefox et GMail

Il y deux bonnes manières d'aider Firefox se distribuer plus largement : mettre un lien vers spreadfirefox.com sur votre page web, et donner des invitations GMail qui seront redistribuées aux personnes ayant mis un lien sur leur site. Une bonne initiative qui l'air de prendre comme de la poudre...


13 Comments on Referrer Wordpress Plugin

Referrers is a plugin I coded to show the most recent referring urls to a particular post. I had seen the wp-refer plugin from NoPrerequisite but couldn't put it on my blog without hacking because it uses the meta fields to store its data, and as I display the metadata for other purposes in each post, it would get fairly cluttered.

Also, I am using the very good StatTraq plugin, so I thought I could make use of the fact that it already records referrers.

To install :

  1. Download and install Stattraq.
  2. Download post_referrers.php.txt
  3. Rename to post_referrers.php
  4. Or get the gzip file and uncompress it.
  5. Upload the resulting file to /wp-content/plugins
  6. Activate it in your admin interface

Using it is simple:

Add the following code to your index.php file, within the loop

 post_referrers(8, "<li>", "</li>", "No referrers", "self");

Where '8' is the number of referrers to show, '<li>' is the text to show before each link, '</li>' is the text to showafter each link, 'No referrers' is... you guessed it! the text to show when there are no referrers yet and the last option marks the excluded hosts. If you use 'self', internal referrers only will be hidden. Otherwise, you can write a list of hosts (domain names) to ignore like this: "google.com yahoo.com example. org" and so on...

See it work at the bottom of this page, and leave a comment in case of problems.

Version 0.21 and up use Google redirection to help prevent referrer spam.

En Français


Radio buttons dilemma

What if in a form I select a radio button by mistake, when I didn't want to make a choice? I guess I would just reload the page, or else hope that the designer put a 'reset' button.


Jumble Up! Wordpress Plugin

You've pbarloby raed taht txet smerwheoe alaerdy :

Aoicncdrg to an Enligsh utsinvriey stduy the oedrr of lettres in a wrod desnot mttaer the only tnhig ttahs iatomnrpt is that the fisrt and lsat leettr of evrey wrod is in the crrcoet piotoisn the rest can be jbmeuld and one is siltl albe to read the txet whuoitt dflfciituy.

This is what the 'Jumble Up!' plugin will do to the commenters which you consider as spammers or trolls, based on their IP address. I took some inspiration from the Disemvoweler plugin for the spam targeting.

Install is not difficult : Download, rename to jumble.php, upload it to your wp-contents/plugins directory and activate it from the admin interface.

Now, to target specific IPs for jumble-isation, open jumble.php and edit the line where it says :
$jumbleIPs = array("0.0.0.0");
and add spammer IPs as such :


28 Comments on Stylesheet Chooser Version 0.2

I had tried for a while to find a way to allow users to choose their favorite theme for this website. I decided to do it as a Wordpress plugin, which I offer today for other Wordpress users. Installing it is quite simple: Download, rename to stylesheet_chooser.php, upload it to your wp-contents/plugins directory and activate it from the admin interface.

To define which stylesheets to use (no, it's not automatic...), you have to define an array called $styles, before you call any of the other functions.You can do it like this, for example :
$styles=array("styles/new","styles/default","styles/no-style"); if your stylesheets are in the styles directory. Omit the '.css' part. The first one in the list will be used as your default style. The plugin will automatically selectthe last part of the path (in this case new, default and no-style) and use them as the text in the selection box.

In the plugin file (stylesheet_chooser.php), change the two lines below to use text in your language:

   <span class="warning"><?php _e("Si votre navigateur en &eacute;tait capable, vous pourriez ")?></span>
 <label for="newstyle"><?php e('Change style...')?></label>

In your template (index.php) you have to insert two functions:

style_link() will insert the style sheets link. You have to put it between the <head> and </head> tags in your template.

The optional parameter - for example style_link(false) - can be set to 'true' (default) if you want to @import the style sheets (ignored by NS4), or to 'false' to get this kind of links: <link rel="stylesheet" title="....> for the current chosen style sheet and like this: <link rel="alternate stylesheet" title="....> for the other(s).

style_chooser() will insert the form that is used to select the stylesheet. Place it wherever you want, in your sidebar for example.

In version 0.23+, it is possible to have a short comment appear below the selection dropdown. For this, the only thing you have to do is insert it in your stylesheets like this:

/*
Comment: Write your comment here.
*/

And that's it, now each stylesheet has it's own "introduction text".

Now that you know all this, you can :