How to ignore top rows in CSV or TSV files

Working with CSV or TSV files, we often ought to ignore the header row (aka. the column headers) before reading the rest of the file. To strip out the first…

Working with the Grails Database Migration Plugin

In this post, I want to share with you some experience you might find useful for your projects when working with the Grails Database Migration plugin. Brief information of the…

How to create a temporary file to store data

Your application has to write data out in a temporary file to reprocess them before rendering to users. The file will be created temporarily and swept our when the application…

Fastest way to get the first n elements of a List or an Array

Which is the fastest way to get the first n elements of a List or an Array? Let’s give a context where we want to extract some first elements from…

An annoyed error needed to be paid more attention when using RestBuilder grails plugin

In the previous post about consuming web services in Grails using RestBuilder grails plugin, I explained how to set up a call to the remote service provider. However, I have…

The Groovy Spaceship Operator Explained

Have you ever heard of the spaceship operator? If it is the case, how does it look like? To be honest, I have known it recently when I used this…

ArrayList in Java

ArrayList class implements List interface and it is based on Array data structure. It is widely used because of the functionality and flexibility that it offers. Most of the developers…

Using System properties in Grails

Retrieving a few of system variables is inevitable in developing computer applications within any environment. In this post, we would show you system variables existing once the application is loaded…

Combine two lists in Groovy

Combination or concatenation of two or multiple lists are believed to appear quite frequently in programming. This article aims to show you how to union two lists in Groovy in…

Unveil magic of hibernate lazy loading

[dropcap]R[/dropcap]ecently we have discussed about the performance of retrieving collections/relations/associations inside objects. By the way, we also review the machinery that hibernate handles these relational concepts to improve the effectiveness…