Feb 28, 2007

WP-Cache Plugin Bugfix for blank page

Must say, WP-cache is very powerful tool~, if you didn't install it, just try~
I found this bug when I installed WP-Cache yesterday. it took me half an hour to find the problem, so I'm going to write down this entry to help you out.

Encoding Issue
After installing and enabling WP-Cache, you can only see a blank page with IE but all your pages can be seen with firefox, then you have a problem, you have to change the encoding manually to figure it out. (if you cannot see any page with IE or firefox, please check this link).

So here comes the solution, very simple...

  • 1. Open up the WP-Cache folde, and you can see a file named "wp-cache-phase2.php".
  • 2. Open it up, and do a search for “$value = "text/html; charset” (about line 231).
  • 3. Once you find it, simply replace the whole line ($value = "text/html; charset=\"" . get_settings('blog_charset') . "\"";)
    with the following line:
$value = "text/html; charset=" . get_settings('blog_charset') . "";

4. Now, save, re-upload, sure, you must overwrite the old file. then empty the cache files.

Tips:
It happens coz the old file has two extra double quotation marks so that IE cannot recognize the correct encoding.

Post by SUN @ 8:53 pm 与时俱进 | Comment (1)
Feb 23, 2007

香港十年

那里有帅气的四大天王,美丽的女明星,冷酷的古惑仔和英俊的香港皇家警察;再配上美丽的维港,和冉冉升起的紫荆花,这是十年前我对香港的印象。但当我慢慢走进这世界,便发现那记忆中永恒的刹那远不是香港的全部,甚至都无法代表这片土地和在生活在此的人们。
幻彩咏香江的维港,中环金钟林立的高楼,海洋公园迪斯尼的疯狂之旅,跑马地上奔驰的骏马,铜锣湾尖沙嘴遍地的优质商铺,这是游客眼中的香港。
呷一口茶餐厅的鲜滑丝袜奶茶,逛一逛旺角女人街的A货商铺,沿着麦理浩径横跨整个九龙半岛;或是在天星小轮上吹吹冷气,再坐着“叮当”到西环的海边看斜阳西下,夜幕降临,还能听听陶杰的《光明頂》;你会觉得洗尽铅华素面朝天的东方之珠依然绚丽夺目。
十年,陈果说榴莲飘飘,我们道流年飘飘,转眼,我的青春年华也有一半融入了这儿;十年,金融危机,禽流感,SARS,八万五,七一大游行,狮子山下的人们用自己的坚强告诉世界,“香港始终有你我”。

Post by SUN @ 9:06 am 北美行, 弛隙流年 | Comments (5)
Feb 20, 2007

海鲜自助大餐

年初二,一堆人跑去北轮港吃海鲜自助去了。
我的最爱之一啊……乘下手前来两张~

Post by SUN @ 2:41 pm 摄影相册 | Comments (6)