2009年4月17日星期五

Use Apache Synapse as web service proxy

This is a power configuration tool to mock and test web service.

2009年2月25日星期三

edit on android

Some site like Google Reader has cared this device. Some not, like this site.
Should we need to refactory site? Or write a new client expecially for specific application. Some like write a offline blog writter. Because here when javascript is complex, android cannot render correctly.

2008年12月26日星期五

CouchDB初次体验

我是在Ubuntu上面安装的,还算顺利,几个命令行就搞定,Windows下面可能得花些功夫。
启动Server后,它有个控制台,Web界面的,功能虽不多,但是界面做的很专业,不知道采用的那个theme,看了下web的代码,用了不少jquery的东西。
对数据库的管理方式让人很容易联想到Google App Base,可以自由的添加新的field。访问客户端的语言有很多种选择,我用java试了下,没遇到什么困难。
乍看这东西没啥神秘,不过是一个大的hashmap,每个条目是一个document。有什么用途呢?
SimpleDB也是采用类似的方式,这些大厂商这样做应该有自己的目的吧。

2008年7月29日星期二

MySpace and Portlet

MySpace looks some like Portlet. Is it just like at face?
MySpace has a MySpace Developer Platform. What is it?

2008年7月8日星期二

different framework, different web page

the Struts treats a page as a Command;
the Portlet treats a page as a Window;
the JSF treats a page as a lot of Components;
the Spring Web Flow treats a lot of pages as a Flow;
the Tapestry treats a page as a Java class

2008年7月3日星期四

JSF Custom Compoment development tips

1. JSP taglib
In JSF, the scriplet like "#{RequestBean1.name}" is treated as a ValueExpression field in tab class. The corresponding tab lib definition file should nests the attribute type with deferred-value.

And also in tld file, jsp-version 2.1 element should be included. If this scriplet is missed, some container like Tomcat 6.0.16 will take this tag as generial tag and if we invoke isLiteralText() on the ValueExpression object, true will return. It was not excepted. But the GlassFish V2 ignored this and took 2.1 as default.

2. Why setProperties() in tag handler java is not invoked?
You should define all property of jsf component java in faces-config.xml. Sometimes it looks like that a attribute is defined twice: one in tld, one in faces-config.xml. JSF Template can make these things easy by generating all configuration file. In order to archive this, it introduces some anonations.

3. Why did some data shown on page disappear after re-loading the page?
implement the saveState/restoreState method.

2008年5月12日星期一

Ubuntu 8.04 使用感受

前些天试了下Ubuntu 8.04,有些感触。
首先,安装。我用的是硬盘安装的方式,可以参考这里。主要是在ubuntu.com找到对应的内核文件。最后MBR要装在linux的主分区上。由于vista sp1采用了新的启动方式,没有了boot.ini文件,要多重启动,需要额外的程序:EasyBCD,这个小工具可以重写MBR来引导多个OS,使用起来还是很方便的。

启动后,主题上,ubuntu变化不大,还是老样子。接上我的ipod,系统可以自动认出,可以关联到相应的程序,运行,提示缺少mp3 plug,然后自动安装,这样就可以播放MP3了,而且mp3 tag中的中文可以正常的显示,这在我的系统的语言是en的前提下,较之以前,是一个很大的进步了。

对于字体,现在相对于以前,有所改进。但是跟vista下的cleartype相比,差距还是蛮明显的。

系统自带Firefox 3.0 beta,所有功能跟vista下的一致。我常用的插件也是可以无碍的使用,可以看出firefox大大的提高了linux的接受程度。和java一样,一个容器就是一个平台,催生了一系列的相关软件。