Corporate

How do we deal with procrastination ?

These are FAQ from most of us :– How to meet dead lines ? How to complete task on time ? How to take more responsibilities ? Lot of things on my plate how to manage it ? How to get recognized and get praised ? Such a difficult and huge project, how will I […]

aditee
aditee
Read

Corporate

The lifestyle we adhere to @ TO THE NEW

At TO THE NEW, we believe that closely knit teams are essential for excellent results. We are in real substance, a people focused company that aims to develop high-caliber multidisciplinary groups. And the rate at which we are growing it becomes more essential and difficult to keep a closely knit team happy and encouraged. To […]

sukriti
sukriti
Read

Grails

Optimistic locking strategy in Grails

In Grails optimistic locking is achieved by version property . The Grails Domain classes has a built in property called “version”. This property can be used for optimistic locking. Although you can remove this property [java] static mapping ={ version false } [/java] but its not a very good practice. The initial value of version […]

Grails

Ecommerce site development with Magento

IntelliGrape recently started its new vertical of e-commerce sites development using Magento. Our ethos has been on choosing a leading technology/platform for whatever we do – be it custom web development or mobile apps development or ecommerce site development using packaged solution. Also, emphasis is not only on choosing a great technology but also be […]

Grails

Groovy HTTP builder for sending multipart file.

I had two applications that communicate with each other through web-services. There I had a requirement to send multi-part file from one application to another. After searching I came out with the following solution and thought to share: [java] import org.apache.http.entity.mime.MultipartEntity import org.apache.http.entity.mime.HttpMultipartMode import org.apache.http.entity.mime.content.InputStreamBody import org.apache.http.entity.mime.content.StringBody import groovyx.net.http.* void sendMultiPartFile(CommonsMultipartFile multipartImageFile, String cityName) { […]

Divya Setia
Divya Setia
Read

Technology

Common JSP/HTML & Javascript Problems

Some of the commonly faced problems are: 1) In case we give different width combinations for cells of different rows, the width combination of first row is accepted and subsequent combinations are neglected. [html] <tr> <td width="30%">1.1</td> <td width="50%">1.2</td> <td width="20%">1.3</td> </tr> <tr><td width="50%">2.1</td> <td width="40%">2.2</td> <td width="10%">2.3</td> </tr> [/html] In this case width of […]

Grails

Cool Spock Ignore/IgnoreRest annotations

While writing a test case, we are generally interested in executing only the one we are working on. With JUnit test case in grails we could say “grails test-app <ClassName>.<currentTestCase>”.  However it doesn’t work with spock specification’s. Spock framework provides multiple cool annotations,  following two annotations can be used to speed up writing/executing test case […]

Amit Jain
Amit Jain
Read

Grails

Applying Validation Constraints in Classes other than Domain classes and Command Objects

We usually specify validation constraints in domain classes and command objects. But, if it is required to provide validation in other classes(like classes in src/groovy), we can do so in two ways : 1. Defining a static constraints property in the class and using the @validateable annotation. 2. Defining a static constraints propery in the […]

raj
raj
Read

Grails

Appending anchor tag to the url on server side using fragment parameter in Grails

Hi, Recently I had come across one of the cool grails redirect parameter named ‘fragment’ providing cool feature of forming relative link with an anchor tag/name. Generally, we can simply call [groovy]window.location.href=http://yourLink#anchorName[/groovy] It will focus you to the anchor name specified in relative link means scroll the page to the anchored tag who’s anchor name […]