• 最近访问ObjectWeb都不太稳定,而且要下载上面的软件还要填表,填完后提交就死了,又要重填,有时要填几次才能下载到。分析后发现,可以直接去到镜像站点下载的,不用填表。如要下载Shark,直接去到http://download.zh.forge.objectweb.org/shark/下载就可以了。

    不过目前CVS还是无法更新。
  • 首先修改%windir%\my.ini,增加:
    引用:

    [client]
    default-character-set=gbk

    mysql自带的东东都是在%windir%\my.ini设置,包括命令行控制台)
    其次,在配置ODBC源时,选上Read Options From my.cnf,如下图,即可。

  • 2005年07月21日

    SQL Server安装问题

    Tag:DB

    You receive a "Command line option syntax error" error message when you install SQL Server 2000 SP3

    今天安装SQL Server的时候出现了这个问题,之前记得在服务器上成功安装过的。

    google之,发现MS已经有解释了(微软的文档功夫还是相当不错的,就是你总也得不到问题的真正原因):
    http://support.microsoft.com/?kbid=841487

    引用:
    You run the SQL Server 2000 SP3 Setup.bat file from a folder that contains double-byte character set (DBCS) characters in the folder name.

    也就是在安装目录里不能有中文。

    奇怪的是:以前也是在服务器上安装的,安装源也没有移动过,不知道怎么就有这个问题了。

    Anyway,SQL Server还是装上了。

  • 2005年07月16日

    产生GUID的Java工具类

    Tag:Java
    我们现在项目用的产生GUID的工具类来自http://www.doomdark.org/doomdark/proj/jug,不过看的源码多了,发现产生GUID的代码满大街都是,随手拿起一个框架之类的,都有自己的工具类产生UUID,如Appfuse的RandomGUID,jodd(生不逢时、定位不准的poor guy,其实有些代码还是不错的)UuidGenerator等等
  • 早上在JavaEye看到Robbin说:
    引用:

    DBCP的bug非常多,因此Hibernate3已经不再支持DBCP连接池,而推荐使用C3PO。建议你更换数据库连接池。


    然后跑去Hibernate官方论坛看,果然,在Please migrate away from DBCP看到Gavin说:
    引用:
    Guys, after many problems with DBCP, I have decided to remove built-in support for DBCP from Hibernate3, and deprecate DBCP in Hibernate 2.1. I advise everyone to migrate away from DBCP to something that actually works, like C3P0 or Proxool.

    (If you /must/ use DBCP, you can always write your own connection provider.)

    Actually, it is probably about time we remove any remaining dependencies to Apache commons stuff, since historically they have caused just /so/ much trouble. The only Apache things that do seem to work very well are Ant and log4j. Even commons-logging is a PIA, especially in Tomcat.


    这个台湾Guy也是如此建议
    引用:
    挑選觀念: 是否認為 jakarta 是唯一選擇
    是的話, 採用 commons-dbcp ; 不是的話, 採用 proxool / c3p0


    Jakarta-commons社区对Hibernate官方不支持DBCP的应对:
    http://wiki.apache.org/jakarta-commons/DBCP/Hibernate