The problem about Permalinks Migration Plugin

Some people told me that they can’t redirect from default permalinks structure (/?p=#) to a new one via Permalinks Migration plugin.Revenuenets sent me a message a few days ago:

hi Dean,i think the problem that i’ve asked you previously is a wordpress 2.5 limitation,without using any plugins, wordpress itself can’t even redirect /%postname%/ to /%category%/%postname%/ .
any comments on that?

Continue reading “The problem about Permalinks Migration Plugin”

About openid.35.com

朋友给我转发了几篇网上评论OpenId.35.com的文章,其中有一篇是怀疑这个站点的动机的。

之所以做OpenId.35.com的原因,其实没有那么复杂:这是我个人想做着玩的东西,我自己喜欢,然后就做了,就这么简单。

之前在几个OpenID的讨论组里潜了将近一年水,看到了很多关于OpenID的前世今生的热烈讨论,其中一些堪称精彩,入木三分,不过更多的则是废话。靠口水解决不了任何问题,无休止的讨论甚至争执,实在是一件很累人的事情。(虽然这样做永远不会失败,因为你不需要去尝试),有这点精力不如实实在在的为OpenId做点事情。

所以我用半个月时间做了OpenId.35.com。能让更多的人了解并喜欢OpenId,哪怕只有一个人,对我而言,就足够了。

Back to Shanghai

又回到了上海,家里一切都没变,还像我上次走之前一样。坐在床边,想起了以前在那间小小的阁楼上弹吉他,数着天窗外的鸽子,消磨无聊的周末下午的那些时光。10年可以改变很多事,可此刻,又觉得一切都没改变,我还是那个趴在天窗上看外面世界的孩子,只是长大了。

早上去给外公扫墓,他静静的躺在墓园的一角,以前总觉得两个世界之间的距离很遥远,但是在清理墓边的杂草时,又觉得和他很近,近得只是一土之隔,近得可以触摸到他温暖的手。

站在寂静的墓园里,看着林立的墓碑,感受着生与死之间的距离,想起了David Ogilvy的那句名言:Be happy while you’re living, for you’re a long time dead。好好活着,真的比什么都重要。

WordPress 2.5 Error on Windows IIS:Undefined index: PATH_INFO

After upgrading to WordPress version 2.5 on Windows IIS,you may get the following errors:

Notice: Undefined index: PATH_INFO in (path)\wp-settings.php on line 74 
Notice: Undefined index: PATH_INFO in (path)\wp-settings.php on line 77 

to solve this problem,open file wp-settings.php,goto line 71 and replace the following code:

if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] )
	$_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO'];
else
	$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO'];

with:

if (empty($_SERVER['PATH_INFO']))
	$_SERVER['REQUEST_URI'] = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) . '/';
else if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] )
	$_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO'];
else
	$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO'];

this will resolve that issue,Your can also download an already modified version of wp-setting.php from here.

Windows Live Space says:"Server is too busy"

What the hell is going on?Too many users or bad design?I would rather believe it’s the first case. because there are ton of amazing articles written by Microsoft about Scalability and Availability,such as “Scalability, Sweet Scalability” or “Improving Both Availability and Scalability“. they can’t possibly have made an incredibly dumb mistake.

I don’t know what happened and I don’t want to know.I only know that I even can’t leave a comment to my friends who have written on Windows Live Space till now.

msn_space_busy

Compiler warning C4022 when building OpenSSL 0.9.8e On Windows

I got the following compiler error when building OpenSSL-0.9.8e in Windows environments with Visual studio 2005:

.\apps\enc.c(380) : error C2220: warning treated as error – no ‘object’ file generated
.\apps\enc.c(380) : warning C4022: ‘BIO_ctrl’ : pointer mismatch for actual parameter 4

Here is the quick fix to solve this compile error:

Open file .\apps\enc.c,Go to line 380:

if (BIO_read_filename(in,inf <= 0))
{
perror(inf);
goto end;
}

 Change it to

if (BIO_read_filename(in,(char*)(inf <= 0)))
{
perror(inf);
goto end;
}

you can download the compiled binary here.

盈盈一水间,脉脉不得语:又至七夕节

现在很多人把七夕称为”中国的情人节“,总觉得这种叫法有点牵强,牛郎织女虽然在这一天相会,但是最终也还是个悲剧:“情知此会无长计,咫尺凉蟾亦未圆”,牛郎织女之间的这种无奈和凄凉,想必是相爱的人都不愿意去体会的。

关于七夕的诗词很多,最喜欢的还是这首鹊桥仙:

Search visualization with SearchCrystal

SearchCrystal,非常有想象力的可视化搜索工具,它将不同搜索引擎搜索到的结果用flash图表显示出来。而且可以作为Widget嵌入到其他站点中。

下面是搜索deanlee.cn的结果:

 

 

searchCrystal lets you search and compare multiple engines in one place.
It is a search visualization tool that enables you to compare, remix and share results from the best web, image, video, blog, tagging, news engines, Flickr images or RSS feeds.

Living,instead of just working

I was inspired  by this photo Mike sent me tonight,just like watching “Noah takes a photo of himself every day for 6 years“,I almost cried watching this.

Someone very special told me that I should living the life,instead of just working.after almost ten years of nothing but programming,I made myself Half machine half man.maybe it’s time to change my life in a different way:I’m going to feel again,I’m going to live,instead of typing,I’m going to create the life I want for myself.

连城之旅

这个周末公司Team Building。先是去了永定土楼,5个多小时的无聊车程,不过好在有漂亮的导游MM带队,再加上大家一路唱歌说笑话,时间过得也不算太慢。

很喜欢永定土楼,脱了鞋,光脚走在楼板上,脚底吱吱作响,像走在丽江的客栈一样。住一夜只要20元,可惜要跟着大部队走,不然真想在那住一晚。也许晚上还能听到附近田里的蛙鸣。

第二天去了冠豸山,我不喜欢。 最高兴的是看到了一只蜻蜓。

下山的时候被带去一座庙里,导游热情的介绍庙里的一位大师,据说是在峨嵋闭关了多年,破例来此处普渡众生。此位大师能感应到谁和佛有缘,并指点他感应到的人,自然,指点完之后给钱是少不了的。

我喜欢南普陀,不是因为我信佛,是因为喜欢后山的那一块石刻:念佛一声功德无量,礼佛一拜罪灭河沙。每次看到这块石刻,我都会被佛教的善良、超脱和胸怀深深地感动。这位曾闭关修行的"峨嵋高僧"对佛的领悟,恐怕还不如被这块石刻感动的每一位凡夫俗子。

如果佛祖知道他的弟子们在佛门清静之地,干着如此疯狂敛财的勾当后会作何感想?下山的路上有人问出了类似的问题,后面传来一个浑厚的男中音:一个一个弹死。

正如所有的旅游团一样:快结束的时候导游带我们去购物,说是喝茶,其实是看几个口若悬河的MM表演用手抓烧得通红的铁链,然后涂上某种神油,烫伤奇迹般的康复了。之后一些被自残所感动的观众们,含着眼泪开始掏钱买油。

如果失业了,我可以申请来这里表演胸口碎大石,我敢肯定我伪装痛苦的表情会比这几个三流演员逼真的多。

有机会我还会去土楼,去住几天。冠豸山,我不会再想去了。

Happy birthday to LogMicroscope

转眼一年的光阴过去了,LogMicroscope从最初的几个个人站点,发展到今天的数万个商业站点;从每天的几十个Hits,发展到如今的每天几千万hits。一年前我不会想到会有这么好的结果,一直非常感激LogMicroscope的所有用户,没有广告宣传,是靠着他们的支持和口口相传,才发展到了现在这个规模。

去年很偶然的萌生了做这个项目的想法,只因为一句玩笑话,一个没有人当真的承诺,每天下了班就把自己关在一间没人的房间,用了一个月的时间:产品、开发、测试、安装、上线。当一切都已完成,我在blog上写道:

Check out the free website analysis program I developed in my free time,which named LogMicroscope.it’s a High-Performance,Real-Time website analyer written in C/C++ and Assembly Language, it’s absolute free for both personal and commercial use.no catches,no "spyware", no hidden costs anywhere.

一年前我孤独的在blog上宣布她的诞生,今天自己在这里默默庆祝她的生日。如果说做一件事情一定要有目的的话,LogMicroscope从出生开始,唯一的目的就是用自己的方式说:"hello,world!".

Happy birthday,LogMicroscope.

 

I have deleted the post about binaryfortess.com

I got some emails,questioned about the post written on may 20th,2007 :’ shame on the developers that steal my code’.thanks for your concern and I think it would be better to write something about it here.

This is what I wrote in that post:

…It’s a shame they goes against the open source spirit,my works get stolen and someone else puts their own name on it,when they haven’t put their soul into it like what i did…

I have received a mail from binaryfortress.com:

…I have to say I am very surprised.  I tried out your filter when I was setting up WordPress on IIS and I loved it, but it had a few limits and a few bugs in it, so I decided to write my own.  I’m not sure why you think I stole your code, but I am very interested to hear…

this is what I replied:

…your isapi filter is more configurable than what I did.but I think it would be better if you can link back to the orginal author’s website even if you rewrite it . we love wordpress, it’s only important how can we improve it, that’s the reason why I distribute it in open source so that we can share our knowledge to make it better, but you closed it after you finished.I don’t think this is a good idea…

forget about that post,I have deleted it.just like what I said in the mail:it’s only important how can we improve it.sorry to jon Tackabury if I misunderstand his work. and just like what he said,I should approached him first before post.

Fckeditor for wordpress is now hosted on Google Code

Dean’s fckeditor for wordpress is now hosted on Google Code at http://code.google.com/p/fckeditor-for-wordpress/,it is licensed under a GNU General Public License 2.0.

you can use this comand to check out the newest source code from the Google Code Subversion repository:

svn checkout http://fckeditor-for-wordpress.googlecode.com/svn/trunk/ fckeditor-for-wordpress

if you have bug reports or feature requests, you can submit an issue.

if you have any questions about this plugin, don’t hesitate to email me, since I know the documentation is lacking.

Life is a dream

今天公司搬家,周围一群人抬着纸板箱走来走去,我坐在废纸堆里继续看mail。坚持到6点电源网线都被拔了,只好打包准备下楼吃饭。

走到楼底,突然想起这也许是最后一次走下这个楼梯。不知不觉已经在这里上上下下了两年。想起那些曾和我一起并肩走过这个楼梯的人:他,她,以及它。想起了曾经在楼梯拐角偷偷给我送零食的她,她的笑容总是那么灿烂,如果生命也有阳光,我就是那一颗曾被照耀的尘埃。如果楼梯也有记忆,它还要多久才能忘记这些人,那些事?

早上又梦到了柏林,像10年前在上海第一次见到他一样,远远的看着我微笑,不知道为什么一直忘不了他,也不知道为什么他总会在我梦中出现。也许是因为他在天堂很孤独,也许是我们都很孤独。

生命短暂,孤独永恒。

5.1 holidy has finished

不敢相信五一就这样结束了,在家里闷了一个礼拜,每天凌晨5点睡,中午爬起来,感觉比上班还累。

昨天去了万石植物园,拍了点照片,然后躺在草皮上深呼吸,感受久违了的鸟语花香,说来汗颜,来厦门这么几年了,还是第一次去。回来路上按图索骥找到了小鱼社区上的食神们推荐的一家重庆鸡公堡,味道确实不错。价廉物美,48块钱吃了个饱。

真的就这样结束了?

Flickr VS Photobucket

这是一份2007年的在线图片市场的份额表:

让人震惊的是排在第一的Photobucket所占的市场份额竟然高达40%,远远超过了flickr所拥有的3.1%,同时160%的年增长率也让flickr望尘莫及。

来看看Photobucket是什么?和年轻而充满活力的flickr相比,Photobucket更像是一个行将就木的老人:最普通不过的相册,老掉牙的操作方式,再加上少的可怜的功能。如果不是这份市场份额表,在注册完之后,我甚至会怀疑自己是这里的唯一用户。

而flickr有我喜欢的一切:标签,社会化,map等等,flickr始终在尝试新鲜事物,甚至已经成为web2.0的代名词,我想不出他还缺什么最前卫的东西。周围的朋友都在谈论flickr,blog上,新闻组里也到处充斥着flickr,仿佛全世界都在大声地呼喊着:flickr。

真的是这样吗?这份市场份额表很斩钉截铁的说了一个不字。也许在我们自以为是的大声谈论着flickr,谈论着web2.0,谈论着social network的时候,我们已经背离了大多数人的声音。

下面是在所有人群中谈论photobucket和flickr的次数的对比,数据从Technorati获得:

 

这就是大多数人的声音,在普通人群中,谈论Photobucket的人要更多。大部分用户仍然处在我们眼中的刚入门阶段:他们不需要标签,不需要ajax,不需要社会化,不需要任何web 2.0的元素,他们只想要一个相册,一个操作简单,能提供最基本的存储功能的相册,对他们而言,这就足够了。

在网络高度发达的美国尚且如此,国内的情况恐怕只会更糟糕:想想有多少人正在用土得掉渣的QQ空间?虽然我每次访问它的时候都有想呕吐的感觉,但是QQ的高明之处正在于他能坚持不懈的提供这些在我们看来“土得掉渣”的服务。

在我们为新技术,为web 2.0兴奋的时候,不要忘了大多数人才刚刚学会打开浏览器,抛弃他们只顾前行不一定是明智的做法,尤其是对商业性质的公司而言。多些时间回过头来看看这些刚入门的普通人:也许他们才是真正最需要web的。高山流水固然好听,可不免曲高和寡,下里巴人路人皆知,也不失为另一种优雅。

引用之前的一篇文章作为结束:

Flickr是Web 2.0的绝佳例子,一群天才的程序员的非凡的作品。但是它真的令整个世界疯狂吗?如果有一天它不在了,有人会为它而死吗?很多"传统的站点"仍然在我们的心目中至高无上,无处不在。比如google已经7岁了,谁会在意他是否提供基于web 2.0的搜索服务呢?请不要误解我的观点,一定会有更多具有惊人创意的web 2.0站点涌现出来,但是所有这一切的前提是:你和你的应用要做什么?要为人们提供什么?web 2.0仅是能达到你所要的目标的无数解决方案中很值得去考虑的一种。阅读全文

Visualizing Human Feelings

We Feel Fine 是一个搜集人们在各自的blog文章中所表达出来的情感的项目。每几分钟,系统就会搜集世界上最新发表的blog文章,分析并记录下作者想要表达的情感,比如快乐,悲伤等。然后通过一系列令人惊叹的图形展现出来。

 

The Madness movement, with its network of many tiny colorful particles, was designed to echo the human world. Seen from afar, Madness presents a massive number of individual particles, each colored and sized uniquely, each flying wildly around the screen, proclaiming its own individuality. At this level, Madness presents a bird’s eye view of humanity – like standing atop a skyscraper and peering down at the street. People bustle to and fro, darting in and out of shops, hailing taxis, falling in love, laughing, handling personal crises. From the skyscraper, the people below are like ants – their words cannot be heard, their facial features cannot be seen, and the notion of individuality is hard to recognize. At this level, each particle seems insignificant.

不得不佩服这个项目的想象力和创造力。从分析结果来看,大体上悲伤的人要多过快乐的人(这个其实不用看结果也能大致猜到),比较有意思的是:感到快乐的女人要比男人多2倍。看来做男人还确实是比较命苦:)