别人提到“OpenGL的处理管线”时,意味着什么?准确的讲,应该是“OpenGL图形处理管线”,“管线”带有特定的顺序,在OpenGL中就是Graphics Processing Pipeline。在OpenGL中更像一个流程图,流程图基本架构从来都没有变过。“向OpenGL发送几何数据”指的是什么...
分类:
编程语言 时间:
2014-12-26 00:55:10
阅读次数:
195
wiki上关于KShingling Algorithm(w-shingling)的说明:http://en.wikipedia.org/wiki/W-shingling摘要:In natural language processing a w-shingling is a set of unique...
分类:
编程语言 时间:
2014-12-25 14:24:11
阅读次数:
245
题目描述:
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
思路:先将行顺序reverse,然后再对每个处于下三角区域的元素rotate。
...
分类:
其他好文 时间:
2014-12-25 11:18:52
阅读次数:
125
最近重温《数据结构》,发现其中的东西我上学的时候几乎都没写过。。。 惭愧啊。于是打算一一写点。算是对我逝去青春的纪念。。。avl树的代码网上有很多, 这个在平衡二叉树里面算是比较简单的。 需要注意的就是树的平衡因子和其子树的平衡因子符号相反的旋转情况。这个在函数avl_rotate_right等中有...
分类:
其他好文 时间:
2014-12-25 09:57:38
阅读次数:
219
Image transformation is a process of rotating and scaling images. Rotating Images There are two ways to rotate an image. First option is to use the Ro...
题目:
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
思路:
题目的关键在in-place,否则就太容易了,为了达到in-place只能...
分类:
其他好文 时间:
2014-12-24 22:46:59
阅读次数:
138
有时候,某些非常规的操作会导致将要建立数据库/表与保存在metastore里的数据库/表的信息发生冲突,导致无法建立相应的数据库/表。举个例子:如果没有使用常规的drop database/table去删除一个数据库或是表,而是直接在hdfs上删除了相应的文件夹或文件,比如:/user/hive/warehouse/xxxxx.db,然后当你重新试图使用建库脚本建库时,有可能会报出:FAILED:...
分类:
移动开发 时间:
2014-12-24 21:33:58
阅读次数:
422
【资料整理】sudo的使用
编辑:
visudo
实例:
赋予user1通过sudo来执行coreseek的2个命令的权限
#visudo
user1ALL=NOPASSWD:/data/svr/coreseek/bin/coreseek_ctl.sh,/data/svr/coreseek/bin/indexer_rotate.sh
#suuser1
$sudo/data/svr/coreseek/bin/
crontab_init.shcor..
分类:
其他好文 时间:
2014-12-24 18:22:31
阅读次数:
245
canvas元素在html5中的重要性非同一般。配合JS让我们实现了在浏览器页面中作画的强大功能。不再单单依靠图片,flash等外部文件,减少http请求,从而网页加载速度更加快捷。简单的线段:看个小演示 canvas小房子不用函数累死人。。。。旋转:使用提供的rotate()方法。需要注意的是,在...
分类:
Web程序 时间:
2014-12-23 00:11:04
阅读次数:
327
SQL> startup;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/oracle/product/11.2/db_1/dbs/initorcl.ora'
--解决方案
[oracle@CentOS]$ cp /u01/ora...
分类:
其他好文 时间:
2014-12-22 16:18:41
阅读次数:
164