最近在看minion的启动的源代码,一路曲折啊,经过一番努力,终于理解了流程。现在记录下,方便以后查阅。总体来说流程如下:1、解析命令行参数和minion配置文件,得到options和config字典2、设置日志(salt.log.setup.setup_logfile_logger负责)3、设置pidfile4、根据master参..
上一节已经完成了源码文件的读取,如果要将已经选择的文件保存为一个标签(Lable)。在VS我们只能对一个目录做标签,非常的不方便。如果用下面的方法,将选择的文件路径保存为一个List在打标签,就非常的灵活了。
保存为List的方法很简单,需要递归将已经选择的书中的文件保存一下。
这里为了显示方便,我先将其存入一个Listbox中,
listBox1.Items.Clear();
for (...
分类:
其他好文 时间:
2014-09-10 17:50:30
阅读次数:
155
1 可以直接循环list,放到一个新list里2 利用set public List removeDeuplicate(List arlList) { HashSet h=new HashSet(arlList); arlList.clear(); arlL...
分类:
其他好文 时间:
2014-09-10 12:28:10
阅读次数:
146
#include
#include
typedef void List;
typedef void ListNode;
List * List_Create();
void List_Clear(List * list);
void List_Destroy(List *list);
ListNode * List_Delete(List *list,int pos);
in...
分类:
其他好文 时间:
2014-09-09 23:08:49
阅读次数:
600
void WStrToUTF8(std::string& dest, const std::wstring& src){
dest.clear();
for (size_t i = 0; i < src.size(); i++){
wchar_t w = src[i];
if (w <= 0x7f)
...
分类:
其他好文 时间:
2014-09-09 18:39:29
阅读次数:
224
问题说明:在使用xtrabackup工具备份mariadb数据库时提示如下错误:InnoDB:Error:logfile./ib_logfile0isofdifferentsize5242880bytes
InnoDB:thanspecifiedinthe.cnffile50331648bytes!
innobackupex:Error:Thextrabackupchildprocesshasdiedat/usr/bin/innobackupexline2672...
分类:
数据库 时间:
2014-09-09 13:39:09
阅读次数:
312
First what I wanna make clear is that in the official website the detailed process of installation has been described. you could call it throught the link
http://docs.mongodb.org/manual/tutorial/ins...
分类:
数据库 时间:
2014-09-09 12:52:38
阅读次数:
219
链接:http://ued.taobao.org/blog/2009/12/the-practice-guidelines-of-interaction-design-clear-operational-entrance-of-effectivity/“操作入口明确”,就是指产品的任何一个功能都要有...
分类:
其他好文 时间:
2014-09-09 11:55:48
阅读次数:
216
链接:http://ued.taobao.org/blog/2010/01/the-practice-guidelines-of-interaction-design-make-labels-clear-and-attractive/导航标签彼此互斥、完全穷尽。导航标签其实就是一种文字表达形式,我们...
分类:
其他好文 时间:
2014-09-09 11:46:08
阅读次数:
246
2014-08-0416:33:57(1) map map定义形式 map map_name; map的基本操作函数:C++ Maps是一种关联式容器,包含“关键字/值”对 begin() 返回指向map头部的迭代器 clear() 删除所有元素 count() 返回指定元素出现的次数 e...
分类:
编程语言 时间:
2014-09-09 11:40:28
阅读次数:
239