上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 329 下一页
摘要: SQL Server 2012引入了列存储索引,对每列的数据进行分组和存储,然后联接所有列以完成整个索引。这不同于传统索引,传统索引对每行的数据进行分组和存储,然后联接所有行以完成整个索引。在访问基于行存储的索引时,如果要查询一个字段需要将整个Page读入内存,所以默认会读到所有行的数据:通过上面的图片可以看出,如果一个查询只想查询字段A的值,代价是读取所有的页面,包括了不需要的字段B,C,D,E。与行存储模式相比,使用列存储只需要读取单独的列数据,这样可以减小IO的消耗,同时提供缓存的使用。但是列存储索引是如何在磁盘存储的?如果我们只是将列的数据存储在一起,如何在查询的时候重新创建成行数据。 阅读全文
posted @ 2013-07-19 18:33 jlins 阅读(257) 评论(0) 推荐(0)
摘要: 网络数据包检测数据包捕获(sniffer):是指在网络上进行数据收集的行为,需要通过网卡来完成。三种访问方式:BSD Packet Filter(BPF)SVR4 Datalink Provider Interface(DLPI)linux SOCK_PACKET interfacelibpcap库安装:apt-get install libpcap-dev常用API捕获数据包 查找缺省的用来捕获数据网络设备 char *pcap_lookupdev (char *errbuf )//出错时保存系统返回的错误信息。 返回值: 成功时返回指向设备名称的指针, 失败返回NULL... 阅读全文
posted @ 2013-07-19 18:33 jlins 阅读(605) 评论(0) 推荐(0)
摘要: c# 一串数字“1122331111155”,要输出到DataGridview控件上,但是要逐个数字读取,如果上一个数字与下一个相同,则排成一列,不相同,则另外排成一列。如“1122331111155”,输出的效果是,列一:11,列二:22,列三:33,列四:11111,列五:55。 如下: stringnumberStr="1122331111155"; stringtemp=string.Empty; stringcolumn=string.Empty; ListlstColumn=newList(); numberStr.ToCharArray().ToList(). 阅读全文
posted @ 2013-07-19 18:30 jlins 阅读(174) 评论(0) 推荐(0)
摘要: #coding=utf-8 ''' Created on 2013-7-17@author: zinan.zhang '''import re import time import httplib2 import urllib from bs4 import BeautifulSoup#路径 savePath = 'F://TDDOWNLOAD//aNO.4//'#获取url def url_xunhuan(url,list): return url + list#下载图片的时候 time.sleep(0.5)#先sleep,再读 阅读全文
posted @ 2013-07-19 18:28 jlins 阅读(1927) 评论(0) 推荐(0)
摘要: 代码如下: #includeint main(){ printf("int:%d bytes\n",sizeof(int)); printf("char:%d bytes\n",sizeof(char)); printf("short:%d bytes\n",sizeof(short)); printf("long:%d bytes\n",sizeof(long)); printf("unsigned int:%d bytes\n",sizeof(unsigned int)); printf(& 阅读全文
posted @ 2013-07-19 18:26 jlins 阅读(580) 评论(0) 推荐(0)
摘要: #为了提高性能,文件系统一般都是以 relatime形式挂载进来的,见:/etc/fstab#更新一下mtime,这样,编译过程中用到的文件的atime都会被更新find . -exec touch -m {} \; && touch ../tag make mrproper && make allnoconfig && make menuconfig #在allnoconfig的基础下,通过menuconfig加入如下配置,以方便调试 ******************************************************* 阅读全文
posted @ 2013-07-19 18:25 jlins 阅读(374) 评论(0) 推荐(0)
摘要: 前序遍历 非递归 public void preordernorec(TreeNode root){ //System.out.println("先序遍历(非递归):"); //用数组模拟栈,假设有节点个数不超过32个 TreeNode[] stack = new TreeNode[32]; for(int i =0;i0){ while(pnode!=null){ System.out.print(pnode.getKey()+","); stack[index++] = pnode; pnode = pnode.getLeftchlid(); } . 阅读全文
posted @ 2013-07-19 18:23 jlins 阅读(2802) 评论(1) 推荐(0)
摘要: 系统里有一个 temp.. 的文件夹,估计是中木马了进入DOS进入该文件所在的位置rd /S /Q temp..\\这样就不会提示 文件夹不为空 的错误了。 阅读全文
posted @ 2013-07-19 18:19 jlins 阅读(201) 评论(0) 推荐(0)
摘要: Activity: 1:创建一个类继承Activity或者它的子类 public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button=(Button)findViewById(R.id.button1);//获取按钮 button.setOnClickListen... 阅读全文
posted @ 2013-07-19 18:16 jlins 阅读(553) 评论(0) 推荐(0)
摘要: 依旧是线段树基础题询问区间的最大值和最小值之差,只有询问,没有插入删除。继续理解基础线段树 #include #include #include #include #include #include #include #include #include #include #include #include #include //形如INT_MAX一类的#define MAX 50005#define INF 0x7FFFFFFF#define REP(i,s,t) for(int i=(s);i b) return a; return b;}int minn(int a,int ... 阅读全文
posted @ 2013-07-19 18:15 jlins 阅读(213) 评论(0) 推荐(0)
上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 329 下一页