While working with Google charts, we usually face issues with long labels on the horizontal axis. The chart displays well, however the X-axis labels are not completely visible and displays the numbers like this: 24/3.. 25/3.. 26/3.. 27/3.. 28/3.. 30/3.. 31/3.. instead of 24/3/2006, 25/3/2006, 6/3/2006, 27/3/2006, 28/3/2006, 30/3/2006, 31/3/2006 The usual practice that we all apply is […]
PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A […]
Introduction to SonarQube: We all are well aware of the importance of codebase quality, unhampered of “deadly programming skills” which can wreck our code. But isn’t it quite cumbersome to implement different tools to look upon its different aspects. What if in one place, we can have detailed insight of all the development sins. This […]
“mappedBy” is a static map which is used to determine and change the way two associated domain classes interact with each other. Let’s start with the role of “mappedBy” in one-to-many relationships. Consider the following Example:- [code]class Team { static hasMany = [members: TeamMember] }[/code] [code]class TeamMember { Team memberOf Team captainOf }[/code] The Team […]
Grails gives us the freedom to create web applications quickly and with maximum productivity, but with the fast development, we often leave the basic code quality rules and after a few months of project we end up so much messy code that even we are not able to read it, forget about understanding it. Codenarc really […]
Couple of days back, we got to know about Pivotal deciding to end the sponsorship of Groovy and Grails project from 31st March 2015 through Guillaume Laforge’s blog post and Graeme Rocher’s post Like many others in the community, news has taken us by quite some surprise. Just to give everyone context, we are a […]
We’ve been talking about it for a while and finally GrailsConf 2015 went fabulously well. It was an amazing conference, packed with sessions from an eminent lineup of speakers and over 160 participants who gathered at The Indian Habitat Centre, New Delhi. The gathering was of mostly Java and Groovy developers. I noticed many Java […]
To a beginner writing unit tests may seem to be an overhead and a low productive affair. But this could be due to the way he chooses to write tests. One can quite easily be productive at writing unit test cases as well. Following are a few things that I follow to write the spock […]
In the previous blog Grails performance optimization – Unique constraint we have optimized Grails unique constraint. Now in this blog we will check another use case and will optimize unique constraint according to it. Suppose we have two domains having the following structure: [code] class Address { String addressLine1 String addressLine2 static constraints = { } } [/code] […]