<?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>Fedora &#187; Tips &#8211; Tricks</title>
	<atom:link href="http://gofedora.com/archives/category/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://gofedora.com</link>
	<description>How Tos, Tutorials, Tips and Tricks</description>
	<lastBuildDate>Thu, 25 Feb 2010 07:55:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript To Remove All Facebook Apps From Your Account</title>
		<link>http://gofedora.com/javascript-remove-facebook-apps-account/</link>
		<comments>http://gofedora.com/javascript-remove-facebook-apps-account/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 23:06:45 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Apps]]></category>
		<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Postwith]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=1022</guid>
		<description><![CDATA[
This is a guest post by Gaganpreet Arora AKA bitgeek.
My Facebook app list was cluttered with useless apps accumulated over the time I had joined Facebook. The worst thing is that Facebook does not allow you to remove multiple apps in one go. You have to select one, confirm on &#8220;Are you sure?&#8221; first and [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/javascript-remove-facebook-apps-account/" class="post_image_link"  title="Permanent link to Javascript To Remove All Facebook Apps From Your Account"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2010/02/Stop-Facebook-Spam.jpg" width="200" height="180" alt="Stop Facebook Spam" title="Javascript To Remove All Facebook Apps From Your Account" /></a>
</p><p>This is a guest post by <a rel="nofollow" href="http://gofedora.com/goto/http://gaganpreet.wordpress.com/"  target="_blank">Gaganpreet Arora AKA bitgeek</a>.</p>
<p>My Facebook app list was cluttered with useless apps accumulated over the time I had joined Facebook. The worst thing is that Facebook does not allow you to remove multiple apps in one go. You have to select one, confirm on &#8220;Are you sure?&#8221; first and then click on &#8220;Okay&#8221; when it is deleted. Very cumbersome. So I wrote a Javascript hack to remove all of the apps in one go.</p>
<p><span style="text-decoration: underline;"><strong><span style="color: #ff0000;">Warning: This will actually delete all the apps</span></strong></span></p>
<h3><span style="text-decoration: underline;"><strong>Step 1</strong></span></h3>
<p>Go to: <a rel="nofollow" href="http://gofedora.com/goto/http://www.facebook.com/editapps.php?v=allowed"  target="_blank">http://www.facebook.com/editapps.php?v=allowed</a>.</p>
<h3><span style="text-decoration: underline;"><strong>Step 2</strong></span></h3>
<p>Select and copy the complete code below and paste it into the address bar.</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
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span>
<span style="color: #003366; font-weight: bold;">function</span> postwith <span style="color: #009900;">&#40;</span>to<span style="color: #339933;">,</span>p<span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> myForm <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;form&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  myForm.<span style="color: #660066;">method</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;post&quot;</span> <span style="color: #339933;">;</span> myForm.<span style="color: #660066;">action</span> <span style="color: #339933;">=</span> to <span style="color: #339933;">;</span> 
  <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> k <span style="color: #000066; font-weight: bold;">in</span> p<span style="color: #009900;">&#41;</span> 
  <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> myInput <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> 
    myInput.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">,</span> k<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> 
    myInput.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;value&quot;</span><span style="color: #339933;">,</span> p<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
    myForm.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>myInput<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> 
  <span style="color: #009900;">&#125;</span> 
  document.<span style="color: #660066;">body</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>myForm<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> 
  myForm.<span style="color: #660066;">submit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> 
  document.<span style="color: #660066;">body</span>.<span style="color: #660066;">removeChild</span><span style="color: #009900;">&#40;</span>myForm<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> getElementsByClassName<span style="color: #009900;">&#40;</span>classname<span style="color: #339933;">,</span> node<span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span> 
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>node<span style="color: #009900;">&#41;</span> 
  <span style="color: #009900;">&#123;</span> 
    node <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
  <span style="color: #009900;">&#125;</span> 
  <span style="color: #003366; font-weight: bold;">var</span> a <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> re <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>b'</span> <span style="color: #339933;">+</span> classname <span style="color: #339933;">+</span> <span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>b'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  els <span style="color: #339933;">=</span> node.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'*'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> j <span style="color: #339933;">=</span> els.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> j<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> 
  <span style="color: #009900;">&#123;</span> 
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> re.<span style="color: #660066;">test</span><span style="color: #009900;">&#40;</span>els<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">className</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span> a.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>els<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> 
  <span style="color: #009900;">&#125;</span> 
  <span style="color: #000066; font-weight: bold;">return</span> a<span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> arr <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
els<span style="color: #339933;">=</span>document.<span style="color: #660066;">getElementsByClassName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'app_row'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'fb_dtsg'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>document.<span style="color: #660066;">getElementsByName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'fb_dtsg'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span> 
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'remove'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>  
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'post_form_id_source'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'AsyncRequest'</span><span style="color: #339933;">;</span> 
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'post_form_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'post_form_id'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span> 
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'app_id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span>els<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;editapps_allowed_&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   
arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'__a'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> 
<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>els.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> <span style="color: #339933;">++</span>i<span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span>postwith<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://facebook.com/ajax/edit_app_settings.php&quot;</span><span style="color: #339933;">,</span> arr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> arr<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'app_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> els<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;editapps_allowed_&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3><span style="text-decoration: underline;"><strong>Step 3</strong></span></h3>
<p>Press Enter.</p>
<p>The browser may get stuck for a few moments if the list is large, so if it does, just wait a bit and it will respond back.</p>
<h3><span style="text-decoration: underline;"><strong>References</strong></span></h3>
<p>Function postwith was taken from <a rel="nofollow" href="http://gofedora.com/goto/http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/" >here</a>, and getElementsByClassName was taken from <a rel="nofollow" href="http://gofedora.com/goto/http://snipplr.com/view/1696/get-elements-by-class-name/" >here</a>.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/intelligentmirror-rpm-deb-caching-improved-05/"  title="IntelligentMirror: RPM and DEB Caching Improved (0.5)">IntelligentMirror: RPM and DEB Caching Improved (0.5)</a></li>
<li><a href="http://gofedora.com/how-to-install-javascript-plugin-eclipse/"  title="How To: Install Javascript Plugin in Eclipse">How To: Install Javascript Plugin in Eclipse</a></li>
<li><a href="http://gofedora.com/hack-mange-fluctuating-wireless/"  title="Hack: Mange Fluctuating Wireless">Hack: Mange Fluctuating Wireless</a></li>
<li><a href="http://gofedora.com/hack-mail-filter-shell-script/"  title="Hack: Mail Filter &#8211; Shell Script">Hack: Mail Filter &#8211; Shell Script</a></li>
<li><a href="http://gofedora.com/hack-graphical-implementation-cp-command/"  title="Hack: Graphical Implementation of CP Command">Hack: Graphical Implementation of CP Command</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/javascript-remove-facebook-apps-account/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tip: Multiproxy Switch : Easily use multiple proxies in Firefox</title>
		<link>http://gofedora.com/tip-multiproxy-switch-easily-use-multiple-proxies-in-firefox/</link>
		<comments>http://gofedora.com/tip-multiproxy-switch-easily-use-multiple-proxies-in-firefox/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 22:53:46 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Proxy Server]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Extension]]></category>
		<category><![CDATA[Firefox Extension]]></category>
		<category><![CDATA[Multiple Proxies]]></category>
		<category><![CDATA[Multiple Proxy Servers]]></category>
		<category><![CDATA[Multiproxy Switch]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=1005</guid>
		<description><![CDATA[
A lot of people (especially working people with mobile devices like notebook/netbooks) need to use different proxy servers at home and office. There are several Firefox extensions available to achieve the required functionality but IMHO Multiproxy Switch(Mozilla Addon Page) is the best because

Its simple and easy to use. It does what it should. No fancy/extra [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/tip-multiproxy-switch-easily-use-multiple-proxies-in-firefox/" class="post_image_link"  title="Permanent link to Tip: Multiproxy Switch : Easily use multiple proxies in Firefox"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/12/Multiproxy-Switch-Firefox-Multiple-Proxyes.jpg" width="200" height="193" alt="Multiproxy Switch - Firefox Multiple Proxyes" title="Tip: Multiproxy Switch : Easily use multiple proxies in Firefox" /></a>
</p><p>A lot of people (especially working people with mobile devices like notebook/netbooks) need to use different proxy servers at home and office. There are several Firefox extensions available to achieve the required functionality but IMHO <a rel="nofollow" href="http://gofedora.com/goto/http://multiproxyswitch.blogspot.com/"  target="_blank">Multiproxy Switch</a>(<a rel="nofollow" href="http://gofedora.com/goto/https://addons.mozilla.org/en-US/firefox/addon/7330"  target="_blank">Mozilla Addon Page</a>) is the best because</p>
<ol>
<li>Its simple and easy to use. It does what it should. No fancy/extra terrestrial stuff. Just switch proxies <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Tip: Multiproxy Switch : Easily use multiple proxies in Firefox" /> </li>
<li>Easy and Firefox like interface to specify different proxies. Many extensions add their own fancy interfaces for specifying proxies which eventually suck big time.</li>
<li>I am a fan of this one. The No-Proxy list. I could never understand those regular expression based no-proxy lists in FoxyProxy. Multiproxy Switch has Firefox like No-Proxy list which rocks and understandable <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Tip: Multiproxy Switch : Easily use multiple proxies in Firefox" /> </li>
</ol>
<p>If you happen to come across a better proxy switcher for Firefox, do let us know <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Tip: Multiproxy Switch : Easily use multiple proxies in Firefox" /> </p>
<div id="link-ad" style="border: 1px dotted black; font-size: 11px; padding: 2px 5px;">
Get free <a href="http://www.exam-builder.com/70-562.htm" >70-562 exam</a> questions with your <a href="http://www.exam-builder.com/70-431.htm" >70-431 exam</a> pack. Best <a href="http://www.exam-builder.com/VCP-certification-training.htm" >vcp training</a> simulations are also available.
</div>
<h3>Recommended Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/how-to-install-ati-catalyst-fglrx-98-drivers-fedora-11/"  title="How To: Install ATI Catalyst (fglrx) Drivers">How To: Install ATI Catalyst (fglrx) Drivers</a></li>
<li><a href="http://gofedora.com/fedora-12-ati-catalyst-drivers/"  title="Fedora 12 ATI Catalyst Drivers">Fedora 12 ATI Catalyst Drivers</a></li>
<li><a href="http://gofedora.com/how-to-configure-squid-proxy-server/"  title="How To: Configure Squid Proxy Server">How To: Configure Squid Proxy Server</a></li>
<li><a href="http://gofedora.com/news-ati-catalyst-drivers-10-2-released-no-fedora-12-support/"  title="News: ATI Catalyst Drivers 10.2 Released. No Fedora 12 Support.">News: ATI Catalyst Drivers 10.2 Released. No Fedora 12 Support.</a></li>
<li><a href="http://gofedora.com/news-will-ati-catalyst-drivers-9-12-work-with-fedora-12/"  title="News: Will ATI Catalyst Drivers 9.12 work with Fedora 12?">News: Will ATI Catalyst Drivers 9.12 work with Fedora 12?</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/tip-multiproxy-switch-easily-use-multiple-proxies-in-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To: Save yourself from stupid Tech Support Questions</title>
		<link>http://gofedora.com/how-to-save-stupid-tech-support-questions/</link>
		<comments>http://gofedora.com/how-to-save-stupid-tech-support-questions/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 18:57:16 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Gaim]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Messenger]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Frustration]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[STFW]]></category>
		<category><![CDATA[Tech Support]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=928</guid>
		<description><![CDATA[
Almost every other geek is pwned by his friends or people he/she knows by their stupid tech support questions. And sometime they drag you to the limits that you get frustrated enough to shoot yourself and bang your head onto your computer screen   How on earth can someone be so stupid   [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/how-to-save-stupid-tech-support-questions/" class="post_image_link"  title="Permanent link to How To: Save yourself from stupid Tech Support Questions"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Tech-Support-Frustration-STFW-Pidgin-Plugin.jpg" width="414" height="290" alt="Tech Support Frustration STFW Pidgin Plugin" title="How To: Save yourself from stupid Tech Support Questions" /></a>
</p><p>Almost every other geek is pwned by his friends or people he/she knows by their stupid tech support questions. And sometime they drag you to the limits that you get frustrated enough to shoot yourself and bang your head onto your computer screen <img src='http://gofedora.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="How To: Save yourself from stupid Tech Support Questions" />  How on earth can someone be so stupid <img src='http://gofedora.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="How To: Save yourself from stupid Tech Support Questions" />  But luckily I found a Pidgin Plugin called <a rel="nofollow" href="http://gofedora.com/goto/http://linuxandwhatever.wordpress.com/stfw-pidgin-plugin/"  target="_blank">STFW</a>(Search The F**king Web). This is one really awesome plugin I have seen recently and I (and most other geeks) needed something like this for ages <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: Save yourself from stupid Tech Support Questions" /> </p>
<h3><span style="text-decoration: underline;"><strong>What it does?</strong></span></h3>
<p>When somebody asks you a question, you can reply back with relevant keywords from the message you received prefixed with the command <em>/stfw</em>. The plugin will automatically convert the keywords to a URL understood by the site Let Me Google That For You (<a rel="nofollow" href="http://gofedora.com/goto/http://lmgtfy.com/"  target="_blank">lmgtfy.com</a>) and asker will get a URL like this <a rel="nofollow" href="http://gofedora.com/goto/http://lmgtfy.com/?q=what+is+http"  target="_blank">http://lmgtfy.com/?q=what+is+http</a>.</p>
<h3><span style="text-decoration: underline;"><strong>How to use?</strong></span></h3>
<p>The Download, installation and usage instruction can be seen on plugin page. So, when someone ask you &#8220;Wireless not working on my laptop&#8221;, just reply back with the following message</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>stfw Wireless not working on my laptop</pre></div></div>

<p>C&#8217;mon guys, ask me tech support questions <img src='http://gofedora.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="How To: Save yourself from stupid Tech Support Questions" /><br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/"  title="News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available">News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available</a></li>
<li><a href="http://gofedora.com/memepress-ready-translated-supports-turkish/"  title="Memepress Ready to be Translated (Supports Turkish now)">Memepress Ready to be Translated (Supports Turkish now)</a></li>
<li><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/"  title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!">News: Memepress (Yahoo! Meme) Wordpress Plugin is out!</a></li>
<li><a href="http://gofedora.com/intelligentmirror-rpm-deb-caching-improved-05/"  title="IntelligentMirror: RPM and DEB Caching Improved (0.5)">IntelligentMirror: RPM and DEB Caching Improved (0.5)</a></li>
<li><a href="http://gofedora.com/intelligentmirror-intelligent-1-0-1/"  title="IntelligentMirror Gets Even More Intelligent (1.0.1)">IntelligentMirror Gets Even More Intelligent (1.0.1)</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-save-stupid-tech-support-questions/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How To: Install PHP 5.3 on CentOS 5.1 or RHEL 5.1</title>
		<link>http://gofedora.com/how-to-install-php-on-centos-red-hat-rhel/</link>
		<comments>http://gofedora.com/how-to-install-php-on-centos-red-hat-rhel/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 20:54:34 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Cent OS]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[PHP 5.3]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Remi Repository]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=922</guid>
		<description><![CDATA[
PHP 5.2 and PHP 5.3 has tons of functionalities which are not provided by PHP 5.1 and PHP 5.1 is the most recent version of PHP available in CentOS 5.1 and RHEL 5.1 via updates. Also, its difficult for people to upgrade OS(s) on production servers frequently and especially if the servers are running absolutely [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/how-to-install-php-on-centos-red-hat-rhel/" class="post_image_link"  title="Permanent link to How To: Install PHP 5.3 on CentOS 5.1 or RHEL 5.1"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/RedHat-CentOS-PHP.jpg" width="300" height="225" alt="RedHat CentOS PHP 5.3" title="How To: Install PHP 5.3 on CentOS 5.1 or RHEL 5.1" /></a>
</p><p>PHP 5.2 and PHP 5.3 has tons of functionalities which are not provided by PHP 5.1 and PHP 5.1 is the most recent version of PHP available in CentOS 5.1 and RHEL 5.1 via updates. Also, its difficult for people to upgrade OS(s) on production servers frequently and especially if the servers are running absolutely fine, it doesn&#8217;t really make sense to upgrade just for the heck of it. One more reason for no upgrades is the OS choices provided by many hosting companies. But a lot of CMS(s) and softwares are now recommending at least PHP 5.2 for an extended feature set.</p>
<p>I tried a lot of repos for CentOS including RPM Fusion, RPM Forge, EPEL etc., but none of them could provide even PHP 5.2. In some corner of my mind, I had a faint idea of <a rel="nofollow" href="http://gofedora.com/goto/http://blog.famillecollet.com/"  target="_blank">Remi Collet</a> publishing updates about Remi repository. Did a quick google search and found out that PHP 5.3 is actually available in the repository <img src='http://gofedora.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="How To: Install PHP 5.3 on CentOS 5.1 or RHEL 5.1" /> </p>
<p>So, if you are really in need of PHP5.3 on your CentOS/RHEL 5.1 or lesser, head over to <a rel="nofollow" href="http://gofedora.com/goto/http://blog.famillecollet.com/pages/Config-en"  target="_blank">Repository Configuration Page</a> and follow the instructions.</p>
<p><span style="text-decoration: underline;"><strong>Note:</strong></span> The repository is not enabled on install <em>(enabled=0)</em>. You need to enable it in <em>/etc/yum.repos.d/remi.repo</em>.</p>
<p>Once installed and enabled, you can update PHP, MySQL from remi repository using the following command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ yum update php php-<span style="color: #000000; font-weight: bold;">*</span> mysql-<span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p><span style="color: #ff0000;"><span style="text-decoration: underline;"><strong>Warning:</strong></span></span> Drupal is still not totally compatible with PHP5.3 and if you run Drupal sites, be sure to investigate things before upgrading.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/red-hat-launches-opensource-com/"  title="Red Hat Launches OpenSource.Com">Red Hat Launches OpenSource.Com</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-php-on-centos-red-hat-rhel/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To: New Mail Notification</title>
		<link>http://gofedora.com/how-to-new-email-notification/</link>
		<comments>http://gofedora.com/how-to-new-email-notification/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 19:27:18 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Email Client]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Screenshot]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Email Notifications]]></category>
		<category><![CDATA[IMAP]]></category>
		<category><![CDATA[Mail Notifications]]></category>
		<category><![CDATA[Notifications]]></category>
		<category><![CDATA[POP3]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=890</guid>
		<description><![CDATA[
mbooth commented on one of my last post (How To: GNOME GMail Notifier) informing that he/she uses mail-notification. I was curious to check it out for mail via IMAP and I found it way more useful as compared to Gnome Gmail Notifier. I especially like the option to configure it to check the mails every [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/how-to-new-email-notification/" class="post_image_link"  title="Permanent link to How To: New Mail Notification"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/New-Mail-Notification.jpg" width="219" height="300" alt="New Mail Notification" title="How To: New Mail Notification" /></a>
</p><p>mbooth commented on one of my last post (<a href="http://gofedora.com/gnome-gmail-notifier/" title="Permanent link to How To: GNOME GMail Notifier" rel="bookmark" >How To: GNOME GMail Notifier</a>) informing that he/she uses <a rel="nofollow" href="http://gofedora.com/goto/http://www.nongnu.org/mailnotify/"  target="_blank">mail-notification</a>. I was curious to check it out for mail via IMAP and I found it way more useful as compared to Gnome Gmail Notifier. I especially like the option to configure it to check the mails every ten seconds. Thats way cool for anxious people like me <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" />  Keeping in mind the huge advantages of mail-notification, I thought of writing an howto for configuring it <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" /> </p>
<h3><span style="text-decoration: underline;"><strong>Install Mail Notification</strong></span></h3>
<p>Installing something can&#8217;t be simpler. Just use the following command as root</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> mail-notification</pre></div></div>

<p>Configuring mail-notification is very simple. Its as easy as it can get but there are tricks for special cases like Gmail for  Google Apps hosted websites.</p>
<h3><span style="text-decoration: underline;"><strong>Launch Mail Notification</strong></span></h3>
<p><span style="text-decoration: line-through;">Mail notification loses a point here. It doesn&#8217;t show up in any of the menus. You have to launch it from command line.</span> You can launch mail-notification from <em>System -&gt; Preferences -&gt; Mail Notification</em> (Thanks mbooth for correcting). Or use the following command as normal user to launch mail notification</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>saini<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ mail-notification <span style="color: #660033;">-p</span></pre></div></div>

<h3><span style="text-decoration: underline;"><strong>Configure Status Icon Behaviour</strong></span></h3>
<p>On mail notification properties windows, select <em>Status Icon</em> tab and choose the appropriate behaviour.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/01.-Mail-Notification-Status-Icon-Action.png" ><img class="alignnone size-full wp-image-892" title="Mail Notification Status Icon Action" src="http://gofedora.com/wp-content/uploads/2009/09/01.-Mail-Notification-Status-Icon-Action.png" alt="Mail Notification Status Icon Action" width="250" height="160" /></a></p>
<h3><span style="text-decoration: underline;"><strong>New Message Popup Settings</strong></span></h3>
<p>Now go to <em>Message Popups</em> tab, and select appropriate options. If you don&#8217;t enable popups, using mail notification doesn&#8217;t really make sense (though none can prevent you from doing so <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" />  ). Keeping popus stacked is good because it shows you all messages in case you get more than one new mails in an interval. Also, you can configure the expiration time for the popups.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/02.-Mail-Notification-Message-Popups-Settings.png" ><img class="alignnone size-full wp-image-893" title="Mail Notification Message Popups Settings" src="http://gofedora.com/wp-content/uploads/2009/09/02.-Mail-Notification-Message-Popups-Settings.png" alt="Mail Notification Message Popups Settings" width="250" height="300" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Add New Mailbox</strong></span></h3>
<p>Now select <em>General</em> tab and click of <em>Add</em> button. Mail-notification supports checking new mails from Evolution, Gmail, Yahoo! Mail, Windows Live Mail, any IMAP and POP3 Server and moreover your system mailbox <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" />  Select Gmail for mailbox type. Enter username and password for Gmail account.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/03.-Mail-Notification-Supported-Mailboxes.png" ><img class="alignnone size-full wp-image-894" title="Mail Notification Supported Mailboxes" src="http://gofedora.com/wp-content/uploads/2009/09/03.-Mail-Notification-Supported-Mailboxes.png" alt="Mail Notification Supported Mailboxes" width="400" height="260" /></a></p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/04.-Mail-Notification-Add-Gmail-Account.png" ><img class="alignnone size-full wp-image-895" title="Mail Notification Add Gmail Account" src="http://gofedora.com/wp-content/uploads/2009/09/04.-Mail-Notification-Add-Gmail-Account.png" alt="Mail Notification Add Gmail Account" width="380" height="250" /></a></p>
<p>Now move over to <em>Details</em> tab and set delay between checking mails. I keep it 10 seconds <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" /> </p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/05.-Mail-Notification-Gmail-Account-Settings.png" ><img class="alignnone size-full wp-image-896" title="Mail Notification Gmail Account Settings" src="http://gofedora.com/wp-content/uploads/2009/09/05.-Mail-Notification-Gmail-Account-Settings.png" alt="Mail Notification Gmail Account Settings" width="380" height="210" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Add a Google Apps Hosted Email Account</strong></span></h3>
<p>This is totally optional <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" />  Now we&#8217;ll add a Google Apps hosted account. This is a bit tricky. For mailbox type, you&#8217;ll have to select Gmail. For username, you&#8217;ll have to provide your email address.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/06.-Mail-Notification-Add-Google-Apps-Hosted-Account.png" ><img class="alignnone size-full wp-image-898" title="Mail Notification Add Google Apps Hosted Account" src="http://gofedora.com/wp-content/uploads/2009/09/06.-Mail-Notification-Add-Google-Apps-Hosted-Account.png" alt="Mail Notification Add Google Apps Hosted Account" width="360" height="140" /></a></p>
<p>Also, the mailbox name has to be modified in this case to make things work. Move over to <em>Details</em> tab and change mailbox name to your email address.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/07.-Mail-Notification-Google-Apps-Hosted-Account-Settings.png" ><img class="alignnone size-full wp-image-899" title="Mail Notification Google Apps Hosted Account Settings" src="http://gofedora.com/wp-content/uploads/2009/09/07.-Mail-Notification-Google-Apps-Hosted-Account-Settings.png" alt="Mail Notification Google Apps Hosted Account Settings" width="290" height="110" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Add a new IMAP mailbox (Gmail)</strong></p>
<p><strong> </strong></p>
<p></span></h3>
<p>This is totally optional <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" />  Keep mailbox type as IMAP. IMAP Server has to be imap.gmail.com . Username and password are same as Gmail Account.</p>
<p><span style="text-decoration: underline;"><strong>Note:</strong></span> For this mailbox to work, you&#8217;ll have to enable IMAP in settings tab in Gmail.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/08.-Mail-Notification-Gmail-IMAP-Account.png" ><img class="alignnone size-full wp-image-900" title="Mail Notification Gmail IMAP Account" src="http://gofedora.com/wp-content/uploads/2009/09/08.-Mail-Notification-Gmail-IMAP-Account.png" alt="Mail Notification Gmail IMAP Account" width="360" height="300" /></a></p>
<p>Now move over to <em>Connection</em> tab. Connection for Gmail IMAP has to be SSL enabled. So, select &#8220;<em>SSL/TLS on separate port</em>&#8221; and make sure the port number is 993.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/09.-Mail-Notification-Gmail-IMAP-Account-Connection-Settings.png" ><img class="alignnone size-full wp-image-902" title="Mail Notification Gmail IMAP Account Connection Settings" src="http://gofedora.com/wp-content/uploads/2009/09/09.-Mail-Notification-Gmail-IMAP-Account-Connection-Settings.png" alt="Mail Notification Gmail IMAP Account Connection Settings" width="360" height="330" /></a></p>
<p>Well thats all you need to do for configuring things for getting new mail notifications lightning fast <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" />  Now sit back and relax until someone sends you a mail <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: New Mail Notification" /> </p>
<p>The only major disadvantage that I found with mail-notification is that it doesn&#8217;t stay in notification area all the time. It appears only when there is a new mail.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/"  title="News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available">News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available</a></li>
<li><a href="http://gofedora.com/memepress-ready-translated-supports-turkish/"  title="Memepress Ready to be Translated (Supports Turkish now)">Memepress Ready to be Translated (Supports Turkish now)</a></li>
<li><a href="http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/"  title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!">News: Memepress (Yahoo! Meme) Wordpress Plugin is out!</a></li>
<li><a href="http://gofedora.com/review-spicebird-collaboration-platform/"  title="Review: Spicebird &#8211; A Collaboration Platform">Review: Spicebird &#8211; A Collaboration Platform</a></li>
<li><a href="http://gofedora.com/how-to-configure-evolution/"  title="How To: Configure Evolution">How To: Configure Evolution</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-new-email-notification/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How To: Configure Dual Display with ATI Radeon (fglrx)</title>
		<link>http://gofedora.com/how-to-configure-dual-display-ati-radeon-fglrx-xinerama/</link>
		<comments>http://gofedora.com/how-to-configure-dual-display-ati-radeon-fglrx-xinerama/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 21:34:08 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[AMD]]></category>
		<category><![CDATA[ATI]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Drivers]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Screenshot]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Xorg]]></category>
		<category><![CDATA[ATI Drivers]]></category>
		<category><![CDATA[ATI Radeon]]></category>
		<category><![CDATA[DPI]]></category>
		<category><![CDATA[Dual Display]]></category>
		<category><![CDATA[Font]]></category>
		<category><![CDATA[Xinerama]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=877</guid>
		<description><![CDATA[
As promised in my last post (News: ATI Catalyst Display Drivers 9.9 Released), I am back with a post on configuring dual display with ATI Radeon HD Graphics Card and proprietary catalyst (fglrx) drivers from ATI.
Hardware Used
Graphics Card: ATI Radeon HD 3200 (256MB, onboard)
 Monitor 0: ViewSonic VG1930WM 1440&#215;900 (19&#8243; LCD, Connected via DVI port)
 [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/how-to-configure-dual-display-ati-radeon-fglrx-xinerama/" class="post_image_link"  title="Permanent link to How To: Configure Dual Display with ATI Radeon (fglrx)"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Dual-Display-Configuration-ATI-Radeon.jpg" width="330" height="175" alt="Dual Display Configuration ATI Radeon" title=" How To: Configure Dual Display with ATI Radeon (fglrx)" /></a>
</p><p>As promised in my last post (<a href="http://gofedora.com/news-ati-catalyst-drivers-released/" title="News: ATI Catalyst Display Drivers 9.9 Released" >News: ATI Catalyst Display Drivers 9.9 Released</a>), I am back with a post on configuring dual display with ATI Radeon HD Graphics Card and proprietary catalyst (fglrx) drivers from ATI.</p>
<h3><span style="text-decoration: underline;"><strong>Hardware Used</strong></span></h3>
<p><strong>Graphics Card:</strong> ATI Radeon HD 3200 (256MB, onboard)<br />
<strong> Monitor 0:</strong> ViewSonic VG1930WM 1440&#215;900 (19&#8243; LCD, Connected via DVI port)<br />
<strong> Monitor 1:</strong> Samsung SyncMaster 793S 1280&#215;1024 (17&#8243; CRT, Connected via VGA port)</p>
<h3><span style="text-decoration: underline;"><strong>Types of Dual Display</strong></span></h3>
<ul>
<li><strong>Mirror:</strong> Both screens have same content, identical refresh rate and resolution.</li>
<li><strong>Clone:</strong> Both screens have same content but refresh rates and resolutions can be different.</li>
<li><strong>Horizontal:</strong> Both screens can have different content, refresh rates and resolution. Screen 1 is left or right of Screen2.</li>
<li><strong>Vertical:</strong> Same as horizontal. The only difference is that Screen1 is above or below Screen2.</li>
</ul>
<p>In this post, we are interested in Horizontal setup with <strong>xinerama</strong> on. This way we can have two desktops allowing full screen modes on both of them and allowing us to drag and drop windows from one screen to the other.</p>
<h3><span style="text-decoration: underline;"><strong>Install ATI Drivers</strong></span></h3>
<p>If you don&#8217;t have ATI drivers installed already, follow this <a href="http://gofedora.com/how-to-install-ati-catalyst-fglrx-98-drivers-fedora-11/" title="How To: Install ATI Catalyst (fglrx) 9.8 Drivers on Fedora 11" >How To: Install ATI Catalyst (fglrx)  Drivers on Fedora 11</a> (works for any version of ATI Catalyst drivers).</p>
<h3><span style="text-decoration: underline;"><strong>Generate xorg.conf file</strong></span></h3>
<p>If you don&#8217;t see the xorg.conf file at <em>/etc/X11/xorg.conf</em>, then you need to generate it to proceed to next step. Use the following command as root to generate one</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ Xorg <span style="color: #660033;">-configure</span></pre></div></div>

<p>This command will generate the default <em>xorg.conf</em> file at <em>/root/xorg.conf.new</em>. Copy it to <em>/etc/X11/xorg.conf</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>xorg.conf.new <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf</pre></div></div>

<h3><span style="text-decoration: underline;"><strong>Backup xorg.conf file</strong></span></h3>
<p>Backup your original xorg.conf file so that you can restore it in case the configuration doesn&#8217;t work the way you expected.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf.backup</pre></div></div>

<h3><span style="text-decoration: underline;"><strong>Generate Configuration for Dual Display</strong></span></h3>
<p>Now we are ready to generate the configuration for dual display. Use the following command with appropriate arguments (in accordance with your hardware configuration)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># --screen-layout will place second screen on left of your first screen. Other possible values are right,above,below.</span>
<span style="color: #666666; font-style: italic;"># --xinerama=on option enables you to have two different desktops and one of them being passive.</span>
<span style="color: #666666; font-style: italic;"># You can drag and drop windows from one desktop to the other. Task bars appear only on one of the desktops.</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ aticonfig <span style="color: #660033;">--initial</span>=dual-head <span style="color: #660033;">--screen-layout</span>=left <span style="color: #660033;">--xinerama</span>=on
<span style="color: #666666; font-style: italic;"># --resolution=_screen_number_,widthxheight</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ aticonfig <span style="color: #660033;">--resolution</span>=<span style="color: #000000;">0</span>,1440x900 <span style="color: #660033;">--resolution</span>=<span style="color: #000000;">1</span>,1280x1024
<span style="color: #666666; font-style: italic;"># Set horizontal sync and vertical refresh rates for both monitors.</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ aticonfig <span style="color: #660033;">--hsync</span>=<span style="color: #000000;">0</span>,<span style="color: #000000;">30</span>-<span style="color: #000000;">60</span> <span style="color: #660033;">--hsync</span>=<span style="color: #000000;">1</span>,<span style="color: #000000;">30</span>-<span style="color: #000000;">60</span> <span style="color: #660033;">--vrefresh</span>=<span style="color: #000000;">0</span>,<span style="color: #000000;">30</span>-<span style="color: #000000;">60</span> <span style="color: #660033;">--vrefresh</span>=<span style="color: #000000;">1</span>,<span style="color: #000000;">30</span>-<span style="color: #000000;">60</span></pre></div></div>

<p>You can download my xorg.conf file via <a href="http://gofedora.com/wp-content/uploads/linux/xorg.conf_f11_dual_display_fglrx.txt" rel="nofollow" >this link</a>.</p>
<h3><span style="text-decoration: underline;"><strong>Reboot or Logout and Login Again</strong></span></h3>
<p>If you just setup your ATI drivers and configured the dual display, you need to reboot so that fglrx module can be loaded properly. If you rebooted after setting up the drivers, just logout and login again to checkout your dual display <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title=" How To: Configure Dual Display with ATI Radeon (fglrx)" />  If everything works fine, say thanks to me and if not blame ATI <img src='http://gofedora.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title=" How To: Configure Dual Display with ATI Radeon (fglrx)" /> </p>
<h3><span style="text-decoration: underline;"><strong>Adjust DPI for Normal Font Size</strong></span></h3>
<p>I faced a problem with my font sizes being too big while using <strong>xinerama</strong>. It was easy to fix by adjusting DPI. Go to <em>System -&gt; Preferences -&gt; Appearance</em>. Go to <em>Fonts</em> tab. Click <em>Details</em> located near the bottom right corner. On that window, try descreasing the &#8220;<strong>Dots Per Inch</strong>&#8221; value. Mine worked fine with 85 DPI.</p>
<p>Below is an image of my dual display setup. Click to enlarge.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/Dual-Display-Configuration-ViewSonic-Samsung-Using-ATI-Radeon-Catalyst-fglrx.jpg" ><img class="alignnone size-medium wp-image-883" title="Dual Display Configuration ViewSonic Samsung Using ATI Radeon Catalyst (fglrx)" src="http://gofedora.com/wp-content/uploads/2009/09/Dual-Display-Configuration-ViewSonic-Samsung-Using-ATI-Radeon-Catalyst-fglrx-500x281.jpg" alt="Dual Display Configuration ViewSonic Samsung Using ATI Radeon Catalyst (fglrx)" width="500" height="281" /></a><br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/news-ati-catalyst-drivers-10-2-released-no-fedora-12-support/"  title="News: ATI Catalyst Drivers 10.2 Released. No Fedora 12 Support.">News: ATI Catalyst Drivers 10.2 Released. No Fedora 12 Support.</a></li>
<li><a href="http://gofedora.com/news-ati-catalyst-drivers-101-released-test/"  title="News : ATI Catalyst Drivers 10.1 Released. Test them now!">News : ATI Catalyst Drivers 10.1 Released. Test them now!</a></li>
<li><a href="http://gofedora.com/news-will-ati-catalyst-drivers-9-12-work-with-fedora-12/"  title="News: Will ATI Catalyst Drivers 9.12 work with Fedora 12?">News: Will ATI Catalyst Drivers 9.12 work with Fedora 12?</a></li>
<li><a href="http://gofedora.com/fedora-12-ati-catalyst-drivers/"  title="Fedora 12 ATI Catalyst Drivers">Fedora 12 ATI Catalyst Drivers</a></li>
<li><a href="http://gofedora.com/news-ati-catalyst-graphics-drivers-9-11-released/"  title="News : ATI Catalyst Graphics Drivers 9.11 Released">News : ATI Catalyst Graphics Drivers 9.11 Released</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-configure-dual-display-ati-radeon-fglrx-xinerama/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How To: GNOME GMail Notifier</title>
		<link>http://gofedora.com/gnome-gmail-notifier/</link>
		<comments>http://gofedora.com/gnome-gmail-notifier/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 01:14:34 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Email Client]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Screenshot]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Gmail Notification]]></category>
		<category><![CDATA[Gmail Notifier]]></category>
		<category><![CDATA[Google Notifier]]></category>
		<category><![CDATA[Mail Notifier]]></category>
		<category><![CDATA[Notifier]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=831</guid>
		<description><![CDATA[
GNOME GMail (Google GMail) Notifier is an awesome tool for GNOME/Linux users if you are addicted to checking mails every few minutes. GMail Notifier solves a bit of your problems by notifying about multiple gmail accounts. One more plus point is that it can display GMail Notifications for new mails in accounts for which you [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/gnome-gmail-notifier/" class="post_image_link"  title="Permanent link to How To: GNOME GMail Notifier"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Google-Mail-Gmail.jpg" width="300" height="125" alt="Google Mail Gmail" title="How To: GNOME GMail Notifier" /></a>
</p><p><strong>GNOME GMail (Google GMail) Notifier</strong> is an awesome tool for GNOME/Linux users if you are addicted to checking mails every few minutes. GMail Notifier solves a bit of your problems by notifying about multiple gmail accounts. One more plus point is that it can display GMail Notifications for new mails in accounts for which you are using Google Apps. Below is a step by step howto on installing and configuring GMail Notifier in Fedora (may apply to other distros as well).</p>
<h3><span style="text-decoration: underline;"><strong>Install GNOME GMail Notifier</strong></span></h3>
<p>You can download and install it from <a rel="nofollow" href="http://gofedora.com/goto/http://code.google.com/p/gnome-gmail-notifier/"  target="_blank">GNOME GMail notifier home page</a> or just use yum</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> gnome-gmail-notifier</pre></div></div>

<h3><span style="text-decoration: underline;"><strong>Launch Gmail Notifier</strong></span></h3>
<p>If installation was successful, go to Applications -&gt; Internet -&gt; Gmail Notifier.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/01.-GNOME-Gmail-Notifier.png" ><img class="alignnone size-full wp-image-833" title="GNOME Gmail Notifier" src="http://gofedora.com/wp-content/uploads/2009/09/01.-GNOME-Gmail-Notifier.png" alt="GNOME Gmail Notifier" width="329" height="78" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Open Preferences</strong></span></h3>
<p>Right click on Email icon in taskbar and click <strong>Preferences</strong>.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/02.-GNOME-Gmail-Notifier-Select-Prefreneces.png" ><img class="alignnone size-full wp-image-834" title="GNOME Gmail Notifier Select Prefreneces" src="http://gofedora.com/wp-content/uploads/2009/09/02.-GNOME-Gmail-Notifier-Select-Prefreneces.png" alt="GNOME Gmail Notifier Select Prefreneces" width="170" height="130" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Select Preferences</strong></span></h3>
<p>Set inbox update time to 1 minute. Check display notifications for new messages and errors. Also select a sound to play for new mails.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/03.-GNOME-Gmail-Notifier-Prefreneces.png" ><img class="alignnone size-full wp-image-835" title="GNOME Gmail Notifier Prefreneces" src="http://gofedora.com/wp-content/uploads/2009/09/03.-GNOME-Gmail-Notifier-Prefreneces.png" alt="GNOME Gmail Notifier Prefreneces" width="315" height="453" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Add GMail Account</strong></span></h3>
<p>Click Add on preferences window and add your GMail account.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/04.-GNOME-Gmail-Notifier-Add-GMail-Account.png" ><img class="alignnone size-full wp-image-836" title="GNOME Gmail Notifier Add GMail Account" src="http://gofedora.com/wp-content/uploads/2009/09/04.-GNOME-Gmail-Notifier-Add-GMail-Account.png" alt="GNOME Gmail Notifier Add GMail Account" width="270" height="203" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Add Mail Account (Google Apps)</strong> (Optional)</span></h3>
<p>If you don&#8217;t know what Google Apps is, leave this step. If you do know, then add your mail account.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/05.-GNOME-Gmail-Notifier-Add-Google-Apps-Account.png" ><img class="alignnone size-full wp-image-837" title="GNOME Gmail Notifier Add Google Apps Account" src="http://gofedora.com/wp-content/uploads/2009/09/05.-GNOME-Gmail-Notifier-Add-Google-Apps-Account.png" alt="GNOME Gmail Notifier Add Google Apps Account" width="270" height="203" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Check Mail</strong></span></h3>
<p>If you can&#8217;t wait for 1 minutes to see GMail Notifier in action, just right click on email icon in taskbar and click <strong>Check Mail</strong>.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/06.-GNOME-Gmail-Notifier-Check-New-Mails.png" ><img class="alignnone size-full wp-image-838" title="GNOME Gmail Notifier Check New Mails" src="http://gofedora.com/wp-content/uploads/2009/09/06.-GNOME-Gmail-Notifier-Check-New-Mails.png" alt="GNOME Gmail Notifier Check New Mails" width="160" height="120" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Mail Notifications</strong></span></h3>
<p>Whenever you get a new mail, you&#8217;ll have bubble like the one in image below and a sound will also be played.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/07.-GNOME-Gmail-Notifier-New-Mail-Notification.png" ><img class="alignnone size-full wp-image-839" title="GNOME Gmail Notifier New Mail Notification" src="http://gofedora.com/wp-content/uploads/2009/09/07.-GNOME-Gmail-Notifier-New-Mail-Notification.png" alt="GNOME Gmail Notifier New Mail Notification" width="430" height="130" /></a></p>
<p>Enjoy the notifications <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: GNOME GMail Notifier" /><br />
<h3>Recommended Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/how-to-install-ati-catalyst-fglrx-98-drivers-fedora-11/"  title="How To: Install ATI Catalyst (fglrx) Drivers">How To: Install ATI Catalyst (fglrx) Drivers</a></li>
<li><a href="http://gofedora.com/fedora-12-ati-catalyst-drivers/"  title="Fedora 12 ATI Catalyst Drivers">Fedora 12 ATI Catalyst Drivers</a></li>
<li><a href="http://gofedora.com/how-to-configure-squid-proxy-server/"  title="How To: Configure Squid Proxy Server">How To: Configure Squid Proxy Server</a></li>
<li><a href="http://gofedora.com/news-ati-catalyst-drivers-10-2-released-no-fedora-12-support/"  title="News: ATI Catalyst Drivers 10.2 Released. No Fedora 12 Support.">News: ATI Catalyst Drivers 10.2 Released. No Fedora 12 Support.</a></li>
<li><a href="http://gofedora.com/news-will-ati-catalyst-drivers-9-12-work-with-fedora-12/"  title="News: Will ATI Catalyst Drivers 9.12 work with Fedora 12?">News: Will ATI Catalyst Drivers 9.12 work with Fedora 12?</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/gnome-gmail-notifier/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How To: Install and Use Twython (Python Wrapper for Twitter API)</title>
		<link>http://gofedora.com/how-to-install-use-twython-python-wrapper-for-twitter-api/</link>
		<comments>http://gofedora.com/how-to-install-use-twython-python-wrapper-for-twitter-api/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:49:51 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Code Demo]]></category>
		<category><![CDATA[Proxy Support]]></category>
		<category><![CDATA[Twitter API]]></category>
		<category><![CDATA[Twython]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=826</guid>
		<description><![CDATA[
As promised in my previous post, here is a brief howto on getting started with twython. The main advantage of Twython over several other python (or any other language) wrappers for Twitter API is that it works even when you are behind your organizations proxy.
Download Twython
You can download latest version of twython from twython page [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/how-to-install-use-twython-python-wrapper-for-twitter-api/" class="post_image_link"  title="Permanent link to How To: Install and Use Twython (Python Wrapper for Twitter API)"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/twython.jpg" width="320" height="220" alt="Twython (Twitter API in Python)" title="How To: Install and Use Twython (Python Wrapper for Twitter API)" /></a>
</p><p>As promised in my <a href="http://gofedora.com/love-twitter-love-python-love-twython/"  target="_blank">previous post</a>, here is a brief howto on getting started with twython. The main advantage of Twython over several other python (or any other language) wrappers for Twitter API is that it works even when you are behind your organizations proxy.</p>
<h3><span style="text-decoration: underline;"><strong>Download Twython</strong></span></h3>
<p>You can download latest version of twython from <a rel="nofollow" href="http://gofedora.com/goto/http://github.com/ryanmcgrath/twython/tree/master"  target="_blank">twython page on github</a>. You can either clone using git (if you have git installed) or can click the download button.</p>
<h3><span style="text-decoration: underline;"><strong>Install Twython</strong></span></h3>
<p>Once you are done with extracting the downloaded tar file. Change directory to twython and run these command as root.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ git clone git:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>ryanmcgrath<span style="color: #000000; font-weight: bold;">/</span>twython.git
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> twython<span style="color: #000000; font-weight: bold;">/</span>dist
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora dist<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> twython-0.8.tar.gz
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora dist<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #7a0874; font-weight: bold;">cd</span> twython-<span style="color: #000000;">0.8</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora dist<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ python setup.py build
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora dist<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div>

<h3><span style="text-decoration: underline;"><strong>Use Twython from Python Interpreter</strong></span></h3>
<p>Below is a direct copy paste lines from my interpreter. See how things are working (learning by doing).</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
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: black;">&#91;</span>saini@bordeaux ~<span style="color: black;">&#93;</span>$ python
Python <span style="color: #ff4500;">2.6</span> <span style="color: black;">&#40;</span>r26:<span style="color: #ff4500;">66714</span>, Mar <span style="color: #ff4500;">17</span> <span style="color: #ff4500;">2009</span>, <span style="color: #ff4500;">11</span>:<span style="color: #ff4500;">44</span>:<span style="color: #ff4500;">21</span><span style="color: black;">&#41;</span> 
<span style="color: black;">&#91;</span>GCC 4.4.0 <span style="color: #ff4500;">20090313</span> <span style="color: black;">&#40;</span>Red Hat 4.4.0-<span style="color: #ff4500;">0.26</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> on linux2
Type <span style="color: #483d8b;">&quot;help&quot;</span>, <span style="color: #483d8b;">&quot;copyright&quot;</span>, <span style="color: #483d8b;">&quot;credits&quot;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #483d8b;">&quot;license&quot;</span> <span style="color: #ff7700;font-weight:bold;">for</span> more information.
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #808080; font-style: italic;"># first of all, import twython module</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #ff7700;font-weight:bold;">import</span> twython
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #808080; font-style: italic;"># Authenticate your twitter account with your twitter username</span>
... <span style="color: #808080; font-style: italic;"># and password with twitter.setup method.</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> client = twython.<span style="color: black;">setup</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'Basic'</span>,<span style="color: #483d8b;">'myusername'</span>,<span style="color: #483d8b;">'mypassword'</span><span style="color: black;">&#41;</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> client.<span style="color: black;">authenticated</span>
<span style="color: #008000;">True</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #808080; font-style: italic;">#Lets update our current status on twitter with some cool message.</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> client.<span style="color: black;">updateStatus</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'Testing #twython. The coolest #TwitterAPI :)'</span><span style="color: black;">&#41;</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #808080; font-style: italic;"># Now go and check your current status on twitter. Surprised!!!</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #808080; font-style: italic;"># Get your or anyone's followers</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> client.<span style="color: black;">getFollowersIDs</span><span style="color: black;">&#40;</span>screen_name=<span style="color: #483d8b;">'gofedora'</span><span style="color: black;">&#41;</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #808080; font-style: italic;"># Output truncated.</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #808080; font-style: italic;"># Get help for any function.</span>
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #ff7700;font-weight:bold;">print</span> client.<span style="color: black;">createFriendship</span>.__doc__
createFriendship<span style="color: black;">&#40;</span><span style="color: #008000;">id</span> = <span style="color: #008000;">None</span>, user_id = <span style="color: #008000;">None</span>, screen_name = <span style="color: #008000;">None</span>, follow = <span style="color: #483d8b;">&quot;false&quot;</span><span style="color: black;">&#41;</span>
&nbsp;
	Allows the authenticating users to follow the <span style="color: #dc143c;">user</span> specified <span style="color: #ff7700;font-weight:bold;">in</span> the ID parameter.
	<span style="color: black;">Returns</span> the befriended <span style="color: #dc143c;">user</span> <span style="color: #ff7700;font-weight:bold;">in</span> the requested format when successful. <span style="color: black;">Returns</span> a
	<span style="color: #dc143c;">string</span> describing the failure condition when unsuccessful. <span style="color: black;">If</span> you are already
	friends <span style="color: #ff7700;font-weight:bold;">with</span> the <span style="color: #dc143c;">user</span> an HTTP <span style="color: #ff4500;">403</span> will be returned.
&nbsp;
	<span style="color: black;">Parameters</span>:
		<span style="color: #66cc66;">**</span> Note: One of the following <span style="color: #ff7700;font-weight:bold;">is</span> required. <span style="color: black;">&#40;</span><span style="color: #008000;">id</span>, user_id, screen_name<span style="color: black;">&#41;</span>
		<span style="color: #008000;">id</span> - Required. <span style="color: black;">The</span> ID <span style="color: #ff7700;font-weight:bold;">or</span> screen name of the <span style="color: #dc143c;">user</span> to befriend.
		<span style="color: black;">user_id</span> - Required. <span style="color: black;">Specfies</span> the ID of the <span style="color: #dc143c;">user</span> to befriend. <span style="color: black;">Helpful</span> <span style="color: #ff7700;font-weight:bold;">for</span> disambiguating when a valid <span style="color: #dc143c;">user</span> ID <span style="color: #ff7700;font-weight:bold;">is</span> also a valid screen name. 
		<span style="color: black;">screen_name</span> - Required. <span style="color: black;">Specfies</span> the screen name of the <span style="color: #dc143c;">user</span> to befriend. <span style="color: black;">Helpful</span> <span style="color: #ff7700;font-weight:bold;">for</span> disambiguating when a valid screen name <span style="color: #ff7700;font-weight:bold;">is</span> also a <span style="color: #dc143c;">user</span> ID. 
		<span style="color: black;">follow</span> - Optional. <span style="color: black;">Enable</span> notifications <span style="color: #ff7700;font-weight:bold;">for</span> the target <span style="color: #dc143c;">user</span> <span style="color: #ff7700;font-weight:bold;">in</span> addition to becoming friends. 
<span style="color: #66cc66;">&gt;&gt;&gt;</span></pre></td></tr></table></div>

<p>So now you are ready to do wonders with twython. Write your own code and blog/brag about it <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: Install and Use Twython (Python Wrapper for Twitter API)" /><br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/love-twitter-love-python-love-twython/"  title="I Love Twitter, I Love Python = I Love Twython">I Love Twitter, I Love Python = I Love Twython</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-install-use-twython-python-wrapper-for-twitter-api/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To: Recover Deleted Files in Linux Using Photorec</title>
		<link>http://gofedora.com/how-to-recover-deleted-files-linux-using-photorec/</link>
		<comments>http://gofedora.com/how-to-recover-deleted-files-linux-using-photorec/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 21:04:08 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Hard Disk]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Screenshot]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Photorec]]></category>
		<category><![CDATA[Recover Deleted Files]]></category>
		<category><![CDATA[Recover Files]]></category>
		<category><![CDATA[Screenshots]]></category>
		<category><![CDATA[Testdisk]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=739</guid>
		<description><![CDATA[
Frequently I get messages like &#8220;I have accidentally deleted my project. Is there any way to recover it in Linux?&#8221; or &#8220;I worked really hard on that program and managed to deleted it right before submission   How do I recover?&#8221;. Well I didn&#8217;t really have any idea on &#8220;How to actually recover deleted [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/how-to-recover-deleted-files-linux-using-photorec/" class="post_image_link"  title="Permanent link to How To: Recover Deleted Files in Linux Using Photorec"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/08/photorec.jpg" width="256" height="161" alt="Photorec - Recover Deleted Files in Linux" title="How To: Recover Deleted Files in Linux Using Photorec" /></a>
</p><p>Frequently I get messages like &#8220;I have accidentally deleted my project. Is there any way to recover it in Linux?&#8221; or &#8220;I worked really hard on that program and managed to deleted it right before submission <img src='http://gofedora.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' title="How To: Recover Deleted Files in Linux Using Photorec" />  How do I recover?&#8221;. Well I didn&#8217;t really have any idea on &#8220;How to actually recover deleted files in Linux&#8221;.</p>
<p>A few days back I was designing the new logo for <a href="http://cachevideos.com"  target="_blank">Videocache</a> in Inkscape. After finishing the design, I saved the svg file carefully. And deleted other images which I embedded in the logo. A few moments later I realized that I just screwed up myself by deleting all those files as the svg file is now good for nothing.</p>
<p>I searched a lot on recovering files in Linux but in vain. Then a friend (<a rel="nofollow" href="http://gofedora.com/goto/http://gaganpreet.wordpress.com/"  target="_blank">bitgeek</a>) told me about Photorec. I managed to recover all the files using photorec. I thought it would be a good idea to let others know and spread a good word about Photorec. Below is a step by step howto on using Photorec to recover your files.</p>
<h3><span style="text-decoration: underline;"><strong>What is Photorec?</strong></span></h3>
<p>From Photorec website,</p>
<blockquote><p><a rel="nofollow" href="http://gofedora.com/goto/http://www.cgsecurity.org/wiki/PhotoRec"  target="_blank">PhotoRec</a> is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (thus, its &#8216;Photo Recovery&#8217; name) from digital camera memory. PhotoRec ignores the filesystem and goes after the underlying data, so it will still work even if your media&#8217;s filesystem has been severely damaged or re-formatted.</p></blockquote>
<h3><span style="text-decoration: underline;"><strong>For This HowTo</strong></span></h3>
<p>Lets say I had a file download_arrow.png in /home/saini/Desktop which I have removed accidentally. Login as root and create a directory recover which will be used to store all the recovered files.</p>
<h3><span style="text-decoration: underline;"><strong>Install testdisk/PhotoRec</strong></span></h3>
<p>Photorec comes as a part of testdisk package in Fedora (I hope its same for other distributions as well). Use yum to install testdisk.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora-tips ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ yum <span style="color: #c20cb9; font-weight: bold;">install</span> testdisk</pre></div></div>

<h3><span style="text-decoration: underline;"><strong>Launch Photorec</strong></span></h3>
<p>Once you are done with installation. Open a terminal and launch photorec (as root).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fedora-tips recover<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ photorec</pre></div></div>

<h3><span style="text-decoration: underline;"><strong>Select Hard Disk</strong></span></h3>
<p>If you have more than one hard disk in your system, select the one from which you have deleted the file(s).</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/1.-PhotoRec-Hard-Disk-Selection.jpeg" ><img class="alignnone size-medium wp-image-793" title="PhotoRec Hard Disk Selection" src="http://gofedora.com/wp-content/uploads/2009/09/1.-PhotoRec-Hard-Disk-Selection-500x283.jpg" alt="PhotoRec Hard Disk Selection" width="500" height="283" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Select Partition Type</strong></span></h3>
<p>If your hard disk has Linux partitions, then select <strong>[Intel]</strong>.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/2.-PhotoRec-Partition-Selection.jpeg" ><img class="alignnone size-medium wp-image-794" title="PhotoRec Partition Selection" src="http://gofedora.com/wp-content/uploads/2009/09/2.-PhotoRec-Partition-Selection-500x345.jpg" alt="PhotoRec Partition Selection" width="500" height="345" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Select Filetype Option</strong></span></h3>
<p>Move to [File Opt] and press enter. Here you can disable all file types by pressing &#8217;s&#8217; . Use space to toggle the check button. Now since we removed a png file, we are going to check only png file type.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/3.-PhotoRec-Filetype-Selection.jpeg" ><img class="alignnone size-medium wp-image-795" title="PhotoRec Filetype Selection" src="http://gofedora.com/wp-content/uploads/2009/09/3.-PhotoRec-Filetype-Selection-500x350.jpg" alt="PhotoRec Filetype Selection" width="500" height="350" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Select Options</strong></span></h3>
<p>Photorec also has a list of different options. Under normal circumstances you don&#8217;t need to modify them</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/4.-PhotoRec-Option-Selection.jpeg" ><img class="alignnone size-medium wp-image-796" title="PhotoRec Option Selection" src="http://gofedora.com/wp-content/uploads/2009/09/4.-PhotoRec-Option-Selection-471x375.jpg" alt="PhotoRec Option Selection" width="471" height="375" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Select Partition</strong></span></h3>
<p>Move the selector to the partition from which you have removed the file. Then press enter on search.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/9.-PhotoRec-Partition-Selection.jpeg" ><img class="alignnone size-medium wp-image-799" title="PhotoRec Partition Selection" src="http://gofedora.com/wp-content/uploads/2009/09/9.-PhotoRec-Partition-Selection-500x347.jpg" alt="PhotoRec Partition Selection" width="500" height="347" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Select Filesystem Type</strong></span></h3>
<p>If you are using Linux, its going to be ext2/ext3/ext4. So the default selection is file.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/5.-PhotoRec-Partition-Selection1.jpeg" ><img class="alignnone size-medium wp-image-798" title="PhotoRec Partition Selection" src="http://gofedora.com/wp-content/uploads/2009/09/5.-PhotoRec-Partition-Selection1-500x347.jpg" alt="PhotoRec Partition Selection" width="500" height="347" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Select Space for Analysis</strong></span></h3>
<p>Select <strong>free</strong> if you didn&#8217;t write to that partition after removing the particular file otherwise select <strong>whole</strong>.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/6.-PhotoRec-Space-Selection.jpeg" ><img class="alignnone size-medium wp-image-800" title="PhotoRec Space Selection" src="http://gofedora.com/wp-content/uploads/2009/09/6.-PhotoRec-Space-Selection-500x271.jpg" alt="PhotoRec Space Selection" width="500" height="271" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Select a Directory to Recover Files</strong></span></h3>
<p>Now select the path where the recovered files will be stored. Then press &#8216;Y&#8217;.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/7.-PhotoRec-Recovery-Directory-Selection.jpeg" ><img class="alignnone size-medium wp-image-801" title="PhotoRec Recovery Directory Selection" src="http://gofedora.com/wp-content/uploads/2009/09/7.-PhotoRec-Recovery-Directory-Selection-499x243.jpg" alt="PhotoRec Recovery Directory Selection" width="499" height="243" /></a></p>
<h3><span style="text-decoration: underline;"><strong>Recovery Progress</strong></span></h3>
<p>Photorec will show how many files it has recovered.</p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/09/8.-PhotoRec-Recovery-Progress.jpeg" ><img class="alignnone size-medium wp-image-802" title="PhotoRec Recovery Progress" src="http://gofedora.com/wp-content/uploads/2009/09/8.-PhotoRec-Recovery-Progress-499x248.jpg" alt="PhotoRec Recovery Progress" width="499" height="248" /></a></p>
<p>All recovered file will be stored in the directory selected above. Open them in a file browser and you&#8217;ll get the removed file there. I hope this howto will help you recovering files you accidentally delete <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To: Recover Deleted Files in Linux Using Photorec" /><br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/how-to-configure-vnc-server/"  title="How To: Configure VNC Server">How To: Configure VNC Server</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/how-to-recover-deleted-files-linux-using-photorec/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>TIP: Simple Regular Expression for Email Validation</title>
		<link>http://gofedora.com/tip-simple-regular-expressi-email-validation/</link>
		<comments>http://gofedora.com/tip-simple-regular-expressi-email-validation/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 20:09:57 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Email Validation]]></category>
		<category><![CDATA[Regex]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=667</guid>
		<description><![CDATA[
I was playing around with Ruby on Rails and needed an email field for some application. I thought of validating the email address before actually saving it. Googled for same and got tons of results, but none of them was perfect. Few were somewhat exhaustive but horribly difficult to understand and those which were simple [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> and <a href="http://cachevideos.com/">Videocache</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gofedora.com/tip-simple-regular-expressi-email-validation/" class="post_image_link"  title="Permanent link to TIP: Simple Regular Expression for Email Validation"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/08/Email-Validation-Regular-Expression.jpg" width="384" height="271" alt="Email Validation (Regular Expression)" title="TIP: Simple Regular Expression for Email Validation" /></a>
</p><p>I was playing around with Ruby on Rails and needed an email field for some application. I thought of validating the email address before actually saving it. Googled for same and got tons of results, but none of them was perfect. Few were somewhat exhaustive but horribly difficult to understand and those which were simple were  not exhaustive enough for practical use. I thought I&#8217;ll just write the regex myself and came up with the following. I have tested it for few weird cases like an email hosted on a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.exmaple.com (a subdomain deep down the hierarchy) etc.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">^<span style="color: #7a0874; font-weight: bold;">&#91;</span>A-Za-z0-9._<span style="color: #000000; font-weight: bold;">%</span>+-<span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>A-Za-z0-<span style="color: #000000;">9</span>-<span style="color: #7a0874; font-weight: bold;">&#93;</span>+\.<span style="color: #7a0874; font-weight: bold;">&#41;</span>+<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>A-Za-z0-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">|</span>museum<span style="color: #7a0874; font-weight: bold;">&#41;</span>$</pre></div></div>

<p>I hope it&#8217;ll be of help. And don&#8217;t forget to pen down your suggestions via comments.<br />
<h3>Recommended Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/how-to-install-ati-catalyst-fglrx-98-drivers-fedora-11/"  title="How To: Install ATI Catalyst (fglrx) Drivers">How To: Install ATI Catalyst (fglrx) Drivers</a></li>
<li><a href="http://gofedora.com/fedora-12-ati-catalyst-drivers/"  title="Fedora 12 ATI Catalyst Drivers">Fedora 12 ATI Catalyst Drivers</a></li>
<li><a href="http://gofedora.com/how-to-configure-squid-proxy-server/"  title="How To: Configure Squid Proxy Server">How To: Configure Squid Proxy Server</a></li>
<li><a href="http://gofedora.com/news-ati-catalyst-drivers-10-2-released-no-fedora-12-support/"  title="News: ATI Catalyst Drivers 10.2 Released. No Fedora 12 Support.">News: ATI Catalyst Drivers 10.2 Released. No Fedora 12 Support.</a></li>
<li><a href="http://gofedora.com/news-will-ati-catalyst-drivers-9-12-work-with-fedora-12/"  title="News: Will ATI Catalyst Drivers 9.12 work with Fedora 12?">News: Will ATI Catalyst Drivers 9.12 work with Fedora 12?</a></li>
</ul>
<p><a href="http://gofedora.com/" >Fedora Tutorials</a> and <a href="http://cachevideos.com/" >Videocache</a> by <a href="http://saini.co.in/" >Kulbir Saini</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/tip-simple-regular-expressi-email-validation/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
