国庆7天假期,大部分朋友都出去旅游了,微信圈里全是晒旅游的照片, 东南亚游,欧洲游呀,真是羡慕呀。 悲惨的我只去了上海野生动物园, 在家休息,利用这段假期,把之前学过的东西都总结下。我前段时间加班太多了,每天忙碌工作,都没精力去管自己的学习新技能的计划, 博客也没写几篇,很多想做的事情都因为工作太忙...
分类:
其他好文 时间:
2014-10-09 13:16:23
阅读次数:
226
(OpenCV读取视频、OpenCV提取视频每一帧、每一帧图片合成新的AVI视频)CvCapture 是视频获取结构 被用来作为视频获取函数的一个参数 比如 CvCapture* cap; IplImage* cvQueryFrame( cap ); 从摄像头或者文件中抓取并返回一帧————————...
分类:
其他好文 时间:
2014-10-09 13:32:53
阅读次数:
184
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). How do you find an elemen...
分类:
其他好文 时间:
2014-10-09 14:22:13
阅读次数:
332
ProblemPrint a matrix in spiral fashion.SolutionWe will first print the periphery of the matrix by the help of 4 for loops. Then recursively call this...
分类:
其他好文 时间:
2014-10-09 14:22:03
阅读次数:
151
https://vijos.org/p/1768之前不知道为什么,我yy了一个n^2的做法,但是没能写出来。。sad然后看了题解才发现这题好神。。为什么一定要照着题意找两个点然后算呢?这就是问题所在。。。我们可以观察每一个点,发现他的贡献恰好是左边比他小的数和右边比他大的数组成的顺序对,那么一共有l...
分类:
其他好文 时间:
2014-10-09 14:05:03
阅读次数:
151
April 13, 2010inUncategorizedRotate a one-dimensional array of n elements to the right by k steps.For instance, with n=7 and k=3, the array {a, b, c, ...
分类:
其他好文 时间:
2014-10-09 13:48:13
阅读次数:
129
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers....
分类:
其他好文 时间:
2014-10-09 14:04:23
阅读次数:
155
For i = 1 To ActiveDocument.Tables.Count ActiveDocument.Tables(i).Cell(1, 1).Select With Selection .SelectRow .Font.Bold = True .Shading.BackgroundPat...
分类:
其他好文 时间:
2014-10-09 14:37:13
阅读次数:
209
1 class Person { 2 private String name; 3 private int age; 4 public String getName() { 5 return this.name; 6 } 7 8 p...
分类:
其他好文 时间:
2014-10-09 14:03:43
阅读次数:
156
Find the intersection of two sorted arrays.Let’s called array1 as A and array2 as B, each with size m and n.The obvious brute-force solution is to sca...
分类:
其他好文 时间:
2014-10-09 14:20:13
阅读次数:
161
直接使用 pip 安装,连 example project 都运行不了。。。
要正常使用,关键是要使用正确版本的依赖包
Django (1.5.5)
django-socketio (0.3.2)
gevent (0.13.6)
gevent-socketio (0.2.1)
geve...
分类:
其他好文 时间:
2014-10-09 14:03:03
阅读次数:
251
first download the debugger tools "rtools_setup_x64"start C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\Remote Debugger\x64 and runthe "ms...
分类:
其他好文 时间:
2014-10-09 14:35:03
阅读次数:
124
介绍:string模块可以追溯到最早的Python版本中。现在很多的被移植为str和unicode对象的方法,在python3.0中会被完全去除。string模块中,有很多有用的常量和累,用来处理string和unicode对象。一、函数 1、capwords()的作用是将一个字符串中所有单词的首....
分类:
其他好文 时间:
2014-10-09 12:54:33
阅读次数:
217
前些天写用户注册模块,用存储过程添加用户,一开始就报“为过程或函数sp_Adduser指定了过多的参数”。仔细检查数据层的用户添加函数,结果在为存储过程添加sqlparameter参数的时候,数组给写错位了(参数太多)。改正后,编译执行,结果还是报“为过程或函数sp_Adduser指定了过多的参数”...
分类:
其他好文 时间:
2014-10-09 14:01:03
阅读次数:
145
1简单的Java对象使用POJO名称是为了避免和EJB混淆起来, 而且简称比较直接. 其中有一些属性及其getter setter方法的类,没有业务逻辑,有时可以作为VO(value -object)或dto(Data Transform Object)来使用.当然,如果你有一个简单的运算属性也是可...
分类:
其他好文 时间:
2014-10-09 13:10:43
阅读次数:
229
Ajax 回顾最本质的 ajax 其实是这样的:function Ajax(){ var xmlHttpReq = null; if (window.ActiveXObject){//IE5 IE6 xmlHttpReq = new ActiveXObject("Micr...
分类:
其他好文 时间:
2014-10-09 14:00:13
阅读次数:
162
题目链接:http://poj.org/problem?id=1936思路: 字符串子序列查找问题,设置两个指针,一个指向子序列,另一个指向待查找的序列,查找个字符串一次即可判断。 算法时间复杂度O(N)。代码:#include #include using namespace std;#def.....
分类:
其他好文 时间:
2014-10-09 14:16:23
阅读次数:
187