How India Suffered in the hands of English

By | Other | No Comments

I have found this video while I was surfing through, As an Indian, I have studied the history, the many sacrifices of our people, how we are enjoying the fruits of their labor to get our independence but when I saw this video, I now know that what I know is nothing. I am really proud to be an Indian. After so much suffering, after so many losses, we are coming back hard, now we are one of the largest economies in India and still growing to be a super power in the eastern hemisphere. I really had to give it you Mr. Shashi Tharoor sir, that was one helluva speech.

This video was a debate held by Oxford Union on the topic “This house believes Britain owes reparations to her former colonies”. A debate which Mr. Shashi Tharoor’s side won with 185 to 56 votes.

Install Homebrew in Home directory

By | Other | No Comments

If you own a mac, chances are that you already know about Homebrew. Recently I was working on a Mac and had to install python in it but the problem is I was not an administrator. So here is the work around that I found.

Install Home Brew in your home directory.

$ mkdir Code
$ cd Code

Now install Homebrew in this directory by using the following commands.
$ git clone

Next, add Homebrew to your path

$ export PATH=${HOME}/Code/homebrew/bin:${PATH}

Keep in mind that if you close the terminal window, you should again export the PATH if you want to use ‘brew’ command.

Now to install Python simple run the following command.

$ brew install python3

Now wait for the magic to happen.

My Weirdest Interview Experience ever

By | Day to Day | No Comments

Okay, I have been to many job interviews so far, some successful and some not so much but today’s interview that I attended for takes the cake for being weirdest if not stupidest interview I have ever attended. Here is how it goes. There were two interviewers in the panel. Note:* This was supposed to be a technical interview.

Me: Good Morning!
I1 & I2: Good Morning!

I1: You are in your first semester?
Me: No, This is my second semester, I came here to IU in last August.

I1: Okay good, What subjects did you take?
Me: List of subjects, One of which is Advanced Operating System

I2: Okay what OS did you work for your projects in AOS?
Me: Xinu mounted on a Beagle Black Bone

I1: How did you like it?
Me: I got to learn a lot about how an operating system is build and how we can create a new system commands and some other interesting stuff. So I liked it very much.

I2: Didn’t you had it for your undergraduate?
Me: Yes but it’s been almost 6 years since I had the subject in my undergraduate and I really learned more than what I expected from the course.

I1: Okay, You worked for the same company for four year before you came for your masters, what is the reason for leaving?
Me: I wanted to have some real world industry experience before I came for my masters. My company had a contract for 3 years and so I came here after completing the contract.

I2: What did you do when you are at your old company?
Me: I used to be a Software developer in a product based company. We develop so and so features… We use so and so technologies. (Java is a part of my answer)

I1: Okay, what language do you like the most?
Me: I like python, I feel really comfortable in it.

I2: What Operating System do you prefer to work with?
Me: Windows but I am pretty comfortable with Linux.

I1: Which is your favorite IDE?
Me: PyCharm

I1: Okay, do you have any questions that you want us to answer?
Me: When can I expect a result for this interview?
I1: We will let you know as soon as possible.
Me: Okay, thank you. Is there any thing else that you want to know about me?

I2: No, We are done then, It is a pleasure meeting you.
Me: Thank you. Have a great day.

2 hours after this interview I get a mail stating that they were looking for developer in Java and there are not many projects in python, as such, unfortunately I am being considered for further rounds of interview to this position. I mean, what the heck? There wasn’t single question to test my technical skills in Java. They didn’t even bother to ask me a single technical question whatsoever. They have simply decided that since I like python, I can’t code in Java.

It wouldn’t sting this much had I performed poorly and got the rejection. I didn’t get a chance to perform. These past few weeks are so down for me, its as though if anything that can go wrong in my life, usually does. Waiting for the good times ahead.

LRU Data Structure Implementation – Python

By | Technology | No Comments

The other day I was talking to my friend and he asked me this. How would you implement a Least Recently Used Data-structure with a good time complexity. Below is how I came up with my solution to achieve this.

I am using a Dictionary in Python (Hashmap in case of Java) to store the Key and Node information and a Double Linked List to the store the actual data. The time complexity of a ‘get’ function is O(1) for getting the node using the Dictionary. In the double linked list, there is no need of traversing the list, We can directly remove the node and set it as head with a time complexity of O(1). Let me know what you guys think of this.