Skip to main content

Goodbye 2012

2012 has just gone by and all I can say is that, it has been yet another eventful year. The biggest thing that happened to me was my new job at Myntra. It has been two months since I joined my new employer and I'm liking my new work. I had started last year with a few goals (I don't like calling them as resolutions) and the very first one was to reduce weight. I had met with an accident in 2011 (a terrible one) and had to stay at home for two months. And by staying at home and munching all that good food, I had put on some extra weight and wanted to loose it desperately. I think I almost cleared that goal and now I'm proud of it.

Another great thing I did was to go on a long vacation with my wife. The vacation was for eleven days - four days in Kuala Lumpur and seven days in Bali. My wife and I had not been on a vacation since our last trip to Thailand and we decided to take a break from our routine work and enjoy some time together. Four days in Kuala Lumpur were good but not great, however when we arrived at Bali we knew there is something good in store for us. Bali is absolutely breathtaking; the beaches, temples, mountains, rice terraces and those sunset views were fantastic. However, there was one moment that stood out for me - watching Dolphins in their natural habitat. If you're planning to take a break I would strongly recommend this place. Most of them take a vacation when they are getting married or when they have to take a mandatory sabbatical or during the holiday season. I took my vacation in the middle of the year and I can tell you that it was the right choice I made.

Last year was supposed to be the 'last year' according to the Mayans. I know everyone must have had a laugh about it; on that day I was contemplating on the series of events that had been happening in my country. A girl was raped by six men in a moving bus and was hit with an iron rod and then thrown out of the bus. She suffered several injuries and about two weeks later she passed away. Alright the world did not come to an end but it ain't a world that anyone would want to live in. People may protest, light candles and give interviews on television but these events will happen again. I'm very much saddened by these happenings. Will 2013 be any different? I can only hope for it.


Popular posts from this blog

De-obfuscating javascript code in Chrome Developer Tools

I had blogged about JavaScript debugging with Chrome Developer Tools  some time back, wherein I have explained how these developer tools can help in debugging javascript code. Today Google Chrome 12 was released and my Chrome browser was updated to this version. As with every release, there have been some improvements made on performance, usability etc,. One feature that stood out for me is the ability to De-obfuscate the javascript code. What is Minification? Minification is the process of removing unnecessary characters such as white spaces, comments, new lines from the source code. These otherwise would be added to make the code more readable. Minifying the source code helps in reducing the file size and thereby reducing the time taken to download the file. This is the reason why most of the popular javascript libraries such as jQuery are minified. A minified jQuery file is of 31 KB in size where as an uncompressed one is about 229 KB. Unfortunately, debugging minified javascript f

Adding beforeRender and afterRender functions to a Backbone View

I was working on a Backbone application that updated the DOM when a response was received from the server. In a Backbone View, the initialize method would perform some operations and then call the render method to update the view. This worked fine, however there was scenario where in I wanted to perform some tasks before and after rendering the view. This can be considered as firing an event before and after the function had completed its execution. I found a very simple way to do this with Underscore's wrap method.

Custom validation messages for HTML5 Input elements using the constraint validation API

HTML5 has introduced several input types such as EMAIL, URL, RANGE, SEARCH, DATE, TIME, etc,. Most of the modern browsers have implemented them and are ready to be used in a HTML document. Another exciting feature introduced in HTML5 is the form validation. Instead of writing JavaScript to validate users input, browsers can now validate it and show an appropriate message if the validation fails. The validation message is shown in line with the field for which the validation has failed. The default error message is shown when the validation fails. In this post I'll explain how these error messages can be changed.