<?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>Dhaval Parikh Blog Aggregator</title>
	<atom:link href="http://dhavalonrails.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dhavalonrails.wordpress.com</link>
	<description>Dhaval Parikh - Ruby on Rails Developer</description>
	<lastBuildDate>Fri, 01 Jan 2010 07:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dhavalonrails.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dhaval Parikh Blog Aggregator</title>
		<link>http://dhavalonrails.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dhavalonrails.wordpress.com/osd.xml" title="Dhaval Parikh Blog Aggregator" />
	<atom:link rel='hub' href='http://dhavalonrails.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Has the market bottomed out? , Is this the right time to buy? , How much more downside?, Should I invest now or wait?</title>
		<link>http://dhavalonrails.wordpress.com/2010/01/01/has-the-market-bottomed-out-is-this-the-right-time-to-buy-how-much-more-downside-should-i-invest-now-or-wait/</link>
		<comments>http://dhavalonrails.wordpress.com/2010/01/01/has-the-market-bottomed-out-is-this-the-right-time-to-buy-how-much-more-downside-should-i-invest-now-or-wait/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 07:00:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2010/01/01/has-the-market-bottomed-out-is-this-the-right-time-to-buy-how-much-more-downside-should-i-invest-now-or-wait/</guid>
		<description><![CDATA[So many questions , Well and there doesn’t seem to be any answer for it. When things turn bitter it takes every good out of it. Let me ease you out and help you to go in some direction which I think could be the best option. Well if you take the above questions into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=103&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"> </span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;">So many questions , Well and there doesn’t seem to be any answer for it. When things turn bitter it takes every good out of it.</span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;">Let me ease you out and help you to go in some direction which I think could be the best option.</span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Well if you take the above questions into consideration the only thing I can say is that look it as an opportunity and you will win. </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Look @ the risk reward ratio. Imagine downside to upside and rethink.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Can market go to 6000? Or there are better chances for it to go to 12,000?</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">If we see the current levels of 8000 on sensex and assume the levels. Just imagine that you have a max loss of 25% but a profit of 50% and things around 50% is more viable. <span> </span>But what makes me feel so…</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Well there are many reasons for it</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent:-.25in;font-family:courier new;"><!--[if !supportLists]--><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"><span>1)<span style="font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;font-size:7px;">    </span></span></span><span style="line-height:115%;font-size:16px;">Why a country like India should fall as much as US? Do we deserve to go down the same way as other countries I would say probably not and the reason is simple. In spite being affected due to the recession in world I think that we can withstand the pain in a much better way.</span></span><!--[endif]--></p>
<p class="MsoListParagraphCxSpLast" style="text-indent:-.25in;font-family:courier new;"><!--[if !supportLists]--><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"><span>2)<span style="font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;font-size:7px;">    </span></span></span><span style="line-height:115%;font-size:16px;">Earnings downgrade? </span></span><!--[endif]--></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Some times I feel like laughing on such things. Why? Because just few months back when we were at 22,000 no one was even talking about it and now at 8000 people are showing concerns on earnings.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Average growth of companies had been good in range of 40-50% (Avg) for the last 5 years but that doesn’t mean that we should continue to do the same and we will not because we are some where affected by the global slow down and it should reflect on earnings. But even<span>  </span>if you take that into consideration still companies in india are growing at an average rate of 30% which is not bad at all. Just see how much stocks have fallen but in that comparison do they deserve to be battered so hard? Is the slow down in earnings so severe? Does this mean that 30% growth is here to stay? Again so many things . now let me put the worst case scenario. Earning could slow down to 20-25% from 40-50% that’s for short term I mean 2-3 quarters. Currently we are in the range or 30-32% but if things gets worse it will come in the range of 25%.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Even if we grow at 25% I don’t think that there is any other country in the world where companies are showing 25% growth. So the positive thing is that we have fallen in line with the global markets but we do not deserve to fall that much. </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Now going forward when things stabilize people will again start putting money into the markets. And India would be the best place where people will find it safe to invest money in. The reason Is we have a steady growth. </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">People talk about GDP growth coming down from 9% to 5-6% now most of the FII expect growth to be in the range of 5-6% but personally I feel that we are going to exceed expectations. It will be more than what FII expect which would be a trigger for our markets to go up.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">By the time the numbers come out our markets might already be trading up 30% from the current levels. So 20% more will make it 50% up from the current levels of 8000.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Few other reasons to be bullish about this market</span></span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent:-.25in;font-family:courier new;"><!--[if !supportLists]--><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"><span>1)<span style="font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;font-size:7px;">    </span></span></span><span style="line-height:115%;font-size:16px;">Interest rates have peaked out </span></span><!--[endif]--></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;font-family:courier new;"><!--[if !supportLists]--><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"><span>2)<span style="font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;font-size:7px;">    </span></span></span><span style="line-height:115%;font-size:16px;">Crude has fallen to $60</span></span><!--[endif]--></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;font-family:courier new;"><!--[if !supportLists]--><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"><span>3)<span style="font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;font-size:7px;">    </span></span></span><span style="line-height:115%;font-size:16px;">Inflation is coming under control</span></span><!--[endif]--></p>
<p class="MsoListParagraphCxSpLast" style="text-indent:-.25in;font-family:courier new;"><!--[if !supportLists]--><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"><span>4)<span style="font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;font-size:7px;">    </span></span></span><span style="line-height:115%;font-size:16px;">Dollar appreciation will be under control going forward</span></span><!--[endif]--></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">So the concerns that seemed to be there few months back are going to be solved in next few months.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">This is not the end of the world. Its not that people will keep that money into banks because they don’t even trust banks – looking at what has happened to US banks. (It doesn’t mean that in india the banking system is not good – infact it’s the best amongst all, ofcourse there are few exceptions) but people want more returns so they are going to put money into stock markets.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Now comes other source of high returns or other sources of investments. Lets take real estate into consideration. Almost everyone feels that property rates have peaked out and soon they will see real estate price falling around 30%.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">So people are selling of their properties and investing 50% in stock markets and 50% in banks FD. </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Now going forward things will stabilize in stock markets as well as real estate market. Lets assume that real estate price have fallen 30% </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Take an example of a house which cost me 10 lakhs few months back is now available for 7 lakhs. I en cashed money @ 10 lakhs and kept 50% in FD and 50% in stock markets. i.e 5 lakhs in bank and 5 lakhs in stock markets.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Taking a period of 1 year into consideration. Lets assume that stock market are at 12,000 levels ( and there is no reason y it should not be at those level) your investments made @ 8k sensex for 5 lakhs would be of atleast 6.5 to 7 lakhs and your 10% interest on 5lakhs FD would amount to 50000 Rs. So total amount comes to 6.5 lakhs + 5.5 lakhs = 12 lakhs 20% net profit and the cost of the house you sold would be 7lakhs or less.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Now the choice is depending on market conditions you can keep the 5lakhs FD as it is @ 10% and invest back 7 lakhs in the same house you sold for 10 lakhs few months back.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Or invest 2lakhs of the money that you earned by doing all these transactions in stock markets (tension free as its not your capital)</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">5 lakhs in FD and buy a smaller house for the 5lakhs that you have. In this way your investments will be diversified and the risk might come down.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">So think I just gave you a ray of hope and the things that I feel.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">I may not be correct in what I said. But I am just talking something that’s logical in my way.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Hope you enjoyed reading this. And hope that this has helped you to get some direction if you are stuck.</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;">Njoi</span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<p class="MsoNormal" style="font-family:courier new;"><span style="font-size:100%;"><span style="line-height:115%;font-size:16px;"> </span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=103&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2010/01/01/has-the-market-bottomed-out-is-this-the-right-time-to-buy-how-much-more-downside-should-i-invest-now-or-wait/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>My all time favourites</title>
		<link>http://dhavalonrails.wordpress.com/2009/12/22/my-all-time-favourites/</link>
		<comments>http://dhavalonrails.wordpress.com/2009/12/22/my-all-time-favourites/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 18:47:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2009/12/22/my-all-time-favourites/</guid>
		<description><![CDATA[My aim here is to make all the investors get reasonable returns @ the least possible risk&#8230;.People might not agree to these views..but I have proved it again and again since past many yrs&#8230;.Here is the proof I m just writting about those stocks in which i have traded the most in terms of % [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=102&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My aim here is to make all the investors get reasonable returns @ the least possible risk&#8230;.People might not agree to these views..but I have proved it again and again since past many yrs&#8230;.<br />Here is the proof I m just writting about those stocks in which i have traded the most in terms of % turnover and also % returns. I will get you updated  all these stocks like @ wat levels one should buy and sell them in order to get the best of it.. Apart from that I will also get u the latest News updates or recent developments of these specific companies..</p>
<p>First of all the list of the ones which i like..In my next post i will tell u the reasons y I like the stocks metntioned below</p>
<p>1) <a href="http://dhavalspick.blogspot.com/2007/12/gdl.html">GDL </a><br />2) <a href="http://dhavalspick.blogspot.com/2007/12/nitin-fire.html">Nitin Fire </a><br />3) <a href="http://dhavalspick.blogspot.com/2007/12/zylog-system.html">Zylog System </a><br />4) <a href="http://dhavalspick.blogspot.com/2007/12/balrampur-chini.html">Balrampur Chini<br /></a>5) <a href="http://dhavalspick.blogspot.com/2007/12/amtek-india.html">Amtek India </a><br />6) <a href="http://dhavalspick.blogspot.com/2007/12/rain-calcining.html">Rain Calcining </a><br />7) <a href="http://dhavalspick.blogspot.com/2007/12/cesc.html">CESC</a><br /> <img src='http://s2.wp.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> <a href="http://dhavalspick.blogspot.com/2007/12/religare.html">Religare</a><br />9) <a href="http://dhavalspick.blogspot.com/2007/12/infosys.html">Infosys</a><br />10) <a href="http://dhavalspick.blogspot.com/2007/12/tata-motors.html">Tata Motors </a></p>
<p>All the stocks above have given good returns to the investors and traders if they have traded these stocks at proper levels.. This is true with almost all the stocks but these r some which i track regularly..and i continue to like them inspite some of them might have underperformed..but for me they have always outperformed..</p>
<p>So Keep watching this space i will get u updated with the stock details soon and also the research reports if possible. <strong><a href="http://dhavalspick.blogspot.com/2007/12/latest-stocks.html">Watch the comment space for each stock to get the latest updates</a></strong><br /><strong></strong><br /><strong>My Picks for 2008</strong><br /><strong>1) L&amp;T</strong><br /><strong>2) Punj lloyd</strong><br /><strong>3) Reliance Inds</strong><br /><strong>4) Gmr Infra</strong><br /><strong>5) NTPC</strong><br /><strong>6) CESC</strong><br /><strong>7) GDL</strong><br /><strong> <img src='http://s2.wp.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Infosys</strong><br /><strong>9) Godrej Inds</strong><br /><strong>10)Shiv Vani oil</strong><br /><strong></strong><br /><strong>These are the combination of midcaps and largecaps..And i wouldnt hesitate to put equal amount in all the 10 stocks..one can expect minimum 50% returns frm these stocks in this yr if traded @ proper levels..also watch out for specific news abt the stocks in the latest stocks section..</strong><br /><strong></strong><br /><strong>Keep visiting</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=102&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2009/12/22/my-all-time-favourites/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Latest Stocks</title>
		<link>http://dhavalonrails.wordpress.com/2008/12/22/latest-stocks/</link>
		<comments>http://dhavalonrails.wordpress.com/2008/12/22/latest-stocks/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 13:35:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2008/12/22/latest-stocks/</guid>
		<description><![CDATA[Here I will be posting the stocks which r not in the favourite list but they r on my radar and which looks good at particular levels..I will posting all these details on this page.. So keep visiting<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=101&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here I will be posting the stocks which r not in the favourite list but they r on my radar and which looks good at particular levels..I will posting all these details on this page..</p>
<p>So keep visiting</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=101&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2008/12/22/latest-stocks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Spam filtering in rails using Akismet</title>
		<link>http://dhavalonrails.wordpress.com/2008/12/11/spam-filtering-in-rails-using-akismet/</link>
		<comments>http://dhavalonrails.wordpress.com/2008/12/11/spam-filtering-in-rails-using-akismet/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 05:40:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[Akismet with rails]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2008/12/11/spam-filtering-in-rails-using-akismet/</guid>
		<description><![CDATA[SPAM!!!! is a very big problem for all big applications. If you are having a site which allows users to comment on ur posts and so on then you might get affected by spamming. Akismet is something which is helping us to avoid spamming on our sites. There is a rails plugin available at http://github.com/jfrench/rakismet/tree/master [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=127&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SPAM!!!! is a very big problem for all big applications. If you are having a site which allows users to comment on ur posts and so on then you might get affected by spamming.</p>
<p>Akismet is something which is helping us to avoid spamming on our sites.</p>
<p>There is a rails plugin available at http://github.com/jfrench/rakismet/tree/master</p>
<p>You can download this and configure akismet in your rails app. more information is provided in read me file of the plugin.</p>
<p>IF you want to see the actual implementation you can watch a screencast on</p>
<p>http://railscasts.com/episodes/65-stopping-spam-with-akismet</p>
<p>Hope this is some useful information for you.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=127&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2008/12/11/spam-filtering-in-rails-using-akismet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Counter Cache in rails 2.1</title>
		<link>http://dhavalonrails.wordpress.com/2008/12/10/counter-cache-in-rails-21/</link>
		<comments>http://dhavalonrails.wordpress.com/2008/12/10/counter-cache-in-rails-21/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 07:00:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[counter cache in rails]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2008/12/10/counter-cache-in-rails-21/</guid>
		<description><![CDATA[Counter cache is really an important feature in rails 2.1 . This method is really helpful when u want to keep a count on something and avoid firing sql query every time which results in more processing times. Here it goes To activate this feature, you need to take two simple steps. First, add theoption [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=126&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Counter cache is really an important feature in rails 2.1 . This method is really helpful when u want to keep a count on something and avoid firing sql query every time which results in more processing times.</p>
<p>Here it goes</p>
<p>To activate this feature, you need to take two simple steps. First, add the<br />option :counter_cache to the belongs_to declaration in the child table.</p>
<p>class LineItem  true<br />end</p>
<p>Second, in the definition of the parent table (products in this example) you<br />need to add an integer column whose name is the name of the child table with<br />_count appended.</p>
<p>create_table :products, :force =&gt; true do |t|<br />t.column :title, :string<br />t.column :description, :text<br /># &#8230;<br />t.column :line_items_count, :integer, :default =&gt; 0<br />end</p>
<p>Thats it .. Counter cache is enabled now.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=126&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2008/12/10/counter-cache-in-rails-21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Memcached with nginx on rails</title>
		<link>http://dhavalonrails.wordpress.com/2008/11/20/memcached-with-nginx-on-rails/</link>
		<comments>http://dhavalonrails.wordpress.com/2008/11/20/memcached-with-nginx-on-rails/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 15:57:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[memcache with nginx]]></category>
		<category><![CDATA[rails memcache]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2008/11/20/memcached-with-nginx-on-rails/</guid>
		<description><![CDATA[As promised in my last article i m posting the way to configure memcached with nginx. Nothing much to do again Download memcached from http://www.danga.com/memcached/download.bml you might also require a memcache lib available on http://tangent.org/552/libmemcached.html install both of them and the memcached command will be available to you just type in this on the terminal [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=125&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As promised in my last article i m posting the way to configure memcached with nginx. Nothing much to do again</p>
<p>Download memcached from http://www.danga.com/memcached/download.bml you might also require a memcache lib available on http://tangent.org/552/libmemcached.html install both of them and the memcached command will be available to you</p>
<p>just type in this on the terminal</p>
<pre>memcached -p 11211</pre>
<p>Thats it..now memcache is on. Just few more changes in the nginx.conf file and you r ready to zoom your rails app</p>
<p>you just need to write this</p>
<p>
<pre class="ruby">location /dynamic_request <span style="color:rgb(0,102,0);font-weight:bold;">{</span>   <span style="color:rgb(0,128,0);font-style:italic;"># append an extenstion for proper MIME type detection</span>         <span style="color:rgb(153,102,204);font-weight:bold;">if</span> <span style="color:rgb(0,102,0);font-weight:bold;">(</span>$args ~* <span style="color:rgb(204,0,102);font-weight:bold;">format</span>=json<span style="color:rgb(0,102,0);font-weight:bold;">)</span> <span style="color:rgb(0,102,0);font-weight:bold;">{</span> rewrite ^/dynamic_request/?<span style="color:rgb(0,102,0);font-weight:bold;">(</span>.<span style="color:rgb(153,0,204);">*</span><span style="color:rgb(0,102,0);font-weight:bold;">)</span>$ /dynamic_request.<span style="color:rgb(153,0,204);">js</span>$<span style="color:rgb(0,102,102);">1</span> <span style="color:rgb(153,102,204);font-weight:bold;">break</span>; <span style="color:rgb(0,102,0);font-weight:bold;">}</span>         <span style="color:rgb(153,102,204);font-weight:bold;">if</span> <span style="color:rgb(0,102,0);font-weight:bold;">(</span>$args ~* <span style="color:rgb(204,0,102);font-weight:bold;">format</span>=xml<span style="color:rgb(0,102,0);font-weight:bold;">)</span>  <span style="color:rgb(0,102,0);font-weight:bold;">{</span> rewrite ^/dynamic_request/?<span style="color:rgb(0,102,0);font-weight:bold;">(</span>.<span style="color:rgb(153,0,204);">*</span><span style="color:rgb(0,102,0);font-weight:bold;">)</span>$ /dynamic_request.<span style="color:rgb(153,0,204);">xml</span>$<span style="color:rgb(0,102,102);">1</span> <span style="color:rgb(153,102,204);font-weight:bold;">break</span>; <span style="color:rgb(0,102,0);font-weight:bold;">}</span>

         memcached_pass <span style="color:rgb(0,102,102);">127.0</span><span style="color:rgb(0,102,102);">.0</span><span style="color:rgb(0,102,102);">.1</span>:<span style="color:rgb(0,102,102);">11211</span>;

        error_page <span style="color:rgb(0,102,102);">404</span> = <span style="color:rgb(0,102,255);font-weight:bold;">@dynamic_request</span>;

}

Also you might require to set the uri so do this

<span class="line">    <a href="http://wiki.codemongers.com/NginxHttpRewriteModule#set">set</a>  <span class="ID">$memcached_key</span>  <span class="ID">$uri</span>;</span><span style="color:rgb(0,102,0);font-weight:bold;"></span></pre>
<p>Ok thats done no restart nginx service and your memcache + mongrel cluster with gzip on will be running and ur rails app will be zoooooooooooooming</p>
<p>Njoi</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=125&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2008/11/20/memcached-with-nginx-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Nginx configuration, expiry headers and gzip component with rails &#8211; nginx.conf</title>
		<link>http://dhavalonrails.wordpress.com/2008/11/19/nginx-configuration-expiry-headers-and-gzip-component-with-rails-nginxconf/</link>
		<comments>http://dhavalonrails.wordpress.com/2008/11/19/nginx-configuration-expiry-headers-and-gzip-component-with-rails-nginxconf/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 12:07:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[nginx configuration with rails]]></category>
		<category><![CDATA[nginx.conf]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2008/11/19/nginx-configuration-expiry-headers-and-gzip-component-with-rails-nginxconf/</guid>
		<description><![CDATA[Just configured nginx server with rails and here is the nginx.conf file. It also includes gzip component and header expiry which is advisable as per the yslow tool. # user and group to run as # number of nginx workersworker_processes 4; # pid of nginx master process#pid /var/run/nginx.pid; # Number of worker connections. 1024 is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=124&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just configured nginx server with rails and here is the nginx.conf file. It also includes gzip component and header expiry which is advisable as per the yslow tool.</p>
<p># user and group to run as</p>
<p># number of nginx workers<br />worker_processes  4;</p>
<p># pid of nginx master process<br />#pid /var/run/nginx.pid;</p>
<p># Number of worker connections. 1024 is a good default<br />events {<br />worker_connections 1024;<br />}</p>
<p># start the http module where we config http access.<br />http {<br /># pull in mime-types. You can break out your config<br /># into as many include&#8217;s as you want to make it cleaner<br />include mime.types;</p>
<p># set a default type for the rare situation that<br /># nothing matches from the mimie-type include<br />default_type  application/octet-stream;</p>
<p># configure log format<br />log_format main &#8216;$remote_addr &#8211; $remote_user [$time_local] &#8216;<br />                &#8216;&#8221;$request&#8221; $status  $body_bytes_sent &#8220;$http_referer&#8221; &#8216;<br />                &#8216;&#8221;$http_user_agent&#8221; &#8220;$http_x_forwarded_for&#8221;&#8216;;</p>
<p># main access log<br />access_log  /var/log/nginx_access.log  main;</p>
<p># main error log<br />error_log  /var/log/nginx_error.log debug;</p>
<p># no sendfile on OSX<br />sendfile on;</p>
<p># These are good default values.<br />tcp_nopush        on;<br />tcp_nodelay       off;<br /># output compression saves bandwidth<br />gzip            on;<br />gzip_buffers 16 8k;<br />gzip_http_version 1.0;<br />gzip_comp_level 9;<br />gzip_proxied any;<br />gzip_types      text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript application/css;</p>
<p># this is where you define your mongrel clusters.<br /># you need one of these blocks for each cluster<br /># and each one needs its own name to refer to it later.<br />upstream mongrel {<br />  server <a href="http://127.0.0.1:8000/" target="_blank">127.0.0.1:8000</a>;<br />  server <a href="http://127.0.0.1:8001/" target="_blank">127.0.0.1:8001</a>;<br />  server <a href="http://127.0.0.1:8002/" target="_blank">127.0.0.1:8002</a>;<br />}</p>
<p># the server directive is nginx&#8217;s virtual host directive.<br />server {<br />  # port to listen on. Can also be set to an IP:PORT<br />  listen 80;</p>
<p>  # Set the max size for file uploads to 50Mb<br />  client_max_body_size 50M;</p>
<p>  # sets the domain[s] that this vhost server requests for</p>
<p>  # doc root<br />  root /sites/sitename/public;</p>
<p>  # vhost specific access log<br />  access_log  /var/log/nginx.vhost.access.
<div id="g" class="ArwC7c ckChnd">log  main;</p>
<p>  # this rewrites all the requests to the maintenance.html<br />  # page if it exists in the doc root. This is for capistrano&#8217;s<br />  # disable web task<br />#    if (-f $document_root/system/maintenance.html) {<br />#     rewrite  ^(.*)$  /system/maintenance.html last;<br />#    break;<br />#  }</p>
<p>  location / {<br />    # needed to forward user&#8217;s IP address to rails<br />    proxy_set_header  X-Real-IP  $remote_addr;</p>
<p>    # needed for HTTPS<br />    proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;<br />    proxy_set_header Host $http_host;<br />    proxy_redirect false;<br />    proxy_max_temp_file_size 0;</p>
<p>    if (-f $request_filename) {<br />      expires      max;<br />      break;<br />    }</p>
<p>    # If the file exists as a static file serve it directly without<br />    # running all the other rewite tests on it<br />    if (-f $request_filename) {<br />      break;<br />    }</p>
<p>    # check for index.html for directory index<br />    # if its there on the filesystem then rewite<br />    # the url to add /index.html to the end of it<br />    # and then break to send it to the next config rules.<br />    if (-f $request_filename/index.html) {<br />      rewrite (.*) $1/index.html break;<br />    }</p>
<p>    # this is the meat of the rails page caching config<br />    # it adds .html to the end of the url and then checks<br />    # the filesystem for that file. If it exists, then we<br />    # rewite the url to have explicit .html on the end<br />    # and then send it on its way to the next config rule.<br />    # if there is no file on the fs then it sets all the<br />    # necessary headers and proxies to our upstream mongrels<br />    if (-f $request_filename.html) {<br />      rewrite (.*) $1.html break;<br />    }</p>
<p>    if (!-f $request_filename) {<br />      proxy_pass <a href="http://mongrel/" target="_blank">http://mongrel</a>;</p>
<p>      break;<br />    }</p>
<p>  }</p>
<p>  error_page   500 502 503 504  /500.html;<br />  location = /500.html {<br />    root  /sites/sitename/public;<br />  }<br />}</p>
<p>}</p>
<p>In my next article i will also post how to configure memcache with rails and nginx</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=124&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2008/11/19/nginx-configuration-expiry-headers-and-gzip-component-with-rails-nginxconf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Load Balancing with pound and Mongrel Clustering</title>
		<link>http://dhavalonrails.wordpress.com/2008/11/18/load-balancing-with-pound-and-mongrel-clustering/</link>
		<comments>http://dhavalonrails.wordpress.com/2008/11/18/load-balancing-with-pound-and-mongrel-clustering/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 02:36:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[mongrel clustering and pound]]></category>
		<category><![CDATA[pound with mongrel cluster]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2008/11/18/load-balancing-with-pound-and-mongrel-clustering/</guid>
		<description><![CDATA[In my previous post I have written about mongrel clustering.. Now if you want to add the load balancing feature to it you may use pound. Pound is a software HTTP Load Balancer and Reverse Proxy. These are the steps how you can configure pound with mongrel cluster. First configure mongrel cluster as per the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=123&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my previous post I have written about mongrel clustering..</p>
<p>Now if you want to add the load balancing feature to it you may use pound. <em>Pound</em> is a software <em>HTTP</em> Load Balancer and Reverse Proxy.</p>
<p>These are the steps how you can configure pound with mongrel cluster. First configure mongrel cluster as per the previous post.</p>
<p>Then download and install pound from http://www.apsis.ch/pound/Pound-2.0.9.tgz</p>
<p>Now the configuration step</p>
<p>Pound.cfg needs to be configured which will reside in <strong>/etc/pound/pound.cfg</p>
<p>also a symlink is required to be made</p>
<p></strong>
<pre><code>$ sudo ln -s /etc/pound/pound.cfg /usr/local/etc/pound.cfg

A basic version of pound.cfg will look something like this

</code><code>User        "www-data"Group       "www-data"LogLevel    2Alive       30

ListenHTTP Address 123.123.123.123 Port    80End

Service HeadRequire "Host:.*www.dhavalparikh.co.in.*" BackEnd     Address 127.0.0.1     Port    8080  End Session     Type    BASIC     TTL     300   EndEnd

Service URL ".*.mov" BackEnd     Address 69.12.146.109     Port    8081  End Session     Type    BASIC     TTL     300   EndEnd

Service # Catch All BackEnd     Address 127.0.0.1     Port    9000  End   BackEnd     Address 127.0.0.1     Port    9001 End Session     Type    BASIC     TTL     300 End

Then start pound with the following command

</code><code>$ sudo /etc/init.d/pound start</code><code>

finally you will have mongrel cluster setup done so start mongrel cluster

</code><code>sudo mongrel_rails cluster::start

Thats it you mongrel cluster with pound configuration is done..njoi the power of load balancing</code></pre>
<p><em></em><em></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=123&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2008/11/18/load-balancing-with-pound-and-mongrel-clustering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Mongrel Clustering with Rails</title>
		<link>http://dhavalonrails.wordpress.com/2008/11/09/mongrel-clustering-with-rails/</link>
		<comments>http://dhavalonrails.wordpress.com/2008/11/09/mongrel-clustering-with-rails/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 03:43:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[mongrel clustering]]></category>
		<category><![CDATA[mongrel clustering with rails]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2008/11/09/mongrel-clustering-with-rails/</guid>
		<description><![CDATA[Hey every one wants to make their site run faster..and there are many ways like caching (page caching, fragment caching, method caching) so on. One other way is using mongrel cluster which will run multiple instance of mongrel on you server which will help to improve website speed to a huge extent. Let me tell [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=122&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:100%;">Hey every one wants to make their site run faster..and there are many ways like caching (page caching, fragment caching, method caching) so on. One other way is using mongrel cluster which will run multiple instance of mongrel on you server which will help to improve website speed to a huge extent.</p>
<p>Let me tell you the steps for doing mongrel clustering .. its really easy..</p>
<p>Step 1 : &#8211; Install mongrel cluster gem</p>
<p>sudo gem install mongrel_cluster</p>
<p>Step 2 : &#8211; configure cluster and run the config file which will reside in config/mongrel_cluster.yml<br /><span style="font-family:monospace;"><br /></span></span>
<pre><span style="font-size:100%;"><code>mongrel_rails cluster::configure -p 8000 -e production -a 127.0.0.1

Well thats it now here you go

</code>Start the cluster:<code>mongrel_rails cluster::start</code>

Restart the cluster:<code>mongrel_rails cluster::restart</code>

Stop the cluster:

<code>mongrel_rails cluster::stop</code></span></pre>
<p><span style="font-size:100%;"><br /></span>
<pre><span style="font-size:100%;"><code>Well just try these steps and if you are not able to configure it just post acomment and i will get back to you.

Enjoy better speed <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </code></span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=122&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2008/11/09/mongrel-clustering-with-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Tough times ahead &#8211; ITs WORLD RECESSION</title>
		<link>http://dhavalonrails.wordpress.com/2008/10/11/tough-times-ahead-its-world-recession/</link>
		<comments>http://dhavalonrails.wordpress.com/2008/10/11/tough-times-ahead-its-world-recession/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 14:03:00 +0000</pubDate>
		<dc:creator>dhavalonrails</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dhavalonrails.wordpress.com/2008/10/11/tough-times-ahead-its-world-recession/</guid>
		<description><![CDATA[Every where people are just talking about recession in US economy . Where ever on what ever sites you go people are just posting negative comments about companies which used to be favorites just few months back The buzz words are seeing a slow down. Some of the examples that I came across on some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=89&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every where people are just talking about recession in US economy . Where ever on what ever sites you go people are just posting negative comments about companies which used to be favorites just few months back</p>
<p>The buzz words are seeing a slow down. Some of the examples that I came across on some of the articles I read</p>
<p>1) <a href="http://news.cnet.com/8301-13526_3-10060747-27.html">iPod dying? It&#8217;s already dead</a></p>
<p>2)<a href="http://news.cnet.com/8301-17939_109-10063020-2.html"><span style="font-weight:bold;"></span>11 troubled Web companies: The next Kozmos?</a> where people are talking about twitter, skype and other big names which were used to be widely used all over are now getting some cause of worry</p>
<p>3)<a href="http://news.cnet.com/8301-13505_3-10063147-16.html">Open-source innovation in a recession</a></p>
<p>4) <a href="http://news.cnet.com/8301-1001_3-10063199-92.html">Week in review: Tech stocks tumble</a><br />tech stocks falling like a pack of cards every where there is a slow down no matter which country you see.</p>
<p>5) <a href="http://news.cnet.com/8301-13924_3-10063229-64.html">Chip forecasts head south</a></p>
<p>6) <a href="http://news.cnet.com/8301-13924_3-10062386-64.html">Micron to cut workforce by 15 percent, slash flash output</a></p>
<p>7) <a href="http://news.cnet.com/8301-1001_3-10061872-92.html">The tech downturn: How long and how bad?</a></p>
<p>While dollar appreciating was a bit of a support for some of the IT biggies, but on the other hand default payments is affecting the revenues. They are forced to reduce number of employees</p>
<p>companies are not getting big contracts like before. People have reduced spendings.</p>
<p>So everyone is just waiting and watching WHAT WILL HAPPEN NEXT ? No one knows actually.. Lets see wats the road ahead especially for IT companies</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhavalonrails.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhavalonrails.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhavalonrails.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhavalonrails.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhavalonrails.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhavalonrails.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhavalonrails.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhavalonrails.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhavalonrails.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhavalonrails.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhavalonrails.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhavalonrails.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhavalonrails.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhavalonrails.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dhavalonrails.wordpress.com&amp;blog=2824682&amp;post=89&amp;subd=dhavalonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dhavalonrails.wordpress.com/2008/10/11/tough-times-ahead-its-world-recession/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ddc951b9a7d7110721f84c7577e0254c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dhavalonrails</media:title>
		</media:content>
	</item>
	</channel>
</rss>
