2nd 6月 2008

Eurêka! #2

この記事は次の言語でお読みいただけます:FrançaisEnglish

posted in Tips | Comments Off

29th 5月 2008

Eurêka!

I am happy because I solved a problem with one of my WP plugins, which I could not get working (now-reading). The problem was not especially related to this plugin, but it took me hours to understand the cause.

Problem:

When trying to directly load a .php file in the plugin directory, it would redirect me to index.php and WP would show the 404 error page. No problem for .php files included by others.

Concrete example:

When trying to save the options of “Now Reading”, the form would be sent to the following file:
/wp-content/plugins/now-reading/admin/options.php
but instead of loading this file, it would load index.php and display a 404 error.

Same thing when trying to add a book, for the following file:
/wp-content/plugins/now-reading/admin/add.php

Explanation:

So what was happening?

I tried to look at my rewrite rules, suspecting a problem with WP rewrite rules, in vain.

It appears that the solution is much simpler: my web host apache server settings are such that you cannot directly load a .php script which has write permission for group members. Same restriction for scripts located in a directory that has write permission for group members.

By comparing the now-reading directory (and subdirectories) with my other plugins’, I found that the permission was 775 instead of 755. And the file permissions were 664 instead of 644.

Solution:

I changed my directory permissions to 755 and file permissions to 644, and… it worked!

Que d’émotions ;)

posted in Tips | 1 Comment

9th 11月 2007

Flock, the Social Web Browser

Have you ever thought about a browser that would allow you to follow Twitter, Facebook, Flickr, Youtube, … and even post to your blog instantly?

Flock, the Social Web BrowserWell, you were probably dreaming about Flock.  I just discovered it and it looks very nice, with all (not exactly all, but most) SNS integrated.  The twitter and media sidebars are very cool, and it has all other features a modern browser offers.

Isn’t this beautiful?

Blogged with Flock

posted in Tips | 2 Comments

15th 6月 2007

Penser au lait

“Ne pas oublier d’aller acheter du lait”, un petit post-it sur le coin de mon écran aurait peut-être bien pu faire l’affaire, mais figurez-vous que je suis tombé par hasard sur le site http://www.rememberthemilk.com/ qui permet, entre autre, de “penser au lait”. Et mieux, il permet de gérer une liste de tâches, une “to-do list” quoi. Bien sûr, il y a celle d’Outlook, mais je voulais une liste que je pouvais “ballader partout avec moi” (c’est-à-dire, paradoxalement, que je ne la trimbale pas avec moi, mais que je la trouve sur Internet). Je pensais que Google y avait déjà pensé, alors j’ai essayé de taper l’URL “http://tasks.google.com” dans mon browser, mais ca n’existe pas (encore). Google offre une fonction calendrier, mais pas la bête “to-do list”…

Pourquoi une “tout-doux liste” (euh…)? Eh bien je lis pour le moment un bouquin intitulé “dandori no gijutsu” (段取りの技術, ben oui, c’est en Japonais…) dont le sujet est la technique du “dandori“, un mot que l’on pourrait traduire par “préparation minutieuse”, “arrangement”, “planification”, etc. L’auteur est fameusement gonflé: il écrit un bouquin complet pour dire que “préparer, planifier, arranger est important et va vous faire gagner du temps”. On le savait. Mais tout de même, c’est bon de se le (faire) rappeler de temps en temps. En ce qui me concerne, j’ai souvent tendance à m’atteler à toutes sortes de trucs en même temps, et parfois a oublier ce qui est vraiment important.

Alors, je ne dis pas que la “to-do list” est une solution miracle, mais au moins, ça permet de planifier ce que l’on veut faire et de penser… au lait. C’est vrai cependant que ce n’est pas très structuré, mais ça a le mérite d’être simple. Et puis, ils supportent les “tags”, et même l’inclusion automatique dans Google Calendar. Mais bon, c’est comme tout: reste à voir si je vais continuer à l’utiliser…

posted in Books, Tips | 1 Comment