<?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://www.myownpercept.com/category/snippet/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>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>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>How to remove the blue border around an image link</title>
		<link>http://www.myownpercept.com/2009/04/remove-border-around-image/</link>
		<comments>http://www.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[Tips & Tricks]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.myownpercept.com/?p=155</guid>
		<description><![CDATA[digg_url = 'http://www.myownpercept.com/2009/04/remove-border-around-image/';digg_title = 'How to remove the blue border around an image link';



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 [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.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;"><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>
</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 />
<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>
  </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>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.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://www.myownpercept.com/2009/03/erlang-cheat-sheet/</link>
		<comments>http://www.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[digg_url = 'http://www.myownpercept.com/2009/03/erlang-cheat-sheet/';digg_title = 'Erlang Cheat Sheet';
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 any mistake. Please report it and I will be very thankful.



Suggestions [...]]]></description>
			<content:encoded><![CDATA[<div class="diggbutton"><script type="text/javascript">digg_url = 'http://www.myownpercept.com/2009/03/erlang-cheat-sheet/';digg_title = 'Erlang Cheat Sheet';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
<p>I am sharing here my Erlang cheat sheet after some lifting <img src='http://www.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 any mistake. Please report it and I will be very thankful.</p>
<p><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>
<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" /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-0920621684521020";
google_ad_slot = "6525689469";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br />
<a href="http://www.myownpercept.com/?download=Erlang - CheatSheet v1.0.pdf">Download : Erlang &#8211; CheatSheet v1.0.pdf</a> hits : 1076</p>
<ul>
<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://www.myownpercept.com/2009/03/erlang-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
