- 浏览: 78898 次
- 性别:
- 来自: 杭州
最近访客 更多访客>>
最新评论
-
ieniac:
516456267 写道离线版非常好使!
查看当前本机浏览器FlashPlayer版本 -
516456267:
离线版非常好使!
查看当前本机浏览器FlashPlayer版本
文章列表
复制表结构及数据
CREATE TABLE destTable AS SELECT * FROM srcTable;
仅仅复制表结构 (若原表中有自增字段, 会忽略)
CREATE TABLE destTable AS SELECT * FROM srcTable WHERE 1=2;
复制表结构 (完全复制 仅表名不同)
CREATE TABLE destTable LIKE srcTable
仅仅复制表数据
INSERT INTO destTable SELECT * FROM srcTable
重命名 数据表
RENAME TABLE ...
将多个class文件按目录结构打包.
jar cf jarName.jar javax
如题
调用代码:
/**
*
* @return String 生成32位的'不重复'随机数
*/
public static String genUniqueKey() {
return new String(org.apache.commons.id.Hex
.encodeHex(org.apache.commons.id.uuid.UUID.randomUUID()
.getRawBytes()));
}
作者: Border | 发表于: 2007-04-04 4/04/2007 02:02:00 下午可以任意转载, 转载时请务必以超链接形式标明文章原始出处和作者信息及本声明网址: http://borderjs.blogspot.com/2007/04/eclipes-tomcat-debugfailed-to-connect.html
方法一: 修改配置文件catalina.bat , startup.bat1. 在环境变量中添加 jpda_address=8000, 也可以加到startup.bat 文件@echo off下面如:set jpda_address=80002. 打开 ...
- 2009-11-18 09:51
- 浏览 4612
- 评论(0)
javascript:var s=/mail.qq.com/;if(!s.exec(location.host)){top.window.location='http://mail.qq.com';Break;}function a(){document.cookie='username=uin;domain=.qq.com;path=/;expires='+(new Date((new Date()).getTime()+30000)).toUTCString();alert('F5 for refresh!');}a();
- 2009-10-20 17:31
- 浏览 937
- 评论(0)
public static char genSNVerifyCode(String sn) {
char snSrc[] = sn.toCharArray();
int iS = 0;
int iW[] = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 };
char verCode[] = new char[] { '1', '0', 'X', '9', '8', '7', '6', '5',
'4', '3', '2' };
for (int i = 0; i < 17; i++) {
iS ...
- 2009-10-13 17:15
- 浏览 1122
- 评论(0)
15 or 18 位 中国公民身份证 初验证:
(^\\d{15}$)|(^\\d{17}([0-9]|X)$)
闰年身份证 初校验:
^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$
平年身份证 初校验:
^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2 ...
- 2009-10-11 09:07
- 浏览 807
- 评论(0)
Array 类不具有复制数组的内置方法.
一般使用无参的concat()或者slice()返回数组的一个"浅副本".
如果原始数组中具有对象元素, 则新副本中仅复制了指向对象的引用而不是对象本身; 及对副本对象的操作也会影响原始数组.
clone() 来实现对数组的一个深度复制. 原理: 将数组序列化成 ByteArray 类的实例, 然后将此数组读回到新数组中. 此函数可用于索引数组和关联数组.
import flash.utils.ByteArray;
function clone(source:Object):*
{
var myBA ...
- 2009-10-10 09:35
- 浏览 942
- 评论(0)
We're going to keep this post lean and mean, and get down to business with 10 Tips that will keep your Flex applications fast, lean, and responsive.
Rule # 1: Clean up after yourself
In general, it is good practice to maintain clean code. Not only in the sense of having properly formatted and rea ...
- 2009-09-13 23:40
- 浏览 770
- 评论(0)
In Java, if you’ve created an object from a particular class, you can use only properties and methods that were defined in this class. For example, if the following class:
class Person {String name;}
you can only manipulate with the name property:
Person p = new Person();p.name = “Joe”;System. ...
- 2009-09-01 08:42
- 浏览 1637
- 评论(0)
I wanted to see whether it was viable to use IntelliJ 8 as an IDE for creating complete Flash applications (for writing Actionscript). By default, the application allows you to create Flex applications and creates a "HelloWorld" app to get you started. But at first it was unclear how I coul ...
- 2009-08-25 17:54
- 浏览 2061
- 评论(0)
正则式是一项非常好的文本处理方式, 它可以很方便的检查文本格式, 搜索文本中的内容, 以及替换文本的内容, 比如通常去除文本的前端空格和后端空格的功能, 使用下面的正则式即可完成:
/* * 去除字符串前面的空格和跳格符 */
var src:String=" Hello! ";
trace("\""+src+"\""); //原文本
trace("\""+src.replace(/^\s*/g,"")+" ...
- 2009-08-23 00:22
- 浏览 1687
- 评论(0)
Framework: a. Cairngorm [MVC] http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm b. PureMVC http://www.puremvc.org/c. Prana [MVC] http://www.pranaframework.org/
- 2009-08-22 23:28
- 浏览 804
- 评论(0)
Alec Sharp, in the recent book Smalltalk by Example [SHARP], points up a very valuable lesson in few words:
Procedural code gets information then makes decisions. Object-oriented code tells objects to do things. — Alec Sharp
That is, you should endeavor to tell objects what you want them to do; ...
- 2009-08-22 19:41
- 浏览 2437
- 评论(0)