Grails

Load Testing an SMTP application using JMeter & Postal

In this blog, we will see how to perform load testing of an SMTP application exhaustively. We will be doing that using two tools, namely : 1) Postal 2) JMeter Postal is a program which tests the performance of SMTP email servers by sending random messages to the specified server. We can test the performance […]

Grails

FusionCharts Part – 2

Using Fusion charts you can create different variety of charts two of them are single series chart and multiple series chart . As the name implies in case of single series chart you can only display single chart and in case of multiple series chart you can display multiple charts. Now lets take an example […]

Grails

Grails ‘integrate-with’ command

While reading the Grails docs I came across a useful Grails command i.e. integrate-with. In this short blog I just want to present some of the uses of this command. By using this command we can create Git’s .gitignore file: [java] grails integrate-with –git [/java] The above command will create a .gitignore file in the […]

Grails

Facebook Oauth for fetching page token

OAuth is a secure mechanism to access facebook. To access facebook in your grails application you need to create a facebook app, go to https://developers.facebook.com, click on Apps dropdown, further click on ‘Create a new App’. Ensure that you register the URL of you application with the Facebook app you have setup. Save your apiKey […]

Grails

Spring Security Permission Based framework

In my recent project, I want to implement permission based framework with spring security grails plugin. What does permission based framework mean? We can create a ROLE at run time based on the permission given to the user. Most of the times, we use Spring security in a way where we pre-define the roles to […]

Mohit Garg
Mohit Garg
Read

Grails

Debugging in IntelliJ IDEA: Part 1

IntelliJ IDEA provides a handy debugger for grails, which simplifies debugging. Many people try avoiding using this awesome feature just because, either, they don’t want to leave the old habit of using printlns or they complain about the performance issue, and bla bla bla. As per my observation, there is no performance difference between run-app […]

GrailsiOS

Menu Listing on Navigation bar in iPhone

Hi Everyone, Though there are many native components which are provided in  iPhone for making better and effective applications, but drop down is still missing. But with the amalgamation of certain components and animation we can make a drop down menu to navigate through view controllers. For this customize our root navigationController inherited from  UINavigationController and […]

Grails

Unit testing parameters in forward method

I always wanted to test the parameters being passed in the forward method in a controller in my unit tests. Suppose we have any controller like: [java] class DemoController { def anyAction() { forward(controller: “demo”, action: “test”, params: [param1: “1”]) } } [/java] to test this forward action, we first need to mock the forward […]

Neha Gupta
Neha Gupta
Read

Grails

Iterate through two distinct dates – Groovy 2.2

Hi everyone, Ever wished for a ‘groovier’ way to iterate through two distinct dates? Well, Groovy 2.2 gives you two methods via the ‘DateGroovyMethods’ class to do exactly that: upto() and downto(). Here is the code showing the usage: [java] Date startDate = new Date() – 7 Date endDate = new Date() startDate.upto(endDate) { it […]

Services