Blog
Send SMS using Twilio Java SDK
11 Jul, 17

Send SMS using Twilio Java SDK

Using Twilio an application can communicate with other devices like phone, fax, other web applications. In this blog, we will see how to send a text message on phone with the minimum code. Step1 — Add library First, you need to add Twilio library in your...
Google API with Grails
6 Jul, 17

Google API with Grails

Creating a Google API Console project and client ID     Before you can integrate Google Sign-In into your website, you must have a Google API Console project. In the project, you create a client ID, which you need to call the sign-in API. To create a Google...
Facebook SDK in Grails 3 (3.2.9)
4 Jul, 17

Facebook SDK in Grails 3 (3.2.9)

Facebook SDK : no more 0Auth remote database…no more sign up form…use Facebook for sign up… use own database to validate users…no more third party database… short coding ( need only 2 JavaScript – sdk.js and facebook.js ) Fast...
Geofencing
30 Jun, 16

Geofencing

Geofencing is actually a process of creating/defining geofence on the maps. It can be either circle,rectangle or n-sided polygon shaped. Geofence is nothing but a virtual boundary that is drawn on map. Geofence have many applications like: If a vehicle moves out of a...
Spring annotation in Grails 3
24 May, 16

Spring annotation in Grails 3

I was recently working on a grails project and found that it is possible to read the configuration/properties defined in application.yml using spring annotation in Grails 3. Its possible in Grails 3 because it uses Spring boot under the hood. Here is an example:...
CSS Wildcard characters
12 Mar, 16

CSS Wildcard characters

Hello Everyone! Recently, I was working on a UI task and I had to give CSS styling to a div on the basis of ID. The div was being generated dynamically(with dynamic ID/class) using jquery mobile. I observed that the ID contained some identifiable pattern(along with...
Change Mysql password.
28 Jan, 16

Change Mysql password.

  We all have worked in Mysql with the default username ‘root’ and password ‘root’ but we should not keep our Mysql password to default as its insecure. I am here with a blog which helps you change the password of Mysql with minimal...
Observer Design pattern
13 Jan, 16

Observer Design pattern

Hello folks, This post is all about to the Observer Design pattern. There is common occurring problem where we need to define ” a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated...
Handle session timeout in Ajax request
5 Jan, 16

Handle session timeout in Ajax request

Recently, I was working on a grails application in which I wanted to handle session timeout when ajax request was fired. When session expires in case of normal request, the browser redirects to login page which is handled by spring security.   In case of...
Test forward method of Controller
17 Oct, 15

Test forward method of Controller

This blogpost titled “Test forward method of Controller” explains the technique that can be used to test forward method of controller. Recently, I was writing test cases in grails to test an action : [php] def performAction() { forward(controller:...
Nginx selective forwarding to tomcat
15 Sep, 15

Nginx selective forwarding to tomcat

Nginx selective forwarding I encountered a situation today where Nginx had to forward all requests to tomcat except couple of URL’s which will be served by static content located inside Nginx root folder. This is what I did: [php] server { server_name...
Working with Stripe in Grails
30 Aug, 15

Working with Stripe in Grails

In a recent project, I got a requirement to integrate a Payment gateway. I choose Stripe as it is PCI Level 1 complaint which is the most stringent level of all 4. Following are the steps to integrate stripe in Grails. Create an Account on Stripe. Goto Account...