When we are working on front-end part, then many times we face a situation where same HTML repeats on the same page or different pages, at that time we think of making that HTML a component. When using AngularJS framework, we can easily make components with the help of directives. Let’s quickly understand what a […]
In continuation with my previous article EBS Snapshot using Backup_Monkey, we have discussed one issue associated with BackUp Monkey utility. The issue was that it use’s “BACKUP_MONKEY” prefix and tag the snapshot with this prefix. As you can see in the Description, BACKUP_MONKEY prefix is used. So this create’s a redundancy while finding the exact […]
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 […]
Let us take a very common use-case: “There will be a registration page for users, where users will provide their required details along with their picture”. Details would be saved to MongoDB while the pictures would be uploaded to Cloudinary or S3 with user unique id.” Suppose we have User Schema as given below: [js] […]
When I started working on Grails I quickly noticed one caveat in its URL patterns. I wonder why on the Earth anybody would want such camel casing in URLs. Misreading the case sensitive nature of a Grails app URL can lead to broken links and 404 errors. That means you need to be careful when […]
Hi everyone, Recently in my Grails project I had to implement various fusion charts simultaneously on a single page. When I started implementing multiple fusion charts on a single page, the code became quite messy and complex. It became difficult even for me to understand and handle so many charts. This resulted in a lot […]
While working on my current application, I had to import a large database using mysql from a sql dump. The size of the sql dump was around 1.5 GB and hence the import was taking long time. I just felt the need of some tool that could help me check the progress of the import. […]
In one of our project, we had to create custom node types. In this blogpost, we’ll talk about the various ways of creating the Custom Node Type and deploying it across multiple instances. We’ll be using AEM 5.6.1 as our CQ server. A. Creating and Registering the Custom Nodetype There are broadly following three ways […]
Mongoose is a Node.js package that gives you an interface to play with mongo database. Mongoose has all sets of methods that help you to connect and access data stored in database. It translates data from database in javaScript object which you can provide to your application. We will move step by step to know how […]
Stunning fusion charts will wow your audience . You can download javascript files for free trail of fusion chart from here . Following Javascript files are required to create fusion charts : [js] <script src="../js/jquery.min.js"></script> <script src="../js/FusionCharts.js"></script> <script src="../js/FusionCharts.HC.js"></script> <script src="../js/FusionCharts.HC.Charts.js"></script> <script src="../js/FusionCharts.jqueryplugin.js"></script> <script src="../js/FusionChartsExportComponent.js"></script> [/js] Let us take a small example to demonstrate how […]
In my previous blog we learnt how to integrate Instagram login functionality in a Grails web app. Now we will see how to get Instagram user’s followers and media. Once a user is logged in via the Instagram login API, we get a JSON response containing the logged in user’s profile information in JSON Format. […]
In my current web application, I had to integrate login functionality via Instagram. To do so, I had to go through the following steps: 1. First you have to register your application using this link. In order to register your application, you need to have an Instagram account which can be done through Instagram’s mobile […]