2009年8月10日星期一

1248375768_HvlgQr


1248375768_HvlgQr
Originally uploaded by tony_wangx
It's the first time to post weblog with flickr.

Flickr

This is a test post from flickr, a fancy photo sharing thing.

2009年5月13日星期三

Java 数字浮点型与chat之间的转化(int or float convert into char)

见这行代码:
char c=(char)(0.7+'a');
System.out.println(c);
打印的结果将是a,所以如果数字类型强行转化为char类型时,会砍掉小数点后面的小数。再转化,而不是四舍五入。

2009年5月4日星期一

用7种语言实现的数据结构与算法

有很多人在找数据结构方面的资料吧。这个可以看看,很不错。
用7种语言实现的数据结构与算法

在Ext GridPanel中设置某一列不参与分组的办法

假设你已经有一个包含分组的Grid,在其设置column的地方设置属性groupable:false。
见代码:
           {
                id: 'cost',
                header: "Cost",
                width: 20,
                sortable: false,
                groupable: false,
                dataIndex: 'cost',
                summaryType:'totalCost',
                summaryRenderer: Ext.util.Format.usMoney
            } 

    2009年5月2日星期六

    mvn无法安装jpa(jta)的解决办法 Jta1.0.1B no maven

    先去http://java.sun.com/javaee/technologies/jta/index.jsp手动下载classes文件。
    之后放到本地的一个本件家中。
    运行mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
    之后再在项目中运行mvn install
    ok、