Valid Parentheses:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets m...
分类:
其他好文 时间:
2014-07-01 21:24:05
阅读次数:
180
案例:Web服务器:域名www.abc.com IP:192.168.21.129 电信单线路接入访问用户:电信宽带用户、移动宽带用户出现问题:电信用户打开www.abc.com正常,移动用户打开www.abc.com很慢,甚至打不开解决方案:在移动机房放置一台CDN代理服务器,通过智能DNS解析,...
分类:
Web程序 时间:
2014-07-01 21:00:13
阅读次数:
249
公司的图片服务器一直以来负载都比较高,原因是图片比较分散而且比较小。经常把iowait搞的特别的高。但是只有一台机器也法用squid,经测试squid和apache在同一台机器效果会很糟糕的。因为squid要写磁盘,Apache要读磁盘(本公司的情况是大量的随机读)。 经过测试,决定用lig...
分类:
其他好文 时间:
2014-07-01 20:53:05
阅读次数:
170
作者:shunz,出处:http://shunz.net/2008/06/mysql_discuz_.html 最近,帮一个朋友优化一个拥有20万主题,100万帖子,3万多会员,平均在线人数2000人的Discuz!论坛,采用Linux2.6+Apache2+mod_php5+MySQL5,服务器配...
分类:
数据库 时间:
2014-07-01 20:42:00
阅读次数:
306
ATAM 方法简介1.ATAM 是啥 ATAM 是一种基于场景评估方式,英文全称 Architecture TradeOff Analysis Method ATAM(架构权衡分析法)2.ATAM评估方法 ATAM 方法对软件架构进行评估的目的主要是 根据系统质量属性和业务需求评估决策结果,ATAM...
分类:
其他好文 时间:
2014-07-01 20:04:27
阅读次数:
279
KVM/QEMU hypervisor driver Project Links Deployment pre-requisites Connections to QEMU driver Driver security architecture Driver instances POSIX user...
分类:
其他好文 时间:
2014-07-01 19:14:26
阅读次数:
323
Given a string containing just the characters '(' and ')',
find the
length of the longest valid (well-formed) parentheses substring.For "(()",
the
longest valid parentheses substring is "()...
分类:
其他好文 时间:
2014-07-01 09:09:06
阅读次数:
156
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-06-30 23:46:14
阅读次数:
288
昨天客户突然要求将某个角色的所有权限都不分页的放在一个页面修改,本地测试OK,通过;但发布后,点击该页面提交后一直报下面的错误:异常信息: Operation is not valid due to the current state of the object.错误源:System.Web堆栈信息...
分类:
其他好文 时间:
2014-06-30 22:55:35
阅读次数:
407
错误代码:No
architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 armv7s)
1 xcodebuild 这个target的时候命令行报错。(yes 改为no)
LY_ACTIVE_ARCH=YES, active arch=x86...
分类:
其他好文 时间:
2014-06-30 18:04:12
阅读次数:
219