Joined August 2013


Beijing, China

Posted to Transforming JSON over 1 year ago

It could also be used to eliminate unwanted objects, such as DOM nodes, from the data structure.

Posted to Beware of "inline-block" over 1 year ago

@stowball, thanks for commenting. I was wondering on such Android browsers, is there another way of avoiding the inline-block space other than putting comments manually between the elements? Perhaps something like setting the font-size to a very small number like (0.5px) so that the spacing is not really discernible.

@haylichwang After creating the folder and the file (use the mkdir and touch commands individually), you also need to make sure that the permission is correct. If you still encounter such errors, you can take a look at your access/error log located in /usr/local/etc/nginx/logs

@brickgale, the php folder must be created by you. Can you show the content of the Nginx access log?

Posted to One liner CSS trick for spacing items over 1 year ago

Likewise, you can also do it the opposite way around

.item:not(:first-child) {
    margin-left: 10px;
Posted to Beware of "inline-block" over 1 year ago

@christophererk, unfortunately, that is not a luxury for developers here in China. We are still stuck with supporting IE6/7 as one third of our user still come from ancient browsers :(

Hi @davidsupan, your entry should be
instead of using localhost. Because localhost is eventually pointed back to, and I don't think the local hosts binding is smart enough to look twice at the /etc/hosts file. Hope it helps :)

Hi @brday, this command "brew install --without-apache --with-fpm --with-mysql php54" does not install MySQL. Instead it installs PHP 5.4 with driver support for MySQL. Notice that strings starting with '--' is most likely to be an option name.

Hi @peterluu, the /etc/hosts is used for hostname override on your local machine, so you don't have to use IP address or the default 'localhost' for your web application. In this case, because I'm using a special hostname ( so I can access PHPMyAdmin using that hostname instead :) Hope it helps

544 Karma
40,884 Total ProTip Views