The Nginx web server comes with a bundled module “HttpStubStatusModule”. By enabling this module we will get some insight of our nginx connections. This module provides the following information. Active Connections Connection Status (Accepted / Handled) Connection Request / Second Enable Module To get connection stats, we need to enable the status module on nginx […]
ViewPager is a layout manager that allows users to flip and view pages left and right. It is used in conjunction with PagerAdapter, FragmentPagerAdapter or FragmentStatePagerAdapter. We attach adapter consisting of either Fragment objects or simple View objects. Note: You can download source code of a sample application from here to run the android application. Difference Between PagerAdapter, FragmentPagerAdapter and FragmentStatePagerAdapter PagerAdapter: PagerAdapter […]
EC2 Backup Manager : Python Scripts One of the most important requirements in any projects is regular backups. On one of our projects we were using Netflix’s backup monkey and graffiti monkey combined to take snapshots of all the volumes in the account. But this deviated slightly from our requirement, we only required the backups […]
In this blog we will setup the jmeter and we will see how to create a simple test plan to test the database server.We will use MySql database server for our test purpose or you can use any-other database. Setup requirement Download the latest jmeter from here and untar jmeter in you home directory. Download JDBC driver […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]
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 […]