Blog

Insights, tutorials, and thoughts on web development and technology.

Selecting random key and value from Java HashMap

Selecting random key and value from Java HashMap

Here is the Java example that shows how to get the random key value set from a Hash Map in Java. package info.balloons.SeleniumTest; import java.sql.Timestamp; import java.util.Calendar; import...

May 04, 2015 · Tushar
How to get current timestamp in Java

How to get current timestamp in Java

Here are the Java examples that shows how you can get the current timestamp in Java -To get Unix (Epoch) timestamp public class App { public static void main( String[] args ) {...

May 03, 2015 · Tushar
Write Selenium test cases with Junit (Maven and Eclipse)

Write Selenium test cases with Junit (Maven and Eclipse)

This post will guide you how you on how you can run the automation test scripts with Selenium Web Driver and Junit. I am using Eclipse as my IDE and Maven as my build tool. This post assumes that y...

Apr 25, 2015 · Tushar
Configure XDebug Extension for PHP on Eclipse

Configure XDebug Extension for PHP on Eclipse

There are quite a lot of posts online that guides on how to install Xdebug and then configure it with your PHP Editor. I found many of the tutorials confusing and was not able to accomplish the task w...

Mar 30, 2015 · Tushar
Create a BuzzFeed Like Quiz in jQuery Plugin

Create a BuzzFeed Like Quiz in jQuery Plugin

You are in the right place if you are looking for a plugin to build a buzzfeed like quiz in jQuery. You might have came across quiz over the internet which asks you some multiple choice questions a...

Mar 15, 2015 · Tushar
Send mails through PHP (XAMPP) on OSX (Yosemite)

Send mails through PHP (XAMPP) on OSX (Yosemite)

I spent a lot of time of figuring out how to send mails through PHP mail() function on my new installation of Yosemite. Things were weird because I was able to run the unix mail command from comman...

Mar 11, 2015 · Tushar
Parsing JSON from jQuery Ajax Request

Parsing JSON from jQuery Ajax Request

This post shows the examples of parsing a JSON from a jQuery ajax call. 1. SimpleJSON [ { customer_id:"1", customer_name: "Jim" }, { customer_id:"2", customer_name: "Joe" } ] Followi...

Jan 22, 2015 · Tushar
Setting up an Maven Spring-MVC Project in Eclipse / STS

Setting up an Maven Spring-MVC Project in Eclipse / STS

This post explains how to setup an Spring MVC project in Eclipse.  Assuming that you have already know at least a bit  about Maven and Spring-MVC. Lets directly dive into the steps of doing the setup....

Nov 28, 2014 · Tushar