Grails has done lot of changes with its latest release in Grails 3, using configuration is one of them. Now we can write application configurations in application.yml and application.groovy as well and to read these property we can need to write the following code. [code] class ExampleController { GrailsApplication grailsApplication def index() { render "Old […]
The CSS property “Display” is very useful and commonly used property of CSS which contains lots of values. In this blog we’ll talk about only “display:inline” and “display:inline-block”. We generally use both these properties to allow other elements to sit to their left and right but it has some difference which is explained below. Display:inline […]
In one of my recent projects, while working on Jenkins, I was required to create and implement a Project-based Matrix Authorization Strategy. Installation of Jenkins is a simple task, but it took me a while to implement this strategy and later I found it quite easy enough and thought of writing a blog. Project-based Matrix […]
In any DBMS, aggregations are operations that process data records and return computed results. MongoDB provides a rich set of aggregation operations that examine and perform calculations on the data sets. Running data aggregation on the mongod instance simplifies application code and limits resource requirements. In my current project, I had a requirement to show […]
AngularJSFront End Development
In AngularJS, there are three ways to register a service in a module. Module’s Factory Function Module’s Config via $provide Module’s Service Function Via Module’s Factory Function We can register a service via Angular module’s “factory” function. This is commonly use to register a service. Registering service in the module [java] var myApp = angular.module(‘myApp’, […]
This blog deeply discusses the autosigning feature of Puppet. During my journey to implement auto sign in our production environment, I came across various challenges related to security and making it as tight as possible and I was finally reached the last resort to achieve autosigning as per my requirement. Autosign is a feature of […]
Automated testing helps a lot in maintaining the quality of code. But setting up CI environments like Jenkins may seem like a hassle if you are working on small projects. Luckily for us there is a simple solution, at least for open-source projects hosted(or mirrorred) on github. Travis CI is a service freely offered to make builds […]
Day 2 at GR8Conf EU June 2015 Copenhagen, Denmark continued to beintriguing and fun filled. The Day started with the keynote from Jeff Scott Brown on Grails and its future plan. He shed light on Grails 3.0 features and its releases plans. He also asked for contribution to migrating plugins from Grails 2.x to Grails 3.0. […]
The day one at GR8Conf EU June 2015 Copenhagen, Denmark was really awesome. It started at the IT-University with a jam packed hall full of eager registrants with a welcome note from Søren with a history of how the Gr8 conf started. Then, Gulliame went through the state of affairs around Groovy & Grails and addressed the […]
AngularJSFront End Development
AngularJS Deferred & Promises- Basic Understanding Table of Contents 1. Introduction to Asynchronous AngularJs 2. Callbacks- Basic Understanding 3. Callback Hell 4. Promise- A Better way of handling callbacks 5. Promise In AngularJS- $q Service 6. Deferred API 7. Promise API 8. Some other promise based AngularJs Services 9. Some other useful features- $q.all() 1. Introduction to […]
The Core API’s in Grails 3 are based on Groovy Traits. Following are the few of the examples which shows the way you can use these traits in Groovy classes. ResponseRenderer With the help of ResponseRenderer traits we can provide render method to a Groovy class in the following way : [java] import grails.artefact.controller.support.ResponseRenderer class […]
In Grails 3 each script extends from GroovyScriptCommand. One of the property which GroovyScriptCommand provides is “gradle”. With the help of this property you can invoke gradle tasks. When you write : [java] grails create-scipt demo [/java] A script file will be generated in src/main/scripts folder with the name demo.groovy Now let us assume that […]