[lvhongmin@AY1401201736089361adZ start_svr]$ cat startall_svr.sh
#!/bin/bash
errpath[0]=''
errnum=0
runnum=0
curr_path=`pwd`
#进程的名字
array[${#array[*]}]=/home/lvhongmin/bin/bin....
分类:
其他好文 时间:
2014-06-05 11:11:43
阅读次数:
243
题目描述:
JOBDU最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a student.”。Cat对一一的翻转这些单词顺序可不在行,你能帮助他么?
输入:
每个测试案例为一行,表示一句英文句子。
我们保证一个句子的单词数不会超过600,每个单词的长度也不会超过30。但是需要注...
分类:
其他好文 时间:
2014-06-05 10:52:19
阅读次数:
202
[lvhongmin@AY1401201736089361adZ start_svr]$ cat killall_svr.sh
#!/bin/bash
unrun[0]=''
unnum=0
runnum=0
#进程的名字
array[${#array[*]}]=paiyouQuan.svr
array[${#array[*]}]=jjm.cornucopia.svr...
分类:
其他好文 时间:
2014-06-05 08:04:29
阅读次数:
277
版本:2.6.33.4
发送端 tcp_write_xmit 函数
/* This routine writes packets to the network. It advances the
* send_head. This happens as incoming acks open up the remote
* window for us.
*
* LARGESEND no...
分类:
其他好文 时间:
2014-06-05 04:15:28
阅读次数:
236
【题目】
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
【题意】
给定一个非负整数,这个表示为一个数字数组。计算这个整数加1后的值。
【思路】
从低位到高位依次相加,注意处理进...
分类:
其他好文 时间:
2014-06-05 01:24:44
阅读次数:
250
之前移植了6410后,就没有测试过,今天编写程序烧进去后运行才发现触摸屏不起作用。
于是试了下系统里tslib的bin文件夹下的命令:
./ts_caliberate
结果总是报错:selected device is not a touchscreen I understand
先去飞凌的官方论坛逛了一圈,好多人有这个问题,但没一个解决办法有效。
先用cat命令试了下几个event...
分类:
其他好文 时间:
2014-06-05 01:04:27
阅读次数:
321
1.js文件封装的几个js工具
//兼容ie
if (typeof JSON == 'undefined') {
$("head").append($(""));
}
/**
* 工具对象,包括所有的公共方法。
*/
var giftShopTool = {
dialogId : "giftDialog",
jsloadArray : [],
// 关闭同意弹窗
closeHDdi...
分类:
Web程序 时间:
2014-06-03 03:52:07
阅读次数:
382
ssh 免密码登录
1. ssh-keygen -t rsa
三次回车
2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
3. 验证 ssh localhost 如果不需要密码登录,表示设置成功
4. 面密码登录其他机器
ssh-copy-id -i hostname
注意:hostname必须在...
分类:
系统相关 时间:
2014-06-03 02:45:49
阅读次数:
353
在使用ASP.NET框架开发:若要在Html网页中加入设置,但想通过程序动态加入:1、如果是ASP.NET4.0以前版本:使用HtmlMeta类加入设置://首先我们应该创立HtmlMeta类实体(命名空间:System.Web.UI.HtmlControls)HtmlMeta
meta1=new ...
分类:
Web程序 时间:
2014-05-31 19:34:17
阅读次数:
330