查看已安装的java 1 [root@s0 Soft]# rpm -qa | grep java 2 tzdata-java-2013c-1.el6.noarch 3 java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64 4 java-1.7.0-...
分类:
编程语言 时间:
2014-06-25 12:37:09
阅读次数:
652
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:
其他好文 时间:
2014-06-25 11:14:15
阅读次数:
218
题目链接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 conca...
分类:
其他好文 时间:
2014-06-25 09:42:27
阅读次数:
230
之前一直对tcp keepalive选项理解有误,以为通过setsockopt函数设置SO_KEEPALIVE和相关参数后该socket则使用设置的keepalive相关参数否则使用系统默认的:keepalive配置(如下)root@xxx-KVM:/# sysctl -a | grep keepn...
分类:
其他好文 时间:
2014-06-25 09:37:09
阅读次数:
238
【题目】
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecutive elements sequence is [1, 2, 3, 4]. Return its length: 4.
Your algorithm should run...
分类:
其他好文 时间:
2014-06-25 07:55:42
阅读次数:
244
【题目】
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 the total sum of all root-to-leaf numbers.
For example,
1
...
分类:
其他好文 时间:
2014-06-25 07:32:27
阅读次数:
209
查找包含BOM头的文件,命令如下:grep-r-I-l$‘^\xEF\xBB\xBF‘./这条命令会查找当前目录及子目录下所有包含BOM头的文件,并把文件名在屏幕上输出。但是,删除BOM头,网上找到的命令大多不能用,比较常见的命令是:grep-r-I-l$‘^\xEF\xBB\xBF‘/path|xargssed-i‘s/^\xEF\xBB\xBF//..
分类:
Web程序 时间:
2014-06-25 06:40:16
阅读次数:
266
$(window.frames[2].document.body).find(‘#strTaketime‘).val()
$(window.frames[‘f‘].document.body).find(‘#strTaketime‘).val()
$(top.document.body).find(‘#strTaketime‘).val()
分类:
Web程序 时间:
2014-06-25 06:34:52
阅读次数:
191
常用命令整理如下:查看主板的序列号:dmidecode|grep-i’serialnumber’用硬件检测程序kuduz探测新硬件:servicekudzustart(orrestart)查看CPU信息:cat/proc/cpuinfo[dmesg|grep-i‘cpu‘][dmidecode-tprocessor]查看内存信息:cat/proc/meminfo[free-m][vmstat]查看板卡信息:c..
分类:
其他好文 时间:
2014-06-25 06:21:07
阅读次数:
334
"Could not find SQL statement to include with refid xxx"A: 认真把每个用到xxx的地方都看一遍
分类:
数据库 时间:
2014-06-25 00:58:20
阅读次数:
216