以前的主要是关于Canvas的translate(平移) 、scale(缩放) 、rotate(旋转) 、skew(错切)。接下来几篇主要讲下android里的Path(封装了贝塞尔曲线)&Canvas里的drawPath(path,paint);非常多人听到贝塞尔曲线,就认为似乎挺高端大气上档次。...
分类:
其他好文 时间:
2015-06-18 16:44:08
阅读次数:
130
Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
解题思路:
这道题题意说得不...
分类:
其他好文 时间:
2015-06-18 15:23:28
阅读次数:
115
The processing instruction target matching "[xX][mM][lL]" is not allowed.The XML file should not have any other character before<?xml, even no spaces,...
分类:
移动开发 时间:
2015-06-18 14:50:31
阅读次数:
117
OpenCV for Android 使用(Linux)根据OpenCV4Android的文档一步步往下走。导入这些项目后,出现如下的构建问题:
* Build of configuration Default for project OpenCV Tutorial 2 - Mixed Processing *
/ndk-build.cmd
Cannot run program “...
分类:
移动开发 时间:
2015-06-17 15:27:38
阅读次数:
381
如果sphinx在运行中,要indexer时,需要加上--rotate参数,这样索引完就直接生效了。原因是sphinx的searchd在启动时会创建一个.sql锁文件,因为这时已经标志sphinx正在运行中,除非使用--rotate。rotate运行机制-》indexer完成索引-》发送SIGHUP...
分类:
其他好文 时间:
2015-06-16 18:18:54
阅读次数:
147
必须放在css声明中div { transform: rotate(45deg); -o-transform: rotate(45deg); float: right; -webkit-transform: rotate(45deg); /*Safari 4+,Google ...
分类:
Web程序 时间:
2015-06-16 16:34:19
阅读次数:
317
这题有三种思路:思路一:找到移动前后移动后位置的关系,直接交换位置,但是这样做需要额外的空间。思路二:每次移动一位,直到旋转90度。思路三:转:http://www.2cto.com/kf/201401/274473.html使用3的代码应该是最简洁的。class Solution {public:...
分类:
其他好文 时间:
2015-06-16 10:37:52
阅读次数:
116
一、GuavaGoogle的基于java1.6的类库集合的扩展项目,包括collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O等等. 这些高...
分类:
移动开发 时间:
2015-06-15 18:36:06
阅读次数:
182
css3中的transform让我们操作变形变得很简单,诸如,translate–移动,scale–缩放,rotate–旋转,skew–斜切。这几个属性很方便,也很简单,但是其中matrix我们就不常使用了吧。-webkit-transform: matrix(1, 0, 0, 1, 100, 10...
分类:
Web程序 时间:
2015-06-15 10:57:21
阅读次数:
169
上一篇主要讲了Canvas的translate(平移) 、scale(缩放) 、rotate(旋转) 、skew(错切),接下来几篇主要讲下android里的Path(封装了贝塞尔曲线)& Canvas里的drawPath(path,paint);
很多人听到贝塞尔曲线,就觉得似乎挺高端大气上档次,后面会和大家一起揭开它的面纱,一睹真容;
Path(路径):
我们先看看Path类里有哪些方法...
分类:
其他好文 时间:
2015-06-15 01:46:15
阅读次数:
239