Skip to main content

Posts

Las Vegas

January has been pretty exciting for me since last three years, It marks my annual ritual trip to Las Vegas, this is my third trip this year. Almost all of my trips have been because of work. Since Las Vegas has some of the biggest hotels[1] in the world it has become a natural choice for some of the biggest American companies to host their internal and external conferences. As an example, CES hosts some 200,000 people every year [2]. This year I started my 30-hour flight journey, yes you heard it right I had a 9-hour layover at the London airport. Though it was far from ideal it was not that bad. If you can arrange priority pass [3] card from your credit card company or pay for it. Then you can use the lounge, showers and much more for free. I manage to steal the below picture from a hoarding at the airport.  Then after much rest and time pass at the airport terminal, I boarded my next flight to Las Vegas. When I landed McCarran International Airport, the first surprise for me was the...

Portugal

#Albufeira is a small town just 3h from Lisbon. This was our first stop of the trip. This place is absolutely beautiful. Since we went there during not so crowded time it was even more enjoyable !! When everybody is a photographer #fail Stairway to heaven Symmetry Defying #Gravity festivities in #Lisbon Palace of Pena We went to #Sintra on a day trip to see the beautify national Palace of Pena. Sintra is a small town just 30 mins from Lisbon. Sintra is a very popular tourist destination, as a result, is usually very busy, so plan your trip accordingly. Jerónimos Monastery in Lisbon. We did not get a chance to see the inside of the monastery since all the monuments are closed on Monday in Lisbon. Torre De Bellém National Sanctuary of Christ the King. This was such a surprise, we went there on 1st January trying our luck as all the monuments were closed on 1st of Jan, but to our surprise, we found this place open and we got a chance to go at the top of the statute.
It was a great experience to talk to a huge audience in Mumbai and Delhi about how to start your ML journey at Google Cloud Summit ’18 India

#shaikhzayedmosque (at Abu Dhabi Shaikh Zayed Mosque)

#AbhuDhabi The land if #souks, #palaces and grand mosques.

Managing State in React.js + Flux Applications.

Recently i have been trying out the new kid on the block, React.js and its unidirectional data/state management partner Flux. The concept of React.js is very simple. Your app is a combination of react components.  Every component has a state and properties. Whenever there is any change in the state or properties of the components the component is rerendered. Though in the above points i used the state and properties very casually. Usually its very important to get your head around when to use state and when to use properties.  You can refer to this article  https://github.com/uberVU/react-guide/blob/master/props-vs-state.md  to find out more about props vs state.  On the other hand Flux which calls itself an architectural pattern rather than a framework, is also straight forward. There is a dispatcher whose main goal is to dispatch the event to all the registered objects. There is a store , the store basically encapsulates the state of a component or group of components. The store reg...

Introducing ember-data

Model objects, defined by the ember-data library abstracts away the complexities involved with handling the communication with the server, serializing, as well as de-serializing of the response received from the server. In order to define your ember-data model object, you just need to extend the DS.Model object present in ember-data module as follows: Models form the core of any MVC design pattern as they describe the core business domain at hand. In Ember.js, every route has an associated model that describes the business domain that the route needs to work on. Almost all of the examples that we have seen so far operate on the static data that is returned from the model property of the routes. But most of the times the data that needs to be operated upon is not static and is fetched from a remote server. Traditionally we have used jQuery or plain JavaScript to fetch the data from the server, using AJAX calls and then using those returned JSON objects as models in our application. This...