android\frameworks\base\services\java\com\android\server\InputMethodManagerService.javapublic InputMethodManagerService(Context context, WindowManager...
分类:
其他好文 时间:
2015-01-26 20:59:11
阅读次数:
480
typedef NS_OPTIONS(NSUInteger, UIControlState) { UIControlStateNormal = 0, //常态 UIControlStateHighlighted = 1 << 0, // used...
分类:
其他好文 时间:
2015-01-26 21:01:07
阅读次数:
130
MPEG-1类型:Audio&Video制定者:MPEG(Moving Picture Expert Group)所需频宽:2Mbps特性:对动作不激烈的视频信号可获得较好的图像质量,但当动作激烈时,图像就会产生马赛克现象。它没有定义用于额外数据流进行编对码的格式,因此这种技术不能广泛推广。它主要用...
分类:
其他好文 时间:
2015-01-26 21:00:54
阅读次数:
343
A -Frogs' NeighborhoodTime Limit:5000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusDescription未名湖附近共有N个大小湖泊L1,L2, ...,Ln(其中包括未名湖),每个湖...
分类:
其他好文 时间:
2015-01-26 20:58:53
阅读次数:
170
java weka.classifiers.trees.J48 -t data/weather.arffjava 类的完整名称 -t表示下一个参数是训练数据集的名称java weka.classifiers.trees.J48 -h查看java命令行中各个参数的具体含义-h or -help ...
分类:
其他好文 时间:
2015-01-26 20:58:21
阅读次数:
430
要实现的功能:1. 信道协调----四种协调方式a.持续工作在CCH/SCH;b. 以50ms的间隔在SCH与CCH间切换;c. 立即切换模式; d. 延迟占用模式 根据上层命令MLMEX-SCHSTAR.req 标识位ImmediateAccess;如果是1,立刻切换到SCH,如果是0则等到下.....
分类:
其他好文 时间:
2015-01-26 20:58:21
阅读次数:
185
/**POJ 1125 Stockbroker Grapevine*maxdist 为从第i个人出发 传递完成所需的最大距离*ans 为maxdist 中的最小值*/#include #include #include using namespace std;const int MAXN = 110...
分类:
其他好文 时间:
2015-01-26 20:57:56
阅读次数:
127
技术优先,还是管理优先,这应该是每个走向管理岗位的技术人员,都要面临的问题。自己刚开始,也常常被这个问题所困扰。一种状态是,每天都很忙,每天都加班到10点,11点。喝口水的时间,都是急冲冲的。最伤心的还是,尽管如此,成果不多,只有苦劳,功劳很少。痛定思痛,深感团队需要更多的人才,团队管理做好了,自己...
分类:
其他好文 时间:
2015-01-26 20:57:16
阅读次数:
156
题意是判断多边形是否相交主要的思路就是判断每一个点是否在另外的多变形内判断一个点是否在另一个多边形内主要思路是:判断的那个点向左边做射线,如果射线与多边形的交点为奇数个则在多边形内,偶数个则不在,其中有特殊情况:1.如果判断的点与所要判断的边在平行且在所要判断的边上,则在多边形上2.如果向左做射线恰...
分类:
其他好文 时间:
2015-01-26 20:55:28
阅读次数:
221
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2015-01-26 20:56:06
阅读次数:
132
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are som...
分类:
其他好文 时间:
2015-01-26 20:55:35
阅读次数:
171
题目链接:传送门题目需求:Given integers N and M, how many integer X satisfies 1=M.(2=M。这才是核心:要求有多少个 i 满足gcd(i, N) = d(1=M,就是求N的因子中大于等于M的欧拉函数值,即gcd(N/d1)+gcd(N/d2)...
分类:
其他好文 时间:
2015-01-26 20:52:56
阅读次数:
202
以下关于GOF的一些例子命名不是很准确,但是大概意思差不多,懒得再去翻书了模拟观察者模式模拟中介者模式模拟command模式模拟memento和command模拟观察者模式观察者与职责链模式应该是我们项目中用的最多的了我在之前也写过一篇利用观察者模式对模块进行解耦,当时还是用纯虚函数http://w...
分类:
其他好文 时间:
2015-01-26 20:52:59
阅读次数:
236
题目链接:传送门题目需求:Given an integer N(1 #include #include #include #include typedef long long ll;using namespace std;ll phi[100005];ll f[10005];ll sum,n,t,t...
分类:
其他好文 时间:
2015-01-26 20:54:56
阅读次数:
200
遇到一个很恶心的问题。while(1){ recvfrom(sockfd, readbuff, UDP_CMD_BUFF_LENGTH - 1, 0, (struct sockaddr *)&Glob_remot_88_port_add, &len); PRINT("[recevudp]len %d...
分类:
其他好文 时间:
2015-01-26 20:54:37
阅读次数:
513
题目:UVA-11039-Building designing根据绝对值排序。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 using namespace std; 9 10 int a[500010.....
分类:
其他好文 时间:
2015-01-26 20:53:38
阅读次数:
199
参考:http://dawn-sky.iteye.com/blog/1546472躺枪。 mark!!在虚拟机上安装发现默认是命令行界面一路进行下去,最后发现是Minimal的安装,并且网卡也没有默认启动...晕死。网上搜了下才知道原来Centos 6的Minimal下,网卡默认onboot="no...
分类:
其他好文 时间:
2015-01-26 20:51:58
阅读次数:
192