vs+directx sdk开发机器最好不要装comodo

杀毒软件的兼容性还是有待提高。在安装软件的时候,杀毒软件会霸道的禁止一些关键部位的操作,造成开发必备组件都无法正常安装。

只有把这些组件都禁止掉,才有可能顺利安装好软件。

真是太让人郁闷了。

 

zend server ce出现Rewrite模块不工作的解决方法

我把zend server安装在了D:盘下面。

D:\Zend\Apache2\conf\httpd.conf

注意查看下面红字部分。

AllowOverride None

改为

AllowOverride ALL

重启服务器,即可让rewrite正常工作了。

刚安装完毕,出现500错误,不能进入zend server的控制台。

需要查看

D:/Zend/ZendServer/etc/ZendEnablerConf.xml

这个文件头部的

<?xml显示不正确。

用文字编辑工具将它修正即可。

 

#
# Note that from this point forward you must specifically allow
# particular features to be enabled – so if something’s not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:\Zend\Apache2/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* — "Options All"
    # doesn’t give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride ALL

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
</Directory>

 

zvcore 1.3.9发布

zvcore 1.3.9 (2009/08/12)

改进:

将缓存从sqlite退回至文件存储。同时改进算法,在尽可能减少性能损耗的前提下,尽可能的提高速度和效率。

增加了saveCache方法,为ajax,json提供缓存功能。

修正一些其他细小的地方

 

<?php 

/**

 * path:./controllers/testAction.class.php

 */

class testAction extends Action {

    public function index() {

        $this->_cacheThis=true;

        $this->_cacheTime=2;

        //初始化数据模型

        $userModel = App::Model(‘user’);

        //预备插入的数据

        $data = array(‘username’=>"swiden", ‘password’=>"genpark", ‘trueName’=>"nicework");

        //开始强力插入

        $insId = $userModel->insertTable($data);

        //试图显示插入结果

        echo "你现在插入了一个id为".$insId."的记录!<br />";

        echo "现在取出数据!<br />";

        //开始变魔术了

        helper::dump($userModel->findById($insId));

        echo "现在删除数据!<br />";

        //玩完了。

        var_dump($userModel->deleteByusername($data['username']));

        $this->saveCache();

        

    }

}


 

数据丢失了

前面发的文章全都不见了。我倒

zvcore缓存增加saveCache方法

 

 

<?php 

/**

 * path:./controllers/testAction.class.php

 */

class testAction extends Action {

    public function index() {

        $this->_cacheThis=true;

        $this->_cacheTime=2;

        //初始化数据模型

        $userModel = App::Model(‘user’);

        //预备插入的数据

        $data = array(‘username’=>"swiden", ‘password’=>"genpark", ‘trueName’=>"nicework");

        //开始强力插入

        $insId = $userModel->insertTable($data);

        //试图显示插入结果

        echo "你现在插入了一个id为".$insId."的记录!<br />";

        echo "现在取出数据!<br />";

        //开始变魔术了

        helper::dump($userModel->findById($insId));

        echo "现在删除数据!<br />";

        //玩完了。

        var_dump($userModel->deleteByusername($data['username']));

        $this->saveCache();

        

    }

}


 

jQuery的堕落

    我承认JQuery很好用,很容易上手。看着手册。对着写,不出半天时间,就能把它研究得个七上八下八九不离十。

    不过写着写着,就会不断的感觉到jquery成为制约你的阻力。jquery不能实现你想要的功能,那么你会想,这不是jquery的错。你想了很久,尝试用很多思路解决你碰到的问题。

    久久思量着如何最优化执行之后,你会发现,你几乎实现了你想要的功能,不过,你会吓一跳,这些代码还是你写成的么?如此丑陋,以至于你没有勇气仔细看回它。也许你有些沮丧,不过不要紧,这不是你的错。

    jquery的简单,注定了它要牺牲一些标准的东西。我第一个接触的框架不是jquery,而是mootools。这里要说的不是mootools有何特别出色的地方。我要说的是,mootools真的像是一个框架,利用它,你真的可以解决很多的实际问题,最重要的是,它非常优雅。阅读mootools写的代码,你会感觉到非常轻松,就像你平时书写的java,c#,php代码一样,非常oop,因此看起来很相似是么?

    这次项目里,用了jquery.。本来想尝试下jquery能给我们带来多大的惊喜,结果我写完了。发现很难看,而且效果不能达到我心中理想的状态。于是,我用mootools重新写了一遍。发现mootools真的是要优异很多。我相信这个项目换到别人手里,他也能很轻松的看懂这些代码并作出相应的修改。

    mootools,选你我不后悔。Jquery,你让我失望了。

Turtles组合《bingo》

乌龟组合三人混声组合的灵魂队员,今年38岁的TURTLE MAN不幸于2008-04-02凌晨2点在自己家中去世。TURTLE MAN死于心脏麻痹。早在2005年4月,当时TURTLE MAN就由于身体不适曾经发生过脑血栓病倒并接受了手术,一年之后恢复健康重返歌坛。乌龟组合从2002年出道,他们发表的多首经典作品都是出于 TURTLE MAN的笔下,现在第五张专辑的SINGLALA也深受广大歌迷喜爱。中国朋友们熟悉的《快乐崇拜》也是他创作的乌龟组合曾经在韩国唱红的歌曲。对于他的 去世韩国歌坛非常震惊,今天有的记者们说他吸烟过度才会这样


贼好用的FTP客户端软件Filezilla

下面是Filezilla官方开具的特性清单:

· Easy to use (容易使用)

· Supports FTP, FTP over SSL/TLS (FTPS) and SSH File Transfer Protocol (SFTP) (多协议支持,ftp,ftps,sftp)

· Cross-platform. Runs on Windows, Linux, *BSD, Mac OS X and more (跨平台)

· IPv6 support IPV6支持,这个有点超前)

· Available in many languages (多国语言,有中文)

· Supports resume and transfer of large files >4GB (大文件传输,适合传毛片)

· Powerful Site Manager and transfer queue (彪悍的站点管理和队列)

· Bookmarks (书签)

· Drag & drop support (拖拽)

· Configurable transfer speed limits (传输速度控制)

· Filename filters (文件名过滤)

· Network configuration wizard (网络配置向导)

· Remote file editing (文件编辑)

· Keep-alive (保持连接不中断)

· HTTP/1.1, SOCKS5 and FTP-Proxy support (代理服务器支持)

· Logging to file (日志记录功能)

    下载地址:http://filezilla-project.org/download.php?type=client

zvcore框架Model层的使用

首先,你需要在项目目录下面新建一个目录models,这个目录不是必须的,你要用model,就必须要建这个目录,接下来你要创建model文件。对应数据库里的表user,我们创建一个userModel.class.php的文件。文件的内容如下:

php

/**

* path:./models/userModel.class.php

*/

class userModel extends Model{

}

好了。这个Model就建好了。接下来你就可以在控制器里面直接使用了。

php

/**

* path:./controllers/testAction.class.php

*/

class testAction extends Action {

public function index() {

//初始化数据模型

$userModel = App::Model(‘user’);

//预备插入的数据

$data = array(‘username’=>“swiden”, ‘password’=>“genpark”, ‘trueName’=>“nicework”);

//开始强力插入

$insId = $userModel->insertTable($data);

//试图显示插入结果

echo “你现在插入了一个id为”.$insId.“的记录!”;

echo “现在取出数据!”;

//开始变魔术了

helper::dump($userModel->findById($insId));

echo “现在删除数据!”;

//玩完了。

var_dump($userModel->deleteByusername($data['username']));

}

}

Aptana 1.5用户需手动升级至Aptana 1.5.1

1、打开你的Apatana

2、进入Windows =>preferences => install/update => available software sites

3、添加下面的地址

· http://update.aptana.com/update/studio-rcp

· http://update.aptana.com/update/studio-pro

· http://update.aptana.com/update/db-tools

· http://update.aptana.com/update/cloud

· http://update.aptana.com/update/svn

4、点击确定进行升级