Blog System « Tonny Xu
...Life is like a box of chocolates,
you never know what you’re gonna get...
» Blog System «

I don’t want to write one post twice and post them to Live space and my own wordpress system one by one. Is there any good solution to write once and post once, but post to both 2 blog system?

Further more, if it could be implemented by Windows Live Writer, it could be the best plan.

Please tell me if you have any good solution.

Thanks in advance.

Comments

Oh, my god!

I can’t believe it! But it’s true. CNN confirmed it. He was only 50!

A Los Angeles fire official told CNN that paramedics arrived at Michael Jackson's home after a 911 call.Michael Jackson arrives at UCLA Medical Center on Thursday.

I love you, Michael! Be at peace in heaven.

Comments

这次是在iPhone上写Blog了。其实在手机上写东西真的不方便,我感觉以后要么语音识别到了一个相当高的水平,可以直接录音然后变成文字,要么就直接上语音日志,不过搜索引擎无法识别语音数据,所以想成大气候还是比较困难的。

iPhone上的手写输入还不错,识别率挺高的,但前提是你的笔划顺序没有错。许多人可能会比较郁闷。另外一个问题是联想的能力太弱了,其本上四个选项没有太大的作用。那么以后会不会出现连续手写的输入法呢?感觉词汇的输入比单字要准确很多。

其它感觉还不错!主要是移动互联网真的是未来的趋势!

今天开始我们的讲题,我想请大家先回答我一个问题,从去年年底以后,中央政府的中央经济工作会议提出:宏观调控的思维。就是从过去适度紧缩到真正的紧缩,我再请大家想一想,为什么去年5月份到11月份,股价涨到6千点,而你竟然不能赚钱,再往回推,到底什么因素造成06—07年股价大涨,再一个问题11月份之后股价大跌,到3千点,又是什么因素?你的子女大学毕业找不到事做,为什么?楼价大涨,越宏观调控越涨,还有你今天吃饭,咬一口猪肉,又要多付钱,这是为什么?这是我今天要和大家谈经济情况的本质问题,各位看我们内地各位专家学者的发言,都说,通货膨胀,股市泡沫,楼市泡沫都是流动性过盛,就是我们这个社会的钱太多了,我们这个钱买产品,通货膨胀,买楼,就是楼市泡沫,买股票就是股市泼墨。政府为了减少泡沫现象,控制通货膨胀,一直到我今天讲话这一刻,所产生的政策还是认为流动性过盛,如果按照美国宏观经济学大学一年级的教科书教导我们,在这个流动性过剩的情况之下,政府应该提高利率,提高银行的存款储备金,可以同时控制通货膨胀、楼价和股价。非常好。我相信这么讲大家都听懂了。

今天,既然有幸,齐聚一堂,可以给各位最好的一个礼物那就是,我送给各位一根鱼竿,或者一张鱼网,我有把握在今天5点钟之后,你们在座的每一个人都可以成为最好的经济学家。各位,如果流动性过剩的认为是错的怎么办?我们讲偏激的话,如果是错的怎么办?如果是错的话,那么通货膨胀也避免不了,楼价照涨。到底什么原因造成我前面一开头告诉各位的所有现象?清楚的告诉各位,不是流动性过剩,我认为我们对于经济的诊断,基本错误。目前的现象,不是由于流动性过剩,是由于什么?这个话题就有意思了。最近,1、2、3月份,央行所公布的数据显示,我们这个金融体系的广义货币以及银行信贷额的增长率不跌反升,幅度高大16—18%,我请问各位在座的民营家族经济企业家,你拿到这个钱了吗?还有,你们感受到经济过热吗?那么这个钱,我们民营企业家拿不到,去了哪里呢呢?尤其是在常州,从事制造业的企业家,你回答我,你的日子是不是一天比一天的难过?你什么时候感受到经济过热?你跟我讲,如果经济真是过热,你的日子应该是越来越好啊,为什么现在越来越糟糕呢?我们以劳动密集型企业为例,2006年利润率还是5%以上,08年基本上是负的,你的好日子在哪里呢?没感觉。可是政府一再宣布,经济过热,到底怎么回事?我们大家,把中国经济看的太简单了。我如果真的讲这门课的话,我可以讲5个小时讲中国经济,而不是一句话流动性过剩。我可以告诉各位,就像在座各位民营企业家所感受的一样,中国经济根本就不热,反而是萧条。但是,另外一面,你看到各地政府在这里修桥铺路,这个部门似乎很热,因此,我的结论是什么呢?中国经济不是过热,也不是过冷,而是同时过热同时过冷的特殊的二元经济现象。

哪些部门过热?和地方政府推动GDP的有关的部门是过热的。比如说政绩工程、形象工程、钢铁、水泥、房地产、银行这些部门是过热的,哪些是过冷的呢?大部分的民营企业、尤其是制造业更冷,这种冷热同时存在的经济是全世界独一无二,中国仅有。我们相信在其他地方找不到的。在这种二元经济环境之下,是一个什么必然结果呢?我最深的感触,我最近参加这类论坛最多的,而且是地产商所办的论坛最多的。我们都可以从二元经济得到清楚的解释。大家想想看,如果我们经济体系是二元经济,而不是所谓的流动性过剩,你想想,下一步怎么办?政府提高利率,提高银行存款准备金率,他原先的目的是要收回流动性,收回过多的货币,告诉各位,在二元经济之下,宏观调控政策基本失效。这个话什么意思?

政府的宏观调控立刻产生三个效果。

Read the rest of this entry »

When we open the Eclipse, a splash screen is shown. What if we want to change it? OK, follow me.

Step 1: Prepare your own splash picture, as I just put some words on it. Like the following one.

splash(TOTO)

The picture must be formatted as BMP file and named splash.bmp.

Step 2: Copy this file to <Eclipse installation folder>\plugins\org.eclipse.platform_3.3.3.r33x_r20080129.
Note that the platform folder is always changed as eclipse’s version up. so just find the folder start with org.eclipse.platform, it will be OK. Overwrite the original splash.bmp file, your will get your own splash screen shown on the startup of Eclipse.

Be Careful, if you change the size of splash picture, you might not be able to see those start up information and progress bar.

Changing the splash window is a simple step, Eclipse is aim to be a platform, so anyone who want to customize his IDE could use it as a platform. (Here is the official docs for branding your application based on Eclipse.)

ふりがなついている文書ですが、直接にコピーできないので、画像としてアップロードしています。検索エンジンに対しては友好ではない、しかし、便利ですから、仕方ないわよ!

※実は半年前に天声人語の文書を貼り付けました、そのとき、自分でふりがなと翻訳をやっていたので、時間がたくさんかかりました。毎日4時間の時間は保障できないので、続けられなくなる。

天声人語 2007年11月12日

文章の翻訳はやりたいですけど、しかし、時間があまりないわ! そのままにしろう!

CCTV.com-杭州荣膺最具幸福感城市榜首 宁波台州榜上有名

[View this article which also posted in MSN space]

不管CCTV这次报道是否存在掺水成分,不管这个评奖的含金量,以我在杭州2年的生活经历来说,杭州是我到过的有限的几个地方中,生活最惬意的地方。

初到杭州,橘子开车带我转了西湖风景区,当时就被杨公堤迷上了。如此的林荫大道,如此的起伏跌宕,如此山水秀色,杭州就是我要来的地方了。后来工作以后,经常需要坐527路公交车到城里兜一圈,恰好527就是沿着钱江一桥->虎跑->杨公堤->浙大一线跑动,每次坐车,不论是有座位还是没有座位,总能在窗外的景色中找到一丝宁静,一份安详,以至于我有的时候来回做527就为了体验这份感觉。

后来去九溪爬山,穿过五云峰,行走在山间的茶园中,眺望着六合塔,钱江一桥,看看龙井山,看看梅家坞,仿佛行走在云间,五座山峰连绵不绝,果然不愧五云峰的大名。从五云峰可以走到很多的地方,比如可以去龙井山,还可以去满觉陇,杨梅岭等等。还可以晃悠到茅家埠,这是一个美的让人窒息的小地方。茅家埠里没有九寨那种奇山异水,也没有江南小镇那种古色古香,但是当你置身于茅家埠的时候,你会觉得这里很漂亮,就像世外桃源一样。事实上,这里圈起来了西湖的一小部分,周围用高大的水杉包围着,旁边是两个赫赫有名的地方,一个叫做西湖国宾馆,一个叫做杭州花圃。在茅家埠,经常可以看到训练中的皮划艇,如同一只银箭划过水面,另外还可以看见一对又一对的新郎新娘在这里留下永恒的记忆,由此可见茅家埠在杭州人心中的地位。

走过杨公堤,可以经过空军疗养院,丁家山风景区,同时到达苏堤的南端。这里是另外一个小桃源,太子湾公园。这里几乎就是一个婚礼的大院,因为美丽的景色让每一对新人都想和太子湾一起分享。从太子湾出来,就可以向雷锋塔进军了,沿途的风景吸引了几乎每一个到杭州来的游客,这里甚至有专用的临时红绿灯,就是为了照顾高峰时间,穿越马路的游客。

雷锋塔是一个传奇故事的寄托,这里流传着翻修雷峰塔的时候真的跑出来一条小白蛇的传说,你可以不上去,但是你不可以不来这里看看它。雷锋塔的东边就是南山路,这条路名被用来标识杭州的小资生活,只要是和小资靠边的,都将南山路作为生活中不可或缺的一部分。这里有中国美院,有Porsche,有Ferrari,有酒吧,有英式下午茶,有日本料理,有印度咖喱,有韩国饭店,有两岸咖啡。你可以从早上7点起床,在体验了柳浪闻莺的绝美景色后,在一茶一坐享用早点,然后在中国美院的周围探索字画珍品,在天度享用印度午餐,然后去和Porsche的老板唠嗑,顺便品尝一下Ferrari上面的英式下午茶,然后在小瀛洲上和杭州人一边品尝龙井茶,一边搓两圈麻将,在傍晚时分,踏上菲乐的大门,品尝一下番茄湖蟹,别有一番味道。晚膳过后,该是娱乐时间了,不论是震耳欲聋的Disco还是慢摇吧,总有适合你的酒吧在南山路上等你。路上的路灯将夜晚渲染的暧昧万分,小资的你可以将暧昧持续到凌晨2点。

离开柳浪闻莺不远,就是湖滨路了,这里集中着Hyatt大酒店,Omiga,Armani,还有Starbucks, Häagen-Dazs,还有音乐喷泉。坐在喷泉的边上,让细细的水珠随着音乐轻抚着脸庞,望着远处宝俶山上的灯光,你会在不知不觉中沉醉。

湖滨路连接着断桥残雪,沿着西湖这条起伏的腰身,就可以到达传说中的断桥了,那里可是白娘子和许仙的相逢之处哦。无论你选择走白堤,还是选择走北山路,你都可以荡漾在这片充满了浓郁古典味道的爱情圣地了。苏堤在适当的地方再次连接了北山路和太子湾公园。北山路就仿佛是王家卫导演镜头里那某个巷子,配上一点缠绵的音乐,这里是让你心情浓郁起来的一个地方。

因为有了西湖,杭州城里的景色糅合了现代奔放,但是却不像上海那样张扬;因为有了西湖,杭州的生活紧张之余还有轻松和惬意;因为有了西湖,杭州市当之无愧的全球最佳人居城市,因为有了西湖,杭州当选最具幸福感的城市榜首,我想也是当之无愧的吧。

Today, a little bit difficult problem was resolved. The original question is like this:

  • Give a page which mainly contains 2 DIV areas and both have a table element inside it. Each of the DIV tag are set to hidden scroll bar, and these 2 tables are exactly have the same setting(cellspacing, cellpadding, etc. ), so that’s making these 2 tables looks like an excel file which have a freezeed  bar.
  • There are many select boxes and check boxes in these 2 tables, and each element has a tab index value assigned, so that, tab key will navigate element between 2 tables.
  • There is another div element to control the scrolling status and make them scroll at the same time and scroll to same place.(by capture onScroll event.)
  • The problems is when you navigate tab from element to element , the synchronize scroll will be failed.

I tried a lot of ways, and finally find out, the problem lies on the default focus properties deal by Browser itself, and the browser takes control of how to show the element no matter how you set its position properties. And as most of the web programmer will do, we choose to use onfocus event, and can not get the right thing done.

The way to resolve this problem is using another different event : onbeforeactivate

Here is the demo file, you can download it and try it yourself. May be you have a better way to resolve this problem, please let me know: tonny.xu[a]gmail.com

[Download the demo page which works well]

[Download the demo page which doesn't work as we thought]

Struts 2.0.9 bundle shipped with a sample named show-case, if you want to use it in your Eclipse Europa, you need to add a Maven plugin for Eclipse Europa. Please visit this page:

After installed this plugin, you can read a project which shipped with pom.xml, but not normally build.xml. Please follow the steps:

  • Menu<File> ⇒ <Import…> ⇒ General[Maven 2 Project] ⇒ [Select the pom.xml File]

It will really cost you some time, maybe you can drink 2 cups+ coffee before you get your maven project work in your Eclipse. Have Fun.

Besides, because I installed some server adapters before I install Maven 2 Plugin, I had to reinstall Europa before I can use Maven plugin. So, I got a basic rule for eclipse user: Only install the plugin when you need it!

And moreover, the project you imported from Maven to Europa, you need to tweak a lot of configurations, and I suggest you just configure it manual than use Maven plugin.

The most simplest way to use Ant build file. ^_^

Today, I was preparing the development environment for the new coming project, after installed Eclipse Europa and Glassfish, I need to combine these 2 things together so that I can continue my job.

As usual, I clicked the link below, but this time, I can not find the Glassfish server adapter.

(Click the "Download additional server adapters")008

(Though you can see that I have added GlassFish server adapter, but I will show you where is wrong.)

After I clicked the link, it automatically searching and installing available server adapters for me. My company has a proxy server which is opened on port 8080 and can both serve HTTP and HTTPS, so I setup the proxy server for Eclipse, and I found Geronimo very fast, but, BUT, I can not find this god damn GlassFish server adapter!!

WHY? I have checked the GlassFish project home page, and they said, Europa will search GlassFish’s web site for the latest available plugin automatically, but why it don’t show itself to my Europa??? and at the same time, BEA’s server adapter is also missing from the available list.

Then I want to take a deep look into the Eclipse to find out whether those GlassFish guys really put their Web site URL to Europa, but to tell the truth, it’s not a easy work. I can not find out where they configure the necessary URL to search for. Then after I wasted few time to redo it again, Finally, Suddenly, I found out why!

BECAUSE Some sites used a SSL connection for their god damn update URL, and I didn’t configured to use proxy for SSL connection! While others are all using simply HTTP connection!

009

DAMN IT!

So, next time, don’t forget to set up your SSL connection proxy!