surface是SurfaceView的一个可见区域,它对应了一个内存区域,由于内存区域的对象都是有生命周期的,可以动态申请创建和销毁,当然也可能是更新。于是就有了作用于这个内存区的操作,即surcaceCreated/Changed/Destroyed.getHolder().addCallback(this);方法是获取surface的hol..
分类:
其他 时间:
2015-01-19 15:58:45
收藏:
0 评论:
0 赞:
0 阅读:
281
RPM(RedhatPackageManager)的缩写,本意为:RedHat软件包管理,目前已经成为Linux工业标准。现在OpenLinux/SUSE/等分发版本的linux都有采用。RPM包里面都包含什么?里面包含可执行的二进制程序,这个程序和windows的软件包中的.exe文件类似是可执行的;RPM包中还包括程序运行..
分类:
其他 时间:
2015-01-19 15:58:25
收藏:
0 评论:
0 赞:
0 阅读:
625
location~:正则匹配,区分大小写~*:正则匹配,不区分大小写=:字符的精确匹配,优先级更高~~:字符的普通匹配,location=/{ #只匹配“/”.}location/{ #所有请求都是以/开始}location~~/p_w_picpath/{ #所有请求都是匹配/p_w_picpath/ [configuration1]}location~*\.(gif|jpg|..
分类:
其他 时间:
2015-01-19 15:57:45
收藏:
0 评论:
0 赞:
0 阅读:
262
packagecom.ctgu.java;
publicclassManKind{
privateintsex;
privateintsalary;
publicintgetSex(){
returnsex;
}
publicvoidsetSex(intsex){
this.sex=sex;
}
publicintgetSalary(){
returnsalary;
}
publicvoidsetSalary(intsalary){
this.salar..
分类:
其他 时间:
2015-01-19 15:57:36
收藏:
0 评论:
0 赞:
0 阅读:
229
城市平乱
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
南将军统领着N个部队,这N个部队分别驻扎在N个不同的城市。
他在用这N个部队维护着M个城市的治安,这M个城市分别编号从1到M。
现在,小工军师告诉南将军,第K号城市发生了暴乱,南将军从各个部队都派遣了一个分队沿最近路去往暴乱城市平乱。
现在已知在任意两个城市之间...
分类:
其他 时间:
2015-01-19 15:54:48
收藏:
0 评论:
0 赞:
0 阅读:
305
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.You...
分类:
其他 时间:
2015-01-19 15:53:58
收藏:
0 评论:
0 赞:
0 阅读:
187
1
通过检查 show ip interface brief 命令的输出可得到什么信息?
接口速度和双工设置
接口 MTU
错误
接口 MAC 地址
接口 IP 地址
2...
分类:
其他 时间:
2015-01-19 15:53:28
收藏:
0 评论:
0 赞:
0 阅读:
394
题目1 : 正则表达式
时间限制:1000ms
单点时限:1000ms
内存限制:256MB
描述
给定一个字符串,判断其是否为合法的正则表达式。
一个正则表达式定义为:
1:0是正则表达式,1也是正则表达式。
2:P和Q都是正则表达式,则PQ是正则表达式。
3:P是正则表达式,则(P)是正则表达式
4:P是正则表达式,则P*也...
分类:
其他 时间:
2015-01-19 15:53:18
收藏:
0 评论:
0 赞:
0 阅读:
622
solr的LocalParams 使用语法...
分类:
其他 时间:
2015-01-19 15:53:07
收藏:
0 评论:
0 赞:
0 阅读:
360
同时出现这个错误,我马上就想到,
1.参数设置是否争取 ;于是马上仔细的检查一遍参数都设置了吗 咿没错
2.我未更新 报表模板了 于是乎打开资源管理器,把该报表模板复制并更新debug/bin 目录下
运行, 还是出错呀?
于是求助了领导发现我的参数设置有问题
创建了一个参数字段count1 (字符串) 在报表中有个small 和big 参数引用了同一个count 参数字段
于是重新...
分类:
其他 时间:
2015-01-19 15:52:58
收藏:
0 评论:
0 赞:
0 阅读:
307
Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->5->NULL.Note:Given m, n satisfy the following condi...
分类:
其他 时间:
2015-01-19 15:52:53
收藏:
0 评论:
0 赞:
0 阅读:
506
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Your goal is to rea...
分类:
其他 时间:
2015-01-19 15:52:09
收藏:
0 评论:
0 赞:
0 阅读:
293
选择做为程序员这条道路已经快7年了,其中面临过各种各样的方向选择,也不存在什么对与错,能开心的生活就好。
故事一:
去年认识一个另外公司的技术负责人A,06年毕业,毕业后一直在做linux内核驱动开发。因为一个安卓APP项目,他们公司和我们公司有过一些合作。当时我负责APP与硬件端的Socket通讯方面模块开发,他负责硬件部分的通讯模块。就这样两个人一起喝了几次酒后开始变得熟悉起来。他说他厌恶...
分类:
其他 时间:
2015-01-19 15:51:46
收藏:
0 评论:
0 赞:
0 阅读:
258
SDE: Source Dependent Extract
SDE mappings -- extracts the data from the transactional Source System and loads into the data warehouse staging tables.
SDE mappings are designed with respect to the s...
分类:
其他 时间:
2015-01-19 15:51:20
收藏:
0 评论:
0 赞:
0 阅读:
331
1.先说几个基本概念
Sample: 采样,对于音视频来说就是一个编码帧;Sample_count即总帧数,Sample_index即帧下标。
在一个Mp4文件里面,所有Box处理的Samples都是严格按照帧序号排列的。删除或者修改一帧,很多个Box里面的内容需要从新计算。
Chunk: 块,一个Chunk包括一个或者多个同类型Sampl...
分类:
其他 时间:
2015-01-19 15:51:17
收藏:
0 评论:
0 赞:
0 阅读:
143
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
题意:将阿拉伯数字转换为罗马数字表示
思路:首先了解罗马数字的表示,然后就是从大到小找符合的数字了
class Solution {
public:
strin...
分类:
其他 时间:
2015-01-19 15:50:14
收藏:
0 评论:
0 赞:
0 阅读:
217
VC定时执行任务
flyfish 2015-1-19
SetTimer
Windows把在消息队列里的多个WM_TIMER消息组合成一条消息,应用程序并不知道有多少个这样的WM_TIMER在这个过程丢失了, 这些消息不是精确的时钟滴答中断.此消息的优先级过低,而且不精确 ,因此不适合做任务处理。
使用timeSetEvent
头文件支持
#include ...
分类:
其他 时间:
2015-01-19 15:49:46
收藏:
0 评论:
0 赞:
0 阅读:
372
我们在VS中找到"解决方案资源管理器", 在解决方案 上点击右键, 选择添加现有项目.
使用cocostudio导出的骨骼动画" title="Cocos2dx3.0 使用cocostudio导出的骨骼动画" style="margin:0px; padding:0px; border:0px; list-style:none">
在弹出的对话框中选择....\cocos2d\c...
分类:
其他 时间:
2015-01-19 15:49:04
收藏:
0 评论:
0 赞:
0 阅读:
382
iOS利用Application Loader打包提交到App Store时遇到错误:
The filename 未命名.ipa in the package contains an invalid character(s). The valid characters are:A-Z
,a-z,0-9,dash,period,underscore,but the name cannot s...
分类:
其他 时间:
2015-01-19 15:48:54
收藏:
0 评论:
0 赞:
0 阅读:
730
在这一节中,主要讲目标跟踪的一个重要的算法Camshift,因为它是连续自使用的meanShift,所以这2个函数opencv中都有,且都很重要。为了让大家先达到一个感性认识。这节主要是看懂和运行opencv中给的sample并稍加修改。
Camshift函数的原型为:RotatedRect CamShift(InputArray probImage, Rect& window, ...
分类:
其他 时间:
2015-01-19 15:48:25
收藏:
0 评论:
0 赞:
0 阅读:
301