MySQL provides an easy mechanism for writing the results of a select statement into a text file on the server. Using extended options of the INTO OUTFILE nomenclature, it is possible to create a comma separated value (CSV) which can be imported into a spreadsheet application such as OpenOffice or Excel or any other application […]
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 […]
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 […]
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 […]
In my Angular project, I came across a situation where i had to render some html markup, but the tricky thing was, the markup was contained in some angular scope variable. And when outputting it, it just printed out the html markup as basic text. A quick Google search informed me about the directive ng-bind-html […]
While working on one of a complex requirements in our Adobe CQ5 / AEM project , we felt the need to continuously observe the flow. Though, logs are of good help but we wanted to analyze the complete flow . In this scenario, debugging feature in IDE becomes very handy. Software Stack being used : […]
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 […]
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 […]
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 […]
A Brief History of Hadoop: Hadoop was created by Doug Cutting, the creator of Apache Lucene, the widely used text search library. Hadoop has its origins in Apache Nutch, an open source web search engine, itself a part of the Lucene project. The Origin Of The Name “hadoop”. Hadoop is not an acronym; it’s a […]
Big Data is a collection of high-volume, high-velocity and high-variety information assets that demand cost-effective, innovative forms of information processing for enhanced insight and decision making. Big data is data that exceeds the processing capacity of conventional database systems. The data is too big to fit traditional data-stores, moving too fast to be churned by […]
Hi, Before writing this blog, I would first like to make you familiar with one quote “Be liberal in what you accept, and conservative in what you send”. Yes that’s what HTTP robustness protocol states. Scenario : We have a use case where our server need to read XML files that are large containing 400 […]