Friday, 9 December 2016

Know your LPG gas 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 expiry date of LPG cylinder 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.


Sunday, 4 December 2016

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(
 at javax.validation.Validation.buildDefaultValidatorFactory(
 at com.pamp.validation.BookingValidator.validate(
 at com.pamp.controllers.FindurBookingService.bookDeal(
 at com.pamp.controllers.IndexBean.bookDeal(
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 at java.lang.reflect.Method.invoke(
 at org.apache.el.parser.AstValue.invoke(
 at org.apache.el.MethodExpressionImpl.invoke(
 at com.sun.faces.facelets.el.TagMethodExpression.invoke(
 at javax.faces.event.MethodExpressionActionListener.processAction(
 at javax.faces.event.ActionEvent.processListener(
 at javax.faces.component.UIComponentBase.broadcast(
 at javax.faces.component.UICommand.broadcast(
 at javax.faces.component.UIViewRoot.broadcastEvents(
 at javax.faces.component.UIViewRoot.processApplication(
 at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(
 at com.sun.faces.lifecycle.Phase.doPhase(
 at com.sun.faces.lifecycle.LifecycleImpl.execute(
 at javax.faces.webapp.FacesServlet.service(
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(

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



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.


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

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.


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

Saturday, 3 December 2016

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:

---------------  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

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

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

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


Wednesday, 30 November 2016

Know your PF balance by giving missed call

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.


Thursday, 17 November 2016

Online Food Order in Train

In IRCTC we have the facility to book meals through online,SMS or mobile app.

Option 1:
IRCTC provided site to order a food. We order a food by visiting
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.

Monday, 14 November 2016

Command to check UTC time in Unix/Solaris

Date command is used to check the current date and time. This time will be displayed in current time zone. We can pass some extra parameter to find the UTC time. We can use below command to check the time in UTC format

date -u

Friday, 11 November 2016

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

Tuesday, 8 November 2016

Property File Dynamic Placeholder Substitution in Java

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.text.MessageFormat;
import java.util.Properties;

public class Test {

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


Final output:
Welcome Raj your now in India

Sunday, 6 November 2016

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 fruits or vegetables we have to check whether it is organic or not. So to identify 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.


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 


Tuesday, 1 November 2016

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

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.

Contact Form


Email *

Message *



Copyright © 2013 - 2016 All rights reserved. Disclaimer: is an online knowledge sharing apps blog which index online free tutors, to get easier accessible manner. The blog has been created keeping only one intention of sharing knowledge and for learning purpose. I'm NOT responsible for any damages caused by the usage of the content of this blog. All trademarks, trade names, service marks, copyrighted work, logos referenced herein belong to their respective owners/companies.