tmux里面用鼠标滚轮来卷动窗口内容在 tmux里面,因为每个窗口(tmux
window)的历史内容已经被tmux接管了,所以原来console/terminal提供的Shift+PgUp/PgDn所显示的内容并不是当前窗口的历史内容,所以要用C-b
[进入copy-mode,然后才能用PgUp/...
分类:
其他好文 时间:
2014-05-16 03:48:27
阅读次数:
374
【Multiple build commands for output file】
copy了多个同名文件,就会出现此警告,因为ios机制,所有copy的资源都放置在根目录下。
解决方法中在BuildPhases在CopyBundleResource中,只保留一个资源,或者重命名资源。
分类:
其他好文 时间:
2014-05-16 01:04:22
阅读次数:
251
iOS6 and Later改变UITextField 中占位符
提示文本的文字颜色在新版本中(iOS6以后)iOS提供一种 Key = value 属性的方式,来改变UI的属性内容。以UITextField为例
@property(nonatomic,copy) NSAttributedStri....
分类:
其他好文 时间:
2014-05-15 22:43:48
阅读次数:
436
先看看定义该类的头文件——CCRef.h 1
/**************************************************************************** 2
Copyright (c) 2010-2012 cocos2d-x.org 3 Copy...
分类:
其他好文 时间:
2014-05-15 22:01:38
阅读次数:
446
A linked list is given such that each node
contains an additional random pointer which could point to any node in the list
or null.Return a deep copy ...
分类:
其他好文 时间:
2014-05-15 21:00:06
阅读次数:
325
为了效率,copy算法可谓无所不用其极,通过分析copy算法能够体会STL的精妙。
首先是三个对外接口:
template // 泛化版本
inline OutputIterator copy(InputIterator first, InputIterator last,
OutputIterator result)
{
...
分类:
其他好文 时间:
2014-05-15 05:50:02
阅读次数:
315
在一个有reurn 返回值的函数里 如果申请了一段内存的话(alloc 或者copy) 这个时候不能够release 只能够使用autorelease
在返回到那个被接受到的指针里,由它去进行释放!!
如果是self.obj(或者某些类对应的 SomeClass.obj)这种类型的,就需要把self.去掉(因为这样子的申请出来的内存引用计数会被retain+1了)
...
分类:
移动开发 时间:
2014-05-15 04:40:44
阅读次数:
369
#(1)ssh-keygen#一直回车#(2)ssh-copy-id-i/root/.ssh/id_rsa.pub"-p2223192.168.0.100"#直接回车输入密码#(3)ssh-p2223192.168.0.100#不需要任何提示即可登录192.168.0.100,此步骤可做测试使用
分类:
其他好文 时间:
2014-05-15 01:04:19
阅读次数:
277
ReduceTask的运行
Reduce处理程序中需要执行三个类型的处理,
1.copy,从各map中copy数据过来
2.sort,对数据进行排序操作。
3.reduce,执行业务逻辑的处理。
ReduceTask的运行也是通过run方法开始,
通过mapreduce.job.reduce.shuffle.consumer.plugin.class配置shuffle的plugin,
...
分类:
其他好文 时间:
2014-05-14 20:23:57
阅读次数:
519
//只扩展为wstring,不考虑编码
std::wstringString2WString(conststd::string&str)
{
std::wstringwstr(str.length(),L‘‘);
std::copy(str.begin(),str.end(),wstr.begin());
returnwstr;
}
//只拷贝低字节至string中
std::stringWString2String(conststd::wstring&ws..
分类:
其他好文 时间:
2014-05-14 15:58:11
阅读次数:
262