Why ?

  • Underscore js is nothing but a simple js library that gives a number of js functional programming helpers which can be used in your js code. It works well with your own js libraries like prototypejs, jQuery or backbone.
  • Simplifies your code to a good extent. Well defined functional helpers are a great advantage for programming languages like python and ruby. Underscore does the same for JS.
  • More importantly, it does not modify any bui...
    Continue reading

When you are building a web app that involves dealing with a lot of time related information and presenting it to the user, you would like to show the time information in user’s time zone so users don’t have to do the timezone conversions.

In this post, i’ll try to solve this problem keeping Ruby on Rails as my web app framework. The approach would be same fo...
Continue reading

Why ?

This is a jQuery plugin that confirms an action on click of an element and executes separate js code based on the confirmation.

Can be used to confirm users actions in a pretty way without having to use browser confirm box / alert box.

Info -

Setup &...
Continue reading

Problem -

We have been hosting some of our apps on the cloud provided by Op source (formally Dimension Data now.). While trying to automate a number of things with it, there was a particular scenario where we had to create a new ip and add a NAT rule for it when a new site is created from one of our webapps. This is quite an interesting task where network and server related tasks of a cloud provider need to be automated from the web UI of another app.

Continue reading

This article covers basics of OAuth 2 and explains how to implement oAuth provider for authenticating a set of REST APIs. Implementation is explained keeping rails (2.3.x) in mind.

Scope -

To provide a way for other applications to use our APIs by authenticating and authorizing through Oauth.

This should cover the following -

  • Server flow as described in Oauth 2.0 (We follow v22 spec of Oauth - Continue reading