发布新日志

  • require 'gruff'报错解决办法。

    2009-03-26 19:10:32

     

    用gruff图形包时,还需要安装RMagick,下载地址:http://rubyforge.org/frs/?group_id=12&release_id=8170,加压后,安装ImageMagick。然后命令行到加压后的目录,安装rmagick,然后在环境变量中加入C:\ruby\lib\ruby\gems\1.8\gems\rmagick-1.14.1-win32(rmagick安装目录),这样在ruby中用require 'gruff'就不回报错了。

  • rails database.yml配置

    2009-03-26 14:17:48

     
    development:
      adapter: mysql
      database: mybook
      host: localhost
      password: 
      pool: 5
      timeout: 5000

    # Warning: The database defined as "test" will be erased and
    # re-generated from your development database when you run "rake".
    # Do not set this db to the same as development or production.
    test:
      adapter: mysql
      database: mybook
      host: localhost
      password: 
      pool: 5
      timeout: 5000
     
    production:
      adapter: mysql
      database: mybook
      host: localhost
      password: 
      pool: 5
      timeout: 5000

    冒号后需加空格,不如服务器起不来

    安装mysql驱动,gem install mysql;

    windows需拷贝mysql安装目录下的libmySQL.dll到windows\system32下。

  • vbs怎么把oracle查询结果为automation对象转化成整型

    2009-03-02 14:16:40

       vbs连接oracle并执行查询,由于vbs是弱语言,在oracle中为number类型的字段,在vbs的结果集中,取字段中的一个数据用isobjct判断,发现返回true,为automation对象类型。这样就不能用四则运算操作结果集中的数据。
       但只要在需要操作的数据前加上trim(),就可以将automation对象类型转化成number类型,用isnumeric()判断,返回true,这样就可以用加减乘除啦~~~~~。

  • RecordSet

    2009-02-24 15:53:06

        在RecordSet组件中,常用的属性和方法有:
        rs.Fields.Count:RecordSet对象字段数。
       rs(i).Name:第i个字段的名称,i为0至rs.Fields.Count-1
      rs(i):第i个字段的数据,i为0至rs.Fields.Count-1
      rs("字段名"):指定字段的数据。
      rs.Record.Count:数据记录总数。
      rs.EOF:是否最后一条记录。
      rs.MoveFirst:指向第一条记录。
      rs.MoveLast:指向最后一条记录。
      rs.MovePrev:指向上一条记录。
      rs.MoveNext:指向下一条记录。
      rs.GetRows:将数据放入数组中。
      rs.Properties.Count:ADO的ResultSet或Connection的属性个数。
      rs.Properties(item).Name:ADO的ResultSet或Connection的名称。
      rs.Properties:ADO的ResultSet或Connection的值。
      rs.close():关闭连接。

     

  • atof函数

    2009-02-12 13:20:30

    atof reads the initial portion of the string only, by stopping at the first non-numerical character. The function atof, as with all functions that do not return an integer, must be explicitly declared in Vugen scrīpts.

      在用一些不是返回整型的函数,如atof,atol,必须显式声明。

  • sitescope监控oracle

    2009-02-12 11:21:53

       根据sitescope帮助文档,需要把oracle的jdbc 驱动classes12.zip放到<SiteScope root directory>\WEB-INF\lib ,尝试了一下,不成功。把jdbc 驱动放到<SiteScope root directory>\java\lib\ext。尝试连接测试,成功。 另需注意的是:数据库用户名必须是DBA。

       sitescope监控mysql要把jdbc驱动放在<SiteScope root directory>\WEB-INF\lib下。

数据统计

  • 访问量: 2754
  • 日志数: 6
  • 建立时间: 2009-02-11
  • 更新时间: 2009-03-26

RSS订阅

Open Toolbar