<?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>My Own Percept&#187; snippet</title>
	<atom:link href="http://myownpercept.com/category/snippet/feed/" rel="self" type="application/rss+xml" />
	<link>http://myownpercept.com</link>
	<description>&#34;Only in quiet waters things mirror themselves undistorted. Only in a quiet mind is adequate perception of the world.&#34;~Hans Margolius</description>
	<lastBuildDate>Fri, 30 Mar 2012 16:42:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>`gem_original_require&#8217;: no such file to load &#8212; zlib (LoadError)</title>
		<link>http://myownpercept.com/2012/01/gem_original_require-no-such-file-to-load-zlib-loaderror/</link>
		<comments>http://myownpercept.com/2012/01/gem_original_require-no-such-file-to-load-zlib-loaderror/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 20:21:30 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=288</guid>
		<description><![CDATA[<p>You may have faced a such a error, when trying to execute gem list : To solve this issue, move to the zlib/ folder, it should be something like this /usr/src/ruby-1.8.6-pXXX/ext/zlib/ execute the extconf.rb : If every things are ok, you should see: compile and deploy zlib by runnning both commands: Make sure gem command [...]</p>
 ]]></description>
			<content:encoded><![CDATA[<p>You may have faced a such a error, when trying to execute <em>gem list</em> :</p>
<p></p><pre class="crayon-plain-tag">//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in &lt;code&gt;gem_original_require': no such file to load -- zlib (LoadError)
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in &lt;/code&gt;require'
	from //lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:1
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in &lt;code&gt;gem_original_require'
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in &lt;/code&gt;require'
	from //lib/ruby/site_ruby/1.8/rubygems/commands/query_command.rb:3
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in &lt;code&gt;gem_original_require'
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in &lt;/code&gt;require'
	from //lib/ruby/site_ruby/1.8/rubygems/commands/list_command.rb:2
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in &lt;code&gt;gem_original_require'
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in &lt;/code&gt;require'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:167:in &lt;code&gt;load_and_instantiate'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:88:in &lt;/code&gt;[]'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:144:in &lt;code&gt;find_command'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:131:in &lt;/code&gt;process_args'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in &lt;code&gt;run'
	from //lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in &lt;/code&gt;run'
	from /bin/gem:21</pre><p></p>
<p>To solve this issue, move to the <strong>zlib/</strong> folder, it should be something like this <strong>/usr/src/ruby-1.8.6-pXXX/ext/zlib/</strong></p>
<p>execute the <em>extconf.rb</em> :</p><pre class="crayon-plain-tag">root@xen1:/usr/src/ruby-1.8.6-p398/ext/zlib# ruby extconf.rb</pre><p></p>
<p>If every things are ok, you should see:</p><pre class="crayon-plain-tag">checking for deflateReset() in -lz... yes
checking for zlib.h... yes
checking for kind of operating system... Unix
creating Makefile</pre><p></p>
<p>compile and deploy zlib by runnning both commands:</p><pre class="crayon-plain-tag">sudo make 
sudo make install</pre><p></p>
<p>Make sure gem command is woking:</p><pre class="crayon-plain-tag">gem list</pre><p></p>
<p>You should see:</p><pre class="crayon-plain-tag">*** LOCAL GEMS ***</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>http://myownpercept.com/2012/01/gem_original_require-no-such-file-to-load-zlib-loaderror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to recursively delete .svn directories</title>
		<link>http://myownpercept.com/2011/04/how-to-recursively-delete-svn-directories/</link>
		<comments>http://myownpercept.com/2011/04/how-to-recursively-delete-svn-directories/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 15:19:59 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=313</guid>
		<description><![CDATA[<p>Just move to the directory where you want to delete, recursively, the .svn directories and type the folowing line:</p>
 ]]></description>
			<content:encoded><![CDATA[<p>Just move to the directory where you want to delete, recursively, the .svn directories and type the folowing line:</p>
<p></p><pre class="crayon-plain-tag">rm -rf &lt;code&gt;find  . -type d -name .svn&lt;/code&gt;</pre><p> </p>
]]></content:encoded>
			<wfw:commentRss>http://myownpercept.com/2011/04/how-to-recursively-delete-svn-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GTalk: Text Formatting; bold, italic and strikethrough.</title>
		<link>http://myownpercept.com/2009/07/gtalk-text-formatting/</link>
		<comments>http://myownpercept.com/2009/07/gtalk-text-formatting/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 20:17:07 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[google talk]]></category>
		<category><![CDATA[gtalk]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=258</guid>
		<description><![CDATA[<p>To have more fun with GTalk (Google Talk) you can add some text formatting : to make it bold, simply use * * (asterisk) between the text that intended to be bold in font style : i.e. *marouan* is rendred as marouan. to make it italic, simply use _ _ (underscore) between the text that [...]</p>
 ]]></description>
			<content:encoded><![CDATA[<p>To have more fun with GTalk (Google Talk) you can add some text formatting :<br />
<img class="aligncenter size-full wp-image-263" title="Gtalk" src="http://www.myownpercept.com/wp-content/uploads/2009/07/gmail_gtalk.png" alt="Gtalk" width="170" height="180" /></p>
<ul>
<li>to make it bold, simply use * * (asterisk) between the text that intended to be bold in font style : i.e. *marouan* is rendred as <strong>marouan</strong>.</li>
<li>to make it italic, simply use _ _ (underscore) between the text that intended to be italic in font style: i.e. _marouan_ is rendred as <em>marouan</em>.</li>
<li>to make it strikethrough, simply use &#8211; - (dash) between the text that intended to be strikethrough in font style: i.e. -marouan- is rendred as <span style="text-decoration: line-through;">marouan</span>.</li>
</ul>
<p>This is a stupid post but if you are addicted to Google Talk, like me, you will have more fun with GTalk using those few styling tips.</p>
]]></content:encoded>
			<wfw:commentRss>http://myownpercept.com/2009/07/gtalk-text-formatting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Replacing special Chars in a String c#</title>
		<link>http://myownpercept.com/2009/06/replacing-special-chars-string-csharp/</link>
		<comments>http://myownpercept.com/2009/06/replacing-special-chars-string-csharp/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 16:30:40 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[snippet]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=221</guid>
		<description><![CDATA[<p>I have been working on a c# french desktop application. Unfortunately iTextSharp, which is an open source java library for PDF generation written entirely in C# for the .NET platform, do not allow to print special chars (é, è, ç &#8230;etc.) properly. Happily, I found this very useful piece of code in the Internet and [...]</p>
 ]]></description>
			<content:encoded><![CDATA[<p>I have been working on a <strong>c#</strong> french desktop application. Unfortunately <a href="http://itextsharp.sourceforge.net/">iTextSharp</a>, which is an open source java library for PDF generation written entirely in C# for the .NET platform, do not allow to print special chars (é, è, ç &#8230;etc.) properly. </p>
<p>Happily, I found this very useful piece of code in the Internet and I want to share it with you:</p>
<p></p><pre class="crayon-plain-tag">/// &lt;summary&gt;
/// Delete all Accents
/// &lt;/summary&gt;
/// &lt;param name=&quot;txt&quot;&gt;Source String with accents and special Char&lt;/param&gt;
/// &lt;returns&gt;Source String without accents and special Char&lt;/returns&gt;
        private static string DeleteAccentAndSpecialsChar(string OriginalText)
        {
            string strTemp = OriginalText;
            // Regex creation
            Regex regA = new Regex(&quot;[&atilde;|&agrave;|&acirc;|&auml;|&aacute;|&aring;]&quot;);
            Regex regAA = new Regex(&quot;[&Atilde;|&Agrave;|&Acirc;|&Auml;|&Aacute;|&Aring;]&quot;);
            Regex regE = new Regex(&quot;[&eacute;|&egrave;|&ecirc;|&euml;]&quot;);
            Regex regEE = new Regex(&quot;[&Eacute;|&Egrave;|&Ecirc;|&Euml;]&quot;);
            Regex regI = new Regex(&quot;[&iacute;|&igrave;|&icirc;|&iuml;]&quot;);
            Regex regII = new Regex(&quot;[&Iacute;|&Igrave;|&Icirc;|&Iuml;]&quot;);
            Regex regO = new Regex(&quot;[&otilde;|&ograve;|&oacute;|&ocirc;|&ouml;]&quot;);
            Regex regOO = new Regex(&quot;[&Otilde;|&Oacute;|&Ograve;|&Ocirc;|&Ouml;]&quot;);
            Regex regU = new Regex(&quot;[&ugrave;|&uacute;|&ucirc;|&uuml;|&micro;]&quot;);
            Regex regUU = new Regex(&quot;[&Uuml;|&Uacute;|&Ugrave;|&Ucirc;]&quot;);
            Regex regY = new Regex(&quot;[&yacute;|&yuml;]&quot;);
            Regex regYY = new Regex(&quot;[&Yacute;]&quot;);
            Regex regAE = new Regex(&quot;[&aelig;]&quot;);
            Regex regAEAE = new Regex(&quot;[&AElig;]&quot;);
            Regex regOE = new Regex(&quot;[&oelig;]&quot;);
            Regex regOEOE = new Regex(&quot;[&OElig;]&quot;);
            Regex regC = new Regex(&quot;[&ccedil;]&quot;);
            Regex regCC = new Regex(&quot;[&Ccedil;]&quot;);
            Regex regDD = new Regex(&quot;[&ETH;]&quot;);
            Regex regN = new Regex(&quot;[&ntilde;]&quot;);
            Regex regNN = new Regex(&quot;[&Ntilde;]&quot;);
            Regex regS = new Regex(&quot;[&scaron;]&quot;);
            Regex regSS = new Regex(&quot;[&Scaron;]&quot;);
            strTemp = regA.Replace(strTemp, &quot;a&quot;);
            strTemp = regAA.Replace(strTemp, &quot;A&quot;);
            strTemp = regE.Replace(strTemp, &quot;e&quot;);
            strTemp = regEE.Replace(strTemp, &quot;E&quot;);
            strTemp = regI.Replace(strTemp, &quot;i&quot;);
            strTemp = regII.Replace(strTemp, &quot;I&quot;);
            strTemp = regO.Replace(strTemp, &quot;o&quot;);
            strTemp = regOO.Replace(strTemp, &quot;O&quot;);
            strTemp = regU.Replace(strTemp, &quot;u&quot;);
            strTemp = regUU.Replace(strTemp, &quot;U&quot;);
            strTemp = regY.Replace(strTemp, &quot;y&quot;);
            strTemp = regYY.Replace(strTemp, &quot;Y&quot;);
            strTemp = regAE.Replace(strTemp, &quot;ae&quot;);
            strTemp = regAEAE.Replace(strTemp, &quot;AE&quot;);
            strTemp = regOE.Replace(strTemp, &quot;oe&quot;);
            strTemp = regOEOE.Replace(strTemp, &quot;OE&quot;);
            strTemp = regC.Replace(strTemp, &quot;c&quot;);
            strTemp = regCC.Replace(strTemp, &quot;C&quot;);
            strTemp = regDD.Replace(strTemp, &quot;D&quot;);
            strTemp = regN.Replace(strTemp, &quot;n&quot;);
            strTemp = regNN.Replace(strTemp, &quot;N&quot;);
            strTemp = regS.Replace(strTemp, &quot;s&quot;);
            strTemp = regSS.Replace(strTemp, &quot;S&quot;);
            return strTemp;

            return strTemp;
        }</pre><p></p>
<p><em>Source : <a href="http://www.codyx.org/snippet_modifie-caracteres-speciaux_154.aspx">http://www.codyx.org/snippet_modifie-caracteres-speciaux_154.aspx</a></em><br />
ps : Don&#8217;t forget to import <em>RegularExpressions </em>in your namespace.</p><pre class="crayon-plain-tag">using System.Text.RegularExpressions;</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>http://myownpercept.com/2009/06/replacing-special-chars-string-csharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove the blue border around an image link</title>
		<link>http://myownpercept.com/2009/04/remove-border-around-image/</link>
		<comments>http://myownpercept.com/2009/04/remove-border-around-image/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 17:34:22 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=155</guid>
		<description><![CDATA[<p>[ad#only_in_post] You want to use an image as a link.However, a blue border appears around the image. This border is meant to inform users that the image is a link. Well, it&#8217;s a link but this is ugly :s and may not fit your need. [ad#hire_me] Solution You simply have to add a border-style, set [...]</p>
 ]]></description>
			<content:encoded><![CDATA[<p><!--digg--></p>
<p style="text-align: center;">[ad#only_in_post]</p>
<p>You want to use an image as a link.However, a blue border appears around the image.</p><pre class="crayon-plain-tag">&lt;a href=&quot;http://www.myownpercept.com/&quot;&gt;  
  &lt;img src=&quot;logo.png&quot; alt=&quot;&quot; /&gt;
&lt;/a&gt;</pre><p>This border is meant to inform users that the image is a link. Well, it&#8217;s a link but this is ugly :s and may not fit your need.<br />
[ad#hire_me]  </p>
<h2>Solution</h2>
<ol>
<li>You simply have to add a border-style, set to none, as a style to your img tag<br />
<pre class="crayon-plain-tag">&lt;a href=&quot;http://www.myownpercept.com/&quot;&gt;
  &lt;img style=&quot;border-style: none;&quot; src=&quot;logo.png&quot; alt=&quot;&quot; /&gt;
&lt;/a&gt;</pre>
</li>
<li>A cleaner way, that will pass the W3C validation, is by adding those lines to your CSS file :<br />
<pre class="crayon-plain-tag">img {
	border-style: none;
}</pre>
</li>
<li>A dirty old way, but works,  is by adding border attribute to the img tag.<br />
<pre class="crayon-plain-tag">&lt;a href=&quot;http://www.myownpercept.com/&quot;&gt;  
  &lt;img src=&quot;logo.png&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;
&lt;/a&gt;</pre>
</li>
]]></content:encoded>
			<wfw:commentRss>http://myownpercept.com/2009/04/remove-border-around-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Erlang Cheat Sheet</title>
		<link>http://myownpercept.com/2009/03/erlang-cheat-sheet/</link>
		<comments>http://myownpercept.com/2009/03/erlang-cheat-sheet/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 20:48:18 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[erlang]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[erl]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=55</guid>
		<description><![CDATA[<p>I am sharing here my Erlang Cheat Sheet after some lifting in order to make it more useful. Certainly, it&#8217;s not an exhaustive list of Erlang commands. I hope you will find it useful. ps : If there is a mistake. Please report it and I will be very thankful. [ad#only_in_post] Suggestions / things to [...]</p>
 ]]></description>
			<content:encoded><![CDATA[<p>I am sharing here my <strong>Erlang Cheat Sheet</strong> after some lifting <img src='http://myownpercept.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  in order to make it more useful.<br />
Certainly, it&#8217;s not an exhaustive list of Erlang commands.<br />
I hope you will find it useful.<br />
ps : If there is a mistake. Please report it and I will be very thankful.</p>
<p>[ad#only_in_post]<br />
Suggestions / things to be added ? are very welcome.<br />
<img class="size-full wp-image-62 alignnone" title="Erlang CheatSheet" src="http://www.myownpercept.com/wp-content/uploads/2009/03/cheat_sheet.png" alt="Erlang CheatSheet" width="464" height="367" /></p>
<p>Download: <a class="downloadlink" href="http://myownpercept.com/wp-content/plugins/download-monitor/download.php?id=1" title="Version1.0 downloaded 1787 times" >Erlang - CheatSheet (1787)</a></p>
<li><span style="font-size: medium;"><span style="font-size:small;"><strong><span style="font-family:'courier new', courier;">Update 2009-03-28: Watermark have been removed.</span></strong></span></span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://myownpercept.com/2009/03/erlang-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

