让使用Permalink的WordPress 3.3.2也支持中文搜索

Wordpress 3.3.2 Search Request with Permalink

在Wordpress 3.3.2中,如果设置了Permalink (not selecting default in Settings->Permalinks->Common Settings),当用户搜索的时候,原本index.php?s=THINGS_YOU_WANT_TO_SEARCH的GET请求形式(如Figure 1)会变成search/THINGS_YOU_WANT_TO_SEARCH(如Figure 2)。这样能够使URL变得更加富含语意(semantic)。但是,当THINGS_YOU_WANT_TO_SEARCH中包含特殊字符,如#, ?,或者其他语言,如中文,的时候,问题就来了:使用前面非Permalink的搜索GET请求可以正常搜索,而使用后面Permalink形式的搜索GET请求则不能够进行搜索,

Alfred Extension: Skype-Call 1.0

Select-A-Phone-Number

An Alfred extension to make Skype phone call to the phone number selected by Alfred’s Address Book feature. If the Skype hasn’t been opened yet, this extension will open it and ensure it is online before starting the phone call. When making a phone call, this extension won’t change your Skype online status, and no…

A small but very hard to find bug

screen-movie-poster

Bug is a very disgusting thing in Computer Science. In one of my subjects project, I was required to write a Hearts card game robot player. I spent several hours finished the code, but it took me 2 days to debug it. . A tiny bug found in the debugging process took me a whole…

Will cities of the future look like Beijing, pictured here?

Cities are an important testing ground for green technologies because urbanization is accelerating rapidly. More than half of the world’s population now lives in cities–and most population growth in coming decades will happen there, mostly in developing countries. Will cities of the future look like Beijing, pictured here? read all texts about Cities go green

LDBL_MAX -1.#QNAN0e+000 with MinGW?

I have tried to run this with both eclipse(CDT)+MinGW and Cygwin+GCC but got different results: In eclipse(CDT)+MinGW The range of long double is [-1.#QNAN0e+000, 3.237810e-319]∪[6.953674e-310, 0.000000e+000] In Cygwin+GCC The range of long double is [-1.189731e+4932, -3.362103e-4932]∪[3.362103e-4932, 1.189731e+4932] This is weird, and I googled it, then just found this http://www.thescripts.com/forum/thread498535.html The LDBL_MAX of long double is…