(转)最近要用到FileSystemWatcher来监控某个目录中的文件是否发生改变,如果改变就执行相应的操作(具体操作如:打开文档,添加一行,保存)。但在开发过程中,发现FileSystemWatcher在文件创建或修改后,会触发多个Created或Changed事件,具体原因就是处理文件的过程中...
分类:
其他好文 时间:
2014-06-13 19:33:19
阅读次数:
511
什么是单一职责原则? 单一职责原则的英文名称是Single Responsibility
Principle,简称是SRP。SRP原则的解释是:There should never be more than one reason for a
class to change。定义很简单,即不能存在多....
分类:
其他好文 时间:
2014-06-12 15:29:46
阅读次数:
202
#include #include char *change(int val, int base,
char *retbuf){ static const char *str = "0123456789ABCDEF"; char *p; char
buf[15]; p = b...
分类:
编程语言 时间:
2014-06-12 10:09:57
阅读次数:
356
比赛链接:http://vjudge.net/contest/view.action?cid=47644#overview比赛来源:2012
ACM/ICPC Asia Regional Tianjin Online果然我还是很受外界影响啊~~~这场打得好烂~~~155/175Problem
AHD...
前言在上篇文章中提到了MySQL 5.6 Online DDL,如果是MySQL
5.5的版本在DDL方面是要付出代价的,虽然已经有了Fast index
Creation,但是在添加字段还是会锁表的,而且在添加删除辅助索引是会加S锁,也就是无法进行写操作。所以,这里就有相关工具的出现,那就是pt-...
分类:
其他好文 时间:
2014-06-10 11:32:56
阅读次数:
323
/*
* Created by SharpDevelop.
* User: Administrator
* Date: 2013/11/18
* Time: 20:55
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using Sy...
分类:
其他好文 时间:
2014-06-10 11:19:19
阅读次数:
1209
【比赛链接】:http://acm.hunnu.edu.cn/online/?action=problem&type=list&courseid=132A:跑得快计数程序【题解】:细心点,巧妙乘2处理四舍五入,简单模拟【代码】:
1 #include 2 #include 3 #include .....
分类:
其他好文 时间:
2014-06-10 10:40:22
阅读次数:
227