More progress on my statistics analysis tool.
Looks pretty decent now:

The next steps are
- a specific module to graph pages by google rank
- an OOo export
- a phpmv integration, when v2 is out
Edit Fonts are a bit small, here is a close-up:

Aller au contenu | Aller au menu | Aller à la recherche
More progress on my statistics analysis tool.
Looks pretty decent now:

The next steps are
Edit Fonts are a bit small, here is a close-up:

Generating SVG from PHP is quite cool if you want my opinion. I am working on generating complete and configurable web statistics reports. I jsut throw the first bits in yesterday, and here is the first result:

This is generated with the subsequent API calls:
$tp = new TimePlot('title', new Rect(0, 0, 700, 700));
$tp->addReportFile('Search Phrases_2005-01-01_2005-01-31.CSV');
$tp->addReportFile('Search Phrases_2005-02-01_2005-02-28.CSV');
$tp->addReportFile('Search Phrases_2005-03-01_2005-03-31.CSV');
$tp->addReportFile('Search Phrases_2005-04-01_2005-04-30.CSV');
$tp->addReportFile('Search Phrases_2005-05-01_2005-05-31.CSV');
$tp->addReportFile('Search Phrases_2005-06-01_2005-06-30.CSV');
$tp->addReportFile('Search Phrases_2005-07-01_2005-07-31.CSV');
$tp->addReportFile('Search Phrases_2005-08-01_2005-08-31.CSV');
$tp->addReportFile('Search Phrases_2005-09-01_2005-09-30.CSV');
$tp->addTrace('DO certification', '/([D|d])([O|o])( )*(-)*( )*[178|254]/');
$tp->addTrace('IEC certification', '/([I|i][E|e][C|c])/');
$tp->addTrace('Jobs', '/([j|J][o|O][b|B])/');
$tp->addTrace('SCADE', '/([s|S][c|C][A|a][d|D][e|E])/');
$tp->addTrace('Esterel', '/([e|E][s|S][t|T][e|E][R|r][E|e][L|l])/');
$tp->addTrace('All', '/(.*)/');
echo $tp->asSvg();
CSV files are generated by my current statistics tool, but I plan to plug this code directly in phpMyVisites
Of course, there is still a lot to do...
Monday 17 October 2005
Par obi, Monday 17 October 2005 à 12:14 :: Work
Once your web site sarts to have less errors thanks to the previous script , you will enjoy a shorter one, only reporting pages with errors and a count oof them in the subject to track your progression.
Thursday 29 September 2005
Par obi, Thursday 29 September 2005 à 17:18 :: Work
You need:
So it should be quite portable.
You also need the list of pages to validate. As my web strucure is managed by php, I creted a php page returning this list.
#!/bin/bash tmpValid=/tmp/autoweb-valid.txt tmpMail=/tmp/autoweb-mail.txt ##get list of pages pageList=$(wget http://www.esterel-technologies.com/admin/allUrls.php -O - -q) i=0 echo "ET Web validation ( $(date) )" >> $tmpMail for page in $pageList do i=$localName="/tmp/am-autoweb-$i.html" ##Get the page wget -q $page -O $localName >/dev/null echo "$i. $page" >>$tmpMail tidy -o /dev/null -q -utf8 -f $tmpValid $localName >> $tmpMail cat $tmpValid >> $tmpMail echo "" >> $tmpMail rm -f $localName rm -f $tmpValid done mail -s "Web Validation" your@email.here < $tmpMail rm -f $tmpMail
The neat thing is to use wget to retreive page, so:
Friday 19 November 2004
Par obi, Friday 19 November 2004 à 18:30 :: Work
Could you guess that these two designs are equivalent ?
Original design :

Reworked design:

Both are an implementation of the Simulink Backlash
If you find a better one than mine (The mean block with zero is here on purpose, as the division by two is implemented with a bitshift.), or a worst one than the original, feel free to show me your code drawings!
Wednesday 10 November 2004
Par obi, Wednesday 10 November 2004 à 17:41 :: Work
It took me some times to figure out how to handle the filenames. The secret is cygpath, which transforms cygwin filenames to windows (-w option) filenames
#!/bin/bash
DIR=$(cygpath -w $(pwd))
DEST=$DIR/png_$1
mkdir $DEST
INKSCAPE="C:/Documents and Settings/monnier/Desktop/labo/LATEST/inkscape/inkscape.exe"
for i in $(ls *.svg)
do
"$INKSCAPE" $DIR/$i -e ${DEST}/${i}_${1}.png -w $1
done Wednesday 27 October 2004
Par obi, Wednesday 27 October 2004 à 10:53 :: Work
Several monthes ago, I spent a few days building a PFD java bean, using the nice Java 2D API. Meanwhile, I was starting to play with inkscape and SVG files. And found many common things.
A toy I made, and will never earn enough to buy. Well, not exactly made, not exactly I. But I participated to it's conception.
I have been working during these seven weeks at Johnson Controls to help the HMI team with our SCADE product. It's very interesting to see how our tool is used on the field, in real every day work. I met very interesting people and this first contact with the automotive world was very instructive. And busy.
I'm back, after restful holydays.
Spent 3 days doing that:

Who will understand what it does ?