Saturday, February 14, 2009
personality guess from blog
There is an old saying in Chinese(文如其人): The style is the man, or the writing mirrors the writer. It means we can deduce one's personality from his writing. Now technology can verify this saying. There is a website Typealyzer.com doing this verification. Before you browse someone's blog, you can make a guess about his personality and find friends who are similar with you. Have fun!
Monday, February 9, 2009
a hot debate: where should China's foreign reserve go
Editorial: It is well known that China has accumulated the biggest foreign reserve in the past couple of years. As is noted in academics, this big number of foreign reserve is a double edge sword. On the one hand, it represents the financial power of the state. So the government can resist malicious speculation on RMB from some sharks among foreign investors. And also domestic companies can import advanced equipments and technology patents by buying foreign exchange from SAFE(State Administration of Foreign Exchange) within specific limits. On the other hand, because foreign reserve exists in form of foreign government bonds and securities, there must be some kind of opportunistic cost and possibility of increasing the pressure of inflation.
When we can not rely on imports of the US and EU countries, what we can do with our foreign reserve to revive our economy? A hot debate is happening among some Chinese economists. I'd like to brief this debate(一场关于外汇储备用法的激辩).
On the night of Feb. 8, 2009, a hot debate is happening in the north of Ha'erbing. One side is Zhang Weiying, an economists and professor working in Peking University, the other side is Gao Xiqing, the CEO of China Investment Corporation. The focus is whether the foreign reserve should be redistributed to Chinese citizens to expand domestic demands.
Mr. Zhang made an adamant proposal that the big and idle foreign reserve can be partly redistributed to Chinese citizens to increase their purchasing power. And he thought it is helpful for every Chinese citizen to be the holder of the US bonds. Zhang's proposal was strongly refuted by Mr. Gao, who thought that once this accumulated reserve are redistributed to Chinese citizens, the government can't execute central management of foreign exchange, which is considered necessary to resist currency speculation. Mr. Gao said, "the Americans must oppose this proposal. because holding of the US government bonds means support of its credit. If we sell these bonds, the credit of bonds will drop dramatically. So is the expected profit of these bonds. And finally all of the foreign assets we are holding will become paper." Another reason he opposed the proposal is that he thought the citizens would rather deposit received money than consume. Let stimulating economy alone.
Mr. Zhang also defended his proposal. He said only a part of foreign reserve will be used for redistribution so that the national financial security will not be threatened.
Although the defense of Mr. Zhang seems unassailable, the proposal is a bit radical. The doubt of Mr. Gao about what the citizens will do with the money is reasonable. At present, most people don't have protection of social security. Education of children, disease, taking care of old parents are all big concerns for them. If these top concerns would not be relieved, consumption would not come as expected. So my opinion is that part of the reserve can be used in extending social safety net to all of the country so that people can consume without concern.
When we can not rely on imports of the US and EU countries, what we can do with our foreign reserve to revive our economy? A hot debate is happening among some Chinese economists. I'd like to brief this debate(一场关于外汇储备用法的激辩).
On the night of Feb. 8, 2009, a hot debate is happening in the north of Ha'erbing. One side is Zhang Weiying, an economists and professor working in Peking University, the other side is Gao Xiqing, the CEO of China Investment Corporation. The focus is whether the foreign reserve should be redistributed to Chinese citizens to expand domestic demands.
Mr. Zhang made an adamant proposal that the big and idle foreign reserve can be partly redistributed to Chinese citizens to increase their purchasing power. And he thought it is helpful for every Chinese citizen to be the holder of the US bonds. Zhang's proposal was strongly refuted by Mr. Gao, who thought that once this accumulated reserve are redistributed to Chinese citizens, the government can't execute central management of foreign exchange, which is considered necessary to resist currency speculation. Mr. Gao said, "the Americans must oppose this proposal. because holding of the US government bonds means support of its credit. If we sell these bonds, the credit of bonds will drop dramatically. So is the expected profit of these bonds. And finally all of the foreign assets we are holding will become paper." Another reason he opposed the proposal is that he thought the citizens would rather deposit received money than consume. Let stimulating economy alone.
Mr. Zhang also defended his proposal. He said only a part of foreign reserve will be used for redistribution so that the national financial security will not be threatened.
Although the defense of Mr. Zhang seems unassailable, the proposal is a bit radical. The doubt of Mr. Gao about what the citizens will do with the money is reasonable. At present, most people don't have protection of social security. Education of children, disease, taking care of old parents are all big concerns for them. If these top concerns would not be relieved, consumption would not come as expected. So my opinion is that part of the reserve can be used in extending social safety net to all of the country so that people can consume without concern.
Sunday, February 8, 2009
the turning point of China
Since the downturn of the US economy, there have been many discussions about whether China will be affected by this credit crunch originated from the US. Now the problem is not whether or not, but how. In the 4th quarter of the last year, many factories and businesses focused on foreign trade were closed and tens of thousands of people are laid off. Annual bonus in most companies were discounted in the last year. Even for those trying to sustain development, business opportunities become rare. It is evident that the China economy are experiencing the shock of financial tsunami. So what we can do to recover?
Actually both foreign and domestic economists and experts noted early that China was developing a very abnormal economy that we can see from the big Sino-US trade surplus. But there was no powerful measures taken to improve the situation. As long as the train of the economy is running, no much attention would be paid. Now the train is slowing down and likely to stop somewhere if nothing will be done. It is a turning point for us to make a transition in the development policy. In the past almost all of the economic accomplishments in China relied on large quantities of exports. And a big foreign reserve is gradually accumulated to the extent that China and the US are in the same boat. In the meantime, the percentage of consumption in GDP have remained low for years. Now we can't depend only on exports anymore. We should shift our focus to domestic demands.
The government has passed a stimulus package plan and some of these money has been invested in infrastructure projects. And countryside is considered the most important area for financial support. Most importantly, an overall social security plan is carrying out to cover all of the people. As long as these measures, long term or short term, are carried out fully, the potential of domestic demands can be unleashed and our economy can become into a more healthy one.
Actually both foreign and domestic economists and experts noted early that China was developing a very abnormal economy that we can see from the big Sino-US trade surplus. But there was no powerful measures taken to improve the situation. As long as the train of the economy is running, no much attention would be paid. Now the train is slowing down and likely to stop somewhere if nothing will be done. It is a turning point for us to make a transition in the development policy. In the past almost all of the economic accomplishments in China relied on large quantities of exports. And a big foreign reserve is gradually accumulated to the extent that China and the US are in the same boat. In the meantime, the percentage of consumption in GDP have remained low for years. Now we can't depend only on exports anymore. We should shift our focus to domestic demands.
The government has passed a stimulus package plan and some of these money has been invested in infrastructure projects. And countryside is considered the most important area for financial support. Most importantly, an overall social security plan is carrying out to cover all of the people. As long as these measures, long term or short term, are carried out fully, the potential of domestic demands can be unleashed and our economy can become into a more healthy one.
Tuesday, December 30, 2008
联通手机邮箱实现Gmail邮件提醒
最开始只是想弄一个Gmail的邮件提醒功能,于是想到了邮件转发,如果Gmail邮件能够转发到联通,然后联通就可以发短信通知我,这还不是通常说的PushMail。PushMail强大多了。于是一阵google,发现联通有个手机邮箱,每个手机用户都可以免费申请一个,不用白不用。立马用手机号注册一个。注意不是所有的联通用户都可以免费的。只有Up新势力是初次使用免费。好了,有一个联通手机邮箱了,这个邮箱的功能之一,就是邮件到达短信提醒,that' exactly what I want.
接下来,就是在我的gmail邮箱上设置一个过滤器,把我比较关注的邮件转发到刚刚申请的联通手机邮箱。写了几个测试邮件,文本邮件和pdf附件都没问题,没试过发图片附件。有一个问题是,如果邮件正文有背景之类的,转发过来整个邮件正文就丢失了。虽然一般不会收到这种邮件,但万一碰上,后果还是很严重的。另外一个问题就是,push下来的email正文需要发N个短信指令才能读完,实在是烦不胜烦。
于是想到这样一个混合方案,用手机邮箱做短信提醒,收到提醒(对新势力用户完全免费的哦!),立马打开Gmail client查邮件。貌似可行。好了,就扯到这里。
接下来,就是在我的gmail邮箱上设置一个过滤器,把我比较关注的邮件转发到刚刚申请的联通手机邮箱。写了几个测试邮件,文本邮件和pdf附件都没问题,没试过发图片附件。有一个问题是,如果邮件正文有背景之类的,转发过来整个邮件正文就丢失了。虽然一般不会收到这种邮件,但万一碰上,后果还是很严重的。另外一个问题就是,push下来的email正文需要发N个短信指令才能读完,实在是烦不胜烦。
于是想到这样一个混合方案,用手机邮箱做短信提醒,收到提醒(对新势力用户完全免费的哦!),立马打开Gmail client查邮件。貌似可行。好了,就扯到这里。
终于搞定联通GPRS访问Gmail
以前好像没怎么玩过手机上网的东西,今天突然心血来潮,搞了个联通的GPRS套餐,开始捣鼓起来。我开通手机上网主要是在没电脑用的时候用来访问Gmail和MSN的,可能skype也会用一下。看新闻什么还是算了,太费劲了。好了,下面开始一天的艰苦旅程。
首先一阵google,让手机终于连上了网。这里有个简单的介绍,照葫芦画瓢就OK了,在此不详述。值得注意的是,这里使用的接入点是uniwap,提供wap浏览和彩信功能。
好了,第一个问题是怎么让手机访问Gmail? Gmail网站上有两种方式:一种是通过WAP访问,另一种是通过IMAP客户端访问。WAP访问貌似简单明了,不需要装任何东西,只要能上网就行。但我想用uniwap来访问却不行,提示“不能建立安全连接”或者“找不到服务器”,我起初怀疑是不是因为uniwap不支持对gmail的https访问呢,反正郁闷半天没敲出个所以然来。暂且先放一边,WAP访问看来不可行,猛然看到Gmail网站有个Gmail client,是个IMAP客户端,下载装上,打开,一样连接不上。我就纳闷这联通怎么就跟Gmail杠上了呢?于是有按照Gmail网站上的提示来设置我手机上内置的邮箱,步骤繁琐,毫不容易设完了,连接,不上。貌似没希望了。
Gmail先放一边,装个MSN再说吧,MSN还是很顺利,直接通过uniwap就能连接,而且界面很nice,不错。信心终于恢复了一点。好了,又一阵google,发现了两个重要情况:一个是有个叫mimo的软件号称可以通过uniwap访问MSN,QQ以及强大的push mail,我不由得想试一把;另一个是uninet,这个很少在成百上千的联通gprs上网设置的tutorial里找到,我也就在一个地方看到了这个东东。好了,接下来,要开始这两个试验了。当然了,uninet最简单了,重新设置一把接入点就行了。设完,再启动本机的内置Email连接,忽然看到哗哗的邮件标题在闪动,我想这把应该是成了。再重启前面装上的Gmail client,也是哗哗的一阵。然后找了个Opera Mini装上,访问Gmail首页,登陆,一切OK,不得不说Opera太Cool了!
好了,到这的时候,今天差不多快结束了,要知道中间为了让我手机跟PC连接起来,费了老半天劲。我下载的最新的Nokia PC Suite 7.1居然不能识别我手机配的USB数据线。试了半天老版的PC套件,终于连上PC。那个mimo的东西改天再玩吧,那么多人推崇,想必应该好使吧。还有一个东西得玩一下:GPRS手机+PC数据线+PC/笔记本通过手机的GPRS上网,其实也有好多人玩过,自己试验一下更有意思(PS: 好了,已经试验过了,速度在6KBS左右,那叫一个慢啊,还贵,不到紧急情况还是不用了)。
快写完了,突然发现,有个问题还没说,那个uninet就叫那个是个啥东东呢!一阵google,发现是联通移动数据业务的一个王牌,165拨号就是上的uninet网络,主要是访问Internet。uniwap功能比较弱,只支持wap网页浏览和彩信。哪个好使当然不用说了,不过联通的网站上确实没说通过GPRS连uninet。Anyway,哪个好用用那个了。
首先一阵google,让手机终于连上了网。这里有个简单的介绍,照葫芦画瓢就OK了,在此不详述。值得注意的是,这里使用的接入点是uniwap,提供wap浏览和彩信功能。
好了,第一个问题是怎么让手机访问Gmail? Gmail网站上有两种方式:一种是通过WAP访问,另一种是通过IMAP客户端访问。WAP访问貌似简单明了,不需要装任何东西,只要能上网就行。但我想用uniwap来访问却不行,提示“不能建立安全连接”或者“找不到服务器”,我起初怀疑是不是因为uniwap不支持对gmail的https访问呢,反正郁闷半天没敲出个所以然来。暂且先放一边,WAP访问看来不可行,猛然看到Gmail网站有个Gmail client,是个IMAP客户端,下载装上,打开,一样连接不上。我就纳闷这联通怎么就跟Gmail杠上了呢?于是有按照Gmail网站上的提示来设置我手机上内置的邮箱,步骤繁琐,毫不容易设完了,连接,不上。貌似没希望了。
Gmail先放一边,装个MSN再说吧,MSN还是很顺利,直接通过uniwap就能连接,而且界面很nice,不错。信心终于恢复了一点。好了,又一阵google,发现了两个重要情况:一个是有个叫mimo的软件号称可以通过uniwap访问MSN,QQ以及强大的push mail,我不由得想试一把;另一个是uninet,这个很少在成百上千的联通gprs上网设置的tutorial里找到,我也就在一个地方看到了这个东东。好了,接下来,要开始这两个试验了。当然了,uninet最简单了,重新设置一把接入点就行了。设完,再启动本机的内置Email连接,忽然看到哗哗的邮件标题在闪动,我想这把应该是成了。再重启前面装上的Gmail client,也是哗哗的一阵。然后找了个Opera Mini装上,访问Gmail首页,登陆,一切OK,不得不说Opera太Cool了!
好了,到这的时候,今天差不多快结束了,要知道中间为了让我手机跟PC连接起来,费了老半天劲。我下载的最新的Nokia PC Suite 7.1居然不能识别我手机配的USB数据线。试了半天老版的PC套件,终于连上PC。那个mimo的东西改天再玩吧,那么多人推崇,想必应该好使吧。还有一个东西得玩一下:GPRS手机+PC数据线+PC/笔记本通过手机的GPRS上网,其实也有好多人玩过,自己试验一下更有意思(PS: 好了,已经试验过了,速度在6KBS左右,那叫一个慢啊,还贵,不到紧急情况还是不用了)。
快写完了,突然发现,有个问题还没说,那个uninet就叫那个是个啥东东呢!一阵google,发现是联通移动数据业务的一个王牌,165拨号就是上的uninet网络,主要是访问Internet。uniwap功能比较弱,只支持wap网页浏览和彩信。哪个好使当然不用说了,不过联通的网站上确实没说通过GPRS连uninet。Anyway,哪个好用用那个了。
Thursday, December 25, 2008
notes about MOF and UML
I just read an old post(MOF 4 layers) about the mapping between UML and MOF. However, I'd like to post my idea about UML mapping to MOF 4 layers.
As a reminder, MOF 4 layers structure from that post is pasted here.
* Level M0: User Object Layer (Instances)
* Level M1: Model (Domain Specific Language)
* Level M2: Meta-Model (Schema description Language)
* Level M3: Meta-Meta-Model (The Schema of the Schema)
And here is an architecture image about MOF:

The basic thinking is think of each layer as instantiation of the layer above. So I think it works this way:
* Layer M0: specific instances of model diagrams, e.g. a book named "UML distilled"
* Layer M1: UML model diagrams we drawed when we do modeling, e.g. e-bookshop class diagrams and use case diagrams. Actually it is the equivalent of C source file.
* Layer M2: UML meta model, e.g. model element specified in UML, class, interface, association, generalization,property,method, component and so on. It is the equivalent of C syntax.
* Layer M3: UML meta meta model, maybe its basic model elements is entity and relationship. It is the equivalent of syntax definition specification like EBNF.
As a reminder, MOF 4 layers structure from that post is pasted here.
* Level M0: User Object Layer (Instances)
* Level M1: Model (Domain Specific Language)
* Level M2: Meta-Model (Schema description Language)
* Level M3: Meta-Meta-Model (The Schema of the Schema)
And here is an architecture image about MOF:
The basic thinking is think of each layer as instantiation of the layer above. So I think it works this way:
* Layer M0: specific instances of model diagrams, e.g. a book named "UML distilled"
* Layer M1: UML model diagrams we drawed when we do modeling, e.g. e-bookshop class diagrams and use case diagrams. Actually it is the equivalent of C source file.
* Layer M2: UML meta model, e.g. model element specified in UML, class, interface, association, generalization,property,method, component and so on. It is the equivalent of C syntax.
* Layer M3: UML meta meta model, maybe its basic model elements is entity and relationship. It is the equivalent of syntax definition specification like EBNF.
Wednesday, December 24, 2008
software reuse: how?
It is a short summary of great essay on software reuse by Schmidt(reuse lessons).
1. impediments
organizational
economic
administrative
political
psychological
2. prerequisites
competitive market
complex application domain
corporate culture and development process
reuse magnet: open source with short feedback loop
leadership and expertise of skilled architects and developers
3. what we can do?
adopt iterative development process to grow reusable assets incrementally
maintain a close feedback loop between component developers and application developers
buy middleware rather than build in house: don't reinvent the wheel
build on architecture rather than on specific technology: vendor neutral
one dimensional thinking never works
reward incentives for reuse
continuous learning
keep faith
1. impediments
organizational
economic
administrative
political
psychological
2. prerequisites
competitive market
complex application domain
corporate culture and development process
reuse magnet: open source with short feedback loop
leadership and expertise of skilled architects and developers
3. what we can do?
adopt iterative development process to grow reusable assets incrementally
maintain a close feedback loop between component developers and application developers
buy middleware rather than build in house: don't reinvent the wheel
build on architecture rather than on specific technology: vendor neutral
one dimensional thinking never works
reward incentives for reuse
continuous learning
keep faith
Subscribe to:
Posts (Atom)