码迷,mamicode.com
首页 >  
搜索关键字:cat head tail nl    ( 59491个结果
startallserver
[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
【剑指offer】翻转单词顺序
题目描述: JOBDU最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a student.”。Cat对一一的翻转这些单词顺序可不在行,你能帮助他么? 输入: 每个测试案例为一行,表示一句英文句子。 我们保证一个句子的单词数不会超过600,每个单词的长度也不会超过30。但是需要注...
分类:其他好文   时间:2014-06-05 10:52:19    阅读次数:202
killallserver
[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
TCP源码分析--tcp_write_xmit
版本: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
LeetCode: Plus One [067]
【题目】 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 selected device is not a touchscreen I understand
之前移植了6410后,就没有测试过,今天编写程序烧进去后运行才发现触摸屏不起作用。 于是试了下系统里tslib的bin文件夹下的命令: ./ts_caliberate   结果总是报错:selected device is not a touchscreen I understand 先去飞凌的官方论坛逛了一圈,好多人有这个问题,但没一个解决办法有效。 先用cat命令试了下几个event...
分类:其他好文   时间:2014-06-05 01:04:27    阅读次数:321
jQuery 完成ajax传送jsonObject数据,并在后台处理
1.js文件封装的几个js工具 //兼容ie if (typeof JSON == 'undefined') { $("head").append($("")); } /** * 工具对象,包括所有的公共方法。 */ var giftShopTool = { dialogId : "giftDialog", jsloadArray : [], // 关闭同意弹窗 closeHDdi...
分类:Web程序   时间:2014-06-03 03:52:07    阅读次数:382
linux下ssh面密码登录设置
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
Head First 之 Design Pattern(一):Strategy Pattern && 初入设计模式殿堂
阅读《Head First 设计模式》笔记...
分类:其他好文   时间:2014-06-03 02:17:56    阅读次数:217
在ASP.NET程序中用程序动态向<head>便签里添加<meta>标签
在使用ASP.NET框架开发:若要在Html网页中加入设置,但想通过程序动态加入:1、如果是ASP.NET4.0以前版本:使用HtmlMeta类加入设置://首先我们应该创立HtmlMeta类实体(命名空间:System.Web.UI.HtmlControls)HtmlMeta meta1=new ...
分类:Web程序   时间:2014-05-31 19:34:17    阅读次数:330
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!