CakePHP version 0.10.0.1217_alpha Released!

Posted on 27th October 2005 by Nio in CakePHP, 程序人生

这个版本的 Cake 有了不少修改,需要修改模块变量名等等,具体关键的修改如下:1. New Model References
Any instance of a model should be referenced as CamelCase.
(old) $this->models['post']->findAll()
(new) $this->Post->findAll().

2. Association References
Associated data is returned in ModelName array now.

(old) $data['modelname']['id'];
(new) $data['ModelName']['id'];

3. CamelCased models with associations:
All Associations should be singular CamelCased, since we are associating models.

var $belongTo = 'SomeOtherModel,SomeOtherModel1';
var $hasOne = 'SomeOtherModel,SomeOtherModel1';
var $hasMany = 'SomeOtherModel,SomeOtherModel1';
var $hasAndBelongsToMany = 'SomeOtherModel,SomeOtherModel1';

For more information on associations:
http://wiki.cakephp.org/docs:understanding_associations

4. Table underscores:
If you CamelCase your models to replicate your database tables.
The table names and URLs to the controller will be automatically underscored on PHP5.
On PHP4 set your controller (var $name ='Posts') and model (var $name = 'Post')
Adding var $useTable = 'my_underscore_table'; to your model can also be used if
your table name is different from your model name.

5. CamelCase on helpers and components.

var $components = array('ComponentName');
accessing components in the controller is CamelCased
$this->ComponentName->method()

var $helpers = array('Html','HelperName');
accessing helpers in the view is camelBacked
$helperName->method()

6. Update to database.php.default
You must now set connection type.
The port is optional同时我也更新了 Cake AJAX Blog Demo,使可以在最新的版本 Cake_0.10.0.1217_alpha 下运行。

MySQL 5.0 Released!

Posted on 25th October 2005 by Nio in 日常生活

MySQL 5.0 总算发布了,此版本包括了如下几个重要特性:image * Stored Procedures and SQL Functions to embed business logic in the database and improve performance;
* Triggers to enforce complex business rules at the database level;
* Views to ensure protection of sensitive information;
* Cursors to allow easier database development and reference of large datasets;
* Information Schema to provide easy access to metadata;
* XA Distributed Transactions supports complex transactions across multiple databases in heterogeneous environments;
* SQL Mode provides server-enforced data integrity for new and existing data;
* New Federated and Archive Storage Engines — MySQL's pluggable storage engine architecture allows greater flexibility, functionality and performance by making it easy to swap database engines in and out, based on users' application requirements;
* New Migration Toolkit — A new graphical toolkit that completely migrates all data and objects from Oracle, Microsoft SQL Server, Microsoft Access and other database platforms to MySQL;
* Instance Manager — new management assistant that allows remote starting/stopping of any MySQL Server, as well as remote editing of configuration files, reading of error and query logs, and more;
* Updated Connectors and Visual Tools — new versions of MySQL's ODBC, Java and .NET database drivers are now available, along with updated versions of the MySQL Query Browser and MySQL Administrator.

What's New in MySQL 5.0
Upgrading from Version 4.1 to 5.0
Downlad MySQL 5.0

Zend PHP Framework

Posted on 22nd October 2005 by Nio in 程序人生

看来 Zend 开发 fw 的消息是真的了,处于正在进行中,据说还是开源的,是否真的值得期待呢?还是会因为要配合 Zend 的 solutions 把这个 fw 搞得铜臭味十足?个人感觉目前 Zend 对于 PHP 过于垄断了,虽然为 PHP 发展做出了贡献,但是还是太小气,很多东西都掐在手里想方设法利用起来挣钱,这样反而会阻碍 PHP 的发展。

Zend PHP FrameworkZend PHP Framework - (zênd p-h-p frãme'wûrk)

* A Web application framework which standardizes the way PHP applications are built. The Zend PHP Framework accelerates and improves the development and deployment of mission-critical PHP Web applications.
* Extreme Simplicity

The Principles

* Keep it 'extremely simple' – stick to 20%/80% rule and compensate by:
o Extensibility
o Use-at-will architecture
o Configuration-less
* Cherry pick best-of-breed ideas
* Showcase current trends in Web development (Web Services, Ajax, Search, …)
* Document development with use-cases
* Only high quality and necessary components

百度 MP3 批量下载程序 v2.0 final 发布!

Posted on 21st October 2005 by Nio in BaiduMp3, 程序人生

ChangeLog:

*) 增加“查找歌词”功能(快捷键:F12)。
*) 修复“百度”的获取歌曲地址失败的问题。

请到此处下载 BaiduMp3_v2.0final.exe (318.976 KB)

IBM and Zend to Aim PHP at .NET Through Eclipse.org Open Source Foundation

Posted on 21st October 2005 by Nio in 程序人生

IBM and Zend to Aim PHP at .NET Through Eclipse.org Open Source FoundationAccording to Netcraft, 40% of all web applications already run PHP, but IBM and Zend have decided that PHP needs to be fattened up to take on .NET.

So in the next few days Zend is going to join the Eclipse Foundation as a Strategic Developer and kick off an overarching open source initiative that it calls the PHP Collaboration Project, to create an industrial-grade PHP web application development and deployment environment.

Among other things, Zend want a PHP Framework developed to standardize the way PHP applications are built and create a uniform code base for next-generation web applications. Eclipse will be the IDE.

The Framework is supposed to accelerate the deployment of mission-critical PHP web apps by bringing simplicity, open standards, a "friendly" license and a structured development process to the party.

Besides IBM, which is lending manpower to the cause, Zend has collected a bunch of companies to help with the Collaboration Project including Oracle, MySQL, Intel, Actuate, Ning, and ADP.

(This is a significantly abridged version of a story that appeared originally at http://www.clientservernews.com.)