码迷,mamicode.com
首页 >  
搜索关键字:find grep xargs    ( 34906个结果
【LeetCode】Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-10 00:24:49    阅读次数:255
Leetcode | Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他好文   时间:2014-05-09 23:26:18    阅读次数:353
centos vsftp 500 OOPS: cannot change directory
CentO中把vsftpd安裝配置好了,以為大功告成,但用FTP 登入出現下錯誤:500 OOPS: cannot change directoryCentOS系統安裝了SELinux,因為預設下是沒有開啟FTP的服務。//查看SELinux設置# getsebool -a|grep ftpftp_...
分类:其他好文   时间:2014-05-09 22:59:08    阅读次数:351
Summation of primes
是我算法不对,还是笔记本CPU太差?我优化了两次,还是花了三四个小时来得到结果。在输出上加1就是最终结果。The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two mil...
分类:其他好文   时间:2014-05-09 16:20:08    阅读次数:295
Android Layout Binder(在线将XML中View find出来,生成java代码的工具)
废话不多说,这是地址:http://android.lineten.net/layout.php。 有图有真相,例如: 你的XML假如是这样:     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation=...
分类:移动开发   时间:2014-05-09 15:20:54    阅读次数:424
在window上安装pandas
之前在ubuntu上安装pandas,用的easy_install。这次在window上同样方法装遇到"unable to find vcvarsall.bat",看一些网上帖子好像说这个要装minGW解决,不喜欢装那么东西。就直接下exe装pandas,但也遇到问题,在注册表里找不到python2...
分类:Windows程序   时间:2014-05-09 10:00:17    阅读次数:396
LogStash日志分析系统
简介通常日志管理是逐渐崩溃的——当日志对于人们最重要的时候,也就是出现问题的时候,这个渐进的过程就开始了。日志管理一般会经历一下3个阶段:初级管理员将通过一些传统工具(如cat、tail、sed、awk、perl以及grep)对日志进行检查,但它的适用范围仅限于少量的主机和日志文件类型;考虑到现实中...
分类:其他好文   时间:2014-05-09 08:18:10    阅读次数:651
linux中脚本在任意目录执行
完成了一个脚本,find.sh如果希望可以再linux系统中任何位置都可以执行该脚本,可以执行下面操作1. chmod 775 find.sh 给该脚本增加可执行权限2. export PATH=$PATH:存放该脚本的路径
分类:系统相关   时间:2014-05-09 08:16:43    阅读次数:498
8_Shell语言———扩展正则表达式和egrep、fgrep命令
egrep命令等同于grep命令加上-E选项,它支持扩展的正则表达式。扩展正则表达式和基本正则表达式类似,不同之处在于增加了一些新功能,部分元字符的用法也略有不同:.:任意单个字符[]:指定范围内的任意单个字符[^]:取反*:匹配其前的字符0次、1次或多次?:0次或1次{m,n}:至..
分类:其他好文   时间:2014-05-09 07:01:10    阅读次数:431
在erb文件里也可以进行sql查询
<p><%=course=Course.find_by_id(params[:id])%></p>
分类:数据库   时间:2014-05-09 06:43:34    阅读次数:320
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!