Grails

Mapping duplicate domain class name having different packages using autoImport in Grails

Hi, Recently one of my friend asked me whether there is a mechanism in grails to handle the use-case where we have different packages but having same domain name. Here we are having duplicate domain class names in different package and by default the domain classes are auto-imported in HQL queries which doesn’t required to […]

Tarun Pareek
Tarun Pareek
Read

Technology

Making a text vertical aligned in a DIV

Recently in my project I had to implement one page in which an image and the related text had to be shown side by side using the DIV tags, where the text needed to be centered vertically with respect to the image. Example : Let’s take a scenario where we cannot use vertical-align with DIV […]

Rajan Shergill
Rajan Shergill
Read

Technology

Sending email through command line with Mutt

In one of the shell scripts I was reading I saw a usage of mutt text-based command line email client. Mutt can be used to send out the emails from the production machines or any other servers where you do not have access to the browsers or UI based email clients. Sometimes it is essential […]

Abhishek Tejpaul
Abhishek Tejpaul
Read

Grails

Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile

Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile […]

Divya Setia
Divya Setia
Read

AngularJSFront End Development

AngularJS: Updating a Label Dynamically with User Input

After the basic introduction of AngularJS, we are all set to write code for implementing a simple functionality. Let us consider a simple scenario. There is a textbox, and whenever the text in it changes we need to update a label dynamically. Traditional way of doing this in Javascript is to bind the change event […]

raj
raj
Read

AngularJSFront End Development

AngularJS : A “Write Less Do More” JavaScript Framework

AngularJS is a javascript framework which helps to make html pages more dynamic with the least possible code. The idea is to write less, do more. AngularJS is based on the concept of MVC ( Model, View & Controller ). Model : It consists of the data that flows in the application. Before the advent […]

raj
raj
Read

Technology

960 Grid System

The 960 Grid system contains 960 pixel width. This is a CSS Framework. There are 3 types of grids in 960 Grid stystem, that is 12-Column Grid 16-Column Grid 24-Column Grid It is in fact based on a very simple and a basic principle of designing – ALIGNMENT. The 960 Grid system comes with framework […]

Kapil Chotwani
Kapil Chotwani
Read

Grails

Grails : login fails on upgrading shiro plugin.

We are in the process of upgrading our pre 2.0 Grails app to version 2.1.0. This propelled us to update many of the used plugins. One of them was Shiro plugin. We upgraded it from 1.0.1 to 1.1.4. On upgrading the plugin our login attempts were consistently failing, the reason being, this version uses Sha512Hash […]

Hitesh Bhatia
Hitesh Bhatia
Read

Grails

Grails Console, execute from file.

Grails Console is one of the most useful plugins available, it provides a console to application to which it’s installed. This plugin can be used to test code snippets amazingly fast, debug app, create patches and scripts. And the latest update has made it even more fantastic. Now it has an option to execute code […]

Hitesh Bhatia
Hitesh Bhatia
Read