Friday, July 25, 2008

: $'\r': command not found in Cygwin

If you happen to have this kind of error for no reason, please make sure you convert your shell script file to UNIX format using any text editor like Notepad++. Initially it seems like a weird error but yet another valid issue with Cygwin + XP editor.

Here is an example, If you create a script in Notepad++

# My Cygwin weird error

"Knowledge is Power"

When you run this script directly from Cygwin (by editing it from Notepad) you might forget to set the file format to Unix. This often result in following error.


./ line 1: $'\r': command not found
Knowledge is Power



You can convert them to UNIX format using shell utility dos2unix

So, Thats it! You are set!

Thursday, July 10, 2008

Getting Power of Attorney from Indian Consulate

How to get Power of Attorney from Indian consulate??

You might be thinking "Why is someone creating a blog on how to get POA....??" Well, you are right! there is no big deal with that. But I found it difficult getting this only because "lack of information". So, i thought it would help ppl out there searching for some info on this. After all internet is used for that "Information" Right?!

As I said, No big deal, In two options you can get this done.

1. Going personally to Indian Consulate
2. Getting this document signed through mail

1. Going personally to Indian Consulate.

Make sure you have the following documents....

i. A Completed Miscellaneous form (download it from consulate website)
ii. POA documents to be signed by Consular.
iii. Photo copy (Xerox) of POA document (you need to hand this over to consulate)
iii. Original passport
iv. Photo copy (Xerox) of passport (you need to hand this over to consulate)
v. 2 passport photo (1 is enough for misc form. but you may want to affix a photo on POA and sign on it. This is not consulate requirement though)
vi. $20 for consulate fee.

The consulate (i went to NY consulate) usually opens at 9.30am. The documents are accepted from 10am to 12.30am. You need to wait until 4.30pm to get the documents signed. The guy who is in information center was quite helpful.

DO NOT SIGN ON ANY DOCUMENT (esp. POA). You should do it in front of consulate official at the counter.

Even if you have not taken your photos, there are few photo centers, you could get it in an hour or so.

2. Getting this document signed through mail

i. Misc form and copy
ii. POA documents duly notarized and copy should also be notarized. This is just attestation that you are signing the document in front of some official trusted parties.
iii. Money order for $20 (fee)
iv. Original Passport and a copy

You need to also include return currier charge for consulate to send them back. Please check your consulate site for more information.

Send all these documents in mail and they are supposed to be delivered back in 5-7 working days.