阻塞模式Windows套接字在阻塞和非阻塞两种模式下执行I/O操作。在阻塞模式下,在I/O操作完成前,执行的操作函数一直等候而不会立即返回,该 函数所在的线程会阻塞在这里。相反,在非阻塞模式下,套接字函数会立即返回,而不管I/O是否完成,该函数所在的线程会继续运行。在阻塞模式的套接字上,调用任何一个...
分类:
其他好文 时间:
2015-02-04 15:59:46
阅读次数:
104
任務 ? 创建Task 传递Action委托给Task的构造函数即可,如果需要附加参数,使用Action委托 private void Window_Loaded(object sender, RoutedEventArgs e) { var obj = new object(); var task...
分类:
其他好文 时间:
2015-02-04 15:58:28
阅读次数:
144
常用的ssh命令cd 切换目录1.查看日志:举例: tail -f tomcat/apache-tomcat-6.0.26/logs/catalina.2010-11-10.out2.pwd 查看当前目录3.cd ../ 回上一级目录 4. ./ shutdown.sh,./ startup.sh关...
分类:
其他好文 时间:
2015-02-04 15:59:32
阅读次数:
212
Photoshop CS6 基础知识新建 练习 宽度72, 像素厘米 颜色模板分类 RGB CMYK 背景内容 色彩三要素:色相,饱和度,明度(亮度) R 0 G 0 B 0 #000000快捷键 Z:缩放 空格--平移 Alt+左键--缩小 Alt+Delete前景色Ctrl+DElete背...
分类:
其他好文 时间:
2015-02-04 15:59:29
阅读次数:
218
DECLARE TYPE name_list IS TABLE OF VARCHAR2(40); TYPE type_list IS TABLE OF VARCHAR2(20);Tab_name name_list:=name_list(); Tab_type type_list:=type_lis...
分类:
其他好文 时间:
2015-02-04 15:58:03
阅读次数:
147
博客园首页新随笔联系订阅管理最新随笔最新评论node.js相关的中文文档及教程 (转)Posted on 2013-08-30 10:40 小小清清 阅读(61) 评论(0) 编辑 收藏 node.js api中英文对照: http://docs.cnodejs.net/cman/ node.js入...
分类:
其他好文 时间:
2015-02-04 15:56:34
阅读次数:
246
本地开发环境一切正常, 但是上线后Chrome却频繁crash,IE、Firefox等浏览器都没有问题,google的建议删除自己的default目录,觉得不靠谱没有尝试。一开始搞不懂为什么会出现这种情况,通过Google查资料,发现是浏览器缓存造成的:Chrome浏览器为了提高用户访问同一页面的速...
分类:
其他好文 时间:
2015-02-04 15:57:42
阅读次数:
119
People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher...
分类:
其他好文 时间:
2015-02-04 15:55:54
阅读次数:
165
这题求解的过程和选择排序非常相似。反转的过程中分为无序(在前面)和有序(在后面)两个部分,一开始视为全部为无序。在无序部分中找到最大的元素,先把它翻到最前面,然后再反转到无序部分的最后面。这样该元素就成为有序的部分。而且在算法执行的过程中不会影响到已经构造好的有序部分。 1 #include 2 ....
分类:
其他好文 时间:
2015-02-04 15:57:55
阅读次数:
142
经过一两个月的学习,对pf_ring DNA的内核部分有了一些认识,本文侧重pf_ring对ixgbe的改动分析。先说一说接收流程吧,流程如下:其中,硬中断处理函数是ixgbe_msix_clean_rings( );软中断处理函数是net_rx_action( )。pf_ring对ixgbe的改动...
分类:
其他好文 时间:
2015-02-04 15:56:53
阅读次数:
503
Defined 1.0 Class CodesUSB Class Codes March 2, 2006USB defines class code information that is used to identify a device’s functionality and to nomina...
分类:
其他好文 时间:
2015-02-04 15:56:30
阅读次数:
345
Android自定义属性,attr format取值类型 1. reference:参考某一资源ID。 (1)属性定义: <declare-styleable name = "名称"> <attr name = "background" format = "reference" /> </declare-styleable> (2)属...
分类:
其他好文 时间:
2015-02-04 14:52:28
阅读次数:
197
<!DOCTYPE?html>
<html>
<head>
<meta?charst="gb2312">
<meta?http-equiv="X-UA-Compatible"?content="IE=edge">
<!--?user-scalable=no?在移动设备浏览器上,禁止用户缩放(zooming)?-->
<meta?name=...
分类:
其他好文 时间:
2015-02-04 14:52:44
阅读次数:
112
适用于:?MindManager?X5,?6,?7,?8 症状 拼写检查错误!“Spelling?Checker?Failure!”?无法打开字典sys\spell\ssceam.tlx文件。“Cannot?Open?dictionarysys\spell\ssceam.tlx”.?请检查是否安...
分类:
其他好文 时间:
2015-02-04 14:51:37
阅读次数:
135
鉴于json数据传输的使用,可以在实体类基础上设计基类 public?abstract?class?BaseModel?implements?Serializable{
?private?static?final?long?serialVersionUID=1L;
?
?
?//==============jso...
分类:
其他好文 时间:
2015-02-04 14:49:51
阅读次数:
138
这是一道很经典的网络流的题目。首先我们考虑假如我们的时间为无穷大。我们吧每个点拆成2个点 i和i' .。虚拟源点s和汇点t。对于每个点建边(s,i, a[i]) (i‘,t,ib[i]) 。 其中a[i]为给点有多少牛,b[i]为容量。i和j连通 建边 (i,j',inf);如果最大流==所有牛的个数,就可能装下所有的牛。那么现在我们考虑时间。假设最大时间为T.那么如果i到j的的最短时间>T,那...
分类:
其他好文 时间:
2015-02-04 14:51:31
阅读次数:
161
题目大意:维护一棵有根树,每个节点初始权值为0,支持下列操作:
1.链上+
2.子树求和
。。。。。链剖裸题- -
果然链剖这种东西想要1A实在是不咋现实- -
#include
#include
#include
#include
#define M 100100
using namespace std;
struct Segtree{
Segtree *ls,*rs;
l...
分类:
其他好文 时间:
2015-02-04 14:49:21
阅读次数:
143