Eclipse使用者地图

10:24上午 七月 28, 2008 in category Games by nile black

http://www.eclipse.org/ganymede/map.php
Join the Eclipse global community. Write a blog, record a video/podcast, or leave a message on how you are using the new Ganymede release and have an opportunity to win cool Eclipse stuff. Full details here.
真的看我我的名字了.

Nile Black

Comments[0]

[答傻姑]我的文件为什么只写了一半?

02:16下午 七月 18, 2008 in category General by nile black

某日,A君写了一段程序,在经过一段复杂的逻辑,复杂的运算之后,把结果写入一个文件中,不过每次发现文件总是写了一半,最后的总是少了一段……

原来每次写完文件,都没有flush。^_^!

Comments[0]

[答傻姑]如何解决tapestry5中的中文提交乱码问题

05:10下午 七月 16, 2008 in category $entry.category.name by nile black

在Appmodule中添加一下两个方法,并全部文件编码改用UTF-8

public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration,
                                       @InjectService("Utf8Filter") final RequestFilter utf8Filter) {
    configuration.add("Utf8Filter", utf8Filter); // handle UTF-8
  }


  public RequestFilter buildUtf8Filter(
      @InjectService("RequestGlobals") final RequestGlobals requestGlobals) {
    return new RequestFilter() {
      public boolean service(Request request, Response response, RequestHandler handler)
          throws IOException {
        requestGlobals.getHTTPServletRequest().setCharacterEncoding("UTF-8");
        return handler.service(request, response);
      }
    };
  }

Comments[0]

让BeanKeeper支持Enum

10:40下午 七月 12, 2008 in category General by nile black

Beankeeper是一个我非常喜欢的应用,现在不支持java5中的Enum类型.Opensource就是好,有不满足的地方只需要自己修改就可以了.这里简单记录一下如何修改.[Read More]

Comments[0]