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

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 A

13 views by 老李 | Tagged , , | Leave a comment

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

默认情况下, 通过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-xa

37 views by 老李 | Tagged , | Leave a comment

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

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

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

Oracle

Connect, 稍等片刻即可.

53 views by 老李 | Tagged , | Leave a comment

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

JDBC 取得ResultSet的长度:

	resultSet.last(); // 游标移到最后, 获得rs长度
			int length = resultSet.getRow();
			resultSet.first(); // 还原游标到rs开头
61 views by 老李 | Tagged , | 1 Comment

[旧文存档]Flex: Alert 使用总结 Using Alert in Flex

1. 通过Alert强制用户选择.

2. 使用一个方法 Handle多个Alert.

// 弹出Alert
Alert.show(RM.getString(BUNDLE_ONLINE_TEST, "olt.attempt.warn.remove"), RM.getString(BUNDLE_ONLINE_TEST, "olt.confirm.title"),
Alert.YES|Alert.CANCEL, null, onAlertClose).data = "remove";
//—————–

69 views by 老李 | Tagged , | Leave a comment