码迷,mamicode.com
首页 > 其他好文
Hadoop RPC通信Client客户端的流程分析
Hadoop的RPC的通信与其他系统的RPC通信不太一样,作者针对Hadoop的使用特点,专门的设计了一套RPC框架,这套框架个人感觉还是有点小复杂的。所以我打算分成Client客户端和Server服务端2个模块做分析。如果你对RPC的整套流程已经非常了解的前提下,对于Hadoop的RPC,你也一定可以非常迅速的了解的。OK,下面切入正题。             Hadoop的RPC的相关代码...
分类:其他好文   时间:2014-12-05 21:27:44    阅读次数:281
UI第四课
事件的处理:触摸、响应者链...
分类:其他好文   时间:2014-12-05 21:26:34    阅读次数:169
UVA10474_Where is the Marble?【sort】【lower_bound】
题目大意:给你N个大理石,每块大理石上写了一个非负整数,将大理石从小到大 排序,然后回答Q个问题。问整数x是否在大理石上写着。如果有就回答是第几个大 理石上写着x。 思路:用sort排序,用lower_bound得到数组中大于等于x的位置,看该数组下标上 的数是否等于x。...
分类:其他好文   时间:2014-12-05 21:27:06    阅读次数:150
DFS FZU 2107
Problem 2107 Hua Rong Dao Accept: 247    Submit: 555 Time Limit: 1000 mSec    Memory Limit : 32768 KB Problem Description Cao Cao was hunted down by thousands of enemy soldiers when he e...
分类:其他好文   时间:2014-12-05 21:26:56    阅读次数:257
项目实战①—高仿知乎日报(1)逼真的开场动画
在联网工具类中,有人说,Xutils 比volly牛逼,又有人说其实volly性能很差,不过我这一篇文章用的就是volly,我感觉不到差距在哪,反而觉得用起来很爽。其实我自己用的就是Xutils不过后面demo写下不下去了,经过李同志的代码重构,得以完全。...
分类:其他好文   时间:2014-12-05 21:25:44    阅读次数:283
LeetCode[Array]: Find Peak Element
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. You may imagine that num[-1] = num[n] = -∞. ...
分类:其他好文   时间:2014-12-05 21:25:52    阅读次数:198
hdu 2899 简单三分
简单三分...
分类:其他好文   时间:2014-12-05 21:24:09    阅读次数:175
Uva 147-Dollars(DP)
题目链接:点击打开链接 换硬币问题。不过存在分,所以是小数输入,一开始因为精度问题wa一发。而且。。计数用long long。。 #include #include #include #include #include #include #include #include #include #include #include #include #include #de...
分类:其他好文   时间:2014-12-05 21:24:09    阅读次数:176
FZU Problem 2111 Min Number (数学啊 )
FZU Problem 2111 Min Number (数学啊 )...
分类:其他好文   时间:2014-12-05 21:25:44    阅读次数:179
滑动ListView自动隐藏页面头部和底部元素的例子
完整工程代码在这:https://github.com/NashLegend/Auto-Hide-ListView 现在很多软件都有这种滑动列表的时候自动隐藏页面头部和底部元素的功能,比如Google+。在刚刚进入Activity的时候,页面是一个列表,底部有一个view,头部一个view,当列表向上滑动的时候,隐藏头尾元素,以显示更多内容,当列表向下滑动的时候,再将头尾元素拉出...
分类:其他好文   时间:2014-12-05 21:23:48    阅读次数:293
快排查找第K小的数
#include "iostream.h" using namespace std; int findMedian(int *A,int left,int right){ int center = (left+right)/2; if(A[left]>A[center]){ swap(A[left],A[center]); } if(A[left]>A[right]){ swap(...
分类:其他好文   时间:2014-12-05 21:23:55    阅读次数:360
FZU Problem 2112 Tickets (dfs 欧拉图啊)
FZU Problem 2112 Tickets (dfs 欧拉图啊)...
分类:其他好文   时间:2014-12-05 21:21:54    阅读次数:166
新型随机函数——乱排函数的制作
一种新型的随机函数,与常规不同的是它的数据之间是不相关的。在加密时它的数组可以直接作为密钥使用。...
分类:其他好文   时间:2014-12-05 21:23:40    阅读次数:181
201412022200-hd-Largest prime factor
Largest prime factor Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7195    Accepted Submission(s): 2554 Problem Description Eve...
分类:其他好文   时间:2014-12-05 21:21:41    阅读次数:226
使用strcpy和strcat实现字符串的连接
最为简单的代码方式一 首先是实现字符串的连接然后实现字符串的拷贝 #include #include int main(void) { char s[10]="abc"; char t[]="def"; char r[20]=""; strcat(s,t);         //实现字符串的连接 strcpy(r,s); //实现字符串的拷贝 printf("%s",...
分类:其他好文   时间:2014-12-05 21:22:26    阅读次数:220
Uva 10192&10066-(DP)
题目链接:点击打开链接  点击打开链接 两道都是LCS。。裸 水过 10192: #include #include #include #include #include #include #include #include #include #include #include #include #include #define maxn 1005 #define ...
分类:其他好文   时间:2014-12-05 21:20:58    阅读次数:185
foj 2109 Mountain Number 位数dp
题目链接  Problem 2109 Mountain Number Accept: 139    Submit: 357 Time Limit: 1000 mSec    Memory Limit : 32768 KB Problem Description One integer number x is called "Mountain Number" if: ...
分类:其他好文   时间:2014-12-05 21:21:05    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!