India : Tatkal Passport for Minor

January 29, 2009

Hi Friends… I am dedicating this article to people who have suffered when they were in process of applying there child passport ( Like myself :( ). Please give you feed back and place you queries which I will try to answer thru my experience.

I will say this is a very simple and easy process especially in city like Bangalore but major problem is lack of information. No one out of passport office knows the correct process or what documents are needed to get minor passport. Those who know either don’t want to share or want to make easy money. When I contacted a Authorized passport agent he told that Normal application will cost me Rs 3100 and Tatkal will cost me Rs 3800.

Ques. Only Rs 700 extra to get the passport in just 7 days instead of 30 days sounds good. What is a problem then?.

Ans. Now I want to mention that there are no extra documents required to convert Minor passport from Normal application to Tatkal Application. Neither Annexure I nor Annexure F is required in case of Minors.

Ques. What is the process of applying fresh passport for Minor?

Ans. As I have processed my son passport in Bangalore at Bangalore1 center so I am giving the Step by step Process for the same.

Step 1) Go to http://passport.nic.in/ and click on Application form and Download Application Form No. 1 [ Hindi /  English ] . ppapp.pdf

Step 2) Fill in first 4 pages of an application form. In case of minor please ignore the last 2 pages they are for police verification and police verification is not needed for minors.

Step 3) Collect the supported documents to submit in Bangalore 1 office.(as it is easy to submit the docs in B1 office)

Supported documents in case of minor.

 i) Parents Passport photo copies.  (Here we have a catch, You need to take care that one of the parent name must be there in other parent passport. for example either Father name should be there in Mother passport or Mother name should be there in Father passport.)

ii) Minor Birth certificate photo copy. (Photo copy must be attested for a gadgeted officer else photo copy is not valid)

iii) Address proof. (You can get the list of valid address proof documents on internet. Rental agreement is not acceptable. I have submitted my 12 month bank statement and CompanyAddress proof letter)

iv) Always keep extra photographs along with you.

Please carry all orignals with you. Now go to the any of the B1 center close to your place and submit the documents along with Rs 600. They will verify all documents and fill an application in there system, verify the details with you and give you the recipt with the file number.

Converting from normal application to tatkal application:

After a day or two Go to RPO, Kormangala along with the below documents

1) 1 Photograph of minor,

2) Rs 1500, 

3) Photo copies of parent’s passport,

4) Photocopy of Minor birth certificate.

5) Hand written application, giving the reason to convert the passport from normal to tatkal ( I was not asked for this application, better keep this along with you)

6) Passport receipt from B1 office

When you will enter the RPO Kormangala, There is a tatkal window adjacent to inquiry window.  Stand in the queue.(Don’t got to the long queue at the back that queue is for fresh passport application). When the window is about to open a police man will come and will give you Tatkal form. Fill in that form, paste an applicant photo on the form and wait for you turn. Officer will take your documents and verify them. If all documents are in proper shape, he will paste one slip(token) on your tatkal form and will ask you to go to first floor and meet one passport officer. He will sign your Tatkal application and put dispatch date on your Tatkal form and will tell you to go to counter X and submit the fee and collect the payment receipt.

Now you are all set to collect your child passport.

FAQ :

Q. What will happen if  parents name does not match in Passport and Birth certificate.

(e.g. On Passport  it is  Anil Kumar Kapoor , and On Birth Cert if it is Anil Kapoor)

A. In case of Minor, Names on Parents Passport are valid name.

Q. In Case either husband or wife dont have there name in others passport but they have “Nikah Nama” or a marriage certificate with translation in english.

A. Yes My dear frns this is a process even in case you are carrying your Marriage certificate with you. Still You need to take care that one of the parent name must be there in other parent passport. for example either Father name should be there in Mother passport or Mother name should be there in Father passport.

Q. Can I check online status for karnataka.

A. In General you can go to http://passport.gov.in/ and check the status of your passport online. there is an option ” Status page” Please select the city where you have applied and check the status. 

Q : We stay outside Bangalore, and I need to apply for my 1 month old son’s passport through Tatkal. Do i need to take all my documents to RPO on the same day and also apply for tatkal there?

A : If you have all docs along with you then I will suggest you to take online tatkal appointment if it is available in your city and go to RPO this will make you work and efforts easy else you go eary and stand in a queue. Yes you can get it done on same day. Your presence will be enough

Q : I wanted to ask whether childs presence is required for tatkal passport or not? Since my baby is just 10 days old, can I avail tatkal facility without my child’s presence.

A : Child presence is not at all required, You or your spouse can represent your son in passport office.

Q : We(me and my wife) both didnt have spouse name in our passport so I have applied for inclusion of spouse name in the passport. I have a small doubt again. Can we now apply for minors passport within this time window?In the passport site they have mentioned that if the parent has applied for passport they can mention their file reference number? Your thoughts on this?

A : The passport authorities will accept the baby’s application by showing your passport and your spouse file number stating that you had already applied for inclusion of spouse name. So even if you have applied for spouse name inclusion, you could still go about applying for a minor passport.

Q : We are planning to apply for a passport for my 1yr old daughter. We are presently staying in Bangalore and the same address in not present in either of mine or my wife passport. We have a running bank account on my daughter’s name. Is it sufficient that if we produce this as a address proof, or should we mention any one of the address present on our passport.

A : There is no need to mention the address which is there on your passport. If you have any bank account in your or your wife name and the address mentioned in your bank is your current residential address then you can use that for residential proof. you need to submit last 12 mnths statement of your bank account.

Q : can u tell me where should I apply for my 6 month old baby in Mumbai.

A : I am not sure if Mumbai has any utility center as Bangalore has. If not you please directly go to Passport office and apply there or googling is the best option to find more info with respect to your city :)

Q : I was told that I will get my minor daughter passport on 14 may but when I saw the status they are telling passport will be dispatched on 8 june -2009.

A : When you have applied for tatkal, Passport officer might have write the dispatch date on the receipt or the token, Please check what date (s)he has mentioned. If the date mentioned is 14May then keep watch on the status till 14th else I will suggest you to go to RPO and complain.
If they will dispatch on 14th May you will be receiving passport in next 2 days. I will suggest some one to be at home else tracking will be difficult again.

Q : You have mentioned, company address proof letter? What that mean? Means to submitt compnay address proof. But one has to mention its residence proof and do i need to submit attested coppy of all pages of my passport.

A : Correct, you need to get company address proof with your residence address mentioned on that. And they(Company) have to mention that you are residing on this address from past one year and You only need to submit the first and last page of your passport and no need to attest them….
Q : I checked with agent and they say if one has marriage certificate then no need to enter spouse name in othr passport.

A : I am not sure if marriage certificate will do. Its an advice please confirm from passport office on this else there might be delay in your process.

US Visa Interview Tips : L1 Blanket

January 27, 2009

That was a Monday morning; I was very much relaxed after two days of holidays as usual. I went to office and raise the travel request to Chennai for my visa interview. As per the process after an hr I got a mail from our training coordinator to attend the visa interview training on Tuesday. Till end of the day I was busy with arranging my documents and other process. On Tuesday Morning with relaxed mood i went to attend this training, Entering the training room where we have six members already present all discussing about visa interview process which they got to know from their frnds. As I started interacting with them I got to know that few of them are preparing for the Visa interview… Preparation for Visa interview ?? I got confused, First time i got to know that we have rejection while attending visa interview ho ho ho…. “Muzhe to pasina hi aa gaya yaar…” I did not know what to prepare… Our Interview coordinator brief us about the process and few technical things about petitions and he suggested the given below site for preparing for visa intv.

http://www.immihelp.com/experience/readentries.do?category=24

“Par mera interview to kal hai” now what to prepare ?…How to prepare… ? ”Bhot tension ho gayi yaar”. I started going thru the questions on the site and I found that the question pattern was similar for all the candidates who have attended for the interview. I started going thru the questions and started looking into my petition. “or maine apne aap ko finally interview(so called) ke liye tayiar kar liya”. My Interview was scheduled at 7:15 am. I reached there by 6:45. “are bap re itni bhid aab kaya karun, I requested few ppl and skipped the queue. Now I entered the office and stood in the queue waiting to submit the 25K draft. The window opened at 8:45(sarkari kaam), I submitted the draft and went to queue and started waiting for my turn when the VO called me(at 9:15 am) I went to him with a smile( Par dil main ek dar sa tha yaar) He asked me 2 question

1) Who is your end client?

2) Your previous work experience.

And he asked me to put my middle finger(Right hand) on scanner. And told me that I will be getting my Visa in a week time.(Hurraaahhhhhh maza aaa gaya).

From my experience I can say is

1) Stays cool and don’t be nervous or panic

2) Go thru question from the above mentioned site and Stick to the description in your petition for answers.

3) Be punctual but you should not panic if you are late. As you can say I was in queue or request

4) Try to wear formal cloths (Tie is not must).

Please let me know if you have any questions :)

Java Concept : Why no multiple inheritance

January 14, 2009

Please refer the below artical for the beautiful Explaination :

http://venkatsadasivam.wordpress.com/2008/08/02/why-multiple-inheritance-is-not-allowed-in-java/

Introduction : IBM – WebSphere Integration Developer( WID)

January 13, 2009

WID : WebSphere Integration Developer(WID) is a business integration product from IBM. It enables user to create business processes that integrate applications and data.

Business Process : A business process is a defined set of business activities that represent the steps required to achieve a business objective.

A business process consists of two main parts:

    * Interface file
    * Business process file

When you create a business process through WID, you can choose to have a default Web Services Description Language (WSDL) interface file. Or you can choose to use an existing WSDL file.

The WSDL interface file exposes the functionality of the business process and enables clients to interact with the process.

In WebSphere Integration Developer, business processes are automatically defined using the Business Process Execution Language (BPEL) specification,which is an open standard that is compatible with the WSDL specification.

Base64 Encoding

January 9, 2009

Base64 Encoding :  Base64 encoding is a use to encodes arbitrary binary data as a string composed from a set of 64 characters. The character constitute of a 64 distinct ASCII characters,

 ”A” -  “Z”

“a” -  “z”

“0″ -  “9″

“+” , “/”

 For example, using this character set the 40-bit data:

 01001000 01100101 01101100 01101100 01101111 cBase64 encoding for above binary data is : SGVsbG8=

Where “=” character is a padding character.

 Why Base64 Encoding.

 To transmit binary data on the communication channel that is designated to transmit the character data, like Emails. In case user want a binary image thru mail, User can apply base64 encoding on image Binary data and transmit the same thru mail. As Base64 encoding use only 64 character and these 64 characters can be represented with just 6 Bits

 How it works:

 lets take the above example :

 Initals Binary Data:

01001000 01100101 01101100 01101100 01101111 ……………

 To Result Bytes

XX010010  XX000110  XX010101  XX101100 …………………..

Final Result Chars

    S                                                   t     ……………………..

 Encoding Process :

  • Divid the input bytes stream into blocks of 3 bytes.
  • Divid the 24 bits of a 3-byte block into 4 groups of 6 bits.
  • Map each group of 6 bits to 1 printable character, based on the 6-bit value.
  • If the last 3-byte block has only 1 byte of input data, pad 2 bytes of zero (\x0000). (As we need to make the bits count to 24 so that we can divide it in 4 groups of 6 bits) After encoding it as a normal block, override the last 2 characters with 2 equal signs (==), so the decoding process knows 2 bytes of zero were padded.
  • If the last 3-byte block has only 2 bytes of input data, pad 1 byte of zero (\x00). (As we need to make the bits count to 24 so that we can divide it in 4 groups of 6 bits)  After encoding it as a normal block, override the last 1 character with 1 equal signs (=), so the decoding process knows 1 byte of zero was padded.
  • Carriage return (\r) and new line (\n) are inserted into the output character stream. They will be ignored by the decoding process.

You can refer :

Java Concepts : Serialization

December 29, 2008

Java allows us to create reusable objects in memory. All of those objects exist only as long as the Java virtual machine. With object serialization, we can flatten our objects and reuse them in powerful ways.

 Object serialization is the process of saving an object’s state to a sequence of bytes, and also rebuilding those bytes into a live object at some future time.

There are three different ways to perform serialization -

1)         Using the default protocol,

2)         Customizing the default protocol, and

3)         Creating your own protocol

 1) Lets learn the first one first (i.e.)  Default Protocol: 

 To make an object as a persistent object, an object is marked serializable by implementing the java.io.Serializable interface  which signifies to the existing API’s that the object can be flatten into bytes abd vice-versa.

 Example :

                        import java.io.Serializable;

                        public class PersistentExample implements Serializable

                        {

                                    private String persist_String;

                                     public PersistentExample()

                                    {

                                                persist_String= “Naveen Kapoor”;

                                    }

                                     public String getPersistString()

                                    {

                                                return persist_String;

                                    }

                        }

Next step is to actually persisting an object and this we can achieve with java.io.ObjectOutputStream class. This class is a filter stream and this is wrapped around a low level byte stream known as node stream which take care of serialization protocol for us.

This node stream is capable of writing to a file system or across the sockets.

Example :

import java.io.ObjectOutputStream;

import java.io.FileOutputStream;

import java.io.IOException;

public class CustomizeProtocol

{

            public static void main(String [] args)

            {

                        String filename = “custiomFile.txt”;

                        if(args.length > 0)

                        {

                                    filename = args[0];

                        }

                        PersistentExample Persist_Example = new PersistentExample ();

                        FileOutputStream fos = null;

                        ObjectOutputStream out = null;

                        try

                        {

                                    fos = new FileOutputStream(filename);

                                    out = new ObjectOutputStream(fos);

                                    out.writeObject(Persist_Example); //

                                    out.close();

                        }

                        catch(IOException ex)

                        {

                                    ex.printStackTrace();

                        }

            }

}

above code : out.writeObject(Persist_Example) will trigger the serialization mechanism and will flatten the object to the file.

 Not all objects in java are persistent, Only objects that implements serializable interfaces are persistent. Certain system level classes such as thread, outputStream and its subclasses are not serializable. And it would not make any sense if they were. for example, Thread running in my JVM would be using my system’s memory. Persisting it and trying to run it in your JVM would make no sense at all.

 If we have a class that contains an instance of a thread, Is it possible to persist that class.

Yes… As long as we tell serialization process by marking our class’s thread object as Transient.

The bottom line: you must mark transient any field that either cannot be serialized or any field you do not want serialized.

************************************************************

:) Your comments and corrections are most welcome :)

JSF Tips : When to Customize UI component

December 26, 2008

 Java Server Faces is a Java framework for building user interfaces for Web applications. It simplifies the development of the user interface, which is one of the more difficult parts of Web development. JSF technology offers a basic set of standard, reusable UI components which allows developers to quickly and easily build User Interface for web applications. But application may requires a new functionality or It may need an entire new component and JSF allows developer to extent the standard UI Components or to create new custom components.

When user need custom UI Components in JSF

Users must need to identify if they really need to create custom components taking few points into consideration

  • 1) User must check if JSF community may already have the solution to your problem.
  • 2) If user need to add new functionality to the standard components
  • 3) You need to aggregate components to create a new component that has its own unique behavior.

When user need custom Renderer

User need to ensure if the component class performs the below operations

  • 1) Encoding: Converting current local values of the component to display the in the response
  • 2) Decoding: Where the incoming request parameters are converted to the component local values

JSF supports two ways to handle Decoding and Encoding

  • Direct implementation: Where the component class itself will implement decoding and encoding.
  • Delegated implementation: Where user have to implement decoding and encoding in a different renderer class.

Using Delegated implementation user can associate custom components with the different renderers.

Ingredients of a JSF UI Components

The various ingredients that constitute a JSF UI component are as below 

  • UIComponent Class: This is the Java class that represents the core behavior of the component. This class is derived from either UIComponentBase or directly from UIComponent. You can also extend from an existing base UIComponent class, such as UIInput.
  • UIComponentTag Class: This is a JSP tag handler class that allows the UI component used in a JSP. It associates a separate Renderer class with a UIComponent class. And also implements setProperties method that stores the ValueExpression or MethodExpression object for each component property so that the component class can retrieve the expression object later.
  • Tag Library Descriptor File: A standard J2EE JSP tag library descriptor (TLD) file that associates the tag handler class with a tag in a JSP page.
  • Renderer Class: A class that contains code to render a UIComponent. It can also contain code for encoding and decoding.
  • Associated Helper Classes: A collection of standard or custom helper classes such as Converter, Validator, and ActionListener.

To understand custom UI Components lets divide the concepts into three parts.

1)       Custom Tags

2)       Custom components using standard UI Components

3)       Custom components using Renderer classes 

Requirement for Custom Tags, Custom Components and  Renderers

Custom Item Component class Component tag class Renderer Class Tag Lib Desc. (TLD)
Custom Tag

Y

Y

x

Y

Custom Component / Direct Implementation

Y

Y

x

Y

Renderer / Delegated Implementation

Y

Y

Y

Y

 

Java Concept : Interface versus Abstract classes

December 24, 2008

What is the difference between Interface and Abstract class or when to use Interfaces and when to use Abstract class ?

Different ppl give different reasons for the same and the major discussions on internet will give the basic differences or I can say the java specifications for this above discussions .

After going thru lot of discussions on internet what I got to know is………   

We create an Abstract classes when we want the behaviour of that class to pass on to the child classes and we should create Interfaces in cases where we want the functionality to pass on the the child class.

Lets take an example of a room and lets suppose our home have

1) 4 Walls

2) 1 roof

3) 1 door

4 Windows ( depend on person to person need few ppl migh need only 1 window and few might need 2 and one or two may like to have 4 windows in there Home)

Now Above 3 specifications are constant for a home so we can set it as a permanent behaviour for the home and we can create an abstract class “General_Prop_Home” for the above behaviours. When ever our Home class will extends the General_Prop_Home all the behaviours from this call will get included in our Home class while we can consider 4th property as a functionality and different ppl can implement this functionailty as per there requirement.

Conclusion as per my analysis: 

Abstract Classes ==> For Behaviour

Interfaces ==> For Functionalities

Comparable Interface : Problem while adding object to TreeSet

November 21, 2008

public class X{
  public static void main(String [] arg){
     Set s=new TreeSet();
     s.add(new Person(20));
     s.add(new Person(10));
     System.out.println(s);
 }
}

class Person{
    int i;
    Person(int i){
         i = this.i; 
    }
}

Can anyone tell me why this code fragment shows me the “ClassCastException”, Using Java 2 1.5 compiler.

In the above code

Set s=new TreeSet();

Set S which is a TreeSet accepts an object that is very true when developer adds an object new Person(20) to code, code will not fail. Now when developer will add another object new Person(10) the code will fail.

Now replace the code with a fresh code

Set s=new TreeSet();
s.add(new Integer(10)); // replace person object with Integer object
s.add(new Integer(20)); // replace person object with Integer object
System.out.println(s);

The above code will not fail.

Now lets dig in to the concept.

TreeSet is a class belongs to Set interface, being a set it does not accept duplicates. First object insertion goes fine here,Now when we are trying to add the second object then there must be a criteria based on which the 2 object should be comparable. And in the above code there is no such criteria, for uniqueness the set internally use compareable interface to check object equality which is not implemented by the Person class,So in this case developer have to implement the comparable interface in his Person Class.

There are fourteen classes in the Java 2 SDK, version 1.2, that implements the Comparable interface.

BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, Short, Character, CollationKey, Date, File, ObjectStreamField, String

So when developer will try t add the above objects they won’t give any problem, as developer is facing in above scenario.

Below code for person class will solve the developer’s problem.

public class Person implements Comparable{
    int i;
    Person(int i){
        i = this.i; 
    }

 public int compareTo(Object o1) {
        if (this.i == ((Person) o1).i)
               return 0;
        else if ((this.i) > ((Person) o1).i)
            return 1;
        else
            return -1;

    }
}