因为实验室项目好久没刷题了。从今天开始重新开始刷题。 Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers...
分类:
其他好文 时间:
2014-07-16 23:04:15
阅读次数:
166
find [起始目录] 寻找条件 操作还有种表述方式:find PATH OPTION [-exec COMMAND { } \;]因为find命令会根据我们给的option,也就是寻找条件从我们给出的目录开始对其中文件及其下子目录中的文件进行递归搜索,所以我觉的这个地方说是“起始目录”是非常好的。...
分类:
系统相关 时间:
2014-07-16 23:03:03
阅读次数:
332
从cookie中取值:var userid = $.cookie("remoteuserid");例子:function delUser() { var table = $('#grid-user-list'); var chkBoxes = table.find('input.invechk...
分类:
其他好文 时间:
2014-07-16 21:37:48
阅读次数:
218
1、new一个web project。2、右键项目,为项目添加Struts支持。点击Finish。src目录下多了struts.xml配置文件。3、使用MyEclipse DataBase Explorer建立数据源。new一个数据源。填入数据源信息。点击test Driver,如果成功显示:点击O...
分类:
编程语言 时间:
2014-07-16 21:23:04
阅读次数:
265
大致的调用方法请参考 AUTH模块缓存最简单的是文件缓存:举个最简单的例子:先配置好cache 配置文件: 1 array( 5 'driver' => 'memcache', 6 'default_expire' => 3600, ...
分类:
其他好文 时间:
2014-07-16 21:16:26
阅读次数:
243
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-07-16 20:50:06
阅读次数:
137
1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误:Could not find a storyboard named 'Main' in bundle NSBundle2、删除main.storyboard后,需要在AppDelegate.m中初始化...
分类:
其他好文 时间:
2014-07-16 20:43:35
阅读次数:
151
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.思路:这道题主要是找出重叠结点和相同斜率之和。此时我们要判断有斜率和无斜率个数,并判断那个数量比较大,...
分类:
其他好文 时间:
2014-07-16 20:26:01
阅读次数:
123
http://www.cnblogs.com/twinsclover/archive/2012/04/26/2471704.html用python的BeautifulSoup分析htmlhttp://www.crummy.com/software/BeautifulSoup/bs3/documentation.zh.htmlBeautifulSoup中文文档1)搜索tag:find(tagname)#直接搜索名为tagname的tag如:find(‘head‘)find..
分类:
编程语言 时间:
2014-07-10 19:12:38
阅读次数:
265
提示bind()错误=10048原因:其他程序占用飞鸽的2425端口比如:飞秋也是使用2425端口解决:用netstat命令查看是哪个进程占用了该端口格式:netstat-ano|find"2425"结果:UDP0.0.0.0:2425*:*1716最后的1716就是占用2425进程的进程ID,看看是什么,可以结束的直接结束该进程,再打..
分类:
其他好文 时间:
2014-07-10 18:08:23
阅读次数:
332