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