Codes from my life

Archive for the ‘Uncategorized’ Category

WFH

After a brief stint at Mountain View, I came back to Bangalore and have been working from home since then. Working from home (rather from a remote location for me, since rest of my team is on the other half of the world) has its own advantages and disadvantages. I am listing down some of the things that I have noticed about myself.

Pros:

  • You have the liberty of choosing when you want to work.
  • There is nobody to look at what and when you work. It has its own disadvantages.
  • You have time for everything as you save the extra 1.5 to 2 hours of daily commute time. If you live in Bangalore you know how difficult it is to travel during work hours.
  • Have been cooking regularly, and trying out new dishes. Have been looking at lot of cookery videos on youtube. Sometimes I feel as if I have landed in wrong profession 😛

Cons:

  • Since I am living alone in my flat, at times I feel the need to talk to people. Have been bugging my friends every now and then.
  • Its difficult to concentrate on work.
  • Collaborating on things become difficult as you don’t get to discuss things on paper or whiteboard.

Anyways its temporary since my team will be back by March. Also we will be looking for office space soon, if you happen to know any startup friendly place in IndiraNagar or Koramangala let me know.

My desk

This is my desk.

DSC_0475

So what do we have here:

  • Lenovo Thinkpad T530
  • Dell H2312HM Monitor
  • Microsoft Ergonomic 4000 Keyboard
  • 3M Ergonomic mouse
  • Apple Mini Displayport to DVi Adapter
  • Creative 2.1 Speaker system (not visible in the pic)

All the products are from different vendors. I had not noticed this until I took this pic.

Real time notifications for web applications using nodejs, socket.io and redis pubsub

Recently I was working on a real time workflow for a module. I found it really difficult to find good tutorial for the same. I struggled with Flask, gevents and lot of other things and finally settled down to nodejs and socket.io and redis pubsub.

I have written a tutorial for the same https://github.com/roshansingh/realtime-notifications.

The beauty of nodejs is that everything was accomplished in less than 50 lines of code :). Read it and let me know if you have any feedback.

 

uptime

$uptime
16:00:45 up 5 days, 8:40, 5 users, load average: 0.52, 0.45, 0.28

That’s my Thinkpad 🙂

Jab Tak Hai Jaan – Poem

This is the poem from the movie “Jab Tak Hai Jaan”. I have been listening to this song on loop for a few days. Lyrics and the music both are just perfect.

Teri aankhon ki namkeen mastiyan
Teri hansi ki beparwaah gustakhiyaan
Teri zulfon ki leharaati angdaiyaan
Nahi bhoolunga main
Jab tak hai jaan, jab tak hai jaan

Tera haath se haath chhodna
Tera saayon se rukh modna
Tera palat ke phir na dekhna
Nahin maaf karunga main
Jab tak hai jaan, jab tak hai jaan

Baarishon mein bedhadak tere naachne se
Baat baat pe bewajah tere roothne se
Chhoti chhoti teri bachkani badmashiyon se
Mohabbat karunga main
Jab tak hai jaan, jab tak hai jaan..

Tere jhoothe kasme vaadon se
Tere jalte sulagte khwabon se
Teri be-raham duaaon se
Nafrat karunga main
Jab tak hai jaan, jab tak hai jaan

Source: http://www.lyricsmint.com/2012/09/jab-tak-hai-jaan-gulzar.html

Adding a youtube video. Enjoy 🙂

Interesting bits

I have added a page to my blog where I will post interesting problems that I come across on my blog.

Check it out: http://roshansingh.in/blog/interesting-bits/

The man from earth – 2007

On recommendation of a colleague,  I watched this movie ‘The man from earth‘ yesterday.

The movie is based on a conversation between some people. The protagonist, John Oldman(who is a professor), was packing stuff to move on to a new place, when suddenly some of his colleagues from the university dropped by to say good bye. They were curious about where and why John was leaving all of a sudden. Then finally John opened up and said that he was a caveman and he had lived for 14000 years. And he moves to a new place every 10 years as people around him see that he does not age.

Curious? Go and watch the movie. Its really a brilliant piece. It has been rated 8.0 on IMDB. I was so amazed by the movie that I watched it twice back to back. The Story is written by Jerome Bixby who has also written few episodes of Star Trek.

The conversation is so captivating that you wont move at all. If you enjoy science fiction you will love it. I would rate it a perfect 10/10.