Where is the Legal System

I think it’s the first time I encounter a violence to flight in a restaurant since I graduated from high school. It was someone’s birthday yesterday. Sorry for the ‘someone’, because I cannot recall her chinese name! I merely know she is sk‘s friend and her blog. I guess her English name is Jessie.

After we sitting down and start our dinner in the restaurant, one of sk’s friends realized that someone at the desk beside us was peeking Jessie. Although we felt uncomfortable, we continued our dinner.

But, suddenly, one of these guys beside us broke the dishes and began to fight with another one. We all felt very uncomfortable at that time. But with the mind that the boss or the manager of this restaurant will deal with it as soon as possible, we kept our tolerance. 

Unfortunately, the manager of this restaurant was a faint-hearted. He just let us move downstairs. I was wondering that why he didn’t call the police. 

After that, we just heard much noise and the sound of broken dishes upstairs. About 1 hour later, the police was called and there was only one policeman showed up. The went upstairs at once. I didn’t know what happened next upstairs. After a while, I just saw a guy savagely came downstairs and left the restaurant just like nothing happened muttering, “I will hack the one called the police!”. After a short while, the policeman also came downstairs and asked the manager of the restaurant (maybe is the boss, I just guess) whether he was the person called the police. The manager said yes. The only policeman just took the fee of calling police and went away too. The world became peaceful again. 

Where is the justice, I thought to myself! The miscreant does not need compensate anything but the victim should pay the fee. I am now completely lost 

Notes of Introduction to Algorithm(B-Tree)

When I was a college student and took the course Data Structure and Algorithm, the B-Tree section was not included in the exam requirement. At that time the teacher just said little about it and therefore I knew little about it. It is ridiculous that I totally understand B-Tree until last month. So what is the B-Tree? B-Trees are balanced search trees designed to work well on magnetic disks or other direct-access secondary storage devices. B-Trees are similar to red-black trees. but they are better at minimizing disk I/O operations. Many database systems use B-Trees, or variants of B-Trees, to store information.

Continue reading “Notes of Introduction to Algorithm(B-Tree)”

Miscellanea of The Weekend

It’s a wonderful weekend. I just arranged with Hurrican and his gf to play badminton together at first. I got up very late (sometimes I am very lazy especially at weekend) and when I got Xujiahui, it was almost 11:00 am. The first thing I should do is to buy a badminton racket. But After searching for a cheap rackets around Xujiahui together with my brother, I can’t find a little cheap one. Most of the badminton rackets in Xujiahui is above 300rmb and some up to 1000rmb. Finally, I had to give up and said goodbye to Hurrican.

Continue reading “Miscellanea of The Weekend”

An Analytics tool for Blogger

When I got the news that google has a website traffic analysis service Google Analytics, it’s too late for me to get the free service work on my blog. Because it has experienced extremely strong demand since google released this product and the sign-up has been closed alrealy. It’s so bad and I had to search for other tools to observe the traffic statistic of my Blog. Until now I have used 3 products: extremetracking, AXS and now Performancing Metrics.Although each of the 3 has both its and advantages and disadvantages, I prefer the last one, Performancing Metrics.

Continue reading “An Analytics tool for Blogger”

My Firefox Extensions

As in the previous entry “Goodbye Internet Explorer”, I strongly encouraged people to use Firefox for power surfing. By itself, Firefox is a lean and fast browser, and if you want it do more for you and remedy the situation that it lacks some of the functions that we’ve come to take for granted from Microsoft Internet Explorer, the add-on extensions maybe the best choice. They can do loads of tasks, from blocking pop-up ads to see the weather forecast—and even viewing a Web page as if it were in IE.

Continue reading “My Firefox Extensions”

Goodbye Internet Explorer

For years I’ve stick on my IE (Microsoft’s Internet Explorer) since I had my own personal computer. But my love for the past faded when I met Firefox. Thanks to my mentor Daniel who introduced Emacs and also Mozilla Firefox to me. But, I guess most of my friends and many people in China are still using IE or other IE core browsers such as Maxthon. But today I want to tell you that it’s time to say goodbye to IE because a much better browser is ready for you.

Continue reading “Goodbye Internet Explorer”

Notes of Introduction to Algorithm(Red-Black Tree)

A red-black tree is a binary search tree with one extra bit of storage per node: its color, which can be either RED or BLACK.
A binary search tree is a red-black tree if it satisfies the following red-black properties:
1. Every node is either red or black.
2. The root is black.
3. Every leaf (NIL) is black.
4. If a node is red, then both its children are black.
5. For each node, all paths from the node to descendant leaves contain the same number of black nodes.

Continue reading “Notes of Introduction to Algorithm(Red-Black Tree)”