Falcon Hangout – 18th April 2013

Had an awesome hangout session with Falcon team. We talked about coming features in Falcon 1.0 and documentation.

Thanks jonnymind for the video 🙂


How NOT to apply for a Passport

Hello all, Welcome to the yet another post on “How NOT to *” 😛

Last time I wrote about How NOT to go America.

Today I had been to passport office with Kruti and my uncle’s family. We were 7 people, 3 new passports and 3 passport renewals. I was with them driving the car 😉

We left home exactly at 6.30 AM, picked up uncles family and left for Passport Office, Thane. We left early so there was no traffic. It was awesome driving. We thought we would reach there by 8.30 AM but we reached there by 7.50 AM.

We reached the building and I and Kruti went out in search for a parking place. We were still searching and my uncle called me saying that the office has shifted to new building. The office was shifted to the new building since TATA took over the passport service. So now you cant get an agent who will arrange everything for you and you only have to attend a police station. The person has to go to the passport office, the scan your fingers, eyes (will confirm about this) and then take your documents and further procedure is followed.

We reached the new building. I got the perfect parking place just beside the entrance.

We were in the queue now. Like any Gujarati family in the world, we also brought something to eat. Standing in a queue, we ate “khakra”.

Suddenly there was some discussion among the people about some forms. Few of us had a form printout of 6 pages and few others had a single page. When I heard about it I tried to avoid it saying “they might have forgotten other 5 pages”.

The gate was opened at 9.00AM sharp. The queue entered the building. And we thought we will be done in around hour or so. Then we can leave for home.

In 5 minutes or so a guy started shouting on security guard:

Are you going to explain about it?

Security guard:

No sir. But these forms are not accepted.


If you cant answer then just shut up and call some responsible person.

When asked what its all about, they told us that the 6 page forms are not accepted. Only single page forms are.

And now, few of us (around 20) were standing in group.

A tie-wearing guy, with ID card hanging around the neck came out to discuss the issue. He announced:

We are not accepting these forms!

Everyone of us started shouting at him. Everyone started arguing but he repeated the same statement.

In all the mess, I somehow managed to give him Kruti’s form and asked him:

Whats wrong with this form?

Tie-wearing guy:

This is not our form.


What do you think, we all created this form at home?

Tie-wearing guy:

I dont know, but this form is not even present on the website. I dont know where you guys got this from.

This was the first WTF moment. Everyone started shouting again.

A guy took out his mobile, and showed the same form in their website. Now, it became tough for the tie-wearing guy to escape.

Tie-wearing guy (now with less attitude than before) :

See, the forms you have are the old forms given to you by government, not by us. You will have to go the old passport office and talk to them

Seeing that no one is in the mood to goto old office,

Tie-wearing guy ( pointing at some text on the old form)  :

Ok do one thing. Goto the website, and enter this code. And take the appointment again and get that printout.


So its a today’s appointment?

Tie-wearing guy:

No sir its not possible

Second WTF moment.

Obviously no one agreed. Its friday, a working day for everyone and most of were on leave for this.

At this time one highly motivated guy came into picture. His was LOUDER than anyone there. He just pushed everything and we all almost went into the building. Security guards got the shutter down and closed the office.

Looking at everyone he came up with other option,

Tie-wearing guy:

Ok, I will give you todays appointment. But you have to get the new printout from somewhere.

Everyone agreed.

Tie-wearing guy:

So one of you come inside with me. I will explain the procedure

A guy with yellow-tshirt went inside with him. While I was ready to run for the printouts as soon as the yellow-tshirt guy comes out, some of the other were still arguing with security guards.

Tie-wearing guy and yellow-tshirt guy came out.

Tie-wearing guy:

I have explained him everything. He will tell you about it.

Yellow-tshirt guy ( behaving like a celebrity ) :

Hey guys, the code he was showing is not accepted by the system

Third WTF moment.

Tie-wearing guy ( now trying to escape the situation ) :

So ya. You will have to goto old office and talk to Mr. Sharma

Highly motivated guy:

You cant to this to us. How you do this? Call the responsible person. We dont want to talk to you. We want a official “rejected” stamp on our papers with authorized signature.

All the discussion before this statement was in hindi. The highly motivated guy said this in english. In India, people take you more seriously when you talk to english. And if you can argue in english then people will only listen to you and you are the leader of the group. And now highly motivated guy was a celebrity and was leading the group.

Two more officials came out, one guy (tie-wearing again) and a lady. And as per them, the lady was their manager.

Without much discussion, they started collecting the 6 page forms. After collecting everything,

Tie-wearing guy 2:

The problem is, this forms are given to you by the government. And when we (TATA) started with this, we had the new forms which you people are not aware of. So this has to be solved by the old passport office. Go there and talk to Mr. Sharma.

And, everyone agreed. First thought that came to my mind was “Ok. So they managed to fool us. Nothing is going to happen.”. Before leaving for old office we saw police coming. Not sure if it was for us.

Everyone started going to the old office.

We reached the old office. There was already a queue of the same people that were present in the new office.

Like any government office, Mr. Sharma was nowhere. A watchman was standing there. A poorly dressed security guard is known as watchman. If I compare security guards of both old and new building, he really was a watchman.

and when my uncle told him about the issue and asked him about Mr. Sharma,


Sir, this is happening everyday. Nothing is going to happen. If Sharma comes he will tell you to take the appointment again. Nothing else.

My uncle told me about it and we thought there is no point in wasting more time standing and waiting for Mr. Sharma. We left for home.

Rs.20,000 Only

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’s logo.

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’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.

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:

Amount greater than Rs. 20,000 is not allowed!

I and Kruti: What??

IDBI guy: Yes. Amount more than Rs.20,000 is not allowed for accounts which are out of state.

( The tour company was from Kerela )

Me: We are doing a tour. And it requires us to pay Rs.25,000 amount in advance.

IDBI guy: Ok. Let me talk to the manager.

He dialed some extension and started talking:

Madam, I have someone… BLAH BLAH BLAH..
hmm.. Ok.. So can we?.. Oh ok


IDBI guy: Sorry sir we cant do that. We can only do it for “max” Rs. 20,000.

Me: Ok.

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’s name, and in queue again.

Soon it was our number and I gave him 2 slips.

IDBI guy: Sir, as I said before we cant do this.

Me: Now whats the problem? These are 2 different slips with the name of 2 different people.

IDBI guy: For one account, per day, out of state, we can only do Rs. 20,000 transaction.

Me: 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?

IDBI guy: Yes. This account can only do Rs. 20,000 transaction “per day”.

At this moment I wanted to ROTFL.

Me: What kind of rule is this? And can you tell me where is this written?

Some lady voice from some meters away:

Hey, you are not suppose to argue there, whatever it is come here and talk

We went there and explained it to her.

IDBI lady: Whatever it is.. As we said we cant do it. This is a rule.. BLAH BLAH.. You are not suppose to argue.. BLAH BLAH


Kruti to Me: Lets just fill up Rs. 20,000 and call our tour guy and say we can only do Rs. 20,000 because of bank.

There was no reason to disagree.

Just filled the new slip of Rs. 20,000 and out of there.

Zero balance account

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.
BoB guy: You cant do that. You need atleast Rs. 1000/- balance in account.
Me: But its a zero balance account!!
BoB guy: Yes. But zero balance account should have Rs. 1000/- balance.

HowTo: Forcing traffic to https

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:

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Suppose you have Virtualhost entries for Http (port 80) and Https (port 443) then add this to VirtualHost entry of Http.

Case B) With LoadBalancer
Consider a scenario where you have a Loadbalancer and the communication between loadbalancer and server takes place like this:
1. When a request comes on port 80 of the loadbalancer it communicates with server on port 80 (i.e. LB Port 80 ==> Server Port 80)
2. And when a request comes on port 443 of the loadbalancer it communicates with server on port 80 (i.e. LB Port 443 ==> Server Port 80)

Here servers are always working on port 80.

If you are using Apache as a LoadBalancer you need to add this to the VirtualHost entry of https:

RequestHeader set X-Forwarded-Proto "https"

On the server add this to the VirtualHost entry of http:

RewriteEngine On

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

This will forward all the incoming requests on http to https.

This also works with Amazon’s Elastic Load Balancer as it has a support for X-Forwarded-Proto and X-Forwarded-Port.