TO THE NEW Blog PAGES

GrailsTechnology

Grails unique constraint optimization part 2

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] […]

AWSTechnology

Launching Infrastrucure using Terraform (Infrastructure as Code)

Terraform is a tool for creating, managing and versioning the infrastructure effectively. Terraform provides a common configuration to launch infrastructure of physical servers, DNS, Email Servers. With terraform, we will be launching servers using simple file based configuration ( JSON based ) and maintain versioning for each launch on any version control software. This tool […]

Vikash Jha
Vikash Jha
Read

Grails

Grails Stats

Here I am going to share one of the cool grails command that I discovered today i.e “grails stats”. This command provides basic statistics about the current grails application including the number of files and lines of code. So, I tried this command in my grails project and see what I got. > grails stats Anybody looking […]

Technology

Access Content Repository via getServiceResourceResolver() in AEM6/Sling7

JCR Sessions and Sling Based Authentication are always the important in code where someone need to get an access of the Content Repository. But this same way to get an access over content repository was remains controversial due to its administrative privileges . So with the new AEM6 version below methods have been deprecated to get […]

Vivek Dhiman
Vivek Dhiman
Read

Grails

Grails performance optimization – Unique constraint

Grails unique constraint is very powerful way to check duplicate keys in any DBMS, but it has some impact on application performance. Lets check it by one example: Suppose we have one domain having the following structure: [code] class User { String firstName String lastName String emailId static constraints = { emailId nullable: false, blank: […]

Grails

Groovy Annotations for Logging

We use logging in our application to report and persist error and warning messages as well as info messages (e.g. runtime statistics) so that the messages can later be retrieved and analyzed. Initially we were getting an instance of Logger from LoggerFactory and uses it in our class for logging information, errors, exceptions, warnings etc. […]

GrailsTechnology

Customizing the Firefox Profile and using with Selenium Web Driver

What is Firefox Profile Firefox saves your browser information such as Bookmarks, Downloads and Browsing History, etc in a set of files called profile, which is stored in a specified location by Firefox in user file directory. You can have multiple Firefox profiles, each containing a separate set of user information. The Profile Manager allows you […]

Gaurav Gupta
Gaurav Gupta
Read

Big Data

New Delhi Cassandra Users Meetup, November 2014

First of all, I want to apologize for writing this post so late.   Last Saturday, November 29, 2014 – IntelliGrape organized New Delhi Cassandra Users Meetup. This was the first meetup from this group, where we presented two sessions:    * Cassandra Core Concepts and Design Internals by Salil (slides)  * DataStax Java driver […]

Salil
Salil
Read

Grails

Groovy & Grails eXchange 2014, London: Day 1

The day finally arrived for which we crossed couple of continents. The onening day of the GGX conference went beyond our expectations and had just the right blend of enthusiasm from the presenters and the audience alike. All the while we were travelling to the venue, we had an inkling that something new was about […]

Chandan Luthra
Chandan Luthra
Read

Grails

Defining a bean by calling function on another bean

In Grails, We can define custom beans in resources.groovy. A simple bean definition looks like [java] myClass(MyClass) [/java] Read more about them here. Recently, I wanted to define a bean, where the bean’s constructor required me to call a method on another bean to be instantiated. To make it more clear, Let us consider a […]

Sachin
Sachin
Read

Big Data

Visualization using R and googleVis

We at IntelliGrape divide Big Data into four major sectors – as we commonly refer as 4C’s  of Big Data. These 4C’s are:- Capture (Data Ingestion) Contain (Data Persistence (NoSQL) Compute (Data Processing) Comprehend (Data Analytics and Visualization)   Within this blog, I’ll be focusing on the last pointer i.e. Comprehend part of Big Data – precisely […]

Mohit Garg
Mohit Garg
Read

Technology

How to get name initials as an image?

While making an application, showing user’s image is a very common use case. Gone were the days when we used to show anonymous image in case a person’s profile image or display image is not present.

Sakshi Tyagi
Sakshi Tyagi
Read