<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Food for Thought</title>
	<atom:link href="https://adhirajrankhambe.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://adhirajrankhambe.wordpress.com</link>
	<description>This is my personal blog where I share my experiences with life, personal and professional</description>
	<lastBuildDate>Wed, 08 Jun 2011 10:02:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='adhirajrankhambe.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s0.wp.com/i/buttonw-com.png</url>
		<title>Food for Thought</title>
		<link>https://adhirajrankhambe.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://adhirajrankhambe.wordpress.com/osd.xml" title="Food for Thought" />
	<atom:link rel='hub' href='https://adhirajrankhambe.wordpress.com/?pushpress=hub'/>
	<item>
		<title>Installing rmagick on Windows</title>
		<link>https://adhirajrankhambe.wordpress.com/2011/06/05/installing-rmagick-on-windows/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2011/06/05/installing-rmagick-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 05 Jun 2011 08:00:46 +0000</pubDate>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=352</guid>

					<description><![CDATA[Prerequisites: Ruby &#62; 1.8.6 DevKit (any version) No other ImageMagick installation or PATH entry Step 1: Installing ImageMagick: Download ImageMagick: http://www.imagemagick.org/download/binaries/ImageMagick-6.7.0-5-Q16-windows-dll.exe Install ImageMagick: *Important: The installation path should NOT contain any spaces. Ideally select &#8220;C:\ImageMagick-6.7.0-Q16&#8221; Please make sure to select &#8230; <a href="https://adhirajrankhambe.wordpress.com/2011/06/05/installing-rmagick-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><strong>Prerequisites:</strong><br />
Ruby &gt; 1.8.6<br />
DevKit (any version)<br />
No other ImageMagick installation or PATH entry</p>
<p>Step 1:<br />
<strong>Installing ImageMagick:</strong></p>
<p>Download ImageMagick:<br />
<a href="http://www.imagemagick.org/download/binaries/ImageMagick-6.7.0-5-Q16-windows-dll.exe" rel="nofollow">http://www.imagemagick.org/download/binaries/ImageMagick-6.7.0-5-Q16-windows-dll.exe</a></p>
<p>Install ImageMagick:<br />
*Important: The installation path should NOT contain any spaces. Ideally select &#8220;C:\ImageMagick-6.7.0-Q16&#8221;<br />
<a href="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png"><img data-attachment-id="355" data-permalink="https://adhirajrankhambe.wordpress.com/2011/06/05/installing-rmagick-on-windows/1-2/" data-orig-file="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png" data-orig-size="506,392" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="1" data-image-description="" data-image-caption="" data-medium-file="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png?w=300" data-large-file="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png?w=500" src="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png?w=300&#038;h=232" alt="" title="1" width="300" height="232" class="alignnone size-medium wp-image-355" srcset="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png?w=300 300w, https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png?w=150 150w, https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png 506w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Please make sure to select the below options:<br />
<a href="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png"><img data-attachment-id="358" data-permalink="https://adhirajrankhambe.wordpress.com/2011/06/05/installing-rmagick-on-windows/2-3/" data-orig-file="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png" data-orig-size="506,393" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="2" data-image-description="" data-image-caption="" data-medium-file="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png?w=300" data-large-file="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png?w=500" src="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png?w=300&#038;h=233" alt="" title="2" width="300" height="233" class="alignnone size-medium wp-image-358" srcset="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png?w=300 300w, https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png?w=150 150w, https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png 506w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Step 2:<br />
<strong>Installing rmagick:</strong></p>
<p>Use the following command to install rmagick gem:</p>
<p>gem install rmagick &#045;&#045;version=2.12.2 &#045;&#045;platform=ruby &#045;&#045; &#045;&#045;with-opt-lib=c:/ImageMagick-6.7.0-Q16/lib &#045;&#045;with-opt-include=c:/ImageMagick-6.7.0-Q16/include</p>
<p>Most of the rmagick components have no documentation. So don&#8217;t worry about the &#8220;no rdoc&#8221;/&#8221;no ri&#8221; warnings.</p>
<p>Happy coding !!!</p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2011/06/05/installing-rmagick-on-windows/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3016.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2011%2F06%2F05%2Finstalling-rmagick-on-windows%2F&amp;title=Installing%20rmagick%20on%20Windows" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3026.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2011%2F06%2F05%2Finstalling-rmagick-on-windows%2F&amp;title=Installing%20rmagick%20on%20Windows" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3036.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2011%2F06%2F05%2Finstalling-rmagick-on-windows%2F&amp;title=Installing%20rmagick%20on%20Windows" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3046.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2011%2F06%2F05%2Finstalling-rmagick-on-windows%2F&amp;title=Installing%20rmagick%20on%20Windows" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3056.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2011%2F06%2F05%2Finstalling-rmagick-on-windows%2F&amp;Title=Installing%20rmagick%20on%20Windows" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3066.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Installing%20rmagick%20on%20Windows+%40+http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2011%2F06%2F05%2Finstalling-rmagick-on-windows%2F" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3076.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2011/06/05/installing-rmagick-on-windows/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3086.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2011%2F06%2F05%2Finstalling-rmagick-on-windows%2F&amp;headline=Installing%20rmagick%20on%20Windows" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3096.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2011%2F06%2F05%2Finstalling-rmagick-on-windows%2F&amp;h=Installing%20rmagick%20on%20Windows" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3106.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2011/06/05/installing-rmagick-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/11.png?w=300" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="https://adhirajrankhambe.wordpress.com/wp-content/uploads/2011/06/22.png?w=300" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3016.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3026.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3036.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3046.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3056.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3066.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3076.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3086.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3096.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3106.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Class Instance Variables</title>
		<link>https://adhirajrankhambe.wordpress.com/2010/05/16/class-instance-variables/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2010/05/16/class-instance-variables/#respond</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 16 May 2010 08:00:29 +0000</pubDate>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[class instance variables]]></category>
		<category><![CDATA[rails]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=323</guid>

					<description><![CDATA[Ruby has a unique concept, namely Class Instance Variables that is not common in other programming languages. Ruby has instance variables, class variables and class instance variables. Lets take a quick look at what I am talking about. Example 1 &#8230; <a href="https://adhirajrankhambe.wordpress.com/2010/05/16/class-instance-variables/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Ruby has a unique concept, namely <strong>Class Instance Variables</strong> that is not common in other programming languages. Ruby has instance variables, class variables and class instance variables. Lets take a quick look at what I am talking about.</p>
<p><strong>Example 1</strong><br />
<code><br />
class Resource<br />
&nbsp;&nbsp;@@developers = []</code><br />
<code><br />
&nbsp;&nbsp;def self.developers<br />
&nbsp;&nbsp;&nbsp;&nbsp;return @@developers<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def add_to_pool<br />
&nbsp;&nbsp;&nbsp;&nbsp;@@developers &lt;&lt; self<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def initialize(resource_name)<br />
&nbsp;&nbsp;&nbsp;&nbsp;@resource_name =  resource_name<br />
&nbsp;&nbsp;end<br />
end</code><br />
<code><br />
Resource.new(‘Matz’).add_to_pool<br />
Resource.new(‘David’).add_to_pool<br />
Resource.new(‘James’).add_to_pool</code><br />
<code><br />
puts Resource.developers.size&nbsp;&nbsp;&nbsp;&nbsp;# 3</code></p>
<p>The output is pretty obvious here. Now lets consider a practical problem with this approach.</p>
<p><strong>Example 2</strong><br />
<code><br />
class RubyDeveloper &lt; Resource; end<br />
class JavaDeveloper &lt; Resource; end</code><br />
<code><br />
RubyDeveloper.new(‘Matz’).add_to_pool<br />
RubyDeveloper.new(‘David’).add_to_pool</code><br />
<code><br />
JavaDeveloper.new(‘James’).add_to_pool</code><br />
<code><br />
puts RubyDeveloper.developers.size&nbsp;&nbsp;&nbsp;&nbsp;# ?<br />
puts JavaDeveloper.developers.size&nbsp;&nbsp;&nbsp;&nbsp;# ?</code></p>
<p>The output here is:<br />
&gt;3<br />
&gt;3</p>
<p>Here’s the problem, how do we restrict the class variable to a given class and prevent any modification by its subclass?</p>
<p><strong>Class Instance Variables to the rescue</strong></p>
<p><strong>Example 3</strong><br />
<code><br />
class Resource</code><br />
<code><br />
&nbsp;&nbsp;class &lt;&lt; self<br />
&nbsp;&nbsp;&nbsp;&nbsp;def developers<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return @developers<br />
&nbsp;&nbsp;&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;&nbsp;&nbsp;def developers=(developers)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@developers | |= [ ]<br />
&nbsp;&nbsp;&nbsp;&nbsp;end<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def add_to_pool<br />
&nbsp;&nbsp;&nbsp;&nbsp;self.class. developers | |= [ ]<br />
&nbsp;&nbsp;&nbsp;&nbsp;self.class. developers &lt;&lt; self<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def initialize(resource_name)<br />
&nbsp;&nbsp;&nbsp;&nbsp;@resource_name = resource_name<br />
&nbsp;&nbsp;end<br />
end</code><br />
<code><br />
class RubyDeveloper &lt; Resource; end<br />
class JavaDeveloper &lt; Resource; end</code><br />
<code><br />
RubyDeveloper.new(‘Matz’).add_to_pool<br />
RubyDeveloper.new(‘David’).add_to_pool</code><br />
<code><br />
JavaDeveloper.new(‘James’).add_to_pool</code><br />
<code><br />
puts RubyDeveloper.developers.size&nbsp;&nbsp;&nbsp;&nbsp;# 2<br />
puts JavaDeveloper.developers.size&nbsp;&nbsp;&nbsp;&nbsp;# 1</code></p>
<p>Simplifying the code:<br />
<code><br />
class &lt;&lt; self<br />
&nbsp;&nbsp;def developers<br />
&nbsp;&nbsp;&nbsp;&nbsp;return @developers<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def developers=(developers)<br />
&nbsp;&nbsp;&nbsp;&nbsp;@developers | |= [ ]<br />
&nbsp;&nbsp;end<br />
end</code></p>
<p>can be achieved by:<br />
<code><br />
class &lt;&lt; self<br />
&nbsp;&nbsp;attr_accessor :developers<br />
end</code></p>
<p>Rewriting the Resource class<br />
<code><br />
class Resource<br />
&nbsp;&nbsp;class &lt;&lt; self; attr_accessor :developers; end</code><br />
<code><br />
&nbsp;&nbsp;def add_to_pool<br />
&nbsp;&nbsp;&nbsp;&nbsp;self.class. developers | |= [ ]<br />
&nbsp;&nbsp;&nbsp;&nbsp;self.class. developers &lt;&lt; self<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def initialize(resource_name)<br />
&nbsp;&nbsp;&nbsp;&nbsp;@resource_name = resource_name<br />
&nbsp;&nbsp;end<br />
end</code></p>
<p><strong>Just to summarize:</strong></p>
<p><strong>Declaring the Class Instance Variable:</strong><br />
<code><br />
class &lt;&lt; self; attr_accessor :developers; end</code></p>
<p><strong>Accessing the Class Instance Variable:</strong></p>
<p>Inside the class, where self is the class object:<br />
<code><br />
self.developers</code></p>
<p>Inside an action in the class, where self is the instance:<br />
<code><br />
self.class.developers</code></p>
<p>Hope that was interesting.<br />
Happy coding!!!</p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2010/05/16/class-instance-variables/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3018.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F16%2Fclass-instance-variables%2F&amp;title=Class%20Instance%20Variables" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3028.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F16%2Fclass-instance-variables%2F&amp;title=Class%20Instance%20Variables" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3038.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F16%2Fclass-instance-variables%2F&amp;title=Class%20Instance%20Variables" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3048.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F16%2Fclass-instance-variables%2F&amp;title=Class%20Instance%20Variables" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3058.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F16%2Fclass-instance-variables%2F&amp;Title=Class%20Instance%20Variables" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3068.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Class%20Instance%20Variables+%40+http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F16%2Fclass-instance-variables%2F" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3078.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2010/05/16/class-instance-variables/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3088.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F16%2Fclass-instance-variables%2F&amp;headline=Class%20Instance%20Variables" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3098.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F16%2Fclass-instance-variables%2F&amp;h=Class%20Instance%20Variables" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2010/08/gs3108.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2010/05/16/class-instance-variables/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3018.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3028.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3038.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3048.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3058.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3068.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3078.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3088.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3098.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2010/08/gs3108.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Access Control in Ruby</title>
		<link>https://adhirajrankhambe.wordpress.com/2010/05/02/access-control-in-ruby/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2010/05/02/access-control-in-ruby/#respond</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 02 May 2010 08:00:00 +0000</pubDate>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[access control]]></category>
		<category><![CDATA[access level modifiers]]></category>
		<category><![CDATA[rails]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=316</guid>

					<description><![CDATA[After stumbling upon the access level modifiers for a long time, one day I decided to understand the ins-and-outs about the concept of public, protected and private in Ruby. Let’s understand the concept of Access Control in Ruby with the &#8230; <a href="https://adhirajrankhambe.wordpress.com/2010/05/02/access-control-in-ruby/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>After stumbling upon the access level modifiers for a long time, one day I decided to understand the ins-and-outs about the concept of public, protected and private in Ruby.</p>
<p>Let’s understand the concept of Access Control in Ruby with the help of some simple examples:</p>
<p><strong>Understanding Private methods in Ruby:</strong></p>
<p><em>Example 1</em><br />
<code><br />
def MyClass<br />
&nbsp;&nbsp;def one<br />
&nbsp;&nbsp;&nbsp;&nbsp;puts “From one”<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def two<br />
&nbsp;&nbsp;&nbsp;&nbsp;one<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;private :one<br />
end</code></p>
<p><code>mc = MyClass.new<br />
mc.two&nbsp;&nbsp;&nbsp;&nbsp;# From one</code></p>
<p>NOTE: In the method “two”, the implicit receiver is “self”, where “self” is the instance “mc”<br />
Pretty obvious output, as expected.</p>
<p>Let’s take a deep dive:</p>
<p><em>Example 2</em><br />
<code><br />
class MyClass<br />
&nbsp;&nbsp;def one<br />
&nbsp;&nbsp;&nbsp;&nbsp;puts “From one”<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def two<br />
&nbsp;&nbsp;&nbsp;&nbsp;MyClass.new.one<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;private :one<br />
end</code></p>
<p><code>mc = MyClass.new<br />
mc.two&nbsp;&nbsp;&nbsp;&nbsp;# ?</code></p>
<p>The output here is:<br />
NoMethodError: private method &#8216;one&#8217; called for &lt;MyClass:0x3074f24&gt;</p>
<p>Before we get into the details, let’s consider a couple more examples:</p>
<p><em>Example 3</em><br />
<code><br />
class MyClass<br />
&nbsp;&nbsp;def one<br />
&nbsp;&nbsp;&nbsp;&nbsp;puts “From one”<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def two<br />
&nbsp;&nbsp;&nbsp;&nbsp;self.one<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;private :one<br />
end</code></p>
<p><code>mc = MyClass.new<br />
mc.two&nbsp;&nbsp;&nbsp;&nbsp;# ?</code></p>
<p>The output here is:<br />
NoMethodError: private method &#8216;one&#8217; called for &lt;MyClass:0x3067540&gt;</p>
<p>One last example with private and we should be good to conclude.</p>
<p><em>Example 4</em><br />
<code><br />
class MyClass<br />
&nbsp;&nbsp;def one<br />
&nbsp;&nbsp;&nbsp;&nbsp;puts “From one”<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;private :one<br />
end</code><br />
<code><br />
class MySubClass &lt; MyClass<br />
&nbsp;&nbsp;def two<br />
&nbsp;&nbsp;&nbsp;&nbsp;one<br />
&nbsp;&nbsp;end<br />
end</code></p>
<p><code>mc = MySubClass.new<br />
mc.two&nbsp;&nbsp;&nbsp;&nbsp;# ?</code></p>
<p>The output here is:<br />
&gt;From one</p>
<p>To conclude:</p>
<p><strong>Private Visibility:</strong></p>
<p>1. Private methods are private to the instance (and not to the class).<br />
2. Private methods are accessible from sub-classes.<br />
3. While accessing private methods, you cannot specify the receiver (even if its “self”), receiver is always implicit, never explicit.<br />
4. “Private” in Ruby is what “Protected” is in many other languages.<br />
5. In Ruby, no method is perfectly private or hidden.</p>
<p><strong>Understanding Protected methods in Ruby:</strong></p>
<p><em>Example 5</em><br />
<code><br />
class MyClass<br />
&nbsp;&nbsp;def one<br />
&nbsp;&nbsp;&nbsp;&nbsp;puts “From one”<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;def two<br />
&nbsp;&nbsp;&nbsp;&nbsp;one<br />
&nbsp;&nbsp;&nbsp;&nbsp;MyClass.new.one<br />
&nbsp;&nbsp;&nbsp;&nbsp;self.one<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;private :one<br />
end</code></p>
<p><code>mc = MyClass.new<br />
mc.two&nbsp;&nbsp;&nbsp;&nbsp;# ?</code></p>
<p>The output here is:<br />
&gt;From one<br />
&gt;From one<br />
&gt;From one</p>
<p>To conclude:</p>
<p><strong>Protected Visibility:</strong></p>
<p>1. Protected methods are visible to all the instances of the same class as well as sub-classes.<br />
2. Protected methods are also accessible from sub-classes.	In short, Access control in Ruby neither applies to nor impacts the object hierarchy.<br />
3. While accessing protected methods, you can specify the receiver, receiver can by explicit or implicit.<br />
4. “Protected” in Ruby is not quite common in other programming languages.<br />
5. What’s the use if its accessible to all the instances as well as from sub-classes?<br />
Private and Protected methods are not directly accessible outside the class.</p>
<p><strong>Public Visibility:</strong></p>
<p>1. The default access level is “Public”. Public methods are accessible from anywhere*.<br />
(*anywhere – within the class, outside the class, same instance, other instances of same class and sub-classes)</p>
<p><strong>Important:</strong> Also, in a subclass, one can override the access level modifier specified for any given action in the parent class.</p>
<p>Hope this helps understanding the basics of Access Control in Ruby. As always said, Ruby is truly object-oriented.<br />
With this said, Access Level Modifiers should not be a hurdle hereon.</p>
<p><strong>Food for Thought:</strong><br />
Private and Protected method declaration in Ruby is by-passed by the<br />
message sending syntax.<br />
<code><br />
class MyClass<br />
&nbsp;&nbsp;def one<br />
&nbsp;&nbsp;&nbsp;&nbsp;puts “From one”<br />
&nbsp;&nbsp;end</code><br />
<code><br />
&nbsp;&nbsp;private :one<br />
end</code></p>
<p><code>mc = MyClass.new<br />
mc.one&nbsp;&nbsp;&nbsp;&nbsp;# NoMethodError: private method 'one' called for &lt;MyClass:0x3089244&gt;</code></p>
<p><code>mc.send(:one)&nbsp;&nbsp;&nbsp;&nbsp;# From one</code></p>
<p>I haven’t been able to figure out the reason for this ambiguity in Ruby, the research is still on. If anyone has any ideas, please keep me posted.</p>
<p>In Ruby 1.9, we have a new method defined in the “Object” class named “public_send”. This respects the access level modifiers specified for any given action.</p>
<p>Happy coding !!!</p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2010/05/02/access-control-in-ruby/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3014.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F02%2Faccess-control-in-ruby%2F&amp;title=Access%20Control%20in%20Ruby" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3024.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F02%2Faccess-control-in-ruby%2F&amp;title=Access%20Control%20in%20Ruby" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3034.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F02%2Faccess-control-in-ruby%2F&amp;title=Access%20Control%20in%20Ruby" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3044.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F02%2Faccess-control-in-ruby%2F&amp;title=Access%20Control%20in%20Ruby" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3054.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F02%2Faccess-control-in-ruby%2F&amp;Title=Access%20Control%20in%20Ruby" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3064.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Access%20Control%20in%20Ruby+%40+http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F02%2Faccess-control-in-ruby%2F" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3074.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2010/05/02/access-control-in-ruby/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3084.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F02%2Faccess-control-in-ruby%2F&amp;headline=Access%20Control%20in%20Ruby" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3094.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F05%2F02%2Faccess-control-in-ruby%2F&amp;h=Access%20Control%20in%20Ruby" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3104.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2010/05/02/access-control-in-ruby/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3014.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3024.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3034.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3044.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3054.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3064.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3074.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3084.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3094.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3104.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Riding Rails on Ruby Enterprise Edition</title>
		<link>https://adhirajrankhambe.wordpress.com/2010/03/21/riding-rails-on-ruby-enterprise-edition/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2010/03/21/riding-rails-on-ruby-enterprise-edition/#respond</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 21 Mar 2010 08:00:33 +0000</pubDate>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rubyenterpriseedition]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=277</guid>

					<description><![CDATA[Passenger allows Ruby on Rails applications to use about 33% less memory, when used in combination with Ruby Enterprise Edition I am putting down steps to install Ruby Enterprise Edition and configure Passenger to use Ruby Enterprise Edition Download Ruby &#8230; <a href="https://adhirajrankhambe.wordpress.com/2010/03/21/riding-rails-on-ruby-enterprise-edition/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Passenger allows Ruby on Rails applications to use about 33% less memory, when used in combination with Ruby Enterprise Edition</p>
<p>I am putting down steps to install Ruby Enterprise Edition and configure Passenger to use Ruby Enterprise Edition</p>
<p><strong>Download Ruby Enterprise Edition</strong></p>
<p>You can download Ruby Enterprise Edition <a href="http://www.rubyenterpriseedition.com/download.html" target="_blank">here</a>.</p>
<p>Or through terminal,</p>
<p><code>wget http://rubyforge.org/frs/download.php/68719/ruby-enterprise-X.X.X-YYYY.MM.tar.gz</code></p>
<p><strong>Install Ruby Enterprise Edition</strong></p>
<p>Extract the files:</p>
<p><code>tar -xvzf  ruby-enterprise-X.X.X.tar.gz</code></p>
<p>Run the installer. As root,</p>
<p><code>./ruby-enterprise-X.X.X/installer</code></p>
<p>Set the path environment variable:</p>
<p><code>vim ~/.bash_profile</code></p>
<p>Add the following line:</p>
<p><code>export PATH=/opt/ruby-enterprise-X.X.X-YYYY.MM/bin:$PATH</code></p>
<p>Load the path environment variable in the current session:</p>
<p>As root,</p>
<p><code>source ~/.bash_profile</code></p>
<p>That&#8217;s it, we are done installing Ruby Enterprise Edition.</p>
<p>You can verify by:</p>
<p><code>ruby -v</code></p>
<blockquote><p>ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.01</p></blockquote>
<p>DO remember that this is a fresh installation of Ruby, that implies, you need to install all the necessary gems again. Ruby Enterprise Edition by default installs the latest stable version of Rails and the Passenger gem as well.</p>
<p>Now you can install and configure the Passenger module for Apache as described in article found at <a href="https://adhirajrankhambe.wordpress.com/2010/03/20/riding-rails-the-php-way/" target="_blank">https://adhirajrankhambe.wordpress.com/2010/03/20/riding-rails-the-php-way/</a>.</p>
<p><strong>References:</strong></p>
<p><a href="http://www.rubyenterpriseedition.com/" target="_blank">http://www.rubyenterpriseedition.com/</a><br />
<a href="http://www.rubyenterpriseedition.com/documentation.html" target="_blank">http://www.rubyenterpriseedition.com/documentation.html</a></p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2010/03/21/riding-rails-on-ruby-enterprise-edition/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3014.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F21%2Friding-rails-on-ruby-enterprise-edition%2F&amp;title=Riding%20Rails%20on%20Ruby%20Enterprise%20Edition" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3024.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F21%2Friding-rails-on-ruby-enterprise-edition%2F&amp;title=Riding%20Rails%20on%20Ruby%20Enterprise%20Edition" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3034.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F21%2Friding-rails-on-ruby-enterprise-edition%2F&amp;title=Riding%20Rails%20on%20Ruby%20Enterprise%20Edition" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3044.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F21%2Friding-rails-on-ruby-enterprise-edition%2F&amp;title=Riding%20Rails%20on%20Ruby%20Enterprise%20Edition" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3054.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F21%2Friding-rails-on-ruby-enterprise-edition%2F&amp;Title=Riding%20Rails%20on%20Ruby%20Enterprise%20Edition" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3064.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Riding%20Rails%20on%20Ruby%20Enterprise%20Edition+%40+http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F21%2Friding-rails-on-ruby-enterprise-edition%2F" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3074.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2010/03/21/riding-rails-on-ruby-enterprise-edition/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3084.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F21%2Friding-rails-on-ruby-enterprise-edition%2F&amp;headline=Riding%20Rails%20on%20Ruby%20Enterprise%20Edition" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3094.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F21%2Friding-rails-on-ruby-enterprise-edition%2F&amp;h=Riding%20Rails%20on%20Ruby%20Enterprise%20Edition" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3104.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2010/03/21/riding-rails-on-ruby-enterprise-edition/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3014.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3024.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3034.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3044.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3054.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3064.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3074.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3084.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3094.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3104.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Riding Rails the PHP way</title>
		<link>https://adhirajrankhambe.wordpress.com/2010/03/20/riding-rails-the-php-way/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2010/03/20/riding-rails-the-php-way/#comments</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sat, 20 Mar 2010 08:00:52 +0000</pubDate>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=257</guid>

					<description><![CDATA[I have been working with PHP for quite some time now, though my first love has always been Ruby on Rails :) While working with PHP, I realized that deployment of a PHP application is far more easier as compared &#8230; <a href="https://adhirajrankhambe.wordpress.com/2010/03/20/riding-rails-the-php-way/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>I have been working with PHP for quite some time now, though my first love has always been Ruby on Rails :)</p>
<p>While working with PHP, I realized that deployment of a PHP application is far more easier as compared to deployment of a Ruby on Rails application. So I was wondering if there could be a way to deploy a Ruby on Rails application in a similar fashion, as easy as you check out the Rails project in a directory on the server, configure a VirtualHost in the webserver, restart the webserver and there you go, everything should work as expected.</p>
<p>Luckily I did find a saviour,</p>
<p><strong>“Phusion Passenger” a.k.a “mod_rails” or “mod_rack”</strong></p>
<p>Here I am putting down steps to ride Rails on Passenger.</p>
<p><strong>Install Passenger</strong></p>
<p>Passenger is available as a Rubygem. As root,</p>
<p><code>gem install passenger</code></p>
<p><strong>Install Passenger module for Apache</strong></p>
<p><code>passenger-install-apache2-module</code></p>
<p>During installation it will prompt:</p>
<blockquote><p>The Apache2 module was successfully installed.</p>
<p>Please edit your Apache configuration file, and add these lines:</p>
<p><code>LoadModule passenger_module /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so<br />
PassengerRoot /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.11<br />
PassengerRuby /usr/bin/ruby</code></p></blockquote>
<p>NOTE: Do NOT copy-paste from here. Make sure you add the lines that passenger prompts you with.<br />
It is specific to the OS installation. Mine was a Fedora Core 10 64-bit installation.</p>
<p>Next, it will help you to configure a VirtualHost for Apache</p>
<blockquote><p><code>&lt;VirtualHost *:80&gt;<br />
&nbsp;&nbsp;ServerName www.yourhost.com<br />
&nbsp;&nbsp;DocumentRoot /somewhere/public</p>
<p><code>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Directory /somewhere/public&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AllowOverride all<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Options -MultiViews<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Directory&gt;</code></p>
<p><code>&lt;/VirtualHost&gt;</code></p></blockquote>
<p><strong>Restart Apache:</strong></p>
<p>As root,</p>
<p><code>/sbin/service httpd restart</code></p>
<p>That's it, we are done.<br />
Point your browser to your domain, and you should be able to see your Ruby on Rails Application.</p>
<p>Do keep in mind that the default Rails environment while using Passenger is “production”<br />
To access your application in “development” or any other environment add the following line in your VirtualHost configuration:</p>
<p><code>RailsEnv development</code></p>
<p><strong>Restarting your application deployed in production environment:</strong></p>
<p>To restart your Rails application deployed in production environment you can restart Apache.<br />
But that's not a good solution if you are hosting multiple applications on the same server, or even generally, it doesn't sound like a good idea to restart Apache every now and then.<br />
To overcome that, you can restart your application in the following way:</p>
<p>From Rails Root Directory,</p>
<p><code>touch tmp/restart.txt</code></p>
<p>That's it, this will restart you Rails application.</p>
<p>The best part is, Passenger is compatible with all the Rubygems and Rails plugins.</p>
<p>So nothing should break. I personally tried running a complex Rails application that uses Solr as the search engine along with acts_as_solr plugin, backgroundRB server for background processes, attachment_fu for file uploads etc, etc.</p>
<p>Everything worked like a charm.</p>
<p>For further configuration, please refer to the Passenger documentation found <a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html#_configuring_phusion_passenger" target="_blank">here</a>:</p>
<p>You can also use Passenger to serve Non-Rails Ruby web applications. That can be a good alternative to the already prevalent <strong>mod_ruby</strong> module for Apache.<br />
If you are using Nginx as your webserver, you can use Passenger module for Nginx.</p>
<p>There's just one disadvantage to Passenger:</p>
<p><strong>It doesn't work on Windows</strong>. In any case, I personally never prefer to develop Rails (or any other) applications on Windows :)</p>
<p>Good news for Mac users:</p>
<p><a href="http://www.google.co.in/url?sa=t&amp;source=web&amp;ct=res&amp;cd=5&amp;ved=0CBkQFjAE&amp;url=http%3A%2F%2Fwww.fngtps.com%2F2008%2F12%2Fpassenger-preference-pane-v1-2&amp;rct=j&amp;q=rails+passenger+pref+pane&amp;ei=nTmrS9PcNpXk7AO_huGzDw&amp;usg=AFQjCNHP1ra5YDrzjpu7eNE74O9dlh9Rqw" target="_blank">fingertips</a> has come up with an OS X preference pane for Phusion Passenger (a.k.a. mod_rails) that makes it a cinch to deploy Rails applications using Passenger on the Mac. It can be as simple as dragging a Rails application folder onto the preference pane! This is absolutely ideal for quick and easy Rails development on OS X.</p>
<p>You can download the <strong>Passenger Preference Pane</strong> <a href="http://www.fngtps.com/passenger-preference-pane" target="_blank">here</a></p>
<p><strong>References:</strong></p>
<p><a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html" target="_blank">http://www.modrails.com/documentation/Users%20guide%20Apache.html</a></p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2010/03/20/riding-rails-the-php-way/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3014.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F20%2Friding-rails-the-php-way%2F&amp;title=Riding%20Rails%20the%20PHP%20way" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3024.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F20%2Friding-rails-the-php-way%2F&amp;title=Riding%20Rails%20the%20PHP%20way" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3034.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F20%2Friding-rails-the-php-way%2F&amp;title=Riding%20Rails%20the%20PHP%20way" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3044.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F20%2Friding-rails-the-php-way%2F&amp;title=Riding%20Rails%20the%20PHP%20way" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3054.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F20%2Friding-rails-the-php-way%2F&amp;Title=Riding%20Rails%20the%20PHP%20way" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3064.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Riding%20Rails%20the%20PHP%20way+%40+http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F20%2Friding-rails-the-php-way%2F" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3074.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2010/03/20/riding-rails-the-php-way/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3084.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F20%2Friding-rails-the-php-way%2F&amp;headline=Riding%20Rails%20the%20PHP%20way" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3094.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F03%2F20%2Friding-rails-the-php-way%2F&amp;h=Riding%20Rails%20the%20PHP%20way" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3104.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2010/03/20/riding-rails-the-php-way/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3014.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3024.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3034.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3044.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3054.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3064.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3074.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3084.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3094.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3104.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox Add-Ons I cannot live without</title>
		<link>https://adhirajrankhambe.wordpress.com/2010/02/28/firefox-add-ons-i-cannot-live-without/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2010/02/28/firefox-add-ons-i-cannot-live-without/#respond</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 28 Feb 2010 08:00:51 +0000</pubDate>
				<category><![CDATA[Web Browsers]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=237</guid>

					<description><![CDATA[Why Firefox? Before listing the Firefox Add-Ons I cannot live without, let me praise Firefox, the browser I cannot live without. Firefox is undoubtedly the world’s best browser independent of any operating system. Be it Windows, Linux or Macintosh, Firefox &#8230; <a href="https://adhirajrankhambe.wordpress.com/2010/02/28/firefox-add-ons-i-cannot-live-without/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<h3>Why Firefox?</h3>
<p></p>
<p>Before listing the Firefox Add-Ons I cannot live without, let me praise Firefox, the browser I cannot live without.</p>
<p><a href="http://en.wikipedia.org/wiki/Mozilla_Firefox" target="_blank"><strong><em>Firefox</em></strong></a> is undoubtedly the world’s best browser independent of any operating system. Be it Windows, Linux or Macintosh, Firefox with its Open-Source community support, huge number of Add-Ons and other features stands out to be the best-in-class web browser.</p>
<p>Being a software developer, I use three operating systems in a day, namely Linux for Ruby on Rails, Mac for iPhone application development ( and Windows for entertainment :) ) making Firefox the obvious choice for web browser that I can stick to.</p>
<p>Thanks to <a href="http://en.wikipedia.org/wiki/Mozilla_Corporation" target="_blank"><strong><em>Mozilla</em></strong></a> for giving us Firefox, so that we don’t need to change web browsers depending on the Operating System we are using.</p>
<p>If you haven&#8217;t used Firefox yet, I would strongly recommend you to try it out.</p>
<p><a href='http://www.mozilla.com/?from=sfx&amp;uid=305197&amp;t=572' target='_blank'><img src='https://i0.wp.com/sfx-images.mozilla.org/firefox/3.6/468x60_blue.png' alt='Spread Firefox Affiliate Button' border='0' /></a></p>
<p>I can go on and on praising Firefox, but let’s get over it.<br />
Below I list my favourite Firefox Add-Ons categorized under <strong><em>Developer</em></strong> (5), <strong><em>Social Networking</em></strong> (3), <strong><em>Media</em></strong> (3) and <strong><em>Utility</em></strong> (3) add-ons.</p>
<h3>Developer Add-Ons</h3>
<p></p>
<p>1.	<a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">Firebug</a></p>
<p>Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/1843</a></p>
<p>2.	<a href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Web Developer</a></p>
<p>The Web Developer extension adds a menu and a toolbar with various web developer tools.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/60</a></p>
<p>3.	<a href="https://addons.mozilla.org/en-US/firefox/addon/539" target="_blank">MeasureIt</a></p>
<p>Draw out a ruler to get the pixel width and height of any elements on a webpage.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/539" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/539</a></p>
<p>4.	<a href="https://addons.mozilla.org/en-US/firefox/addon/684" target="_blank">FireFTP</a></p>
<p>FireFTP is a free, secure, cross-platform FTP client for Mozilla Firefox which provides easy and intuitive access to FTP servers.<br />
Along with transferring your files quickly and efficiently, FireFTP also includes more advanced features such as: directory comparison, syncing directories while navigating, SFTP, SSL encryption, search/filtering, integrity checks, remote editing, drag &amp; drop, file hashing, and much more!<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/684" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/684</a></p>
<p>5.	<a href="https://addons.mozilla.org/en-US/firefox/addon/748" target="_blank">Greasemonkey</a></p>
<p>Allows you to customize the way a webpage displays using small bits of JavaScript.<br />
Hundreds of scripts, for a wide variety of popular sites, are already available at <a href="http://userscripts.org" target="_blank">http://userscripts.org</a>.<br />
You can write your own scripts, too. Check out <a href="http://wiki.greasespot.net/" target="_blank">http://wiki.greasespot.net/</a> to get started.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/748" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/748</a></p>
<h3>Social Networking Add-Ons</h3>
<p></p>
<p>1.	<a href="https://addons.mozilla.org/en-US/firefox/addon/3615" target="_blank">Delicious Bookmarks</a></p>
<p>Delicious Bookmarks is the official Firefox add-on for Delicious, the world&#8217;s leading social bookmarking service (formerly del.icio.us). It integrates your bookmarks and tags with Firefox and keeps them in sync for easy, convenient access.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/3615" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/3615</a></p>
<p>2.	<a href="https://addons.mozilla.org/en-US/firefox/addon/4076" target="_blank">AddThis</a></p>
<p>AddThis for Firefox is the best add-on to make sharing and bookmarking simple. Have all your favorite web 2.0 social networking, bookmarking, blogging, and e-mail services at your fingertips. Share any page, anytime, with anyone.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/4076" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/4076</a></p>
<p>3.	<a href="https://addons.mozilla.org/en-US/firefox/addon/1833" target="_blank">Yoono</a></p>
<p>Yoono is a powerful but easy to use sidebar for Firefox that helps you simplify your online social life by connecting you to Facebook, MySpace, Twitter, LinkedIn, Flickr, Friendfeed, AIM, Yahoo IM and more&#8230;all in one place. Yoono is also the easiest way to share stuff with all your social networks &#8211; share links, images and video from the page you&#8217;re viewing across all your networks simultaneously.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/1833" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/1833</a></p>
<h3>Media Add-Ons</h3>
<p></p>
<p>1.	<a href="https://addons.mozilla.org/en-US/firefox/addon/5579" target="_blank">Cooliris</a></p>
<p>The Cooliris 3D Wall &#8212; Simply the fastest and most stunning way to browse photos and videos from the Web or your desktop. Effortlessly scroll an infinite &#8220;3D Wall&#8221; of your content from Facebook, Google Images, YouTube, Flickr, and hundreds more.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/5579" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/5579</a></p>
<p>2.	<a href="https://addons.mozilla.org/en-US/firefox/addon/10137" target="_blank">Easy YouTube Video Downloader</a></p>
<p>Easiest Youtube video downloader ever, single click non-intrusive direct download buttons for FLV, 3GP, MP3, MP4, 720p HD and 1080p Full-HD qualities.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/10137" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/10137</a></p>
<p>3.	<a href="https://addons.mozilla.org/en-US/firefox/browse/type:7" target="_blank">RealPlayer Browser Record Plugin</a></p>
<p>Detects all recordable content on browser.<br />
<a href="https://addons.mozilla.org/en-US/firefox/browse/type:7" target="_blank">https://addons.mozilla.org/en-US/firefox/browse/type:7</a></p>
<h3>Utility Add-Ons</h3>
<p></p>
<p>1.	<a href="http://gears.google.com/" target="_blank">Google Gears</a></p>
<p>Gears is an open source project that enables more powerful web applications, by adding new features to your web browser.<br />
<a href="http://gears.google.com/" target="_blank">http://gears.google.com/</a><br />
(Google Gears Portable &#8211; <a href="https://addons.mozilla.org/en-US/firefox/addon/13492" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/13492</a>)</p>
<p>2.	<a href="https://addons.mozilla.org/en-US/firefox/addon/5648" target="_blank">FireShot</a></p>
<p>FireShot is a Firefox extension that creates screenshots of web pages (entirely or just visible part).<br />
Unlike other extensions, this plugin provides a set of editing and annotation tools, which let users quickly modify web captures and insert text annotations and graphical annotations. Such functionality will be especially useful for web designers, testers and content reviewers.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/5648" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/5648</a></p>
<p>3.	<a href="https://addons.mozilla.org/en-US/firefox/addon/1191" target="_blank">ReminderFox</a></p>
<p>ReminderFox displays and manages lists of reminders and ToDo&#8217;s. ReminderFox makes sure you remember all of your important dates via easy-to-use lists, alerts, and alarms, right in your browser without the need for a separate calendar program.<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/1191" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/1191</a></p>
<p>View all Firefox Add-Ons at <a href="https://addons.mozilla.org/" target="_blank">https://addons.mozilla.org/</a></p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2010/02/28/firefox-add-ons-i-cannot-live-without/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3014.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F28%2Ffirefox-add-ons-i-cannot-live-without%2F&amp;title=Firefox%20Add-Ons%20I%20cannot%20live%20without" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3024.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F28%2Ffirefox-add-ons-i-cannot-live-without%2F&amp;title=Firefox%20Add-Ons%20I%20cannot%20live%20without" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3034.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F28%2Ffirefox-add-ons-i-cannot-live-without%2F&amp;title=Firefox%20Add-Ons%20I%20cannot%20live%20without" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3044.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F28%2Ffirefox-add-ons-i-cannot-live-without%2F&amp;title=Firefox%20Add-Ons%20I%20cannot%20live%20without" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3054.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F28%2Ffirefox-add-ons-i-cannot-live-without%2F&amp;Title=Firefox%20Add-Ons%20I%20cannot%20live%20without" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3064.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Firefox%20Add-Ons%20I%20cannot%20live%20without+%40+http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F28%2Ffirefox-add-ons-i-cannot-live-without%2F" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3074.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2010/02/28/firefox-add-ons-i-cannot-live-without/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3084.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F28%2Ffirefox-add-ons-i-cannot-live-without%2F&amp;headline=Firefox%20Add-Ons%20I%20cannot%20live%20without" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3094.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F28%2Ffirefox-add-ons-i-cannot-live-without%2F&amp;h=Firefox%20Add-Ons%20I%20cannot%20live%20without" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3104.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2010/02/28/firefox-add-ons-i-cannot-live-without/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://sfx-images.mozilla.org/firefox/3.6/468x60_blue.png" medium="image">
			<media:title type="html">Spread Firefox Affiliate Button</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3014.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3024.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3034.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3044.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3054.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3064.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3074.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3084.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3094.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3104.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Chrome with Flash on Linux (Fedora)</title>
		<link>https://adhirajrankhambe.wordpress.com/2010/02/07/installing-chrome-with-flash-on-linux-fedora/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2010/02/07/installing-chrome-with-flash-on-linux-fedora/#comments</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 07 Feb 2010 08:00:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Browsers]]></category>
		<category><![CDATA[64 bit]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[flash]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=140</guid>

					<description><![CDATA[Get Chrome Download rpm here 32 bit .rpm (For Fedora/openSUSE) OR 64 bit .rpm (For Fedora/openSUSE) Install Chrome Go to the directory where the file was downloaded and install the rpm: rpm -ivh google-chrome-beta_current_i386.rpm OR rpm -ivh google-chrome-beta_current_x86_64.rpm Get Flash &#8230; <a href="https://adhirajrankhambe.wordpress.com/2010/02/07/installing-chrome-with-flash-on-linux-fedora/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><strong>Get Chrome</strong></p>
<p>Download rpm <a href="http://www.google.com/chrome?platform=linux&amp;hl=en-US" target="_blank">here</a></p>
<p><em>32 bit .rpm (For Fedora/openSUSE)</em></p>
<p>OR</p>
<p><em>64 bit .rpm (For Fedora/openSUSE)</em></p>
<p><strong>Install Chrome</strong></p>
<p>Go to the directory where the file was downloaded and install the rpm:</p>
<p><code>rpm -ivh google-chrome-beta_current_i386.rpm</code></p>
<p>OR</p>
<p><code>rpm -ivh google-chrome-beta_current_x86_64.rpm</code></p>
<p><strong>Get Flash</strong></p>
<p>Download rpm from <a href="http://get.adobe.com/flashplayer/otherversions/" target="_blank">here</a></p>
<p>Step 1 of 2</p>
<p>Select an operating system:<br />
<code>Linux</code></p>
<p>Step 2 of 2</p>
<p>Select version to download:<br />
<code>Flash Player 10 for Linux (.rpm)</code></p>
<p><strong>Install Flash</strong></p>
<p>Go to the directory where the file was downloaded and install the rpm:</p>
<p><code>rpm -ivh flash-plugin-10.0.45.2-release.i386.rpm</code></p>
<p><strong>Get the Browser Flash Plugin:</strong></p>
<p>For 32 bit OS, when you install Flash player it automatically installs the Flash plugin for Firefox, which can be reused for Chrome.</p>
<p>For 64 bit OS, you can get the Browser Flash plugin <a href="http://labs.adobe.com/downloads/flashplayer10_64bit.html" target="_blank">here</a></p>
<p><strong>Install the Browser Flash plugin for Chrome:</strong></p>
<p>For 32 bit OS, you can just copy <em>libflashplayer.so</em> from <em>/usr/lib/mozilla-firefox/plugins/</em> to <em>/opt/google/chrome/plugins</em> directory (You might need to create a plugins directory if its not already present).<br />
<code><br />
mkdir /opt/google/chrome/plugins<br />
cp /usr/lib/mozilla-firefox/plugins/libflashplayer.so /opt/google/chrome/plugins</code></p>
<p>For 64 bit OS, extract the contents of <em>libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz</em>:</p>
<p><code>tar -xvzf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz</code></p>
<p>Copy the file <em>libflashplayer.so</em> to <em>/opt/google/chrome/plugins</em> directory (You might need to create a plugins directory if its not already present).</p>
<p><code>mkdir /opt/google/chrome/plugins<br />
cp libflashplayer.so /opt/google/chrome/plugins</code></p>
<p><strong>Start Chrome from terminal:</strong></p>
<p>Close all windows of your Chrome browser.<br />
Go to the directory <em>/opt/google/chrome</em> and start chrome from terminal:</p>
<p><code>google-chrome –enable-plugins</code></p>
<p>That’s it&#8230; we are done&#8230; you can confirm the installation by typing <em>about:plugins</em> in the address bar.<br />
It should list <em>Shockwave Flash</em>.</p>
<p></p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2010/02/07/installing-chrome-with-flash-on-linux-fedora/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3012.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F07%2Finstalling-chrome-with-flash-on-linux-fedora%2F&amp;title=Installing%20Chrome%20with%20Flash%20on%20Linux%20(Fedora)" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3022.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F07%2Finstalling-chrome-with-flash-on-linux-fedora%2F&amp;title=Installing%20Chrome%20with%20Flash%20on%20Linux%20(Fedora)" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3032.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F07%2Finstalling-chrome-with-flash-on-linux-fedora%2F&amp;title=Installing%20Chrome%20with%20Flash%20on%20Linux%20(Fedora)" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3042.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F07%2Finstalling-chrome-with-flash-on-linux-fedora%2F&amp;title=Installing%20Chrome%20with%20Flash%20on%20Linux%20(Fedora)" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3052.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F07%2Finstalling-chrome-with-flash-on-linux-fedora%2F&amp;Title=Installing%20Chrome%20with%20Flash%20on%20Linux%20(Fedora)" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3062.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Installing%20Chrome%20with%20Flash%20on%20Linux%20(F+%40+Installing%20Chrome%20with%20Flash%20on%20Linux%20(Fedora)" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3072.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2010/02/07/installing-chrome-with-flash-on-linux-fedora/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3082.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F07%2Finstalling-chrome-with-flash-on-linux-fedora%2F&amp;headline=Installing%20Chrome%20with%20Flash%20on%20Linux%20(Fedora)" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3092.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2010%2F02%2F07%2Finstalling-chrome-with-flash-on-linux-fedora%2F&amp;h=Installing%20Chrome%20with%20Flash%20on%20Linux%20(Fedora)" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3102.png?w=500" alt="Add to Newsvine" /></a></p>
<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2010/02/07/installing-chrome-with-flash-on-linux-fedora/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3012.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3022.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3032.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3042.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3052.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3062.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3072.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3082.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3092.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3102.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Install JDK on Linux in just 2 minutes</title>
		<link>https://adhirajrankhambe.wordpress.com/2009/10/04/install-jdk-on-linux-in-just-2-minutes/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2009/10/04/install-jdk-on-linux-in-just-2-minutes/#respond</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 04 Oct 2009 08:00:25 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=227</guid>

					<description><![CDATA[NOTE: Instructions are specific to Fedora distributions After stumbling over JDK installations on Fedora each and every time, I finally decided to put down the steps on paper so that I can refer back whenever required. Here’s a very easy &#8230; <a href="https://adhirajrankhambe.wordpress.com/2009/10/04/install-jdk-on-linux-in-just-2-minutes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>NOTE: Instructions are specific to Fedora distributions</p>
<p>After stumbling over JDK installations on Fedora each and every time, I finally decided to put down the steps on paper so that I can refer back whenever required. Here’s a very easy step-by-step guide to install JDK on a Fedora Core installation.</p>
<p>1. Download JDK Installer <a href="http://java.sun.com/products/archive/" target="_blank">here</a></p>
<p>Select the appropriate Platform: Linux x64 (I use a 64-bit Fedora Core installation)</p>
<p>Get the jdk-1_5_0_21-linux-amd64.bin package and not the jdk-1_5_0_21-linux-amd64-rpm.bin <strong>( .bin and not rpm.bin )</strong></p>
<p>2. Make the JDK Binary Installation file executable</p>
<p>As root,</p>
<p><code>chmod 755 jdk-1_5_0_21-linux-amd64.bin</code></p>
<p>3. Create a directory to install JDK <strong><em>/usr/share/sunjava</em></strong> (you can use a custom location)</p>
<p><code>mkdir /usr/share/sunjava</code></p>
<p>4. Execute the binary installation for JDK in the <strong><em>/usr/share/sunjava</em></strong> directory</p>
<p><code>cd /usr/share/sunjava</code></p>
<p><code>sh /path/to/jdk-1_5_0_21-linux-amd64.bin</code></p>
<p>After executing this command you will need to read through the License Agreement and type <strong><em>yes</em></strong> for the installer to actually start installing the software. Once installed it will create a folder <strong><em>&#8220;jdk1.5.0_21&#8221;</em></strong> in the <strong><em>/usr/share/sunjava</em></strong> directory.</p>
<p>5. Adding it to the path environment variable</p>
<p>As root,</p>
<p><code>vim ~/.bash_profile</code></p>
<p>Add the following lines:</p>
<blockquote><p>JAVA_HOME=/usr/share/sunjava/jdk1.5.0_21<br />
export JAVA_HOME</p>
<p>PATH=$JAVA_HOME/bin:$PATH:$HOME/bin<br />
export PATH</p></blockquote>
<p>6. Load the path environment variable in the current session</p>
<p>As root,</p>
<p><code>source ~/.bash_profile</code></p>
<p>We’re done, you can confirm by:</p>
<p><code>java –version</code></p>
<p>It should output something similar to:</p>
<blockquote><p>java version &#8220;1.5.0_21&#8221;<br />
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_21)<br />
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_21, mixed mode)</p></blockquote>
<p><strong>References:</strong></p>
<p><a href="http://fedorasolved.org/browser-solutions/sun-jdk">http://fedorasolved.org/browser-solutions/sun-jdk</a></p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2009/10/04/install-jdk-on-linux-in-just-2-minutes/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3011.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F10%2F04%2Finstall-jdk-on-linux-in-just-2-minutes%2F&amp;title=Install%20JDK%20on%20Linux%20in%20just%202%20minutes" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3021.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F10%2F04%2Finstall-jdk-on-linux-in-just-2-minutes%2F&amp;title=Install%20JDK%20on%20Linux%20in%20just%202%20minutes" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3031.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F10%2F04%2Finstall-jdk-on-linux-in-just-2-minutes%2F&amp;title=Install%20JDK%20on%20Linux%20in%20just%202%20minutes" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3041.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F10%2F04%2Finstall-jdk-on-linux-in-just-2-minutes%2F&amp;title=Install%20JDK%20on%20Linux%20in%20just%202%20minutes" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3051.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F10%2F04%2Finstall-jdk-on-linux-in-just-2-minutes%2F&amp;Title=Install%20JDK%20on%20Linux%20in%20just%202%20minutes" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3061.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Install%20JDK%20on%20Linux%20in%20just%202%20minutes+%40+http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F10%2F04%2Finstall-jdk-on-linux-in-just-2-minutes%2F" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3071.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2009/10/04/install-jdk-on-linux-in-just-2-minutes/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3081.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F10%2F04%2Finstall-jdk-on-linux-in-just-2-minutes%2F&amp;headline=Install%20JDK%20on%20Linux%20in%20just%202%20minutes" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3091.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F10%2F04%2Finstall-jdk-on-linux-in-just-2-minutes%2F&amp;h=Install%20JDK%20on%20Linux%20in%20just%202%20minutes" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3101.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2009/10/04/install-jdk-on-linux-in-just-2-minutes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3011.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3021.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3031.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3041.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3051.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3061.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3071.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3081.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3091.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3101.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Global Settings File for Your Rails Application</title>
		<link>https://adhirajrankhambe.wordpress.com/2009/09/06/global-settings-file-for-your-rails-application/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2009/09/06/global-settings-file-for-your-rails-application/#respond</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 06 Sep 2009 08:00:50 +0000</pubDate>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[configuration file]]></category>
		<category><![CDATA[rails]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=185</guid>

					<description><![CDATA[I was wondering if there could be a place in my Rails Application where I could define universal constants or configuration variables or &#8220;global switches&#8221; to switch a functionality on/off. I don&#8217;t know if this is the best way to &#8230; <a href="https://adhirajrankhambe.wordpress.com/2009/09/06/global-settings-file-for-your-rails-application/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>I was wondering if there could be a place in my Rails Application where I could define universal constants or configuration variables or &#8220;global switches&#8221; to switch a functionality on/off.<br />
I don&#8217;t know if this is the best way to achieve this, but following is how I achieved it in my Rails application:</p>
<p>Create a <strong>settings.yml</strong> file and put it in <strong>&lt;RAILS_ROOT&gt;/config/</strong> directory</p>
<blockquote><p># This file can be used to store universal constants that can be changed from within the application</p>
<p>domain: <a href="http://www.yourdomain.com" rel="nofollow">http://www.yourdomain.com</a></p>
<p>key2: value2</p></blockquote>
<p>Create a module <strong>ApplicationConfig</strong></p>
<blockquote><p><code>module ApplicationConfig<br />
  &nbsp;&nbsp;$config = YAML::load_file "#{RAILS_ROOT}/config/settings.yml"</code></p>
<p>  <code>&nbsp;&nbsp;def self.update_application_configuration<br />
  &nbsp;&nbsp;&nbsp;&nbsp;File.open("#{RAILS_ROOT}/config/settings.yml", 'w') { |f| YAML.dump($config, f) }<br />
  &nbsp;&nbsp;end<br />
end</code></p></blockquote>
<p>Save the file as <strong>application_config.rb</strong> and put it in <strong>&lt;RAILS_ROOT&gt;/lib/</strong> directory</p>
<p>In your <strong>Application Controller</strong>, include the <strong>ApplicationConfig</strong> module</p>
<blockquote><p><code># Filters added to this controller apply to all controllers in the application.<br />
# Likewise, all the methods added will be available for all controllers.</code></p>
<p><code>class ApplicationController &lt; ActionController::Base<br />
  &nbsp;&nbsp;&nbsp;&nbsp;helper :all # include all helpers, all the time<br />
  &nbsp;&nbsp;&nbsp;&nbsp;protect_from_forgery</code></p>
<p>  <code>&nbsp;&nbsp;&nbsp;&nbsp;<strong>include ApplicationConfig</strong></code></p>
<p>  <code>&nbsp;&nbsp;&nbsp;&nbsp;# Scrub sensitive parameters from your log<br />
  &nbsp;&nbsp;&nbsp;&nbsp;# filter_parameter_logging :password<br />
end</code></p></blockquote>
<p>Now you can access the global variables as follows:</p>
<p><code>$config["domain"]</code></p>
<p><code>$config["key2"]</code></p>
<p>And set the global variables as follows:</p>
<p><code>$config["domain"] = "www.yournewdomain.com"<br />
ApplicationConfig.update_application_configuration</code></p>
<p><code>$config["key2"] = "newvalue2"<br />
ApplicationConfig.update_application_configuration</code></p>
<p>Hope this helps.</p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2009/09/06/global-settings-file-for-your-rails-application/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3014.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F09%2F06%2Fglobal-settings-file-for-your-rails-application%2F&amp;title=Global%20Settings%20File%20for%20Your%20Rails%20Application" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3024.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F09%2F06%2Fglobal-settings-file-for-your-rails-application%2F&amp;title=Global%20Settings%20File%20for%20Your%20Rails%20Application" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3034.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F09%2F06%2Fglobal-settings-file-for-your-rails-application%2F&amp;title=Global%20Settings%20File%20for%20Your%20Rails%20Application" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3044.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F09%2F06%2Fglobal-settings-file-for-your-rails-application%2F&amp;title=Global%20Settings%20File%20for%20Your%20Rails%20Application" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3054.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F09%2F06%2Fglobal-settings-file-for-your-rails-application%2F&amp;Title=Global%20Settings%20File%20for%20Your%20Rails%20Application" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3064.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Global%20Settings%20File%20for%20Your%20Rails%20A+%40+Global%20Settings%20File%20for%20Your%20Rails%20Application" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3074.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2009/09/06/global-settings-file-for-your-rails-application/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3084.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F09%2F06%2Fglobal-settings-file-for-your-rails-application%2F&amp;headline=Global%20Settings%20File%20for%20Your%20Rails%20Application" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3094.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F09%2F06%2Fglobal-settings-file-for-your-rails-application%2F&amp;h=Global%20Settings%20File%20for%20Your%20Rails%20Application" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3104.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2009/09/06/global-settings-file-for-your-rails-application/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3014.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3024.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3034.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3044.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3054.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3064.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3074.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3084.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3094.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3104.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
		<item>
		<title>Generating a Rails project preconfigured to use MySQL</title>
		<link>https://adhirajrankhambe.wordpress.com/2009/08/02/generating-a-rails-project-preconfigured-to-use-mysql/</link>
					<comments>https://adhirajrankhambe.wordpress.com/2009/08/02/generating-a-rails-project-preconfigured-to-use-mysql/#respond</comments>
		
		<dc:creator><![CDATA[Adhiraj]]></dc:creator>
		<pubDate>Sun, 02 Aug 2009 08:00:25 +0000</pubDate>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[database configuration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[sqlite]]></category>
		<guid isPermaLink="false">http://adhirajrankhambe.wordpress.com/?p=176</guid>

					<description><![CDATA[With the 2.0.2 release of Ruby on Rails, the default database has been switched from MySQL to SQLite3 So, now when you generate a Rails project using: rails &#60;MYAPP&#62; This is how the generated database.yml (Database configuration file) looks like: &#8230; <a href="https://adhirajrankhambe.wordpress.com/2009/08/02/generating-a-rails-project-preconfigured-to-use-mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>With the 2.0.2 release of Ruby on Rails, the default database has been switched from MySQL to SQLite3</p>
<p>So, now when you generate a Rails project using:</p>
<p><code>rails &lt;MYAPP&gt;</code></p>
<p>This is how the generated database.yml (Database configuration file) looks like:</p>
<blockquote><p># SQLite version 3.x<br />
#   gem install sqlite3-ruby (not necessary on OS X Leopard)<br />
development:<br />
  adapter: sqlite3<br />
  database: db/development.sqlite3<br />
  pool: 5<br />
  timeout: 5000</p>
<p># Warning: The database defined as &#8220;test&#8221; will be erased and<br />
# re-generated from your development database when you run &#8220;rake&#8221;.<br />
# Do not set this db to the same as development or production.<br />
test:<br />
  adapter: sqlite3<br />
  database: db/test.sqlite3<br />
  pool: 5<br />
  timeout: 5000</p>
<p>production:<br />
  adapter: sqlite3<br />
  database: db/production.sqlite3<br />
  pool: 5<br />
  timeout: 5000</p></blockquote>
<p>But if you still want to use MySQL as the database for your Rails app you can generate your rails app by:</p>
<p><code>rails -d mysql &lt;MYAPP&gt; (options: mysql/oracle/postgresql/sqlite2/sqlite3/frontbase/ibm_db)</code></p>
<p>OR</p>
<p><code>rails --database=mysql &lt;MYAPP&gt; (options: mysql/oracle/postgresql/sqlite2/sqlite3/frontbase/ibm_db)</code></p>
<p>The database.yml file generated by this method looks like:</p>
<blockquote><p># MySQL.  Versions 4.1 and 5.0 are recommended.<br />
#<br />
# Install the MySQL driver:<br />
#   gem install mysql<br />
# On Mac OS X:<br />
#   sudo gem install mysql &#8212; &#8211;with-mysql-dir=/usr/local/mysql<br />
# On Mac OS X Leopard:<br />
#   sudo env ARCHFLAGS=&#8221;-arch i386&#8243; gem install mysql &#8212; &#8211;with-mysql-config=/usr/local/mysql/bin/mysql_config<br />
#       This sets the ARCHFLAGS environment variable to your native architecture<br />
# On Windows:<br />
#   gem install mysql<br />
#       Choose the win32 build.<br />
#       Install MySQL and put its /bin directory on your path.<br />
#<br />
# And be sure to use new-style password hashing:<br />
#   <a href="http://dev.mysql.com/doc/refman/5.0/en/old-client.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/old-client.html</a><br />
development:<br />
  adapter: mysql<br />
  encoding: utf8<br />
  reconnect: false<br />
  database: &lt;MYAPP&gt;_development<br />
  pool: 5<br />
  username: root<br />
  password:<br />
  # JRuby doesn&#8217;t support socket:<br />
  host: 127.0.0.1<br />
  #socket: /var/lib/mysql/mysql.sock</p>
<p># Warning: The database defined as &#8220;test&#8221; will be erased and<br />
# re-generated from your development database when you run &#8220;rake&#8221;.<br />
# Do not set this db to the same as development or production.<br />
test:<br />
  adapter: mysql<br />
  encoding: utf8<br />
  reconnect: false<br />
  database: &lt;MYAPP&gt;_test<br />
  pool: 5<br />
  username: root<br />
  password:<br />
  # JRuby doesn&#8217;t support socket:<br />
  host: 127.0.0.1<br />
  #socket: /var/lib/mysql/mysql.sock</p>
<p>production:<br />
  adapter: mysql<br />
  encoding: utf8<br />
  reconnect: false<br />
  database: &lt;MYAPP&gt;_production<br />
  pool: 5<br />
  username: root<br />
  password:<br />
  # JRuby doesn&#8217;t support socket:<br />
  host: 127.0.0.1<br />
  #socket: /var/lib/mysql/mysql.sock</p></blockquote>
<p>If you always use MySQL as the default database for Rails applications you can change the shell variable (RAILS_DEFAULT_DATABASE) as follows:</p>
<p>(As root)</p>
<p><code>export RAILS_DEFAULT_DATABASE=mysql</code></p>
<p><strong>References:</strong></p>
<p><a href="http://weblog.rubyonrails.org/2007/12/17/rails-2-0-2-some-new-defaults-and-a-few-fixes" target="_blank">http://weblog.rubyonrails.org/2007/12/17/rails-2-0-2-some-new-defaults-and-a-few-fixes</a></p>
<p style="text-align:left;" class="getsocial"><a title="Add to Facebook" href="http://www.facebook.com/sharer.php?u=https://adhirajrankhambe.wordpress.com/2009/08/02/generating-a-rails-project-preconfigured-to-use-mysql/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3014.png?w=500" alt="Add to Facebook" /></a><a title="Add to Digg" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F08%2F02%2Fgenerating-a-rails-project-preconfigured-to-use-mysql%2F&amp;title=Generating%20a%20Rails%20project%20preconfigured%20to%20use%20MySQL" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3024.png?w=500" alt="Add to Digg" /></a><a title="Add to Del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F08%2F02%2Fgenerating-a-rails-project-preconfigured-to-use-mysql%2F&amp;title=Generating%20a%20Rails%20project%20preconfigured%20to%20use%20MySQL" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3034.png?w=500" alt="Add to Del.icio.us" /></a><a title="Add to Stumbleupon" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F08%2F02%2Fgenerating-a-rails-project-preconfigured-to-use-mysql%2F&amp;title=Generating%20a%20Rails%20project%20preconfigured%20to%20use%20MySQL" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3044.png?w=500" alt="Add to Stumbleupon" /></a><a title="Add to Reddit" href="http://reddit.com/submit?url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F08%2F02%2Fgenerating-a-rails-project-preconfigured-to-use-mysql%2F&amp;title=Generating%20a%20Rails%20project%20preconfigured%20to%20use%20MySQL" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3054.png?w=500" alt="Add to Reddit" /></a><a title="Add to Blinklist" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F08%2F02%2Fgenerating-a-rails-project-preconfigured-to-use-mysql%2F&amp;Title=Generating%20a%20Rails%20project%20preconfigured%20to%20use%20MySQL" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3064.png?w=500" alt="Add to Blinklist" /></a><a title="Add to Twitter" href="http://twitter.com/home/?status=Generating%20a%20Rails%20project%20prec+%40+Generating%20a%20Rails%20project%20preconfigured%20to%20use%20MySQL" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3074.png?w=500" alt="Add to Twitter" /></a><a title="Add to Technorati" href="http://www.technorati.com/faves?add=https://adhirajrankhambe.wordpress.com/2009/08/02/generating-a-rails-project-preconfigured-to-use-mysql/" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3084.png?w=500" alt="Add to Technorati" /></a><a title="Add to Yahoo Buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F08%2F02%2Fgenerating-a-rails-project-preconfigured-to-use-mysql%2F&amp;headline=Generating%20a%20Rails%20project%20preconfigured%20to%20use%20MySQL" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3094.png?w=500" alt="Add to Yahoo Buzz" /></a><a title="Add to Newsvine" href="http://www.newsvine.com/_wine/save?u=http%3A%2F%2Fadhirajrankhambe.wordpress.com%2F2009%2F08%2F02%2Fgenerating-a-rails-project-preconfigured-to-use-mysql%2F&amp;h=Generating%20a%20Rails%20project%20preconfigured%20to%20use%20MySQL" rel="nofollow" target="_blank"><img style="border:0;margin:0;padding:0;" src="https://getsocialserver.files.wordpress.com/2009/08/gs3104.png?w=500" alt="Add to Newsvine" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://adhirajrankhambe.wordpress.com/2009/08/02/generating-a-rails-project-preconfigured-to-use-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/29260d4ad18b1efb7089ee168ff96c655af3e50df88223345026e8aec0b21027?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">adhirajrankhambe</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3014.png" medium="image">
			<media:title type="html">Add to Facebook</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3024.png" medium="image">
			<media:title type="html">Add to Digg</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3034.png" medium="image">
			<media:title type="html">Add to Del.icio.us</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3044.png" medium="image">
			<media:title type="html">Add to Stumbleupon</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3054.png" medium="image">
			<media:title type="html">Add to Reddit</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3064.png" medium="image">
			<media:title type="html">Add to Blinklist</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3074.png" medium="image">
			<media:title type="html">Add to Twitter</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3084.png" medium="image">
			<media:title type="html">Add to Technorati</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3094.png" medium="image">
			<media:title type="html">Add to Yahoo Buzz</media:title>
		</media:content>

		<media:content url="http://getsocialserver.files.wordpress.com/2009/08/gs3104.png" medium="image">
			<media:title type="html">Add to Newsvine</media:title>
		</media:content>
	</item>
	</channel>
</rss>
