一、系统版本1)CentOS7.1.15032)CentOS7.2.1511二、通过tar命令备份当前操作系统#tarcvpzf/mnt/linuxbackup.tgz--exclude=/proc--exclude=/lost+found--exclude=/mnt/linuxbackup.tgz--exclude=/mnt--exclude=/sys/命令解释:tar:linux常用的打包程序cvpzf:是tar的参数c-创建..
分类:
其他好文 时间:
2016-01-12 06:40:54
阅读次数:
701
[root@master~]#salt--helpUsage:salt[options]‘<target>‘<function>[arguments]Options:--versionshowprogram‘sversionnumberandexit[root@master~]#salt--versionsalt2015.5.5(Lithium)--versions-reportshowprogram‘sdependenciesversionnumberandexit[root@mas..
分类:
其他好文 时间:
2016-01-12 06:40:18
阅读次数:
564
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straight forward solution...
分类:
其他好文 时间:
2016-01-12 06:36:27
阅读次数:
207
@echo offrem 这里写你的仓库路径set REPOSITORY_PATH=D:\Java\reporem 正在搜索...for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do ( del /...
分类:
其他好文 时间:
2016-01-12 06:37:38
阅读次数:
220
遍历数组找出有没有重复的元素 首先想到用一个数组记录出现的元素的个数代码:public class Solution { public boolean containsDuplicate(int[] nums) { if(nums.length == 0) return true...
分类:
其他好文 时间:
2016-01-12 06:36:34
阅读次数:
135
The structure of Segment Tree is a binary tree which each node has two attributes start and end denote an segment / interval.start and end are both in...
分类:
其他好文 时间:
2016-01-12 06:37:35
阅读次数:
328
1 设置栅格0.05显示栅格为0.05,单位设置毫米(umm)设置完成后保存。2 绘制板框。为板框设置原点。设置原点快捷键的方法为先选中板框,然后键盘输入SO确定。设置板框的时候如果都是直角板框有时候需要倒角那么首先需要选择板框右键添加倒角。弹出对话框中设置半径如果需要到某个角则只选择某一个角。如果...
分类:
其他好文 时间:
2016-01-12 06:36:41
阅读次数:
275
所谓工欲善其事,必先利其器,所以通读了cheerio的API,顺便翻译了一遍,有些地方因为知道的比较少,不知道什么意思,保留了英文,希望各位不吝告诉我,然后一起把这个翻译完成。###cheerio 为服务器特别定制的,快速、灵活、实施的jQuery核心实现. ###Introduction 将HTM...
分类:
其他好文 时间:
2016-01-12 06:34:03
阅读次数:
278
1.在outlook网页,“管理帐户”下,单击“通过 POP 连接设备和应用”,在“POP”下,选择“启用”,保存。2.接收 (IMAP) 服务器服务器地址:imap-mail.outlook.com端口:993加密连接:SSL发送 (SMTP) 服务器服务器地址:smtp-mail.outlook...
分类:
其他好文 时间:
2016-01-12 06:35:17
阅读次数:
170
如题所说,userInteractionEnabled是一个骗子,我为了她研究一个晚上A Boolean value that determines whether user events are ignored and removed from the event queue.When set t...
分类:
其他好文 时间:
2016-01-12 06:34:13
阅读次数:
217
1、问题描述:n个作业{1,2,…,n}要在由2台机器M1和M2组成的流水线上完成加工。每个作业加工的顺序都是先在M1上加工,然后在M2上加工。M1和M2加工作业i所需的时间分别为ai和bi。流水作业调度问题要求确定这n个作业的最优加工顺序,使得从第一个作业在机器M1上开始加工,到最后一个作业在机器...
分类:
其他好文 时间:
2016-01-12 06:33:59
阅读次数:
369
文章内容来自:国信安刘阳在我们下载的Android SDK环境中有一个AVD Manager.exe文件,此这个文件比较简单翻译过来Android Virtual Device Manager,它可以配置想要的Android虚拟设备,模拟一些真实的Android设备参数。但是AVD Manager现...
分类:
其他好文 时间:
2016-01-12 06:31:26
阅读次数:
199
打开终端输入cd ~vim .bash_profile插入export CLICOLOR=1export LSCOLORS=gxfxcxdxbxegedabagacadexport PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\0...
分类:
其他好文 时间:
2016-01-12 06:29:33
阅读次数:
169
原文地址:runtime 方法替换 和 动态添加类方法 结合使用前言:方法替换,可以替换任意外部类的方法,而动态添加方法只能实现在被添加类创建的对象里,但是将方法替换和动态添加方法结合使用,可以实现,对任意外部类动态添加需要的方法。缺陷:1、含参数的方法难以处理,参数值需要根据实际业务逻辑而定。2、...
分类:
其他好文 时间:
2016-01-12 06:29:27
阅读次数:
219
cat > config.h#define CONFIG_BOARDDIR board/$BOARDDIR#include #include #include #include #include #include EOF 输入任何东西放入config.h结尾,以EOF为结束标志。
分类:
其他好文 时间:
2016-01-12 06:30:19
阅读次数:
209
import requestsimport reurl = "http://www.acfun.tv/v/list110/index.htm?from=fixedNav"context = requests.get(url).text#print(html.text)pattern1 = re.co...
分类:
其他好文 时间:
2016-01-12 06:29:26
阅读次数:
177
翻译给定两个字符串s和t,写一个函数来确定是否t是s的字谜。例如,
s = "anagram", t = "nagaram", 返回true
s = "rat", t = "car", 返回false备注:
你可以假设字符串只包含小写字母。跟进:
如果输入包含unicode字符该怎么做?你的解决方案能够适应这种情况吗?原文Given two strings s and t, write a func...
分类:
其他好文 时间:
2016-01-12 01:25:40
阅读次数:
212