关于KMP 用途:字符串匹配,求周期 性质:$i next[i]$是循环节(画图可知) C++ fail[0]=fail[1]=1; for(int i=1;i ...
分类:
其他好文 时间:
2018-09-08 21:07:37
阅读次数:
138
HashMap在高并发环境下会产生的问题 HashMap其实并不是线程安全的,在高并发的情况下,会产生并发引起的问题: 比如: HashMap死循环,造成CPU100%负载 触发fail fast 下面逐个分析下出现上述情况的原因: HashMap死循环的原因 HashMap进行存储时,如果size ...
分类:
其他好文 时间:
2018-09-07 20:13:18
阅读次数:
247
class pal { public: int next[maxn][26]; int fail[maxn]; char str[maxn]; int len[maxn]; int last; int tot; int n; // 记录节点长度,同时返回一个节点 inline int node(in... ...
分类:
其他好文 时间:
2018-09-06 14:28:29
阅读次数:
97
eshop-detail-test: listen: 127.0.0.1:1111 hash: fnv1a_64 distribution: ketama timeout:1000 redis: true servers: - 127.0.0.1:6379:1 test-redis-01 - 127 ...
分类:
其他好文 时间:
2018-09-05 19:50:03
阅读次数:
523
AbstractList类中有一个属性 protected transient int modCount = 0; api中对它的描述是: 此列表已被结构修改的次数。 结构修改是改变列表大小的那些修改,或以其他方式扰乱它,使得正在进行的迭代可能产生不正确的结果。 该字段由迭代器和列表迭代器实现使用, ...
分类:
其他好文 时间:
2018-09-05 18:08:25
阅读次数:
205
在使用二进制方式编译镜像的时候,neutron的sfc-agent提示如下错误ERROR:kolla.image.build:neutron-sfc-agent Failed with status: error查找编译过程中的日志记录信息,有如下提示信息ERROR:kolla.image.buil ...
分类:
其他好文 时间:
2018-09-05 17:49:44
阅读次数:
173
1、启动nginx服务报错 环境:centos 6.9,yum安装的nginx,启动报错 [root@lnmp ~]# nginx -tnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: [emerg] soc ...
分类:
其他好文 时间:
2018-09-04 23:34:54
阅读次数:
282
参考了其他wp之后才慢慢做出来的 记录一下 首先checksec一下 有canary 放到IDA看下源码 运行流程大概是 有三个fork 即三次输入机会,于是无法爆破cannary 本题用的是SSP leak,当canary被覆盖是就会触发__stack_chk_fail函数,其中会打印字符串arg ...
分类:
其他好文 时间:
2018-09-04 01:55:20
阅读次数:
461
示例: 2. wx.redirectTo() , 关闭当前页面,跳转到非tabBar的某个页面, 3. 使用组件 <navigator> 示例: <navigator url='../test/test'>点击跳转</navigator> 4. wx.switchTab ,跳转到tabBar的某个页 ...
分类:
微信 时间:
2018-09-03 13:34:00
阅读次数:
242
①无提示无法通过/var/lib/mysql/mysql.sock连接数据库; [root@proeim mysql]# mysql -uxxx -pxxx -Dxxx -A ERROR 2002 (HY000): Can't connect to local MySQL server throug ...
分类:
数据库 时间:
2018-09-03 12:10:46
阅读次数:
188