« November 2005 | Main | January 2006 »
December 22, 2005
psi-jingle
libjingle is a library made by Google that extends the Jabber protocol to support voice calls.
Now google is releasing the library and this opens the door for open source IMs, what a great job!
As I've messed with Psi before, I checked out Psi's website and happily found they're porting libjingle to psi!
Here is the steps to build the software:
1. darcs get --partial --set-scripts-executable http://dev.psi-im.org/darcs/psi-jingle
2. sudo yum install speex
3. build qca manually, or use yum.
3. sudo yum install qca-tls
(If you decide to build qca manually, it's a little trickier because "make install" doesn't do anything, you have to copy the library to the correct plugin path of QT.)
4. build ortp-0.7.1 manually, you have to use this version.
5. configure psi correctly:
./configure --with-glib-inc=/usr/include/glib-2.0 --with-glibconfig-inc=/usr/lib/glib-2.0/include/ --with-ortp-lib=/usr/local/lib/ --with-ortp-inc=/usr/local/include/ --with-speex-inc=/usr/include/ --with-speex-lib=/user/lib --enable-jingle --with-qca-inc=/home/wh5a/qca-1.0/src/ --with-qca-lib=/home/wh5a/qca-1.0/
See my snapshot:
By the way I'm using Xming as the X server under Windows, thanks to nofog.
Posted by Roy at 12:07 PM | Comments (0)
Terms to address Asians
http://www.discovervancouver.com/forum/topic.asp?TOPIC_ID=39359
Asians have many scientifically derived terms to distinguish between the multiple classifications of Asian types
there is the "Banana"--yellow on the outside, but white on the inside
and the "Twinkie"--yellow on the outside, but with a softer creamier white filling on the inside
the "Mango"--yellow on the outside, yellow on the inside
the "Lemon"--yellow on the outside, and yellow on the inside, good to be friends with when you suffer from scurvy or take extended trips at sea without vitamin C
the "Egg"--white on the outside, and partly yellow/partly white on the inside, but of a very fragile constitiution, so please handle with care when carrying this person in a spoon across an open field on Sports Day or at family picnics
the "Hard-Boiled Egg"--white on the outside, yellow and white on the inside, can be found flying through the air and broken glass with semi automatic guns firing in both hands killing lemons
the "Lemon Starburst"--wrapped in delicate yellow and white origami patterned paper on the outside, yellow and chewy on the inside, can be made to last a long time in one's mouth if one is patient and does not suck too vigourously
Posted by Roy at 11:54 AM | Comments (0)
December 20, 2005
Upgrading to Fedora Core 4
Today I decided to upgrade my FC2 to FC4.
Yes, I know, FC sucks, but the department installed it for me, so why bother switch to Debian?
As said in the FAQ, yum can be used to upgrade FC, but anaconda is recommended to perform a clean upgrade.
So I installed anaconda but got some errors when I attempted to run it directly. True, it has some docs coming with it under /usr/share/doc/..., however they are not quite clear or accurate. Luckily enough, anconda is written in Python and I managed to understand how to feed it correct arguments, that's enough, isn't it?
So here it goes:
/usr/sbin/anaconda --text --method=http://mirror.linux.duke.edu/pub/fedora/linux/core/4/i386/os/ --rootpath=/
I'm using SSH to upgrade remotely, so I chose to use the text interface.
http://mirror.linux.duke.edu/pub/fedora/linux/core/4/i386/os/ is a mirror I found on the FC's official website. It seems that my anaconda is so old that it was looking for the list under the directory RedHat/base/hdlist, but I hacked /usr/lib/anaconda/product.py to fix it.
Now it's installing, I'm crossing my fingers that my hack will work. I didn't find very useful docs on FC's website, that's another reason I hate FC.
升级完毕后的感觉:
Fedora确实一直在进步,以前一直认为不爽的就是包不够多,但现在Fedora Extras已经被自动包括进来,这样似乎apt已经不再需要了。
现在知道了怎么升级Fedora,每半年升级一次版本就可以跟上时代了,虽然还是不如Debian方便。
一个FAQ:http://www.freewebs.com/faqfedora/
Another issue:每次升级的时候总是找fc5-test1的包,然后就装不上,我试图在配置文件里面设置releasever=4也不行,只好把指定包的位置的那一行hardcode成Fedora 4的。
Posted by Roy at 09:15 PM | Comments (0)
December 13, 2005
how "size" works
I'm talking about the utility "size" of binutils-2.16.1.
It's confusing that it can display the size of a binary in two formats:
System V size (--format=sysv), or Berkeley size (--format=berkeley, the default option).
The sysv format is easier to understand, the output is basically the same as that of "readelf -S": the size of every section is listed.
However berkeley format is more useful when you measure the size of data, code, and bss. Then it comes to the problem how you sum up those sections?
Check out the function berkeley_sum and you'll understand how datasize, bsssize, and textsize are calculated:
static void
berkeley_sum (bfd *abfd ATTRIBUTE_UNUSED, sec_ptr sec,
void *ignore ATTRIBUTE_UNUSED)
{
flagword flags;
bfd_size_type size;
flags = bfd_get_section_flags (abfd, sec);
if ((flags & SEC_ALLOC) == 0)
return;
size = bfd_get_section_size (sec);
if ((flags & SEC_CODE) != 0 || (flags & SEC_READONLY) != 0)
textsize += size;
else if ((flags & SEC_HAS_CONTENTS) != 0)
datasize += size;
else
bsssize += size;
}
bfd is documented here.
#define bfd_get_section_flags(bfd, sec_ptr ptr) ((ptr)->flags + 0)
typedef struct bfd_section *sec_ptr;
Hmm, this is still too confusing.
Well, I created a utility to dump all the sections: size
Posted by Roy at 04:47 PM | Comments (0)
December 10, 2005
论文中的制图
这是最麻烦的事情了。也许xfig,gnuplot之类的会比较牛吧。
我觉得这玩意儿还不像typesetting,WYSIWYG的GUI制图软件会有很多弱智的地方,基于脚本的话,虽然强大了,可是想看到效果就难。
现在先用Visio将就着吧,呵呵。
画图真难。又要画得好看又要画得好懂。
Office系列里面最让人郁闷的事情里面,对齐应该算一样。在“工具-〉对齐和粘附”的“对齐”里面check“形状延长线”,似乎就可以让你的各个框框严丝合缝的贴在一起,否则总会留条缝,很讨厌。
Posted by Roy at 04:46 PM | Comments (0)
December 09, 2005
Comments are allowed..
Test
Posted by Roy at 04:00 PM | Comments (0)
December 05, 2005
CVS across Firewall
Out of all the search results I got, this one is the most helpful.
My configuration:
1. monolith is the gateway, and all pri machines can not connect to the internet directly.
2. aho runs the CVS server that I want to connect to.
Solution:
1. On monolith, run below to establish a SSH tunnel:
ssh -g -f monolith -L 10000:aho.zephyr-software.com:22 sleep 7200000
2. On pri-035, make a ~/.ssh/config file that contains below:
Host cvsserver
Hostname monolith
Port 10000
3. Add lines below to .bash_profile on pri-035:
export CVS_RSH=ssh
export CVSROOT=:ext:cvsserver:/home/zephyr/zephyr-cvs
4. Now in some directory, you can check out Strata:
cvs co strata
Isn't it cool?
Posted by Roy at 09:40 PM | Comments (0)
December 03, 2005
Some English Expressions
When someone's relative passed away, you can "offer your sympathy" to him.
Tell her Hi for me! means you want someone to 代你问好.
Posted by Roy at 04:06 PM | Comments (0)
南方贵族zz
http://www.clibrary.com/column/fengyusheng/fengyusheng-1-23.html
去过几次Richmond,给我的感觉都是破破烂烂的。
看到这篇文章,算是Richmond导游吧。看来开春了还得再去一次。
文中提到的金融企业想来就是Capital One了,希望Long同学能来工作,嘿嘿。
我们系一个新faculty的老公也将到那里工作,算是解决two body问题了。
另附nju overseas版一个人的评论:
发信人: junyi (天生懒虫~作work hard状), 信区: Overseas
标 题: Re: 南方贵族zz
发信站: 小百合BBS (Sat Dec 3 10:36:20 2005)
飘的故乡南卡charleston比文章里面更加“南方”,
街上到处飘着confederate的旗帜,
最著名的historical site是南方军队坚守四年的fort sumter,
也有civil war的英雄纪念碑,
不过不是纪念林肯的人民解放军,
是纪念反动派confederate defenders of Charleston.
南方贵族
风雨声
南方是美国最伤感的记忆,也是美利坚面纱后最神秘的容颜。
南方应当始于维吉尼亚。维州在美国有一种得天独厚的地位,维州人是美国的精神贵族,他们彬彬有礼的优雅举止后面是天生的高傲。美国奠基者中最早的五个总统,华盛顿、杰斐逊、曼迪逊、门罗四位都是维吉尼亚人。
里士满是维吉尼亚的首府,她的气质是外国人在好莱坞电影中很难看到的老派美国。这是一个安静美丽的城市,当东海岸的秋天把漫山遍野的树林染红的时候,漫步在里士满的“纪念大道”中,中间是草坪,两旁是密密麻麻叶子红得透明的两排大树延伸到远方,视线尽头只能看到一尊高大的骑马雕像,头上是蔚蓝的天空。两排树的外面才是隐隐约约的行车道,似乎把熙熙攘攘的现实世界隔离在远方。
这条大街记录了南方的伤痕和荣耀。
一路走过,街道两旁是一百多年前的房子,每个路口是一个南方将领的巨大雕像,罗伯特.李将军,石头墙杰克逊将军,南方总统杰斐逊戴维斯……在戴维斯总统的白色大理石纪念墙顶上有一行简单的字,大意是那些为了保卫他们宁静的生活方式而浴血奋战抵抗外来侵略者的南方的将士们永垂不朽。街上看不到一处YANKEE的影子,直到2003年,当美国内务部国家园林局和美国历史学会建议在里士满竖立一尊林肯总统的雕像时,在里士满引起了轩然大波。其中一份《我们对林肯塑像说不》的公众恳求信上说这尊雕像是“对那些勇敢的维吉尼亚人的不敬,他们经历了四年地狱般的战斗生活抵抗林肯对维吉尼亚的侵略。” 美国历史学会一再发表声明,说理解“内战是美国人灵魂上一个巨大而尚未愈合的伤痕” 。
对我来说这犹如天方夜谭,一个加州的朋友一次和我在这条大街漫步,作为美国人他却是第一次涉足此地,说感觉这是外国或者是在历史中行走,不知道美国还有这样一个地方。你也会听到维吉尼亚人对加州有同样的评价。
走在小街上,三五个街道口就有一个教堂,二百多年来教堂一直还是这里人们精神生活的中心。在一个精致的小区,看到一栋栋精致的大房子,熟悉这里的朋友告诉我,这里住着某些退休的财富500强的CEO,或者是前财政长、议员,有人陪着的某个溜狗老太太是某福布斯500大亨的遗孀,带着南方的口音和南方的举止……
里士满的孤傲,还因了这里是美国“老钱”的大本营。在殖民地的早期,这里是最早美国种植业的奠基人的故乡,是供应英国、欧洲大陆和美国的烟草业的故乡,菲利浦摩里斯的总部现在还在这里。二三百年前的烟草业是一个国家的财源滚滚的支柱产业,比今天的电信金融还要让人羡慕。这里也是来自南美的咖啡交易的集散地。二百多年来,创造和积累财富是美国梦中最绚丽的一个。而在不同时期淘金成功的人们之间几乎总有“老钱”与“新钱”的冲突。“老钱”意味着不仅仅是财富,而且是身份、地位、教养、家世和传统底蕴,而“新钱”则只是暴发户的新贵。纽约的有钱人多少年来在里士满的贵族眼中不过是一群钱包鼓起来的没有多少文化的乡镇企业家,很多人回到欧洲和贵族联姻,转一圈回来才能进入“老钱”的圈子,这是里士满的高傲。
在沉甸甸的美国历史之外,里士满于我有着星星点点的温馨。
我大学同班最杰出的两个同学枫和清结婚后住在里士满,为当地一家金融企业工作。他们在大学里一直是班上的前两名,他们的聪明与善良一直让我仰望。枫比较瘦话不多,穿着整洁儒雅精致,大家聊天的时候他多带着湖北口音和憨厚的笑容。清聪慧灵巧而可爱,甜甜的笑容下是深深的酒窝,开车的时候她看路比枫还忙,双眼中全是对枫的关爱。
因了枫和清,里士满的美丽带着异常亲切。他们让我有机会感受到这个城市的细致,忘不了品尝到一家叫富华餐厅的地道的广东早茶时不停冒的口水,在宁静的梅梦园(Maymont Garden)中散步欣赏东方的小桥流水和西方的雕塑城堡,在古老的烟草仓库装修成的精致的饭馆中第一次点Mahi Mahi练习发音时嘴上乐呵呵的笑容。1999年我回国休假问枫和清想带点什么,清说什么都不需要,如果方便的话带点孟庭苇的歌吧。我捂着肚子又笑了很长时间,国内的同学那时候连“唐朝”和“窦唯”都嫌老了,清心里的中国还在哼着《谁的眼泪在飞》,那是他们出国前响在耳边的歌。他们后来搬到纽约,我每次到里士满仍然总想到满园秋色中宁静的小区、温馨的小屋,还有两个杰出的中国学生。
Posted by Roy at 03:18 PM | Comments (0)
Link: 勃客郑渊洁
听说郑渊洁这个流氓也开始写blog了。
我是什么时候把他从童话大王打倒成流氓的呢?大概快有十年了吧。
anyways,当免费的童话大王看看吧,呵呵
哇勒,不看不知道,一看吓一跳,往 blog.sina.com.cn 右侧一看,好多名人blog,不错不错
Posted by Roy at 12:48 AM | Comments (0)