首页 > 其他
使用Hessian创建接口
Hessian是一个轻量级的remoting onhttp工具,使用简单的方法提供了RMI的功能。 相比WebService,Hessian更简单、快捷。采用的是二进制RPC协议,因为采用的是二进制协议,所以它很适合于发送二进制数据。...
分类:其他   时间:2015-03-19 20:24:33    收藏:0  评论:0  赞:0  阅读:350
Redis配置文件解析
#Redis示例配置文件   # 注意单位问题:当需要设置内存大小的时候,可以使用类似1k、5GB、4M这样的常见格式: # # 1k=> 1000 bytes #1kb => 1024 bytes # 1m=> 1000000 bytes #1mb => 1024*1024 bytes # 1g=> 1000000000 bytes #1gb => 1024*1024*1024...
分类:其他   时间:2015-03-19 20:24:22    收藏:0  评论:0  赞:0  阅读:252
LeetCode Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is...
分类:其他   时间:2015-03-19 20:24:02    收藏:0  评论:0  赞:0  阅读:250
Kinect学习笔记之三Kinect开发环境配置详解
首先说一下我的开发环境,Visual Studio是2013的,系统是win8的64位版本,SDK是Kinect for windows SDK 1.8版本。虽然前一篇博文费了半天劲,翻译了2.0SDK的新特性,但我还是决定要回退一个版本。        其实我之前一直在用2.0的SDK在调试Kinect,但无奈实验室提供的Kinect是for Windows 1.0版本的,而且Kinect从1...
分类:其他   时间:2015-03-19 20:23:42    收藏:0  评论:0  赞:0  阅读:795
leetcode 题解 || Remove Nth Node From End of List 问题
problem: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the...
分类:其他   时间:2015-03-19 20:23:12    收藏:0  评论:0  赞:0  阅读:294
关于提高UDP发送效率的方法
通过修改注册表达到发送UDP效率最大化的方法。...
分类:其他   时间:2015-03-19 20:22:52    收藏:0  评论:0  赞:0  阅读:946
蓝桥杯-排他平方数
题目标题: 排它平方数     小明正看着 203879 这个数字发呆。     原来,203879 * 203879 = 41566646641     这有什么神奇呢?仔细观察,203879 是个6位数,并且它的每个数位上的数字都是不同的,并且它平方后的所有数位上都不出现组成它自身的数字。     具有这样特点的6位数还有一个,请你找出它!  ...
分类:其他   时间:2015-03-19 20:22:32    收藏:0  评论:0  赞:0  阅读:394
在一张图片上添加删除的照片
1、css样式 .photoX{ margin: 5px; width: 300px; height: 200px; border:1px solid #5df; } .rubbish{ width:32px; height:32px; position:absolute; z-index: 10; left: 270px;...
分类:其他   时间:2015-03-19 20:22:22    收藏:0  评论:0  赞:0  阅读:310
HDU 2896 病毒侵袭(AC自动机)
HDU 2896 病毒侵袭(AC自动机)...
分类:其他   时间:2015-03-19 20:22:12    收藏:0  评论:0  赞:0  阅读:336
poj 1723 SOLDIERS 中位数
题意: 给n个士兵的坐标,要把他们移动到水平且相邻的一行,求最小步数。 分析: 中位数法,y方向易求,x方向x0->n+i与x0-i->n是对应的,故也可以转换成y方向的情况。 代码: //poj 1723 //sep9 #include #include using namespace std; const int maxN=10024; int x[maxN],y[maxN]; ...
分类:其他   时间:2015-03-19 20:22:06    收藏:0  评论:0  赞:0  阅读:299
spark之map与flatMap区别
scala> val m = List(List("a","b"),List("c","d")) m: List[List[String]] = List(List(a, b), List(c, d)) scala> m.flatten res8: List[String] = List(a, b, c, d) scala> val n = List(List(1,2),List(3,...
分类:其他   时间:2015-03-19 20:22:05    收藏:0  评论:0  赞:0  阅读:1632
OpenGL 资源汇编
本文收集和汇总了 OpenGL 的文档、教程和在线书籍,供学习和开发人员参考。 OPENGL开发教程:http://www.linuxgraphics.cn/opengl/index.html OpenGL 教程 大名鼎鼎的 Nehe 教程: http://nehe.gamedev.net/ OpenGL 入门学习系列讲的非常清楚,推荐。 OpenGL入门学习之一—...
分类:其他   时间:2015-03-19 20:21:42    收藏:0  评论:0  赞:0  阅读:444
cocos3——8.实现新手引导
1.使用ClippingNode裁剪范围   编写裁剪接口:function createClipNode(node, stencil, inverted) { var clip_node = new cc.ClippingNode(); // 设置模板节点(就是要裁剪的区域) clip_node.stencil = stencil; // 添加要被裁剪掉的节点(...
分类:其他   时间:2015-03-19 20:21:32    收藏:0  评论:0  赞:0  阅读:630
spark开发程序编写注意点
看书时发现书中写的不一定是正确的。 eg: scala> val line = sc.textFile("hdfs://Spark:9000/user/root/README.md") 15/03/19 20:03:04 INFO MemoryStore: ensureFreeSpace(202004) called with curMem=744765, maxMem=280248975 1...
分类:其他   时间:2015-03-19 20:21:02    收藏:0  评论:0  赞:0  阅读:397
Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place with c...
分类:其他   时间:2015-03-19 20:20:42    收藏:0  评论:0  赞:0  阅读:297
正则表达式规则与常见的正则表达式
常用的正则表达式汇总只能输入数字:"^[0-9]*$"。 只能输入n位的数字:"^\d{n}$"。 只能输入至少n位的数字:"^\d{n,}$"。 只能输入m~n位的数字:。"^\d{m,n}$" 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 只能输入有两位小数的正...
分类:其他   时间:2015-03-19 20:19:32    收藏:0  评论:0  赞:0  阅读:293
static+final 总结
Static 一句话:方便在没有创建对象的情况下来进行调用(方法/变量)。句 静态属于类,非静态属于对象。 另外记住,即使没有显示地声明为static,类的构造器实际上也是静态方法。 static方法: 1、静态方法没有this。 因为它不依附于任何对象就可以进行访问,既然都...
分类:其他   时间:2015-03-19 20:19:02    收藏:0  评论:0  赞:0  阅读:315
Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note:You may assume that A has enough space (size that is greater or equa...
分类:其他   时间:2015-03-19 20:18:32    收藏:0  评论:0  赞:0  阅读:269
【BZOJ】【2324】【ZJOI2011】拯救皮卡丘
网络流/费用流+Floyed Orz zyf题解:这题和星际竞速还有打印机两题的主体思路都是一样的每个点一定要经过,并且要经过这个点,必须经过比这个点小的所有点。而且还存在一个附加源,但源到附加源有一定的容量限制(星际没有。。。)这题我们采用如下方式建图:1.把每个点拆成 i 和 i+n 两个点,....
分类:其他   时间:2015-03-19 20:17:52    收藏:0  评论:0  赞:0  阅读:337
软件工程课堂训练——结对开发
一、题目及要求:1、题目:返回一个整数数组中最大子数组的和。2、要求: ①输入一个整形数组,数组里有正数也有负数;数组中连续的一个或多个整数组成一个子数组,每个子数组都有一个和;求所有子数组的和的最大值;要求时间复杂度为O(n)。 ②两人结对完成编程任务;一人主要负责程序分析,代码编程,一人...
分类:其他   时间:2015-03-19 20:17:12    收藏:0  评论:0  赞:0  阅读:249
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!