Sunday, December 28, 2014

Modal dialog box and popups in Angular.js using ngDialog

If you are building an Angular.js application and wish to add a modal dialog box or a simple popup, then the ngDialog module provides an easy, simple solution. It provides two default css themes and we can also add our own custom themes. Let's see how to create a simple dialog box with ngDialog. For our example, we will have a base page with a button which when clicked will open a contact-us form...

Saturday, December 06, 2014

Lookahead in regular expressions

As I was solving a couple of problems in Checkio, I came across a new concept - lookaheads in regular expressions. At first, it was slightly confusing to understand how lookaheads are different from normal regular expressions. But they actually prove to be very useful in certain cases. Lookaheads are zero-length assertions as they do not consume characters in the string but only assert whether...

Saturday, November 22, 2014

Configure Nginx for load balancing

Recently, in our project, I was asked to configure Nginx for load balancing as our app was becoming slow, owing to high traffic. I haven't worked much with Nginx, so I was a bit apprehensive at first. As it was Diwali holidays, nobody else was there in office and I had no choice. However, on fumbling around, it turned out to be much more easier than I had thought. Imagine that you wish to run...

Sunday, November 16, 2014

At Wayanad - In the lap of nature

"Actually, the best gift you could have given her was a lifetime of adventures..." - Lewis Carroll in 'Alice in Wonderland' Last week, owing to Muharam and Guru Nanak Jayanthi, we again had a couple of holidays and as I was heading out on another trip, my friends at office were kidding me on how...

Sunday, October 12, 2014

Night Trek and Cave Exploring At Antaragange

"We live in a wonderful world that is full of beauty, charm and adventure. There is no end to the adventures we can have, if only we seek them with our eyes wide open."  - Jawaharlal Nehru Last weekend was one of those rare long weekends with five days of festival holidays. I had been planning...

Wednesday, August 06, 2014

Calculating the number of working days using Python

At times, we have a requirement to calculate the number of weekdays / working days between two dates. Here's how you do it using Python: This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. ...

Saturday, June 21, 2014

Stripping whitespaces and deleting duplicate rows in a PostgreSQL database

Two weeks back, in our project, we noticed that there were lot of values with leading and trailing white spaces in our database and also many duplicate row entries, as a result of which our program was not working correctly. I was assigned the task of cleaning up our PostgreSQL database. There were two clean ups to be done: 1. Stripping of leading and trailing white spaces in string values. 2....

Friday, May 23, 2014

A Tryst With Beas

"We travel not to escape life, but for life not to escape us." Last week, I had taken my parents to Manali on a family adventure trip, 'Tryst With Beas', organized by Countrysideindia. Manali is one of my favorite hill stations mainly because I have fallen in love with the magnificent Beas river...

Wednesday, April 23, 2014

Review of Uber cab service in Chennai

So its going to be nearly two months since, Uber, the luxury on-demand cab service provider, officially launched here in Chennai. And being an ardent lover of technology, I am pretty much excited about the new Uber mobile app which provides an easy, hassle-free, affordable and luxurious car ride to anywhere in Chennai. For those who don't know, Uber is a San Francisco based startup providing mobile...