London Trip

15

My second paper gets published and its big, its ASPLOS! I was all set to travel to London to present my paper at Royal Society near Piccadilly Circus, London.

Though London is one of the most charismatic cities in the world and I was all excited to be an active tourist, my primary goal was to make an excellent presentation and build contacts with experts who attended the conference from across the world. ASPLOS is one of the premier conferences in Architecture, Storage field and I was very curious to know what type of work gets published in such conferences and what type of people are working on them, etc…..

I landed in London on a fine Sunday Morning(March 4th 2012). I took the Heathrow Express train from Heathrow to Paddington(Central London) which is costly but takes just 15 minutes against the inexpensive alternative local train which takes more than an hour and waiting time is 2 hours!

At Paddington, I took a taxi to my hotel which which was around 1 mile from Paddington station and I started realizing how expensive it is to stay in London. The taxi meter read 5.1 Pounds!!! The message was loud and clear “Welcome to London” :)

I stayed at Mornington Hotel, which is located a few minutes walk away from Underground Tube Station at Lancaster Gate. The hotel rooms are extremely small and one cannot expect much for a budget hotel(100 pounds a night!!) in London. I could stretch my legs and hands to almost touch all corners of the room, that’s how small it was. Bath tubs(Showers) have only half glass doors(cost cutting). So a strong stream of shower will make the entire bathroom messy! Luckily the A/C in my room was not working and hence I was promoted to another room which was much bigger, but half doors in bathroom still existed. :(

 

I attended the poster session on Sunday evening and then went around Piccadilly Circus. By the way traffic circle is called circus in London.

Next 3 days went on with intense technical discussions and presentations from brilliant people across the world. On many occasions I just couldn’t fathom the idea behind those successful papers. So I went back, read the papers again and again until I was convinced to appreciate their idea.

To me, one thing is for sure, if a paper is not accepted, it doesn’t mean its bad.. it might be hard luck. But if a paper is accepted in a big conference and I don’t understand why, then I am a BIG failure. This failure is bigger than not getting a paper accepted because the committee members who are involved in deciding the fate of the paper are no laymen. If I don’t respect them today, who will respect me tomorrow? So it was an arduous task to concentrate for 8 hours at a stretch daily and remember those 8 hours are geeky times…

It was my D-Day on Wednesday(March 7th) and there were butterflies running all around in my stomach. First time, I was standing in front of a crowd that consists of experts in professors from CMU, MIT, Harvard, ETH, Berkeley, Stanford, etc and fellows from Microsoft Research, Intel, etc…

I was nervous, but also very eager to seize the opportunity and make myself visible.

Presentation went good, received good feedback and accolades from many people. That was a huge burden off my back!

I made some nice friends on the way. Learnt a lot about UK and education in UK from a Phd student from University of Edinburg: Mr Bhargava Rajaram.

I then went around London with a few friends: Dushyant Bansal from IIT Delhi and Mehul Chadha from Rice University. 

 

I stayed in London for 2 more days to go around London.

I booked a tour with Evans to visit Windsor Castle, Stone Henge and Oxford City. Its expensive, but was totally worth it. The guide: Mr Phil was excellent with his non-stop commentary filled with intellectual comments and knowledge about historical facts about UK. He was talking like a professor with utmost confidence and he seemed to be a voracious reader citing from several literatures. There was one interesting story which goes as follows:

Have u ever wondered why we say: “Don’t take it seriously, I was just pulling ur legs”

There was once a cruel king in England, who believed all kinds of wrong doings should be dealt with equal punishment and that’s death! So irrespective of whether its a murderer, rapist or a child who is caught lying, they are all dead! Obviously some of the kids were extremely skinny and when they were hung, they didn’t have enough body weight to squeeze their veins and choke them to death. But it didn’t leave them happy too… It only caused severe injuries and hence they had to be hospitalized and once they were healthy, they would be bought back for hanging. Only if they escaped death 3 times, they would be pardoned. Now, think who pays for their hospitalization and associated costs? Its the tax-payers money. King is only a mirror of the society…. so there were several foolish laymen, who used to swing on the legs of those convicts thereby ensuring the eventual death! That’s why the phrase: Don’t pull someones legs … meaning don’t make a mockery of someones death!!!

This is quite a moving story and even if its not true…… it is atleast logically believable.

 

Our tour started with Windsor Castle. Its simply sooperb! It has huuuuge collections, gathered from across all the British colonies. Sometimes I felt so bad that some items that should have been in my home country are now sitting pretty in this place. But, in my opinion they didn’t steal it; they took it after winning the battles. Hard fought or not.. fair or not… that’s a different argument. Atleast I am glad that those masterpieces are well protected and displayed with fair acknowledgements. Anyway, the castle is filled with gift collections from across several different colonies that british empire ruled for several centuries. The way the items are presented is simply outstanding. I was awestruck.

After spending 2 hours at this castle, we moved on to our next destination, Stone Henge.

That’s a mysterious place which is still posing open ended questions to historians as to why the huge stones are laid out at this place, what does it say? why here? who did it?

There are some huge stones… which is known to weight in tonnes. Most people believe it acts like a calendar telling us what time of the year it is depending on when the sun light falls on different stones at different angles at different parts of the year.From there, we moved on to Oxford City, which has one of the oldest standing universities in the world. I can’t imagine how popular would Takshashaila university be today, had it withstood the destruction from Huns and other foolish invaders.

There are some nice monuments in this city which is still preserved today.

Like for example, there is a small building which has multiple floors which has the upper floors larger than the lower floors as shown here. 

That’s quite surprising, but it was built that way, because in those medieval times, landlords had to pay tax based on how much ground was occupied. So often the higher floors used to touch neighbor’s building! Quite clever isn’t it!

 

 

 

I also met a US military officer: Carl, who was very social and helpful to other tourists in assisting them to take pictures. He had a huge 6.8 frame which made me look like a dwarf. Hey… I am 6 foot tall by the way!

This is how I looked from his eye:

and this is a photo with Carl.

 

We then went to a fudge shop which was spreading its aroma like a wildfire.

Me being a sweet addict could not refuse to enter the shop. I was quite thrilled at seeing a young entrepreneur preparing the fudge all by herself. She has quite a smile and I couldn’t even afford to blink. She was sweeter than the fudge and I can’t believe she made me buy the fudge which was crazily expensive(4 pounds for a slab) and it was so sweet that even a sugar pill would have died of inferiority complex. Anyway, I don’t regret… whata smile!

Here she is:

 

We then returned to Victoria Street, London.

The guide told us that London is quite famous for Fish and Chips and so I decided to give it a try to Chips if not for the Fish.(I am a vegetarian).

The chips were OK…. nothing compared to the Hot Chips in Bangalore! Thats how u make chips!  Anyway, I can now claim….. Chips on the bank of Thames can’t even be compared to the Hot Chips from Bangalore on the same graph… not even logarithmically! Sorry for the pj.. I can’t hold it back. :)

 

The next day, I went to Wimbledon, which is in south of London. I have been to Flushing Meadows at NY, but Wimbledon is something very classic. It has its own charm and the feeling that you are in some sacred place. There is a beautiful museum out there and then I was allowed to the center court. Of course, I was restricted to a glass window cabin, but it was quite an experience.

 

I then went to Lords cricket ground, which is in Central-North of London. Unfortunately, authorities at Lords didn’t let me in because they think I can carry a bomb and blast it off! They were quite rude and so strict on some goddamn rules. They only allow 3 batches a day with guided tourist who can ensure that U don’t blast the ground. Thats what they told me in verbatim.

So basically any tourist cannot just visit the ground, not even the museum without the tour guide.

But after persuading, I was allowed to take some pictures off the practice pitches.

There was a huge statue of some guy called Taylor, about whom I never heard. Quite amused that his statue is put up so bold and clear and there’s no Tendulkar, Lara, Ponting, Bradman, Grace, Boycot!!!

Shame to Lords…..

 

 

 

 

That’s the end of London trip. It was indeed an amazing trip. Learnt a lot technically, historically, saw fashion on streets of London… Truly an experience to cherish.

Now back to Stony Brook.

work, sleep, eat, work, sleep, eat……. and then a paper and trip!!! I luv this life…

Lots of pictures can be found in my picture gallery:

http://dilip.nijagal.com/PhotoGallery/gallery3/index.php/Friends/London-trip

If you know me well, you know the username/password.

If not, please contact me.

panaromic

Paragliding

0

Since my childhood, I always dreamt of flying like an eagle. Always wondered what it feels to fly so high above in the sky! I finally got an opportunity to go for Para gliding in Taiwan.

A group of 7 colleagues from CCMA at ITRI started our Para-gliding trip on Saturday: Aug 20 at 7:30 AM. Para gliding in Taiwan is quite popular and the nearest spot for people living in Hsinchu is at a place called Wan Li, which is at a 1 hr driving distance from Taipei.

https://www.facebook.com/group.php?gid=120523915902

 

We reached at 11 AM at Wan Li and were shocked to see a long queue of people waiting for their turn. The landscape view from the mountain at Wan Li was breathtaking.

In front lies the Pacific Ocean and to the sides are the beautiful gigantic mountains making the paragliding experience really memorable.


I never imagined I could fly above the ocean, mountains like a bird with my huge personality, but thanks to well-trained paragliding experts at Wan Li, I managed to do it!


It was a short ride lasting around 5 minutes and we all landed on the beach smoothly at the end. We then went to North Coast Scenic area in east coast of Taiwan to do snorkeling.


More photos at: http://dilip.nijagal.com/PhotoGallery/gallery3/index.php/Friends/Taiwan-Trip/2011-summer-trip/Paragliding

Syakaro Hiking

4

Taiwan’s bio diversity is vast and its landscapes amaze me every time I visit Taiwan.

In my first visit I was taken aback by the view of gigantic mountains of Taroko Gorge in Hualien. I very much wanted to hike there, but couldn’t find a suitable group.

When I got another opportunity to visit Taiwan, I so desperately wanted to hike there, but in the nth moment I was informed that Hualien forest department requires a hiking permit 1 month in advance. Unfortunately, as an intern I do not have the luxury to plan in advance by a period of 1 month.

My quest to hike in Taiwan got a major boost when one of my colleagues Vis assured me that he would take me for a hike at least to some other good place in Taiwan. Since Taiwan has no dearth of dense forests, finding a hiking spot is no rocket science. Vis introduced me to another colleague at CCMA, Simon who is an avid outdoor activity enthusiast. It took him just a few minutes to come up with atleast 2-3 different hiking sports. Finally we settled with Syakaro, which is a supposed to be a difficult trail, and hence it won’t be crowded even on a weekend. It’s located to east of Hsinchu.

Coming from India, I have seen how a crowded place can put off my mood. Even in India, I always used to plan for toughest hiking spots to make sure I get away from crowd.

We managed to pull in 9 of our colleagues from CCMA to get going on the hiking adventure. So our trip members were: left to right: Simon, Alexey, Yi-Ling, Dilip, Vis, Oksana, Yi-Yang(Sam), Bonnie and Fanchy.

 

Simon had a car and Vis rented another 7 seater car(Wish).

We started the trip from ITRI at 7:30 AM on Saturday, Aug 13th 2011.

It took an hour of scenic drive to Neiwan and then another 2 hr journey to Syaroko trail entry point.

This trail has 2 end points. One can start from either end. But unfortunately it’s remotely located, so private transport is the only means. The road to entry points are also in very bad condition so be prepared for lots of muddy bumps.

We decided to start from Yaro entry point and go till Baishi suspension bridge and return to Yaro point again. The total length of the trip is 20 kms up and down.

There is a police check post around 10 mins drive before Yaro entry point where you need to get entry permit by providing some photo ID and there is no entry cost.

 

So we started to hike by 10:30 AM on a lovely cloudy Saturday morning with temperature around 26 degrees Celsius. It was a very pleasant weather.

After walking for 30 mins, we found a warning board which said trail is closed because of landslides.

No Entry

 

But luckily we knew it beforehand because some helpful foreigner had blogged about this trail: http://hikingtaiwan.wordpress.com/2009/03/02/syaroko-historic-trail-%E9%9C%9E%E5%96%80%E7%BE%85%E5%8F%A4%E9%81%93/

So we took a deviation into the forest where a small trail can be found leading to uphill. It looked tough in beginning, but found regular trail marks ahead. We found several water falls, small suspension bridges, bamboo trees on the way. We had to take another similar deviation later, probably after 1 hour.

Water Falls
Wooden ladders

Wooden ladders

Bamboo trees

Bamboo trees

 

 

The deviations made the trip very adventurous because they were slippery (probably because of rain some days ago).

The gorgeous views of the mountain are available all through the trail. The forest is so dense with thick green cover and lots of insects. Am not sure about any wild animals, at least we didn’t find one on our trip!

Slippery trail

Slippery trail

The magnificent view of clouds kissing the green cover is something very special.

The trail path is not an easy morning walk!. There were slippery rocks; thorny trees, small pebbles and roots of trees, which make one, topple over and then there were wooden logs supported on ropes. The ropes were tied to some tree and those logs formed a ladder and were the only hope to climb down some stretch of trail.

It was fun but a lot scary too! A slip will only lead you to hell!

 

After around 2 hrs of hike, we took a break to feast on some snakes and biscuits that we packed! :)

View from Baishi bridge

Lunch break

Lunch break

Finally after 4-hour hike, we reached the Baishi suspension bridge. It’s a 145m long suspension bridge built by the Japanese across a very deep river valley. The view from the bridge was fantastic, no words to describe it. It’s easily the best scenic, suspension bridge I have every come across. The metallic ropes holding the bridge were rusted and I could only hope it doesn’t give up on me. We kept on admiring the natural beauty for around 30 mins and then started on our return journey.

 

The return journey took around 3 hours and we were so damn waiting to relax in the car. Wo-men chanda hen lei! (we all were really very tired). Yes I can remember and repeat Chinese!

Killer punch

Killer punch

Some people were so damn tired that their body parts were like dangling pointers. Any attempt to fix it were greeted with killer punches.

 

 

To summarize, it was an awesome hiking expedition and am glad I found a very friendly, enthusiastic group of colleagues to join me in the hiking adventure.

 

Java Hash Table

1

Of late, Java has become a nightmare to me!

Just recently realized that Java hash Tables cannot have more than MAX_INTEGER_SIZE buckets.

That’s because hashCode() methods in any class return only int.

Max integer size is 2 pow 32 = 4G. U might say that’s huge, but huge is only WRT normal java applications.

these days with BIG Data handling, 4G array size limitation is a bottleneck.

Why does Java have such a restriction? I am still not sure!

So what do u do if u have a huge number of objects to store in hash table?

well answer is.. don’t use Java or else live with slower Java!

another interesting fact is that hash table size is always some power of 2 and not a prime number.

There is some explanation by the author: http://www.javaspecialists.eu/archive/Issue054.html

All these makes me go back to my old dear C. miss u C….

Cards!

0

Cards is my favorite time pass game!

I get to make new friends, get into argument with close friends, get to relax….

Some of the card games that I like:

200, Poker, Bridge, Rummy, 500, Teen patti, sattar, donkey, memory Game, lucky draw, Bluff

 

I have a very short lived memory. So I want to put out the rules for all the games I know.

Here are the rules:

200: http://www.pagat.com/kt5/200.html

Bridge: http://www.pagat.com/boston/bridge.html

Rummy: http://www.pagat.com/rummy/500rum.html

my version of 500 which is also called rummy in some places: http://www.pagat.com/rummy/rummy.html

Teen patti(Flush):  http://www.pagat.com/vying/teen_pathi.html

Sattar: http://www.pagat.com/domino/sevens.html

donkey: http://en.wikipedia.org/wiki/Donkey_(Card_Game)

Bluff: http://www.pagat.com/beating/cheat.html

 

Memory game: put all cards face down in a matrix layout. Then each player gets to pick 2 cards one by one.

Objective is to draw 2 cards of same number. If a player succeeds, he gets another turn to play or else next player plays.

Cards should be kept back in same place after memorizing.

 

Lucky draw: Very interesting when lot of people are there.

Distribute cards evenly among whoever is present.

Start playing in clockwise manner.

First player throws the card face up. Next player shud throw his card face up and so on.

Whenever the card matches, the one who threw the matching card(matching with the card just previously thrown) should block the card on table by his hand, so that next player doesn;t get to throw his card.

If he fails, he looses his chance to win.

winner is one who gets more cards.

it’s fun: If u make a rule to play/react within a millisecond. No reaction time basically. So many ppl miss their chance and rue!

Rule is to lift hands after throwing the card.  Hands should only block the card when there is a match. False blocking will remove the player out of the game.

Some nice interview collections…

0

The C Family of Languages: Interview with Dennis Ritchie, Bjarne Stroustrup, and James Gosling


STIFF ASKS, GREAT PROGRAMMERS ANSWER


Linus vs. Tanenbaum

Bill Gates and Steve Jobs Interview – Full (VIDEO)

I have impeached myself

No room for the alien, no use for the wastrel

You’re getting a totally false impression of me

Before the year ended, he said, he would be a hero or a martyr

Vegetarian food in Taiwan

0
Life of a intern is very tough in ITRI. Most of us can’t afford a vehicle for just 2-3 months of stay. You google ITRI restaurant and all your hits will be on research, LCD, nano technology, etc.
Of course we have come here for the same purpose but we need not learn it from google. :)
We can hardly find any information on restaurants nearby.
Especially for vegan people like me, ITRI is a very tough place.
There is a very nice cafeteria inside the campus but it’s closed on weekends.
It’s open for only a few stalls and they are all non-veg and not of good taste too it seems!.
There’s a town nearby, but again they are all non-veg food.
I have only few options:
1: Go to 7-11 store which are found in abundance and pickup a cheese bagel or some junk stuff.
2: There’s a pastry shop near the east gate.. around 1 kms.
3: There’s a small restaurant in the YO-HO club(That’s the sport complex next to building 89 where our dormitory is located). Again there’s hardly 1 or 2 veg options and they are all junk food.
Luckily they have fruit juices!
So the best think to do on weekend is to escape to HSinchu or Taipei or go on a trip!
There is a nice restaurant in Hsinchu downtown. That’s around 8 kms from ITRI.
Taxi would charge 300TWD and there’s a bus but it’s a pain again to communicate in Chinese with the driver.
Taipei has 5-6 Indian restaurants and they all serve nice veg food.(of course non-veg food is also served).
Most of the restaurants have menu in Chinese and so it’s very difficult to know if it’s veg or not. It’s no use asking in English as they say yes for everything you ask.
So I hate weekends.
Rather, I should go for a trip every weekend from now.
Interestingly the trip costs are very affordable.
Taiwan is a very small country.
It just takes around 4K-5K TWD to have a luxurious 2 day/1 night  trip.
This is if I want to travel to either east coast or south coast.
If you want to travel to somewhere in the mid of Taiwan, then it would be much lesser.
Since the distance b/w places are very short, travel time is also very less.
Coming back to food….
Veg food in Taiwan is surprisingly tasty and interesting.
It’s very healthy.
You get to eat around 8-10 different vegetables daily.
And I love vegetables…
Daily for lunch, we get either noodles or steamed rice.
And then some 4-5 different types of vegetable salad.
Some salads will have 2-3 vegetables mixed… some of them raw.
But still food is tasty.
They do omlets too.
But I prefer to eat it only if I am really hungry and there are no other options.
Indian Restaurants that I have been so far in Taiwan:
1: The spice shop in Hsinchu downtown.
It’s located on Shengli road(Pronounced in chinese as “sunny du”).
It’s right in front of railway station, near post office.
2: A small shop in shilin night market.
It’s near a mall called City jungle.
It’s right next to Jian tan MRT.. exit no 1.

Life of an intern is very tough in ITRI. Most of us can’t afford a vehicle for just 2-3 months of stay. So it’s very hard to even find out what options are available around ITRI. If you google ITRI restaurant then all your hits will be on research, LCD, nano technology, etc.

Of course we have come here for the same purpose but we need not learn it from google. :)  We can hardly find any information on restaurants nearby. Especially for vegan people like me, ITRI is a very tough place. There is a very nice cafeteria inside the campus but it’s closed on weekends. It’s open for only a few stalls and they are all non-veg and not of good taste too it seems!.

There’s a town nearby, but again they are all non-veg food.

I have only few options:

1: Go to 7-11 store which are found in abundance and pickup a cheese bagel or some junk stuff.

2: There’s a pastry shop near the east gate.. around 1 kms.

3: There’s a small restaurant in the YO-HO club(That’s the sport complex next to building 89 where our dormitory is located). Again there’s hardly 1 or 2 veg options and they are all junk food. Luckily they have fruit juices!

So the best think to do on weekend is to escape to HSinchu or Taipei or go on a trip! There is a nice restaurant in Hsinchu downtown. That’s around 8 kms from ITRI. Taxi would charge 300TWD and there’s a bus but it’s a pain again to communicate in Chinese with the driver.

Taipei has 5-6 Indian restaurants and they all serve nice veg food.(of course non-veg food is also served).

Most of the restaurants have menu in Chinese and so it’s very difficult to know if it’s veg or not. It’s no use asking in English as they say yes for everything you ask.

So I hate weekends. Rather, I should go for a trip every weekend from now. Interestingly the trip costs are very affordable. Taiwan is a very small country. It just takes around 4K-5K TWD to have a luxurious 2 day/1 night  trip. This is if I want to travel to either east coast or south coast. If you want to travel to somewhere in the mid of Taiwan, then it would be much lesser. Since the distance b/w places are very short, travel time is also very less.

Coming back to food…. Veg food in Taiwan is surprisingly tasty and interesting. It’s very healthy. You get to eat around 8-10 different vegetables daily. And I love vegetables… Daily for lunch, we get either noodles or steamed rice. And then some 4-5 different types of vegetable salad. Some salads will have 2-3 vegetables mixed… some of them raw. But still food is tasty. They do serve omlets too. But I prefer to eat it only if I am really hungry and there are no other options. The veg food contains soya and it looks very much like non-veg. Do you call this veg?

veg food in ITRI

veg food in ITRI

Indian Restaurants that I have been so far in Taiwan:

1: The spice shop in Hsinchu downtown. It’s located on Shengli road(Pronounced in chinese as “sunny du”). It’s right in front of railway station, near post office.

Spice Shop Indian restaurant

Spice Shop Indian restaurant

2: A small shop in Shilin night market. It’s near a mall called City jungle. It’s right next to Jian tan MRT.. exit no 1.

Mini Indian dhaba in Taipei

Mini Indian dhaba in Taipei

Random numbers

0

Whenever I need a random number, I always use srand or some other simpe random number generator function.

I didn’t give a damn on how is it generated or how random the number is. That’s because, I just wanted a few random numbers(a few 100′s) and almost any decent algorithm can give me a random number within this range.

Now, I want to find a really good random number and I have a real need for it. The requirement is so strict that if the random number is not distributed fairly, I can easily notice that.

The challenge increases with the output range the user needs. There are pseudo random number generators(PRNG) which has a HUGE random number range, but it’s not distributed randomly.

Even I can give a dummy algorithm which will guarantee that I will not give out a number which I have already given out since past n requests.

I can write a simple program to answer your needs for fairly large n.

i=0; i+=1000 && i<n ; i++

This will 100% run until n, then start from i=1 and so on until 999.

But is it random? Depends on the need of the user.

This is 100% not random because it has an algorithm which predicts how to generate the next number and hence it’s not random.

I define random as something that’s unpredictable. I am in search for such a random number.

Truly random number generators should be definition should not be based on mathematics but shud be as a result of some natural events.

kernel random number generator picks such events and fills in it’s entropy tool to get various unrealted events and generates a random number based on that. But it’s too slow.

I want in the range of millions of numbers per second.

After days of searching on internet, i could find just 1 good random number genrator.

Thanks to the god of random number generator: “Dr. Marsaglia”. He has generated around 600 MB of almost true random numbers which he has given out in the website: http://stat.fsu.edu/pub/diehard/

This is failrly distributed and covers the entire range. Every bit in this file is random.

Hence any combination of bits you take should be random. So I am free to get any number size and my number is almost random.

User – kernel thread

0

What are Users threads and kernel threads?
Are they 2 different entities or are they part of a single entity?
Why do we need user threads and kernel threads?
what do they do?

(more…)

Concurrency in OS

0

What are the different types of concurrency mechanisms in Operating system?
When should we use mutex, simple lock, MCS lock, complex lock, semaphore?

(more…)

Go to Top