Shern Shiou

and whatever in between
May 8

Population Growth

Human must be the favourite creation from the Nature. We are not only blessed with the power to think and comprehend but also very much suitable for the current situation. Human population grows tremendously in recent centuries especially after World War II (refer to  http://en.wikipedia.org/wiki/Population_growth). Referring to the graph below, our population actually doubled from 1960s until now.

Once people thought we might experienced serious food crisis that will prevent the human to expand further however with the technology, we are able to produce food better for most of the people here (2 out of 7 billion people here still experiencing food security). 

Can we keep populating the world more if we keep living longer, consuming the food and energy? There are signs we might hit the limit soon. With the growing competitiveness, some developed countries are experiencing lower birth rate. 

I think we human are the greedy bunch. The mother earth has loved us so much, why are we keep taxing her? One day, the power of nature will strike us. :(
May 3

Here is another new challenger!

Two days ago at Orlando, Florida, RIM has just announce their upcoming product along with the spanking new Blackberry 10 (BBX). I am biased as I am working with BBX lately, I found that this announcement welcoming. Not mentioning the latest mobile gadget gimmickry, I am more intrigued on the development on BBX natively. Up until now only iOS officially support app development natively using Objective-C. As for the other platform, Android support native development with NDK (but its awfully ugly when you need to integrate NDK with Java through JNDI). As for Windows Phone 7, you all the codes are running on .NET VM. 

I think BBX might change the game here with its Native development package. With it, I see many advantages (let alone the speed native can provide) compared not only with Android and WP7 but also iOS. 
  1. Low learning gap with C++
  2. Great utility with Qt (Yes, BBX native is backed by Qt)
  3. Lots of supported opensource project like OpenAL
  4. With Cascades (and QML from Qt), UI is easier to code and pretty too!
I cant wait to get my hand on of those device.
Apr 25

Switch

I am considering switching from Posterous to Tumblr because of recent acquisition of Posterous by Twitter.
Apr 18

Life Updates

Little bit updates since my last post. I am learning a lot lately, knowledge wise and spiritual wise. 
I think its important for a person to take a look at Maslow's hierarchy of needs (http://en.wikipedia.org/wiki/Maslow's_hierarchy_of_needs). It may or may not be applicable for each individual needs but I think every person have their own hierarchy of needs. Most importantly every needs are built entirely as an hierarchy where the lowest needs always Physiological. Each level of needs depends on their lower level of needs. If one's fundamental needs cannot be achievable the top most needs collapse too. E.g. you cannot be successful at your work if you have trouble finding your food source and shelter (Physiological needs). On the other hand, life's goal go hand in hand with your hierarchy of needs. In order to achieve higher goal, certain level of need need to be attain else the physical or mental properties of the person are not on par with the goal set. Take a look at your needs and set goal accordingly to achieve your needs and your future. 

Recently I love a quote which I read from Siddhartha written by Herman Hesse. It says:-

 "Beautiful was this world, looking at it thus, without searching, thus simply, thus childlike. Beautiful were the moon and the stars, beautiful was the stream and the banks, the forest and the rocks, the goat and the gold-beetle, the flower and the butterfly. Beautiful and lovely it was, thus to walk through the world, thus childlike, thus awoken, thus open to what is near, thus without distrust. " 

Yes the world is that beautiful, keep moving in tiny steps :)
Apr 4

Youtube HTML Client using Backbone.js

My first github project

Basically it fetch from youtube data api and populate using Backbone.js

Head over here for the source. Fork and enjoy!

Apr 3

Traffic Jam Humour

Dsc_0006

Look at his hand

Posted from Petaling Jaya, Malaysia
Apr 1

Malaysia at Google 8-bit Map

Image

Mar 31

Earthhour Starbucks at Sunway Pyramid

Huge crowd, successful Foursquare event

(download)

Posted from Subang Jaya, Malaysia
Mar 30

Age of My Friend: Mahendran

Using Face.com API

Image
You are too old Mahen :P
Mar 29

Nginx VS Lighttpd on Low Specification PC

As per requested by @prasys, I performed some tests this morning on the comparison between the previous webserver and Lighttpd. However, from my findings, for request of 2000 seconds and below the performance between Nginx and Lighttpd is similar. Therefore, I scaled up the test. Below is the results:-

Findings
Lighttpd
 
dem_req_rate req_rate_localhost con_rate_localhost min_rep_rate_localhost avg_rep_rate_localhost max_rep_rate_localhost stddev_rep_rate_localhost resp_time_localhost net_io_localhost errors_localhost
200 200 20 200 200 200 0 0.1 104.9 0
400 400.1 40 400 400 400 0 0.1 209.8 0
600 600.1 60 598.4 600 602.1 0.7 0.1 314.7 0
800 800.1 80 799.9 800 800.1 0 0.1 419.6 0
1000 1000.2 100 999.9 1000.1 1000.1 0.1 0.1 524.5 0
1200 1200.2 120 1199.9 1200.1 1200.1 0.1 0.1 629.4 0
1400 1400.2 140 1399.9 1400.1 1400.1 0.1 0.1 734.3 0
1600 1600.3 160 1599.5 1600.2 1602.1 0.9 0.2 839.2 0
1800 1800.2 180 1800 1800.1 1800.1 0 0.2 944.1 0
2000 2000.2 200 1999.8 2000.1 2000.1 0.2 0.2 1048.9 0
2200 2200.3 220 2199.8 2200.1 2200.2 0.2 0.1 1153.9 0
2400 2400.3 240 2399.7 2400.1 2400.2 0.2 0.4 1258.8 0
2600 2600.3 260 2576.3 2599.9 2623.5 23.6 0.6 1363.6 0
2800 2800.2 280 2799.7 2800 2800.2 0.3 0.1 1468.5 0
3000 3000.3 300 2999.7 3000 3000.2 0.3 0.8 1573.4 0
3200 1776.5 203.3 456.1 2142.5 3200.2 1324.6 8.5 928.8 1.4810562572
3400 3397.7 340 3392.2 3395.9 3399.6 5.2 0.6 1781.8 0.0080064051
3600 2644.3 303 1359.4 2846.8 4334.1 2103.4 11.4 1381.7 2.4626121635
3800 2310.4 279.1 598.3 2432.7 4267.2 2594.3 12.9 1205.2 4.5214310605
4000 2393.5 287.9 1126.6 3148 5169.4 2858.7 11.4 1252.9 3.9314572304
2image

Nginx
dem_req_rate req_rate_localhost con_rate_localhost min_rep_rate_localhost avg_rep_rate_localhost max_rep_rate_localhost stddev_rep_rate_localhost resp_time_localhost net_io_localhost errors_localhost
200 199.1 19.9 170.6 199.4 200 4.2 0.6 75.6 0
400 400.1 40 398.8 400 402 0.5 0.2 152 0
600 600.1 60 599.9 600 600 0 0.3 228 0
800 800.1 80 751.9 800 849.1 29.1 0.4 304 0
1000 1000.2 100 999.9 1000.1 1000.1 0.1 0.6 379.9 0
1200 1200.2 120 1199.9 1200.1 1200.1 0.1 1.3 455.9 0
1400 1400.2 140 1399.9 1400.1 1400.1 0.1 0.3 531.9 0
1600 1600.3 160 1574.1 1600.1 1626.1 16.4 2.4 607.9 0
1800 1800.2 180 1799.8 1800.1 1800.1 0.1 1.7 683.9 0
2000 1999.9 200 1997.6 1999.6 2000.1 1.1 0.3 759.7 0
2200 2200.2 220 2198.5 2200.2 2201.8 1.3 2.1 835.8 0
2400 2400.3 240 2004.1 2400.1 2796.2 323.4 2.6 911.8 0
2600 2600.3 260 2599.7 2600 2600.2 0.3 0.2 987.8 0
2800 2800.1 280 2799.7 2800 2800.2 0.3 3.5 1063.7 0
3000 3000.3 300 2983.4 3000 3017 16.8 1 1139.8 0
3200 2295.5 261 1320.2 2779.7 3819.4 1301.4 15.7 866.9 1.4521300962
3400 2841.5 334 1689.6 2590.8 3492.1 1274.6 27.5 1070.6 2.2114686668
3600 2003.6 270.5 257.4 2224.3 4191.3 2781.7 24.6 758.9 6.4095831966
3800 3147.9 345.8 1299.5 3426.4 5553.2 3007.8 78.6 1195.8 2.0714630613
4000 1977.2 297.2 880.9 2052 3223.2 1656.2 24.9 733.9 11.1876147555
1image
Nginx VS Lighttpd
Average Response Rate
Image

Max Response Rate
0image
Results
To conclude, I think both webserver perform similarly for Lower Specification PC with limited RAM where their response rate is good until 3000 response per second. Looking at the max response rate, nginx perform better until it reaches its limit (5500) while lighttpd still able to response stablely after the limit of 5500. Based on the average response rate, both are quite unstable after 3000 rps. In my opinion, lighttpd is good for lower end while nginx is able to scale based on processor core, higher ram...

About Shern Shiou Tan

Loves research, strong believers in education and innovation.
TwitterFacebook

Search Blog

Get Updates

Tags

Archive

2012 (21)
2011 (45)