基于TCP-服务器1、创建一个socket,2、绑定IP地址、端口等信息到socket上,用函数bind()3、设置允许的最大连接数,用函数listen()。4、等待来自客户端的连接请求,用accept()5、收发数据,用函数send()和recv(),或者read()和write()6、关闭网络连...
分类:
系统相关 时间:
2014-07-18 16:11:39
阅读次数:
274
static 表示类所有---------------->值是可以改的,为类所有readonly表示只读的变量--------->值不可改,实例化访问const表示只读常量,为类所有----->值不可改,为类所有static (为类所有) readonly(值不可改)-----------...
分类:
其他好文 时间:
2014-07-18 15:24:41
阅读次数:
159
在配置中加上location ~ .*\.(php|php5)?$ {fastcgi_pass 127.0.0.1:9000;fastcgi_read_timeout 700;fastcgi_index index.php;include fastcgi.conf;}
分类:
Web程序 时间:
2014-07-18 15:17:43
阅读次数:
335
Yii2的安装第一步:把下载的compser.phar包放在项目根目录下,把yii2的文件也放到项目的根目录下。第二步:dos命令下进入项目目录第三步:使用命令创建yii应用php composer.phar create-project --prefer-dist --stability=dev ...
Description
Your task is to read a picture of a chessboard position and print it in the chess notation.
Input
The input consists of an ASCII-art picture of a chessboard with chess pieces on positio...
分类:
其他好文 时间:
2014-07-18 11:03:28
阅读次数:
305
ASM存储扩容操作其实很简单,无法就是向DiskGroup(简称DG)里添加物理磁盘,增加DG的存储空间。说来简单,其实操作过程中有很多小细节要注意,否则,带来的后果是灾难性的。 ASM扩容操作步骤(以AIX操作系统为例):(1)扫盘 cfgmgr -v 命令执行操作系统扫盘操作,需要在每个节点上....
分类:
其他好文 时间:
2014-07-18 10:19:31
阅读次数:
217
http://www.cnblogs.com/lovebread/archive/2009/12/24/1631108.html[Python]读写文件方法http://www.cnblogs.com/xuxn/archive/2011/07/27/read-a-file-with-python.h...
分类:
编程语言 时间:
2014-07-18 09:34:22
阅读次数:
240
我下载的是voc-release51.按照这篇文章,都操作了一遍:http://blog.csdn.net/pozen/article/details/7023742#quote2.运行demo不成功 继续按照http://cfanz.cn/index.php?c=article&a=read&id...
#define EV_TIMER_RESOLUTION 1 /* 1 msec */#define EV_READ_EVENT EPOLLIN#define EV_WRITE_EVENT EPOLLOUTstruct ev_event;struct ev_timer;typedef void ...
分类:
其他好文 时间:
2014-07-17 22:37:16
阅读次数:
276
【Android】Android 移动应用数据到SD在应用的menifest文件中指定就可以了,在 元素中包含android:installLocation 属性,设置其值为"internalOnly"即可,如下: android:installLocation 还有另外两个属性值:"prefer....
分类:
移动开发 时间:
2014-07-17 18:25:16
阅读次数:
310