In my project on Angular.js I came across a use case where I needed to paginate the HTML tables . DataTable jQuery plugin is a perfect choice in order to accomplish this task. Let us take a simple example to illustrate the use of dataTable plugin: [js] <html> <head> <style> <link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css"> </style> […]
We recently upgraded to Grails 2.3 and found some pleasant features in the rewritten Data Binding. This raised my interest to look further into what is new and found some interesting things that could be useful: We can create a global setting for the dataBinding of the dates using the following setting in Config:[java]grails.databinding.dateFormats = […]
There are use cases where we render the template from our action and update some div in the page using ajax. The downside of this approach is when the user hits the url directly in browser address bar and the UI get totally messed up. So to fix this issue we need to apply the […]
In my current grails project, i needed to integrate Tumblr with the application using Tumblr API. I searched a lot about it and find the Java wrapper of Tumblr to use it with my grails application and thought it worth sharing. Tumblr uses OAuth1.0 protocol for authorization when our application tries to access the data. […]
Groovy being one of the fresh open source platforms in the market of Programming language, it is attracting Developer to use it because of its friendliness, easy codeabiltiy and many other features. Tempted by many of such features, CQ developers are also inclining towards using Groovy in CQ environment. To the rescue of many such […]
Amazon’s Simple Storage Service (S3) allows its customer to maintain full control over who has access to their data with the help of its Identity Access Management (IAM) service and S3 bucket policies. For example, using Bucket Permission, one can give only reading access to one user, whereas using same permission/policy options, he can allow […]
I never had to worry about whether the classes loaded in our application are in the same class loader or different, until I was stuck with the weird class not found exception. We were using a third party tool (Snowbound’s DocViewer) which provided around 10 jar files, which worked well for except one functionality which […]
Hi everyone, Some time ago I was trying to debug my Grails application which was running on Grails version 2.3.4. I usually debug using remote debug configuration inside IntelliJ IDEA and issuing a command like “grails-debug run-app”. But strangely grails-debug is no more supported, and your application will run as normal without debugger attached. So […]
Lets take an example where we need to point somedns.com, www.somedns.com to anotherdns.com using AWS’ Route53. Creating a record set to point www.somedns.com to anotherdns.com is easy, where www.somedns.com would be a CNAME type record with value “anotherdns.com”. But mapping somedns.com to anotherdns.com is not that trivial as R53 does not allow creation of a […]