iOSMobility

Upload File on Amazon S3 Using Amazon SDK

Amazon Simple Storage Service (Amazon S3), provides developers and IT teams with secure, durable, highly-scalable object storage. Amazon S3 is easy to use, with a simple web services interface to store and retrieve any amount of data from anywhere on the web. Requirements: iOS 7 and later Xcode 5 and later Version 2 of the […]

Marketing

The Basics Of Video Compression

With data rate as high as 165 mbps, the analog video sequence is surely not going to fulfill our digital video requirements in its native forms. A two hour Hollywood movie transport stream (TS) or a pro-res file would cost you as much as 60 GB of data if watched online in the same format. […]

iOSMobilityTechnology

Detecting phone call interruption in iOS App

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

AngularJSFront End Development

Immediate and non-immediate model updates in AngularJS

In AngularJS, immediate model updates is a default behavior but if we want to persist value in the object after a certain time period has elapsed then we can achieve the same by using “debounce” object in “ng-model-options” directive, which is known as “non-immediate model updates”. Immediate Model updates [html] <div ng-app="MyApp"> <input type="text" ng-model="message"> […]

Automation TestingJava/JVMTechnology

Mocking static methods in JUnit using PowerMock

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

HTML Email Fundamentals

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

AWSTechnology

Register chef-client in AWS Autoscaling

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

iOSTechnology

Working with multiple build environments in iOS

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

AWSTechnology

Alarms on custom metrics in Autoscaling group

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