2009/04/29

关于猪流感。

最近看了一些消息,发现人们对猪流感有一定的误解,认为猪流感就是从猪来的。

但是,事实是怎样的呢?

根据Wikipedia关于猪流感的文章:

Swine influenza (also swine flu) refers to influenza caused by any strain of the influenza virus endemic in pigs (swine). Strains endemic in swine are called swine influenza virus (SIV).

Swine flu is common in swine and rare in humans. People who work with swine, especially people with intense exposures, are at risk of catching swine influenza if the swine carry a strain able to infect humans. However, these strains rarely are able to pass from human to human. Rarely, SIV mutates into a form able to pass easily from human to human. The strain responsible for the 2009 swine flu outbreak is believed to have undergone such a mutation.This virus is named swine flu because one of its surface proteins is similar to viruses that usually infect pigs, but this strain is spreading in people and it is unknown if it infects pigs.

请注意一下上面引用中粗黑体:“这种病毒之所以命名为‘猪流感’是因为其表面蛋白和通常感染猪的病毒相似,但是这种病是在人之间传播的而且不知道是否会感染猪。”

也就是说目前并不能肯定猪流感是从猪而来,只观察到人与人的传播。所以,当你和一头猪接触或和一个人接触时,感染猪流感的概率是和人接触的高。:>

近日(2009-05-01),世卫组织已把猪流感重新命名为A型流感,以避免人们被误导。

2009/04/26

vim中对调某特定字符两边的内容

如如下文本:
awerawedaew -> brthrtywertqwe aoyuilyilyi -> bsdfasfweghtyh asdfasdfasef -> basdfasdf
应用:
:%s/\(.*\) -> \(.*\)/\2 -> \1
结果:
brthrtywertqwe -> awerawedaew bsdfasfweghtyh -> aoyuilyilyi basdfasdf -> asdfasdfasef
\( \) :组 \1 :引用

2009/04/11

Archlinux中X-utils程序启动慢的终极解决方案

我先前发过一篇post,解决方案是把“/usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE”中GBK全部注释,但是这个方案是治标不治本的,出现一些问题。

我放狗查了一下,貌似可以添加GBK字体的alias,不过在我这里无用(因为找不到update-fonts-alias这个东西。。。)。

刚才捣鼓了一下,把locale.gen中把en_US.*和zh_CN.UTF-8打开,然后运行命令:

sudo locale-gen

最后在.xinitrc中加入如下一行:

export LANG=zh_CN.UTF-8

最后就登录试一下运行X-utils程序,并没有出现卡的情况。。。

2009/04/08

Archlinux中X-utils程序启动慢的解决方案

Archlinux中如果设置locale为LC_ALL=zh_CN.utf-8的时候会出现X-utils启动很慢的情况,如xcalc、xclock、xterm等程序启动的时候很慢,但是启动成功之后正常。

原因是X-utils中的程序启动时候会查找“/usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE”这个文件里面的GBK相关内容,使得启动非常慢,这时候只要把这个文件中的GBK那一段注释掉就行了,让你的X-utils启动如飞~


#  fs3 class (Chinese Han Character GBK)
#fs3 {
# charset {
# name GBK-0:GLGR
# }
# font {
# primary GBK-0:GLGR
# substitute GB13000.1993-1:GLGR
# }
#}
备注:实际上这个解决方案会出问题的,我的机器上具体体现是fvwm中的中文显示出现乱码,新的解决方案在此终极解决方案