How to use Morris chart

Morris.js is the library, It’s a very simple API for drawing line, bar, area and donut charts.There I’m describing example of morris chart which is very simple How to use Morris Line chart: Morris.Line({ element: 'myfirstchart' data: [ { year: '2008',...

Remove Single Quote (‘) with Number Using Apache POI

I was using excel-export:0.2.1 plug-in for export data in grail,it was work properly but facing some problem whenever I was Exporting String type of data that was work properly but whenever I was using number(Date and Time),its also work properly but append the single...

Using Projections in Hibernate

Hi Guys, I am back with another post titled “Using Projections in Hibernate”. When we deal with large objects(containing multiple attributes) we use Projections to select only a subset of attributes of an object. It helps in avoiding unnecessary column...

Inheritance in Hibernate

Inheritance is one of the biggest mismatch between object oriented model and relational model(SQL based models) because object oriented paradigm supports both Is a(Inheritance) and Has a(Association) relationship. But relational models support only Has a relationship...

Filtering Records using Hibernate Criteria

Hi Guys! I am back with a new blog post titled “Filtering Records using Hibernate Criteria”. I often use Hibernate Criteria in my project whenever a new entity is added and I need to implement certain filters on it. The Hibernate Session provides...

Useful Git Commands

Hi. I am back with a new blog post on some Useful Git commands. Recently I pulled the latest code of a branch and due to some bad commit I was not able to use certain feature. So, I needed a way to rollback to some previous version(commit) i.e. the point when the code...

Managing multiple ssh key

Some times we need to manage more than one ssh key. There may be many scenario like you are having more than 2 github account or you have an account and your client want to add your ssh key to their github account. In past I faced same kind of issue and found...

git repository multiple remotes

In my previous project repository was hosted on github.com and application was supposed to deployed on heroku which was also provide a git repository. Every time I had to push code on main repository and after that same changes need to pushed on heroku git repo. I...

Lithium-Ion Battery Charger Circuitry

Lithium-ion battery management Hi everyone, this blog is about the battery management circuit of a typical Lithium-ion battery. If you want to make a simple Lithium-ion battery charger or a handy wireless stuff with charging enabled, you can use this very simple...

Install Window Application in Ubuntu

Purpose of this blog, if you want to install .exes file in Ubuntu that is possible via wine. Run this command and Install this application: sudo apt-get install wine How to install Application: Right click any .exe file Open with Wine Window Program How to uninstall...

Unroll data-driven testing in Spock

We often face a scenario where we have to run the same piece of test code over and over with different data. Spock’s data-driven testing is the answer for it. Let’s take a very common scenario of testing an action that creates the User record. This action...

Update local GIT with remote deleted branches

Synchronize local GIT with remote deleted branches Branching is very useful and important feature of any version control system, specially when many developers are working on a single project. Github is one of the popular version control system. In this blog I am...