<?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; Marouan OMEZZINE</title>
	<atom:link href="http://www.myownpercept.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myownpercept.com</link>
	<description>"Only in quiet waters things mirror themselves undistorted. Only in a quiet mind is adequate perception of the world."~Hans Margolius</description>
	<lastBuildDate>Mon, 02 Aug 2010 12:51:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fatal error: Class &#8216;Net_SMTP&#8217; not found in /usr/lib/php/Mail/smtp.php on line 349</title>
		<link>http://www.myownpercept.com/2010/08/fatal-error-class-net_smtp-not-found-in-usrlibphpmailsmtp-php-on-line-349/</link>
		<comments>http://www.myownpercept.com/2010/08/fatal-error-class-net_smtp-not-found-in-usrlibphpmailsmtp-php-on-line-349/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 12:48:18 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Net_SMTP]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=299</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2010/08/fatal-error-class-net_smtp-not-found-in-usrlibphpmailsmtp-php-on-line-349/';digg_title = 'Fatal error: Class &#8216;Net_SMTP&#8217; not found in /usr/lib/php/Mail/smtp.php on line 349';
Error:

1
2
3
4
5
Warning: include_once&#40;Net/SMTP.php&#41; &#91;function.include-once&#93;: failed to open stream: No such file or directory in /usr/lib/php/Mail/smtp.php on line 348
&#160;
Warning: include_once&#40;&#41; &#91;function.include&#93;: Failed opening 'Net/SMTP.php' for inclusion &#40;include_path='.:/usr/lib/php'&#41; in /usr/lib/php/Mail/smtp.php on line 348
&#160;
Fatal error: Class 'Net_SMTP' not found in /usr/lib/php/Mail/smtp.php on line 349

Just install [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2010/08/fatal-error-class-net_smtp-not-found-in-usrlibphpmailsmtp-php-on-line-349/';digg_title = 'Fatal error: Class &#8216;Net_SMTP&#8217; not found in /usr/lib/php/Mail/smtp.php on line 349';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<p><strong>Error</strong>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">Warning<span style="color: #339933;">:</span> <span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span>Net<span style="color: #339933;">/</span>SMTP<span style="color: #339933;">.</span>php<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#91;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #339933;">.</span>include<span style="color: #339933;">-</span>once<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> failed to open stream<span style="color: #339933;">:</span> No such <span style="color: #990000;">file</span> or directory in <span style="color: #339933;">/</span>usr<span style="color: #339933;">/</span>lib<span style="color: #339933;">/</span>php<span style="color: #339933;">/</span><span style="color: #990000;">Mail</span><span style="color: #339933;">/</span>smtp<span style="color: #339933;">.</span>php on line <span style="color: #cc66cc;">348</span>
&nbsp;
Warning<span style="color: #339933;">:</span> <span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#91;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #339933;">.</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Failed opening <span style="color: #0000ff;">'Net/SMTP.php'</span> <span style="color: #b1b100;">for</span> inclusion <span style="color: #009900;">&#40;</span>include_path<span style="color: #339933;">=</span><span style="color: #0000ff;">'.:/usr/lib/php'</span><span style="color: #009900;">&#41;</span> in <span style="color: #339933;">/</span>usr<span style="color: #339933;">/</span>lib<span style="color: #339933;">/</span>php<span style="color: #339933;">/</span><span style="color: #990000;">Mail</span><span style="color: #339933;">/</span>smtp<span style="color: #339933;">.</span>php on line <span style="color: #cc66cc;">348</span>
&nbsp;
Fatal error<span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">Class</span> <span style="color: #0000ff;">'Net_SMTP'</span> not found in <span style="color: #339933;">/</span>usr<span style="color: #339933;">/</span>lib<span style="color: #339933;">/</span>php<span style="color: #339933;">/</span><span style="color: #990000;">Mail</span><span style="color: #339933;">/</span>smtp<span style="color: #339933;">.</span>php on line <span style="color: #cc66cc;">349</span></pre></td></tr></table></div>

<p>Just install the missing pear package:</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;">sudo pear install Net_SMTP</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2010/08/fatal-error-class-net_smtp-not-found-in-usrlibphpmailsmtp-php-on-line-349/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>creating init.d script for Juggernaut</title>
		<link>http://www.myownpercept.com/2010/07/creating-init-d-script-for-juggernaut/</link>
		<comments>http://www.myownpercept.com/2010/07/creating-init-d-script-for-juggernaut/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 10:26:04 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[init.d]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[shell script]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=295</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2010/07/creating-init-d-script-for-juggernaut/';digg_title = 'creating init.d script for Juggernaut';
The Juggernaut plugin for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your app can have a real time connection to the server with the advantage of instant updates. Although [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2010/07/creating-init-d-script-for-juggernaut/';digg_title = 'creating init.d script for Juggernaut';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<blockquote><p>The Juggernaut plugin for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your app can have a real time connection to the server with the advantage of instant updates. Although the obvious use of this is for chat, the most exciting prospect is collaborative cms and wikis.</p></blockquote>

<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
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">#!/bin/sh -e 
APP_PATH=/home/zooz.com/current 
JUGGERNAUT_CONFIG=&quot;$APP_PATH/juggernaut.yml&quot; 
JUGGERNAUT_PID=&quot;$APP_PATH/tmp/pids/juggernaut.pid&quot; 
JUGGERNAUT_LOG=&quot;$APP_PATH/log/juggernaut.log&quot; 
RAILS_ENV=production 
case $1 in 
        start) 
                echo &quot;Starting Juggernaut ...&quot; 
                juggernaut -d -c $JUGGERNAUT_CONFIG --pid $JUGGERNAUT_PID --log $JUGGERNAUT_LOG 
        ;; 
        stop) 
                echo &quot;Stopping Juggernaut ...&quot; 
                juggernaut -k * -c $JUGGERNAUT_CONFIG --pid $JUGGERNAUT_PID --log $JUGGERNAUT_LOG 
        ;; 
        restart) 
                echo &quot;Juggernaut restart ...&quot; 
                echo &quot;Stopping Juggernaut ...&quot; 
                juggernaut -k * -c $JUGGERNAUT_CONFIG --pid $JUGGERNAUT_PID --log $JUGGERNAUT_LOG 
                echo &quot;Starting Juggernaut ...&quot; 
                juggernaut -d -c $JUGGERNAUT_CONFIG --pid $JUGGERNAUT_PID --log $JUGGERNAUT_LOG 
        ;; 
esac</pre></td></tr></table></div>

<p>you my check for further info on how to create</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2010/07/creating-init-d-script-for-juggernaut/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Novice] Linux File Structure</title>
		<link>http://www.myownpercept.com/2009/09/linux-file-structure/</link>
		<comments>http://www.myownpercept.com/2009/09/linux-file-structure/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 15:46:59 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[file structure]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=282</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2009/09/linux-file-structure/';digg_title = '[Novice] Linux File Structure';



You may find it useful :



]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/09/linux-file-structure/';digg_title = '[Novice] Linux File Structure';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<p style="text-align: center;">You may find it useful :</p>
<p><div id="attachment_283" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.myownpercept.com/wp-content/uploads/2009/09/linux_file_structure.jpg"><img class="size-medium wp-image-283" title="Linux File Structure" src="http://www.myownpercept.com/wp-content/uploads/2009/09/linux_file_structure-300x194.jpg" alt="Linux File Structure" width="300" height="194" /></a><p class="wp-caption-text">Linux File Structure</p></div><br />
<center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2009/09/linux-file-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@&#039;localhost&#8217; (using password: NO)</title>
		<link>http://www.myownpercept.com/2009/07/error-1045-28000-access-denied-for-user-root/</link>
		<comments>http://www.myownpercept.com/2009/07/error-1045-28000-access-denied-for-user-root/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 14:10:29 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=274</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2009/07/error-1045-28000-access-denied-for-user-root/';digg_title = 'ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)';
Today I got the error below :

1
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

after typing :

1
mysql -u root

I don&#8217;t know why ? but I know how to solve it.
First of all let&#8217;s disable password authentication :
Stop your MySQL [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/07/error-1045-28000-access-denied-for-user-root/';digg_title = 'ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<p>Today I got the error below :</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;">ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)</pre></td></tr></table></div>

<p>after typing :</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;">mysql -u root</pre></td></tr></table></div>

<p>I don&#8217;t know why ? but I know how to solve it.<br />
First of all let&#8217;s disable password authentication :<br />
Stop your MySQL daemon:</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;">/etc/init.d/mysql stop</pre></td></tr></table></div>

<p>or</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;">/etc/init.d/mysqld stop</pre></td></tr></table></div>

<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
Then run the following command line in background :</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;">mysqld_safe --skip-grant-tables &amp;</pre></td></tr></table></div>

<p>Secondly run :</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;">mysql -u root</pre></td></tr></table></div>

<p>Finally, In your MySQL command line prompt issue the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">USE</span> mysql<span style="color: #000033;">;</span>
<span style="color: #990099; font-weight: bold;">UPDATE</span> <span style="color: #000099;">user</span> <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #000099;">password</span><span style="color: #CC0099;">=</span><span style="color: #000099;">PASSWORD</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">&quot;my<span style="color: #008080; font-weight: bold;">_</span>password&quot;</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #000099;">user</span><span style="color: #CC0099;">=</span><span style="color: #008000;">&quot;root&quot;</span><span style="color: #000033;">;</span>
FLUSH <span style="color: #990099; font-weight: bold;">PRIVILEGES</span><span style="color: #000033;">;</span>
EXIT</pre></td></tr></table></div>

<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<p>Password is now reset to <strong>my_password</strong>. So just restart your MySQL server using :</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;">/etc/init.d/mysql restart</pre></td></tr></table></div>

<p>or</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;">/etc/init.d/mysqld restart</pre></td></tr></table></div>

<p>and use your new password to authenticate :</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;">mysql -u root -p</pre></td></tr></table></div>

<p>All that remains is to enter your password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2009/07/error-1045-28000-access-denied-for-user-root/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GTalk: Text Formatting; bold, italic and strikethrough.</title>
		<link>http://www.myownpercept.com/2009/07/gtalk-text-formatting/</link>
		<comments>http://www.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[Tips & Tricks]]></category>
		<category><![CDATA[snippet]]></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[digg_url = 'http://www.myownpercept.com/2009/07/gtalk-text-formatting/';digg_title = 'GTalk: Text Formatting; bold, italic and strikethrough.';
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 [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/07/gtalk-text-formatting/';digg_title = 'GTalk: Text Formatting; bold, italic and strikethrough.';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<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>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></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><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
This is a <em>stupid </em>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://www.myownpercept.com/2009/07/gtalk-text-formatting/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ERROR: &#8216;phpize&#8217; failed on ubuntu</title>
		<link>http://www.myownpercept.com/2009/06/error-phpize-failed-on-ubuntu/</link>
		<comments>http://www.myownpercept.com/2009/06/error-phpize-failed-on-ubuntu/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 08:55:22 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpize]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=251</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2009/06/error-phpize-failed-on-ubuntu/';digg_title = 'ERROR: &#8216;phpize&#8217; failed on ubuntu';



Today when I tried to install a pear package using the pecl command line on ubuntu, I got the following error :

1
2
3
4
5
6
7
8
pecl install pecl_http
downloading pecl_http-1.6.3.tgz ...
Starting to download pecl_http-1.6.3.tgz (173,005 bytes)
.....................done: 173,005 bytes
71 source files, building
running: phpize
sh: phpize: not found
ERROR: `phpize' failed




Solution :
Just install php5-dev package

1
apt-get install [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/06/error-phpize-failed-on-ubuntu/';digg_title = 'ERROR: &#8216;phpize&#8217; failed on ubuntu';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
Today when I tried to install a pear package using the pecl command line on ubuntu, I got the following error :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">pecl install pecl_http
downloading pecl_http-1.6.3.tgz ...
Starting to download pecl_http-1.6.3.tgz (173,005 bytes)
.....................done: 173,005 bytes
71 source files, building
running: phpize
sh: phpize: not found
ERROR: `phpize' failed</pre></td></tr></table></div>

<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
<strong>Solution :</strong><br />
Just install php5-dev package</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;">apt-get install php5-dev</pre></td></tr></table></div>

<p>or php4-dev if you are running php 4.x</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;">apt-get install php4-dev</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2009/06/error-phpize-failed-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LoadError : no such file to load — readline (LoadError) when running script/console on ubuntu</title>
		<link>http://www.myownpercept.com/2009/06/loaderror-no-such-file-to-load-%e2%80%94-readline-loaderror-when-running-scriptconsole-on-ubuntu/</link>
		<comments>http://www.myownpercept.com/2009/06/loaderror-no-such-file-to-load-%e2%80%94-readline-loaderror-when-running-scriptconsole-on-ubuntu/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 12:51:27 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[extconf]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=228</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2009/06/loaderror-no-such-file-to-load-%e2%80%94-readline-loaderror-when-running-scriptconsole-on-ubuntu/';digg_title = 'LoadError : no such file to load — readline (LoadError) when running script/console on ubuntu';
Q : What&#8217;s the best thing that may happen to a developer ?
A : A Bug   at the beginning of the day  
I ran script/console in a rails project to debug something on console, [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/06/loaderror-no-such-file-to-load-%e2%80%94-readline-loaderror-when-running-scriptconsole-on-ubuntu/';digg_title = 'LoadError : no such file to load — readline (LoadError) when running script/console on ubuntu';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<blockquote><p>Q : What&#8217;s the best thing that may happen to a developer ?<br />
A : A Bug <img src='http://www.myownpercept.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  at the beginning of the day <img src='http://www.myownpercept.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p>I ran script/console in a rails project to debug something on console,  but I got this LoadError:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">Loading development environment (Rails 2.1.0)
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require’: no such file to load — readline (LoadError)
        from /usr/local/lib/ruby/1.8/irb/completion.rb:10
        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require’
        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules’
        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each’
        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules’
        from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup’
        from /usr/local/lib/ruby/1.8/irb.rb:54:in `start’
        from /usr/local/bin/irb:13</pre></td></tr></table></div>

<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "1251664758";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
<strong>How to fix ?</strong><br />
I figured out that some libraries are missing after installing ruby from sources (I got those troubles after upgrading my ubuntu from 8.10 to 9.04 and then reinstalling ruby from sources to solve a non-compatibility problem of the already installed ruby binary package with ubuntu 9.04) :</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 apt-get install libncurses5-dev
sudo apt-get install libreadline5-dev</pre></td></tr></table></div>

<p>Then move to your ruby source folder, subfolder ext/readline and then configure, build and install stuffs.</p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "1251664758";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></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;">cd /usr/src/ruby-1.8.6-p368/ext/readline/
ruby extconf.rb
sudo make
sudo make install</pre></td></tr></table></div>

<p>you may get something like this : ( when running <em>ruby extconf.rb</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
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">marouan@myownpercept:/usr/src/ruby-1.8.6-p368/ext/readline$ sudo ruby extconf.rb
checking for tgetnum() in -lncurses... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for readline() in -lreadline... yes
checking for rl_filename_completion_function()... yes
checking for rl_username_completion_function()... yes
checking for rl_completion_matches()... yes
checking for rl_deprep_term_function in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completion_append_character in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_basic_word_break_characters in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completer_word_break_characters in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_basic_quote_characters in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completer_quote_characters in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_filename_quote_characters in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_attempted_completion_over in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_library_version in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_event_hook in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_cleanup_after_signal()... yes
checking for rl_clear_signals()... yes
checking for rl_vi_editing_mode()... yes
checking for rl_emacs_editing_mode()... yes
checking for replace_history_entry()... yes
checking for remove_history()... yes
creating Makefile</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2009/06/loaderror-no-such-file-to-load-%e2%80%94-readline-loaderror-when-running-scriptconsole-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing special Chars in a String c#</title>
		<link>http://www.myownpercept.com/2009/06/replacing-special-chars-string-csharp/</link>
		<comments>http://www.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[digg_url = 'http://www.myownpercept.com/2009/06/replacing-special-chars-string-csharp/';digg_title = 'Replacing special Chars in a String c#';
I am working on a c# desktop application for Instance IT (Where I fill a CTO position).
The application is dealing with french datas and I need to remove some special chars from a string to have a &#8220;correct&#8221; PDF printing using iTextSharp.



I found this piece [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/06/replacing-special-chars-string-csharp/';digg_title = 'Replacing special Chars in a String c#';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<p>I am working on a <strong>c#</strong> desktop application for <a href="http://instance-it.com"><strong>Instance IT</strong></a> (Where I fill a CTO position).<br />
The application is dealing with french datas and I need to remove some special chars from a string to have a &#8220;correct&#8221; PDF printing using <a href="http://itextsharp.sourceforge.net/">iTextSharp</a>.<br />
<center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "1251664758";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
I found this piece of code in the Internet and I want to share it.</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;">private</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">string</span> DeleteAccentAndSpecialsChar<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> OriginalText<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #FF0000;">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: #000000;">&#40;</span><span style="color: #666666;">&quot;[ã|à|â|ä|á|å]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regAA <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Ã|À|Â|Ä|Á|Å]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[é|è|ê|ë]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regEE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[É|È|Ê|Ë]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regI <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[í|ì|î|ï]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regII <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Í|Ì|Î|Ï]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regO <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[õ|ò|ó|ô|ö]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regOO <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Õ|Ó|Ò|Ô|Ö]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regU <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[ù|ú|û|ü|µ]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regUU <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Ü|Ú|Ù|Û]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regY <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[ý|ÿ]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regYY <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Ý]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regAE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[æ]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regAEAE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Æ]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regOE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[œ]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regOEOE <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Œ]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regC <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[ç]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regCC <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Ç]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regDD <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Ð]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regN <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[ñ]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regNN <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Ñ]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regS <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[š]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Regex regSS <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[Š]&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regA.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;a&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regAA.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;A&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regE.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;e&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regEE.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;E&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regI.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;i&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regII.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;I&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regO.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;o&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regOO.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;O&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regU.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;u&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regUU.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;U&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regY.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;y&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regYY.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;Y&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regAE.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;ae&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regAEAE.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;AE&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regOE.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;oe&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regOEOE.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;OE&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regC.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;c&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regCC.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;C&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regDD.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;D&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regN.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;n&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regNN.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;N&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regS.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;s&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strTemp <span style="color: #008000;">=</span> regSS.<span style="color: #0000FF;">Replace</span><span style="color: #000000;">&#40;</span>strTemp, <span style="color: #666666;">&quot;S&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">return</span> strTemp<span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF;">return</span> strTemp<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#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;">using</span> <span style="color: #008080;">System.Text.RegularExpressions</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

<p><center><br />
<script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "1251664758";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2009/06/replacing-special-chars-string-csharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>G33k Quotes</title>
		<link>http://www.myownpercept.com/2009/05/geek-quotes/</link>
		<comments>http://www.myownpercept.com/2009/05/geek-quotes/#comments</comments>
		<pubDate>Sun, 24 May 2009 09:22:36 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[geeking]]></category>
		<category><![CDATA[jokes]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=215</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2009/05/geek-quotes/';digg_title = 'G33k Quotes';
I&#8217;m not anti-social; I&#8217;m just not user friendly.
My software never has bugs. It just develops random features.
Roses are #FF0000, Violets are #0000FF, All my base belongs to you.
I would love to change the world, but they won&#8217;t give me the source code.



Programming today is a race between software engineers striving [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/05/geek-quotes/';digg_title = 'G33k Quotes';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<blockquote><p>I&#8217;m not anti-social; I&#8217;m just not user friendly.</p></blockquote>
<blockquote><p>My software never has bugs. It just develops random features.</p></blockquote>
<blockquote><p>Roses are #<a href="http://search.twitter.com/search?q=%23FF0000" rel="nofollow" target="_blank" title="Search Twitter for &quot;FF0000&quot;">FF0000</a>, Violets are #<a href="http://search.twitter.com/search?q=%230000FF" rel="nofollow" target="_blank" title="Search Twitter for &quot;0000FF&quot;">0000FF</a>, All my base belongs to you.</p></blockquote>
<blockquote><p>I would love to change the world, but they won&#8217;t give me the source code.</p></blockquote>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<blockquote><p>Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.</p></blockquote>
<blockquote><p>The beginning of the programmer&#8217;s wisdom is understanding the difference between getting program to run and having a runnable program.</p></blockquote>
<blockquote><p>Cannot find REALITY.SYS. Universe halted.</p></blockquote>
<blockquote><p>Computers make very fast, very accurate mistakes.</p></blockquote>
<blockquote><p>The truth is out there&#8230; anybody got the URL?</p></blockquote>
<blockquote><p>Computers can never replace human stupidity.</p></blockquote>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "1251664758";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<blockquote><p>Bugs come in through open Windows.</p></blockquote>
<blockquote><p>Black holes are where God divided by zero.</p></blockquote>
<blockquote><p>Hey! It compiles! Ship it!</p></blockquote>
<blockquote><p>I&#8217;m sorry, our software is perfect. The problem must be you.</p></blockquote>
<blockquote><p>Ultimate office automation: networked coffee.</p></blockquote>
<blockquote><p>Computer: A device designed to speed and automate errors.</p></blockquote>
<blockquote><p>How many programmers does it take to change a light bulb? &#8211; None. It&#8217;s a hardware problem.</p></blockquote>
<p><em>source : http://www.yet-another-geek.org/pages/geekiness.html</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2009/05/geek-quotes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Entrepreneurs can change the world</title>
		<link>http://www.myownpercept.com/2009/05/entrepreneurs-can-change-the-world/</link>
		<comments>http://www.myownpercept.com/2009/05/entrepreneurs-can-change-the-world/#comments</comments>
		<pubDate>Mon, 18 May 2009 20:54:37 +0000</pubDate>
		<dc:creator>Marouan OMEZZINE</dc:creator>
				<category><![CDATA[entrepreneurship]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=208</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2009/05/entrepreneurs-can-change-the-world/';digg_title = 'Entrepreneurs can change the world';
I found this great video on youtube, it deals with entrepreneurship.
 


Enjoy watching  

 

 
]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/05/entrepreneurs-can-change-the-world/';digg_title = 'Entrepreneurs can change the world';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<p><em>I found this great video on youtube, it deals with entrepreneurship.</em><br />
 <center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center><br />
<strong>Enjoy watching</strong> <img src='http://www.myownpercept.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><object width="560" height="340" data="http://www.youtube.com/v/T6MhAwQ64c0&amp;hl=fr&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/T6MhAwQ64c0&amp;hl=fr&amp;fs=1" /><param name="allowfullscreen" value="true" /></object><br />
 <center><script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "2952953575";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
 </center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myownpercept.com/2009/05/entrepreneurs-can-change-the-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
