vendredi 18 juin 2010

Calendrier

pcal -o 2010.ps -P a4 -t 2010 -a fr -F 1 6 2010 2

mercredi 9 juin 2010

Python - urlparse


>>> from urlparse import urlparse
>>> o = urlparse('http://www.example.com:80/%7Eme/test.html;jsessionid=id?a=b&c=d#tag')
>>> o
ParseResult(scheme='http', netloc='www.example.com:80',
path='/%7Eme/test.html', params='jsessionid=id',
query='a=b&c=d', fragment='tag')

mardi 13 avril 2010

Alternatives java

sudo update-java-alternatives -l
sudo update-java-alternatives -s java-6-sun

mercredi 21 octobre 2009

Mysql

mysql> create database 3900_test;
Query OK, 1 row affected (0,00 sec)

mysql> grant all privileges on 3900_test.* to 'test'@'localhost' identified by 'test';
Query OK, 0 rows affected (0,00 sec)

vendredi 14 août 2009

Creation base sql et user

create database mabase;
grant all privileges on mabase.* to test identified by 'test';
mysql -h localhost -u test -ptest mabase