Firefox 占有30%的全球市场

Posted on 6th April 2010 by Nio in 程序人生 - Tags: ,

Firefox 的增长很快,目前已经占有了全球 30% 的市场,欧洲所占的比重最大,将近 40%,下载增长最快的是俄罗斯。

Mozilla releases its first quarterly statistical report, which is chock-full of stats a only a geek could love.

Nearly a third of the worldwide web browser market appears to be using Mozilla's Firefox.

That's what Mozilla figured out after crunching numbers from a variety of firms — StatCounter, Quantcast, Net Applications and Gemius — and mixing in its own data. The open source browser's largest market share is in Europe, with nearly 40 percent penetration (152.7 million users). The company rather cheerily pointed out that wasn't even the browser's largest market penetration. In Antarctica, StatCounter gives Mozilla 80 percent of the market.

Firefox World Metrics

流程图:你将会毁坏你的 iPad

Posted on 5th April 2010 by Nio in 日常生活, 程序人生 - Tags:

Flowchart: How You'll Inevitably Shatter Your iPad

iPad Shatting Flowchart

It's funny :D

Hg Init: a Mercurial tutorial

Posted on 25th March 2010 by Nio in 程序人生 - Tags: ,

Hg Init: a Mercurial tutorial

Mercurial is a modern, open source, distributed version control system, and a compelling upgrade from older systems like Subversion. In this user-friendly, six-part tutorial, Joel Spolsky teaches you the key concepts.

High level search with PHP and Apache Solr

Posted on 23rd March 2010 by Nio in Java, Lucene, 程序人生 - Tags: , , ,

High level search with PHP and Apache Solr

When data sets get large and MySQL database querying to search become too load heavy and slow, full indexing is required. Several solutions are available but in this article I will be demonstrating the Apache foundations Solr Java Lucene implementation. For this a Java build will be required. Linux or Mac is less of a problem but for windows I use the Apache Tomcat server.

Faster, PHP! Kill! Kill!

Posted on 21st March 2010 by Nio in 程序人生 - Tags: , ,

Faster, PHP! Kill! Kill!

What most developers don’t realize is that there are three major factors that typically slow down PHP projects based on frameworks (like Symfony or, sigh, Drupal) so much that code profiling and database query redesign don’t even have a chance to become relevant factors. Fix these things first before you worry about other issues:

1. Compiling code over and over and over. Would you wait for your Mac to recompile MacOS X from source code every time you boot it up? Of course not. How about every time you fill out a dialog box? That’s pretty much what you’re doing every time you access a PHP-driven website that doesn’t use a bytecode cache.

2. Waiting and waiting and waiting for web browsers to make another request, pinning down web server processes that your other users need. By default Apache usually lets browsers hold on to a connection for up to 15 seconds just in case they ask for more. This is a good thing in many ways, but 15 seconds is far too long. Which leads us to #3:

3. Tying up a “fat” web server process with PHP on board for every request, even requests for the zillions of little static PNGs that probably make up your page design. (**) A typical Apache web server configuration with mod_php suffers from this flaw, fatally limiting the number of simultaneous users you can handle.

So what can we do about these problems? Quite a bit as it turns out. I’ll start with the low-hanging fruit and move on to the tougher stuff. The fascinating common thread with all of these suggestions: no changes at all to your PHP code.