TO THE NEW Blog PAGES

AWS

CloudFront Monitoring Using CloudWatch

Amazon CloudFront Allow us to monitor our website or application using CloudWatch.Using metrics, we can specify a time interval of as little as one minute for time periods in the previous two weeks. Following cloudwatch metrics are provided by CloudFront. 1. Requests – Number of requests for all HTTP methods and for both HTTP and […]

AWS

IAM user’s access key last used information

Yesterday AWS rolled out the new feature to enhance security for IAM user Access and Secret Key.Going forward now, IAM reports the time stamp when access keys were last used along with the region and the AWS service that was accessed.All these details can be seen from the IAM console, programmatically via the API/CLI/SDK, or in the […]

Grails

Log SQL Query with Data Bindings in grails for a piece of code

Although in grails, we can use the logSql property in the DataSource file to log SQL queries or enable loggers “org.hibernate.SQL” for logging queries and “org.hibernate.type.descriptor.sql.BasicBinder” for logging bindings. But this solution wouldn’t be that much helpful if we just want the logging for a particular piece of code rather than the whole project. So […]

AWSGrailsJava/JVM

File Upload on Amazon S3 server via HTML Form

Use Case :   File upload was require on web by end user which needs to be frequent and multiple at a time and if it goes through our tomcat server than it would be overhead on server . So for that we directly send the file to S3 server. We can upload file on Amazon S3 Server […]

iOS

Paging With UIScreenEdgePanGestureRecognizer

How To Use UIScreenEdgePanGestureRecognizer for Paging in iPhone 5 Before we get started, let me give you a brief overview of how you use UIScreenEdgePanGestureRecognizers and why they’re so handy. Using UIScreenEdgePanGestureRecognizers is extremely simple. You just perform the following steps: Create a screen edge pan gesture recognizer. When you create a gesture recognizer(screen edge […]

Android

SQLite Locking and Transaction Handling in Android

SQLite locking concept comes when we access database from multiple threads. What things should we keep in our mind while designing the database in android, let’s see. firstly we create a helper class which extends SQLiteHelper class: [code language=”java”] public class DatabaseHelper extends SQLiteOpenHelper { … } [/code] Now lets we have multiple thread which […]

Technology

Using Google Cloud Platform in an Android App

Hi This article is regarding how to use the Google cloud API from an android device . Google Cloud Storage is an Internet service to store data in Google’s cloud. . By integrating this service with our Android application we can provide a good level of security to our data since the data will not […]

Salil Kaul
Salil Kaul
Read

Technology

JQuery event binding on dynamically created content

It is pretty common to update the html DOM dynamically using ajax in interactive web applications. But the problem arises when the events bound to the existing html elements don’t work for same type of elements created dynamically. Like there is a case where I have to perform some operations on the click event of […]

Rohit
Rohit
Read

Grails

Making a domain non-persistent

In grails app, there might come scenarios where one need to create a non-persistent domain rather than creating a command obejct or POJO / POGO. GORM comes with a handy static property mapWith which has default value GORM (which associates any domain with gorm persistence layer). To make a domain non persistent set mapWith=”none”. For […]

Grails

Parsing URL Mappings in Grails

There are times when we need to parse the URL mappings in our grails app. In my case we have a REST API. In which we have implemented a generic query method for all controllers but it is available to only a few using custom URL mappings. We wanted to create test cases in such […]

GrailsJava/JVM

Spring Events With Grails

Hi, There arise several situations where you need to implement a certain flow comprising of various tasks. These tasks may be executed independent of each other and it gives us an opportunity to separate out the different parts of a flow into separate threads that can be executed “asynchronously”. I had a very similar use […]

Komal Jain
Komal Jain
Read

Grails

Reusing grails Criteria for multiple domains using Closure.delegate

I recently had a situation where I had the exact same criteria in multiple domains. I found a way to DRY them using Closure.delegate. I wanted to share that in this post. Just including the relevant details the domains that I had were like the following. [code language=”groovy”]class Subscription { static belongsTo = [topic: Topic] […]