December 19, 2007 at 12:42 am · Filed under Gossip, Program, Web.Design
今天从v2ex的一个链接上看到的, 使用preg_split分割字符串,
尤其在分割tags的时候, 很不错.
Ever use explode() and then end up looping through the results and picking out the empty ones? Isn’t that annoying? By using preg_split this tedious process can be avoided:
// instead of... $str = "a,b,,c,d" explode(",", $str); // array('a','b','','c','d')
// do... preg_split("~,~", $str, -1, PREG_SPLIT_NO_EMPTY); // array('a','b','c','d')
The above example might not seem all that useful so consider bb code parsers. One of the major problems with parsing bb code is that most of the bbcode to html translators don’t fix improper closing tags, or even check for them! Generally speaking, most bb code parsers will to a flat preg_replace for each of the tags.
November 22, 2007 at 1:25 pm · Filed under Gossip, Web.Design
想要发财其实不仅仅是股票, 和彩票那么单调,
看看这个:
NEW YORK (Reuters) - An oil painting by Mexican artist Rufino Tamayo that was plucked from a sidewalk trash heap several years ago sold for more than $1 million on Tuesday at Sotheby’s auction of Latin American art.
The auction house had estimated that “Tres Personajes” (”Three Personages”), which was stolen from a Houston warehouse after being bought at auction in 1977, would sell for between $750,000 and $1 million, but the work ended up selling for $1,049,000 including commission.
一条评论如是说:
I bet when the original owner sees this on the front page of every website they’re gonna feel dumb.
其实艺术, 不欣赏就是简单的, 不欣赏.
不过换作了钞票, 也就不见得了;
*UPDATE*, 在Google上搜索了下, 嗯, 我相信就是这幅. 大小, 作者和新闻中描述的一样:

Lot 16, “Tres personajes en blanco,” by Rufino Tamayo, oil and sand on canvas, 37 1/2 by 51 1/4 inches, 1971
又: 突然发现digg是很有趣的地方, 尽管digg上某些头条是无聊的泡沫;
也发现yeeyan是很有趣的地方, 尽管其实很早以前我就发现了, 不过比起以前有了很多显著的变化.
发现很多web2.0的概念和理念是相通的,
无论身在何处.
突然发现不想再把blog写得那么牢骚和阴郁,
或许只是因为, 咖啡因的缘故, 哈.
October 31, 2007 at 12:24 am · Filed under Gossip, Program, Web.Design
今天听风声说风中要入住清水河了,
莫名的有些紧张和焦虑.
其实大多都是多虑的, 自己的进度摆在那里, 本来要搭着用服务器还得看人家的脸色,
况且自己的资本还是0.
加油吧.
夜晚有些清冷的寒意,
喜欢这种寒冷中需要重重的呼气, 唤醒着自省自知的夜晚,
尽管不像前夜, 能看见昏黄的月盘挂在清水河黑漆漆的夜空.
又: 今天玩贪吃蛇, 一边玩一边半发誓说, 玩到2000分就每天早起,
结果破纪录的玩到了3000…
自己把被窝里的自己扼杀了… T_T
October 17, 2007 at 5:42 pm · Filed under Web.Design
acuteStack, 某个熬夜在网吧的烟味中的夜晚对着破旧的键盘敲出的东西;
甚至不算是网站的一个简陋的页面, 最初是为了临时存放我的文件, 照顾我糟糕的记性而做的东西.
其间一直想把acuteStack认真的做完, 可缺失动力是可怕的.
加上忙于其它的杂碎, 终于acuteStack几乎被我遗忘了, 甚至懒得去利用.
今天终于加上了一个小小的功能, 允许其通过Snoopy类抓取远程文件放到服务器端目录.
其实是为了方便我今天下载 Joost 才临时做的 XD.
事实上很懒, 连文件重命名和目录另存为都没有, 不过凑合着用吧,
——或者等到下次的非常规非理性更新.
又:
@Pan: 你的域名我已经帮你试图恢复了, 静候DNS更新吧.