一、单行内容的居中只考虑单行是最简单的,无论是否给容器固定高度,只要给容器设置line-height和height,并使两值相等,再加上over-flow: hidden就可以了.middle-demo-1{height: 4em;line-height: 4em;overflow: hidden;...
分类:
Web程序 时间:
2014-07-16 23:10:39
阅读次数:
254
Hyper-V Over SMB3.0为Hyper-v宿主机和故障转移群集做防病毒排除微软SMB 3.0文件共享协议新特性介绍
分类:
其他好文 时间:
2014-07-10 12:22:31
阅读次数:
133
译者注:这是原文地址。另外,关键的单词我保留原文】作者:Hasselt University -Expertise Centre for Digital Media1. 引言这个是 EMIPLIB 的说明手册,EMIPLIB 即 EDM Media over IP libray。这个库开发于 Has...
分类:
其他好文 时间:
2014-07-10 00:54:22
阅读次数:
273
KVM I/O slowness on RHEL 6 http://www.ilsistemista.net/index.php/virtualization/11-kvm-io-slowness-on-rhel-6.html?limitstart=0 Over one year has passe...
分类:
其他好文 时间:
2014-07-07 20:21:46
阅读次数:
397
Https协议:SSL建立过程分析web訪问的两种方式:http协议,我们普通情况下是通过它訪问web,由于它不要求太多的安全机制,使用起来也简单,非常多web网站也仅仅支持这样的方式下的訪问.https协议(Hypertext Transfer Protocol over Secure Socke...
分类:
其他好文 时间:
2014-07-07 19:02:27
阅读次数:
238
Problem Description:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ...
分类:
其他好文 时间:
2014-07-07 16:02:55
阅读次数:
259
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:
其他好文 时间:
2014-06-30 23:36:56
阅读次数:
211
前言
在做需求时,经常遇到多个目录,也就是多个维度进行join,这里分析一下,数据是怎么流动的。
1、多目录输入
使用MultipleInputs.addInputPath() 对多目录制定格式和map
2、数据流分析
map按行读入数据,需要对不同的输入目录,打上不同的标记(这个方法又叫reduce端连接),map在输出后会进行partition和sort,按照key进行排序,然后输...
分类:
其他好文 时间:
2014-06-29 23:09:07
阅读次数:
348
1:flash_image介绍
也许很少人使用该工具,但flash_image对于调试uboot或者kernel和root相关的人来说用处还是比较大。falsh_image的使用方法:
usage: flash_image type [partition|device] [image_file_path]
type: MTD、EMMC、INAND
partition:根据平...
分类:
其他好文 时间:
2014-06-28 09:17:22
阅读次数:
231
在Kafka中,LogManager负责管理broker上所有的Log(每一个topic-partition为一个Log)。通过阅读源代码可知其具体完成的功能如下:
1. 按照预设规则对消息队列进行清理。
2. 按照预设规则对消息队列进行持久化(flush操作)。
3. 连接ZooKeeper进行broker、topic、partition相关的ZooKeeper操作。
4. 管理brok...
分类:
其他好文 时间:
2014-06-28 08:25:21
阅读次数:
208