Posts

To extract substring between two character: Shell Script

var1='mysql-' var2='-linux' mysqlFromWhichCommand=/usr/local/mysql-5.1.38-linux-i686-icc-glibc23/bin/mysql versionMysql=`echo "$mysqlFromWhichCommand" | sed -e "s/.*${v1}//;s/${v2}.*//"`` echo "MySql version: $versionMysql"

Azim Dada, no more ..... innalillah he wa inna ilaihe rajeoun

Yesterday on 9th June, 2012, Azim dada, one of my cousins passed away. May Allah bless him and his family with peace. He was around 36 yrs, with two boy (one at class 7th and other is  yrs old) and a daughter (3 years old). Very funny, well mannered, well build, helpful personality he had. He owned a bi-cycle shop near Beta-Sineth more. Cause of death was, due to minor accident in bypass of Durgapur Expressway, near Moshat. Allah, please save his family.

Get email ids from a given text or email corpora using Regex and Java

Here is the example to get all email ids from a email corpora or text: package com.Nur; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Emailvalidation {     /**      * @param args      * @author nur.haldar      * @return      */     public static final String EXAMPLE_TEST = "This is the emailid: nur.haldar@comviva.com" +             " from where" +             " the mail was sent to NURJAMIA@gmail.com. Please check " +             "the two email ids are valid or not";     public static void main(String[] args) {         String regex = "\\b[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b";         Pattern pattern =...

Check valid Email Id using Regex in Java

Any email id is of the form: abc.xyz@company.com or abc23.xyz@company.co.uk or abc_34year@company.com . One can validate these emails using regular expression in Java. Below is a program which can replace the email ids with a word 'EMAIL'. package com.Nur; public class Emailvalidation {     /**      * @param args      * @author nur.haldar      * @return      */     public static final String EXAMPLE_TEST = "This is the emailid: nur.haldar@comviva.com" +             " from where" +             " the mail was sent to nurjamia@gmail.com. Please check " +             "the two email ids are valid or not";     public static void main(String[] args) {         //String nameRegex = "[A-Z][a-z]+\s\s?[A-Z][...

Regular Expression in Java

Quick Study of Regex: Common Syntax to be remember: Regular Expression Description . Matches any sign ^regex regex must match at the beginning of the line regex$ Finds regex must match at the end of the line [abc] Set definition, can match the letter a or b or c ...

Free Download "Tomay Chara Ghum Asena Maa" Ringtone

Ringtone of Maa serial Title song: Please visit the below link. https://docs.google.com/file/d/0B3UM79zo-HUHTzAxNFRUVkVVem8/edit Thanks for download. And please don't forget to comment here.

A Bitter Reality

Written by An Indian Software Engineer A Bitter Reality As the dream of most parents I had acquired a degree in Software Engineering and joined a company based in USA, the land of braves and opportunity. When I arrived in the USA, it was as if a dream had come true. Here at last I was in the place where I want to be. I decided I would be staying in this country for about Five years in which time I would have earned enough money to settle down in India. My father was a government employee and after his retirement, the only asset he could acquire was a decent one bedroom flat. I wanted to do some thing more than him. I started feeling homesick and lonely as the time passed. I used to call home and speak to my parents every week using cheap international phone cards. Two years passed, two years of Burgers at McDonald's and pizzas and discos and 2 years watching the foreign exchange rate getting happy whenever the Rupee value went down. Finally I decided to ...