说起编辑器,可能大部分人要推荐的是Vim和Emacs,本人用过Vim,功能确实强大,但是不是很习惯,之前一直有朋友推荐SUblime Text 2这款编辑器,然后这段时间就试了一下,就深深地喜欢上这款编辑器了,对于类似的编辑器,我用过notepad2、notepad++、 Editplus、Ultr...
分类:
其他好文 时间:
2014-07-16 16:57:14
阅读次数:
219
Searching
To open the search panel for the active file, press
Ctrl + F. Someoptions and actions available through this panel can be controlled from thekeyboard:
Toggle Regular Expression...
分类:
其他好文 时间:
2014-07-16 16:32:20
阅读次数:
187
Search and Replace
Sublime Text features two main types of search:
Search - Single FileSearch - Multiple Files
We’ll examine them in turn, but first let’s talk about a powerful tool for searc...
分类:
其他好文 时间:
2014-07-16 16:18:52
阅读次数:
312
Search and Replace - Multiple Files
Searching
To open the search panel for files, press Ctrl
+ Shift +
F. You can use thekeyboard to control some search panel options and search actions:
...
分类:
其他好文 时间:
2014-07-16 16:17:14
阅读次数:
212
1.函数指针1.1 普通成员函数指针包含类名信息以及const属性,指向具体函数是必须加上&符号。#include using namespace std;class Test{ public: void setValue(const string &s, int a){ ...
分类:
编程语言 时间:
2014-07-16 15:33:15
阅读次数:
287
#!/bin/bashimage_list=$(ls *.png)for imag in ${image_list}do if test -f $imag then xxd -i ${imag} >> test.h fidone参考:http://www.cnblo...
分类:
编程语言 时间:
2014-07-16 15:29:12
阅读次数:
260
我们在安装完MySql服务器,设置好MySql的root用户密码后,就直接开始使用了,其实这样的MySql服务器还存在着一些不安全因素,本篇演示一下用命令mysql_secure_installation来安全初始化我们的MySql服务器。01[root@test ~]# /usr/bin/mysq...
分类:
数据库 时间:
2014-07-16 15:01:06
阅读次数:
314
1、将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn: // 192.168. 1.1 / pro /domain简写:svn co2、往版本库中添加新的文件svn add file例如:svn add test.p...
分类:
系统相关 时间:
2014-07-16 14:52:17
阅读次数:
355
如何进行Mongodb测试?
我们在java中使用Mongodb作为数据库进行存储的时候,怎么样对于进行测试呢?一种可能直接的方式就是在setUp中getDB,然后在tearDown里面dropDatabase。这样的方式相对来说比较慢。一种更好的方式就是使用fake的数据库,比如embedded的Mongodb用于测试。http://xunitpatterns.com/Test%20Doubl...
分类:
数据库 时间:
2014-07-16 14:07:53
阅读次数:
344
UIImage *image = [[UIImage imageNamed:@"test.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 10)];其中Insets这个参数的格式是(top,left,bottom,right)...
分类:
移动开发 时间:
2014-07-16 14:00:47
阅读次数:
216