echoserver_select.c 1 #include 2 3 #define BACKLOG 10 4 #define PORT 8080 5 #define MAXCLIENT 20 6 #define LEN_BUF 255 7 8 fd_set grset; 9...
分类:
其他好文 时间:
2014-06-18 16:03:55
阅读次数:
325
1.对字符串进行hash大家可以看一下, SHA1 HashesGo by Example写道:The pattern for generating a hash is sha1.New(), sha1.Write(bytes), then sha1.Sum([]byte{}). 附上golang代...
分类:
其他好文 时间:
2014-06-18 16:07:48
阅读次数:
294
When citizens believe about olive oil they normally associate it Spain or Italy - this mainly due to advertisements portraying aspects from either cou...
分类:
其他好文 时间:
2014-06-18 16:09:09
阅读次数:
199
LCS(A,B,C)!=LCS(A,LCS(B,C))反例:abcdabcdeabcedLCS(B,C)求出来可能是abce或者abcddp[i][j][k]表示A[0...i],B[0...j],C[0...k]的LCS转移方程:if (a[i]==b[j]&&b[j]==c[k]) ...
分类:
其他好文 时间:
2014-06-18 16:10:28
阅读次数:
195
一、Servlet生命周期init(ServletConfig config) ----->初始化service(ServletRequest req, ServletResponse res) ------->提供服务方法destroy() --------> 销毁1、tomcat服务器启动时,没...
分类:
其他好文 时间:
2014-06-18 16:09:50
阅读次数:
198
本文由该问题引入到内核锁的讨论,归纳例如以下为什么须要内核锁?多核处理器下,会存在多个进程处于内核态的情况,而在内核态下,进程是能够訪问全部内核数据的,因此要对共享数据进行保护,即相互排斥处理有哪些内核锁机制?(1)原子操作atomic_t数据类型,atomic_inc(atomic_t *v)将v...
分类:
其他好文 时间:
2014-06-18 16:11:05
阅读次数:
224
http://blog.csdn.net/bloggongchang/article/details/7272403一、MongoDB Replica Sets(副本集)简单的说就是有自动故障恢复功能的主从集群,主从集群和副本集的最为明显的区别是副本集没有固定的"主节点":整个集群会选举出来一个"主...
分类:
其他好文 时间:
2014-06-18 16:11:38
阅读次数:
231
1.2. 逐层显示出楼房 void Start() { for (int i = 1; i < 14; i++) //第1秒显示第1层,第10秒的时候显示第10层 { StartCoroutine(Show(i)); } ...
分类:
其他好文 时间:
2014-06-18 16:13:02
阅读次数:
926
这题 做出来真的好爽啊... it is cool although it is easy虽然 已经是大概1 2点的事了 我拖到现在才写是因为------lol 终于赢一把了 ---先贴下题目: touch me嗯 我一开始 用的是 3重for 我以为32767的数据量 是很小的.... 结果 T....
分类:
其他好文 时间:
2014-06-18 16:14:20
阅读次数:
155
---恢复内容开始---asioboost目录(?)[-]一前言二实现思路通讯包数据结构连接对象连接管理器服务器端的实现对象串行化一、前言boost asio可算是一个简单易用,功能又强大可跨平台的C++通讯库,效率也表现的不错,linux环境是epoll实现的,而windows环境是iocp实现的...
分类:
其他好文 时间:
2014-06-18 16:15:05
阅读次数:
183
IntroductionRecently our team was working on Veracity Quick Start sprint, when I was trying to migrate the JMS provider implementation from Tibco EMS ...
分类:
其他好文 时间:
2014-06-18 16:16:17
阅读次数:
328
Bentley Explorer 2004 Edition v8.5 1CD(模型浏览)Bentley FlowMaster v08.01.071.00 1CDBentley Geopak Civil Engineering Suite v8-2004 Edition 1CD (关于城市建设方面,具...
分类:
其他好文 时间:
2014-06-18 16:20:14
阅读次数:
329
FastReport TfrxReport此为最主要的报表元件,一个 TfrxReport 元件组成一份报表。在设计时期,双击此元件可打开报表设计器(Report Designer),此元件拥有所有载入、存盘、设计及来看报表必须的属性及方法。TfrxReport 提供的方法:procedure C....
分类:
其他好文 时间:
2014-06-18 16:18:13
阅读次数:
165
Go语言开发 可以使用的IDE很多 (Goclipse,sublime,notepad++,vim等)目前使用的最顺手的就是LiteIDE了但是尽管这样,一开始使用LiteIDE也有很多不习惯的地方,下面主要总结了一些自己喜欢的用法首先下载LiteIDE并安装(可用免安装的) 下载地址https:/...
分类:
其他好文 时间:
2014-06-18 16:21:26
阅读次数:
483
we have nearly a decade of stationary construction waste crushing equipment installation experience, the production of the crusher, efficient fine cru...
分类:
其他好文 时间:
2014-06-18 16:22:41
阅读次数:
264
三、组播模型muticast.c 1 #include 2 3 #define PORT 8088 4 5 #define MULTIIP "225.0.0.1" 6 7 int main(int argc,char **argv) 8 { 9 if(argc!=2)10 {...
分类:
其他好文 时间:
2014-06-18 16:23:20
阅读次数:
234
最近正在写一些zmq的C++程序。经常需要写类似于g++ XX.cpp -o XX -lzmq,写的次数多了 觉得太麻烦,于是写了个Makefile文件,先上代码 1 CFILE = $(wildcard ./*.c) 2 CPP_FILE = $(wildcard ./*.cpp) 3 4 OB....
分类:
其他好文 时间:
2014-06-18 16:25:18
阅读次数:
175