TO THE NEW Blog PAGES

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

AWS

How to Setup Replica Sets in Mongo DB (AWS EC2)

MongoDB is a popular NoSQL database that stores data in JSON like documents dynamic schemas instead of storing your data in tables and rows as you do with a relational database. In this blog we will setup Mongo DB replication on single node to demonstrate high availability and failover mechanism. What is a MongoDB Replica […]

AngularJSNode.js

Building the web with Polymer

Polymer is not another framework, in fact it sits a layer below all these frameworks. It is used to create actual HTML elements, which are independent of the implementation on top of them. Take for example a simple HTML button, it works on every browser, has roughly the same visuals and functionality. A button on the web can work with any of the front end frameworks.

AWS

Attach and Detach Elastic Load Balancers from Auto-Scaling Groups

Recently AWS started a new feature of attaching and detaching the Load Balancer in an Auto-Scaling Group. If we attach a load balancer to an auto-scaling group it allows the load balancer to send traffic to the EC2 instance in the group. And when we are detaching a load balancer from a group stops it […]

AWS

Migrate Elastic IP Address from EC2-Classic to EC2-VPC

In my recent use case , I thought of migrating EC2 classic elastic IP from EC2 classic to EC2-VPC. So now Amazon does provide this feature to migrate Ip form EC2 classic to EC2 VPC but not sure when it was released. As of know it can be only done using EC2 Query API or […]

AWS

Jenkins Coordinator Plugin

There are many occasions when we require our jenkins jobs to be executed in a predefined order. Jenkins Coordinator Plugin can help us achieve that. This post will walk you through how to use this plugin to run your jobs  in a particular sequence. Suppose we have four jobs :  Job1, Job2 ,Job3, Job4. We […]

AWS

Enable Switch Role feature to access Multiple AWS Accounts

Today we’re going to demonstrate the use of switch role feature that AWS has introduced a few months back. This feature enables an IAM user to use switch role directly in AWS Management Console to access resources across multiple AWS accounts. E.g Lets say an IAM user X of Account 1 wants to access resources […]