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.

Comments

Popular posts from this blog

File upload and Progress events with HTML5 XmlHttpRequest Level 2

The XmlHttpRequest Level 2 specification adds several enhancements to the XmlHttpRequest object. Last week I had blogged about cross-origin-requests and how it is different from Flash\Silverlight's approach .  With Level 2 specification one can upload the file to the server by passing the file object to the send method. In this post I'll try to explore uploading file using XmlHttpRequest 2 in conjunction with the progress events. I'll also provide a description on the new HTML5 tag -  progress which can be updated while the file is being uploaded to the server. And of course, some ColdFusion code that will show how the file is accepted and stored on the server directory.

Server sent events with HTML5 and ColdFusion

There are several ways to interact with the server apart from the traditional request\response and refresh all protocol. They are polling, long polling, Ajax and Websockets ( pusherapp ). Of all these Ajax and Websockets have been very popular. There is another way to interact with the server such that the server can send notifications to the client using Server Sent Events (SSE) . SSE is a part of HTML5 spec:  http://dev.w3.org/html5/eventsource/

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.