Ubuntu 10.04 将字体设置成文泉驿微米黑 (ttf-wqy-microhei) 的方法

执行一下:
cd /etc/fonts/conf.d
sudo ln -s ../conf.avail/69-language-selector-zh-cn.conf .
就可以了,这样中文的字体就能自动选择了

Posted in Uncategorized | Tagged , | Comments Off on Ubuntu 10.04 将字体设置成文泉驿微米黑 (ttf-wqy-microhei) 的方法

怀念xkx

今天突然特别怀念 xkx (侠客行,文字MUD) 以前玩了6年的游戏,从1999.9 玩到毕业2005.6 ,时间真不算短了。
以前玩的 @BJ 帐号也没了,@ZJ 的地址今天也找不到了。只能连进@AH,用小号进去看了一眼 (@BJ 的帐号都被并入 @AH 了) ,把登录时的内容记录下来,一为存档,二为怀念…

谁  纵  千  救  眼  三  将  闲  事  十  银  赵
能  死  秋  赵  花  杯  炙  过  了  步  鞍  客	  ︻ The
书  侠  二  挥  耳  吐  啖  信  拂  杀  照  缦	  侠
阁  骨  壮  金  热  然  朱  陵  衣  一  白  胡     	     Quest
下  香  士  槌  后  诺  亥  饮  去  人  马  缨
                                                  客 Of
白  不  烜  邯  意  五  持  脱  深  千  飒  吴
首  惭  赫  郸  气  岳  觞  剑  藏  里  沓  钩	     Oriental
太  世  大  先  素  倒  劝  膝  身  不  如  霜	  行
玄  上  梁  震  霓  为  候  前  与  留  流  雪	  ︼ Chivalry
经  英  城  惊  生  轻  赢  横  名  行  星  明

Copyright XiaKeXing Gaming Group 1996-2007

侠客行网站:<  www.TheXKX.com  或 xkx.xkx1.com >
有任何意见,请 email 给 wiz@thexkx.com

儿女情长,仗剑江湖路,暮然回首,萧风夜雨近八载。纵观天下,图形网
络游戏五花八门比比皆是,而仍不为所动,倾心狂醉侠客行中者,实乃独
解其个中真味之辈。为让侠客行游戏更上一层楼,以更丰富的游戏内容和
更高的游戏质量来回报玩家之厚爱。从即日起,门路广开,希望有志之士
能加入到我们侠客行巫师队伍中来。详情清参阅  (help wiz_apply)
- MudOS v22.2b14 -
侠客行站点名称	     国际网路位址     埠号	  运行时间	   玩家人数
=================   ===============   ====  ====================  ============
安徽侠客行(AH)   202.102.197.65    5555    十二天二十二小时多    一百零八位
广东侠客行(GD)   210.22.14.139     5555          九天四小时多    一百四十位
苏州侠客行(SZ)   58.218.250.45     5555    四十九天十九小时多  一百八十五位
=================   ===============   ====  ====================  ============
目前侠客行共有四百三十三位玩家在三个站点连线中。

英文ID识别( 新玩家请输入 new 进入人物建立单元 )
请输入您的英文ID:
Posted in Uncategorized | Tagged , | Comments Off on 怀念xkx

Experience on GNOME Asia Summit 2009

GNOME Asia Summit 2009 logo

I was very lucky that I had the chance to take part in GNOME Asia Summit 2009. The summit was held in Ho Chi Minh City(HCMC), Vietnam.

It was a really wonderful journey in my life, because it was my first time to go abroad to see what other country looks like. I started to prepare my passport on Nov 9, 2009. and got the passport on Nov 18, 2009, then I immediately went to Vietnam embassy for visa that day. How lucky I was, the embassy provides express visa service within 2 days. So I took off on Nov 20, although I was not able to participate in the opening ceremony.

I got up early and went to the Beijing airport that day, after 3 hours flight, I arrived at Hong Kong for flight transfer, and after 2 hours, I arrived at Ho Chi Minh city. My planes belong to Cathy Pacific airline, the service was great.

I was impressed when I went out HCMC airport, there were some volunteers for the event picked me up.

Me and Volunteerthe temperature was HOT compare to Beijing, and the volunteers were very friendly, they helped us(gf and me) to take taxi. We got to the hotel at 8pm, the price of my room was cheap, about $10. We met some awesome guys, some of them came from Taiwan(Fred, Ping-Hsun, Andrew, Medical-Wei), one from Germany(Tobias), and one from Australia(Andy). We took taxi for having dinner together that night, It was so impressive, we had happy time. I was shocked by hundreds of motorbikes starts to get across the cross road at the same time, and I spent all the money that I had exchanged at the airport that day…

Second day morning, I went to the venue, briefly presented “GNOME Accessibility and Automation Testing”.

Someone is presenting

Paul Mei is prsenting

I'm presenting

The audience

The slides talks about what is Accessibility, its definition and its categories, at the second part of the slides, I presented what is at-spi and how at-spi works with other GNOME components and other applications(java, winforms, moonlight etc). finally I did a demo to show how to use strongwind to implement a automation test. I had another workshop for GNOME localization at the afternoon that day, and I worked with a guy who is a Vietnamese translator/contributor for GNOME Vietnamese translation, and discussed the new translation process in damned lies.

The GNOME Asia Summit(GAS) 2009 lasted 3 days from Nov 20 to Nov 23. It was successfully hosted, and I believe it has achieved its goal – to spread GNOME in Asia. I really hope I have the opportunity to take part in in the future, and I do hope GAS could be more and more successful, and could be as good as GUADEC. Let’s try our best to make it happen!

The summit has gone, I enjoyed it very much. 🙂

Posted in GNOME | Comments Off on Experience on GNOME Asia Summit 2009

Linux’s Magic key (转)

转自 http://li2z.cn/2009/08/10/linux_magic-key/

自从我换成了开源的A卡驱动以后,我的电脑就时不时地崩溃。现象是:突然之间,整个画面就冻结了,鼠标也不能动了,几乎所有的按键也都失效了,ctrl+alt+F1 和 ctrl+alt+backspace 都无效。这种情况一般发生在有不规则形状的窗口出现的时候,比如gnome-osd的透明文字,但也不是很一定的,发生的概率也不高,一般几天才会有一次。我想,要彻底解决的话,也只能等待驱动的改进了。
不过,每次崩溃都强行按电源的话,还是有点心痛的。幸好办法还是有的,因为驱动程序其实也只是一个程序而已,这时候即使驱动死掉了,鼠标键盘不能动,linux内核还是在正常运行的(按理如果我开了sshd的话,其他机器还是能ssh上来的)。而且,内核还是能处理一些键盘事件的,比如本文要说的:Magic System Request Key
以下按键,一般情况下不建议使用,除非是ctrl+alt+F1都失效了,才用。
使用Magic SysRq key的前提是CONFIG_MAGIC_SYSRQ这个内核选项被打开,并且没有在/proc/sys/kernel/sysrq里禁用掉,也就是 cat 这个文件的时候,出来的是 1 (或其他某些非0值)。其实这两个条件,在一般的linux发行版里都是满足的。下面就来介绍一下几个键的具体作用,其中SysRq指的是右上角的 “Print Screen”键。

ALT-SysRq-b 立即重启系统,不卸载分区和同步文件。
ALT-SysRq-c 调用kexec内核函数来重启,可以生成个crashdump。
ALT-SysRq-d 显示所有的“锁”,如果开了X的话,估计基本看不到。
ALT-SysRq-e 给除了init以外的所有进程发送SIGTERM信号,可以试图正常结束所有进程。
ALT-SysRq-f 调用oom_kill函数来干掉占用了很大内存的进程。
ALT-SysRq-g 内核调试相关的(好像新内核已经没了?)。
ALT-SysRq-h 显示其他key的帮助,同样,如果开了X的话,估计基本看不到。
ALT-SysRq-i 给除了init以外的所有进程发送SIGKILL信号。
ALT-SysRq-k 结束当前虚拟终端的所有进程。
ALT-SysRq-l 显示所有活动CPU的栈跟踪信息。
ALT-SysRq-m 显示内存状态。
ALT-SysRq-n
ALT-SysRq-o 可能的话,关机。
ALT-SysRq-p 显示当前的寄存器状态和标志位。
ALT-SysRq-r 关闭键盘的raw模式。
ALT-SysRq-s 同步内存里的数据到硬盘。
ALT-SysRq-t 显示当前的任务信息。
ALT-SysRq-u 以只读模式重新挂载所有分区。
ALT-SysRq-v
ALT-SysRq-w 显示不可中断的任务
ALT-SysRq-x
ALT-SysRq-z
ALT-SysRq-数字键 调整日志输出级别

另外,除了物理的按键以外,其实还可以把某个键的值用root权限写到 /proc/sysrq-trigger 文件里(这个文件是个只写不读的怪文件,哈哈),比如

echo t > /proc/sysrq-trigger

,来触发Magic SysRq key。

以上内容可以在内核源码的 Documentation/sysrq.txt 里找到英文原文,但是即便是这个官方文档,也似乎不是每个按键都有效的,可能是某些只有在特定的硬件条件下才有效,又或者文档没更新?
在万一遇到程序崩溃的时候,你可能需要按的键是: ALT-SysRq-r e i s u b 来安全地重启机器~

Posted in GNU/Linux | Tagged | 2 Comments

Mono UIA Packages Preview

Recently, I was working on pushing Mono UIA stuff into debian/ubuntu, but being accepted is a really long way to go. The packages need to be reviewed by Debian Mono Group hackers, and they were mostly working on geting Mono 2.4.2 uploaded, UIA stuff are not in a high priority.

For those who wants to use Winforms apps on GNU/Linux, you can get packages as deb or rpm without compiling by yourself. Currently we have 1.0 release. You can get:

RPM:

http://download.opensuse.org/repositories/Mono://UIA/MonoOpenSUSE_11.1/ (for openSUSE 11.1)

you will need to install mono-uia, mono-winfxcore, uiaatkbridge, uiautomationwinforms in order.

DEB:

https://edge.launchpad.net/~raywang/+archive/uia2atk

you have to add my PPA to your /etc/apt/sources.list, import key and get refreshed, and install libmono-uia3.0-cil, libmono-winfxcore3.0-cil, libmono-uiaatkbridge1.0, libmono-uiautomationwinforms1.0-cil libmono-uia3.0-cil, libmono-windowsbase3.0-cil, libmono-uia-atkbridge1.0-cil, libmono-uia-winforms1.0-cil in order.

Feel free to contact me if there are problems/questions/concerns etc

Posted in GNU/Linux | Tagged , | Comments Off on Mono UIA Packages Preview