Create Your Own Book List

Reading is quite a personal things. I’ve been always thinking about maintaining my own reading list, not only for sharing, but also a long reading list really gives me a sense of achievement. So here I am, ready to create my own personal library.



line breaker



There ain’t many good booklist plugin for WordPress,Now Reading Reloaded is the one that seems doing the job nicely and really fit me needs。

More >

Heat Wave

The temperature these few went nuts. For the following consecutive 3 or 4 days, the temperature is hitting upper 90s due to the heat wave. It’s unbearable hot, and I felt like melting in my room even with my air conditioner on. I wonder how those people survive without an a/c. I don’t want to be outside even for a few seconds, cause it will be like in a steaming pot. I really don’t want to be cooked and streamed like a bum. The temperature tomorrow is hitting a new high – 100 degree Fahrenheit while the normal body temperature is just about 98.6 degree, that means the temperature outside will be high enough that everyone will feel like having a fever. The guy who invented a/c is truly a genius.

Maximum Sum Of Triangle

Problem:

By starting at the top of the triangle and moving to adjacent numbers on the row below, the maximum total from top to bottom.

         5
        9 6
       4 6 8
      0 7 1 5

Then the max sum is 5 + 9 + 6 + 7 = 27.
Solve the following triangle
triangle.txt



More >

Blocking unwanted Website With Host File

Many networking applications, such as FTP application, Web browser, use the host file to do some (domain name/IP) lookups before contacting the local DNS server when connecting to remote host. Therefore, the local host file has high priority for dns service. If we want to block a specific webiste, we can map the domain name of that website to our local IP address, 127.0.0.1 or an invalid IP address, such as 0.0.0.0

Locate host file

Windows(XP/Vista/7): C:\WINDOWS\system32\drivers\etc
Linux: /etc/hosts
Mac: /private/etc/hosts

Add rule for website blocking

#the format for a general rule in the host file is
#    IP        Domain Name        Alias(Optional)
#to block the website, http://www.websiteToBlock.com
127.0.0.1        websiteToBlock.com
127.0.0.1        www.websiteToBlock.com

#block ads from a website, afp.pplive.com
0.0.0.0        afp.pplive.com

Got My New Eyeglasses Today

Finally, I got my new pair of eyeglasses today. I got the Armani 802 frame, which cost me almost $300, driving up the total cost to nearly $500 with the lenses. Although it’s expensive, I could deal with that. Eyeglasses is one of the necessities I will be needing every second. Without it, I will be officially blind. Therefore, even eyeglasses are being heavily overpriced, people are still willing to paid for it. Through the new glasses, everything looks so ‘dreamy’. I definitely need some getting used to.