package?com.sadhu;
import?java.util.*;
import?java.awt.*;
import?java.awt.event.*;
import?javax.swing.*;
import?javax.swing.Timer;
import?java.text.SimpleDateFormat;
/**
Timer类的使用
在一定...
分类:
编程语言 时间:
2014-07-24 12:32:55
阅读次数:
257
Google Custom Search Engines use a timer to check the hash against a previous value, whilst the child iframe on a seperate domain updates the parent‘s location hash to contain the size of the ifram...
分类:
Web程序 时间:
2014-07-24 12:31:35
阅读次数:
289
因为到公司做新的项目,把eclipse,tomcat,Apache全部换成公司指定的版本。然后把各项东西配好搭建起,从SVN上down下项目以后,开始随便打开几个文件看。然后悲剧就发生了,十次打开有八次都直接报Unhandled event loop exception PermGen space的错误,尤其是打开xml,js的时候,或者多开两个文件就直接闪退,查error log就是permge...
分类:
系统相关 时间:
2014-07-24 10:26:34
阅读次数:
261
在12月11日新的有关DDD CQRS和Event Sourcing演讲:改变心态- 以更加面向对象视角看待业务领域建模中,作者以足球比赛football Match为案例说明传统编程方法和CQRS的区别。 CQRS作为DDD的最佳实践已经得到广泛承认...
分类:
其他好文 时间:
2014-07-23 18:14:46
阅读次数:
290
River Hopscotch
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 6697
Accepted: 2893
Description
Every year the cows hold an event featuring a peculiar ve...
分类:
其他好文 时间:
2014-07-23 18:06:07
阅读次数:
270
第一步,先安装lib-event
下载lib-event 的包http://libevent.org/
下载完之后,解压安装
./configure –prefix=/usr (或 ./configure --program-prefix=/usr)
make
make install
第二步,安装memcached
下载memcached的包...
分类:
其他好文 时间:
2014-07-23 17:19:31
阅读次数:
291
线程池中的死锁情况
这次死锁发生在什么情况下呢?在最开始写线程池的时候,我设计了线程是可重用的,主要是通过Event信号实现,通过在每个线程核心工作代码执行完毕后会将自己归还到池中,然后等待Event信号。主线程会以循环超时阻塞的方式监视一个任务队列,当发现有任务时便会从线程池中取出一个线程,并设置它的任务和目标函数,然后去start或者resume,resume就是会设置Event信号让线程不再阻塞,这里,从池中取线程的方法_get和归还线程方法returnThread都已经加锁,_get和return...
分类:
编程语言 时间:
2014-07-23 17:15:01
阅读次数:
333
A窗体//用委托声明(传一个当前窗体的页面)public delegate void Determine(AddOperationRulesForm frm);//用event 关键字声明事件对象public event Determine DetermineClick;//在页面做完事,需要关闭窗...
IE Javascript快捷键操作 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="ret....
分类:
Web程序 时间:
2014-07-23 14:52:26
阅读次数:
380
1、查看事件是否开启SHOW VARIABLES LIKE 'event_scheduler';2、开启事件SET GLOBAL event_scheduler = ON; 3、创建事件DELIMITER $$-- SET GLOBAL event_scheduler = ON$$ -- r...
分类:
数据库 时间:
2014-07-23 14:50:46
阅读次数:
244