<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Berthou.com</title>
	<atom:link href="http://www.berthou.com/us/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.berthou.com/us</link>
	<description>A french developper blog</description>
	<lastBuildDate>Mon, 09 Aug 2010 08:55:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Dynamic forms builder with jQuery</title>
		<link>http://www.berthou.com/us/2009/09/05/dynamic-forms-builder-with-jquery/</link>
		<comments>http://www.berthou.com/us/2009/09/05/dynamic-forms-builder-with-jquery/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:23:26 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[dhtml]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/?p=58</guid>
		<description><![CDATA[The project Recently I have searched a foms editor &#8211; wizard&#8221; in web mode. I looked for it on internet, believing many projects should greatly deal with this problem (I don&#8217;t like to develop something if it already exist). After many tests I have come to the conclusion that it does not exist (or that [...]]]></description>
				<content:encoded><![CDATA[<h2 class="titre2">The project</h2>
<p>Recently I have searched a foms editor &#8211; wizard&#8221; in web mode. I looked for it on internet, believing many projects should greatly deal with this problem (I don&#8217;t like to develop something if it already exist). After many tests I have come to the conclusion that it does not exist (or that it is not well &#8220;referenced&#8221;&#8230;).<br />
Also I have taken advantage of my holidays to do this &#8220;little&#8221; project.<br />
<img src="/_img/rbl_forms_0.png" class="center"/></p>
<p><span id="more-58"></span><br />
After my research I signal you the following sites which seem quite good but do not fit my objectives (tey were not in opensource).</p>
<p class="alertLink">
<a href="http://www.jotform.com/" target="_blank">JotForm</a> : I like the presentation<br/><br />
<a href="http://wufoo.com/examples/" target="_blank">Wufoo</a> : Seems interessant but an inscription is compulsory.
</p>
<h2 class="titre2">The goal</h2>
<p><b>It is really simple !</b></p>
<p class="alertInfo">
 <a href="http://www.berthou.com/rbl_forms/index.htm" target="_blank">Demonstration rbl_forms</a>
</p>
<ul>
<li>To permit to construct a html form in 100% web mode (without codeing)</li>
<li>Not to force to use a library as (jQuery, prototype, dojo,..) in the generated code</li>
<li>To offer the basics controls (compulsory area, size&#8230;)</li>
<li>To be easily adaptable (it is at you to tell me if this goal has been succesfully reached)</li>
<li>Not to use table</li>
<li>To save in XML size</li>
<li>To generate a page in pure html</li>
</ul>
<h2 class="titre2">Tools used</h2>
<p class="alertLink">
<a href="http://jquery.com/" target="_blank">jQuery</a> : I love it more and more, it&#8217;s lib !<br/><br />
<a href="http://jqueryui.com/" target="_blank">jQuery UI</a> : the logical extension to work in web mode.<br/><br />
<a href="http://www.berthou.com/fr/2007/11/23/formulaire-dhtml/">t_fotm</a> : For the validation part of the form.
</p>
<h2 class="titre2">The functionalities</h2>
<p>To make easier the visual creation of the form the use of the &#8220;drag &#038; drop&#8221; is very important to register areas of the form or to move them.<br/><br />
There is three levels of personnalisation ( Form, Column, Element ). Theses differents pannels permit to specify with precision the size and the presentation of the form.</p>
<h3 class="titre3">The form pannel</h2>
<p><img src="/_img/rbl_forms_d0.png" class="right"/><br />
This dialog box permit to specify the following informations (they are activated by cliking on the item &#8220;Edition Form&#8221; on the left pannel) :</p>
<ul>
<li>The name : form <b>name</b> attribut</li>
<li>The file : to save</li>
<li>The title : Display in the form (fieldset legend)</li>
<li>The action : form <b>action</b> attribut (url or other)</li>
<li>The method : POST or GET </li>
<li>The size : Appear in the style properti (width, height)</li>
<li>The layout : unused actually</li>
<li>The CSS : This gives the principal style of the &#8220;form&#8221;</li>
</ul>
<p class="alertWarning">In the case of a cration of a new form you must not forgive of modify the &#8220;file&#8221; area to specify the names of the saving files.</p>
<h3 class="titre3">Les colonnes</h2>
<p><img src="/_img/rbl_forms_d1.png" class="right"/><br />
I accept the definition of many column for the construction of theses elements because I don&#8217;t want to have too vertically form. I limit it to three column at this day.<br />
You can edit the proprieties of the column by selecting (by a simple click) the line &#8220;column 1&#8243; of grenn/yellow color then by clicking on the item &#8220;Edition&#8221; of the left pannel.<br/><br />
Description of the pannel : </p>
<ul>
<li>Name of the column : unused</li>
<li>Size : (width, height) can be define by resizing the column or by directly keyboarding the values.</li>
<li>The layout : it is a CSS clss which permit to specify the type of presentation in the column.</li>
<li>The CSS : other CSS class (at this day undefined but implented)</li>
</ul>
<p class="alertWarning">The item &#8220;supression&#8221; in the left menu permit to cancel/delete a column with the whole areas.
</p>
<h3 class="titre3">The areas</h2>
<p><img src="/_img/rbl_forms_d2.png" class="right"/><br />
You can add areas in a column of the form by a simple &#8220;drag &#038; drop&#8221; from the left menu. Also appear  a dialog box which invit you to specify some informations (theses data change with the type of area).</p>
<ul>
<li>ID : for information (readonly</li>
<li>Nom : attribut name </li>
<li>Label : Input information (title / label)</li>
<li>AccessKey : keyboard shortcut</li>
<li>Format : standard input mask  (email, date, money, &#8230;) for input control</li>
<li>Freemask : you can use this to define other format / mask
<ul>
<li>9 : A digit char 0-9</li>
<li># : An optionnal digit char</li>
<li>A : An alpha char in uppercase</li>
<li>a :  An optionnal alpha char in uppercase</li>
<li>M : An alpha char (upper or lower)</li>
<li>m : An optionnal alpha char</li>
<li>N : An alphanumiric char</li>
<li>n : An optionnal alphanumeric char</li>
<li>V : A coma or point </li>
<li>v : An optionnal coma or point </li>
<li>S : A sign + or &#8211; </li>
<li>s : A optionnal sign</li>
<li>T : A char</li>
<li>t : A optionnal char</li>
</ul>
</li>
<li>Regex. : a regexp for more complicated control</li>
<li>Size : </li>
<li>Table associted : personal use in other project</li>
<li> max length :</li>
<li>autoskip : sklip to the next zone if all char is entered  </li>
<li>CSS : style html (class)</li>
<li>Required  </li>
<li>ReadOnly</li>
<li>Aide : Help message </li>
</ul>
<h2 class="titre2">Sample form</h2>
<p><img src="/_img/rbl_forms_1.png" class="center"/></p>
<p class="alertLink">
<a href="http://www.berthou.com/rbl_forms/html/produit.html" target="_blank">Sample generated form</a>
</p>
<h2 class="titre2">In the next versions</h2>
<p>I would like add many other functionnalities in the next version of this tool.<br />
Je souhaite ajouter plusieurs fonctionnalités dans les prochaines versions de cet outil. </p>
<ul>
<li>CSS : Define new CSS styles (form, colonnes, input)</li>
<li>Translation : Add other language</li>
<li>Add more complex controles : Captcha, Tabs, &#8230;</li>
<li>Can select other datepicker and forms controles</li>
<li>Add other load/save script in JSP, ASP, Perl&#8230;</li>
<li>And more&#8230;.</li>
</ul>
<p class="alertInfo">
Do npt hesitate to contact me if you wish to help me in this developement or if you have add a functionality or correct a bug.
</p>
<h2 class="titre2">Download</h2>
<p class="alertDownload">
<a href="/download.php?type=dhtml&#038;file=rbl_forms.zip" target="_blank">rbl_forms last version</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2009/09/05/dynamic-forms-builder-with-jquery/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>Verify PDF signature with iText</title>
		<link>http://www.berthou.com/us/2009/07/01/verify-pdf-signature-with-itext/</link>
		<comments>http://www.berthou.com/us/2009/07/01/verify-pdf-signature-with-itext/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 17:56:39 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[certificat]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/?p=54</guid>
		<description><![CDATA[Description After the article &#8220;How to sign a PDF in Java&#8221; I had various demands concerning the verification of this signature. You will find in this article an exemple of code which permit to check this. Tools used http://itextpdf.sourceforge.net/howtosign.html#howtoverify : Origins of the informations and of the code used below Acrobat reader 8.x ou sup [...]]]></description>
				<content:encoded><![CDATA[<h2 class="titre2">Description</h2>
<p><img src="/_img/pdf_sign.png" class="left"/><br />
After the article &#8220;How to sign a PDF in Java&#8221; I had various demands concerning the verification of this signature.<br />
You will find in this article an exemple of code which permit to check this.</p>
<h2 class="titre2">Tools used</h2>
<ul>
<li><a href="http://itextpdf.sourceforge.net/howtosign.html" target="_new">http://itextpdf.sourceforge.net/howtosign.html#howtoverify</a> : Origins of the informations and of the code used below</li>
<li><a href="http://www.adobe.com/fr/products/acrobat/" target="_blank">Acrobat reader 8.x ou sup</a> To read the PDF documents</li>
<li><a href="http://www.lowagie.com/iText/" target="_blank">iText 2.x</a>Java librarie tools (the reference according to me) to create, sign and handle PDF documents</li>
<li><a href="http://www.bouncycastle.org/fr/index.html" target="_blank">bouncycastle.org</a> used in itext (bcprov)</li>
</ul>
<p><span id="more-54"></span></p>
<h2 class="titre2">Exemple (source code)</h2>
<p>As you can see the java code to do this is very simple :</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.berthou.test.pdf</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.security.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.security.cert.Certificate</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.ArrayList</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.Calendar</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.lowagie.text.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.lowagie.text.pdf.*</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> test_pdf  <span style="color: #009900;">&#123;</span>
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * Name of the PDF document
	 */</span>
	<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #003399;">String</span> dirname  <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;D:<span style="color: #000099; font-weight: bold;">\\</span>&quot;</span> <span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">// &quot;D:\\&quot;</span>
	<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #003399;">String</span> fname  <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;HelloWorld_sign&quot;</span> <span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
			test_pdf.<span style="color: #006633;">verifyPdf</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003399;">System</span>.<span style="color: #006633;">err</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">boolean</span> verifyPdf<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
                   <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">IOException</span>, DocumentException, <span style="color: #003399;">Exception</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">KeyStore</span> kall <span style="color: #339933;">=</span> PdfPKCS7.<span style="color: #006633;">loadCacertsKeyStore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		PdfReader reader <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> PdfReader<span style="color: #009900;">&#40;</span>dirname <span style="color: #339933;">+</span> fname <span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;.pdf&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		AcroFields af <span style="color: #339933;">=</span> reader.<span style="color: #006633;">getAcroFields</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Search of the whole signature</span>
		<span style="color: #003399;">ArrayList</span> names <span style="color: #339933;">=</span> af.<span style="color: #006633;">getSignatureNames</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// For every signature :</span>
		<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> k <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> k <span style="color: #339933;">&lt;</span> names.<span style="color: #006633;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #339933;">++</span>k<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		   <span style="color: #003399;">String</span> name <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#41;</span>names.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>k<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  		   <span style="color: #666666; font-style: italic;">// Affichage du nom</span>
		   <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Signature name: &quot;</span> <span style="color: #339933;">+</span> name<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Signature covers whole document: &quot;</span>
                                <span style="color: #339933;">+</span> af.<span style="color: #006633;">signatureCoversWholeDocument</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  		   <span style="color: #666666; font-style: italic;">// Affichage sur les revision - version</span>
		   <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Document revision: &quot;</span> <span style="color: #339933;">+</span> af.<span style="color: #006633;">getRevision</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot; of &quot;</span>
                                <span style="color: #339933;">+</span> af.<span style="color: #006633;">getTotalRevisions</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #666666; font-style: italic;">// Debut de l'extraction de la &quot;revision&quot;</span>
		   <span style="color: #003399;">FileOutputStream</span> out <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileOutputStream</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;d:<span style="color: #000099; font-weight: bold;">\\</span>revision_&quot;</span>
                                <span style="color: #339933;">+</span> af.<span style="color: #006633;">getRevision</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;.pdf&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #000066; font-weight: bold;">byte</span> bb<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">8192</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		   <span style="color: #003399;">InputStream</span> ip <span style="color: #339933;">=</span> af.<span style="color: #006633;">extractRevision</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #000066; font-weight: bold;">int</span> n <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		   <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>n <span style="color: #339933;">=</span> ip.<span style="color: #006633;">read</span><span style="color: #009900;">&#40;</span>bb<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> out.<span style="color: #006633;">write</span><span style="color: #009900;">&#40;</span>bb, <span style="color: #cc66cc;">0</span>, n<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   out.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   ip.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #666666; font-style: italic;">// Fin extraction revision</span>
&nbsp;
		   PdfPKCS7 pk <span style="color: #339933;">=</span> af.<span style="color: #006633;">verifySignature</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #003399;">Calendar</span> cal <span style="color: #339933;">=</span> pk.<span style="color: #006633;">getSignDate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #003399;">Certificate</span> pkc<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> pk.<span style="color: #006633;">getCertificates</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #666666; font-style: italic;">// Information about the certificat, le signataire</span>
		   <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Subject: &quot;</span>
                                <span style="color: #339933;">+</span> PdfPKCS7.<span style="color: #006633;">getSubjectFields</span><span style="color: #009900;">&#40;</span>pk.<span style="color: #006633;">getSigningCertificate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #666666; font-style: italic;">// Le document à t'il ete modifié ?</span>
		   <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Document modified: &quot;</span> <span style="color: #339933;">+</span> <span style="color: #339933;">!</span>pk.<span style="color: #006633;">verify</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		   <span style="color: #666666; font-style: italic;">// Is the certificate avaible ? Be carefull we search the chain of certificat</span>
		   <span style="color: #003399;">Object</span> fails<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> PdfPKCS7.<span style="color: #006633;">verifyCertificates</span><span style="color: #009900;">&#40;</span>pkc, kall, <span style="color: #000066; font-weight: bold;">null</span>, cal<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>fails <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
		       <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Certificates verified against the KeyStore&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		   <span style="color: #000000; font-weight: bold;">else</span>
		       <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Certificate failed: &quot;</span> <span style="color: #339933;">+</span> fails<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">true</span> <span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h2 class="titre2">Sample PDF generate</h2>
<p class="alertDownload">
<a href="/download.php?type=wp&#038;file=HelloWorld_sign.pdf" target="_blank">HelloWorld_sign.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2009/07/01/verify-pdf-signature-with-itext/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; a good printing with the CSS</title>
		<link>http://www.berthou.com/us/2009/06/13/wordpress-a-good-printing-with-the-css/</link>
		<comments>http://www.berthou.com/us/2009/06/13/wordpress-a-good-printing-with-the-css/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 17:24:28 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[dhtml]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/2009/06/13/wordpress-a-good-printing-with-the-css/</guid>
		<description><![CDATA[A good use of style sheet. I often print an article to keep a copy. I use most of the time a &#8220;see before printing&#8221; to select the pages I want to print. But I&#8217;ve remarked that 50% of the printing area is employed with publicities or menus. When we create the design of a [...]]]></description>
				<content:encoded><![CDATA[<h2 class="titre2">A good use of style sheet.</h2>
<p><img src="/_img/printer_0.png" alt="Imprimante " class="left"/><br />
I often print an article to keep a copy. I use most of the time a &#8220;see before printing&#8221; to select the pages I want to print. But I&#8217;ve remarked that 50% of the printing area is employed with publicities or menus.</p>
<p>When we create the design of a site we foresee an area for menus, for publicity and sometimes others specific areas to boost the look and the ergonomic of the site.<br />
These areas useful for the navigation become a pain for the printing of the article. However it is very simple to handle this problem if you use the style papers.<strong>CSS</strong>.</p>
<p>In an ecological wish (it&#8217;s tendance) but also to have a &#8220;cleaner&#8221; printed text, I am going to explain you how to adapt your WP theme to print correctly.<br />
<span id="more-45"></span></p>
<p><img src="/_img/imp_screen.png" alt="Structure ecran d'un site" class="left"/><br />
<img src="/_img/imp_prt.png" alt="Structure ecran d'un site" class="right"/></p>
<h2 class="titre2">Modifications for WordPress</h2>
<p>WordPress, like all the blog or CMS motors, use style papers to make easier the adpatation of the presentation. Also it is quite simple to adapt your theme, if it doesn&#8217;t permit it. In my case the adpatation took me less than one hour. Here is the modifications to make :</p>
<ul>
<li>print.css : creation of the specific style paper for the printing &#8211; It is a minimum version I only use the ID No Print that I hide for the impression, you can make it richer to modificate the margins, the size of the police and many other things.
<p class="alertCode">* #NoPrint {<br />
   display: none;<br />
}</p>
</li>
<li>header.php : Add of the style papers &#8220;media&#8221; for the print.
<p class="alertCode">
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; <b>media=&#8221;print&#8221;</b>  href=&#8221;<b>&lt;?php bloginfo(&#8216;template_url&#8217;); ?&gt;</b>/print.css&#8221; /&gt;
</p>
</li>
<li>index.php, page.php, &#8230; : Modification of many pages in the theme to add a &#8211; <b>id=&#8221;NoPrint&#8221;</b> &#8211; to the elements i don&#8217;t want to print.
</li>
</ul>
<h2 class="titre2">Downloads</h2>
<p>I propose you to download the last version of the theme Rbl-Illacrimo which includes the support of the printing.</p>
<p class="alertDownload">
<a href="/download.php?type=wp&#038;file=rbl-illacrimo-fr.zip">Rbl &#8211; Illacrimo &#8211; Français</a><br/><br />
<a href="/download.php?type=wp&#038;file=rbl-illacrimo.zip">Rbl &#8211; Illacrimo &#8211; English</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2009/06/13/wordpress-a-good-printing-with-the-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A ServletFilter to monitor the execution state of a JSP.</title>
		<link>http://www.berthou.com/us/2009/02/14/a-servletfilter-to-monitor-the-execution-state-of-a-jsp/</link>
		<comments>http://www.berthou.com/us/2009/02/14/a-servletfilter-to-monitor-the-execution-state-of-a-jsp/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 18:08:31 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[websphere]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/2009/02/14/a-servletfilter-to-monitor-the-execution-state-of-a-jsp/</guid>
		<description><![CDATA[The reasons of this little project Recently I had a little problem on a Websphere application server. A JSP page running on this application server had a problem (a no ending loop). This was a bit hard to identify because noting permit to isolate on this server the pages running. To solve this lake of [...]]]></description>
				<content:encoded><![CDATA[<h2 class="titre2">The reasons of this little project</h2>
<p>Recently I had a little problem on a Websphere application server. A JSP page running on this application server had a problem (a no ending loop). This was a bit hard to identify because noting permit to isolate on this server the pages running.<br />
To solve this lake of informations I realized a little  Servletfilter which permit to monitor this.<br />
I propose you this little tool for exemple as a ServletFilter. I wish it would be useful to you.<br />
<br/><br/></p>
<p><img src="/_img/StatsFilter_0.png" class="center" /><br />
<span id="more-51"></span></p>
<h2 class="titre2">The goal of the project.</h2>
<p>It consist to put in a HashTable the running pages. I also had some others informations which permit me to offer some more statistics (execution time, number of errors, number of executions&#8230;)<br />
A JSP page display the informations of this Hashtable.</p>
<p>The use of this filter allows me to add this option to the whole webapps without changing the actif code (only the file web.xml which have to be modifiate to activate the filter).<br />
<br/><br/></p>
<h2 class="titre2">Project source</h2>
<p>The whole source code is avaible to download. The application is composed of three smalls classes :</p>
<h3 class="titre3">StatsFilter.java : The filter</h3>
<p>Little class doing all his work in the method<strong>doFilter</strong></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.berthou.web.filtre</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.servlet.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.servlet.http.*</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000000; font-weight: bold;">class</span> StatsFilter <span style="color: #000000; font-weight: bold;">implements</span> Filter <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">private</span> FilterConfig filterConfig <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #003399;">String</span> appli <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> doFilter<span style="color: #009900;">&#40;</span>ServletRequest request, ServletResponse response,
        FilterChain chain<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">IOException</span>, ServletException <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>filterConfig <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>  <span style="color: #000000; font-weight: bold;">return</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003399;">String</span> key <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">;</span>
    	<span style="color: #000066; font-weight: bold;">long</span> startTime <span style="color: #339933;">=</span> <span style="color: #003399;">System</span>.<span style="color: #006633;">currentTimeMillis</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
    		key <span style="color: #339933;">=</span> appli <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>HttpServletRequest<span style="color: #009900;">&#41;</span>request<span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getServletPath</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    		<span style="color: #666666; font-style: italic;">// On ajoute la page dans la liste des pages en cours</span>
    		MonitorJsp.<span style="color: #006633;">action</span><span style="color: #009900;">&#40;</span> MonitorJsp.<span style="color: #006633;">ACT_ADD</span>, key, <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    		chain.<span style="color: #006633;">doFilter</span><span style="color: #009900;">&#40;</span>request, response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    		<span style="color: #666666; font-style: italic;">// On supprime la page dans la liste des pages en cours (+temsp d'execution)</span>
    		MonitorJsp.<span style="color: #006633;">action</span><span style="color: #009900;">&#40;</span> MonitorJsp.<span style="color: #006633;">ACT_DEL</span>, key, <span style="color: #009900;">&#40;</span><span style="color: #003399;">System</span>.<span style="color: #006633;">currentTimeMillis</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> startTime<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> io<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    		<span style="color: #666666; font-style: italic;">// Une erreur ce produit =&gt; on la trace puis on la renvoie</span>
    		MonitorJsp.<span style="color: #006633;">action</span><span style="color: #009900;">&#40;</span> MonitorJsp.<span style="color: #006633;">ACT_ERR</span>, key, <span style="color: #009900;">&#40;</span><span style="color: #003399;">System</span>.<span style="color: #006633;">currentTimeMillis</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> startTime<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    		<span style="color: #000000; font-weight: bold;">throw</span> io <span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>ServletException se<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    		<span style="color: #666666; font-style: italic;">// Une erreur ce produit =&gt; on la trace puis on la renvoie</span>
    		MonitorJsp.<span style="color: #006633;">action</span><span style="color: #009900;">&#40;</span> MonitorJsp.<span style="color: #006633;">ACT_ERR</span>, key, <span style="color: #009900;">&#40;</span><span style="color: #003399;">System</span>.<span style="color: #006633;">currentTimeMillis</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> startTime<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    		<span style="color: #000000; font-weight: bold;">throw</span> se <span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Lecture des paramètres d'exécution (dans web.xml)
     *  Ici uniquement la zone APPLICATION
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> init<span style="color: #009900;">&#40;</span>FilterConfig filterConfig<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> ServletException <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">filterConfig</span> <span style="color: #339933;">=</span> filterConfig<span style="color: #339933;">;</span>
	appli <span style="color: #339933;">=</span> filterConfig.<span style="color: #006633;">getInitParameter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;APPLICATION&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> destroy<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">filterConfig</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3 class="titre3">MonitorJsp.java : The monitor</h3>
<p>It is a static class of supervision (it is possible to change to a singleton)</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.berthou.web.filtre</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.text.SimpleDateFormat</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.*</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #008000; font-style: italic; font-weight: bold;">/**
 * Classe de suppervision permettant de suivre l'état de certains objets
 * c'est un classe &lt;b&gt;static&lt;/b&gt;
 *
 * @author rberthou
 *
 */</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> MonitorJsp <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #003399;">String</span> version <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;MonitorJsp V1.00 du 4 Septembre 2008&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #003399;">Hashtable</span> map <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Hashtable</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> ACT_ADD <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> ACT_DEL <span style="color: #339933;">=</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">int</span> ACT_ERR <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span> <span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">synchronized</span> <span style="color: #000066; font-weight: bold;">void</span> action<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> act, <span style="color: #003399;">String</span> key, <span style="color: #000066; font-weight: bold;">long</span> delay<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    	ItemMonitor itm <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ItemMonitor<span style="color: #009900;">&#41;</span>map.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>key<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> itm <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>act <span style="color: #339933;">==</span> ACT_ADD<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    			itm <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ItemMonitor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    			map.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span>key, itm<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    		<span style="color: #009900;">&#125;</span>
    	<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>act <span style="color: #339933;">==</span> ACT_ADD<span style="color: #009900;">&#41;</span> itm.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> 	       <span style="color: #000000; font-weight: bold;">else</span>
   			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>act <span style="color: #339933;">==</span> ACT_DEL<span style="color: #009900;">&#41;</span> itm.<span style="color: #006633;">remove</span><span style="color: #009900;">&#40;</span>delay<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">else</span>
   			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>act <span style="color: #339933;">==</span> ACT_ERR<span style="color: #009900;">&#41;</span> itm.<span style="color: #006633;">error</span><span style="color: #009900;">&#40;</span>delay<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
    	<span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    ..... <span style="color: #009900;">&#91;</span>CUT<span style="color: #009900;">&#93;</span> ....
  <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3 class="titre3">ItemMonitor.java : The data</h3>
<p>It is a representation of a list of element.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.berthou.web.filtre</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ItemMonitor <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> nbrun  <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>  <span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Nombre d'execution</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> nbact <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">// Nombre de page active</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> nberr <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>    <span style="color: #666666; font-style: italic;">// Nombre d'erreur</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> mints <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>    <span style="color: #666666; font-style: italic;">// Temps min</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> maxts <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">// Temps Max</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> lastAcc <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// date last exec</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * Constructeur
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> ItemMonitor<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> reset<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		nbrun  <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span>  <span style="color: #339933;">;</span>
		nberr <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>
		mints <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>
		maxts <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> add<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		nbact<span style="color: #339933;">++</span> <span style="color: #339933;">;</span>
		lastAcc <span style="color: #339933;">=</span> <span style="color: #003399;">System</span>.<span style="color: #006633;">currentTimeMillis</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> remove<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">long</span> delay<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		nbrun<span style="color: #339933;">++</span> <span style="color: #339933;">;</span>
		nbact<span style="color: #339933;">--</span> <span style="color: #339933;">;</span>
&nbsp;
		sumts <span style="color: #339933;">+=</span> delay <span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>mints <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">||</span> delay <span style="color: #339933;">&lt;</span> mints<span style="color: #009900;">&#41;</span> mints <span style="color: #339933;">=</span> delay <span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>delay <span style="color: #339933;">&gt;</span> maxts<span style="color: #009900;">&#41;</span> maxts <span style="color: #339933;">=</span> delay <span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> error<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">long</span> delay<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		nberr<span style="color: #339933;">++</span> <span style="color: #339933;">;</span>
		nbact<span style="color: #339933;">--</span> <span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
      ..... <span style="color: #009900;">&#91;</span>CUT<span style="color: #009900;">&#93;</span> .....
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><br/><br/></p>
<h2 class="titre2">Utilisation</h2>
<p>To use this filter you have to :</p>
<ul>
<li>Add the archive .jar in the collective librairies of your application server. (Be careful: if you put it at once in your directory /WEB-INF/lib of your webapp it will only work for this application.)</li>
<li>Change the file web.xml to parameter this filter (exemple just below). </li>
</ul>

<div class="wp_syntax"><table><tr><td class="code"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>StatsFilter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.berthou.web.flitre.StatsFilter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;init-param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>APPLICATION<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param-value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>TEST1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param-value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/init-param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filter-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>StatsFilter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>*.jsp<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filter-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>It allows you to identify the filter in your webapp. You just have to write a JSP page as the one below to display the current datas</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;%</span>@ <span style="color: #000000; font-weight: bold;">import</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;com.berthou.web.filtre.*,java.util.*&quot;</span><span style="color: #339933;">%&gt;</span>
<span style="color: #339933;">&lt;%</span>
	<span style="color: #666666; font-style: italic;">// Get iterator for keys in HashMap</span>
	<span style="color: #003399;">Hashtable</span> monitorSession <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Hashtable</span><span style="color: #009900;">&#41;</span>MonitorJsp.<span style="color: #006633;">cloneIt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;b&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003399;">Iterator</span> sessionIter     <span style="color: #339933;">=</span> monitorSession.<span style="color: #006633;">keySet</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">iterator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003399;">String</span> id <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">;</span>
	ItemMonitor itm <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span> <span style="color: #339933;">;</span>
<span style="color: #339933;">%&gt;</span>
<span style="color: #339933;">&lt;</span>table<span style="color: #339933;">&gt;&lt;</span>thead<span style="color: #339933;">&gt;&lt;</span>tr<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;</span>id<span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;&lt;</span>th<span style="color: #339933;">&gt;</span>act<span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;&lt;</span>th<span style="color: #339933;">&gt;</span>run<span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;&lt;</span>th<span style="color: #339933;">&gt;</span>err<span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;&lt;</span>th<span style="color: #339933;">&gt;</span>last<span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;&lt;</span>th<span style="color: #339933;">&gt;</span>min<span style="color: #339933;">/</span>max<span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;&lt;</span>th<span style="color: #339933;">&gt;</span>Sum<span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;&lt;/</span>thead<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>tbody<span style="color: #339933;">&gt;&lt;%</span>
<span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>sessionIter.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  id <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#41;</span>sessionIter.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  itm <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ItemMonitor<span style="color: #009900;">&#41;</span>monitorSession.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000000; font-weight: bold;">try</span>
  <span style="color: #009900;">&#123;</span>
		<span style="color: #339933;">%&gt;&lt;</span>tr valign<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top&quot;</span><span style="color: #339933;">&gt;&lt;</span>td <span style="color: #339933;">&gt;&lt;%=</span>id<span style="color: #339933;">%&gt;&lt;/</span>td<span style="color: #339933;">&gt;&lt;%=</span>itm.<span style="color: #006633;">toHtmlString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">%&gt;&lt;/</span>tr<span style="color: #339933;">&gt;&lt;%</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span> java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">IllegalStateException</span> ie <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">%&gt;</span>
<span style="color: #339933;">&lt;/</span>tbody<span style="color: #339933;">&gt;&lt;/</span>table<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p><br/><br/></p>
<h2 class="titre2">Attention</h2>
<p>I use a static class which is <strong>&#8220;synchronized&#8221;</strong>. You have to be careful about the goulot d&#8217;étranglement for the application server with a huge traffic. Personnaly I use this in a production server (intranet ) without any problems.<br />
<br/><br/></p>
<h2 class="titre2">Downloads</h2>
<p class="alertDownload">
<a href="/download.php?type=java&#038;file=StatsFilter.zip">StatsFilter.zip le code Source</a><br />
<a href="/download.php?type=java&#038;file=StatsFilter.jar">StatsFilter.jar la librairie</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2009/02/14/a-servletfilter-to-monitor-the-execution-state-of-a-jsp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Plugin &#8211; Rbl-Navigator</title>
		<link>http://www.berthou.com/us/2008/04/28/plugin-rbl-navigator-2/</link>
		<comments>http://www.berthou.com/us/2008/04/28/plugin-rbl-navigator-2/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 06:32:23 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/2008/04/28/plugin-rbl-navigator-2/</guid>
		<description><![CDATA[Description Rbl-Navigator is my second plugin for WordPress. In this plugin I just integrate a treeview menu in a widget. This plugin permit to represent in just a widget your last articles, the list of the categories (and their &#8220;n&#8221; last articles), static links and the directory contents. I think I am going to add [...]]]></description>
				<content:encoded><![CDATA[<h2 class="titre2">Description</h2>
<p><b>Rbl-Navigator</b> is my second plugin for WordPress. In this plugin I just integrate a treeview menu in a widget.</p>
<p>This plugin permit to represent in just a widget your last articles, the list of the categories (and their &#8220;n&#8221; last articles), static links and the directory contents. I think I am going to add soon, if it seems usefull to you, the blogroll and the list of the last comments.</p>
<p class="alertInfo">
<a href="http://www.berthou.com/test/" rel='external nofollow'>Exemple of use</a>
</p>
<p><img src="/_img/rbl-navigator.png" class="center" alt="Rbl-navigator"/></p>
<p><span id="more-48"></span></p>
<h2 class="titre2">Installation</h2>
<p>To install this plugin on your WordPress configuration you just have to:</p>
<ul>
<li>Unzip the download file in the index/wp-content/plugins of your wordpress installation.</li>
<li>Start the plugin in the administration console.</li>
<li>Add a widget <strong>Rbl-Navigator</strong> in your SideBar.</li>
<li>Configure this widget</li>
</ul>
<h2 class="titre2">Configuration</h2>
<p><img src="/_img/rbl-navigator-1.png" class="center"/><br />
When you parametrize the Rbl-Navigator widget, a window appears and permit to specify the followings parameters :</p>
<ul>
<li>Title : Title of the widget</li>
<li>Data : This data permit to build a treeview.</li>
<li>Image Base : Default index of the images used by the plugins. (normally &#8220;img/ot&#8221;)</li>
<li>Separator : Separation tape normally used by the plugin.&#8221;§&#8221;</li>
<li>Max size : Max lenght of an item of the treeview in tape. (0 if there is no limit)</li>
</ul>
<h2 class="titre2">Data zone</h2>
<p class="alertCode">
0 § Home     § 14 § /fr/index.php § ?Welcome<br />
0 § %%LAST-5 § Last news § 1<br />
0 § %%CAT-19,20-5 § Mes categs 19 et 20 § 1<br />
0 § %%CAT-4-5 § Ma categ 4 § -1<br />
0 § A propos   § 19 § /fr/?p=2
</p>
<p>This area permit to define teh whole contents of a treeview. This is structure as the following exemple :</p>
<ul>
<li> Static links :<br />
<table class="tbl1">
<thead>
<tr>
<th>Col</th>
<th>Description</th>
</tr>
<thead>
<tbody>
<tr class="r1">
<td>1</td>
<td>Hierarchical level (0 1st level).</td>
</tr>
<tr class="r2">
<td>2</td>
<td>Title</td>
</tr>
<tr class="r1">
<td>3</td>
<td>Icon number</td>
</tr>
<tr class="r2">
<td>4</td>
<td>URL</td>
</tr>
<tr class="r1">
<td>5</td>
<td>destination target or help message (bullet) if the string start with a &#8216;?&#8217;</td>
</tr>
</tbody>
</table>
</li>
<li> Commandes (WP) :<br />
<table class="tbl1">
<thead>
<tr>
<th>Col</th>
<th>Description</th>
</tr>
<thead>
<tbody>
<tr class="r1">
<td>1</td>
<td>Hierarchical level(0 1st level).</td>
</tr>
<tr class="r2">
<td>2</td>
<td>Command (start by <strong>%%</strong>)</td>
</tr>
<tr class="r1">
<td>3</td>
<td>Title</td>
</tr>
<tr class="r2">
<td>4</td>
<td>Icon number</td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul>
<li>Commands format :<br />
<table class="tbl1">
<thead>
<tr>
<th>Command</th>
<th>Description</th>
</tr>
<thead>
<tbody>
<tr class="r1">
<td>%%LAST-<strong>(n)</strong></td>
<td>Show the last <strong>n</strong> news <br/>Exemple : %%LAST-5</td>
</tr>
<tr class="r2">
<td>%%CAT-<strong>(idcat)</strong>-<strong>(n)</strong></td>
<td>Show the last <strong>n</strong> news in categories <strong>idcat</strong><br/>Exemple : %%CAT-19,20-5 (display the last 5 articles in the categories 19 and 20)<br/><br />
%%CAT-ALL-3 (show les 3 last news in all categories)</td>
</tr>
<tr class="r1">
<td>%%REP-<strong>(directory)</strong>-<strong>(action)</strong></td>
<td>
Exemple : %%REP-/www/tliste/-aaa.php?file=tliste/ (display a structure and contents of directory /www/tliste/ and define an action for each item aaa.php?file=nomdufichier
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<h2 class="titre2">Other</h2>
<ul>
<li>JQuery : This plugin use the intern version at WordPress of JQuery to limit the modifications during the oppening of the closing of a node.<br />
But it perfectly works if the Javascript support is desactivated.</li>
<li>Optimisation : To limit the acess to the data base, a file is generate during the key-boarding of an article or during the modification of the widget&#8217;s configuration.</li>
</ul>
<h2 class="titre2">Background</h2>
<ul>
<li>04/05/2008 : Version 1.00 1st version</li>
</ul>
<h2 class="titre2">Downloads</h2>
<p class="alertDownload">
<a href="/download.php?type=wp&#038;file=rbl-navigator.zip">rbl-navigator.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2008/04/28/plugin-rbl-navigator-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>andLinux &#8211; Try Linux directly under Windows</title>
		<link>http://www.berthou.com/us/2008/04/07/andlinux-try-linux-directly-under-windows/</link>
		<comments>http://www.berthou.com/us/2008/04/07/andlinux-try-linux-directly-under-windows/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 07:02:27 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/2008/04/07/andlinux-try-linux-directly-under-windows/</guid>
		<description><![CDATA[andLinux For the lambda user it is very difficult to &#8220;test&#8221; Linux. Indeed, everybody don&#8217;t have many computers, the installation in a virtuel machine or in DualBoot can be risk and the tests with a &#8220;live-CD&#8221; distribution are quickly limitated. It is in this point of viewthat I tried &#8220;andLinux&#8221; which is a Ubuntu complete [...]]]></description>
				<content:encoded><![CDATA[<h2 class="titre2">andLinux</h2>
<p><img src="/_img/andLinux_logo.jpg" alt="andLinux logo" class="left"/><br />
For the lambda user it is very difficult to &#8220;test&#8221; Linux. Indeed, everybody don&#8217;t have many computers, the installation in a virtuel machine or in DualBoot can be risk and the tests with a &#8220;live-CD&#8221; distribution are quickly limitated.</p>
<p>It is in this point of viewthat I tried &#8220;andLinux&#8221; which is a Ubuntu complete distribution which directly works under Windows.<br />
<span id="more-43"></span></p>
<h2 class="titre2">Installation</h2>
<p>After a quick visit of the official site of these attractive product, I choosed to test the KDE version and I downloaded the 665MB (a minimal version XFCE 163MB is also avaible).<br />
<a href="http://www.andlinux.org/install.php" target="_blank"> The installation</a> is very simple and you don&#8217;t need any particular knowledges (a uninstall option is of course offers).<br />
During this phase I choosed to configure the product with 256MB of ram (this seemed perfectly satisfactory).<br />
After a classical reboot, usually necassary for the installation of a product under Window, you have have now a Windows which is able to run Linux applications (by default with the KDE option tou have already KWrite, Konsole, Konkeror, Kate, Kontrol, and many others&#8230;).</p>
<p class="alertWarning">Warning : During the installation I had no questions about the disk place and a &#8220;base.drv&#8221; disk of 4Go had been created. So you have to plan some free place.
</p>
<h2 class="titre2">Utilisation</h2>
<p>I was very surprised of the quick start up and of the fluidity of the applications (Kwrite, Konsole, Konkeror), everything seemed to work perfectly (&#8220;apt-get install&#8221;, disk share with Windows, Cut/passed in Windows and Linux applications, &#8230;).<br />
<img src="/_img/andLinux_s.jpg" alt="andLinux screen" class="center"/></p>
<h2 class="titre2">Conclution</h2>
<p>After 48 hours of test I waan&#8217;t any probems ( with andLinux or impact on my Windows&#8217;s configuration). So I am very satisfied of this product.<br />
I think I am giong to do more tests and to try to configure it as a Web serveur.<br />
This solution is very satisfactory to test Linux without any restriction and even for a higher use.</p>
<p class="alertLink">
<a href="http://www.andlinux.org" target="_blank">http://www.andlinux.org</a> Le site officiel<br />
<a href="http://wiki.gp2x.org/wiki/AndLinux" target="_blank">http://wiki.gp2x.org/wiki/AndLinux</a><br />
<a href="http://www.andlinux.org/forum/index.php" target="_blank">Le forum</a><br />
<a href="http://www.andlinux.org/downloads.php" target="_blank">Téléchargement</a>
</p>
<p><img src="/_img/andLinux_menu.png" alt="andLinux menu" class="center"/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2008/04/07/andlinux-try-linux-directly-under-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PhpTliste &#8211; An Opensource treeview in php</title>
		<link>http://www.berthou.com/us/2008/03/27/phptliste-an-opensource-treeview-in-php/</link>
		<comments>http://www.berthou.com/us/2008/03/27/phptliste-an-opensource-treeview-in-php/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 06:35:31 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/2008/03/27/phptliste-an-opensource-treeview-in-php/</guid>
		<description><![CDATA[Description Treeview is the first component that I have developed (at the time in C + + for Windows 3). Since then I accommodate this development in various languages. So I present you the last of the Tliste family PHP version. This component is a freeware under license GPL. This component is a set of [...]]]></description>
	<h2 class="titre2">Description</h2>
<p><img class="right" alt="PhpTliste" src="/_img/PhpTliste_0.png"/><br />
<strong>Treeview</strong> is the first component that I have developed (at the time in C + + for Windows 3). Since then I accommodate this development in various languages.<br />
So I present you the last of the  Tliste family PHP version. This component is a freeware under license GPL.</p>
<p>This component is a set of two classes PHP <strong>tliste</strong> the base class and <strong>rd_l</strong> which represents an element of the list. It is, in my opinion, relatively easy to use and easily adaptable. It&#8217;s still a &#8220;beta&#8221; version, which should be cleaned and I think also to produce two distinct versions for PHP-4 and PHP-5.</p>
<p><span id="more-46"></span></p>
<h2 class="titre2">Exemple</h2>
<table>
<tbody>
<tr>
<td>
