1.Q:vector的push_back()方法到底做了些什么? 为什么声明写的是void
push_back (const value_type&
val);A:的确,乍一看,似乎push_back方法添加了一个引用。哦,天啊,如果这个引用对象被析构了,那岂不是要出错。官方文档是这样写的Adds ...
分类:
其他好文 时间:
2014-05-21 20:36:55
阅读次数:
408
根据SPContentType新建ItemItem01["ContentTypeId"] =
LinkCT.Id;Item01.Update();取SharePoint Build-In ContentType或者ColumnSPContentType
LinkCT = web.ContentTyp...
代理模式【PROXY PATTERN】
header("Content-type: text/html; charset=UTF-8");
/**
* 什么是代理模式呢?我很忙,忙的没空理你,那你要找我呢就先找我的代理人吧,
* 那代理人总要知道被代理人能做哪些事情不能做哪些事情吧,那就是两个人具备同一个接口,
* 代理人虽然不能干活,但是被代理的人能干活呀。
*/...
分类:
Web程序 时间:
2014-05-21 15:47:31
阅读次数:
339
When you subtract two variables of type TIMESTAMP, you get an INTERVAL DAY TO SECOND which includes a number of milliseconds and/or microseconds depending on the platform. If the database is running o...
分类:
其他好文 时间:
2014-05-21 15:36:38
阅读次数:
488
series: [{
type: 'pie',
name: 'Browser share',
data: [
['Firefox', 45.0],
['IE', 26.8],
{
...
分类:
Web程序 时间:
2014-05-21 14:55:02
阅读次数:
348
今天在腾讯云的服务器被攻击后,apache启动报错,查找原因发现是磁盘空间不够no space left on device,
诡异的是df命令磁盘占用仅55%
继续查找原因,发现是iNode已满,即没有索引空间
这就好办了,首先定位哪个目录占用iNode最多,命令如下:
find */ ! -type l | cut -...
分类:
系统相关 时间:
2014-05-21 14:46:09
阅读次数:
363
v2.0更新内容:
1.支持Mybatis缓存,count和分页同时支持(二者同步)
2.修改拦截器签名,拦截Executor,签名如下:
@Intercepts(@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class}))
3.将Page类移到外面,方便调用...
分类:
其他好文 时间:
2014-05-21 14:40:56
阅读次数:
408
%{String}
用于创建一个使用双引号括起来的字符串,这个表示法与%Q{String}完全一样result = %{hello} puts "result is:
#{result}, Type is:#{result.class}" #>>result is: hello, Type i...
分类:
其他好文 时间:
2014-05-21 05:07:00
阅读次数:
347
首先来看默认使用:(AFNetworking2.2)这时出现下列错误:这个错误是AFNetworking报出的,实际上文件已经上传成功,服务器返回了正确的响应,可用fiddler抓包查看。默认情况下AFHTTPRequestOperationManager
对返回的数据采取JSON解析,并且会先判断...
分类:
Web程序 时间:
2014-05-21 03:42:49
阅读次数:
452