<?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>Tue, 31 Jan 2012 13:16:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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[You may have faced a such a error, when trying to execute gem list : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError) from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `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 `gem_original_require' from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from [...]]]></description>
			<content:encoded><![CDATA[<p>You may have faced a such a error, when trying to execute <em>gem list</em> :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError)
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `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 `gem_original_require'
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `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 `gem_original_require'
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `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 `gem_original_require'
	from //lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:167:in `load_and_instantiate'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:88:in `[]'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:144:in `find_command'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:131:in `process_args'
	from //lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in `run'
	from //lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'
	from /bin/gem:21</pre></td></tr></table></div>

<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>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">root@xen1:/usr/src/ruby-1.8.6-p398/ext/zlib# ruby extconf.rb</pre></td></tr></table></div>

<p>If every things are ok, you should see:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">checking for deflateReset() in -lz... yes
checking for zlib.h... yes
checking for kind of operating system... Unix
creating Makefile</pre></td></tr></table></div>

<p>compile and deploy zlib by runnning both commands:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">sudo make 
sudo make install</pre></td></tr></table></div>

<p>Make sure gem command is woking:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">gem list</pre></td></tr></table></div>

<p>You should see:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">*** LOCAL GEMS ***</pre></td></tr></table></div>

]]></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[Just move to the directory where you want to delete, recursively, the .svn directories and type the folowing line: rm -rf `find . -type d -name .svn`]]></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>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">rm -rf `find  . -type d -name .svn`</pre></div></div>

]]></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[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 [...]]]></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[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 [...]]]></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>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
<span style="color: #008080; font-style: italic;">/// Delete all Accents</span>
<span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
<span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;txt&quot;&gt;Source String with accents and special Char&lt;/param&gt;</span>
<span style="color: #008080; font-style: italic;">/// &lt;returns&gt;Source String without accents and special Char&lt;/returns&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">string</span> DeleteAccentAndSpecialsChar<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> OriginalText<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> strTemp <span style="color: #008000;">=</span> OriginalText<span style="color: #008000;">;</span>
            <span style="color: #008080; font-style: italic;">// Regex creation</span>
            Regex regA <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[ã|à|â|ä|á|å]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regAA <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Ã|À|Â|Ä|Á|Å]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[é|è|ê|ë]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regEE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[É|È|Ê|Ë]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regI <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[í|ì|î|ï]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regII <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Í|Ì|Î|Ï]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regO <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[õ|ò|ó|ô|ö]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regOO <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Õ|Ó|Ò|Ô|Ö]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regU <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[ù|ú|û|ü|µ]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regUU <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Ü|Ú|Ù|Û]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regY <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[ý|ÿ]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regYY <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Ý]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regAE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[æ]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regAEAE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Æ]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regOE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[œ]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regOEOE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Œ]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regC <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[ç]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regCC <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Ç]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regDD <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Ð]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regN <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[ñ]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regNN <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Ñ]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regS <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[š]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regSS <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;[Š]&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regA<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;a&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regAA<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;A&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regE<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;e&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regEE<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;E&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regI<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;i&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regII<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;I&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regO<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;o&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regOO<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;O&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regU<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;u&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regUU<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;U&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regY<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;y&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regYY<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;Y&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regAE<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;ae&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regAEAE<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;AE&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regOE<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;oe&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regOEOE<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;OE&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regC<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;c&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regCC<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;C&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regDD<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;D&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regN<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;n&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regNN<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;N&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regS<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;s&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regSS<span style="color: #008000;">.</span><span style="color: #0000FF;">Replace</span><span style="color: #008000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;S&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> strTemp<span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">return</span> strTemp<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<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>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Text.RegularExpressions</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

]]></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[[ad#only_in_post] You want to use an image as a link.However, a blue border appears around the image. 1 2 3 &#60;a href=&#34;http://www.myownpercept.com/&#34;&#62; &#60;img src=&#34;logo.png&#34; alt=&#34;&#34; /&#62; &#60;/a&#62; 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. [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://myownpercept.com/2009/04/remove-border-around-image/';digg_title = 'How to remove the blue border around an image link';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<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>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.myownpercept.com/&quot;</span>&gt;</span>  
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;logo.png&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></td></tr></table></div>

<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

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.myownpercept.com/&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;border-style: none;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;logo.png&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></td></tr></table></div>

</li>
<li>A cleaner way, that will pass the W3C validation, is by adding those lines to your CSS file :

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">img <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>A dirty old way, but works,  is by adding border attribute to the img tag.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.myownpercept.com/&quot;</span>&gt;</span>  
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;logo.png&quot;</span> <span style="color: #000066;">border</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></td></tr></table></div>

</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[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 [...]]]></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 1707 times" >Erlang - CheatSheet (1707)</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>

