码迷,mamicode.com
首页 >  
搜索关键字:shell find    ( 51950个结果
hackerrank---Find a string
题目链接在字符串a中查找字符串b出现的次数...貌似不可以用a.count()附上代码:1 a = raw_input().strip()2 b = raw_input().strip()3 cnt = 0;4 for i in xrange(len(a)):5 cnt += 1 if a....
分类:其他好文   时间:2014-05-14 04:13:06    阅读次数:308
[LeetCode]Longest Valid Parentheses, 解题报告
题目 Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid parentheses substring is "()", ...
分类:其他好文   时间:2014-05-14 01:10:30    阅读次数:318
Linux作业(三)-shell统计某文章中出现频率最高的N个单词并排序输出出现次数
#!/bin/bash if [ $# -ne 2 -a $# -ne 1 ] ;then echo "usage: `basename $0 ` [n] input file " echo exit fi if [ $# -eq 1 ];then I_TOP=10 I_FILE=$1 fi...
分类:系统相关   时间:2014-05-13 06:21:24    阅读次数:454
Hbase常用命令
hbase shell命令的使用 再使用hbase 命令之前先检查一下hbase是否运行正常 hadoop@Master:/usr/hbase/bin$ jps 2640 HMaster 27170 NameNode 27533 SecondaryNameNode 3038 Jps 27795 TaskTracker 27351 DataNode 2574 HQuorumPeer ...
分类:其他好文   时间:2014-05-13 05:40:21    阅读次数:460
0501-APP-launcher-shortcut
判断shutcut是否安装 "com.android.launcher.permission.READ_SETTINGS"/> 这段代码在模拟器上运行没有问题,但是在htc s510e运行报异常Failed to find provider info for com.android.launcher2.settings 通过但因htc所有包发现htc中的launcher被定制了改名为co...
分类:移动开发   时间:2014-05-12 23:58:28    阅读次数:625
远程注册自己的组件
把asp程序作成dll很多好处,但是有一点,该dll必须注册才能在asp中调用。如果是自己的服务器那还好,但如果是租用的虚拟服务器,就没办法使用了。  怎样在远程主机上注册我们的dll呢?在服务器端使用Shell!!! 让我们先将自己的dll文件通过ftp或http上传到服务器上,然后作一个asp程序,调用WScript.Shell来执行regsvr32命令:  Set oShell = C...
分类:其他好文   时间:2014-05-12 23:45:04    阅读次数:377
菜鸟调错(四)——Spring与DWR集成,配置文件报错
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd', because 1) could not find the document;  2)...
分类:编程语言   时间:2014-05-12 22:55:47    阅读次数:409
Leetcode | Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2014-05-12 22:27:04    阅读次数:265
[leetcode]Minimum Depth of Binary Tree @ Python
原题地址:http://oj.leetcode.com/problems/minimum-depth-of-binary-tree/题意:Given a binary tree, find its minimum depth.The minimum depth is the number of no...
分类:编程语言   时间:2014-05-12 21:55:15    阅读次数:348
笑谈Linux
Linux的shell命令难记且容易忘记,但使用以下方法,或许就比较容易记住了。1命令提示符$,#:$表示美元,代表发工资,因此普通用户工作的时候,前面需要放一叠美元工作才有动力。#表示很厉害的意思,发音sharp,虽然不知道root用户到底能做多少事情,但事实是不需要美元激励就有..
分类:系统相关   时间:2014-05-11 19:29:21    阅读次数:354
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!