storm的DRPC模式的作用是实现从远程调用storm集群的计算资源,而不需要连接到集群的某一个节点。OK。那么storm实现DRPC主要是使用LinearDRPCTopologyBuilder这个类。下面就先来看看一个简单的例子,它的源码的github上。import backtype.st.....
分类:
其他好文 时间:
2015-03-07 18:39:40
阅读次数:
201
Title:Nmap Snote --2011-11-15 21:28用Nmap上瘾了,怕以后忘记,也就记一下。Nmap-v-sS-n-p1-65535IPNmap-v-sS-p1-65535-n-oXscan.xml-P0IPNmap-v-sT-n-p1-65535-PNIPNmap-v-p1-6...
分类:
其他好文 时间:
2015-03-07 14:04:45
阅读次数:
121
ZeroMQ API 目录:http://www.cnblogs.com/fengbohello/p/4230135.html—————————————————————————————————————ZeroMQ 官方地址:http://api.zeromq.org/4-1:zmq-proxy-st...
分类:
其他好文 时间:
2015-03-07 14:03:17
阅读次数:
227
两道水题,用来熟悉HOJ 的提交系统。1002 需要考虑溢出。直接贴出代码:#include using namespace std;int main() { int a, b; while (cin >> a >> b) { cout using namespace st...
分类:
其他好文 时间:
2015-03-06 23:37:25
阅读次数:
137
分享一款全屏响应式的HTML5和CSS3页面切换效果。这个页面布局效果对于那些页面要求固定100%高度和宽度的网站和APP来说是十分有用的。效果图如下:在线预览源码下载HTMLwrapper div的class为st-container,里面包含作为导航按钮的radio和用于页面切换的面板st-sc...
分类:
Web程序 时间:
2015-03-06 14:02:15
阅读次数:
167
题目描述: 给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 #include using namespace std;int main(){ int a[10005]; int count,i,j; int st...
分类:
其他好文 时间:
2015-03-05 20:50:50
阅读次数:
111
#include#includeusing namespace std ;bool map[50][20] ;int vis[50][20] ;int a[50][20] ;int row , col ;int T ;char st[20] ;int move [][2] = {-1 , 0 , 0...
分类:
其他好文 时间:
2015-03-05 19:03:12
阅读次数:
145
1.Length --取字符串长度string x = Console.ReadLine(); int i = x.Length; Console.WriteLine(i);执行结果: 2.Substring(从哪一位开始,截取几位) --截取字符串,从第六位往后截取3位,包括空格在内st...
分类:
其他好文 时间:
2015-03-05 18:43:40
阅读次数:
133
题目大意给出n个人的权值,每次要求将两队人合成一堆,或者杀掉一堆人中的权值最小的那个人。问每次删除的人的权值是多少。思路就是可并堆,没了。我挑最简单的随机堆写的。CODE#include
#include
#include
#include
#define MAX 1000010
using namespace st...
分类:
其他好文 时间:
2015-03-05 08:05:55
阅读次数:
164
oracle 截取字符(substr),检索字符位置(instr) case when then else end语句使用 收藏常用函数:substr和instr1.SUBSTR(string,start_position,[length]) 求子字符串,返回字符串解释:string 元字符串 st...
分类:
数据库 时间:
2015-03-04 16:38:21
阅读次数:
169