Oct 30
昨晚看完最后一场英超也就2点, 接下来还有皇马的比赛, 但还是决定早一点儿睡, 早上好早点儿起来, 准备跑一跑步然后去超市买点菜.
一夜无梦, 醒来已经是11点半了… 晕, 原来早睡也不一定能早起啊. 步是跑不了了, 由于没买菜, 家里也没有什么储备, 今天吃什么都成问题了呢.
在冰箱翻找了半天, 找到几根胡萝卜, 在冰箱里搁得太久了, 萝卜头上已经顽强的长出了嫩芽, 虽然看看还能吃, 但没肉又没料, 实在没法做菜, 作罢. 最后找出N久前从家里带来的南瓜干, 索性熬了一锅粥, 也没什么菜, 就着三, 两快南瓜干西里呼噜的就喝了. 午饭总算是将就了. 打着饱嗝居然又困了… 不行, 刚起来, 不能再睡了. 翻出硬盘里的陈年老电影, 选了一部看了起来. 电影其实还不错, The Village, 情节也算有点玄疑. 可是坐在椅子上就是觉得不舒服, 脖子酸, 后背疼, 头还有点晕, 估计是昨晚睡的太久了. 改变了几个pose还是没有改善, 于是躺下了, 结果… 又迷糊着睡着了. 
Continue reading »
Oct 30
傻逼曼联居然输给米堡四个大鸭蛋. 费迪南德这个废物, 没有一场不失误, 不丢球的. 这下好了, 曼联的后防线成了大漏勺了. 这场球看得真是郁闷无比.
靠! 
Oct 27
刚才回家的时候一出MRT, 傻了… 暴大的雨. 走回家的话得10多分钟, 还不得连内裤都湿了啊. 所以想都不想直接在bus stop拦taxi. 运气不错, 刚一招手就来了一辆. 开taxi的uncle直接就问, 去附近吧? 神了…他说下这么大的雨, 刚才都拉了好几个特近的活儿了.
不到5分钟到家了, 还不到3块钱.
妈的, 楼下的大铁门没开, security guard不在, 没办法, 只好自己下车用钥匙去开小门进去. 从下车到楼下就那么几步路, 几秒钟, 雨下得跟泼水似得, 冲到楼下的时候还是湿了, 郁闷… 还好内裤没湿. 哈哈哈哈 
Oct 27
Just added in another plugin 
This one is from Priyadi
Now can put in Yahoo! IM-like smileys into the post and comment. Here are some examples:

Oct 26
Just spend some time to write a plugin to pull out the thumbnails of the latest 30 photos in my gallery and play them in a slideshow using javascript.
Actually there is some “Official” plugin to link Wordpress and Gallery2. However it is just not working for me… Feeling it’s too complicated also, I just wrote one for myself.

Oct 21
Here is the UTF-8 version:
Note:
If the string is UTF-8 encoded, 1 Chinese Character is with length 3 if using PHP strlen().
If the string is GB encoded, 1 Chinese Character is with length 2 if using PHP strlen().
For example:
$str = “Hello你好么”;
print utf8_strlen2($str); // print 8
utf8_substr2($str, 0, 6); // print “Hello你”
/***********Start of Code ***************/
function utf8_substr2($str,$start) {
Continue reading »
Oct 21
前些日子在天涯上看到的。挑了一些经典的贴上。有的简直太像了,都不知道是不是明星他本人。
菲佣版吴宗宪
Continue reading »
Oct 20
Just now encountered a problem while using PHP to send out email with Japanese subject line. The Japanese subject line is not properly encoded although I have set the encoding in the email header:
$headers = “MIME-Version: 1.0\r\n”;
$headers .= “Content-type: text/html; charset=Shift_JIS\r\n”;
I searched the Google and found something useful. Continue reading »
Recent Comments