本地模式启动的.
package com.doctor.kafkajstrom;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.apache.commons.lang.RandomStringUtils;
import org.slf4j.Log...
分类:
编程语言 时间:
2014-10-30 22:37:43
阅读次数:
465
先上demo,在实际开发的时候,发现this的时候,就会心一斗,为了把这个this弄清楚,查了一些资料,用最简单的一句话就是当前调用对象是who,那么这个this就是who在第一个show方法中,首先我们定义的name 是属于window的,方法show也是属于window的,所以在调用show的时...
分类:
Web程序 时间:
2014-10-30 00:00:49
阅读次数:
242
Recently Yaghoub is playing a new trick to sell some more. When somebody gives him A Tomans,
he who never has appropriate changes, asks for B Tomans such that lowest common multiple of A and B equal...
分类:
其他好文 时间:
2014-10-29 21:35:13
阅读次数:
253
1907. Coffee and BunsTime limit: 1.0 secondMemory limit: 64 MBPlanet Ataraxia is known for its education centers. The people who are expected to take ...
分类:
其他好文 时间:
2014-10-28 21:18:29
阅读次数:
318
组合模式描述了如何将容器对象和叶子对象进行递归组合,使得用户在使用时无须对它们进行区分,可以一致地对待容器对象和叶子对象,这就是组合模式的模式动机。
1、模式定义
组合模式(Composite Pattern):组合多个对象形成树形结构以表示“整体-部分”的结构层次。组合模式对单个对象(即叶子对象)和组合对象(即容器对象)的使用具有一致性。
组合模式又可以称为“整体-部分”(Part-Who...
分类:
其他好文 时间:
2014-10-27 21:25:22
阅读次数:
180
题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=693题意:有一个 k 核的处理器和 n 个工作,全部的工作都须要在一个核上处理一个单位的时间,每一个核在不同一时候间处理同一个工作的花费是递增的,每一个核一次仅仅能处理一个工作,求运用k个核...
分类:
其他好文 时间:
2014-10-27 10:44:19
阅读次数:
223
package com.doctor.logbackextend;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import kafka.consumer.Consumer;
import kafka.consumer.ConsumerCo...
分类:
Web程序 时间:
2014-10-26 09:07:44
阅读次数:
383
哭泣天使时间限制:1000 ms | 内存限制:65535 KB难度:5描述Doctor Who乘着Tardis带着Amy来到了一个星球,一开Tadis大门,发现这个星球上有个壮观的石像群,全是一些天使石像,有的石像在哭泣,有的石像像在微笑,共有m行n列,Doctor用“音速起子”扫描了一下整个.....
分类:
其他好文 时间:
2014-10-24 14:15:11
阅读次数:
327
Problem Description
Good news for us: to release the financial pressure, the government started selling galaxies and we can buy them from now on! The first one who bought a galaxy was Tianming Yun an...
分类:
其他好文 时间:
2014-10-23 22:51:27
阅读次数:
228
DescriptionProf. Tigris is the head of an archaeological team who is currently in charge of an excavation in a site of ancient relics. This site conta...
分类:
其他好文 时间:
2014-10-23 18:58:54
阅读次数:
185