Solved Error installing rails: i18n requires Ruby version >= 1.9.3

I was trying to install rails on CentOS operating system, I got the error Error installing rails: i18n requires Ruby version >= 1.9.3.

Solution: Update the Rails Version

Execute following commands:

Continue reading “Solved Error installing rails: i18n requires Ruby version >= 1.9.3”

Solved RPM Installation: can’t create transaction lock on /var/lib/rpm/__db.000 in Redhat and CentOS

What if you come across transaction lock errors while installing RPM? What is the quickest solution?

Solution:

Continue reading “Solved RPM Installation: can’t create transaction lock on /var/lib/rpm/__db.000 in Redhat and CentOS”

Configuring JAVA_HOME in Windows, Linux , MAC OS

JAVA_HOME is environment variable which point to an installed JDK location. Many software requires that we set JAVA_HOME to point to the installation directory. In this post lets see how we can configure JAVA_HOME in difference OS. Continue reading “Configuring JAVA_HOME in Windows, Linux , MAC OS”

Understanding String and String literals in Java

In any programming language String is an important data structure. In this post we will explore about String in Java.
String is a class which represents the characters. Being a class it provides many methods to work with a String. To create a String in Java we have two different ways and they are
  1. String x = “Hello”;
  2. String a = new String(“Hello”); Continue reading “Understanding String and String literals in Java”