查看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
倒过来从插入最短的木棒考虑
1638 Pole ArrangementThere are poles of height 1, 2, . . . , n in a row. If you look at these poles from the left side or the rightside, smaller poles are hidden by taller poles. Fo...
分类:
其他好文 时间:
2015-01-29 17:44:49
阅读次数:
160
在Javascript中,如果我们有一个对象但是又不知道它的构造函数时,如何获取它的原型对象呢? 在Chrome中或是FireFox浏览器中,我们可以直接使用对象的\_\_proto__属性获取它的原型对象。 function F(){}; var fo...
分类:
编程语言 时间:
2015-01-29 12:52:59
阅读次数:
197
ios7新增加的icon尺寸:76 x 76:Size for iPad 2 and iPad mini (standard resolution)120 x 120 :Size for iPhone and iPod touch (high resolution)152 x 152:Size fo...
分类:
移动开发 时间:
2015-01-29 09:17:49
阅读次数:
200
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-01-28 19:41:56
阅读次数:
173
Problem:Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest fo...
分类:
其他好文 时间:
2015-01-27 21:51:15
阅读次数:
147
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2015-01-27 14:45:03
阅读次数:
167
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2015-01-27 09:30:15
阅读次数:
169
本文转载至http://stackoverflow.com/questions/26460706/uialertcontroller-custom-font-size-colorup vote2down votefavorite3I am using new UIAlertController fo...
分类:
其他好文 时间:
2015-01-26 19:00:50
阅读次数:
1830
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-01-26 13:27:13
阅读次数:
148