Recently, I was stuck with a scenario where I was trying to bind a list of objects in my controller. While trying the way as suggested in the grails docs I was getting some weird IndexOutOfBoundException. Luckily I found a good solution on the grails mailing list: http://grails.1312388.n4.nabble.com/Databinding-Collection-of-non-domain-objects-tp3260578p3260856.html Thanks to mkwhit for asking this and […]
There might come up a case where you need to install same kind of OS and other Softwares( which are required for daily use) on multiple systems. One of the ways to do it is follow the same procedure on each of the machines, which is obviously a pain. Here’s a easy way to do […]
Clonezilla is a software that can be used to make image of system that can later be used to install this image on new system, to make it a clone of former system. Here are the steps to create image of a system by clonezilla Create a Bootable USB drive Using Clonezilla. Follow the link […]
Clonezilla is a software that allows you to do bare metal backup and recovery. To install Clonezilla we would need following Softwares, all of which are available freely. 7zip ( p7zip-full_9.04~dfsg.1-1_i386.deb) Tuxboot (tuxboot-linux-8 ) Clonezilla (clonezilla-live-1.2.6-40-i686.iso) Here are the steps to install CloneZilla Install 7zip required to install Tuxboot sudo dpkg -i p7zip-full_9.04~dfsg.1-1_i386.deb It would […]
There are time when we need to see the sql logging statement just for a method of for a particular code. Although we already have logSql property in DataSource to do it for us but it sometimes makes difficult if we need to see the log for a small piece of code rather than for […]
Once in my grails project i was facing the problem of freeze of server.When this happens tomcat becomes unresponsive.Later on by analyzing the thread dump we found that this problem might be due to the database and tomcat communication. So as to analyse how many connection are active at mysql end we found a query. Show processlist; […]
One way to execute the script file via command can be making of alias and put it in .bashrc , but this will only be available to that user. So for creating a user-defined command which can be executed from any where for any user following steps need to be followed: 1. Make a script […]
Recently, I saw some code of grails Hibernate Plugin and noticed an interesting usage of ‘as’ operator. The ‘as’ operator of groovy is typically used to change the types of objects. For example: [groovy] int a = "20" as int assert a==20 [/groovy] The ‘as’ operator can be used to provide implementation to interface as […]