- 浏览: 184904 次
- 性别:
- 来自: 成都
最新评论
-
donggongai:
Blackbaby 写道mazhi4562qq 写道moist ...
openfire集成现有系统的用户表 -
Blackbaby:
mazhi4562qq 写道moistrot 写道哥们,你集成 ...
openfire集成现有系统的用户表 -
mazhi4562qq:
moistrot 写道哥们,你集成成功了吗?我这样集成之后,登 ...
openfire集成现有系统的用户表 -
dxcsingle:
哥们 我如今也遇到这个问题 能讲哈怎么处理么?
openfire集成现有系统的用户表 -
hooktoo:
该例子有很严重的问题,java没释放内存
JNative dll回调函数使用实例
文章列表
Browsing around EE today, I found an interesting question. This person wanted an AlertBox that had no buttons at all. The goal was to have the identical functionality / look as an alert, but to only display a message such as “Saving Changes…”. This is something that I do all over the place, and have ...
A quick and easy way to render HTML text with the body of a Flex Alert box.There is no API to set the htmlText property of the Alert text field, but you can access it using the mx_internal namespace.
import mx.controls.Alert;
import mx.core.IUITextField;
var title:String ="HTML Alert!& ...
Object.prototype.equals = function (x) {
if (!x) {
return false;
}
for (var p in this) {
if (typeof(x[p]) == 'undefined') {
return false;
}
}
for (var p in this) {
if (this[p]) {
switch (typeof(this[p])) ...
window auto.bat文件内容:
cd .
set classpath=a.jar;flexjson.jar //linux 用冒号(:)分隔符
java com.test.JsonTest
echo %1 //批处理文件接收命令行参数
pause
或者
java -cp flexjson.jar;a.jar com.test.JsonTest
echo %1
pause
另:linux的一个demo
#!/bin/bash
echo $PWD
JAR_LIB=$PWD/ ...
Question:
I'm trying to change default firstDayOfWeek for java.util.Calendar from SUNDAY to MONDAY. Is it possible to achieve this through JVM configuration instead of adding this piece of code?
cal.setFirstDayOfWeek(Calendar.MONDAY);
Answer:
The first day of the week is ...
package org.codehaus.jackson.util;
import java.util.Map;
import java.util.LinkedHashMap;
/**
* Singleton class that adds a simple first-level cache in front of
* regular String.intern() functionality. This is done as a minor
* performance optimization, to avoid calling native intern() me ...
MySQL5.1:
create table score(
考号 char(6),
考场 char(2),
单位 varchar(20),
总名次 integer,
校名次 integer,
姓名 varchar(10),
性别 varchar(2),
语文 numeric(5,1),
数学 numeric(5,1),
物理 numeric(5,1),
化学 numeric(5,1),
外语 numeric(5,1),
政治 numeric(5,1)
);
...
jdbc addBatch方法:
Statememt stmt=conn.createStatement();
stmt.addBatch("insert into .....");
stmt.addBatch("insert into .....");
stmt.addBatch("insert into .....");
stmt.executeBatch();
stmt.close();
PreparedStatement ps=conn.prepareStatement("insert Into b ...
As you can see, a thread pool is a useful way to limit the amount of threads that a Java program will be using. This article presented a complete thread pool that can be used with Java. This thread pool can easily become the starting point for any application that you create, which requires a thread ...
web.xml 的加载顺序是:context-param -> listener -> filter -> servlet ,而同个类型之间的实际程序调用的时候的顺序是根据对应的 mapping 的顺序进行调用的。
crontab文件每个条目中各个域的意义和格式:第1列分钟1~5 9第2列小时1~2 3(0表示子夜)第3列日1~3 1第4列月1~1 2第5列星期0~6(0表示星期天)第6列要运行的命令
下面是crontab的格式:分 时 日 月 星期 要运行的命令
这里有crontab文件条目的一些例子:30 21 * * * /apps/bin/cleanup.sh上面的例子表示每晚的21:3 0运行/apps/bin目录下的cleanup.sh。45 4 1,10,22 * * /apps/bin/backup.sh上面的例子表示每月1、1 0、2 2日的4 : 4 5运行/apps/bin目录下的 ...
做一个记录和mx.utils.StringUtil.substitute()包做个记录:
Using this class, the example above would look more like this:
receivedMessage=At %time%, you received a message from %userName%.
// then in your code
trace(ResourceStringUtil.getResoureceStringWithTokens("receivedMessage", {time ...
<script type="text/javascript">
alert([1,2]);//相当于alert([1,2].toString()); --这在IE与非IE上都相同,都会弹出"1,2"
alert([1,]);//相当于alert([1,].toString());--在非IE的标准浏览器上,js引擎会自动删除最后的",",所以在IE上会弹出"1,",而在非IE上会弹出"1"
alert(+[1,]);//根据上面的解释,这一句在IE上相当于alert(+" ...
This post goes over the basics of writing a very simple custom layout that supports virtualization in spark. It assumes that you have already built a custom layout that handles the real (non-virtual) case and are comfortable doing so.The main difference between a virtual and non-virtual layout is how ...
Flash Player 会以SWF内容的帧频速度来刷新需要变化的内容,而这个刷新的过程,我们通常称为“重绘(redraw)”,相信即便是初级的菜鸟也知道,只要使用的是Debug版本的Flash Player, 右键菜单里就会有“Show Redraw Regions (显示重绘区域)” 这个选项,当此选项打开的时候,我们就能清楚地看到此刻场景内被重绘的区域。
那么什么情况下会发生重绘呢?1、最常见的是情况就是舞台上的可视组件在形状、位置、状态(alpha, scale...)发生改变的时候会触发Flash Player 的重绘。2、当一个DisplayObject的层级 ...