Persist Content loaded via AJAX

Hi Folks! Recently, I was working on a web application and I was thinking of making extensive use of AJAX so that the whole page would not have to be loaded again and again. These days single page web applications(SPA) are becoming quite popular. We load a main page...

Add jQuery Plugin In AngularJS via Directive

Directives are markers on a DOM element that tell AngularJS to attach a specified behavior to that DOM element or even transform the DOM element and its children. There are many jQuery plugins which we often need in angularjs  , I was using image slider plugin...

Git add interactively in staging area

Git is the most popular version control system now a days specially in agile development. Its makes a developer’s life much easier. It is different from its compitators like SVN because it has functionality of Staging Area Staging area provides the fexiblity to...

GIT Hooks

What is GIT Hooks. Git hooks are scripts those run automatically every time a specific event occurs in a Git repository. You can customize Git’s internal behavior and actions at key points in the development life cycle. Here i am going to describe how can we...

URL mapping with constraints in Grails

Hi guys,I am back with my new blog post. As some times we have scenario to map specific URL for example “www.myexample.com/someusername” we can do this mapping easily '$_username'{ controller= "profile" action= "show" } but the issue is...

Case Insensitive URL Mapping In Grails

In grails we can do URL Mapping easily but URL also need to be case insensitive. Below is the example to make URL case insensitive. '$_controller/$_action' { controller = { params?._controller?.toLowerCase() } action = { params?._actionName?.toLowerCase() }...

Power of Liquibase

Hi Guys! I am back with a new blog post titled “Power of Liquibase”. This post is meant for those who have a basic idea of using Liquibase. As we know that Liquibase is used to keep a track of the changes that we apply to the database. It not only keeps a...

Join multiple String in java

Some time we want a function that can join multiple strings in Java . If we are working with other programming languages , we have join() function to join multiple string,If you were using Java you could not do this.Java provided tools for building GUI applications,...

How to Calculate PCB trace Impedance

I know, i know… calculation of PCB trace Impedance is quite a vexing issue of design engineers. When i started building embedded systems stuffs three years ago, I knew absolutely nothing about Impedance calculation. I kept searching for information and...

Controlling Domain Persistence using mapWith property

I am back with a new blog post titled “Controlling Domain Persistence using mapWith property”.In Grails if we want to make certain fields non-persistent we can use the transient keyword like this: class DomainClass { static transients = ['field1',...

Change controller default url pattern in Grails

Hi friends I am back with a new blog is how to change a default pattern of controller names in URL. Let us consider case 1 : We have a controller by name of AdminController . I am looking to create a new alias “/reports” in URL for AdminController all...

Factory Pattern Approach in Java

I am back with a new blog post titled “Factory Pattern Approach in Java”. Recently I was developing pricing strategies for my web application and during the development I learnt that how factory pattern can be useful and efficient for such type of...