Technology

Apache HTTP Conditional Policy Requests for checking whether resource is modified or not and reduce unnecessary processing

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 […]

Node.js

Component in AngularJS

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 […]

Amit Kumar
Amit Kumar
Read

Technology

Tag Snapshot using Backup_Monkey

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 […]

Vikash Jha
Vikash Jha
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 […]

Node.js

_id With Mongoose

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] […]

Amit Kumar
Amit Kumar
Read

Grails

Customizing URL Formats in Grails (Making your URLs case insensitive)

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 […]

Grails

Customizing Fusion Chart For Various Type Via Grails

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 […]

Grails

Show status of MySQL imports using PipeViewer

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. […]

Technology

Creating Custom Node Type in JCR

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 […]