Saturday Sep 12, 2009

FW: Please join (快来加入)sunpinyin-developers@googlegroups.com

FW from : 素月如何上青天

我们刚刚为SunPinyin项目建立了一个google-group。虽然oso-inputmethod项目也有一个mail-list,不过是和其他opensolaris i18n/l10n项目share的。而且似乎国内的开发者或用户,还是更习惯和倾向使用google-group作为交流的途径。因此我们就创建了这个group。

SunPinyin的开发者会使用这个mail group来讨论开发相关的问题,同时用户也可以用这个mail group来报告发现的问题。大家也可以直接发邮件到sunpinyin-developers-AT-googlegroups-DOT-com

欢迎SunPinyin的新老用户加入sunpinyin-developers-AT-googlegroups-DOT-com; 积极反馈各位在使用中遇到的问题,这将会使我们更快了解SunPinyin的bug和您的需求,并且以最快的随度修改bug和满足您的需求!

您的反馈和需求就是对我们最大的支持! 也是我们前进的最大动力!

期待您的加入!谢谢!

Monday May 25, 2009

Changing Truetype Fonts path to make NV and OpenSolaris same

Solaris Nevada will be "Changing Truetype Fonts path to make NV and OpenSolaris same". Post simple description one-page here for discussion.  It's automatic approved now. If you have any comments, please let me know asap.

Tuesday Apr 07, 2009

Macro SVR4 or __SVR4 for Xorg on Solaris

During investigate Opensolaris bug 6824625(And 6728611 ) . There is a issue about macro Xorg, the Xorg  seems to be a remnant of old Imake world.  For example, in app/luit/sys.c, it always use #ifdef SVR4 as switch.  but on Solaris there is no pre-define for "SVR4", only pre-define "__SVR4". (check : CC -xdumpmacros -c dummy.c). For resolve this issue, X team support a header file <X11/Xosdefs.h>. So please include this header file in the program which need use CC or gcc pre-define macros.  In Xosdefs.h:

#ifdef sun
/\* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4
  \* This check allows non-Imake configured programs to build correctly.
  \*/
#if defined(__SVR4) && !defined(SVR4)
#define SVR4 1
#endif
#endif
This issue also be discussed in xorg mail-list early (Some portabity issues). Alan gave the solution on Solaris.

Friday Mar 27, 2009

Add widget to sider bar

Add two widgets to my sider bar. 

1. Forecast weather

It can generate a cool flash of weather forecast. You can customize the location which you care. I put Beijing China here.

2. Music player

It lets you play any web-based playlist Select this widget and then click on the edit dropdown to search for a new playlist or enter the URL of one of your playlists. You can also enter the URL of one of your own MP3s. Additionally you can configure the shape, size, visualizations, and more.

I turn autoplay off. You can click play or the song you like to play it. 

Friday Mar 20, 2009

How to complile fetion for pidgin on OpenSolaris 在Opensolaris上编译飞信

转载时请以超链接形式标明文章原始出处和作者信息
http://blogs.sun.com/weixue/entry/how_to_complile_fetion_for

在Opensolaris上使用pidgin这个即时通信客户端,可以支持很多的协议。但是国内流行的QQ和飞信在最新官方的Opensoalris发布版里都没有加入这两个协议的支持。本文讲述如何在pidgin中使用飞信的扩展。这里是编译好的飞信扩展libfetion.so,(感谢SunYong同学编译的release版:))下载后放到 /usr/lib/purple-2 目录下,重新启动pidgin即可。

下面说说如何自己动手编译飞信fetion,首先在Opensoalris中搭建编译环境,可参考这篇文章。(如果你觉得这篇难看懂,就把Sunstudio装上先,然后装下列包pkg install ss-dev SUNWxwinc SUNWxorg-headers SUNWgnome-common-devel SUNWperl-xml-parser SUNWiconv-unicode SUNWiconv-extra SUNWgit SUNWgm4 SUNWgnu-gettext SUNWperl-xml-parser SUNWGlib SUNWgnu-automake-110 SUNWaconf

编译的步骤:

下载 fetion protocol,将fetion目录整个拷贝到:
../libpurple/protocols

修改:
../libpurple/protocols/Makefile.in and Makefile.am
在DIST_SUBDIRS中增加fetion

修改:
configure.ac,
照着qq的位置加入fetion

编译:
aclocal
autoconf
automake -a -f -c

./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --disable-binreloc --enable-gnutls=no --with-nss-includes=/usr/include/mps --with-nss-libs=/usr/lib/mps --with-nspr-includes=/usr/include/mps --with-nspr-libs=/usr/lib/mps --enable-gnome-keyring --enable-gevolution --enable-cap --disable-meanwhile --disable-nm --disable-consoleui --with-perl-lib=vendor --disable-nss CC=/opt/SUNWspro/bin/cc CXX=/opt/SUNWspro/bin/CC

make


Thursday Mar 19, 2009

关于字体的Bigadmin提交文章上线

最新提交给Bigadmin的关于字体知识的文章上线了。
谈谈字体那些事(第一部分):介绍根据外形字体分类
谈谈字体那些事(第二部分):介绍根据字体数据存贮格式分类
谈谈字体那些事(第三部分):介绍字体的大小的知识


计划继续将这个系列写下去。包扩介绍字体的使用,和字体是如何显示和工作的。

Monday Mar 16, 2009

InstallFest BeiYou University HongFu brach

On Mar.15, another InstallFest at BeiYou University HongFu brach. Some pictures FYI.

Slide :

Thursday Feb 26, 2009

Dragon Heads-raising Day

Today is Dragon Heads-rasing Day (二月二龙抬头). Folowing is information about it which forward from BaiduZhidao.

Dragon Heads-raising Day falls on the second day of the second lunar month, which is a traditional festival. In "Imperial Capital Accounts About Seasons", Pan Rongbi in Qing Dynasty wrote the following: The second day is the Dragon Heads-raising Day. On the day, farmers and villagers made an ash path into the houses and kitchens, then wind around the water vats from the outside. This is called leading the dragons back to houses. People in the capital city fry broomcorn millet flour, cakes made of wheat flour and dates, husked wheat rice, and other things as their food. They call this "fumigating insects".

Dragons are auspicious omen, for which Chinese people have an admiration that bordered on worship. Dragons dominate wind and rain. So in ancient days, every time when there was a drought, people would make a straw dragon with sorghum stalks about one zhang (3.33 meters). Then in front of the straw dragon, four men carried the Dragon King’s memorial tablet on a tablet tray and in front of it, people perform acrobatics, singing and dancing, as walking on stilts, doing yangge dance, gongs, drums and flags leading the way. Everywhere contingent of parade passed, every family offered sacrifices, burned incenses and candles to worship the Dragon King. When the straw dragon passed by, people would carry buckets and sprinkle water over the straw dragon and the dragon dancers. They believe that the Dragon King would feel grateful and then make plentiful rain for the mankind.

Sunday Feb 22, 2009

Beijing Openparty - Firefox l10n

Yesterday, I participated the Beijing Open party. I heard Beijing Open party several months ago, but until yesterday, I haven't have chance to see how was it. So, that was my first time to go there, and frankly, it's a really exited experience. Normally there are many optional topics, which brought by attendees. After attendees submit the topic, who prepare topic to do presentation, give a simple introduce, everyone need to vote which topics could be given presentation today. But this time, there are several special topic about Firefox: The over all goals of Mozilla’s Localization Program over 2009. A new software library that has been developed for l10n tools to be created . Firefox l10n introduction The speaker of the first topic, Seth Bindernagel is from Mozila US MountView office. He is the Director of Mozila l10n team. He give a very wonderful speech, and cool slide show.:) The other speaker are contributors of Mozila China l10n community. They have already translated lots of Mozila document to Chinese. It's cool and worth to be respected! Some Picture share with you:

Monday Dec 15, 2008

My Rainbow - 我的色彩

不经意看到别人的blog做的 My rainbow 测试, 好奇的我也去测了一把。我选择的是绿色和黄色,得到如下输出:

Your rainbow is shaded white and indigo.

 
 
 
 
 
 
 

What is says about you: You are a contemplative person. You appreciate cities, technology, and other great things people have created. People depend on you to make them feel secure. Friends count on you for being honest and insightful.

Find the colors of your rainbow at spacefem.com.

Saturday Nov 29, 2008

(转)仓颉造字的传说 到 仓颉输入法

【仓颉的简介】
  cāng jié
  仓 颉
  也称苍颉,原姓侯冈,名颉,号史皇氏,是传说为黄帝的史官,汉字的创造者,被后人尊为中华文字始祖。但普遍认为汉字由仓颉一人创造只是传说,不过他可能是汉字的整理者。在位起讫:前4637—前4596年。
    生卒年:前4666—前4596年。
    出生地:衙邑(今陕西渭南市白水县东南)。
    立都:阳武(今河南新乡市原阳县东南)。
    年号:仓帝元年(甲辰,前4637)。
【仓颉造字的传说】
相传仓颉在黄帝手下当官。黄帝分派他专门管理圈里牲口的数目、屯里食物的多少。可慢慢的,牲口、食物的储藏在逐渐增加、变化,光凭脑袋记不住了。仓颉犯难了。
  仓颉整日整夜地想办法,先是在绳子上打结,用各种不同颜色的绳子,表示各种不同的牲口。但时间一长久,就不奏效了。这增加的数目在绳子上打个结很便当,而减少数目时,在绳子上解个结就麻烦了。仓颉又想到了在绳子上打圈圈,在圈子里挂上各式各样的贝壳,来代替他所管的东西。增加了就添一个贝壳,减少了就去掉一个贝壳。这法子顶管用,一连用了好几年。
  黄帝见仓颉这样能干,叫他管的事情愈来愈多,年年祭祀的次数,回回狩猎的分配,部落人丁的增减,也统统叫仓颉管。仓颉又犯悉了,凭着添绳子、挂贝壳已不抵事了。怎么才能不出差错呢?
  这天,他参加集体狩猎,走到一个三岔路口时,几个老人为往哪条路走争辩起来。一个老人坚持要往东,说有羚羊;一个老人要往北,说前面不远可以追到鹿群;一个老人偏要往西,说有两只老虎,不及时打死,就会错过了机会。仓颉一问,原来他们都是看着地下野兽的脚印才认定的。仓颉心中猛然一喜:既然一个脚印代表一种野兽,我为什么不能用一种符号来表示我所管的东西呢?他高兴地拔腿奔回家,开始创造各种符号来表示事物。果然,把事情管理得头头是道。
  黄帝知道后,大加赞赏,命令仓颉到各个部落去传授这种方法。渐渐地,这些符号的用法,全推广开了,就形成了文字。
  仓颉造了字,黄帝十分器重他,人人都称赞他,他的名声越来越大。仓颉头脑就有点发热了,眼睛慢慢向上移,移到头顶心里去了,什么人也看不起,造的字也马虎起来。
  这话传到黄帝耳朵里,黄帝很恼火。他眼里容不得一个臣子变坏。怎么叫仓颉认识到自己的错误呢?黄帝召来了身边最年长的老人商量。这老人长长的胡子上打了一百二十多个结,表示他已是一百二十多岁的人了。老人沉吟了一会,独自去找仓颉了。
  仓颉正在教各个部落的人识字,老人默默地坐在最后,和别人一样认真地听着。仓颉讲完,别人都散去了,唯独这老人不走,还坐在老地方。仓颉有点好奇,上前问他为什么不走。
  老人说:“仓颉啊,你造的字已经家喻户晓,可我人老眼花,有几个字至今还糊涂着呢,你肯不肯再教教我?”
  仓颉看这么大年纪的老人都这样尊重他,很高兴,催他快说。
  老人说:“你造的‘马’字,‘驴’字,‘骡’字,都有四条腿吧?,而牛也有四条腿,你造出来的‘牛’字怎么没有四条腿,只剩下一条尾巴呢?”
  仓颉一听,心里有点慌了:自己原先造“鱼”字时,是写成“牛”样的,造“牛”字时,是写成“鱼”样的。都怪自己粗心大意,竟然教颠倒了。
  老人接着又说:“你造的‘重’字,是说有千里之远,应该念出远门的‘出’字,而你却教人念成重量的‘重’字。反过来,两座山合在一起的‘出’字,本该为重量的‘重’字,你倒教成了出远门的‘出’字。这几个字真叫我难以琢磨,只好来请教你了。”
  这时仓颉羞得无地自容,深知自己因为骄傲而铸成了大错。这些字已经教给了各个部落,传遍了天下,改都改不了。他连忙跪下,痛哭流涕地表示忏悔。
  老人拉着仓颉的手,诚恳地说:“仓颉啊,你创造了字,使我们老一代的经验能记录下来,传下去,你做了件大好事,世世代代的人都会记住你的,但你可不能骄傲自大啊!”
  从此以后,仓颉每造一个字,总要将字义反复推敲,还行拿去征求人们的意见,一点也不敢粗心。大家都说好时,才定下来,然后逐渐传到每个部落去。

摘自百度百科,更多请参考:http://baike.baidu.com/view/2070.htm

【仓颉输入法】
朱邦复1980年代初在个人电脑上设计中文系统,以仓颉码为其根本,收字数万,效率甚高。

朱邦复于1982年登报公开放弃仓颉输入法专利,并且极力推动电脑之中文化。现今大部分操作系统,甚至一些电子辞典皆附有仓颉输入法,为注音以外最普及的形码输入法。以往为正体中文使用地区最常用的形码输入法,用于香港、马来西亚等地。但台湾由于智慧注音输入法之发展,以及后继发明之免费及非免费等形码输入法甚多,“万码奔腾”,仓颉输入法未成主流。目前选用仓颉输入法者,除早期使用而不愿更换外,多为其普及率考量。

朱邦复本来想根据其“汉字基因”理论,建立一“仓颉系统”,用仓颉码统一处理汉字形、音、义、码、序、辨等六大问题。其中仓颉码的原始目的是汉字检索及排序,其取码具有字首及字身的概念,以字首做为分类,字身做为补充,如此便可让电脑“理解”汉字,进而达到组字、字义理解,甚至与人沟通的功能。

由于本以汉字检索为目的,仓颉取码依据视觉辨识原理,能反映汉字的细微特征,几乎所有不同字形或异体字,都有不同的编码,因此重码率为当今中文输入法中最低。仓颉输入法亦为一般系统中字库最大者,几乎所有系统可见的字型,皆可用仓颉输入法键入,因此也成为汉字文化工作者选用的主要输入法。然而,当今主流电脑系统只提供仓颉输入法,而没有采用整套仓颉系统,因此许多原先的设计理念,如仓颉内码、字型产生器与极大字库等,皆没有实现。

然而仓颉输入法也受到许多批评,例如为顾及检索,编码规则繁复,无容错编码,加上系统字集问题[1]、字体问题[2]、版本混乱问题[3],导致规则混乱、取码麻烦,因而不少人视学习为畏途。另外仓颉输入法并未为常用字之快速输入设计简快码,标点符号之输入也略嫌不便,因此没有成为最快速的中文输入法。

目前仓颉输入法最新的公开版本是第五代,最常使用版本是第三代。待公开的第六代(又称苍颉检字法),由朱邦复的多年助手沈红莲设计,应用于他们开发的苍颉系统上,该系统字库完整收录了历代文献用字十万以上,以仓颉码作为内码,重码率低于5%。因设计符合汉字特性,获国学大师钱钟书赞赏,并指定用来进行古籍电子化。[4]第六代现仅提供部分文史专家学者使用。苍颉检字法不是为了支援统一码;朱邦复批评统一码处理汉字方法愚昧,收字不全,字序混乱,码长不等,因此不能采用。

摘自wiki百科,详情请参考:Cangjie input method

Saturday Nov 22, 2008

Picture of Sun University Day in Beijing Tsinghua

Yesterday I attended Sun University Day. I did virtualbox demo. We communicated with student by Q&A. Here are some pictures of Sun University Day in Beijing Tsinghua, and Techday. You can see my colleague Harry Fu'blog, to know what student asked.

Wednesday Nov 19, 2008

Sun University Day in Beijing - Tsinghua University (清华大学 Sun 大学日)

Sun University Day in Beijing - Tsinghua University will be hold on this Friday, 2008/11/21. My colleagues and I have a session to show some OpenSolaris Demos (Desktop and Entertainment, Package management and ZFS, Developer Tools, VirtualBox) . And also have free QA time for audience. I will demo and introduce VirtualBox.
If you are interested, you can register from http://developers.sun.com.cn/events/overview.html
Sun University Day in Beijing (清华大学 Sun 大学日) 
Date: 2008/11/21
Location: 清华大学主楼后厅1层报告厅

For agenda details please see: http://developers.sun.com.cn/events/agenda.html


Sun Techday in Beijing also will be hold on 2008/11/21~2008/11/22 at 北京国际会议中心
See details :http://www.suntechdays.cn/
I will be there 2008/11/22.
Hope see you then. :)

Wednesday Oct 15, 2008

Firefox3中安装Firefox2的扩展插件

很多Firefox2的扩展或插件在Firefox3中无法安装使用,以下是常见的几中方法,使得旧版本的扩展可以在新版安装。不能安装旧版插件的原因是版本的检查不匹配。所以解决的方法就是跳过版本兼容性的检查。

方法一:修改插件里的支持版本信息
首先将插件下载到本地。FireFox的插件扩展名是xpi,其实是一个zip压缩打包文件,用winrar等可以打开。找到里面的install.rdf文件,可以找到如下内容:
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>3.0b3pre</em:maxVersion>
</Description>
</em:targetApplication>
minVersion和maxVersion就定义了该插件可以支持的FireFox版本,将3.0b3pre改成3.0,保存后重新安装插件即可。

方法二:设置FireFox,跳过兼容性检查
在FireFox3地址栏输入about:config,出来一个警告页面,不理他,“我保证我会小心”。然后点右键,选择“新建”->“布尔”,创建一个布尔变量
extensions.checkCompatibility,值为false,表示不检查扩展插件的兼容性。
同样的步骤再创建一个布尔变量extensions.checkUpdateSecurity,值为false,不检查安全更新。重启,OK

方法三:使用现成的扩展插件 Nightly Tester Tools
https://addons.mozilla.org/zh-CN/firefox/addon/6543

Saturday Oct 11, 2008

My recent awaited update

Every time a bloger is interrupted for a long time to write blog, said back to weeding. Ha ha. weeding back,for nearly three months came back today. No matter how busy, I'm willing to updating for my friends and reader who concerned me.

For three months, a lot of big and small things happen. To us the largest one is successful Beijing Olympic Games were held, waiting for for so many years has finally realized that the Olympic Games has left me a lot of touching moments. Opening and closing ceremonies were both spectacular. During Olympic Games, I even had chance to go to Beijinggongti to see Most of the lightweight boxing preliminaries.

For Work,added to the three Southeast Asian locale support (ms, vi, id), one week ago it has finally been integrated into the in Nevada build99. Including the implement encoding conversion of Vietnamese to the iconv module. I believe in Opensolaris 11.2008 release user will be able to use all three of the locale. Of course, add more locales depends on locale people, the community has boundless power! Now, the highest priority to have friends in Singapore or who interest in add Singapore locales, increased Singapore's locale (High:zh_SG, en_SG, low:ms_SG, ta_SG ) , if interested please contact me, very grateful!

There is the matter had to say that cooperation more than a year of PM to leave the sector to the another team. Some reluctance, because of the cooperation is very happy, she taught me a lot of things and we also have some understanding of each other. It's pity than she leave us. She is a very good, work hard, thoughtful, and always consider for someone else, for me, the best thing is she able to speak Chinese, so we can communicate in Chinese. it maybe a reason that make we know each other better. ;). The new PM is coming, I have to say better English. I also tell myself keep on working harder! We also hope
that the good co-operation. Anyway, the best wishes for Wenling in the new position to the work be happy and successful! Come on! !

I happen to have an opportunity to be a Guest Lecturer/Professor in a University. When I was child, be teacher is one my dream. It comes true. Ha ha:) Standing on the rostrum, looked at the lovely young students, then think of my student-age. Hope that from the course, they can get something and like me. Students are always with the words young, hope, dreams, future, so full of shining, vigor and vitality of human language vocabulary together, there is no doubt that the teachers with them always be touched by, and I'm looking forward to and enjoy what they have brought to my experience!

About

williamxue

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today