Recent posts

Setup MongoDB with sharding infrastructure

5 minute read

The landscape  Sharding is the strategy that MongoDB uses to horizentally scale the entire data store infrustructure and meet the demands of data,growth, the infrastructure can be demonstrated as image below: Preparation To simulate a production like environment, a minimum number of 7 physical/virtual servers are required, the role of them are: 3 for Mongo config servers 1 for Mongo shard server (mongos) 3 for a Mongo shard (Replica set), 1 primary and 2 secondary (or 1 secondary and 1 arbiter). Note: all the machines above need have mongod installed, for in...

MongoDB Schema Design and Common Practices

4 minute read

Installation Exhaustive documentation: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ Mongo executables will be installed into /use/bin/, database files will under /data/db/ Log file location: /var/log/mongodb/mongodb.log

狮城新生活

less than 1 minute read

新“家” 本屌丝租用的是一套位于Pasir Pajang Hill据说是富人区的海景房, 每月开销S$3600,跟Mark兄弟分摊。 海景房 - 每天24小时都有不一样的景色

WTF?IBM Lotus and Domino Server?

1 minute read

Technical tags: IBM, Domino, AIX, LotusScript, ODBC/JDBC, ADO, OLE DB, Assume we are now in Jurassic period, the technologies above are in Cambrian period, developers who has less than 4 years experience probably never heard about any of the above terminologies... No choice, I was dealing with them during the passes few weeks, I met ODBC as soon as I graduated while I was development ASP website using VBScript, but it was soon replaced by ADO, and after half a year I started studying .NET so I used ADO.NET, nowadays we usually talk to Entity Framework which abstracts ADO.NET interfaces... N...

Cache Reverse Proxy - Varnish

6 minute read

Introduction Varnish is an HTTP accelerator, the official page is: https://www.varnish-cache.org/. Varnish stands in front of the web application server to be a cache reverse proxy (also can be a load balancer), it can simply cache all the static resources in memory, and can also be powerfully configed using VCL (Varnish Configuration Language, a DSL for Varnish configuration) to cache dynamic content, in addition, Varnish implements ESI (Edge Side Include) standards to provide ability to cache static parts of the page.

Cache Reverse Proxy - nginx

6 minute read

Introduction On the homepage of nxing wiki, there used to be one sentence which really impressed my very much when I first time to take a look at it and learn it three years ago: Apache is like Microsoft Word, it has a million options but you only need six. Nginx does those six things, and it does five of them 50 times faster than Apache.  --Chris Lea

12 tips to boost RSpect and Cucumber

11 minute read

In our daily TDD/BDD work, we spent most of our time in test cases, we analyze requirements, write test case, run it and watch it fail, implement code to make the test pass, repeat the process "until money runs out". Thus the speed of running those test cases have significant impact on a team's performance, ! You can't tolerance writing a test case, waiting 1 minute finish; You can't tolerance CI finishes running all RSpec/Cucumber tests for half an hour! I can't! So I motivated to improve this! The result

Observation on CDN

1 minute read

Motivation Leveraging CDN (Content Delivery Network) to speed up static files loading time is one of the most important fact which affects a website's loading time, CDN was emphasized in many articles related with improving website's performance, for example: Nicholas C. Zakas - How content delivery networks (CDNs) work Why the CDN industry is so important Importance of Using CDN to Speed Up Website Best Practices for Speeding Up Your Web Site

Honored to be CodeProject MVP 2012

less than 1 minute read

It is a huge honor for me, I appreciate the recognition from the CodeProject team, and I believe this is not only a recognition but also a kind of encourage, I will definitely try my best to work harder in the coming 2012:)