AngularJs - Detect key press with ng-keypress

Angular way to capture key strokes is by using ng-keypress, ng-keydown and ng-keyup directives. This post is about ng-keypress which can be used to respond to a key press for example within an input element. Here I have created a sample which logs to the console when a key is…

Ruby and Rails learning resources

This is a collection I have put together for myself to learn the Ruby programming language. All of these resources are available for free. Master Ruby before Rails Mr. Neghbourley's Humble Little Ruby Book Poignant Guide to Ruby Programming Ruby The Pragmatic Programmer's Guide How To Think Like a Computer…

Node.js - Make npm work behind proxy

Installing node.js modules in a corporate environment can be problematic if your connection to the world is via a proxy. I experienced this while setting up a node.js environment at one of my client's office. I always use my personal machine which is a mac but often I…

Android - ListView Tutorial With Images and Text

Introduction In this post I will show you how to use a ListView widget to display both images and text. This is a common pattern used by many apps. If you are not familiar with ListView and would like a basic tutorial then please visit this link. For this tutorial…

Android - Linear Layout Example

In Android Layouts are containers in which you place your widgets like buttons, images, lists etc. Two of the most useful layouts are LinearLayout and RelativeLayout. In this post I will talk about LinearLayout. LinearLayout extends android.view.ViewGroup which extends android.view.View object. As the name suggests, LinearLayout…

Capture XML in WCF Service

Working on a project where we wrote WCF Services a need was identified to capture the raw xml passed in to the service operation and also capture the reply xml sent back by the service. WCF does not provide such facility out of the box but it can be easily…