顾名思义,工厂模式就是类似于生活中的工厂,可以生产我们想要的东西,回到代码,假如我们需要一个实例,直接从工厂中拿即可。eg:假如我们定义一个“球”类的接口1
public interface Ball{2 public void sayName();3 }此时我们再定义两个球类实现这个接口1...
分类:
其他好文 时间:
2014-05-16 23:31:40
阅读次数:
370
Continuous Login
Time Limit: 2 Seconds Memory Limit: 131072 KB Special Judge
Pierre is recently obsessed with an online game. To encourage users to log in, this game will give user...
分类:
其他好文 时间:
2014-05-14 01:25:00
阅读次数:
396
今天记录一下, 造了个Simple Maximizable Panel。一切从简,
没有封装成Plugin, 没有加入animate, 没有修正resize event。贴上源码: 1 2 3 4 5
panel-maximizable.html 6 ...
分类:
Web程序 时间:
2014-05-13 20:57:54
阅读次数:
502
目前Hadoop的稳定版本为1.2.1,我们的实验就在hadoop-1.2.1上进行Hadoop 版本:1.2.1OS 版本:
Centos6.4环境配置机器名Ip地址功能用户Hadoop1192.168.124.135namenode,
datanode,secondNameNodejobtrac...
分类:
其他好文 时间:
2014-05-13 19:29:35
阅读次数:
3175
尽管前面尝试了hadoop的simple认证方式,这种方法不是特别安全,在介绍一下hadoop的kerberos方式之前,下面我们尝试一下kerberos。首先介绍一下Kerboros安装OS
版本: Centos6.4Kerberos版本: krb5-1.10.3环境配置机器名Ip地址功能安装模块...
分类:
其他好文 时间:
2014-05-13 19:23:25
阅读次数:
1311
Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
分类:
其他好文 时间:
2014-05-13 14:59:51
阅读次数:
356
Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
分类:
其他好文 时间:
2014-05-13 13:54:14
阅读次数:
463
问题:判断一个几何图形是否Simple,当一个Geometry转换成ITopologicalOperator2时,无论Geometry是否为Simple,其IsKnownSimple和IsSimple属性都为True。解决方法:只需要先把IsKnownSimple_2设置成False中行了。代码:privateboolIsSimple(IGeometrypGeo)
{
ITopologicalOperator..
分类:
其他好文 时间:
2014-05-13 13:20:31
阅读次数:
517
这次省赛我们三个队过去,帅哥、我、蓝胖是simple队的,周四晚上出发,周五早上就到达广州了。广州大雨,没出去玩耍,就呆在旅社玩升级,手气出奇的好,一局没打完,金萌买吃的去,放弃牌局,玩了几局游戏,睡觉去了……(此处省略几千个字)。
星期六,开幕式听了华南理工的校歌,龙哥说不够威武霸气,软绵绵...
分类:
其他好文 时间:
2014-05-13 10:55:45
阅读次数:
233