码迷,mamicode.com
首页 >  
搜索关键字:find exec xargs    ( 31575个结果
[LeetCode] Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-06-26 00:29:49    阅读次数:168
提高sql2005中带freetexttable和rank的全文检索的速度
原来使用中的sql2005的全文检索的速度总是不如意,尤其是带rank的。今天搜了一下,原来在freetexttable中还有一个参数top_n_by_rank,是第4个参数。注意还要设置:EXEC sp_configure 'precompute rank', '1'EXEC sp_configu...
分类:数据库   时间:2014-06-25 23:42:54    阅读次数:305
文件Move操作
#coding = utf-8import osstr1 = 'd:/v3/'str2 = 'd:/v3/'fobj = open('D:/V3/txt/1.txt','rb')line = fobj.readline()while line: if(line.find('a') > 0):...
分类:其他好文   时间:2014-06-25 23:22:26    阅读次数:270
Find and counter
Find: In a sense, find is the opposite of the [] operator. Instead of taking an index and extracting the corresponding character, it takes a...
分类:其他好文   时间:2014-06-24 12:38:45    阅读次数:173
OS | Process
linux多进程1. fork()创建进程,创建一份父进程的拷贝;在父进程中返回的是子进程id,在子进程中返回的是0;失败时返回-1;2. fork()经常和exec()结合,exec() 覆盖了原进程的空间,转而执行其他程序;3. 杀掉父进程,不会同时杀掉子进程;孤儿进程:一个父进程退出,而它的一...
分类:其他好文   时间:2014-06-24 11:44:25    阅读次数:264
C#----List<>,DataTable,DataView的使用
首先申明一下,写此博文的目的是纪录一下,知识都是现成的,只是整理一下,为了让自己更容易看懂,比在其他地方更容易明白。因为它们太常用了,不忍心每次都去用那么长的时间查看MSDN,希望能在这里用理少的时间来理解并运用其用法。最终目标是减少从接触到能理解并使用的时间。List类型的查找操作Find ...
分类:其他好文   时间:2014-06-22 10:48:22    阅读次数:231
linux学习之路之文本的查找---find命令的使用
文本的查找可以使用两种方式来实现,即使用locate命令来查找和find命令来查找那么这两种方式有什么区别呢?locate:是一种非实时查找,所谓非实时查找就是查找的不够实际,不够精确。因为locate查找是在系统文件数据库中进行的,而数据库默认是一天更新一次,也就是说你查找的..
分类:系统相关   时间:2014-06-22 09:50:43    阅读次数:208
Linux 下 Error: Could not find or load main class Hello
在linux下写了一个非常简单的Hello world程序,编译运行竟然报错:Error: Could not find or load main class Hello 最后发现是CLASSPATH的问题。 首先需要检查jdk环境变量是否配置正确:参考这篇文章:ubuntu12.04 安装配置jdk1.7 主要在环境变量这块: export JAVA_HOME=/usr/java/jdk...
分类:系统相关   时间:2014-06-22 08:58:51    阅读次数:410
Leetcode-Sum Root to Leaf Numbers
题目: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find...
分类:其他好文   时间:2014-06-22 08:30:24    阅读次数:236
The method Inflate() in android
Inflate() method can find out a layout defined by xml,as like the findViewById() method,but there have some different between them. The different are: If your Activity used other layout,such as...
分类:移动开发   时间:2014-06-22 06:41:43    阅读次数:362
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!