One of the default behaviors of iOS is that it stops all the services & functions of the app while you are on a phone call. While writing an audio-video iOS App, we must handle phone call’s interruption properly to resume the app. It is possible to detect a phone call and it’s states with the help […]
Automation TestingJava/JVMTechnology
We usually need to mock lots of functionality while writing unit tests. In JUnit we have many frameworks to achieve this, but PowerMock is very powerfull API to mock classes. For mocking static functions we have a bit different approach due to their different nature. Assuming we have two utility classes with static functions and one class […]
Front End DevelopmentTechnology
As we know so many tools are for rendering email, for desktop like AOL, Outlook and Thunderbird and web-based email services like Google, Hotmail and Yahoo! Mail. If you thought it was hard to ensure the cross-browser compatibility, be aware that this is a whole new game – each of these email software tools can […]
Recently, I was trying to implement a use case wherein, the server launched by an autoscaling group should automatically connects to chef server and register itself as node. The Problem Statement: How to install Chef Client on a node launched by aws autoscaling group? Step 1. Prepare AMI with chef-client installed To install chef-client on […]
While working in any iOS application, we need to build our app for multiple environments i.e. Development, Production, UAT, QA. Now a days it becomes a common practice for any app to integrate social media, analytics, crash reporter, third party tools, sdks inside apps. Each of these environment have different set of urls to point […]
Recently, I came across an interesting use case i.e to put alarms on custom metrics of autoscaling instances. Lets consider there is an autoscaling group for production environment and you need to put alarm on disk and memory utilization custom metrics. To accomplish that you need to follow the steps described below: 1. Create disk […]
The ubiquitousness of social media makes it a hot tool to handle. It can either bring in more followers to your brand when managed effectively or can run down your reputation in no time. Needless to say, in the recent years social media strategy has become a prime concern for organizations of all sizes, from […]
In this blog i will explain how to configure the access, error and slow logs of php-fpm and to modify the format in which the logs are received. Prerequisites: Lets have an application that uses the php5-fpm module, in this case, we will use the WordPress Application running on a LEMP stack. To enable the […]
You can upload files on AWS S3 using a server side solution, but in case of larger files it is advisable to use a client side solution. You can probably use JavaScript file upload feature of AWS S3. This is simple three step feature as described below: Step 1 : In the head section of your page include javascript sdk […]