查看TCP几种状态的总数netstat -n | awk '/^tcp/ {++S[$NF]} END {fo (a in S). print a, S[a]}'按IP查看连接数排序netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq...
分类:
其他好文 时间:
2015-01-30 15:00:16
阅读次数:
184
题目链接:http://codeforces.com/problemset/problem/506/D
题目大意:
给出n个顶点,m条边,每条边上有一个数字,代表某个颜色。不同数字代表不同的颜色。有很多个询问,每个询问问有多少条纯种颜色的路径使得某两个点联通。
分析:
这个题一看就想用并查集来搞,每种颜色用一个并查集处理。对于输入的每条边,我们只需要将这两个点在这条边的颜色对应的并查集中合...
分类:
其他好文 时间:
2015-01-30 09:05:02
阅读次数:
697
.graph { width: 400px; height: 25px; border: 1px solid #f8b3d0; }.bar { background-color: #ffe7f4; display: block; float: left; height: 100%; text-ali...
分类:
Web程序 时间:
2015-01-29 15:55:13
阅读次数:
169
题目:
Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:
Only one letter can be changed at a timeEach intermediate...
分类:
编程语言 时间:
2015-01-29 09:34:19
阅读次数:
1950
A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the...
分类:
其他好文 时间:
2015-01-28 14:22:47
阅读次数:
172
uva 140 Bandwidth
Given a graph (V,E) where V is a set of nodes and E is a set of arcs in VxV, and an
ordering on the elements in V, then the bandwidth of a node
v is defined as the maxim...
分类:
其他好文 时间:
2015-01-28 09:51:07
阅读次数:
137
一、简单介绍cut的用法:1.-f提取第几列2.-d按照指定分隔符分隔列二、cut的优点和缺点:优点:用cut来取列,简单方便缺点:a.cut只能取用制表符分隔的列。非制表符分隔的列,df-h的输出的结果就不能取b.cut不能自定义列的顺序c.这两个缺点awk都可以实现三、cut命令使用:1.查看..
分类:
其他好文 时间:
2015-01-27 18:40:03
阅读次数:
169
上一篇文章介绍了Qt Quick和Scene Graph的一些理论上的内容。这也是我最新的研究成果。接下来我要介绍一下如何使用Scene Graph来制作一些好玩的效果。这也是我进行一次Scene Graph的尝试。我的目标是希望在Scene Graph这一套渲染框架下实现一个带有纹理的立方体,并且旋转。花了几天,虽然不是那么满意,但是已经告一段落了。...
分类:
其他好文 时间:
2015-01-27 18:29:26
阅读次数:
310
1、Controller中添加负载测试时,最后运行完提示the following graph s were not created。导致最后没有数据报表生成。 解决方法:在result中将auto load analysis 和 auto collate results去掉即可。2、VuGen中....
分类:
其他好文 时间:
2015-01-26 18:52:49
阅读次数:
268
上一篇文章初步介绍了Qt新渲染底层Scene Graph,我们该如何利用这个框架为应用程序增添绚丽的效果呢?首先,我们要明确利用Scene Graph开发的目的是什么。如果是简单的,纯粹的显示2D图形界面,那么直接利用构建在Scene Graph之上的Qt Quick和Qt Quick Widget即可。如果觉得Qt Quick为我们提供的功能不够,在QML这一层无法很好地实现,那么我们或许需要考虑更低一层的Scene Graph了。一个使用Scene Graph的常见需求就是实现3D模型的渲染以及2D图元...
分类:
其他好文 时间:
2015-01-24 00:31:07
阅读次数:
327