This is a follow-up to my?World’s Smallest h.264 Encoder?post. I’ve received several emails asking about precise details of things in two entities in the h.264 bitstream: the Sequence Paramete...
分类:
其他好文 时间:
2015-08-12 01:31:27
阅读次数:
247
有些时候需要不断地调用方法,如果使用传统方案,需要拿到对象多次调用,例如有一个Ball对象,实现了up、down、left、right四个方法,分别控制球的运动方向,如果要实现球向右再向下,需要这么写:
[ball right];
[ball down];如果能够按照下面这样写,会更加方便。
[[ball right] down];
要实现这样的功能十分简单,只要每个方法都返回self即可,...
分类:
其他好文 时间:
2015-08-11 23:27:06
阅读次数:
210
欢迎转载,请附出处:1、基础知识(1) 所有 Touch 事件都被封装成了 MotionEvent 对象,包括 Touch 的位置、时间、历史记录以及第几个手指(多指触摸)等。(2) 事件类型分为 ACTION_DOWN, ACTION_UP, ACTION_MOVE, ACTION_POINTER_DOWN, ACTION_POINTER_UP, ACTION_CANCEL,每个事件都是以 ACT...
分类:
移动开发 时间:
2015-08-11 18:51:40
阅读次数:
139
atrl+F查找后按F3或者ctrl+F3,是查找下一个,shift+F3是查找上一个alt+f3高亮所有的查找的ctrl+h 查找并替换ctrl+left是向左一个单词跳跃,right同理ctrl+top是光标不动,然后视图往上移动shift+up,down,left,r...
分类:
其他好文 时间:
2015-08-11 18:07:00
阅读次数:
75
源地址信息技术教材配套的光盘里有一段设置图片滚动的JS代码,与网络上差不多,实现思路:一个设定高度并且隐藏超出它高度的内容的容器demo,里面放demo1和 demo2,demo1是滚动内容,demo2为demo1的直接克隆,通过不断改变demo的scrollTop或者scrollLeft达到滚动的...
分类:
Web程序 时间:
2015-08-11 14:05:43
阅读次数:
943
有meteor-up等众多工具,如果你不喜欢它们,可以尝试如下方法,自由控制。1,创建及打包项目meteor create newappmeteor build .2,上传将bunder.tar.gz上传至服务器3,运行cd bunder/programs/server/npm installcd ...
分类:
其他好文 时间:
2015-08-11 13:38:20
阅读次数:
112
It’s that time again to choose the tool or technology that we want to brush up on. If you feel like you’ve been working hard at building but maybe not...
分类:
其他好文 时间:
2015-08-11 11:59:50
阅读次数:
127
执行操作:$ git pull返回错误:error: RPC failed; result=7, HTTP code = 0fatal: The remote and hung up unexpectedly然后,更换github的邮箱换为最初的gmail的,重新执行操作:$ git pull or...
分类:
其他好文 时间:
2015-08-11 11:59:00
阅读次数:
349
剑指offer在标题中:http://ac.jobdu.com/problem.php?pid=1513题目描写叙述:输入一个整数,输出该数二进制表示中1的个数。当中负数用补码表示。输入:输入可能包括多个測试例子。对于每一个输入文件,第一行输入一个整数T。代表測试例子的数量。对于每一个測试例子输入为...
分类:
其他好文 时间:
2015-08-11 09:51:39
阅读次数:
97
The idea is just to add the elements in the spiral order. First the up-most row (u), then the right-most column (r), then the down-most row (d), and f...
分类:
其他好文 时间:
2015-08-11 09:44:52
阅读次数:
87