<?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>Kunal Bharati</title>
	<atom:link href="http://bharatikunal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bharatikunal.wordpress.com</link>
	<description>kunal@localhost$</description>
	<lastBuildDate>Thu, 05 Jan 2012 05:56:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bharatikunal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/2cb1da7dc2d132c970d0447e1d5ab419?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Kunal Bharati</title>
		<link>http://bharatikunal.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bharatikunal.wordpress.com/osd.xml" title="Kunal Bharati" />
	<atom:link rel='hub' href='http://bharatikunal.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Rs.20,000 Only</title>
		<link>http://bharatikunal.wordpress.com/2011/09/09/rs-20000-only/</link>
		<comments>http://bharatikunal.wordpress.com/2011/09/09/rs-20000-only/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 07:43:11 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=367</guid>
		<description><![CDATA[Few days ago I and Kruti had been to IDBI bank (Virar branch) to deposit cash for the tour this year end. We are 2 couples and minimum amount payable for the tour package was Rs. 25000. We entered the bank and everything looked good, nicely painted in green which matched IDBI bank&#8217;s logo. We [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=367&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Few days ago <a href="http://bharatikunal.wordpress.com/2010/07/06/married/">I and Kruti</a> had been to IDBI bank (Virar branch) to deposit cash for the tour this year end. We are 2 couples and minimum amount payable for the tour package was Rs. 25000. We entered the bank and everything looked good, nicely painted in green which matched IDBI bank&#8217;s logo.</p>
<p>We went to the corner where 4-5 people were filling the slips to deposit cash/cheque. And when it was our turn there wasn&#8217;t a slip left for us. We asked the watchman who was standing near the door. And without saying anything he directed us to the counter where we can find the slip book. We got the slip book and started filling a slip of Rs. 25000 cash.</p>
<p>After filling the form we were standing in a queue. After about 15 mins it was our number. I handed over the slip the person who was collecting it. He look at us and said:</p>
<blockquote><p>Amount greater than Rs. 20,000 is not allowed!</p></blockquote>
<p><strong>I and Kruti</strong>: What??</p>
<p><strong>IDBI guy</strong>: Yes. Amount more than Rs.20,000 is not allowed for accounts which are out of state.</p>
<p>( The tour company was from Kerela )</p>
<p><strong>Me</strong>: We are doing a tour. And it requires us to pay Rs.25,000 amount in advance.</p>
<p><strong>IDBI guy</strong>: Ok. Let me talk to the manager.</p>
<p>He dialed some extension and started talking:</p>
<blockquote><p>Madam, I have someone&#8230; BLAH BLAH BLAH..<br />
hmm.. Ok.. So can we?.. Oh ok</p></blockquote>
<p>Then</p>
<p><strong>IDBI guy</strong>: Sorry sir we cant do that. We can only do it for &#8220;max&#8221; Rs. 20,000. </p>
<p><strong>Me</strong>: Ok.</p>
<p>We left the queue. Thought for sometime. Then filled 2 slips, first with Rs. 15000 and second with Rs. 10000. First slip had my name and second slip was with Kruti&#8217;s name, and in queue again.</p>
<p>Soon it was our number and I gave him 2 slips.</p>
<p><strong>IDBI guy</strong>: Sir, as I said before we cant do this.</p>
<p><strong>Me</strong>: Now whats the problem? These are 2 different slips with the name of 2 different people.</p>
<p><strong>IDBI guy</strong>: For one account, per day, out of state, we can only do Rs. 20,000 transaction.</p>
<p><strong>Me</strong>: Ohho.. So you mean if there is a second couple who has to pay today after me, they cant go to honeymoon because of this?</p>
<p><strong>IDBI guy</strong>: Yes. This account can only do Rs. 20,000 transaction &#8220;per day&#8221;.</p>
<p>At this moment I wanted to ROTFL.</p>
<p><strong>Me</strong>: What kind of rule is this? And can you tell me where is this written?</p>
<p>Some lady voice from some meters away: </p>
<blockquote><p>Hey, you are not suppose to argue there, whatever it is come here and talk</p></blockquote>
<p>We went there and explained it to her.</p>
<p><strong>IDBI lady</strong>: Whatever it is.. As we said we cant do it. This is a rule.. BLAH BLAH.. You are not suppose to argue.. BLAH BLAH</p>
<p>( AS IF THAT IS THE BEST WAY TO SAY THAT )</p>
<p><strong>Kruti to Me</strong>: Lets just fill up Rs. 20,000 and call our tour guy and say we can only do Rs. 20,000 because of bank.</p>
<p>There was no reason to disagree.</p>
<p>Just filled the new slip of Rs. 20,000 and out of there.</p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/life/'>Life</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/life-2/'>life</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/367/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=367&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2011/09/09/rs-20000-only/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
		<item>
		<title>Zero balance account</title>
		<link>http://bharatikunal.wordpress.com/2011/09/08/zero-balance-account/</link>
		<comments>http://bharatikunal.wordpress.com/2011/09/08/zero-balance-account/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 07:24:02 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=370</guid>
		<description><![CDATA[This is the discussion I had with Bank of Baroda, Borivli Branch on a phone call: Me: Hello BoB guy: Hello? Me: Hi, I wanted to enquire why did my cheque bounced. BoB guy: Ok. What was the amount? Me: It was the whole amount I had in account. I have a zero balance account. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=370&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the discussion I had with Bank of Baroda, Borivli Branch on a phone call:</p>
<p><strong>Me</strong>: Hello<br />
<strong>BoB guy</strong>: Hello?<br />
<strong>Me</strong>: Hi, I wanted to enquire why did my cheque bounced.<br />
<strong>BoB guy</strong>: Ok. What was the amount?<br />
<strong>Me</strong>: It was the whole amount I had in account. I have a zero balance account.<br />
<strong>BoB guy</strong>: You cant do that. You need atleast Rs. 1000/- balance in account.<br />
<strong>Me</strong>: But its a zero balance account!!<br />
<strong>BoB guy</strong>: Yes. But zero balance account should have Rs. 1000/- balance.</p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/life/'>Life</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/life-2/'>life</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/370/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=370&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2011/09/08/zero-balance-account/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
		<item>
		<title>Sqlite based HTTP authentication for nginx</title>
		<link>http://bharatikunal.wordpress.com/2011/04/14/sqlite-based-http-authentication-for-nginx/</link>
		<comments>http://bharatikunal.wordpress.com/2011/04/14/sqlite-based-http-authentication-for-nginx/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 11:01:20 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=364</guid>
		<description><![CDATA[I have written a small module to nginx which adds Sqlite support to HTTP authentication. The module is pushed on Github. The module works with nginx version 0.8.x. I had last tested it with version 0.8.4. Anyone using nginx version 1.0, please try it out and let me know whether it works or not. Filed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=364&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have written a small module to <a href="http://nginx.org/">nginx</a> which adds <a href="http://www.sqlite.org/">Sqlite</a> support to HTTP authentication.</p>
<p>The module is pushed on <a href="https://github.com/kunal/sqlite-http-basic-auth-nginx-module">Github</a>.</p>
<p>The module works with nginx version 0.8.x. I had last tested it with version 0.8.4.</p>
<p>Anyone using nginx version 1.0, please try it out and let me know whether it works or not.</p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/foss/'>FOSS</a>, <a href='http://bharatikunal.wordpress.com/category/nginx/'>nginx</a>, <a href='http://bharatikunal.wordpress.com/category/programming/'>Programming</a>, <a href='http://bharatikunal.wordpress.com/category/web/'>Web</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/foss/'>FOSS</a>, <a href='http://bharatikunal.wordpress.com/tag/nginx/'>nginx</a>, <a href='http://bharatikunal.wordpress.com/tag/web/'>Web</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/364/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=364&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2011/04/14/sqlite-based-http-authentication-for-nginx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
		<item>
		<title>Sinatra and MongoDB App</title>
		<link>http://bharatikunal.wordpress.com/2011/03/29/sinatra-and-mongodb-app/</link>
		<comments>http://bharatikunal.wordpress.com/2011/03/29/sinatra-and-mongodb-app/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 05:35:01 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=360</guid>
		<description><![CDATA[I have written a sample app using Sinatra and a database as MongoDB. The aim of the project was to learn Ruby and use one of the NoSQL databases. I have pushed the code to GitHub. Filed under: Programming, Ruby Tagged: programming, ruby<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=360&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have written a sample app using Sinatra and a database as MongoDB. The aim of the project was to learn Ruby and use one of the NoSQL databases. </p>
<p>I have pushed the code to <a href="https://github.com/kunal/sinatra-mongodb-sample">GitHub</a>.</p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/programming/'>Programming</a>, <a href='http://bharatikunal.wordpress.com/category/ruby/'>Ruby</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/programming-2/'>programming</a>, <a href='http://bharatikunal.wordpress.com/tag/ruby-2/'>ruby</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=360&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2011/03/29/sinatra-and-mongodb-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: Forcing traffic to https</title>
		<link>http://bharatikunal.wordpress.com/2010/12/03/howto-forcing-traffic-to-https/</link>
		<comments>http://bharatikunal.wordpress.com/2010/12/03/howto-forcing-traffic-to-https/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 10:57:59 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Amazon Aws]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=340</guid>
		<description><![CDATA[Here I consider two cases for forcing all the traffic to https and I assume you are using Apache Webserver. Case A) Without LoadBalancer Suppose you are running a site without a load balancer. Add these lines to your Apache configuration file: Suppose you have Virtualhost entries for Http (port 80) and Https (port 443) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=340&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here I consider two cases for forcing all the traffic to https and I assume you are using Apache Webserver.</p>
<p><strong>Case A) Without LoadBalancer</strong><br />
Suppose you are running a site without a load balancer. Add these lines to your Apache configuration file:</p>
<p><pre class="brush: bash;">
RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</pre></p>
<p>Suppose you have Virtualhost entries for Http (port 80) and Https (port 443) then add this to VirtualHost entry of Http.</p>
<p><strong>Case B) With LoadBalancer</strong><br />
Consider a scenario where you have a Loadbalancer and the communication between loadbalancer and server takes place like this:<br />
1. When a request comes on port 80 of the loadbalancer it communicates with server on port 80 (i.e. LB Port 80 ==&gt; Server Port 80)<br />
2. And when a request comes on port 443 of the loadbalancer it communicates with server on port 80 (i.e. LB Port 443 ==&gt; Server Port 80)</p>
<p>Here servers are always working on port 80.</p>
<p>If you are using Apache as a LoadBalancer you need to add this to the VirtualHost entry of https:</p>
<p><pre class="brush: bash;">
RequestHeader set X-Forwarded-Proto &quot;https&quot;
</pre></p>
<p>On the server add this to the VirtualHost entry of http:</p>
<p><pre class="brush: bash;">
RewriteEngine On

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</pre></p>
<p>This will forward all the incoming requests on http to https.</p>
<p>This also works with Amazon&#8217;s Elastic Load Balancer as it has a support for X-Forwarded-Proto and X-Forwarded-Port.</p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/apache/'>Apache</a>, <a href='http://bharatikunal.wordpress.com/category/cloud/'>Cloud</a>, <a href='http://bharatikunal.wordpress.com/category/tips-n-tricks/'>Tips n Tricks</a>, <a href='http://bharatikunal.wordpress.com/category/web/'>Web</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/amazon-aws/'>Amazon Aws</a>, <a href='http://bharatikunal.wordpress.com/tag/apache-2/'>apache</a>, <a href='http://bharatikunal.wordpress.com/tag/cloud/'>Cloud</a>, <a href='http://bharatikunal.wordpress.com/tag/howto/'>howto</a>, <a href='http://bharatikunal.wordpress.com/tag/web/'>Web</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/340/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=340&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2010/12/03/howto-forcing-traffic-to-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: ReverseProxy to https in Apache</title>
		<link>http://bharatikunal.wordpress.com/2010/12/01/howto-reverseproxy-to-https-in-apache/</link>
		<comments>http://bharatikunal.wordpress.com/2010/12/01/howto-reverseproxy-to-https-in-apache/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 11:39:09 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=333</guid>
		<description><![CDATA[To enable reverse proxy (for http and https) you need these modules enabled in Apache: mod_proxy mod_proxy_http mod_proxy_connect When you reverse proxy requests to http, add following lines to Apache configuration file: This is proxy all the content on /abc to http://test.com/xyz. So when you access /abc you will see the contents of http://test.com/xyz. But [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=333&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To enable reverse proxy (for http and https) you need these modules enabled in Apache:</p>
<ul>
<li>mod_proxy</li>
<li>mod_proxy_http</li>
<li>mod_proxy_connect</li>
</ul>
<p>When you reverse proxy requests to http, add following lines to Apache configuration file:</p>
<p><pre class="brush: bash;">
ProxyPass /abc http://test.com/xyz
ProxyPassReverse http://test.com/xyz /abc
</pre></p>
<p>This is proxy all the content on /abc to http://test.com/xyz. So when you access /abc you will see the contents of http://test.com/xyz.</p>
<p>But to reverse proxy https content you need a CA certificate. The CA certificate is the same certificate that the server uses to serve https content.<br />
You need to add these lines in Apache configuration file:</p>
<p><pre class="brush: bash;">
SSLProxyEngine On
SSLProxyCACertificateFile ssl/certificate.pem
ProxyPass /abc https://test.com/xyz
ProxyPassReverse https://test.com/xyz /abc
</pre></p>
<p>For more details: <a href="http://www.apachetutor.org/admin/reverseproxies">http://www.apachetutor.org/admin/reverseproxies</a></p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/apache/'>Apache</a>, <a href='http://bharatikunal.wordpress.com/category/tips-n-tricks/'>Tips n Tricks</a>, <a href='http://bharatikunal.wordpress.com/category/web/'>Web</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/apache-2/'>apache</a>, <a href='http://bharatikunal.wordpress.com/tag/howto/'>howto</a>, <a href='http://bharatikunal.wordpress.com/tag/web/'>Web</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/333/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=333&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2010/12/01/howto-reverseproxy-to-https-in-apache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
		<item>
		<title>scp as a background process</title>
		<link>http://bharatikunal.wordpress.com/2010/10/20/scp-as-a-background-process/</link>
		<comments>http://bharatikunal.wordpress.com/2010/10/20/scp-as-a-background-process/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 12:33:28 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[tips n tricks]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=323</guid>
		<description><![CDATA[To execute any linux command in background we use nohup as follows: But the problem with scp command is that it prompts for the password (if password authentication is used). So to make scp execute as a background process do this: Then press ctrl + z which will temporarily suspend the command, then enter the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=323&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To execute any linux command in background we use nohup as follows:</p>
<p><pre class="brush: bash;">
$ nohup SOME_COMMAND &amp;
</pre></p>
<p>But the problem with scp command is that it prompts for the password (if password authentication is used). So to make scp execute as a background process do this:</p>
<p><pre class="brush: bash;">
$ nohup scp file_to_copy user@server:/path/to/copy/the/file &gt; nohup.out 2&gt;&amp;1
</pre></p>
<p>Then press <strong>ctrl + z</strong> which will temporarily suspend the command, then enter the command:</p>
<p><pre class="brush: bash;">
$ bg
</pre></p>
<p>This will start executing the command in backgroud</p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/linux/'>Linux</a>, <a href='http://bharatikunal.wordpress.com/category/tips-n-tricks/'>Tips n Tricks</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/linux/'>Linux</a>, <a href='http://bharatikunal.wordpress.com/tag/tips-n-tricks-2/'>tips n tricks</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=323&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2010/10/20/scp-as-a-background-process/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
		<item>
		<title>How FOSS works?</title>
		<link>http://bharatikunal.wordpress.com/2010/10/07/how-foss-works/</link>
		<comments>http://bharatikunal.wordpress.com/2010/10/07/how-foss-works/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 07:35:39 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Falcon]]></category>
		<category><![CDATA[FOSS]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=314</guid>
		<description><![CDATA[I am not doing advocacy or going to write 1000 lines article on how FOSS works. This one is from Falcon IRC. Here MaikB is the one who is using FalconGtk bindings, Nikopol is the one who is developing it. &#60;MaikB&#62; Nikopol: After a gtk update falcon-gtk fails to build. I&#8217;m investigating.. &#60;MaikB&#62; evidently /usr/include/gdk-pixbuf-2.0 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=314&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am not doing advocacy or going to write 1000 lines article on how FOSS works.</p>
<p>This one is from Falcon IRC. Here MaikB is the one who is using FalconGtk bindings, Nikopol is the one who is developing it.</p>
<blockquote><p>&lt;MaikB&gt; Nikopol: After a gtk update falcon-gtk fails to build. I&#8217;m investigating..<br />
&lt;MaikB&gt; evidently /usr/include/gdk-pixbuf-2.0 is missing at the list if include directories<br />
&lt;MaikB&gt; My guess: its FindGTK2.cmake fault<br />
&lt;MaikB&gt; oh dear<br />
&lt;MaikB&gt; I&#8217;ll put some work into falcon-gtk&#8217;s build scripts<br />
&lt;MaikB&gt; https://bugzilla.novell.com/show_bug.cgi?id=635439<br />
&lt;MaikB&gt; its fixed in cmake-2.8.3 http://public.kitware.com/Bug/view.php?id=11186<br />
&lt;MaikB&gt; but we have to ship our own FindGTK2.cmake anyway, since it doesn&#8217;t cover the arm crossbuilding<br />
&lt;MaikB&gt; Nikopol: fixed</p></blockquote>
<p>By the time Nikopol is free, the problem is fixed.</p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/falcon/'>Falcon</a>, <a href='http://bharatikunal.wordpress.com/category/foss/'>FOSS</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/falcon/'>Falcon</a>, <a href='http://bharatikunal.wordpress.com/tag/foss/'>FOSS</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=314&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2010/10/07/how-foss-works/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
		<item>
		<title>Falcon Programming Language</title>
		<link>http://bharatikunal.wordpress.com/2010/10/04/falcon-programming-language/</link>
		<comments>http://bharatikunal.wordpress.com/2010/10/04/falcon-programming-language/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 10:42:48 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Falcon]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=301</guid>
		<description><![CDATA[I have started contributing to the Falcon Programming Language &#8220;With so many languages around, why start to write another one?&#8221; Answers : About Falcon and Giancarlo at Geek of the Week. More posts coming soon Filed under: Falcon Tagged: Falcon<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=301&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://falconpl.org/" target="_blank"><img src="http://falconpl.org/images/logo.png" alt="Falcon Programming Language" /></a><br />
I have started contributing to the <a href="http://www.falconpl.org" target="_blank">Falcon</a> Programming Language <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8220;With so many languages around, why start to write another one?&#8221;<br />
Answers : <a href="http://falconpl.org/index.ftd?page_id=about" target="_blank">About Falcon</a> and <a href="http://www.simple-talk.com/opinion/opinion-pieces/giancarlo-niccolai-geek-of-the-week/" target="_blank">Giancarlo at Geek of the Week</a>.</p>
<p>More posts coming soon <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/falcon/'>Falcon</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/falcon/'>Falcon</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/301/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=301&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2010/10/04/falcon-programming-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>

		<media:content url="http://falconpl.org/images/logo.png" medium="image">
			<media:title type="html">Falcon Programming Language</media:title>
		</media:content>
	</item>
		<item>
		<title>Android: Passing data to an Activity</title>
		<link>http://bharatikunal.wordpress.com/2010/08/24/android-passing-data-to-an-activity/</link>
		<comments>http://bharatikunal.wordpress.com/2010/08/24/android-passing-data-to-an-activity/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 11:43:38 +0000</pubDate>
		<dc:creator>kunalbharati</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://bharatikunal.wordpress.com/?p=295</guid>
		<description><![CDATA[In my recent Android project there was a requirement to pass data to other Activity. You can start the activity using following code: To pass around the data to other activity we can use putExtra() method of Intent class: In the OtherActivity.class get the data using getIntent() method: Filed under: Android, Java Tagged: Android, Java<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=295&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my recent Android project there was a requirement to pass data to other Activity.<br />
You can start the activity using following code:</p>
<p><pre class="brush: java;">
Intent i = new Intent(context, OtherActivity.class);
context.startActivity(i);
</pre></p>
<p>To pass around the data to other activity we can use putExtra() method of Intent class:</p>
<p><pre class="brush: java;">
Intent i = new Intent(context, OtherActivity.class);
i.putExtra(&quot;key1&quot;, &quot;value1&quot;);
i.putExtra(&quot;key2&quot;, &quot;value2&quot;);
context.startActivity(i);
</pre></p>
<p>In the OtherActivity.class get the data using getIntent() method:</p>
<p><pre class="brush: java;">
String value1 = getIntent().getExtras().getString(&quot;key1&quot;);
String value2 = getIntent().getExtras().getString(&quot;key2&quot;);
</pre></p>
<br />Filed under: <a href='http://bharatikunal.wordpress.com/category/android/'>Android</a>, <a href='http://bharatikunal.wordpress.com/category/java/'>Java</a> Tagged: <a href='http://bharatikunal.wordpress.com/tag/android/'>Android</a>, <a href='http://bharatikunal.wordpress.com/tag/java/'>Java</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bharatikunal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bharatikunal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bharatikunal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bharatikunal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bharatikunal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bharatikunal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bharatikunal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bharatikunal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bharatikunal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bharatikunal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bharatikunal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bharatikunal.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bharatikunal.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bharatikunal.wordpress.com/295/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bharatikunal.wordpress.com&amp;blog=2377770&amp;post=295&amp;subd=bharatikunal&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bharatikunal.wordpress.com/2010/08/24/android-passing-data-to-an-activity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd05beac92923ba9d75c447ff87476b0?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">kunalbharati</media:title>
		</media:content>
	</item>
	</channel>
</rss>
