1. Introduction Google has explained here on how to verify if the given IP belongs to Googlebot. So instead of hard-coding all the IPs which might change eventually, Google has suggested doing […]
Mohamed Sanaulla
A stupid Mistake
the above mistake cost me close to 1 hour. Can you spot the mistake? I tried all these possibilities: model.put(“validation_success”,1); model.put(“validation_success”,true); model.put(“validation_success”,”true”); and then realized my stupid mistake. I have installed sonar […]
Behavior Driven Development (BDD) of Postfix calculator

What is a postfix expression? An expression where in the operator is placed after the operands is called a postfix expression. For example an expression (also called infix expression) 2 + 3 […]
Gotcha: Migrating from Spring Security 3.2.x to Spring Security 4.x

Here is a simple gotcha to keep in mind while migrating to newer Spring Security version 4.x from Spring Security 3.2.x What’s the problem? The Spring security configuration expressions hasRole(‘role_name’) and hasAuthority(‘role_name’) […]
Command to find files from windows command prompt
So if you want to find files with a given extension in windows, this is how you would do: where, /r says recursively search and match for files with given pattern, and […]
New @RequestParam annotations in Spring Boot 1.4 (Spring Framework 4.3)
Earlier in Spring/Spring Boot to Map a GET or POST or DELETE or any HTTP method request handler we would write something like below: But with Springframework 4.3 and Spring Boot 1.4 […]
Java Gotcha: Parse string using SimpleDateFormat with months greater than 12
I was the other day trying to parse a date string into a date object using SimpleDateFormat to check for the validity of the date string. I had the SimpleDateFormat defined as: […]
Installing Elasticsearch on Linux
Download the Elasticsearch distribution, note the version you want to use Make sure you have Java 7. Verify by java -version. If not find out the value of $JAVA_HOME by using echo […]
Book Review: Murach’s HTML5 and CSS3, 3rd Edition
Murach’s HTML5 and CSS3, 3rd Edition is a one stop solution to solve all your learning requirements for developing the front end of your applications. The books starts with introduction to HTML […]
Setting up sharded mongodb cluster in localhost
I have been playing around with MongoDb, thanks to the M101J Course offered by Mongodb University. These NoSQL datastores are gaining popularity due to a number of reasons and one among them […]