Tuesday, January 23, 2018

Business Visa B1 Interview at Chennai

*Biometric Day*

I reached by 1.45
Dr is written now they r allowing those who r hvg appointment at2.30
Mine is 2.45PM, but security in the gate allowed me inside
Inside Dr was another q, they r allowing fIfo method batch by batch
Once ur batch is allowed , u r supposed to carry (take out) D160 form, appointment letter and passport on hand
U can carry ur mobile phone ,but it should be switched off when u enter inside
When they will allow inside u wl have a security check , after that u wl directed to first counter
He will verify ur 3 documents and ask u go go to 2 Nd counter
He will scan ur form and give u a tocken and wait in the queue
Dr r 15 biometric counter inside
Once ur turn come go to respective counter
They will ask ur 3 documents
Then dey will ask u to read and understand the paragraph pasted in the counter
Then once they CHK the document, they will take it photograph
Then they will ask u to put 4 left hand fingers followed by 4 right hand fingers and then 2 thumb fingers
Then they will give back the document
That's it
Give the feedback while exit
I came out by 2.30

*Interview day*

My time is at 7.45
I reached us consulate at 6.40 AM
Already there was a big queue in the road
There was 2 seperate q, one for 7.30 and another for 7.45
They are allowing to enter inside at sharp time only
Once ur time comes, there will be a security check , and then aask to go inside.
On the way few places your passport will be asked
Then you will join in a queue , where u need to show your passport, they will scan the sticker pasted (yesterday at biometric center) and verify and redirect you to another counter.
They will check finger print then ask you to follow the queue for the interview
There are different queues based on the language you are comfortable with(English, Malayalam, Tamil, Telugu, Kannada)
Business visa people have to join the English queue
There are 25 counters(not all was opened when I reached)
There is no tocken number, depends on the availability you will be directed to the  free counters by few folks who are assigned  for this
I want to one of the counter when my turn came
One sweet gentle man inside cabin
He asked my passport

Good morning Sir
Why you want to go US?
Where you want to go in US?
How long you are planning?
Any other country you visited before?
What is your designation?
How many people in your team?

Your visa is approved..
Interview was almost of 3 minutes

I came out the office by 8.30

Sunday, May 15, 2016

DataSize used in Bigdata

Data
Size
Kilobyte
1024 Bytes
Megabyte
1024 KB
Gigabyte
1024 MB
Terabyte
1024 GB
Petabyte
1024 TB
Exabyte
1024 PB
Zetabyte
1024 EB
Yottabyte
1024 ZB

Tuesday, November 10, 2015

Flip your Laptop display upside down

You can flip your computer or laptop display upside down by using the shortcut keys

CNTRL+ALT+ UP or DOWN ARROW keys

Your can flip side ways by
CNTRL+ALT+LEFT ARROW
or
CNTRL+ALT+RIGHT ARROW

Sunday, June 21, 2015

Spring - Get the values of property files using @value anotation

In the file x.properties
xx.test.flag.list=X,Y,Z

In the spring configuration file:-

<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:properties/x.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>

And in the java class file using @Value anotation.

@Value("#{'${xx.test.flag.list}'.split(',')}")
private List<String> flagsList;

Monday, January 5, 2015

UnknownHostException in mac osx

Issue:

java.net.UnknownHostException: abc-026bf227b: abc-026bf227b: nodename nor servname provided, or not known at java.net.InetAddress.getLocalHost(InetAddress.java:1473)

Fix:

Fixed by simple command in vi editor
  echo "127.0.0.1 $HOSTNAME" | sudo tee -a /etc/hosts

This makes and entry in /etc/hosts
127.0.0.1 abc-026bf227b

Thursday, May 8, 2014

Currency in Different Countries


Rupee
  • India
  • Nepal
  • Srilanka
  • Pakistan

Dollar
  • USA
  • Canada
  • Singapore
  • Ecuador
  • Australia
  • Honkong
  • Taiwan
  • Newzealand

Euro 
  • France
  • Germany
  • Italy
  • Austria
  • Belgium
  • Cyprus
  • Netherland
  • Portugal
  • Spain
  • Vatican city



Pound 
  • UK 
  • Egypt
  • Sudan


Rial
  • Iran
  • Qatar
  • Saudi arabia
  • Yemen
  • Omen
  • Cambodia


Dinar 
  • Algeria
  • Iraq
  • Kuwait
  • Tunisia



Peso 
  • Philippines
  • Argentina
  • Chile
  • Cuba
  • Mexico
  • Uruguay



Franc 
  • Cameroon
  • Switzerland



Ruble 
  • Russia
  • Belarus

Monday, March 17, 2014

Do not do immediately after meals


There are many things which we do in our daily life, which may lead to some medical or physical issues which can be avoided very easily if you know these small things.

Don't :-

  • Eat fruits

When you eat your fruits with meals, the fruit is stuck in the stomach along with the contents of the meals and cannot reach the intestines in time. Lying there they get spoilt and spoil the remaining food in the stomach too. Thus it is recommended that you eat a fruit at least one hour after eating a meal or before your meal and preferably in the morning with empty stomach. It is in the morning that the body can best use the nutrients in the fruit and get enough energy to start the day.


  • Drink Tea

Tea contains high amount of acid. It will cause the Protein content in the food so difficult to digest the food you ate. But you can drink after an hour.


  • Loosen your belt 

Normally there is a temptation of loosening belt after a good meal. But we need to know that it causes the intestines to twist or block .
It may also cause you to feel comfortable and you may continue eating, which leads to over food in your stomach.


  • Take Bath

This will cause increasing your blood flow to you body parts like hands, legs & body so amount of blood around the stomach will reduce.
So it will leads to delaying your digestion


  • Walk

This can result to acid reflex and indigestion. But good to do do this after say half an hour after meals


  • Sleep

The food will not be able to digest properly if you sleep immediately afer meals. so this will lead to gastric & infection in our intestines.

  • Smoke
Smoking the cigarette immediately  after meal is comparable to smoking 10 cigarettes  so the chances of affecting cancer is much higher.


Wednesday, March 12, 2014

Kill Diabetics with curry leaf

Diabetes is a disease in which patience has high blood glucose or called as blood sugar, 
It is happened either 
  • inadequate production of insulin , 
  • or  bodys cells is not responding properly to insulin, 
  • or may be both. 

Medecine Name

Hindi : Karipatta
Kannada: Karibevu
Taml: Karuveppilai
Telugu: Karivepaku
Malayalam: Karuvepu


Usage:

  • Grind 15 to 20 curry leaves, then mix it with a cup of fresh curd and have it daily in the morning for 3 weeks
  • Drink 15ml of fresh curry leafe juice daily two times
  • Chew 10 freash curry leaves in the morning and evening daily
  • Make tea with  around 15 curry leaves in one cup of water and have many cups of tea daily as much as you can
  • You can also make chutney with more number of curry leaves grind with ginger and garlic


Thursday, March 6, 2014

Drink Water, Stay Healthy and Be Active

Just after waking up, drink water in empty stomach every morning.

Drink water immediately after waking up every morning. Also, many scientific tests have proved its value.

As per the various scientific study, it is good and effective for many diseases like

Headache, body related ache, heart, asthma, TB, meningitis, kidney and urine related diseases, arthritis, fast heart beat, epilepsy, excess fatness, vomiting, gastritis, diarrhea, piles, diabetes, constipation, all eye diseases, womb, cancer and menstrual disorders, ear nose and throat diseases.

All you have to do is


  • As soon as get up from bed even before brushing teeth, drink atleast 4 glasses of water(160ml) 
  • Those who are old and can't drink 4 glass of water, can start with 1 glass and gradually increase the level.
  • After brushing tooth dont eat or drink anything for next 45 minute(after that everything normal)
  • Don't eat anyting for 2 hours after breakfast, lunch and dinner.



As this method doesn't have any side effects(except you have to urinate few times extra than usual), good to give a try .

Enjoy a healthy and wealthy life.

Monday, February 24, 2014

How to clean kidney ?


We are cleaning every other things outside body, But how how to do it inside like kidneys?, why is it needed?

over these years our kidneys are filtering the blood by removing salt, poison and any unwanted items entering our body. With time, the salt or some other things accumulates and this needs to undergo cleaning treatments and how are we going to overcome this?

Coriander Leaves

yes, you read it correctly, it can clean your kidneys...


  • Wash it clean first. 
  • Cut it in small pieces 
  • Put it in a small vessel 
  • Pour clean water 
  • Boil it for ten minutes
  • Let it cool down.
  • Filter it and pour in a clean bottle 
  • Keep it inside refrigerator to cool.


Drink one glass everyday and you will notice all salt and other accumulated poison coming out of your kidney through urin

Also you will feel mentally fresh

Tips to increase mielage of you car

Think to remember while filling fuels in your car / bike



  • Fuel at night or early morning: 


It is always  better to fill your car during early morning, when the ground temperature is still cold.
You know all service stations have their storage tanks underground.The colder the ground, the more dense the fuel. When it gets warmer, petrol expands.
So, when filling fuel in the afternoon or in the evening, your one liter is not exactly a liter.
In the petroleum terms, the specific gravity and the temperature play an important role. 1 degree rise in temperature is a big deal for this business. But dont think the service stations have temperature compensation at the pumps.

  • Better to fill fuel when half tank empty: 

It is good fill the fuel when your tank is HALF FULL because, the more fuel you have in your tank the less is the air occupying its empty space. Petrol evaporates faster than you can imagine.


  • Make sure Nozzle trigger in medium or low stage

You can find Nozzle trigger to fill the petrol  has three stages-Low, Medium, and High.
Make sure it not in  fast mode, while filling petrol. It should be in the low stage to minimise the impacts of vapour and to have maximum economy of petrol.. Filling petrol at the faster rate means you have more gas with your liquid petrol.


  • Don't fill when petrol tankers unloading fuel

Because when the tankers fill fuel at the fuel station all the dirt that is settled at the bottom down gets disturbed and if you are fueling at the same time it can get into your vehicle tank along with fuel - it can badly affect your engine.


  • Proper tyre pressure

Tyre pressure must be checked once every two weeks. It helps to reduce the drag while driving thus increasing your mileage.


  • Avoid Unwanted weight in car

Every extra kilo of weight will need additional fuel, decreasing the mileage.

Thursday, February 20, 2014

using maven deploy the spring application in tomcat 7


tomcat-users.xml

<role rolename="manager"/>
    <role rolename="manager-gui"/>        
    <role rolename="admin"/>
    <role rolename="manager-script"/>
    <user password="admin" roles="admin,manager,manager-gui,manager-script" username="admin"/>


pom.xml

<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>  
                <artifactId>tomcat7-maven-plugin</artifactId>  
                <version>2.1</version>  
                <configuration>  
                    <url>http://localhost:8080/manager/text</url>  
                    <server>myserver</server>  
                    <path>/${project.build.finalName}</path>
                </configuration>
</plugin>
</plugins>
</build>


/Users/.m2/settings.xml

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
  <id>myserver</id>
  <username>admin</username>
  <password>admin</password>
</server>
</servers>
</settings>


To run the tomcat, which you installed(not the embedded one- and you need to run the manager portal of tomcat for auto deploy from maven

In eclipse ->

 Tomcat v7.0 Server at localhost.server  - take properties ->and click "switch location"

open it -> “server location” select “use Tomcat Installation(takes control of tomcat installation” 


now right click your spring project and run as “maven build “ -> tomcat7:redeploy will do the magic

Saturday, February 8, 2014

Enable or disable hidden folders in MAC OS X

Enable or disable hidden folders in MAC OS X


  • For Enable/show


Open a Terminal 

Execute this command 


defaults write com.apple.finder AppleShowAllFiles -bool true



  • And to hide/disable


Execute this in the terminal


defaults write com.apple.finder AppleShowAllFiles -bool false

And if it didn't take effect, try logout and login

But if you are not comfortable with Terminals, many apps are available , which helps to do this from UI itself 
ex: invisiblix

Tuesday, January 28, 2014

Java 8 ..................coming soon...

So, Java 8 is getting ready
Java 8 is going to be released March 2014
.
They have an update from the Eclipse JDT team who have been getting JDT ready for Java 8. 

JavaFX will also be a big part of the release, so  e(fx)clipse project is there to make JavaFX development a smooth process. 

Finally, two articles about some key features in Java 8: 
Java Mission Control, now part of the JDK and an Eclipse RCP application and also Project Nashorn, a JavaScript engine for the JVM.

Thursday, June 27, 2013

Vista - User Profile failed to login

Click Start, ->regedit 

Now in in regidit, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

In the navigation pane, find folder that begins with S-1-5 (SID key) followed by a long number.

Click each S-1-5 folder, locate the ProfileImagePath entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.

If you have two folders (ie one is duplicate) starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder.

Ie-  Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.

again right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.

now again right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.

Now Double-click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.

Then Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.

Close Registry Editor and Restart

Wednesday, April 17, 2013

Make Symbols with Keyboard

Alt + 0153..... ™... trademark symbol
Alt + 0169.... ©.... copyright symbol
Alt + 0174..... ®....registered ­ trademark symbol
Alt + 0176 ...°......degre ­e symbol
Alt + 0177 ...±....plus-or ­-minus sign
Alt + 0182 ...¶.....paragr ­aph mark
Alt + 0190 ...¾....fractio ­n, three-fourths
Alt + 0215 ....×.....multi ­plication sign
Alt + 0162...¢....the ­ cent sign
Alt + 0161.....¡..... ­.upside down exclamation point
Alt + 0191.....¿..... ­upside down question mark
Alt + 1.......☺....sm ­iley face
Alt + 2 ......☻.....bla ­ck smiley face
Alt + 15.....☼.....su ­n
Alt + 12......♀.....f ­emale sign
Alt + 11.....♂......m ­ale sign
Alt + 6.......♠.....s ­pade
Alt + 5.......♣...... ­Club
Alt + 3.......♥...... ­Heart
Alt + 4.......♦...... ­Diamond
Alt + 13......♪.....e ­ighth note
Alt + 14......♫...... ­beamed eighth note
Alt + 8721.... ∑.... N-ary summation (auto sum)
Alt + 251.....√.....s ­quare root check mark
Alt + 8236.....∞..... ­infinity
Alt + 24.......↑..... ­up arrow
Alt + 25......↓...... ­down arrow
Alt + 26.....→.....ri ­ght arrow
Alt + 27......←.....l ­eft arrow
Alt + 18.....↕......u ­p/down arrow
Alt + 29......↔...lef ­t right arrow

Wednesday, April 10, 2013

Overriding rules in Java



  • Should be same method name and argument list in base class and derived class
  • Return type can be co-variant, meaning if super class return type is Map, subclass return type can be Hash Map.
  • Access specifier in the derived class should be broader/bigger than that in the base class;
    • ie; if base class method is protected, the derived class method can  be protected or public- but cannot be private or default
  • Exception in the subclass  should be same or subclass of base class
    • ie:-if base class exception is IOException, subclass can be FilenotFoundException-but cannot be Exception.

Saturday, March 9, 2013

Get the source code from an APK


First Download

  • dex2jar -> https://code.google.com/p/dex2jar/
  • Java Decompiler –> http://java.decompiler.free.fr/?q=jdgui
  • android-apktool and apktool- -> https://code.google.com/p/android-apktool/
For Source code

Rename the apk file to zip file. Extract the files in the same folder
Extract dex2jar into the same folder, or copy classes.dex from the extracted apk to the dex2jar extracted folder.

Give the command 
#dex2jar classes.dex
You can now see class_dex2jar in your folder( a executable jar file )

Now you run jd-gui.exe downloaded with the java decompiler.
Open the class_dex2jar folder  in decompiler(jd-gui), now you can see all source codes
File-> Save all sources
Now you have the java source in zip file named classes_dex2jar.src.

For XML

Create a new folder for xml, and put the apk file in that folder.

Now extract the downloaded apktool and apktool-install-window.

Put your xxx.apk in it then run the command 

     apktool if xxx.apk

after that run the command 

     apktool d xxx.apk

A new folder with the xml files will be created.

So All the source code is ready -- enjoy :)

Please Note: Do not misuse this tutorial, just sharing my knowledge for learning purpous


Tuesday, February 19, 2013

Aggregation


Aggregation means HAS –A relationship

Eg: Employee has Address
ie-
class Employee{
int id;
String name,salary;
Address address;//Address is a class
}
employee -> name, id, salary also has Address -> which itself has different attribute like pincode, city, country etc.
When there is no IS-A relationship(ie: inheritance), best way of code reuse is aggregation.
Inheritance should be used only if the –IS-A relationship is maintained in the life time of the object, otherwise aggregation is the best choice.

Android Version and Name

Version
Name
1.5
Cupcake
1.6
Donut
2.1
Éclair
2.2
Froyo
2.3
Gingerbread
3.1,3.2
Honeycomb
4.0
Ice cream sandwitch
4.1
Jelly Bean