<?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>xurei design</title>
	<atom:link href="http://www.xurei-design.be/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xurei-design.be</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 13:26:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Stronger passwords with GreaseMonkey</title>
		<link>http://www.xurei-design.be/2011/12/stronger-passwords-with-greasemonkey/</link>
		<comments>http://www.xurei-design.be/2011/12/stronger-passwords-with-greasemonkey/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 21:42:26 +0000</pubDate>
		<dc:creator>xurei</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.xurei-design.be/?p=124</guid>
		<description><![CDATA[This article shows you how to use GreaseMonkey to get domain-dependant passwords without having to remember them all. Just pick your main password and prefix it with some auto-generated letters.<p><a href="http://www.xurei-design.be/2011/12/stronger-passwords-with-greasemonkey/" rel="bookmark" title="Link to Stronger passwords with GreaseMonkey"><img width="150" height="150" src="http://www.xurei-design.be/wp-content/uploads/2011/12/password-150x150.jpg" class="attachment-thumbnail wp-post-image" alt="Password image" title="password" /></a></p>]]></description>
			<content:encoded><![CDATA[<p>Using the same password on every website is dangerous. We all know it. But we couldn&#8217;t afford to think up a different one every time : it would be impossible to remember them all. The solution I present here is a good way to reuse your &#8220;main password&#8221; (we all have one <img src='http://www.xurei-design.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ) with <strong>a better security level</strong>. I also propose a GreaseMonkey Javascript code that automatize the process.</p>
<hr class="clear" />
<p>I have read some month ago a very interesting post about it, but sadly I did&#8217;t find it back. However, the idea in the article is the following : <strong>keep your main password in every site, but add &#8220;salt&#8221; based on the domain name.</strong></p>
<p>Let me show you an example : let&#8217;s say that your password is &#8216;ilovecats&#8217;, and you want to register at www.youtube.com.</p>
<ol>
<li>Take the five first letters of the website : &#8220;youtu&#8221;,</li>
<li>make some permutations on them &#8211; for example, make them uppercase : &#8216;YOUTU&#8217;,</li>
<li>prefix it to your main password.<br />
The password for youtube.com becomes : &#8216;YOUTUilovecats&#8217;.</li>
</ol>
<p>This idea is great ! With training, you won&#8217;t have to bother about remembering many different password. Also, you get a <strong>stronger</strong> password, since it is longer than your main password. The only thing you have to be sure is not to forget what permutations you did. Write it down somewhere maybe (this is anyway safer than writing all your passwords somewhere. If someone reads your permutations method, you don&#8217;t care : he still doesn&#8217;t know your main password <img src='http://www.xurei-design.be/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p>
<p>&nbsp;</p>
<h3><strong>Going more geeky</strong></h3>
<p>I&#8217;m using this method since the day I learned it. But as my friends know, I&#8217;m a bit lazy : I don&#8217;t want to write my permutation every time I have to log in (beside, my permutation is quite complex to mentally process). So, I wrote a small piece of Javascript to use with <a title="GreaseMonkey" href="http://www.greasespot.net/" target="_blank">GreaseMonkey</a>. This script searches for every password field on a website, and adds the five first letters of its url, with a permutation. You can change it by yourself if you want.</p>
<p>The permutation used in the file is the following :</p>
<ol>
<li>Take the five first letters of the url (after the &#8216;www.&#8217;),</li>
<li>add one to each letter, so that a become b, b becomes c, &#8230;, z becomes a,</li>
<li>make the result uppercase,</li>
<li>prefix it to your main password.</li>
</ol>
<p>Again : <strong>don&#8217;t forget the permutation that you are using !!</strong> Remember that if you want to log in on a computer that is not your own, you will have to do the permutation by yourself !</p>
<p>&nbsp;</p>
<h3>Installation</h3>
<ol>
<li>Firefox users : Download GreaseMonkey if you don&#8217;t have it yet : <a title="greasemonkey plugin" href="https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/</a></li>
<li>Download the Javascript file <a title="javascript file" href="http://www.xurei-design.be/downloads/stronger_password.user.js" target="_blank">here</a>; GreaseMonkey should ask you to install the file.</li>
<li>Once installed, every time you will click on a password field, the five first letters of your password will show up; just add your main password. Congratulations, you have a stronger password with almost no effort.</li>
</ol>
<h3>Source code</h3>
<pre class="sh_javascript_dom">// ==UserScript==
// @name           Stronger Passwords
// @namespace      *
// @description    Get the first five chars of the domain name and prepend it to every password field of the page, with a permutation
// ==/UserScript==

window.setTimeout(function()
{
  //Extracting the first five letters
    var host = window.location.hostname;
    var domains = host.split('.');
    if (domains.length &lt;= 2)
      host = domains[0];
    else
      host = domains[1];

    host = host.substring(0,5).toLowerCase();
  //Extraction done

  //Building the 5 first chars
  // You can change the code here to use another permutation.
  // The five letters are stored in the variable host and the
  // code below must build a variable names prefix which
  // contains the permutated string
    var prefix = "";
    var acode = 'a'.charCodeAt();
    var zcode = 'z'.charCodeAt();
    for (var i=0; i!=5;++i)
    {
      var c = host[i].charCodeAt();
      if (c &gt;= acode &amp;&amp; c &lt;= zcode)
      {
        c -= acode;
        c  = (c+1)%26;
        c += acode;
      }
      prefix += String.fromCharCode(c);
    }
    prefix = prefix.toUpperCase();
  //Chars built

  //Appends the five letters to every password field when you click them
    var inputs = document.getElementsByTagName('INPUT');

    for (var i=0; i!=inputs.length; ++i)
    {
      if (inputs[i].type=="password")
      {
        var input = inputs[i];

        input.addEventListener('focus', function(event)
        {
          event.target.value=prefix;
          document.selection.empty();
        }, false);
      }
   }
 //Append done
}, 1000);</pre>
<p><a href="http://www.xurei-design.be/2011/12/stronger-passwords-with-greasemonkey/" rel="bookmark" title="Link to Stronger passwords with GreaseMonkey"><img width="150" height="150" src="http://www.xurei-design.be/wp-content/uploads/2011/12/password-150x150.jpg" class="attachment-thumbnail wp-post-image" alt="Password image" title="password" /></a></p> <p><a href="http://www.xurei-design.be/?flattrss_redirect&amp;id=124&amp;md5=d4fc44c5944335203383d4f25f7db4f4" title="Flattr" target="_blank"><img src="http://www.xurei-design.be/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.xurei-design.be/2011/12/stronger-passwords-with-greasemonkey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fabric Engine, the new Flash Killer ?</title>
		<link>http://www.xurei-design.be/2011/11/fabric-engine-the-new-flash-killer/</link>
		<comments>http://www.xurei-design.be/2011/11/fabric-engine-the-new-flash-killer/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 22:19:52 +0000</pubDate>
		<dc:creator>xurei</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.xurei-design.be/?p=101</guid>
		<description><![CDATA[Everyone that has followed HTML5 a bit knows that, in term of performances, Flash is still better&#8230; But it could change. I deeply think that HTML5 is going to kill Flash. It&#8217;s open, it&#8217;s widely adopted by developers, and it&#8217;s totally free. Even Adobe knows that : they already stopped developing flash for mobile. The [&#8230;] <a class="more-link" href="http://www.xurei-design.be/2011/11/fabric-engine-the-new-flash-killer/">&#8595; Read the rest of this entry...</a><p><a href="http://www.xurei-design.be/2011/11/fabric-engine-the-new-flash-killer/" rel="bookmark" title="Link to Fabric Engine, the new Flash Killer ?"><img width="150" height="100" src="http://www.xurei-design.be/wp-content/uploads/2011/11/fabric-logo-150x100.png" class="attachment-thumbnail wp-post-image" alt="fabric-logo" title="fabric-logo" /></a></p>]]></description>
			<content:encoded><![CDATA[<p>Everyone that has followed HTML5 a bit knows that, in term of performances, Flash is still better&#8230; But it could change.</p>
<div id="attachment_111" class="wp-caption aligncenter" style="width: 448px"><a href="http://www.xurei-design.be/wp-content/uploads/2011/11/graph_osx_ff.png"><img class="size-full wp-image-111   " title="graph_osx_ff" src="http://www.xurei-design.be/wp-content/uploads/2011/11/graph_osx_ff.png" alt="HTML5 vs Flash" width="438" height="364" /></a><p class="wp-caption-text">HTML5 vs Flash; source : http://themaninblue.com/writing/perspective/2010/03/22/</p></div>
<p>I deeply think that HTML5 is going to kill Flash. It&#8217;s open, it&#8217;s widely adopted by developers, and it&#8217;s totally free. Even Adobe knows that : <a href="http://mashable.com/2011/11/09/its-official-flash-mobile-player-is-dead/">they already stopped developing flash for mobile</a>. The only things remaining for Flash is the speed : it is still faster than HTML5.</p>
<p>But the Fabric Engine may be going to change that. Technically, it is a plugin for Firefox and Chrome &#8211; maybe it will be released for Opera, but I doubt that it will for IE &#8211; that literally <strong>compiles</strong> JavaScript code to make it run faster. This is open source &#8211; Flash is not &#8211; easy to install, and <strong>multi-thread</strong>.</p>
<div style="text-align: left;">
<div class="wp-caption aligncenter" style="width: 623px"><a href="http://fabric-engine.com/"><img class=" " title="Fabric Engine Performance Comparison" src="http://fabric-engine.com/i/home/multi-threading-web-performance.png" alt="Fabric Engine" width="613" height="97" /></a><p class="wp-caption-text">Fabric Engine</p></div>
<dl id="">
<dt>For now, it is only in beta testing, I suscribed to the beta testing group. I didn&#8217;t try it yet, but I looked at the demos and I think this has great potential.</dt>
<dt></dt>
<dt>I highly encourage every Web developer to take a look at this plugin.</dt>
</dl>
</div>
<p>Sources :</p>
<ul>
<li><a title="Fabric Engine" href="http://www.fabric-engine.com/" target="_blank">Fabric Engine Website </a></li>
<li><a href="http://themaninblue.com/writing/perspective/2010/03/22/">The Mani in blue</a></li>
<li><a href="http://mashable.com/2011/11/09/its-official-flash-mobile-player-is-dead/">Mashable</a></li>
</ul>
<p><a href="http://www.xurei-design.be/2011/11/fabric-engine-the-new-flash-killer/" rel="bookmark" title="Link to Fabric Engine, the new Flash Killer ?"><img width="150" height="100" src="http://www.xurei-design.be/wp-content/uploads/2011/11/fabric-logo-150x100.png" class="attachment-thumbnail wp-post-image" alt="fabric-logo" title="fabric-logo" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.xurei-design.be/2011/11/fabric-engine-the-new-flash-killer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Large Scale Javascript Architecture</title>
		<link>http://www.xurei-design.be/2011/11/large-scale-javascript-architecture/</link>
		<comments>http://www.xurei-design.be/2011/11/large-scale-javascript-architecture/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 18:49:50 +0000</pubDate>
		<dc:creator>xurei</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.xurei-design.be/?p=87</guid>
		<description><![CDATA[Developers creating JavaScript applications these days usually use a combination of MVC, modules, widgets and plugins for their architecture. Whilst this works great for apps that are built at a smaller-scale, what happens when your project really starts to grow?
In his talk, Addy Osmani present an effective set of design patterns for large-scale JavaScript (and jQuery) application architecture that have previously been used at both AOL and Yahoo amongst others.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><iframe src="http://www.slideshare.net/slideshow/embed_code/10198269" width="540" height="443" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe><br/><br/></p>
<div>
<p>Developers creating JavaScript applications these days usually use a combination of MVC, modules, widgets and plugins for their architecture. They also use a DOM manipulation library like jQuery.</p>
<p>Whilst this works great for apps that are built at a smaller-scale, what happens when your project really starts to grow?</p>
<p>In his talk, Addy Osmani present an effective set of design patterns for large-scale JavaScript (and jQuery) application architecture that have previously been used at both AOL and Yahoo amongst others.</p>
<p>You&#8217;ll learn how to keep your application logic truly decoupled, build modules that can exist on their own or be dropped into other projects and future-proof your code in case you need to switch to a different DOM library in the future.</p>
</div>
<p>Source : <a title="Addy Osmani's Blog" href="http://speakerdeck.com/u/addyosmani/p/large-scale-javascript-application-architecture" target="_blank">Addy Osmani&#8217;s Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xurei-design.be/2011/11/large-scale-javascript-architecture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 easier properties writing</title>
		<link>http://www.xurei-design.be/2011/10/css3-easier-properties-writing/</link>
		<comments>http://www.xurei-design.be/2011/10/css3-easier-properties-writing/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 20:47:08 +0000</pubDate>
		<dc:creator>xurei</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.xurei-design.be/?p=51</guid>
		<description><![CDATA[CSS3&#8242;s new features are really nice. But unfortunately, all the browsers don&#8217;t support everything (in fact, no browser support it entirely), but they provide vendor-dependent properties that allow to use it. So to use them, you need to duplicate your code, with all the problems that it can bring. I present you here a solution [&#8230;] <a class="more-link" href="http://www.xurei-design.be/2011/10/css3-easier-properties-writing/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>CSS3&#8242;s new features are really nice. But unfortunately, all the browsers don&#8217;t support everything (in fact, no browser support it entirely), but they provide vendor-dependent properties that allow to use it. So to use them, you need to duplicate your code, with all the problems that it can bring. I present you here a solution to write less CSS for the same result, without having to take care of vendor-specific options.</p>
<p><strong>Vendor-specific properties are a pain in the ass !<br />
</strong></p>
<p>Let&#8217;s say that you want to use a new property in CSS3. For this example, we will use <a title="border-image" href="http://www.w3schools.com/cssref/css3_pr_border-image.asp" target="_blank">border-image</a>. According to W3Schools, you simply cannot use it in IE (duh !). In Firefox, Chrome and Opera, you have to use vendor specific rules to make this property work. So you need to write :</p>
<pre class="sh_css">div
{
border-image:url(border.png) 30 30 round;
-moz-border-image:url(border.png) 30 30 round; /* Firefox */
-webkit-border-image:url(border.png) 30 30 round; /* Safari and Chrome */
-o-border-image:url(border.png) 30 30 round; /* Opera */
}</pre>
<p>(example taken from <a title="http://www.w3schools.com/css3/css3_borders.asp" href="http://www.w3schools.com/css3/css3_borders.asp" target="_blank">http://www.w3schools.com/css3/css3_borders.asp</a>)</p>
<p>Okay, this works. But you wrote four lines to get only one effect. And if you want to change this property, you will have change it four times instead of only once. Your code become harder to read and longer, for so few. And I don&#8217;t even talk about misspelling or different behavior because the -webkit property is different from the -moz property, but you didn&#8217;t notice it !</p>
<p>Well, you got my point, this is pain in the ass.</p>
<p><strong>Couldn&#8217;t we get rid of it ?</strong></p>
<p>In fact, yes, you can. The good news about those vendor-specific properties is that they have the same syntax as CSS3, with just a prefix that is different for each browser (-moz-, -o-, -webkit-, -ms-&#8230;). All you need to do is to duplicate the rule for each vendor-specific prefix, just like in the code above. And a simple parser should be able to do that for you.</p>
<p><a title="CSS minifier with auto vendor properties" href="http://www.xurei-design.be/tools/css-minifier-with-auto-vendor-properties/">I already wrote it</a>, so you don&#8217;t even have to create your own (aren&#8217;t I kind ? <img src='http://www.xurei-design.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ). It is working nicely (in fact, this blog uses it right now), so you shouldn&#8217;t have problem with it. That said, if  you find an error, some properties that are missing or shouldn&#8217;t be converted, let me know !</p>
<p>Also, I&#8217;m working on a system that takes a CSS file, convert it and saves it in a cache, so that you can use it directly in your website without going through this page. If you change your CSS, the system detects it and recompile the converted version for you. I will probably publish the system before Christmas, so stay tuned !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xurei-design.be/2011/10/css3-easier-properties-writing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A PHP Command-line interface parser</title>
		<link>http://www.xurei-design.be/2011/10/a-php-command-line-interface-parser/</link>
		<comments>http://www.xurei-design.be/2011/10/a-php-command-line-interface-parser/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 21:22:41 +0000</pubDate>
		<dc:creator>xurei</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://olivier-laptop/xureidesign/?p=37</guid>
		<description><![CDATA[Today, I decided to build a simple, but highly parametrable script that takes a bunch of images and resizes them with a given method. My first problem was : how to make a good command line arguments parser, so that I don&#8217;t have to write each argument in a specific order, or not putting some [&#8230;] <a class="more-link" href="http://www.xurei-design.be/2011/10/a-php-command-line-interface-parser/">&#8595; Read the rest of this entry...</a>]]></description>
			<content:encoded><![CDATA[<p>Today, I decided to build a simple, but highly parametrable script that takes a bunch of images and resizes them with a given method. My first problem was : how to make a good command line arguments parser, so that I don&#8217;t have to write each argument in a specific order, or not putting some arguments at all, using a default value&#8230;<br />
In bash, this is quite simple, but I wanted to use PHP for the script, so that I could use the GD library that I know well.</p>
<p>Then I found <a href="http://www.phpclasses.org/package/3255-PHP-Parse-and-extract-arguments-from-the-command-line.html" target="_blank">this class</a>, made by Diego Feitosa, that looked nice, but wasn&#8217;t exactly what I wanted : I was forced to use an option (i.e. &#8220;-something &lt;param&gt;&#8221;) for each argument in the command line. It is nice for defining the behaviour of the script, but if you want to script something that process files, you just can&#8217;t &#8211; or only one file at a time.</p>
<p>In fact, this is exactly what I was doing : processing a lot of files. But with this parser, I couldn&#8217;t. So I decided to hack it a bit&#8230;</p>
<p>This code is an extended version of the CLI Parser of Diego Feitosa, which allows the user to pass arguments that are not options. I also made other modifications to the script :</p>
<ul>
<li>added a method to check if an argument is valid as a non option (by default, everything that doesn&#8217;t start with &#8216;-&#8217; can be a non-option)</li>
<li>improved usage description : the type awaited by an option is shown, better indentation</li>
<li>improved error messages : if the type in the command line doesn&#8217;t match with an option, the error is shown. In the version of Diego, only the usage message was shown.</li>
<li>auto-inclusion of the option types</li>
<li>new option types : Positive Numeric, Negative Numeric, Integers, Enum</li>
</ul>
<p>You can find the code <a href="/downloads/cliparser.zip" target="_blank">here</a>.</p>
<p>Here is an example of the usage of this parser. This example is also located in the source code provided above :</p>
<pre class="sh_php">require_once('CliParser.inc');
$clistring = new CliTokenString("-c");
$clistring-&gt;setDescription("It requires a string");

$clihelp = new CliTokenBoolean("--help");
$clihelp-&gt;setDescription("Token that shows a help message");

$clisingleton = new CliTokenBoolean("-e");
$clisingleton-&gt;setDescription("It don't require any value. The existence of this argument is enough");

$clibool = new CliTokenBoolean("-b");
$clibool-&gt;setDescription("Boolean token");

$clidir = new CliTokenDirectory("-d");
$clidir-&gt;setDescription("This token require a directory path as argument. If the argument isn't a directory path, an error message will appear.");

$clifile = new CliTokenDirectory("-f");
$clifile-&gt;setDescription("This token require a file path as argument. If the argument isn't a file path, an error message will appear.");

$cliint = new CliTokenInteger("-i");
$cliint-&gt;setDescription("This token require an integer path as argument. If the argument isn't an integer, an error message will appear.");

$clienum = new CliTokenEnum("-enum", array('the', 'different', 'values', 'accepted'));
$clienum-&gt;setDescription("This token requires its argument to be one of the values specified");

class MyCliParser extends CliParser
{
  public function getHelpMessage()
  {
    global $argv;
    echo sprintf("Usage: %s [options] &lt;file(s)&gt;\nOptions :\n", $argv[0]);
    $this-&gt;getDescriptions();
    echo "\n";
    exit;
  }
}

//Building the parser and parsing the arguments
$cli = new MyCliParser($_SERVER["argv"]);
$cli-&gt;register($clihelp, false); // false because it not require an argument
$cli-&gt;register($clistring);
$cli-&gt;register($clisingleton, false); // false because it not require an argument
$cli-&gt;register($clibool);
$cli-&gt;register($clidir);
$cli-&gt;register($clifile);
$cli-&gt;register($cliint);
$cli-&gt;register($clienum);
$cli-&gt;parse();

//Showing the help message if asked
if ($clihelp-&gt;getValue())
{
  $cli-&gt;getHelpMessage();
  exit;
}

//Showing the options
var_dump($clistring-&gt;getValue());
var_dump($clisingleton-&gt;getValue());
var_dump($clibool-&gt;getValue());
var_dump($clidir-&gt;getValue());
var_dump($clifile-&gt;getValue());
var_dump($cliint-&gt;getValue());

//Showing the non options
var_dump($cli-&gt;getNonOptions());

/* Some commands :
php example.php --help
=&gt; will show the help message

php example.php -c foo
=&gt; the $clistring token will be set

php example.php -e -c foo
=&gt; the $clisingleton token will be set

php example.php nonoption1 -i 42
=&gt; one non-option argument : nonoption1

php example.php -i 42 nonoption1
=&gt; same thing, different order

php example.php -i 42.5
=&gt; shows an error : 42.5 is not an integer
*/</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xurei-design.be/2011/10/a-php-command-line-interface-parser/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Finaly online !</title>
		<link>http://www.xurei-design.be/2011/10/finaly-online/</link>
		<comments>http://www.xurei-design.be/2011/10/finaly-online/#comments</comments>
		<pubDate>Sat, 01 Oct 2011 21:14:39 +0000</pubDate>
		<dc:creator>xurei</dc:creator>
				<category><![CDATA[About the site]]></category>

		<guid isPermaLink="false">http://olivier-laptop/xureidesign2/?p=34</guid>
		<description><![CDATA[It&#8217;s been a while since I wanted to make my own website, but with my studies and my other projects, I never had enough time&#8230; Until today My own website about me, my projects in finaly online ! It is still simple, but I hope I will make it grow as soon as possible.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I wanted to make my own website, but with my studies and my other projects, I never had enough time&#8230; Until today <img src='http://www.xurei-design.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>My own website about me, my projects in finaly online ! It is still simple, but I hope I will make it grow as soon as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xurei-design.be/2011/10/finaly-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

