泊松分布的概率函数为: \[P(X=k)=\frac{\lambda^k}{k!}e^{-\lambda},k=0,1,2,\cdots\] 如果 $X_i \sim P(\lambda_i)$,并且 互相独立,那么: \[Y=\left( \sum\limits_{i=1}^n{X_i} \rig...
分类:
其他好文 时间:
2015-11-09 18:39:14
阅读次数:
323
优化运维服务器1、设置linux系统最大可打开文件数编辑文件/etc/security/limits.conf,添加两行参数:在CODE上查看代码片派生到我的代码片*softnofile65535*hardnofile655352、如果服务器装有Redis,这个参数一定要加,不然Redis有很大的可能无法同步数据到磁盘这两行参数编辑..
分类:
其他好文 时间:
2015-10-30 02:15:55
阅读次数:
168
为了弄清楚COM库的运行原理,特意做了这个实验: #include "stdafx.h"#include "objbase.h"#include "atlcomcli.h"#include "limits"//#include "commctrl.h"#import "msscript.ocx" n...
分类:
其他好文 时间:
2015-10-25 17:40:49
阅读次数:
103
Problem Description:There are N point on X-axis . Miaomiao would like to cover them ALL by using segments with same length.There are 2 limits:1.A poin...
分类:
其他好文 时间:
2015-10-21 17:29:43
阅读次数:
185
http://www.cnblogs.com/cvbnm/articles/1947743.html多年以前,Microsoft 幹了一件比 #define N 3 還要蠢的蠢事,那就是在 放入了 min/max 這兩個宏命令(macros)。 #define max(a,b) (((a) > (....
分类:
编程语言 时间:
2015-10-18 16:52:47
阅读次数:
183
http://stackoverflow.com/questions/9654148/android-asynctask-threads-limitsantonyt:All AsyncTasks are controlled internally by a shared (static)Thread...
分类:
移动开发 时间:
2015-10-18 16:44:18
阅读次数:
170
在开发运维的时候我们常常会遇到类似“Socket/File:Can’topensomanyfiles”,“无法打开更多进程”,或是coredump过大等问题,这些都可以设置资源限制来解决。今天在教某位客户设置最大文件数方法时,搜索网上的方法时发现各家说法并不一致,便写了这篇文档。通常对linux某个..
分类:
系统相关 时间:
2015-10-15 18:48:29
阅读次数:
230
最近mysql的一个参数max_connections参数总是变为214,my.cnf中的参数,控制台修改,都无法生效。最后经过检查发现,是因为openfiles还是默认的参数1024,修改/etc/security/limits.conf文件,添加一下内容*softnofile102400*hardnofile102400保存退出。然后,重新连接服务器(..
分类:
数据库 时间:
2015-10-10 18:42:37
阅读次数:
428
matlab中经常碰到nan,inf等特殊“数”,而在C++中也有相应的表示:例如std::numeric_limits ::quiet_NaN ();可以得到浮点型的nan,但是最近在使用中发现一个奇怪的现象,编译环境 Ubuntu12.04 & Qt 5.0.2 & g++4.4当g++添加fa...
分类:
编程语言 时间:
2015-10-09 11:47:05
阅读次数:
190
大并发高负载下的PHP-FPM参数调优主要针对PHP在Linux下的参数调优调整文件描述符限制#ulimit-n1000000#vi/etc/security/limits.conf#SettingShellLimitsforFileDescriptors*softnofile1000000*hardnofile1000000禁止PHP代码文件所在分区的文件系统访问时间更新#vi/etc/fstab比..
分类:
Web程序 时间:
2015-10-05 11:46:28
阅读次数:
282