2002 年 8 月

PRADO v2.0RC发布

PRADO v2.0RC发布,还不是稳定版本,但是可以尝试一下.更新如下:
[@more@]

- Added I18N, L10N support (with several relevant components) - Added TDataGrid, TTable, TDataList, TWizard, TRequiredListValidator controls - Implemented viewstate manager handler - Implemented enumerable property type - Changed the way of including a parameter file within another one - Added EncodeText property to controls with Text property - The parameter of TComponent::removeChild() is […]

评论

好久没玩flash

抓紧时间操练了一把,用下面代码作了一个粉简单的坦克控制:)
PLAIN TEXT
ACTIONSCRIPT:

class Move extends MovieClip {

 

 private var speed = 3;

 private var xMin = 0;

 private var yMin = 0;

 private var xMax = 400;

 private var yMax = 400;

 

 public function onLoad(){

  Key.addListener(this);

  this.xMin += this._width/2;

  this.xMax -= this._width/2;

  this.yMin += this._height/2;

  this.yMax -= this._height/2;

 }

 

 public function onEnterFrame(){

  if( this._x <this.xMin ){

   this._x = this.xMin;

  }

  if( this._x> this.xMax ){

  [...]

评论

php代码美化程序PHP_Beautifier试用手记

在pear的rss列表上看到了PHP_Beautifier 0.1.1 beta发布,便下载回来试用:>>pear install PHP_Beautifier...............................................
顺利完成,看了下帮助,还带有命令行工具,方便:

D:xamppphp>php_beautifier --help
Usage: php_beautifier [options] and/or can be '-', which means stdin/stdout. you can use ? and * for batch processing can be a dir (ending with [...]

评论

大文件上传且带进度条的php解决方案

以下是用Pear::HTML_Progress实现大文件上传的例子
HTTP 1 - Upload files with your web browser to a web server. Single page (using frames).
HTTP 2 - Upload files with your web browser to a web server. Progress meter in a popup.
HTTP 3 - Mixed field Upload. Single page (using frames).
HTTP 4 - Upload files with your web browser to [...]

评论

ERROR 1114: The table ‘big_table_a’ is full

在新闻组上看到的关于mysql cluster的问题:
[@more@]

At us is 1 MGM node and 4 DB nodes!
Each of 5 computers have 1Gb operative memory!
We have created 3 SQL a file (everyone on 900Mb)
each of which has consisted of 10 000 000 lines

insert into big_table_a set a1='213123', a2='123123', a3='213124',
a4='234234';
insert into big_table_a set a1='213123', a2='978433', a3='234234',
a4='2535623';
............................

Through API node we have started this [...]

评论

如何设置两台机器的mysql cluster

新闻组确实是个好东东,俺每天蹲点终于找到了这个:HOWTO set up a mysql cluster for two servers
仔细看了一遍,原来db节点的服务器不必写config.ini,受以前的文章误导了
[@more@]

评论

升级到php5的日记 一

终于要从php4升级到php5了,是的,俺费尽了口舌,说服了boss使用php5和mysqli开发新项目.
首先俺细细的阅读了官方站点上介绍php5的有关章节,以及网络上的一些关于php5的文章.基本开发环境定为linux+apache2+php5+mysql4.1,很经典的搭配.为了提高开发效率,俺决定继续使用pear的类库和prado,因此现状是php4,php5的代码将并存.第一周俺们就遇到了麻烦:
1.mysqli和zend1的兼容性php.ini里面有一个选项,可以开启对zend1的兼容性,如果你在打开这个开关的同时还想使用mysqli的话,很快就会失望.它会无情的告诉你:unable clone a uncloneable object.....................
2.使用prado和php5的一些问题prado程序包prado.php的有段代码如下:set_error_handler( ........ );php5的配置默认是不提示E_STRICT级别的错误,要命的是,这行代码对任何错误都会die(....................),pear的代码完全没办法工作,只好咔嚓之

评论