

1
Aug, 14
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',...

1
Aug, 14
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...

30
Jul, 14
Change Bootstrap Tooltip Content Dynamically
Dynamic Bootstrap Tooltip I was working on an angular application. There I got a requirement to show bootstrap tooltip whose content(title) change dynamically. Following is the way I generally use to show the bootstrap tooltip: [code] <a...

26
Jul, 14
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...

23
Jul, 14
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...

12
Jul, 14
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...

8
Jul, 14
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...

5
Jul, 14
Grails domains: Reduce size of hasMany String column in DB
Reduce size of hasMany property of type String Grails follows MVC(Model View Controller) design pattern and domain classes fulfills the M in MVC. Each domain class mapped with a table in the database, i.e., a domain class represents a table in the database. hasMany...

4
Jul, 14
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...

4
Jul, 14
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...

4
Jul, 14
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...

3
Jul, 14
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...

30
Jun, 14
Store Browser Session using Functional Testing with Geb in Grails
Hello, Friends In this blog I want to explain how to solve the problem of browser session loosing while you run more than one test in a testClass. When I was working on an application, I found that each test create a new browser session. But there is a problem that...

29
Jun, 14
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...

29
Jun, 14
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...

26
Jun, 14
Functional Testing For Node.js Using Mocha and Zombie.js
Hello Everyone! This is my First blog post on Functional Testing For Node.js Using Mocha and Zombie. I was Doing Functional Testing using mocha with zombie. it was too fast for functional testing because Zombie.js is a lightweight framework for testing client-side...

26
Jun, 14
Nuvoton’s microcontroller Nano130 SPI driver Code for ADE7753
Introduction: Recently, I stumbled upon a scenario where I had to write Nano130’s SPI driver code for ADE7753 while I already had written this with NUC200. You can go through my previous blog to compare this blog with previous one and you will find out how stuffs...

26
Jun, 14
Nuvoton microcontroller Nano130 SPI driver Code for ADE7753
Introduction: Recently, I stumbled upon a scenario where I had to write Nano130’s SPI driver code for ADE7753 while I already had written this with NUC200. You can go through my previous blog to compare this blog with previous one and you will find out how stuffs...

26
Jun, 14
Validating Objects using Hibernate Validator Annotations
Hello! I am back with a new Blog Post.The title is “Validating Objects using Hibernate Validator Annotations”. I was recently working on a task in which I had to remove the manual validation and use hibernate validation(using annotations) on certain...

25
Jun, 14
Testing render template in Grails Integration tests
Recently, I had to write the Integration test cases for a controller and I had extended my test Spec with IntegrationSpec. While writing the test case for action that renders a template with model I came to know that there’s no straight and simple way to test...
Recent Comments