No image 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 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…

Show comments

No image 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).

Show comments

No image 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.

Show comments
SEPTEMBER 24

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.

  • pour les articles
  • pour les r?sum?s de tous les articles
  • 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…

Show comments

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…

Show comments

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 gzip file and uncompress it.
  3. Upload the resulting file to /wp-content/plugins
  4. 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

Show comments
SEPTEMBER 19

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.

Show comments
SEPTEMBER 12

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 :

$jumbleIPs = array(“10.1.12.13″,”34.123.45.3″)

Show comments
SEPTEMBER 2

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/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 select the last part of the path (in this case new, default and no-style) and use them as the text in the selection box.
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 :

  • Download
  • write a comment,
  • or Contact me in case you have problems
Show comments