06 2015 档案

摘要:1、准备[root@localhost src]# rpm -qa | grep -i pptppptp-setup-1.7.2-8.1.el6.i686pptp-1.7.2-8.1.el6.i6862、安装yum -y install pptp pptp-setup3、启动pptpsetup --... 阅读全文
posted @ 2015-06-26 22:42 踏雪无痕SS 阅读(201) 评论(1) 推荐(0) 编辑
摘要:18位身份证标准在国家质量技术监督局于1999年7月1日实施的gb11643-1999《公民身份号码》中做了明确的规定。gb11643-1999《公民身份号码》为gb11643-1989《社会保障号码》的修订版,其中指出将原标准名称"社会保障号码"更名为"公民身份号码",另外gb11643-1999... 阅读全文
posted @ 2015-06-24 21:32 踏雪无痕SS 阅读(3714) 评论(0) 推荐(0) 编辑
摘要:一、配置参数./configure --prefix=/data/app/php --with-config-file-path=/etc --with-mysql=/usr\--with-mysqli=/usr/bin/mysql_config --with-iconv-dir --with-fr... 阅读全文
posted @ 2015-06-17 23:52 踏雪无痕SS 阅读(1377) 评论(0) 推荐(0) 编辑
摘要:一、安装xdebug1、编译安装xdebug,也可以使用pecl install xdebugwget http://xdebug.org/files/xdebug-2.3.2.tgztar -zxvf xdebug-2.3.2.tgzcd xdebug-2.3.2phpize./configu... 阅读全文
posted @ 2015-06-16 22:09 踏雪无痕SS 阅读(1939) 评论(0) 推荐(0) 编辑
摘要:'example', 'imagePath'=>'./uploads/thumb/', 'echoType'=>'file')); * th>setThumb(srcImage, 384, 300, 'prorate'); */ private $imagepr... 阅读全文
posted @ 2015-06-13 01:29 踏雪无痕SS 阅读(384) 评论(0) 推荐(0) 编辑
摘要:基本算法全排列算法有这么几种:(A)字典序法(B)递增进位制数法(C)递减进位制数法(D)邻位对换法废话不多说,直接上代码C代码#include #define swap(a,b){long temp=*a;*a=*b;*b=temp;}static int i=0; ... 阅读全文
posted @ 2015-06-12 22:34 踏雪无痕SS 阅读(605) 评论(0) 推荐(0) 编辑
摘要:#include #include #define ElemType inttypedef struct node{ ElemType data; struct node *next;}node,*link;void display(link list);//使用头插法link createH(l... 阅读全文
posted @ 2015-06-09 23:14 踏雪无痕SS 阅读(491) 评论(0) 推荐(0) 编辑
摘要:一、安装xhprof 二、配置PHP.ini 三、测试 如果查看[View Full Callgraph]的时候,却提示如下:Error: either we can not find profile data for run_id 4d7f0bd99a12f or the threshold 0. 阅读全文
posted @ 2015-06-04 23:29 踏雪无痕SS 阅读(1046) 评论(0) 推荐(0) 编辑
摘要:一、介绍匿名函数(Anonymous functions),也叫闭包函数(closures),允许 临时创建一个没有指定名称的函数。最经常用作回调函数(callback)参数的值。当然,也有其它应用的情况。二、使用场景1、动态调用静态类的时候3、赋值给一个普通的变量4、使用use从父域中继承_fac... 阅读全文
posted @ 2015-06-04 22:03 踏雪无痕SS 阅读(6678) 评论(0) 推荐(0) 编辑
摘要:一、语法{EXPLAIN | DESCRIBE | DESC} tbl_name [col_name | wild]{EXPLAIN | DESCRIBE | DESC} [explain_type] SELECT select_optionsexplain_type: {EXTENDE... 阅读全文
posted @ 2015-06-02 22:54 踏雪无痕SS 阅读(431) 评论(0) 推荐(0) 编辑
摘要:场景:PHP读取超大文件,例如1G的日志文件,我这里使用的是400M的access.log文件1、使用file直接读取";echo endtimestarttime;function microtime_float(){ list(usec,sec) = explode(" ", ... 阅读全文
posted @ 2015-06-02 17:52 踏雪无痕SS 阅读(819) 评论(0) 推荐(0) 编辑
摘要:一.前言一致性哈希(Consistent Hashing),最早由MIT的Karger于1997年提出,主要用于解决易变的分布式Web系统中,由于宕机和扩容导致的服务震荡。现在这个算法思路被大量应用,并且在实践中得到了很大的发展。二.算法设计1.问题来源在做服务器负载均衡时候可供选择的负载均衡的算法... 阅读全文
posted @ 2015-06-02 15:44 踏雪无痕SS 阅读(985) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示