How did my child get worms?

How did my child get worms?
All of us have the question how did my child get worms?our baby is getting infected by the worm because of walking in barefoot on the stagnate soil,contaminated water or eating non hygienic food.Once these worms enters the body it will hatch and the worms will grow then it will lay more eggs.

This worm infection can easily spread but it can be cured easily and quickly.So we should not worry about these worm infection.Thread worms are the most common worm affecting the child,looks like a small thick thread piece.

If child is infected by the thread worm we cant find any symptoms.But we can see the thread worm in baby's motion,baby's anus or their bottom wear.These worms can be spread from other worm infected person also.These worms may be in finger nails,used toys etc.

If child is suffered by any worm infection then they will have these symptoms:

  • Itching around the anus
  • Paining in the anus
  • Anemia
  • Discomfort in the stomach
  • Appetite 
  • Nausea or Vomiting
  • Frequent urination
  • Diarrhea
Bandy albendazole suspension syrup is one of the medicine generally suggested for the worm infection in intestine for the child.This is suggested only for the child above 1 year.
Dosage:
  • 1 to 2 year -5 ml in single dose
  • 2 to 3 year -10 ml in single dose
Read More

Important temples in kerala

Important temples in kerala
Kerala is the one of the place, where natural scenery is filled up. Kerala also known for the traditional temples and its construction.There are many important temples in kerala to visit in lifetime.

Padmanabhaswamy Temple:


    temple
  • This temple is dedicated to the god Vishnu.
  • It is located in Thiruvananthapuram. It's construction is in complicated fusion of  Kerala and Dravidian style.  
  • This temple is one of the richest Hindu temple because of its gold assets and precious stones.These assets are stored in underground vaults.There are 8 vaults in the temple.
  • Famous festival of this temple is Alpashy festival in October/November,Panguni festival in March/April. Panguni festival lasts for 10 days.
  • The most famous festival in this temple is Laksha deepam which means lakh of deepams .This is held 6 years once. 
Guruvayur Temple:
    temple
  • This temple is dedicated to the god Lord Krishna.
  • It is located in Guruvayur,Thrissur district.In this temple a pond is available called Rudratheertham in northern side.
  • There is a strict dress code. Men should wear Mundu only should not use shirts,they are allowed to use small cloth over their chest. Women and girls should wear sari, shalwar kameez,long skirt.
  • Temple opens at 3 AM and 5 poojas are conducted a day.
  • Here people also gives the things whatever they able equal to their weight(thula baram) to fulfill their prayer.
  • Important festival is Krishna Janmashtami
Vadakkunnathan Temple:
  • This temple is dedicated to the god Lord Shiva.
  • It is Located in Thrissur. This temple is famous for mural paintings and kuttambalam carved in woods.
  • Lord shiva is in the form of huge lingam covered with ghee formed by daily ghee abhishekam for many years. This is the only temple where lingam is not visible. The ghee does not melt even during summer also it does not give foul odor.
  • The important festival in this temple is Maha shivaratri and Aanayootu (feeding of elephant).
Kadampuzha Devi Temple:
  • This temple is dedicated to the goddess Durga.
  • Located in Kadampuzha pilgrimage center,Malappuram district.
  • Here two rituals are conducted Poomoodal and Muttarukkal. Poomoodal is covering the deity with fresh flowers and muttarukkal is the breaking of coconuts into 2 equal halves.
  • Plastic bags are not allowed inside the temple. Coconuts only allowed to carry in non plastic bags.
  • Best day to visit is Tuesday,Friday and Sunday, Annadaana is made everyday at the temple.
  • The important festival is Karthikai day in November to December month.
Thirumandhamkunna Temple:
  • This temple is dedicated to the goddess Thirumanthamkunnilamma.
  • Located in Angadipuram in Malappuram district.It is the pilgrimage center.
  • Important religious offering in the temple are Mangalya puja,Rigveda Laksharchana,Chandattam,Kalampattu.
  • Mangalya puja is mainly offered for the unmarried people.
  • The annual festival of this temple is Thirumandhamkunnu Pooram celebrated for 11 day long.In this Aarattu is the beautiful one which is the bathing ceremony of Devi.
Ananthapura Lake Temple:
temple
  • This temple is dedicated to the god Ananthapadmanaba Swami.
  • Located in little village Ananthapura,Kasaragod district. This temple is in the middle of the lake.
  • There is a believe that only one crocodile live at the lake, if it is died another one crocodile appears on the lake.
  • Sanctum is made by rare combination of 70 medicinal things called Kadu-Sharkara-Yogam.
  • Wood carving in the mandapam depict the story of dasaavatharam.
  • All casts and religious are allowed in this temple.
Padiyanoor Devi Temple:
temple

  • This temple is dedicated to the goddess Chamundi Devi(padiyanoor devi).
  • Located in Poovachal,Thiruvananthapuram.
  • Festivals conducted in this temple are Karthika,Mandala vratham,Pooja vaypu,Aayilya pooja,Aishwarya pooja,Vishu Kani.
  • The annual festival of the temple is Makam Thozal in the Malayalam month of Meenam for 3 days.
Thirunelli Maha Vishnu Temple:
  • This temple is dedicated to the god Maha Vishnu.
  • Located in Brahmagiri hill 32 km away from Manathavady.
  • Papanasi is located 1 km away from the temple.One dip in this cold water removes all sins committed in lifetime.
  • Here Devotees can perform all the rituals related to the death and birth.
  • Opening time is 5.30 a.m to 12.00 p.m and 5.30 p.m to 8.00 pm.
Vaikom Mahadeva Temple:
  • Dedicted to the god Lord shiva(Vaikkathappan).
  • Located in Vaikom,Kottayam district,
  • Here there is a belief that if devotees worships before Ucha pooja all wishes are fulfilled.
  • In this temple pooja is not broken since inception.
  • Important festival in this temple is Vaikkath Asthami held in November-December.It lasts for 12 days.
Chottanikkara Devi Temple:
temple
  • Dedicated to the goddess Bhagavathi.
  • Located in Chottanikkara near Ernakulam.This temple is famous for the wooden sculpture.
  • Goddess Bhagavathi worshiped in three forms:Morning as Saraswati,Noon as Lakshmi,Evening as Durga.
  • People suffered by mental problems mostly visit this temple,there is a belief Bhagavathi amma will cure this.
  • No one should miss the Guruthi pooja held at late evening and early morning.
  • Here people suffered by evil spirit are taken to the priest and the hair of the suffered people is taken and tied in the temple tree,so that evil will leave them.While going home Neem leaf,lemon and chilli are taken to ward off the evil spirit.
  • Tuesday and Friday are the important days of the temple.
  • The famous festival is Makam Thozhal.

Kodungallur Bagavathi Temple:

    temple
  • Dedicated to goddess Bhagavathi(Bhadrakali)with eight hands.
  • Located in Kodungallur,Thrissur district.
  • There are two festivals celebrated in this temple. 
  • Bharani Festival: It takes place at the month March-April(Meenam) and lasts for 7 days.Two events are in this festival,Kozhikallu Moodal and Kavu Theendal.
  • Thalappoli Festival:Held at the month January-February(Makaram).This is 4 day festival starts at evening of Makara Sankranthi.
Attukal Bagavathi Temple:
  • Dedicated to the goddess Kannaki.
  • Located in Attukal.
  • This goddess is mainly worshiped by women.
  • The main festival is Attukal Pongala. It starts in the month February-March and lasts for 10 days
  • Women only allowed in this Pongala rituals. 
Ambalappuzha Sri Krishna Temple:
    temple
  • Dedicated to the god Lord Sri Krishna.
  • Located in Ambalapuzha,Alapuzha district.
  • Ambalapuzha palpayasam is very famous among the hindu devotees.It is made by rice and Milk and it has a believe Guruvayurappan come to have this palpayasam daily.
  • The annual festival is Chambakulam Moolam Water.
  • Pallipana was performed by velans once in 12 years.
Meenkulathi Bagavathi Amman Temple:
temple
  • Dedicated to the goddess Meenakshi.
  • Meenkulathikavu located in Pallassena,Palakkad district,it is the oldest temple.
  • This temple is constructed in the way that shadow of the wall never falls on the ground.This temple has 2 entrances north and west side.
  • This temple had a tank,if devotees took bath in this tank then they will get rid from the diseases.
  • Navarathri,Mandala vilaku,Karthigai,Maasi thiruvizha(8 days),Pallivettai,Bhairava pooja are the festivals of this temple.
  • This temple had a strict dress code.
                          
Read More

Security features of new 2000 rupee note

Security features of new 2000 rupee note
India's Prime Minister Narendra Modi announced that Rs 500 and 1000 are banned to stop corruption and to abolish the black money in our country.Due to this announcement,Reserve Bank Of India(RBI) released more security features of new 2000 rupee note to avoid black money and fake note.There are 14 type of security features available in new 2000 rupee note which is difficult to make it as fake note.These features are easily identified by the blind peoples also.

Features in Front Side:


2000


  1. Value of the currency 2000 is watermarked. 
  2. The latent image of the value 2000 is placed on the rectangular shape image which can be seen only when the note is tilted to particular angle.
  3. The value 2000 is written in Devanagari script.
  4. Image of Mahatma Gandhi is little changed and placed in the center of the note.
  5. There is a color changing feature,if we turn back the note the green color is changed to blue color.
  6. RBI Governor's signature and Emblem of the RBI is placed right side of the currency.
  7. On the left top and right bottom of the note the number panel with numerals is in the manner small to big size.
  8. On the right bottom the rupee symbol and the value 2000 is placed in the manner of changing from green color to blue color. 
  9. Gandhi's image and currency value 2000 is printed in small letters in watermark format.
  10. Asoka Pillar emblem is printed in the right side of the note.
Features in Back Side:


2000

  1. The currency printed year is on the top left side of the note.
  2. The logo of Swachh Bharat and its slogan is printed on the note.
  3. Value of the note is printed in the recognized Indian languages.
  4. Currency value is written in Devanagari format.
Read More

Cents to square feet converter

Cents to square feet converter
Most of us use the term cent when we talk about land buy/selling. We often speak about square feet as well especially during building construction and all.There is simple calculation behind cents to square feet converter and this tool help you to convert.Please enter valid numbers and tab out or click convert button to see the result.




Enter number of cents :
Result :

Read More

Hello World DatagramSocket

Hello World DatagramSocket
In distributed applications model network/socket programming plays an vital role in exchanging the data.
We can write socket program in two ways ,One through TCP and another one through UDP. We are going to see about UDP communication.
This model is less network overhead than TCP.

We need to create server socket to send/receive the data. We can create server socket as like below.
DatagramSocket socket = new DatagramSocket(9500);

There is no need for port in sender and its only required in receiver side. Since i am combining sender and receiver i have created in generic way.Data is transmitted through data gram pocket which can be defined as like below. Datagram pocket contains the information about destination as well.Thats why IP address is required.Since i am running in localhost creating IP instance based on localhost.

String data="Hello Socket";
InetAddress ip = InetAddress.getByName("localhost");
DatagramPacket dp = new DatagramPacket(data.getBytes(), data.length(), ip, 9500);
socket.send(dp);


In the receiver side we need to instantiate same server socket and receive the data using data gram pocket.

byte[] arr= new byte[1024];
 DatagramPacket dp = new DatagramPacket(arr,arr.length);
 try {
     socket.receive(dp);
 } catch (IOException e) {
     e.printStackTrace();
 }
 String data = new String(dp.getData()).substring(0, dp.getLength());

Refer the complete running sample code below for example.

package com;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

public class ServerSocket implements Runnable{

   static DatagramSocket socket = null;
    /**
     * @param args
     * @throws IOException 
     */
    public static void main(String[] args) throws IOException {
 
 String test="Hello Socket";
 socket = new DatagramSocket(9500);
 InetAddress ip = InetAddress.getByName("localhost");
 DatagramPacket dp = new DatagramPacket(test.getBytes(), test.length(), ip, 9500);
 socket.send(dp);
 System.out.println("Sending done");
 ServerSocket st= new ServerSocket();
 new Thread(st).start();
    }
    @Override
    public void run() {
 byte[] arr= new byte[1024];
 DatagramPacket dp = new DatagramPacket(arr,arr.length);
 try {
     socket.receive(dp);
 } catch (IOException e) {
     e.printStackTrace();
 }
 String data = new String(dp.getData()).substring(0, dp.getLength());
      System.out.println("Running Thread "+data);
    }

}


Output:
Sending done
Running ThreadHello Socket
Read More

Best tourist place in india to visit in winter

Best tourist place in india to visit in winter
As we know and we keep experiencing “ INDIA is rich in its physical and cultural heritage”, for travel seekers and adventurers it’s a journey similar as the MANTLE to the CORE, the more we dig the more we explore,  they love exploring its beauty, colors, its flavors and tastes.

If one has to decide the winter vacations at a place favorable to the climate the best tourist place in india is  KULLU AND MANALI.

kulumanali


It’s a journey to the HIMALAYAS  and actually situated in HIMACHAL PRADESH.  MANALI is the best place to feel the pinch of cool wind and enjoy nature. It’s a valley nestled in the mountains of Himachal Pradesh near the northern end of Kullu. It has many attractions but the chief  center of interest  is its historical and archaeological  importance. KULLU is a pack of zig- zag alleys which are open doors to the mountain passes, it lies on the bank of river BEAS and is originated from the river and form a broad and open valley, it also has numerous temples and is renowned as VALLEY OF GODS.

KULLU MANALI are also known for the snow capped mountains, the flower valley and hidden waterfalls. For adventure lovers MANALI is a door to the roads of exploration. While for honeymooners it is an ideal, romantic leisure escapade. It is roles a place for shopping, games, dining, stays and as a world of freedom and illusion.

SOLANG VALLEY:
This place has an average altitude of 2560m above sea level and is the most favorite spot for sports lovers.It is called as SNOW POINT and is enjoyed for skiing, paragliding, trekking, rafting, biking,  and many more such fun oriented and adventures games.It’s a place FULL OF LIFE.

HIDIMBA  TEMPLE:
As we recollect MAHABHARATHA we remember BHEEMA. And this temple is dedicated to his wife HIDIMBA. It lies in the thick and dense forest of deodar built in 1553.It is a pathway of INDIAN and BUDDHIST architectural work and made of wood.Just 70 m away is a temple of HIDIMBA's son GHATOTKACHA.

ROHTANG  PASS:
Located in eastern hills of Pir  Panjal Range It is famous for the picturesque site of valley and various hidden waterfalls   as river Beas and Chenab  lie to the southern and northern side of the pass.

VASHIST  HOT WATER SPRINGS:
Spring  are the natural hot water sources. Vashist is famous for SULFUROUS HOT WATER  to attract pilgrims and tourists.It is at a distance of 4 to 5 km from MANALI  And situated across river BEAS.It is famous for the stone temples dedicated to saint VASHISTA. 

BASHESHWAR MAHADEV TEMPLE:
It is a sacred temple of lord SHIVA located in KULLU at Bajura. The temple has intricate stone carvings and idols of gods.

NEHRU  KUND:
Is a natural cold water spring and originates from the BHRINGU river. This place is a perfect picnic and refreshing spot and named after JAWAHARLAL NEHRU as it is said that he used to drink from this whenever he used to visit it.

MA  SHARVARI   TEMPLE:
The temple is located in picturesque paths and the diety is goddess DURGA.
So the best time in the year to visit is the DUSSEHRA time when the temple is on a shine time.

SULTAANPUR PALACE:
This palace has a Pahari style architecture and blend of wall paintings. Its a residential for the erstwhile rullers of Kullu valley and formerly called Rupi palace.

BIJLI  MAHADEV TEMPLE:
It is located at 2460m above sea level. It is named so   as the 60 feet high lightning  rod   situated in the temple is struck by lightning throughout the year.

BEAS RIVER :
Its flow is so fast that it is not suitable for swimming but yes it is perfect for rafting and various other camping and water sports. Apart from above there are also some other beautiful places to be visited in the plan which will add the fragrance of memories to you like.

manali


CHANDRAKHANI PASS:
 Connects   Malava  village to the Kullu valley.  It is an area for trackers and its  picturesque beauty of peaks and rivers make it a landmark.

TIBETIAN MONTESSORI:
As   many people from TIBET origin have settled here since years many monasteries lie here.Famous are GADHAN   THEKCHHOKLING GOMPA   and HIMALAYAN   NYINGAMAPA   GOMPA.They are the store houses for Tibetian   culture, literature and crafts. They are known for handicrafts paintings and carpets .The aroma of hyms  / chants and rotating prayer wheels together create divine ambience.

As off all the places in KULLU AND MANALI are mind blowing, refreshing energetic, and mesmerizing each one of us SHOULD visit it   at least  once and enjoy the BEAUTY AND HERITAGE of INDIA.
Read More

Eclipse API auto suggestion is not working

Eclipse API auto suggestion is not working
Most of the java project we use eclipse is tool for development . In general in eclipse if we use dot(.) operator near to object/class to see all the methods available.In some the rare weird scenario we will not get auto suggestion even after entering control+space as like below

This is due to some the software shortcut keys would have overridden the eclipse default behavior.

suggestion

Solution:

Go to  Window --> Preference -->Java -- >Editor -- > Content Assit -- > Advanced

Make sure that java proposals options are selected.

proposal

Read More

LPG cylinder accidental insurance claim

LPG cylinder accidental insurance claim
 LPG cylinderconsumers have accidental insurance claim option and is governed by PSU Marketing Oil Companies (IndianOil, HPCL, BPCL/BharatGas) who act as Principals and provide Third Party Insurance cover to persons and properties. The terms are documented under “Public Liability Insurance Policies for accidents involving LPG”. OMC(Oil Marketing Companies) have another Insurance Policy called “Public Liability Policy for Oil Industries”. These policies taken by Indane LPG and PSU OMCs are Public Liability Policies, hence, do not concern any individual LPG customer.

Some of the important terms of this policy are:
  • No premium for any policy is collected from the customer by the distributors.
  • The claim amount is paid over to the Oil Company who turns it to the claimant/beneficiary.
  • The policy provides for claims on account of Legal Liability
Liability at Law for compensation:

Per Event : Rs. 50 Lakhs
Per Person : Rs. 10 Lakhs
Per Year : Rs. 100 Crore

Personal Accident cover to customers and property damage at customers’ registered premises:
Personal Accident: Rs. 5 Lakhs/person per event in case of death
Medical Expenses: Rs. 15 Lakhs/event (max Rs. 1 Lakh/person, immediate relief Rs. 25K/person)
Property Damage : Rs. 1 Lakh/event at authorized customers’ registered premises.
Per Year in aggregate: Rs. 8 Crore

NOTE:  A slight different monetary cover is provided by Indane LPG:

Personal Accident: Rs. 6 Lakhs/person per event in case of death
Medical Expenses: Rs. 30 Lakhs/event (max Rs. 2 Lakh/person, immediate relief Rs. 25K/person)
Property Damage : Rs. 1 Lakh/event at authorized customers’ registered premises.
Per Year in aggregate: Rs. 10 Crore

The Procedure to be followed by customers:
  • In case of an accident involving consumer’s installation, the supply distributor is advised on it.
  • When an accident is reported, the concerned Area Office investigates the cause of the accident. If the cause is found out to be of an LPG, the Area Office notifies the concerned Insurance Company and lodges claim with it.
  • Customers need not apply to the Insurance Company or directly contact them.
  • Customers are required to submit the original documents of these:
      1.  In case of Death: Death Certificate(s) and Post Mortem report(s)/Coroner’s    report/Inquest          report (whichever applicable).
      2.  In case of injuries: Medical Bills, Doctor’s Prescriptions, Discharge Card and any other     documents related to hospitalization of the victim.
  • In case of property damage, the Insurance Company sends its own Supervisor to assess the loss.
  • Claims are settled by the concerned Insurance Company based upon the merit of each case. Decisions are taken regarding the settlement of the claim as per provisioned by the Insurance Policies.
These terms are universal for all the Oil companies providing an LPG connection in India. Except for a few differences in the monetary cover of various companies, the terms and conditions of governance are one and the same for all companies.

Read More

Current booking availability in irctc

Current booking availability in irctc
We prefer train journey due to comfort and less cost than other transport options, but now a days its very difficult to get the train tickets even when we book in advance.Most of us may not be known there is a last minute booking available in IRCTC called  "Current_Availability".
     When any train with reserved classes leaves for its destination, its charts are prepared 4 hours prior to its departure. So, when this chart is made, any vacant berths are put up for booking under “Current booking” status. The only condition is that the station of departure of a passenger should be the origin station of the train. The booking is open from the time of making charts to 15 minutes before the actual departure of the train. This system is better than the system of going through waiting lists because it provides you with a confirmed reserved ticket (if your boarding station is same as that of the origin of the train).

Let us, for instance, take the example of BLR-KCG Express (16569)

The train leaves at 8:35 p.m. Hence, the charts have been prepared by 4:35 p.m.the same day.

currentbooking


Now, it turns out that there are 119 seats vacant in the Sleeper coach. So, now if you login to the IRCTC site, you will find 119 seats for the Sleeper Coach under “Current Booking Availability”. If you wanted to go kacheguda we can  proceed to book a seat under this system.

Read More

Know your LPG cylinder expiry date

Know your LPG cylinder expiry date
Nowadays we are all using LPG in day today life for mostly kitchen purpose.So we have to use the LPG in safe way to avoid the accidents.Most of us doesn't know that there is an expiry date for the LPG cylinder.Using the expired cylinder may lead to gas leakage and unwanted fire explosion.

So everyone should know the LPG cylinder expiry date also we should inform others if they not know.Expiry date written in any one alphabet letters A to D with any one number by using paints.You can see the date on the metal that connects the top ring and cylinder body.

Alphabet letters indicate the month and the number indicates the year

A    January to March
B    April to June
C    July to September
D    October to December

For example if it is C17 then your gas cylinder will be expired in 2017 September.

LPG

Read More

Javax Validation unable to find a default provider

Javax Validation unable to find a default provider
We use javax validation for validating out data objects.Some case we might get an error like unable to find default provider. This error is due to old version of hibernate jar is referred in class-path.
Even though if we did not specify the validation libraries it will take from default hibernate libs. This issue can be avoid by using correct libraries.




javax.validation.ValidationException: Unable to find a default provider
 at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264)
 at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111)
 at com.pamp.validation.BookingValidator.validate(BookingValidator.java:17)
 at com.pamp.controllers.FindurBookingService.bookDeal(FindurBookingService.java:21)
 at com.pamp.controllers.IndexBean.bookDeal(IndexBean.java:56)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.apache.el.parser.AstValue.invoke(AstValue.java:245)
 at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:277)
 at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
 at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
 at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
 at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
 at javax.faces.component.UICommand.broadcast(UICommand.java:300)
 at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
 at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
 at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:301)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

By adding below maven dependencies in your pom.xml will resolve the above mentioned issue.

<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-validator-annotation-processor</artifactId>
        <version>4.2.0.FINAL</version>
    </dependency>

 <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-validator</artifactId>
        <version>4.2.0.FINAL</version>
    </dependency>


Read More

Windows shortcut to open restore point

Windows shortcut to open restore point
Windows there could be a scenario we wanted to go back to previous version. Error would have happened due to wrong installation or something got corrupted internally. So in order to go back to previous version we can use restore point options in windows.We can use below shortcuts to open restore point wizard.

restore.jpg

We can execute 'rstrui.exe' in run to open the wizard. Then based on our date range we can restore it to old state.

Read More

Unix/Solaris cron log location

Unix/Solaris cron log location
We used to run cron jobs for repeated tasks. This cron jobs will be running in system level,In order to schedule cron jobs we need a root user access. Some time we might face some issues with cron jobs due to which tasks may not run. Any errors in cron getting logged in log file. We can find log files in below location.

/var/cron/

In this location we can find the file "log".

Read More

Solution for eclipse keep crashing in Java 8

Solution for eclipse keep crashing in Java 8
Recently we upgraded our java version to latest java version which  is 1.8. We have configured all our existing work space in 1.7 earlier, now upgraded the version to 1.8 , after that we see multiple times eclipse was crashed. There is no pattern in it,sometimes its crashing immediately but some times during debug. We see following error in logs




A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005dcdc8df, pid=8652, tid=0x0000000000001e64
#
# JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0x4bc8df]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x0000000014b38000):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=7780, stack(0x00000000164f0000,0x00000000165f0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000008

Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x000000001a8a37c0, RDX=0x0000000000001000
RSP=0x00000000165ebd10, RBP=0x0000000017019d30, RSI=0x000000001a8a37c0, RDI=0x00000000165ec240


Problem:
This is known issue with Java 1.8 compiler with windows(JDK-8154831).

Solution:
We can add following JVM argument in eclipse.ini as a workaround for this problem. We can find eclipse.ini in eclipse installation directory.

-XX:CompileCommand=exclude,org.eclipse.jdt.internal.compiler.parser.TypeConverter::*

Read More

Easy way to check PF balance

Easy way to check PF balance
We got a good news for salaried employees.Govt of India provided a new facility for citizens to check their PF balance by giving an missed call.We need to make a call from registered mobile number.This facility not only gives you the PF balance,also it will help you to get our UAN number as well. So in case if we forget UAN number we can use this option to get it back.
01122901406

Read More

Online food order in train

Online food order in train
In IRCTC we have the facility of online food order,SMS or through mobile app.

Option 1:
IRCTC provided site to order a food. We order a food by visiting www.ecatering.irctc.co.in
Vendor and menu option will be differ based  on the station. There are three possibilities to select the menu

1. By Giving station name/station code
2.By Giving PNR number
3.By Giving Train name/Train number

We should give valid PNR number to checkout and confirm order.

Option 2:
We can use registered mobile number to book the orders.We can send an SMS with following format to 139


We call and book manually by calling toll free number 1323

Option 3:
We can book orders through IRCTC mobile app. Application name is "Food on Track".


For all these options we can make online payment.The ordered meals will be delivered to the berth.
Read More

Survivor Ratio - Heap Tuning Settings

Survivor Ratio - Heap Tuning Settings
Heap tuning is  very important and interesting concept. There are several levels and many parameters part of this exercise.Now we are going to discuss about survivor ratio.

Survivor Ratio specifies how large Eden should be sized relative to one of the two survivor spaces.if the survivor ratio is 6 then Eden space 6 times greater than the survivor space which is 1:6.
Allocating enough amount of memory in survivor spaces is very important for good performance.If survivor spaces are too small,when GC happens it may overflows directly into the old generation.If survivor spaces is too large we wasting lot memory.



Setting up the SurvivorRatio can be done through the JVM argument -XX:SurvivorRatio=6. For Example we have 2048 MB of young generation memory as per the above survivor ratio it will divided as follows

Total Memory=2048
Total Segments=8(2 survivors + 6 times of Eden as per survivor ratio)
Memory per segment=256 (2048/8)
Survivour 1= 256 MB
Survivour 2= 256 MB
Eden= 1536 MB

Read More

Dynamic values in property File

Dynamic values in property File
In java based application most of the times we externalize the constant messages through property files.This property file working in the concept of key value pairs.
There could be a scenario to pass dynamic values in property values. Lets see how can we do that?

First we need to add the place holders in property file. Content of myfile property file looks like below

loginMessage=Welcome {0} your now in {1}


We added two place holders in message above and we can add many place holders based on the requirement. Later this place holders will be replaced with dynamic values. Now i wanted to replace {0} with Raj and {1} with india.

import java.io.File;
import java.io.FileInputStream;
import java.text.MessageFormat;
import java.util.Properties;

public class Test {

  /**
   * @param args
   */
  public static void main(String[] args) {
      try{
      Properties props = new Properties();
      FileInputStream stream=new FileInputStream(new File("F://myfile.properties"));
      props.load(stream);
      String message = props.getProperty("loginMessage");
      String welcome = MessageFormat.format(message, "Raj","India");
      System.out.println(welcome);
      }catch(Exception e){
   
      }
  }

}


Final output:
Welcome Raj your now in India

Read More

How To Find Organic Fruits/Vegetables

How To Find Organic Fruits/Vegetables
In modern world food causes many problems and cause for many diseases. Most of the food items grown by chemicals and fertilizers.Its really essential to know what kind of food we are having and how those foods are grown. So turn back to organic food items to resolve these problems.

While buying we have to find organic fruits/vegetables.So to find that, IFPS had introduced the PLU code(ie price look up code). Using PLU code we can identify the organic production. PLU code contains 4 and 5 digit code.We can see PLU code label stick on the fruits as like below.

fruit

i.   4 digit code starts with 3 or 4 represents conventionally growth 
ii.  5 digit number starts with 9 means organic  
iii. 5 digit number starts with 8 mean genetically modified 






Read More

Fancy numbers for vehicles in karnataka

Fancy numbers for vehicles in karnataka
Govt of Karnataka introduced the features to the vehicle owners to avail the fancy numbers for their vehicle. This service comes under paid service, we may need to pay depending on the numbers we select. This option is available in across all RTO offices in Karnataka.We can verify the fancy numbers from below link

http://164.100.80.164/fancyappln/


FancyNumber.jpg
We need to input RTO to see the options ,there are three options available


  • Select the numbers from current series,this can be allotted by RTO
  • Selected numbers beyond 1000 from current series then commissioner  has to to approve this
  • Selected number is future series
Based on our selection we can avail  the numbers.
Read More

Default Auto Wiring in Spring

Default Auto Wiring in Spring
Spring can auto wire the beans by following method.

1. byName
2.byType
3.costructor
4.autodetect


Default auto wiring happens in spring byType 

How it works:
Auto wiring by property datatype. Spring container looks at the properties of the beans on which autowire attribute is set. It then tries to match and wire a property if its type matches with exactly one of the beans name in configuration file. If match found instance is injected to the property.
 If more than one such beans exists, exception is thrown by the container.

Read More

Fake interview calls from jobsites

Fake interview calls from jobsites
Now a days fake information are there every where, Recently my friend got a call and they were claiming they called from one of the famous job site.  They told they will have opening with some big clients and pay will be very good. This is paid service we need to pay 3000 RS through online.  In order to pay money they will send us the link. This is completely fraud we should not even talk to those guys.

They were trying to steel the money from job seekers. We can find them easily by the way they talk.
Also following points to be noted for job seekers.

1. Big Job Sites (Naukri,Monster) are free,though they have premium concept they don't call and ask to pay the money.
2. Any big sites payment will happen only through their site not by giving separate link.
3. We can clearly observe these guys will not ask anything about technical stack , they will only talk about salary part, which most of us interested in.
4. They will always use same companies name again and again.

These are the points can be noted to stay away from these fake calls. Recently my friend received fake call from below number

   +911206109700

Read More

How to convert CRT file to JKS file

How to convert CRT file to JKS file
CRT is a digital certificates which is used for securing the systems. Conversion is required in some case because each system uses different format of certificates. Now here we are going to see how to convert crt file into java key store file.

Step 1 :
First we need to create the jks file called myfile.jks with the password of jkspassword. We can achieve this by executing below command.After executing below command it will prompt for multiple questions about country,city etc.We need to provide all the relevant information to generate the file.

keytool -genkey -alias temp -keystore myfile.jks -storepass jkspassword

Step 2 :
Delete the any unwanted entries in the jks file by executing below command. This is need there could be a possibility of some spaces in the file

keytool -delete -alias temp -keystore myfile.jks -storepass jkspassword

Step 3 :
Now we need to import the crt file into jks file as like below.

keytool -import -alias -file test.com.crt -keypass keypass -keystore myfile.jks -storepass jkspassword

Now we are done with converting .crt file to .jks file.
Read More

Speed Post Tracking in India

Speed Post Tracking in India

Postal department of India provided a facility to track speed post online.Please provide your tracking number below and click the track button to get the details of the post.


Select Type :



Enter Speed Post Tracking Number :





Read More

Details of Seventh Pay Commission In India

Details of Seventh Pay Commission In India
The Union Cabinet has passed the proposals of the Seventh Pay Commission on pay and pensions that will help to improve consumption by providing the chance to put extra disposable in the hands of the 5.3 million pensioners and 4.7 million employees of the Central Govt. As per the new proposal, the hike is 2.5 times in the pension and the basic than the previous structure. The existing dearness payment will be combined with the basic pay.

What were the mottos of the seventh pay commission?
Finance Minister Mr. Arun Jaitley has addressed the impact of the decision as “a mixed bag” explaining that this pay commission will be successful to restore the demand in a stressed economy of the nation but it could also lead to price rise. However, the Cabinet will propose a review of the allowances. A committee directed by    Ashok Lavasa, the Finance Secretary will look after the proposals considering the antipathy of a number of employees over the suggestion to cut four allowances.

What’s new in this pay commission?

The pay panel has submitted 36 new allowances and has abolished 52 allowances in this 7th pay commission.
As per the recommendations, this pay commission has increased 23.5% in pay, allowances, and pensions. It has envisioned Rs 39,100 crore increase in pay, Rs 29,300 crore increase in allowances and Rs 33,700 crore increase in pensions that will result in an annual increment of Rs 1.02 lakh crore.

The minimum pay of the government employees is set at Rs 18,000 per month that is more than double of the previous pay, Rs 7,000. The maximum pay has set to Rs 2, 25,000 per month for top scales and Rs 2, 50,000 per month for cabinet secretary and others.

Another important decision of the 7th pay commission is that Rs 73, 650 crores of the total expenses will be borne by the General budget and the Railway budget will bear Rs 28,450 crore.
These recommendations have increased the expenditure of the government but there are another issue too like inflation has raised its head by the time after the implementation of the pay commission.


Read More

National Anti Doping Agency(NADA)

National Anti Doping Agency(NADA)
Sports is one of the mediums that play a great role to enhance the prestige as well as the dignity of every country to the rest of the world and while talking about the clarity and the fairness in the field of sport, the name of NADA that is playing a great role to serve this purpose in India.

What is NADA?
NADA stands for National Anti-Doping Agency. This organization was formed November 24, 2005. This type of National Anti-doping Organization (NADO) is present almost in every country and in India this organization is referred as NADA that is National Anti-doping Agency. The organization is basically responsible for endorsing, organizing and monitoring the doping control operation in every type of sports in India. As stated on its official web portal, NADA focuses on approving and executing anti-doping policies and rules which bear out the rules of the World Anti-Doping Code. NADA also plays a vital role in assisting other anti-doping associations in India as well as throughout the world and advances anti-doping education and researches.

How was NADA formed?
  • The first World consultation on doping in the field of sports was organized in Lausanne, Switzerland in early 1999. This conference led to the formation of World Anti-Doping Agency on 10th November of the year. 
  • India was one of the members of WADA during its establishment (1999- 2002). WADA that has commenced principles against the doping cases in sports, adopted its code at Copenhagen, Denmark on 05.03.2005 
  • India is one of the countries that have signed the Copenhagen Declaration supporting the anti-doping standards in December 2004. As per the terms of the code, National Anti-Doping Agency (NADA) was recorded as a Society on 24th November 2005.
  • The third conference was held in Madrid of Spain and terminated in the modified version of the code.  
  • On 07.02.2008, NADA has accepted the World Anti-doping code that was proposed by the UNESCO International Convention against Doping and Copenhagen Declaration on Anti Doping on 01.02.2007.
After its establishment since the year of 2005, NADA has always played a great role to maintain the true spirit in the field of every type of sport.Indian government Official website of NADA as below.

Read More

What is Flag Meeting (Border Meeting)?

What is Flag Meeting (Border Meeting)?
Flag meeting is a quite important security building exercise for every country that aims to solve the problem in any particular area and ensures that any anxiety of that area is brought down. This meeting is basically held at the border of two countries or on the Line of Control by the commanders of both sides.

flagmeeting


How is a flag meeting organized?
Basically, there are two levels of a flag meeting. It can be held at the brigadier level to solve smaller issues or on the general level to solve any larger context.
A particular time is specified at first by both of the countries. Commanders from both of the countries come nearer to the border area leading by their respective escorts. A representative holds up the peace flag.As per the custom, the commanders from both of the countries sit across one table to discuss the condition. It is somewhat like a conference. 

What is discussed in a flag meeting?
The main discussion of a flag meeting surrounds on the local parameter which means the discussion will just concentrate on solving the local tensions and no diplomatic issues or larger anxieties will be discussed here if there is any between the two nations. Both sides intend to solve the problem following mutual methods. Hence, it will be rightly said that a flag meeting is basically a tactical meeting of lower-level that is organized to diffuse the problem of any particular area.

Where did the flag meeting take place?
As per the custom, the commanders of both of the sides discuss during a flag meeting over a table and most of the time, the table for the discussion is placed on the land of that country which has the ascendancy in the operation. No matter, in whichever country it is taking place, it is quite important for a flag meeting to take place near the border of the two countries. Sometimes, it is also held in no man’s land. Along with the commanders, a number of soldiers also present on the site for providing security. The meeting is only for discussion and does not consist any display like bugle blowing or March past.
Read More