2009年5月27日星期三

View Google Reader in Android Browser through Yahoo Pipes

I am fan of Google Reader. So when I got a Android G1 device, soon I visited the site through it. Now I can view blogs when I was on the traffic to office. It is cool. But one problem I encountered is the font size is too small to read comfortably. I have tried to set the font size to "large" in browser setting and it works at some common page like www.google.com but not Reader. It looks that Google Reder did some optimize for mobile device(It designed for iPhone at first) and the browser can't adjust itself on font size.



I think I just to want to make the main content's font of blog item bigger.

Greasemonkey is power tool to customize web page. I tried OilCan - Greasymonkey on Android browser. It has an innovative idea but still at beta phase. Google chromium has supported it but at Android chrome lite should not support it at now.

Yahoo Pipes fits this case perfectly. Look below pipe flow:

It was simple: just surround the blog content with a font size modification. Then it works. You can view this pipe from here. Thanks Yahoo to create this great tool. The web UI is impressed and intuitive for building a flow. All operations can be finished by drag & drop or drop-box.

More on this, Pipes can be seen as cloud computing. It is running at Yahoo's server. Different with Google App Engine which is sophisticated and for programmer, it is for general user who does not need to have programming experience. Of course it has less function then full feature language. Its input just accepts RSS and others feeds defined in advance. The more inputs type, the more powerful Pipes becomes.


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.