$.fn.GetPostData = function () { var data = {}; var k = false; $(this).find(".datacontrol").each(function (i, value) { var field = $(value).attr("name
分类:
其他好文 时间:
2016-01-31 02:44:54
阅读次数:
178
FIND:Grep:过滤:grep -i -c root /tmp/a.txt --color 查找a.txt中包含root的字符-i:忽略大小写-c:统计个数-n:显示查找出来的在第几行-v:反转查找^root :以root开头root$ :以root结尾^root$ :空行只显示IP地址:ifc...
分类:
系统相关 时间:
2016-01-30 22:35:56
阅读次数:
175
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes
分类:
其他好文 时间:
2016-01-30 18:28:44
阅读次数:
135
Description Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digi
分类:
其他好文 时间:
2016-01-30 17:52:35
阅读次数:
225
vs 删除行尾空格vs2010:Enter: Ctrl+HFind what: :b*$Replace with: [Empty]Look in: Current DocumentFind Option: Use Regular ExpressionsClick: Replace All解释一下正则表达式::b*$$表示一行的结束,:b表示空格或tab,*表示0个或多个在 Find What 编辑...
分类:
其他好文 时间:
2016-01-30 13:58:35
阅读次数:
249
如何去寻找结题方案topcoder pyalg声明本文是 How to Find a Solution 的翻译转述篇。原文作者为Dumitru。简介topcoder的很多问题都可以通过读题直接解答。原因在于很多题目在某种程度上都具有相似的模式。熟练的coder多数都掌握了从题目中发现相应的模式。这种...
分类:
其他好文 时间:
2016-01-30 13:35:48
阅读次数:
119
dyld: Library not loaded: @rpath Referenced from: Reason: no suitable image found. Did find: 要么使用静态库,要么General -> Embedded Binaries
分类:
移动开发 时间:
2016-01-30 09:34:24
阅读次数:
134
??一、插入\创建文档--当插入一个不存在的文档时,会自动创建一个文档[root@racdb ~]# mongoMongoDB shell version: 2.4.14connecting to: test> show collections> db.cols.insert({bar:"baz"})> db.cols.find(){ "_id" :ObjectId("56aac1df4e61b6...
分类:
数据库 时间:
2016-01-30 02:54:59
阅读次数:
321
题目链接:Find a way bfs水题。 1 /* 2 只有两个人啊。分别以两个人为起点bfs,计算出每个人到每个KFC 的时间。两个人都能到达的KFC的较大时间的最小值、就是ans。好水。T_T 3 */ 4 5 #include <stdio.h> 6 #include <string.h>
分类:
其他好文 时间:
2016-01-30 02:06:07
阅读次数:
149
Quick union improvements1: weighting 为了防止生成高的树,将smaller tree放在larger tree的下面(smaller 和larger是指number of objects),而不是将larger tree放在smaller tree的下面(如上图中
分类:
其他好文 时间:
2016-01-29 21:11:48
阅读次数:
231