Few useful git commands

To delete the branch from remote: git push origin --delete <branchName> To delete the branch locally: git branch -D <branchName> For aborting the merge, follow the sequence: git merge --abort git reset --merge To revert the last commit (which has not been...

SOLID STATE ELECTRICITY METROLOGY

WHAT IS ELECTRICAL ENERGY ? Kinetic Energy of the generator or Chemical Energy of the cell is converted into Electrical Energy which flows through the circuit and is converted back into Light, Heat, and kinetic Energy. Energy flows from source to load. ELECTRICAL...

Integrate PostgreSQL with Grails

In my current Grails project I am using PostgreSQL database so I just wanted to share the method to integrate PostgreSQL with Grails project. Step 1: Install PostgreSQL on Linux To install postgreSql use this command:- sudo apt-get install postgresql The default...

Add marker and lines on Google Map

Working with Google Map and add marker and lines on Map. This tutorial is explaining how to start with Google Map. 1) First create a account on developer console and create project and generate public key. 2) Create a html page. <!DOCTYPE html> <html>...

Handle JSON request in Grails

Handle JSON request in Grails In controller we get request parameters by using params. But whenever a JSON request comes on controller we can’t get its parameters on the params. To get JSON request parameters we have to use...

Grails Scaffolding Templates

In Grails we often use Grails Scaffolding Templates using defscaffold = true in our Controller which automatically creates CRUD operations. Scaffolding uses the templates for code generation which can be installed by this command:- grails install-templates The...

Easy steps for Stripe Integration with grails

Easy steps for Stripe Integration with Grails. This blog will help you to integrate stripe in your grails application. Step 1) Create an account on Stripe. Step 2) Get your secretKey and publishableKey from the Stripe Account . and set the api key in Config.groovy...

Improving Website Ranking using SEO

SEO stands for Search Engine Optimization. It is a technique which helps search engines find and rank your website higher than the millions of other sites in response to a search query. Improving website ranking is very important to get success in online business....

Inject service inside the src classes

Inject service inside the src classes Note: A service can be injected inside only those classes which are the Spring Beans. This blog for injecting the service inside the src/groovy classes. To inject the service we need to know about two spring Annotations 1)...

Preventing SQL Injection in Java

Hello friends! I am writing this post to share a very common security vulnerability that can be exploited by intruders. It is SQL Injection. What is SQL Injection ? SQL injection happens when you insert some content into a SQL query string, and the result modifies the...

Testing with Selenium

We’ll start by adding the maven dependency for selenium which contains most of the web-drivers and we’ll be using Firefox web driver for testing. <dependency> <groupId>org.seleniumhq.selenium</groupId>...

git and github account- A basic introduction

We will be discussing about the git and github account in this blog Git is basically a tool used for the version controlling of the documents. By version controlling we mean that we are maintaining the file where we can monitor all the changes made to it.We can also...

Automated functional testing using Geb and Selenium.

From today I am going to give basic concept on automated functional testing using Geb and Selenium.Today I am going to explain Selenium concept and in next session I will explain Geb and how to use Selenium in Geb. First-of-all be clear that Selenium and Geb are used...

Spock integration testing without redirected view

Today I am going to explain some basic concept of Spock integration testing without redirected view. Here I am going to check returning model from action and how to test action when it is returning model? class CreateAppController { def addDetail() { def playList = []...

Starting with Mongodb

– Mongodb is basically a database system that is document oriented and Nosql type. -Typically we call a table as a collection and a record as a document as oppose to tables and rows in RDBMS. -One of its advantage is that it does not restrict a us to a structure...

Installing and Configuring MongoDB

MongoDB is a NoSQL database that is cross platform and is a document-based system. It can be easily installed in an Ubuntu server from the command-line. In Ubuntu 12.04 LTS repositories it’s current version is 2.0.4. To install it in Debian / Ubuntu, open up a...