Je trouve ce principe excellent, techniquement rien de bien méchant, mais d’un point de vue présentation à l’utilisateur, c’est bien trouvé 🙂
Author Archives: Nicolas
Le retour de la silice organique
Voilà le propectus que j’ai récupéré il y a quelques jours à la pharmacie. Et un indice de plus dans le rôle majeur de la silice par rapport aux os et articulations. J’en connais un qui doit se retourner dans sa tombe… Quel rapport avec la transmutation à basse énergie ? Bientôt la suite…

Iframe resizing et scrollbar unique
Script ultra pratique (merci aux créateurs contributeurs penseurs développeurs) qui permet de mettre en place une iframe (ça y est, certains ont déjà mal aux yeux) et que la taille de cette dernière s’adapte de manière à réaliser un “include” parfait dans votre page.
La source et la démo sont ici : http://www.dynamicdrive.com/dynamicindex17/iframessi.htm
Avantages (et inconvénients) de Linux par rapport à Windows
J’ai trouvé un excellent PDF qui résume bien la situation de Linux comparativement à Windows. Oui, il y a forcément un parti pris dans ce genre de document, mais je suis personnellement en accord avec l’auteur (Dany Dubé).
Installer PostgreSQL sous Linux
Un très bon tuto que je copie colle.
This is a quick guide to installing PostgreSQL on a Linux based system. We need to get this up and running before we can write PHP scripts to talk to the database. We need to install PostgreSQL before we can install PHP (since we need the PostgreSQL header files).
This is a little more complicated than installing Apache.
The best bet is to install from packages since this will make things easier, both now and for upgrades.
If you decide to install from source code, you’ll need to create a user and compile the source.
Create a PostgreSQL user (you’ll need root access). This is who owns the system. I use the “postgres” user and group, you can use something different but it’s best to keep it related to the package.
See your system documentation on how to do this (hint – man useradd). Give the user a home directory of /usr/local/pgsql as this is where PostgreSQL defaults to when it installs.
Once all that is done, untar the source:
$ tar -zxf postgresql-
or
$ tar -xjf postgresql-
Jump into the directory:
$ cd postgresql-
(replace
Again, configure has a lot of help:
$ ./configure –help
We’ll just install into /usr/local/pgsql and leave the rest as-is:
$ ./configure –prefix=/usr/local/pgsql
Next we have to make it (this will take a while, it takes longer than Apache):
$ make
You will get a line:
All of PostgreSQL successfully made. Ready to install.
when everything is finished.
You’ll need to log in as root to do the rest:
$ su –
Go back to the postgresql directory and do:
# make install
PostgreSQL doesn’t allow root to start up the server for security reasons, so next you’ll have to change the owner of the files:
# chown -R postgres:postgres /usr/local/pgsql
Change to the postgres user:
# su – postgres
Then, change to /usr/local/pgsql:
$ cd /usr/local/pgsql
We need to initialize a database cluster:
$ bin/initdb -D ./data
This will create a /usr/local/pgsql/data directory and initialize it ready for startup and use.
As usual, you can view options by using the –help switch:
$ bin/initdb –help
Then you can start:
$ bin/pg_ctl -D ./data -l data/logfile start
Now that postgresql is started, we need to create a database and another user before we go any further.
You should use a separate database for each of our projects, it’s not essential though – it just makes things a little cleaner and easier to understand.
You should also use separate users for each database. This keeps everything separate and ‘project a’ won’t be able to modify any of ‘project b’s data.
To create a new user in postgresql, it’s pretty simple:
$ /usr/local/pgsql/bin/createuser
and follow the prompts – pretty simple 🙂
The new user should not be able to create new databases or create new users.
To create a database, it’s a little different.
$ /usr/local/pgsql/bin/createdb –owner=username databasename
We have to set the owner of the database when we create it, otherwise the ‘postgres’ user owns it and then we have to grant access to allow our new user to access it.
Now that that’s all done, log out of the postgres user, so we’re back as root. In the postgres directory, the contrib/start-scripts/ directory has a few system start up scripts.
Follow the instructions in the relevant one to install a start-up script so postgres will start when your system does.
More detailed installation instructions are in the INSTALL file or by going to the PostgreSQL website http://www.postgresql.org/docs/ and going to the right version for you.
Un CV Web 2.0
Original et bien vu 🙂
Découvrez la simplicité de Linux & des Logiciels Libres
Un excellent PDF à lire et à diffuser un maximum autour de vous !
Générer un archetype Shale avec Maven
La commande magique :
mvn archetype:create -DarchetypeGroupId=org.apache.shale -DarchetypeArtifactId=shale-archetype-blank -DarchetypeVersion=1.0.3-SNAPSHOT -DremoteRepositories=http://cvs.apache.org/maven-snapshot-repository -DartifactId=shaleApp -DgroupId=com.bull -DpackageName=com.bull.shaleApp
N'oubliez pas de générer le project et classpath nécessaires à eclipse avec un coup de mavette magique :
mvn eclipse:eclipse
The Other Side of AIDS
Enfin un réalisateur qui en a dans le pantalon pour parler de ce génocide “médical” à l’échelle planétaire :
http://www.theothersideofaids.com/
A quand une sortie dans les salles françaises ?
Email via bash + mutt ou biabam + sendmail
Un autre mémo, au cas où ça m’arrive à nouveau.
Pour envoyer un email via scripting, plusieurs choix sont possibles :
- mutt avec la commande suivante :
echo | mutt -s "titre du mail du `date`" -a fichierAttaché1 -a fichierAttaché2 destinataire1 destinataire2
- biabam qu’il suffit d’installer avec aptitude (et qui fait la même chose que mutt mais sans mutt installé)
Enfin, j’ai rencontré un autre problème avec sendmail. La machine sur laquelle était installé le sendmail s’appelait “thor.local”.
Or tant que les emails partaient à l’extérieur du domaine local, aucun souci. Par contre, pour l’envoi d’email “internes”, le smtp externe envoyait balader sendmail en disant que le domaine thor.local n’existe pas. Il faut donc reconfigurer sendmail pour que ça passe avec les instructions suivantes :
- ouvrir /etc/mail/sendmail.mc
- rajouter avant les instructions MAILER_XYZ les lignes suivantes :
MASQUERADE_AS(unVraiNomDeDomaineExistant.com)
FEATURE(`masquerade_entire_domain')
MASQUERADE_DOMAIN(leNomDeDomaineInterne) (dans mon cas thor.local)
FEATURE(`masquerade_envelope')
- executer : m4 sendmail.mc > sendmail.cf
- redémarrer sendmail via : sudo /etc/init.d/sendmail restart