Author Archives: Raghavendar T S handshake alert: unrecognized_name – Solved handshake alert: unrecognized_name – Solved

The exception handshake alert:  unrecognized_name handshake alert:  unrecognized_name

is actually a bug in the Java v1.7. However we wont get this exception in Java v1.6. To solve this issue, you can either roll back the Java version to 1.6 or add the following code to your start of the program.

System.setProperty(“jsse.enableSNIExtension”, “false”);

Use TELNET in Shell Script or Non-interactive Mode

Use TELNET in Shell Script or Non-interactive Mode

      TELNET  is used to connect to remote machines to send data or execute commands either using interactive or non-interactive. Interactive mode is quite common where two users connect each others machine to communicate information. However we can automate the TELNET connection using the following command. Note that the sleep command is essential to make the connect to remote computer machine successful.

echo “Content or Command”
sleep 2
) | telnet Remote_Machine_Hostname/IP Port_Number

How to test the script?


      Execute the command nc -l 30000 in the terminal which make the system to listen to the port 30000. You cannot use the ports from 0 to 1023 which are reserved ports. The allowed ports are from 1024 upto 65535.


      Execute the following command in the terminal.

echo “Content or Command”
sleep 2
) | telnet Machine1_Hostname/IP 30000 

      You can also execute the command as a shell script and the the port listener and the sender can be in the same system. On execute the above command, you can see the content/command statements in Machine1. Make sure to add sleep command.

Apple’s iOS vs Google’s Android Operating System

Apple's iOS vs Google's Android Operating System

Apple’s iOS vs Google’s Android Operating System

      There are a very few mobile OS of which iOS and Android are hot in the current market trend. There is a huge battle between these two operating system to become the best among the mobile OS. Let us compare iOS and Android based on the factors like UI/UX, performance, applications etc.


      The latest smartphone of Apple, iPhone 5s has got dual-core processor where as the other high end smartphones of Samsung, Nokia have quad-core processor. Will this mean that quad-core phones are faster than dual-core smartphones? No. The performance depends on not only the hardware, but also on how the OS use the hardware. Though high-end smartphones like Samsung Galaxy S4 have octa-core processor, the Android OS does not use the hardware efficiently. The smartphone is not lag free even with that powerful octa-core processor. But taking Apple’s iPhone 5s, the performance will be smooth and lag free even with its dual-core processor. The reason is that hardware and software for Apple products are developed by Apple itself. To be more precise, the hardware and software are built in such a way that both can interact easily and in efficient way. If we take Google’s Andoird OS, it is build in generic way, so that it can support multiple number of different smartphones. Taking Apple, there are a very few models. But considering Apple, there are several hundred models. Google cannot develop a version for each of the smartphone in the market. The generic Android OS will be customized to suite a specific smartphone. This is not in the case of Apple products. The hardware and OS bind to each other in efficient way to give better performance(with just dual-core processor) than high-end smartphones. Apple achieves great performance with low-end processors compared to other Android devices.

Who wins – iOS is more stable and lag free compared to Android

User Interface & User Experience (UI/UX) 

      Both iOS and Android have a clean and neat UI. Android OS are customized by the smartphone manufactures to deliver their specific user interface and experience which sometimes makes it less stable in UI. But the UI/UX is more flexible and fluid in Apple iOS compared to Android smartphones. However Android has got huge number of third party applications to customize to specific needs.

iOS is the winner

Apps & Games 

      Both Apple and Android store has got millions of applications and games to download. However in Apple products some applications like Facebook, Twitter etc bind to the iOS to deliver maximum UI/UX.


      Android offers open source platform which is a good point to consider for the developers. But Apple iOS is not open source. Also Android applications are developed using Java programming language for which there are lot of tutorials available on the internet. But Apple iOS applications are developed using Objective C which is considered a little tougher than Java.

Android is the winner


      Smartphones powered by Android OS are available for very less price. But Apple products are very costly compared to Android powered smartphones.

Android is the winner

Ubuntu apt-get update problems”Something wicked happened resolving ‘ [-5 – No address associated with hostname]”

Ubuntu apt-get update problems"Something wicked happened resolving ' [-5 - No address associated with hostname]"

Ubuntu apt-get update problems”Something wicked happened resolving ‘ [-5 – No address associated with hostname]”

      This error “[-5 – No address associated with hostname]” is very common while installing or updating packages in Ubnutu Linux which is due DNS. To solve this issue change the “Download from” option in Update Manger. Select the option which has IP address its name. Follow the below steps to correct the issue.


  1. Open Terminal. Type update-manager and hit Enter
  2. Click Settings button. Go to tab Ubuntu Software
  3. Click drop down Download From and select Other..
  4. Select any option that has IP address in its name. E.g. United States ->
  5. You can now successfully install or update packages.

“Active Record::Connection Not Established” Error in Ruby on Rails (ROR) when Connecting to MYSQL Server – Solution

"ActiveRecord::ConnectionNotEstablished" Error in Ruby on Rails (ROR) when Connecting to MYSQL Server

“Active Record::Connection Not Established” Error in Ruby on Rails (ROR) when Connecting to MYSQL Server – Solution

      I got this error “ActiveRecord::ConnectionNotEstablished” while using Ruby on Rails with MYSQL initially. The error means that the Rails framework is not able to connect to MYSQL server. The problem is that the root(MYSQL) user was not able to connect to MYSQL through Rails. So to solve this issue, login as root in MSQL and create a new MYSQL user and config Rails to use the new MYSQL user and password.

Create User MYSQL Command:

CREATE USER ‘user’@’localhost’ IDENTIFIED BY ‘password’;

Grant Access to Required Database to the New User:

GRANT ALL PRIVILEGES ON *.* TO ‘user’@’localhost’;

Note: The first * represents the database and second * represents the table name. *.* means that user is given access to all databases and its table. You can also give restricted access to a specific database by replacing *.* by database_name.* 

      Now use the new MYSQL user in config/database.yml file which solves the issue.

Setup Used:

  • Gem v1.8
  • Ruby v1.9
  • Rails v4.0.3
  • MYSQL Server v5.5
  • mysql2 gem in Rails
  • Rails default web server (WEBrick)