被一种相当复杂又无可名状的情绪挤压着 ...
Monthly Archives: February 2009
SunPinyin for Mac Leopard Updated (5)
此次更新的主要内容包括:
- 加入了候选词字符集的选项
- 调整了原来的界面布局,感谢jjgod的帮助

最初觉得缺省支持大字符集很好, 不过最近在帮Feng Zhu收集手写样本时发现,原来GB2312中的二级汉字,我也有若干不认识的。将候选词的字符集设小之后,也有助于减少候选词(主要是字)的个数,提高选取的效率。
大家可以从这里下载最新的安装包。在安装完成之后,请到http://src.opensolaris.org/.../sunpinyin/ime/data下载lm_sc.t3g.le以及pydict_sc.bin.le(如果是PowerPC请下载后缀为'.be'的对应文件),将'.le'(或'.be')的后缀去掉,并拷贝到/Library/Input Methods/SunPinyin.app/Contents/Resources目录下。
A simple python script to backup your roller blog.
I tried to find some backup tools for jroller, some only backs up the recent 30 entries in RSS feed, some does not handul unicode characters. By referring the python/xmlrpclib and MetaWeblog API documents, I wrote a simple backup tool, you could download it here. (But I did not find a good way to get tags for entries.) You may need to modify the global variables, like blogid/user/passwd.
#!/usr/bin/python import xmlrpclib blogid = 'yongsun' user = 'yong.sun@sun.com' passwd = '**********' host = 'http://blogs.sun.com' server = xmlrpclib.ServerProxy(host+'/roller-services/xmlrpc', use_datetime=True) num = 1000 ... ... ... ...
Please note that the passwd is the "Weblog Client API Password", it's probably your original login password, anyway, you could set it in your profile page.
Tip: building packages with different base names in one spec file
As you may know,
%package devel %files devel
will build a package, named as %{name}-devel, while sometime, you want to name it with a different basename, then you could do this,
%package -n foobar %files -n foobar
Met a problem on my blog, "404 Not Found!"
Though, I was in the "Popular Blogs" list, this is also a test entry for feed readers ...

P.S., just figured it out, it's because I corrupted my template when I was customizing it, thus the 404 error happened, sorry ...
2009年春节散记
今年春节回家,看望92岁的奶奶和88岁的爷爷,虽然二老身体都还康健,但是感觉一年比一年衰弱了。姥姥经过年前的一场病,卧床休息了个把月,虽然身体发福了不少,但也感觉苍老了许多。还与十几年没见的、儿时的好朋友聚了聚,大家都已经改变了许多;儿时的许多淘气往事我都不记得了,听她件件道来,一边忍俊不已,一边心里又有些酸楚,我的童年啊,都到哪里去了。
在家几天的生活起居非常有规律,因为要陪儿子睡,早睡早起,有时中午还能补一小觉。而且陪孩子睡,感觉内心很平静,入睡很快。儿子在家玩的可欢儿了,满屋子跑,说话也有了明显的进步,以前只说单字叠音,现在已经经常说双字词了,偶尔也说说三个字的,我和小小妈妈都可高兴了。