码迷,mamicode.com
首页 >  
搜索关键字:sig    ( 4633个结果
关于c语言声明 void (*signal(int sig, void(*func)(int)))(int)的理解
刚开始看到这个 很蛋疼 还是慢慢理解 首先 void(*func)(int) 是一个指针 指向一个 返回值为void 参数为int的函数 是一个函数指针 具体理解http://zhidao.baidu.com/link?url=5GpEN7wPUhDlk_m-3drRHV9bGxv53tj818vtd1GIsyaVfyY1mdsFZfP6_2M_DNAfTQrh0qxMo_wXhK1Cj...
分类:编程语言   时间:2015-03-12 11:35:49    阅读次数:382
URAL 1925. British Scientists Save the World
1925. British Scientists Save the World Time limit: 1.0 second Memory limit: 64 MB The world is in danger! Aliens threw a mysterious device to Earth n years ago. Every year an unknown sig...
分类:其他好文   时间:2015-03-11 08:13:32    阅读次数:201
Linux定时器 使用
1.alarmalarm()执行后,进程将继续执行,在后期(alarm以后)的执行过程中将会在seconds秒后收到信号SIGALRM并执行其处理函数。#include #include #include void sigalrm_fn(int sig){ printf("alarm!\n"); a...
分类:系统相关   时间:2015-03-09 20:42:08    阅读次数:280
configparser读取含有中文的配置(Windows)
运行环境:Windows7.1 在 Python 3 中虽有encoding 参数,但是对于有BOM(如Windows下用记事本指定为utf-8)的文件,需要使用 utf-8-sig, 使用utf-8就没戏. 配置文件 (utf-8格式,带BOM) [test] a?=?中文 Python...
分类:Windows程序   时间:2015-03-09 00:37:14    阅读次数:474
java 项目的CAS搭建
CAS = Central Authentication Service,中央认证服务,一种独立开始指令协议。CAS 是 Yale 大学发起的一个开源项目,旨在为 Web 应用系统提供一种可靠的单点登录方法,CAS 在 2004 年 12 月正式成为 JA-SIG 的一个项目。 百度百科:ht...
分类:编程语言   时间:2015-03-06 22:01:13    阅读次数:255
Linux信号实践(5) --时间与定时器
三种不同精度的睡眠1.sleep#include unsigned int sleep(unsigned int seconds);RETURN VALUE  Zero if the requested time has elapsed, or the number of seconds left to  sleep,  if  the call was interrupted by a sig...
分类:系统相关   时间:2015-02-18 16:28:26    阅读次数:236
2015 QQ最新登录算法
首先还是取得验证码,抓包可得:http://check.ptlogin2.qq.com/check?regmaster=&pt_tea=1&uin=2630366651&appid=7000101&js_ver=10113&js_type=1&login_sig=jBX*GEgR-BFtNPRz-R...
分类:编程语言   时间:2015-02-17 14:03:06    阅读次数:203
RSS(Residual Sum of Squares)的自由度为什么是n-1呢
【转载请注明出处】http://www.cnblogs.com/mashiqi在回归问题中,偶尔我们会遇到求方差的估计的情况。举了例子,我们常常通过Gaussian分布${\cal N}(\mu ,{\sigma^2})$的样本集合$\{x_i\}_{i=1}^n$去估计分布的参数$\mu,\sig...
分类:其他好文   时间:2015-02-14 14:58:20    阅读次数:267
UNIX环境高级编程第10章信号10.3singal函数
// signals/sigusr.c 10-1 #include "apue.h" static void sig_usr(int); /* one handler for both signals */ int main(void) { if (signal...
分类:其他好文   时间:2015-02-06 20:16:36    阅读次数:176
slowsloris代码
#!/usr/bin/perl-wusestrict;useIO::Socket::INET;useIO::Socket::SSL;useGetopt::Long;useConfig;$SIG{‘PIPE‘}=‘IGNORE‘;#Ignorebrokenpipeerrorsprint<<EOTEXT;CCCCCCCCCCOOCCOOOOO888\@8\@8888OOOOCCOOO888888888\@\@\@\@\@\@\@\@\@8\@8\@\@\@\@888OOCooocccc::::CCCC..
分类:其他好文   时间:2015-02-02 20:03:51    阅读次数:523
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!