Friday, 21 February 2014

Setting up Maven

What is Maven?

Maven is a "build & dependency management tool". It addresses two aspects of building software: First, it describes how software is built, and second, it describes its dependencies.

Maven Setup

Let’s see how to setup the maven.

Prerequisites

Download the maven from the below link,

http://www.gaidso.com/apache/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.zip

Installation

  • Extract the apache-maven-3.1.1-bin.zip file and place the apache-maven-3.1.1 folder into C Drive or anywhere you want.

Environment Variable Setup

  • Go To control panel and search for environment then you would get System Icon. Then click on the Edit Environment variable for your account.

Environemnt Variable1

  • Now you would get the Environment variable Window,

Environemnt Variable2

  • Add the below Variables by click Add button,
  •  
Variable Name Variable Value
JAVA_HOME C:\Program Files\Java\jdk1.6.0_30
M2_HOME C:\apache-maven-3.1.1
PATH C:\ProgramFiles\Java\jdk1.6.0_30\bin; C:\apache-maven-3.1.1\bin

Environemnt Variable3

Now the Maven setup has been done, you could check whether the configuration is done properly or not by doing the below steps,

Goto Run and type cmd,

cmd

  • You would get command prompt as like below, then type mvn –version and press enter key. You could able to see the maven version details, if not probably you might be missed some configurations. So kindly verify the steps.

mvn

Happy Learning!!!

Thursday, 12 December 2013

What is QR Code?

       You’ve probably seen Quick Response (QR) codes like squares with squiggly lines and designs at random places around town. For ex. in coke bottle.
The QR Code system has become popular due to its fast readability and greater storage capacity compared to standard UPC barcodes.
 
           It serves variety of function: Scan them with your smart phone, and it will take you to a Web site or phone app, give you coupons and maps to find restaurants or businesses or help you remember to have your car serviced. You can even imprint one on a T-shirt to take the place of business cards. QR codes help draw you to all sorts of places and events.
Lot of free websites available to generate the QR code such as http://www.qrcode-monkey.com/.

What is CAPTCHA?

Most of you have experienced with CAPTCHA test, let’s see the detail information about it.

What is CAPTCHA?
      CAPTCHA (Completely Automated Public Turing Test to Tell Computers and Humans Apart) is known as a type of Human Interaction Proof (HIP).It is a type of challenge-response test used in computing to determine whether the user is human being or computer program.
You’ve probably seen CAPTCHA test on lot of Web sites. The most common form of CAPTCHA is an image of several distorted letters & numbers. It’s your job to type the correct series of letters into a form. If your letters match the ones in the distorted image, then you will pass the test.
 
 

For example, a free e-mail service might find itself attacked by account requests from an automated program. That automated program could be part of a larger attempt to send out spam mail to millions of people. The CAPTCHA test helps to identify which users are real human being and which ones are computer program.

Applications:
  • Registration forms on Web sites often use CAPTCHAs. For example, free Web-based e-mail services like Hotmail, Yahoo! Mail or Gmail allow people to create an e-mail account free of charge.
  • It is used to prevent people from using bots (Automated program) to assist with massive downloading of content from multimedia websites.
  • It is used in online message boards and blog comments to prevent bots from posting spam links as a comment or message.
  • CAPTCHAs are used to prevent bots from using various types of computing services, collecting certain types of sensitive information and preventing bots from taking part in online polls
How to use:
        reCAPTCHA is a free CAPTCHA service. If you run a website that suffers from problems with spam, you can put reCAPTCHA on your site. For some applications (such as WordPress and Mediawiki), we have plugins that allow you to use reCAPTCHA without writing any code. We also have easy-to-use code for common web programming languages such as PHP.
 

References:
http://www.captcha.net/
 

Wednesday, 11 December 2013

How Does Authentication Works via Social Networks???

      Most of you aware that we could login into most of the websites and social networking sites via google/ facebook/ twitter account login credentials, do you know how it’s working? Let’s see how.
      
     OAuth is an open standard protocol for authorization. OAuth provides a method for clients to access server resources on behalf of a resource owner (such as a different client or an end-user). It also provides a process for end-users to authorize third-party access to their server resources without sharing their credentials (typically, a username and password pair), using user-agent redirections.