文件处理命令:file、mkdir、grep、dd、find、mv、ls、diff、cat、ln; 系统管理相关命令:df、top、free、quota、at、lp、adduser、groupadd、kill、crontab; 网络操作命令:ifconfig、ip、ping、netstat、teln...
分类:
系统相关 时间:
2015-09-17 10:05:53
阅读次数:
152
最近做了一个neutron集成vyatta的任务,顺便认真学习下neutron的代码,头几行就看到了monkey_patch。首先就从neutron-server的启动脚本开始:[root@controller-39~]#cat/usr/bin/neutron-server
#!/usr/bin/python
#PBRGeneratedfromu‘console_scripts‘
importsys
fromneutron...
分类:
编程语言 时间:
2015-09-16 16:04:37
阅读次数:
500
BC官方支持: http://www.scootersoftware.com/support.php?zz=kb_vcs#gitwindows GIT FOR WINDOWS BC version 4 Diff At a Windows command prompt enter the comman...
分类:
其他好文 时间:
2015-09-16 15:28:19
阅读次数:
385
http://www.2cto.com/os/201402/279033.htmlContentsDocument Control........................................................................................
分类:
其他好文 时间:
2015-09-15 14:44:54
阅读次数:
308
FASTCOPY可以在WINDOWS下使用,也可以在DOS下运行命令 下面是FASTCOPY命令行方式: fastcopy.exe?[/参数]?file1?file2?...?[/to=dest_dir] 基本参数: /cmd=(noexist_only|diff|update|sync|force_copy|move|d...
分类:
其他好文 时间:
2015-09-15 13:09:25
阅读次数:
394
GET 和 POST的区别? 用POST方法发送登陆请求.{ http方法: http协议定义了很多方法对应不同的资源操作,其中最常用的是GET 和 POST 方法. { { GET、POST、OPTIONS、HEAD、PUT、DELETE、TRACE、CONNECT、PATCH } ...
分类:
其他好文 时间:
2015-09-14 21:11:54
阅读次数:
637
就是用了@smlg提到的LCS。我用伪CoffeeScript代码翻译下吧:首先我们把文件old、new转化为两个列表,列表的每个元素是文件的某一行:A = [1行、2行、3行、4行、...]B = [1行、2行、3行、4行、...]然后我们计算A和B最长的相似元素的长度lcs(递归就是力量)lcs...
分类:
其他好文 时间:
2015-09-12 21:37:58
阅读次数:
122
经过搜索验证,提供两个方法。1. 通过分割获取长度原理var s = 'www.51qdq.com';var n = (s.split('.')).length-1;alert(n); //弹出22. 通过正则实现,这种方法暂时不支持 . function patch(re,s){ re=eval(...
分类:
Web程序 时间:
2015-09-11 16:06:51
阅读次数:
141
1、若是使用安裝版的Beyond Compare,將安裝路徑加到環境變量,這樣就可以在cmd中執行BCompare.exe2、在cmd的執行路徑下增加一個文件diff_to_html,輸入以下內容text-report layout:side-by-side & options:ignore-un....
分类:
Web程序 时间:
2015-09-11 12:12:40
阅读次数:
1030
C++11中输出当前时间最直接的方法:std::time_t t2 = std::time(nullptr);cout (ms).count();auto const msecs = diff % 1000;std::time_t t = system_clock::to_time_t(n1);co...
分类:
编程语言 时间:
2015-09-09 21:04:55
阅读次数:
221