<?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>The Telio Blog &#187; plosson</title>
	<atom:link href="http://www.telio.be/blog/author/plosson/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.telio.be/blog</link>
	<description>&#34;Du choc des idées jaillit la lumière&#34;</description>
	<lastBuildDate>Mon, 15 Mar 2010 16:47:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Twitter Updates for 2009-06-23</title>
		<link>http://www.telio.be/blog/2009/06/23/twitter-updates-for-2009-06-23/</link>
		<comments>http://www.telio.be/blog/2009/06/23/twitter-updates-for-2009-06-23/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 22:59:59 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2009/06/23/twitter-updates-for-2009-06-23/</guid>
		<description><![CDATA[
still looking for a java developer with experience in spring, stripes, ibatis contact info on www.telio.be #jobs #

Powered by Twitter Tools.
]]></description>
			<content:encoded><![CDATA[<ul>
<li>still looking for a java developer with experience in spring, stripes, ibatis contact info on <a href="http://www.telio.be" rel="nofollow">www.telio.be</a> #jobs <a href="http://twitter.com/telio/statuses/2294022624">#</a></li>
</ul>
<p>Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2009/06/23/twitter-updates-for-2009-06-23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2009-05-20</title>
		<link>http://www.telio.be/blog/2009/05/20/twitter-updates-for-2009-05-20/</link>
		<comments>http://www.telio.be/blog/2009/05/20/twitter-updates-for-2009-05-20/#comments</comments>
		<pubDate>Wed, 20 May 2009 22:59:59 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2009/05/20/twitter-updates-for-2009-05-20/</guid>
		<description><![CDATA[
Looking for a java developer with 2 years experience #

Powered by Twitter Tools.
]]></description>
			<content:encoded><![CDATA[<ul>
<li>Looking for a java developer with 2 years experience <a href="http://twitter.com/telio/statuses/1863627682">#</a></li>
</ul>
<p>Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2009/05/20/twitter-updates-for-2009-05-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2009-03-07</title>
		<link>http://www.telio.be/blog/2009/03/07/twitter-updates-for-2009-03-07/</link>
		<comments>http://www.telio.be/blog/2009/03/07/twitter-updates-for-2009-03-07/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 22:59:59 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2009/03/07/twitter-updates-for-2009-03-07/</guid>
		<description><![CDATA[
651.428 a4 pages scanned and now accessible through docunit search @ rtbf &#8230; #paperless #

Powered by Twitter Tools.
]]></description>
			<content:encoded><![CDATA[<ul>
<li>651.428 a4 pages scanned and now accessible through docunit search @ rtbf &#8230; #paperless <a href="http://twitter.com/telio/statuses/1292029395">#</a></li>
</ul>
<p>Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2009/03/07/twitter-updates-for-2009-03-07/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2008-11-29</title>
		<link>http://www.telio.be/blog/2008/11/29/twitter-updates-for-2008-11-29/</link>
		<comments>http://www.telio.be/blog/2008/11/29/twitter-updates-for-2008-11-29/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 22:59:59 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2008/11/29/twitter-updates-for-2008-11-29/</guid>
		<description><![CDATA[
http://twitpic.com/oxii &#8211; telio kart challenge 2008 : finished 3rd out of 9. Congrats to JP, the winner #

Powered by Twitter Tools.
]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://twitpic.com/oxii" rel="nofollow">http://twitpic.com/oxii</a> &#8211; telio kart challenge 2008 : finished 3rd out of 9. Congrats to JP, the winner <a href="http://twitter.com/telio/statuses/1029254245">#</a></li>
</ul>
<p>Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2008/11/29/twitter-updates-for-2008-11-29/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WTF/min</title>
		<link>http://www.telio.be/blog/2008/10/28/wtfmin/</link>
		<comments>http://www.telio.be/blog/2008/10/28/wtfmin/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 11:40:51 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2008/10/28/wtfmin/</guid>
		<description><![CDATA[Just bought the &#8220;Clean Code&#8221; book from Amazon and while browsing through it, I came across this picture.
This can&#8217;t be closer from the truth : 

Pierre
]]></description>
			<content:encoded><![CDATA[<p>Just bought the &#8220;Clean Code&#8221; book from <a href="http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882">Amazon</a> and while browsing through it, I came across this picture.</p>
<p>This can&#8217;t be closer from the truth : </p>
<p><img style="max-width: 800px;" src="http://www.telio.be/blog/wp-content/uploads/2008/10/wtf-metric-3.jpg"  / rel="lightbox[roadtrip]"></p>
<p>Pierre</p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2008/10/28/wtfmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not so far from the (future) truth &#8230;</title>
		<link>http://www.telio.be/blog/2008/10/12/not-so-far-from-the-future-truth/</link>
		<comments>http://www.telio.be/blog/2008/10/12/not-so-far-from-the-future-truth/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 09:54:38 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2008/10/12/not-so-far-from-the-future-truth/</guid>
		<description><![CDATA[The jobpar trescourt
]]></description>
			<content:encoded><![CDATA[<div><object width="420" height="339"><param name="movie" value="http://www.dailymotion.com/swf/k1Z6mLABmvpzV8MYtK" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://www.dailymotion.com/swf/k1Z6mLABmvpzV8MYtK" type="application/x-shockwave-flash" width="420" height="339" allowFullScreen="true" allowScriptAccess="always"></embed></object><br /><b><a href="http://www.dailymotion.com/swf/k1Z6mLABmvpzV8MYtK">The job</a></b><br /><i>par <a href="http://www.dailymotion.com/trescourt">trescourt</a></i></div>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2008/10/12/not-so-far-from-the-future-truth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the file owner in Java using JNI</title>
		<link>http://www.telio.be/blog/2007/06/26/getting-the-file-owner-in-java-using-jni/</link>
		<comments>http://www.telio.be/blog/2007/06/26/getting-the-file-owner-in-java-using-jni/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 08:57:11 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2007/06/26/getting-the-file-owner-in-java-using-jni/</guid>
		<description><![CDATA[Since i needed this for a project, I thought it was worth a post.
Basically I needed to watch a directory for incoming files and perform a given action based on the owner of the file, in Java.
For the polling part, no problem, but how can I get the owner of a file in Java ? [...]]]></description>
			<content:encoded><![CDATA[<p>Since i needed this for a project, I thought it was worth a post.</p>
<p>Basically I needed to watch a directory for incoming files and perform a given action based on the <strong>owner </strong>of the file, in Java.</p>
<p>For the polling part, no problem, but how can I get the owner of a file in Java ? Well after 1 hour searching the internet and concluding that :</p>
<ul>
<li>It is not possible in pure Java at least up to 1.5</li>
<li>It should be done using native code through JNI</li>
</ul>
<p>I decided to give it a shot since I had another hour in front of me. Here a the steps I followed :</p>
<p>1. Try to find some code that does this in C++ : <a href="http://msdn2.microsoft.com/en-us/library/aa446629.aspx" title="http://msdn2.microsoft.com/en-us/library/aa446629.aspx">http://msdn2.microsoft.com/en-us/library/aa446629.aspx</a></p>
<p>2. Try to compile this code <img src='http://www.telio.be/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Since I have no Visual Studio or other C++ IDE, let&#8217;s go find one .. :</p>
<p><a href="http://www.bloodshed.net/devcpp.html">http://www.bloodshed.net/devcpp.html</a></p>
<p>3. Install Dev++ and compile the code .. and to my great surprise, it works (I must say I have bad college memories about C++, compilers, make files, compiler directives, etc&#8230;)</p>
<p>4. Now let&#8217;s tackle the JNI part .. since I never used JNI before (but know what it&#8217;s about), I type &#8216;jni tutorial&#8217; in google .. and find :</p>
<p><a href="http://www.codetoad.com/java_simpleJNI.asp">http://www.codetoad.com/java_simpleJNI.asp</a></p>
<p>I chose this page because it seemed to have an example of passing a String parameter and getting back a String result &#8211; which is exactly what I need since I will pass a file path and get back the file owner.</p>
<p>5. Create a java class</p>
<pre lang="java">
import java.io.*;
public class getowner
{
	private static native String getowner(String arg);
        public static void main(String[] args)
	{
	 	System.load("c:/temp/java/getowner.dll");
		File f = new File(args[0]);
		File[] children = f.listFiles();
		for (int i=0; i &lt; children.length;i++)
		{
			if (children[i].isFile())
				System.out.println(getowner(children[i].getPath()));
	 	}
	}
}</pre>
<p>6. Compile the class and generate the header file using javah</p>
<pre lang="bash">javac getowner.java</pre>
<pre lang="bash">javah getowner</pre>
<p>Which generates the following header file :</p>
<pre lang="cpp">
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class getowner */

#ifndef _Included_getowner
#define _Included_getowner
#ifdef __cplusplus
extern "C" {
#endif
/*
 * Class:     getowner
 * Method:    getowner
 * Signature: (Ljava/lang/String;)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_getowner_getowner
  (JNIEnv *, jclass, jstring);

#ifdef __cplusplus
}
#endif
#endif
</jni.h></pre>
<p>7. Write the implementation by modifying the code used in step 2</p>
<p>(see attachment for the complete source code)</p>
<p>8. Compile the whole thing, don&#8217;t forget in the project settings to add 2 include directories pointing to the JDK <strong>include</strong> and <strong>include/win32</strong> folder</p>
<p>If you&#8217;re lucky you should get a nice <strong>getowner.dll</strong> file</p>
<p>9. You can now run the java program :</p>
<pre lang="bash">java getowner c:windows</pre>
<p>which will output the owner of all the file in you windows directory.</p>
<p>You can download the source code zip <a href="http://www.telio.be/blog/wp-content/uploads/2007/06/getowner.zip" title="getowner.zip">getowner.zip</a> that contains  :</p>
<ul>
<li>the project file</li>
<li>the cpp source file</li>
<li>the generated header file</li>
<li>the java class</li>
</ul>
<p>Have fun !</p>
<p>P.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2007/06/26/getting-the-file-owner-in-java-using-jni/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Goodbye Thunderbird :-(</title>
		<link>http://www.telio.be/blog/2007/06/07/goodbye-thunderbird/</link>
		<comments>http://www.telio.be/blog/2007/06/07/goodbye-thunderbird/#comments</comments>
		<pubDate>Thu, 07 Jun 2007 15:32:41 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2007/06/07/goodbye-thunderbird/</guid>
		<description><![CDATA[After a few month hesitation, we finally moved all our email to Google Apps for your Domain, so I won&#8217;t be using Thunderbird anymore (although I could of course  )
The migration to Google Apps for your domain went without problems and everything seems to be functional. We are basically using google calendar and google [...]]]></description>
			<content:encoded><![CDATA[<p>After a few month hesitation, we finally moved all our email to Google Apps for your Domain, so I won&#8217;t be using Thunderbird anymore (although I could of course <img src='http://www.telio.be/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<p>The migration to Google Apps for your domain went without problems and everything seems to be functional. We are basically using google calendar and google mail. We are somewhat starting to use Google Talk but the integration with other IM systems seems to me (who is not a big IM fan or user) very complicated. I managed to configure this with my previous standard gmail account but I can&#8217;t manage to get things working with our GAFYD accounts.</p>
<p>Anyways, for 50 USD per user / per year we get :</p>
<ul>
<li>10 gig email</li>
<li>Effective Anti spam</li>
<li>Splendid Webmail features</li>
<li>Web based calendar (with sharing and PDA sync on my QTek S110 &#8211; see <a href="http://www.telio.be/blog/wp-admin/www.goosync.com">www.goosync.com)</a></li>
</ul>
<p>And of course</p>
<ul>
<li>A big brother watching you <img src='http://www.telio.be/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<p>Btw, I also had to use <a href="http://gmailnotifier.net/Default.aspx">http://gmailnotifier.net/</a> to have a working mail notifier for GAFYD</p>
<p>P.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2007/06/07/goodbye-thunderbird/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lucene IndexSearcher</title>
		<link>http://www.telio.be/blog/2006/05/07/lucene-indexsearcher/</link>
		<comments>http://www.telio.be/blog/2006/05/07/lucene-indexsearcher/#comments</comments>
		<pubDate>Sun, 07 May 2006 12:08:29 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2006/05/07/lucene-indexsearcher/</guid>
		<description><![CDATA[We launched a new version of one of our websites that was rewritten in Java (formerly in Perl). 
The site drains quite a lot of traffic and I had made very few benchmarks during development phase. When I finally started load testing I realized that the site was performing well in the beginning but after [...]]]></description>
			<content:encoded><![CDATA[<p>We launched a new version of one of our websites that was rewritten in Java (formerly in Perl). </p>
<p>The site drains quite a lot of traffic and I had made very few benchmarks during development phase. When I finally started load testing I realized that the site was performing well in the beginning but after a few minutes it was getting slower and slower .. </p>
<p>I isolated the problem in the Lucene search section. After reading a little more about the IndexSearcher object it finally hit me. </p>
<p>A new <i>IndexSearcher </i>object was created for every search which is definately not the correct way of using it. IndexSearcher is a heavy object and can (and should) be shared by multiple clients (it is threadsafe). The only thing you should of course, is recreate it when the index changes (on index updates and deletes).</p>
<p>After this little incident, I must say I am really amazed at the overall performance of the site, it runs like a charm on Tomcat 5.5 with MySQL behind using a classical JSP 2.0 Struts &#8211; IBatis &#8211; stack, nothing fancy, no spring, no hibernate, etc .. </p>
<p>P.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2006/05/07/lucene-indexsearcher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Bubble .. again ?</title>
		<link>http://www.telio.be/blog/2006/04/19/the-bubble-again/</link>
		<comments>http://www.telio.be/blog/2006/04/19/the-bubble-again/#comments</comments>
		<pubDate>Wed, 19 Apr 2006 19:21:51 +0000</pubDate>
		<dc:creator>plosson</dc:creator>
				<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://www.telio.be/blog/2006/04/19/the-bubble-again/</guid>
		<description><![CDATA[I really don&#8217;t get it. Everyday I read about at least one or two new web based services that get funded by venture capitalists.
Almost everytime, I check out the site and try to figure out the business model and needless to say that I rarely find out what it might be &#8230;
I really get a [...]]]></description>
			<content:encoded><![CDATA[<p>I really don&#8217;t get it. Everyday I read about at least one or two new web based services that get funded by venture capitalists.<br />
Almost everytime, I check out the site and try to figure out the business model and needless to say that I rarely find out what it might be &#8230;</p>
<p>I really get a feeling of being back in the year 2000 when the first &#8220;internet bubble&#8221; exploded, except that the requirements today are :</p>
<ul>
<li>Have a really cool design with a nice logo</li>
<li>Have a cool name (whatever.ici.ous <img src='http://www.telio.be/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</li>
<li>Have AJAX all over the place and demonstrate amazing DHTML and javascript usage ..</li>
<li>Finally (this one is optional), provide a web based service of some sort and have the words Web 2.0, Social, RSS somewhere on your home page</li>
</ul>
<p>Personnally I don&#8217;t really think all of this is bad, but I am just always amazed on how much money can be put in all these &#8220;startups&#8221;. Well at least it keeps imagination going.</p>
<p>P.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.telio.be/blog/2006/04/19/the-bubble-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
