Thursday, January 9, 2014

First Milestone in PhD?

Well it's new year.  I should have written this post all by myself.  But the post is mainly inspired by my father, who encouraged me to write this today.  In fact, now I am thinking of documenting the different stages of my Phd.  Most of the time when I feel low, I don't feel like writing.  But let's make a new year's resolution!  Whenever I will feel low, in stead of getting depressed and sitting in the corner of a room, I will start writing.  Who knows, may be in the course of writing, I will find a solution to overcome this.

Now let me reveal a secret in my life.  I don't know how everyone else's life goes.  But in my life, there is a distinctive and magical pattern.  Surprisingly, extreme failure (well not "failure" exactly, let's call them bad days) and good days come repetitively in my life.  It has become so evident that in my bad days, I become certain that even if I don't try, good days are coming along.  And wow, good days follow.  I don't know if deep inside I become the architect of my good days, but they just come.  But how would you explain getting another tram within seconds after you see a tram leaving in front of your eyes in your good days, and missing a tram for seconds after running hard and then waiting for minutes in your bad days.  I guess there are some miracles.

Anyway, this post is getting somewhere else.  Let's talk PhD.  Well, 2014 came.  And following the trend, I also took a resolution that I will be the first person to go to the office in the morning, no matter what happens.  There is this Russian guy Dmitry who comes every freaking day so early to the office.  I was feeling like going before him so strongly because from my school days, I love to be the first person coming to the school or a lab or whatever.  And I did it!!  I had to run, had to catch my breath after leaving from our residence at the same time (we live in the same residence), but I finally beat him.  For 3 out of 4 days so far I am the first person to go to the office.  I told to myself that "I can".  I don't know why but sometimes I love to push myself into challenges.

Alright, now let's talk about PhD.  My PhD topic (I don't know whether it will be the exact PhD topic I will be working on or not, but this is the first independent project I was assigned by Torsten, my supervisor) was assigned to me in November.  First it appeared to me as a bit abstract and a bit mathematical (major statistics). But it had lots of potentials because NCSA at UIUC (my dream university) had research on the topic with Torsten and I thought that if I hang on to the project, I would get a chance to do an internship in NCSA (my ultimate goal).

So I took up the topic, understood it at the high level, wrote a draft proposal and sent the proposal to Torsten.  He told me "very good".  I was happy.

Well, too soon! When I started to dig deeper, I became a bit lost.  I read a lot of papers, but it was really unclear to me, how much of the topic will be mathematical and how much programming.  I was trying to make sense of the mathematics for long and lost a lot of time.  When I sent my second version of the proposal, Torsten even told me that whether I want to change my topic.  I was very much affected by it.

Anyway, after a conversation with Torsten (by the way, it is really difficult to get a hold of him as he is busy, but he is nice enough to give you time eventually and he really expresses interest and enthusiasm in your work, unlike old professor, when he is talking to you), I had a clearer picture of it.  But still I was having a hard time putting everything together and coming up with something concrete.  I read a lot of papers but that did not help much.  In the next conversation Torsten even told me that I am making the least amount of progress in the group.  But despite this assault in this conversation, some areas became more clear to me and at last I was getting some grip.

Everytime I hear  something negative about me, my ego comes into play and it makes me work really hard.  In the christmas vacation I worked, skipping my plan of roaming around Switzerland.  After the vacation, I worked my ass off for a few days (I stayed for almost 12 hours everyday in the office) and implemented some stuff.  I wrote an email to Torsten about my progress and he called me up today.

I was really holding onto my nerves before the meeting because during the vacation, I was getting very late replies from Torsten.  Also other members of the group was having regular meetings with Torsten and I was never summoned.  I really at some point felt that I am gonna loose my job.

But today, the conversation was the most promising conversation so far.  Not only my work was appreciated by Torsten, but also I realized that I am proceeding in the dead right way.  While I had trouble figuring out at the beginning, I finally got a grip of the topic.  He was really cracking jokes and smiling throughout the conversation which made me feel really good.  Even in some cases, I realized that I have dealt with more complex cases in my implementation than is necessary.  Even the next steps seem promising to me now.

I would not say that I am utterly satisfied and am suffering from self-content. But today's conversation was really promising.  This proved that my good phase has come and it will stay for a while.  Also it gave me a lot of inspiration to move further.  And as for today, I have a good feeling about the project and I think I can produce a paper out of it.  Hard work indeed pays and I think I am going to love research.  If there is some success in it, the joy is unbearable.

From now on, whenever there is a major phase (bad/good) in my PhD, I will write it down.  I know that this is the last time in my life I will be documenting "my" emotions because after a few years, there will be very little time to think about "me" because I have to think of my "family".  Also everyone says, if you document your PhD phases, it will be a worthy document to be kept throughout your life.  It is a journey that teaches you many things, makes you a man, so that you can fight  the rest of the struggles of your life.

Wednesday, December 18, 2013

Won a photo contest

It's amazing that for the first time in my life, won a photo contest.  Also I won in the category which was judged by a professional photographer.  Not only by the sheer number of votes.  So there were three categories...1.  Most number of votes 2.  Choice by a professional photographer 3.  Most relevant photo.  Being chosen as the best by a professional photographer was really special.  Also the contest organizers shared my photo when announcing the results.  I am really happy.  After a rejection from a conference where I was really hoping, it's good news for me :-)



Sunday, December 15, 2013

Christmas season in Zurich

So I have been capturing some photos for the christmas season, which is just phenomenal in Zurich.  Here are some photos for your enjoyment!!














Saturday, December 14, 2013

Weekend fun..tried my first time-lapse video

I shoot all the images for a star trail picture..with my newly bought used 5D.  Thought of making a time lapse outta it.  I love cosmic time-lapse :-D


Thursday, December 5, 2013

Dual Boot Windows 8 and Ubuntu 12.04 LTS in Dell Laptop

So I was given a new laptop by Torsten yesterday because I used to use Mac that was really not a good platform of doing real *work* of a computer scientist.  And my old Ubuntu platform laptop was becoming really slow for my purposes.  As the new Dell laptop came with Windows 8, I had to install Ubuntu along with it to make my work going.  I was really having trouble installing it because recently they have updates the BIOS firmware of laptops which they call UEFI. They keep the previous setting of BIOS in a mode called Legacy.  First, as the UEFI mode was not allowing to make a choice for the boot order selection, I went to Legacy mode and installed Ubuntu under it.

But turned out that if Windows 8 is installed under UEFI mode and Ubuntu is under the Legacy mode, your laptop will not allow the enlisting of the two OS-es to make a choice.  You have to install the two OS-es under the same mode.  Thus I found out the most legit way to do it:

After installing Ubuntu,you have to update the grub to detect the installed Windows 8 as well.

For that run the commands described here from Ubuntu.

Probably you will end up having a lot more options that usual, you can delete the extra options by editing


Sunday, October 27, 2013

My new website in ETHZ

I finished my first week of staying in Zurich, the country is awesome, specially the people are much better than Canada so far, only they speak Swiss German and very little English, even in Main train station or in banks.  Anyways, you can get your work done in the city area but in rural areas, you are in trouble.
Just visited Uetliberg hills and that made me feel that I am in Switzerland now! :-)  I have been thinking of writing a blog about my first experiences in Switzerland for long.  But did not get the time, Oh well, soon I can do that.  Have been really busy with the project assigned right away.

Anyway, please check out my new website in the ETHZ domain.  Please let me know what you guys think about it.  I will soon post a blog about the new experience in Europe, with possible pictures.

Here is my new website (Click here)

BTW, I just finished my dinner and made omelette in a  Microwave, without any oil and it turned out to be pretty darn good!  Here is the video on how to make that (Click here)

Sunday, October 20, 2013

The LLVM demo page is currently disabled (that should not stop you)

So, there was a nice page in the LLVM website where you can try out LLVM online.  They called it the LLVM demo page (http://llvm.org/demo/).  It was really nice because not only you were able to see the generated bitcode or run your application, but also get the LLVM c++ API code necessary to generate the bitcode.  This was particularly necessary when writing a pass.  In fact I used this feature a lot while I was working on LLVM.
Apparently in ETHZ, my first project is on LLVM again and I again needed the page.  But to my surprise, the demo page was disabled.  According to Tanya Lattner, there were serious security threats with the demo and that's why they have disabled it for infinite time.  The only work around was an option of llc that you can use the C++ API code.  But for lazy persons like me, that option meant running two more command and probably creating some temporary files that need to be deleted later.  Thus I found this webpage that does the demo again, secretly! ;)  This is awesome and hope some people can benefit from it.

Click here to go the demo page