2016年2月24日
摘要: 前言Hadoop从存储上来说,是相似于冗余磁盘阵列(RAID)的存储方式。将数据分散存储并提供以提供吞吐量,它的存储系统就是HDFS(Hadoop Distuibute Fils System)。从计算上来说,它通过MapReduce模型,将大数据的计算分发到多台计算机上完毕,再将结果合并,降低计算 阅读全文
posted @ 2016-02-24 21:26 gcczhongduan 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 我们这节来学习几何图形,即怎样使用Cocos2d-x绘制各种图形。已经贝塞尔曲线 我们查看CCNode中有个draw函数。我们须要将绘制的代码所有写在这个函数里面,写在init函数里是画不出线来的。 draw是有Cocos2d-x内部调用的。详细什么机制我也不知道,初期我们学习的是怎么使用,等以后做 阅读全文
posted @ 2016-02-24 21:21 gcczhongduan 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 前面一个文章里面,我们把一个字符串进行hash计算,而且签名。 如今就须要在接收方来验证了。 CryptImportKey 首先,我们须要把发方发过来的公钥导入到CSP里面。我们这里如果pbKeyBlob就是收到的公钥信息(比方从证书里面获取)。 if (CryptImportKey( hProv, 阅读全文
posted @ 2016-02-24 20:33 gcczhongduan 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 用管理员账户sa登陆,然后在master下新建查询: 在查询窗体输入: declare @i int declare cur cursor for select spid from sysprocesses where db_name(dbid)= '要断开连接的数据库名称' open cur fe 阅读全文
posted @ 2016-02-24 19:09 gcczhongduan 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 本文出自Svitter的blog 更新Vundle的时候。不管是输出BundleInstall。还是PluginInstall!都会调用系统的git,所以必须安装git才干达到目的更新插件。 git的官方网站点击打开链接 下载完毕输入:BundleInstall!或者:PluginInstall!就 阅读全文
posted @ 2016-02-24 19:02 gcczhongduan 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 使用UIImagePickerController 进行录制 #import "ViewController.h" #import <MobileCoreServices/MobileCoreServices.h> #import <QuartzCore/QuartzCore.h> @interfa 阅读全文
posted @ 2016-02-24 17:35 gcczhongduan 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Problem Description There are n lights in a circle numbered from 1 to n. The left of light 1 is light n, and the left of light k (1< k<= n) is the lig 阅读全文
posted @ 2016-02-24 16:42 gcczhongduan 阅读(118) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; import java.util.Random; public class Hello { public static int judge(int j, int k) { int m; if(j==k) m=0; else if(j==0&&k== 阅读全文
posted @ 2016-02-24 15:43 gcczhongduan 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 近期在学习netty相关知识,认为《netty 权威指南》这本书还是挺好的,适合我这样的刚開始学习的人.加上netty本身自带的很多样例,学起来还是挺有兴趣的.简单记录下, 一般server代码例如以下: public void run() throws Exception { EventLoopG 阅读全文
posted @ 2016-02-24 15:12 gcczhongduan 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 近期MyEclipse开启之后总是不停的在 update index,非常是耗时间。 查找资料发现Update index...是Maven在不断更新, 解决的方法例如以下: Window --> Preferences --> Myeclipse --> Maven4Myeclipse --> 去 阅读全文
posted @ 2016-02-24 14:33 gcczhongduan 阅读(374) 评论(0) 推荐(0) 编辑
摘要: Given an input string, reverse the string word by word. For example, Given s = “the sky is blue”, return “blue is sky the”. Update (2015-02-12): For C 阅读全文
posted @ 2016-02-24 10:39 gcczhongduan 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Lvs是由国防大学章文嵩博士发起的一个开源项目,用来实现服务器之间的负载均衡。全名为linux virtual server 软件包围ipvsadm.tar.gz 随着企业的规模扩大。server的訪问越来越大。这时候仅仅有两个方案解决server的负载能力。 1: 向上扩展server的硬件配置。 阅读全文
posted @ 2016-02-24 09:11 gcczhongduan 阅读(137) 评论(0) 推荐(0) 编辑