Invocation Sequence Of Grails Filters

Although In most of cases like doing something before each request grails provides the concept of interceptors with in a controller, but if we like to intercept request in more than one controller than grails another functionality comes into picture called Filters....

Binary confusion

In computer technology, we have become habitual of using kilobyte (KB) as 1024 bytes, megabyte (MB) as 1024*1024 (1,048,576) bytes. Most of us think that its correct, but it’s not. The International System of Units (SI) which defined the kilo, mega, giga,milli etc.)...

Return Object from grails taglib

I was having a use-case where I need to use grails taglib, In this taglib I have a tag from which I need to return a map but I struggling with that as grails taglib by default return’s StreamCharBuffer e.g class ObjectReturningTagLib { static namespace =...

Grails Export Plugin: Create file on server

How to create file on server using grails export plugin? Grails export plugin is used for export functionality. Its supports several formats e.g., Excel, PDF, CSV, XML, etc. Following is the simple code to download the file in PDF format using export plugin: class...

Jquery Validate Plugin

There are several ways to perform validation on html forms but nothing can beat the flexibility and easiness of jQuery’s validation plug-in. The advantage of using this plugin is that you don’t have to write the validation rules from the scratch(ofcourse, thats...

Non-terminating-decimal-expansion

In one of my recent projects, I had to use java.math.BigDecimal to divide two values. I had to use BigDecimal instead of double as this was a Billing application and required the results to be accurate. However, after running the application, I encountered the...

How to create Schematic library for PCB designing

This Blog is about creating Schematic library for PCB designing in Altium. Schematic designing is an essential part of PCB designing. Firstly you draw a schematic design which is just like a circuit designing on software. This Schematic generates a netlist that is...

Edit an incorrect commit message in Git

Amending the commit message :- git commit --amend This command will open your editor, You can change the commit message of the most recent commit.Commit message can directly change from command line using below command :- git commit --amend -m "New commit...