一、故事总有其背景年末将至,很多闲适的时间,于是刷刷微博,接触各种纷杂的信息——美其名曰“学习”。运气不错,遇到了一个新名词,uglifyjs. 据说是用来压缩JS文件的,据说还能优化JS,据说是基于node的,还据说比Google Closure Compiler更带感,哦?激起了我的好奇心。百之...
分类:
Web程序 时间:
2014-07-06 22:36:27
阅读次数:
247
初次安装使用GNS3,安装的版本是GNS3-0.8.6-all-in-one,本人也是菜鸟,安装时都是一路 Next,结果安装后运行出现了这样的问题,如图language里是没有选项的,解决方法把之前安装的GNS3,wireshark和winPcap彻底的卸载干净,重新安装。安装时不要勾选wires...
分类:
其他好文 时间:
2014-07-06 18:35:56
阅读次数:
387
将数据库集群升级到10.2.0.5之后,双节点服务器不断重启,查询oracle oprocd进程日志,信息如下:...
分类:
数据库 时间:
2014-07-04 09:26:03
阅读次数:
577
Keepalived LVS mysql集群 Percona xtradb cluster 负载均衡...
分类:
数据库 时间:
2014-07-04 08:46:56
阅读次数:
383
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of...
分类:
其他好文 时间:
2014-07-04 07:35:58
阅读次数:
215
1、用express开发站点时,怎么定义通用的头部和尾部
方案1:用类似asp时代的include添加,如ejs模板:
这里是内容。
注:..表示header.ejs在上一级目录,ejs扩展名可以去掉,直接写:include ../header
方案2:用类似于MVC的layout模板,这个要安装一个模块: npm install express-partials
...
分类:
Web程序 时间:
2014-07-04 07:15:24
阅读次数:
419
注意:前提是界面二被打开过未关闭,则用此方法即可实现在界面一中调用界面二的方法!界面一:publicclassOneActivityextendsActivity{@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_one);call..
分类:
其他好文 时间:
2014-07-04 06:00:26
阅读次数:
328
#400/500错误重试
#
#当服务返回400/500状态且当前pool中有存活的node重置http请求,并重新选择pool中的node。
#直到返回正常代码或者轮询完所有存活node后,接受新的http请求
whenCLIENT_ACCEPTED{
setretry0
}
whenHTTP_REQUEST{
sethttp_request[HTTP::request]
}
wh..
分类:
其他好文 时间:
2014-07-04 00:48:07
阅读次数:
681
Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL.
分类:
其他好文 时间:
2014-07-03 23:46:37
阅读次数:
389
问题:证明\[\sum_{k=1}^{n}\frac{1}{k}\notin\mathbb N,\forall n\geq2.\]证明 首先根据Chebyshev定理,在$(\frac{n}{2},n]$上必存在素数$p$,那么显然$p\mid n!$且\[p\mid\frac{n!}{k},k=....
分类:
其他好文 时间:
2014-07-03 23:41:26
阅读次数:
370