Saturday, April 9, 2016

applying passport renewal for minor child in USA

http://www.passport.blsindia-usa.com/reissue&freshminor.php

Some things which are difficult to understand as per the instructions given in BLS are
1) How many photos?  6

  •      1 photo on application form
  •      3 photos on 3 National verification forms
  •      1 photo on appearance change affidavit
  •      2 photos I have sent in package because in check list its mention but not mentioned how many so I sent 2.

2) Notary?
     These days banks are not doing notary, but UPS is doing with charge of $5 each copy, so need to         make sure you take only the required ones, its mentioned in BLS checklist sort order of the forms section

3) Shipping?
    Have respective BLS location as per your state, for example North Carolina state residents need to     send to Washington DC BLS location. Need to go UPS/Fedex then ask them to give two envelopes with one for return envelope which fits in sending envelope.

4) BLS Order Form, Airway bill number?
    In BLS order form you need to give shipping tracking number which you have taken in UPS/Fedex     if you select application type as postal, and for Drop-off and Courier Delivery Service select yes and             there you need to give your  return label tracking number. Dont follow the link to create airway bill number         through BLS order form, its not working and you dont need to if you get shipping labels by yourself from UPS/Fedex.

5) Once you fill up BLS order form, they will send order form and their tracking number in email and also instructions given.


Tuesday, April 5, 2016

Applying US Visa for dependents in India


1) Fill DS-160 for each applicant

2). Pay consular stamping fee at
       https://cgifederal.secure.force.com, you need to create profile and there you can give reference            of DS-160 number which you have created in step1.

3). Documents to carry
b) pay stubs
c) bank statements
d) Invitation letter
e) I-94 docs
f) Sponser's visa/green card documents

Some other documents also can be carried but not mandatory, you can see below link

Sunday, September 21, 2014

Java 1.5+ features:

  • For loop enhancements
  • Generics
  • Autoboxing/Unboxing
  • Varargs

For loop enhancements:
As you know how we used to write for loop in 1.4 and if you see clearly some times we dont need to write more lines of code.

You can write simply like below with 1.5, assume you are iterating a ArrayList.

List list = new ArrayList(); //if you dont know about generics dont worry, will discuss                                             //in we will discuss in next topic. assume this list has few employee                                                                             
int size = list.size();

for(int i=0; i less than size; i plus plus)
{
   Employee emp = (Employee)list.get(i);           //Explicit type casting
    //do something on employee object
}


with 1.5

for(Employee emp : list )
{
  //do something on employee object
}

What you have seen here:
Simple to write for loop, no type casting required, no need to check the size of list and increment it.