A run loop for a given thread will wait until one or more of its input sources has some data or event, then fire the appropriate input handler(s) to p...
分类:
其他好文 时间:
2014-07-24 17:15:40
阅读次数:
301
直接修改locales.inc.php中中文可视调整为True即可:[root@Zabbix-CentOS-35~]#cat/data/zabbix/include/locales.inc.php|grep-n"‘display‘"50:‘en_GB‘=>array(‘name‘=>_(‘English(en_GB)‘),‘display‘=>true),51:‘en_US‘=>array(‘name‘=>_(‘English(en_US)‘),‘di..
分类:
其他好文 时间:
2014-07-24 14:50:56
阅读次数:
296
历史原因造成公司有很多centos6.2的系统,从某天6.2系统突然自动重启,排查半天发现是6.2的内核bug(超过208天后可能自动重启,可以参考https://access.redhat.com/site/solutions/68466),所以为了不影响业务,在发现6.2系统在线超过180天后就安排重启工作,下面是介绍如何使..
分类:
数据库 时间:
2014-07-24 14:50:36
阅读次数:
369
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
用惯了cacti的童鞋们,估计都对cacti的树形视图情有独钟,连我们的网络工程师都抱怨,zabbix没有cacti直观的界面。
本来,我在每个host的模板里面都加了screen,虽然麻烦点吧,总归有了直观的显示。
但是前几天,介于偷懒的想法,修改了所有机器的模板,网卡一类统一启动..
分类:
其他好文 时间:
2014-07-23 21:19:26
阅读次数:
242
在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