PHP:Pass Method/Function 传递方法

Categories: PHP; Tagged with: ; @ September 6th, 2010 21:39

需求: 需要外部提供Function以进行操作

解决方案: 外部传递Function Name到目标页面/类中, 然后使用call_user_func()方法使用外部方法.

(more…)

Linux: Copy/Rename/Move/Remove Directory – 复制/重命名/移动/删除目录

Categories: Linux; Tagged with: ; @ September 2nd, 2010 17:38

1. Copy 复制:

[root@ip-10-* webapps]# cp -r sourceDir/ /targetDir/ 
//将被复制到targetDir文件夹下 The SourceDir will be found under "targetDir"

2. Rename 重命名:

[root@ip-10-* 20100102update]# mv sourceDir/ newName

3. Move 移动:

mv Source.zip targetDir/

4. 移除整个目录:

[root@ip-10*webapps]# rm -rf Athena_Java/

Reset Mysql Root Password in XAMPP 在XAMPP中重置MySql密码

Categories: Database; Tagged with: ; @ September 1st, 2010 21:15

默认情况下, 通过XAMPP安装的Mysql Root密码为空.

在XAMPP中重置Mysql密码:

1. Go to http://localhost:port/security/  该链接将会对目前的配置进行安全检查

2. 该页面会检查当前安全配置, 并会带有链接: http://localhost/security/xamppsecurity.php

3. 该页面中可进行重置密码等操作.

See more : http://veerasundar.com/blog/2009/01/how-to-change-the-root-password-for-mysql-in-xampp/

[旧]使用ERwin反向工程生成Oracle数据库的Physical Modal(物理数据模型)

Categories: Database; Tagged with: ; @ August 29th, 2010 18:22

=> 首先参考使用ERwin反向工程生成MySQL数据库的Physical Modal[物理数据模型]

选择Oracle, Next, 到如下界面:

Oracle

Connect, 稍等片刻即可.

[旧]Java: JDBC 取得ResultSet的长度

Categories: Java; Tagged with: ; @ August 29th, 2010 18:19

JDBC 取得ResultSet的长度:

	resultSet.last(); // 游标移到最后, 获得rs长度
int length = resultSet.getRow();
resultSet.first(); // 还原游标到rs开头

Newer Posts <-> Older Posts



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.