<?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; Hacks</title>
	<atom:link href="http://gofedora.com/archives/category/hacks/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>News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available</title>
		<link>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/</link>
		<comments>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 17:30:45 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Memepress]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Meme]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[Yahoo Meme]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=971</guid>
		<description><![CDATA[
Memepress is a wordpress plugin which provides wordpress widgets for displaying public posts from Yahoo! Meme. Memepress is SEO ready and provides options to noindex/nofollow your Meme posts. New version fixes a few bugs and provides enhanced style control for the widget.
You can download memepress version 0.3 from wordpress plugin page.
For details on usage/installation instructions, [...]<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/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/" class="post_image_link"  title="Permanent link to News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Yahoo-Meme-Memepress-Wordpress-Plugin1.png" width="488" height="216" alt="Memepress (Yahoo! Meme) Wordpress Plugin" title="News : Memepress (Yahoo! Meme) Wordpress Plugin Version 0.3 is available" /></a>
</p><p><a href="http://gofedora.com/memepress" >Memepress</a> is a wordpress plugin which provides wordpress widgets for displaying public posts from <a rel="nofollow" href="http://gofedora.com/goto/http://meme.yahoo.com/" >Yahoo! Meme</a>. Memepress is SEO ready and provides options to noindex/nofollow your Meme posts. New version fixes a few bugs and provides enhanced style control for the widget.</p>
<p>You can download memepress version 0.3 from <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/extend/plugins/memepress-yahoo-meme/" >wordpress plugin page</a>.</p>
<p>For details on usage/installation instructions, please check <a href="http://gofedora.com/memepress" >plugin homepage</a>.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<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/how-to-save-stupid-tech-support-questions/"  title="How To: Save yourself from stupid Tech Support Questions">How To: Save yourself from stupid Tech Support Questions</a></li>
<li><a href="http://gofedora.com/how-to-new-email-notification/"  title="How To: New Mail Notification">How To: New Mail Notification</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>
</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/news-memepress-yahoo-meme-wordpress-plugin-version-0-3/feed/</wfw:commentRss>
		<slash:comments>2</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>Memepress Ready to be Translated (Supports Turkish now)</title>
		<link>http://gofedora.com/memepress-ready-translated-supports-turkish/</link>
		<comments>http://gofedora.com/memepress-ready-translated-supports-turkish/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 20:34:36 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Memepress]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[Internationalization]]></category>
		<category><![CDATA[Meme]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Translation]]></category>
		<category><![CDATA[Turkish]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[Yahoo Meme]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=909</guid>
		<description><![CDATA[
Thanks for an awesome response to the Memepress (Yahoo! Meme) Wordpress plugin. A lot of people have blogged about it and contacted me via email for enhancements. New version also fixes the bug regarding image size in posts. I have also updated the plugin to support internationalization(i18n). Now you can translate about 20 strings in [...]<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/memepress-ready-translated-supports-turkish/" class="post_image_link"  title="Permanent link to Memepress Ready to be Translated (Supports Turkish now)"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Yahoo-Meme-Memepress-Wordpress-Plugin2.png" width="488" height="216" alt="Yahoo Meme Memepress Wordpress Plugin" title="Memepress Ready to be Translated (Supports Turkish now)" /></a>
</p><p>Thanks for an awesome response to the <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/extend/plugins/memepress-yahoo-meme"  target="_blank">Memepress (Yahoo! Meme) Wordpress plugin</a>. A lot of people have blogged about it and contacted me via email for enhancements. New version also fixes the bug regarding image size in posts. I have also updated the plugin to support internationalization(i18n). Now you can translate about 20 strings in your local language and you&#8217;ll have Memepress in your own language.</p>
<h3><span style="text-decoration: underline;"><strong>Turkish Translation</strong></span></h3>
<p>Huge thanks to <span><a rel="nofollow" href="http://gofedora.com/goto/http://y4lcin.com/"  target="_blank">Yalçın Erdemir</a> for translating the plugin to Turkish <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Memepress Ready to be Translated (Supports Turkish now)" /><br />
</span></p>
<h3><span style="text-decoration: underline;"><strong>How To Translate</strong></span></h3>
<p>If you are interested in translating Memepress plugin in your language, then download the <a rel="nofollow" href="http://gofedora.com/goto/http://plugins.svn.wordpress.org/memepress-yahoo-meme/trunk/i18n/memepress.pot"  target="_blank">memepress.pot (POT file)</a> and open it in your favourite text editor. Now for every string against msgid should be translated to your language and populated in quotes against msgstr. See the example below.</p>
<p><span style="text-decoration: underline;"><strong>Before translation</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#: memepress.php:37
</span>msgid <span style="color: #0000ff;">&quot;Title&quot;</span>
msgstr <span style="color: #0000ff;">&quot;&quot;</span></pre></div></div>

<p><span style="text-decoration: underline;"><strong>After translation</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#: memepress.php:37
</span>msgid <span style="color: #0000ff;">&quot;Title&quot;</span>
msgstr <span style="color: #0000ff;">&quot;_WHATEVER_TITLE_IS_WRITTEN_AS_IN_YOUR_LANGUAGE_&quot;</span></pre></div></div>

<p>Once you are done with translating all the strings, save the file and mail me at kulbirsaini25 [AT] gmail.com .<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/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/how-to-save-stupid-tech-support-questions/"  title="How To: Save yourself from stupid Tech Support Questions">How To: Save yourself from stupid Tech Support Questions</a></li>
<li><a href="http://gofedora.com/how-to-new-email-notification/"  title="How To: New Mail Notification">How To: New Mail Notification</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>
</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/memepress-ready-translated-supports-turkish/feed/</wfw:commentRss>
		<slash:comments>0</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>News: Memepress (Yahoo! Meme) Wordpress Plugin is out!</title>
		<link>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/</link>
		<comments>http://gofedora.com/news-memepress-yahoo-meme-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 04:03:10 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Memepress]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[Yahoo]]></category>
		<category><![CDATA[Yahoo Meme]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=869</guid>
		<description><![CDATA[
Yahoo! Meme is a new Twitter like service in testing by Yahoo!. But its much better than Twitter. It has got facility to post text, photos, video and music. The best thing about Meme is the user interface. I am just loving it. Such a clean interface   I liked twitter&#8217;s web interface very [...]<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/news-memepress-yahoo-meme-wordpress-plugin/" class="post_image_link"  title="Permanent link to News: Memepress (Yahoo! Meme) Wordpress Plugin is out!"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/Yahoo-Meme-Memepress-Wordpress-Plugin.png" width="488" height="216" alt="Yahoo Meme (Memepress Wordpress Plugin)" title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!" /></a>
</p><p><a rel="nofollow" href="http://gofedora.com/goto/http://meme.yahoo.com/"  target="_blank">Yahoo! Meme</a> is a new Twitter like service in testing by Yahoo!. But its much better than Twitter. It has got facility to post text, photos, video and music. The best thing about Meme is the user interface. I am just loving it. Such a clean interface <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!" />  I liked twitter&#8217;s web interface very much because it was not cluttered like facebook and others. But meme&#8217;s interface is much better than twitter&#8217;s interface.</p>
<p>As I felt hooked to it, I thought it&#8217;ll be a good idea to have wordpress widget to display latest posts from Yahoo! Meme. I took <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/extend/plugins/twitter-for-wordpress"  target="_blank">Twitter for Wordpress</a> plugin&#8217;s source code and started modifying it to work for Yahoo! Meme and in a few hours, I managed to get a full fledged plugin for Yahoo! Meme and a few extra features and minor bug fixes as well <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="News: Memepress (Yahoo! Meme) Wordpress Plugin is out!" /> </p>
<p>I have named it Memepress. For more details and latest updates about the plugin, please visit <a rel="nofollow" href="http://gofedora.com/goto/http://wordpress.org/extend/plugins/memepress-yahoo-meme/"  target="_blank">plugin homepage on wordpress</a>. The plugin is really easy to setup and doesn&#8217;t have any dependencies and doesn&#8217;t even need to authenticate with Yahoo! Meme.</p>
<p>Comments/Suggestions?</p>
<p><span style="text-decoration: underline;"><strong>Note:</strong></span> Yahoo! Meme is still invite only. If you need an account, send me an email using <a href="../contact">this contact form</a>.<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/how-to-save-stupid-tech-support-questions/"  title="How To: Save yourself from stupid Tech Support Questions">How To: Save yourself from stupid Tech Support Questions</a></li>
<li><a href="http://gofedora.com/how-to-new-email-notification/"  title="How To: New Mail Notification">How To: New Mail Notification</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>
</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/news-memepress-yahoo-meme-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>21</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>I Love Twitter, I Love Python = I Love Twython</title>
		<link>http://gofedora.com/love-twitter-love-python-love-twython/</link>
		<comments>http://gofedora.com/love-twitter-love-python-love-twython/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 01:44:16 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Python-Twitter]]></category>
		<category><![CDATA[Tweepy]]></category>
		<category><![CDATA[Twitter API]]></category>
		<category><![CDATA[Twython]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=817</guid>
		<description><![CDATA[
I was really late to join Twitter. As soon as I joined Twitter, I started exploring various aspects of Twitter and hence the Twitter API. While searching for a wrapper for Twitter API in python, I came across python-twitter which was good and tweepy which was ok and I finally found twython. Twython is awesome [...]<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/love-twitter-love-python-love-twython/" class="post_image_link"  title="Permanent link to I Love Twitter, I Love Python = I Love Twython"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/09/twython.jpg" width="320" height="220" alt="Twython (Twitter Python)" title="I Love Twitter, I Love Python = I Love Twython" /></a>
</p><p>I was really late to join Twitter. As soon as I joined Twitter, I started exploring various aspects of Twitter and hence the Twitter API. While searching for a wrapper for Twitter API in python, I came across <a rel="nofollow" href="http://gofedora.com/goto/http://code.google.com/p/python-twitter/"  target="_blank">python-twitter</a> which was good and <a rel="nofollow" href="http://gofedora.com/goto/http://gitorious.org/tweepy"  target="_blank">tweepy</a> which was ok and I finally found twython. <a rel="nofollow" href="http://gofedora.com/goto/http://github.com/ryanmcgrath/twython/tree"  target="_blank">Twython</a> is awesome and more importantly upto date with Twitter API.</p>
<p>While I was using twython, I found one fact very irritating. It didn&#8217;t have docstrings. And I had to go to Twitter API Wiki for description of every single function <img src='http://gofedora.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' title="I Love Twitter, I Love Python = I Love Twython" />  I talked to <a rel="nofollow" href="http://gofedora.com/goto/http://ryanmcgrath.org/"  target="_blank">Ryan</a> (Twython developer, who works all day long at his day job with <a rel="nofollow" href="http://gofedora.com/goto/http://webs.com"  target="_blank">webs.com</a> and develops twython when everybody sleeps <img src='http://gofedora.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="I Love Twitter, I Love Python = I Love Twython" />  ) about the same and offered to write docstrings for twython.</p>
<p>I spent a few hours and <a rel="nofollow" href="http://gofedora.com/goto/http://github.com/ryanmcgrath/twython/commit/88d89f56520a353edd07542b073c5521bd4fd810"  target="_blank">sent a patch with docstrings</a> for all the functions. Now twython has complete documentation. Also Ryan is trying his best to implement wrappers for the newly introduced functions in Twitter API. So, currently Twython is THE best wrapper available in python for Twitter API.</p>
<p>PS : Next post will be &#8220;How to use twython&#8221;.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/how-to-install-use-twython-python-wrapper-for-twitter-api/"  title="How To: Install and Use Twython (Python Wrapper for Twitter API)">How To: Install and Use Twython (Python Wrapper for Twitter API)</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/love-twitter-love-python-love-twython/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>MSN Crawlers Pawned</title>
		<link>http://gofedora.com/msn-crawlers-pawned/</link>
		<comments>http://gofedora.com/msn-crawlers-pawned/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 12:15:17 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Bug]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Screenshot]]></category>
		<category><![CDATA[Crawler]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Humour]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSN]]></category>
		<category><![CDATA[Pawned]]></category>
		<category><![CDATA[Search Engine]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=658</guid>
		<description><![CDATA[
After seeing the way MSN crawled my last post, I just realized why Microsoft could never do good in Search Engine Market  
I wonder why MSN would crawler same page from two different machines. I wonder if a single page can be divided further for crawling. Checkout the screenshots below  

A few minutes [...]<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/msn-crawlers-pawned/" class="post_image_link"  title="Permanent link to MSN Crawlers Pawned"><img class="post_image alignnone" src="http://gofedora.com/wp-content/uploads/2009/07/MSN-Crawler-MSN-Search.jpg" width="384" height="337" alt="MSN Crawler (MSN Search)" title="MSN Crawlers Pawned" /></a>
</p><p>After seeing the way MSN crawled <a href="http://gofedora.com/archives/2009/07/29/google-translator-pawned/" >my last post</a>, I just realized why Microsoft could never do good in Search Engine Market <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="MSN Crawlers Pawned" /> </p>
<p>I wonder why MSN would crawler same page from two different machines. I wonder if a single page can be divided further for crawling. Checkout the screenshots below <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="MSN Crawlers Pawned" /> </p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/07/Why-Google-Wins.jpg" ><img class="alignnone size-full wp-image-659" title="Why Google Wins" src="http://gofedora.com/wp-content/uploads/2009/07/Why-Google-Wins.jpg" alt="Why Google Wins" width="400" height="320" /></a></p>
<p>A few minutes later. Three Microsoft machines were crawling the same page <img src='http://gofedora.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' title="MSN Crawlers Pawned" /> </p>
<p><a href="http://gofedora.com/wp-content/uploads/2009/07/Why-Google-Wins-2.jpg" ><img class="alignnone size-full wp-image-660" title="MSN Crawler Pawned" src="http://gofedora.com/wp-content/uploads/2009/07/Why-Google-Wins-2.jpg" alt="MSN Crawler Pawned" width="490" height="450" /></a></p>
<p>I have conformed using <a rel="nofollow" href="http://gofedora.com/goto/http://ws.arin.net/whois/?queryinput"  target="_blank">ARIN</a> that all these IPs belong to Microsoft <img src='http://gofedora.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' title="MSN Crawlers Pawned" /><br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://gofedora.com/google-translator-pawned/"  title="Google Translator Pawned">Google Translator Pawned</a></li>
<li><a href="http://gofedora.com/humour-funny-apache-logs/"  title="Humour: Funny Apache Logs">Humour: Funny Apache Logs</a></li>
<li><a href="http://gofedora.com/google-fastest/"  title="Google is Fastest">Google is Fastest</a></li>
<li><a href="http://gofedora.com/humour-ubuntu-costlier-microsoft-windows-xp/"  title="Humour: Ubuntu is Costlier than Microsoft Windows XP">Humour: Ubuntu is Costlier than Microsoft Windows XP</a></li>
<li><a href="http://gofedora.com/bye-bye-windows/"  title="Bye Bye Windows">Bye Bye Windows</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/msn-crawlers-pawned/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
