一、基本数据结构 1 union m_block 2 { 3 union m_block* next; 4 unsigned int size; 5 }; 6 7 struct m_list 8 { 9 union m_block* free;...
分类:
系统相关 时间:
2014-06-19 07:59:56
阅读次数:
309
1.dd:并不是删除,而是剪切,虽然剪切有删除的效果,但是有时会出错,加入用一行替换另一行:现复制(yy)一行,然后跳到另一行,“删除”(dd)该行,然后想要粘帖上之前复制的那行,按下(yy),贴上的是刚才删除的那行而非我们之前复制的那行。
分类:
其他好文 时间:
2014-06-18 23:56:07
阅读次数:
320
进程:是指运行中的应用程序,每个进程都有自己独立的地址空间(内存空间)线程:线程是轻量级的进程县城没有独立的地址空间(内存空间)线程是由进程创建的(寄生在进程中)一个进程可以拥有多个线程——多线程编程线程的五种状态:新建状态new、就绪状态Runnable、运行状态Running、阻塞状态Block...
分类:
编程语言 时间:
2014-06-18 19:20:49
阅读次数:
263
css:#profile_block{text-align:center;position:absolute; top:60px; right:10px;}#blog-calendar{border-radius: 7px;background:#fff;}#p_b_follow{padding-t...
分类:
其他好文 时间:
2014-06-18 19:09:20
阅读次数:
198
定义IntPair 以及IntPair(first,second)的compareto,先比較first的大小,再比較second的大小定义FirstPartitioner是为了让partition的时候依照IntPair的first来做为选择reduce的根据定义FirstGroupingComp...
分类:
其他好文 时间:
2014-06-18 18:57:15
阅读次数:
289
我们知道,一个典型的Map-Reduce过程包 括:Input->Map->Partition->Reduce->Output。Partition负责把Map任务输出的中间结果 按key分发给不同的Reduce任务进行处理。Hadoop 提供了一个很有用的partitioner类KeyFieldBa...
分类:
编程语言 时间:
2014-06-18 17:00:55
阅读次数:
332
XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
最近在做框架的时候,需要加载.html文件和.json文件的时候出现了一下一个错误...
分类:
数据库 时间:
2014-06-16 20:26:18
阅读次数:
266
经常需要根据IP地址统计apache站点访问量,最基本的脚本.根据IP访问量降序排列:#!/bin/bash
#Script_name:access_count
acc_log=/usr/local/apache2/logs/access_log
/bin/awk‘{print$1}‘$acc_log|sort|uniq-c|sort-nr执行效果:[root@zabbix~]#shaccess_count
94989192.168.1..
分类:
移动开发 时间:
2014-06-16 18:18:50
阅读次数:
332
一、题目1、Linux挂载Winodws共享文件夹2、查看http的并发请求数及其TCP连接状态:3、用tcpdump嗅探80端口的访问看看谁最高4、统计/var/log/下文件个数5、查看当前系统每IP连接数6、shell下32位随机密码生成7、统计出apache的access.log中访问量最多的5个IP8、如何查看二进制文..
分类:
系统相关 时间:
2014-06-16 17:05:49
阅读次数:
329
BACKGROUNDEmbodiments of this invention relate to RDMA (remote direct memory access) data transfer in a virtual environment.Traditional RDMA allows da...
分类:
其他好文 时间:
2014-06-16 13:10:49
阅读次数:
307