如果本地磁盘满了,以下root目录下文件需要打包到远程主机的命令
tarcvf-/root|ssh192.168.137.128"cd/mnt;cat->linuxawk.tgz"更新用法参考以下链接http://scm.zoomquiet.io/data/20101215175709/index.html
分类:
其他 时间:
2015-01-09 19:33:17
收藏:
0 评论:
0 赞:
0 阅读:
287
https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/http://blog.csdn.net/linhuanmars/article/details/40449299publicclassSolution{
publicintfindMin(int[]num){
//SolutionA:
//returnfindMin_Iteration(num);
//SolutionB:
returnfindMin_Recu..
分类:
其他 时间:
2015-01-09 19:32:56
收藏:
0 评论:
0 赞:
0 阅读:
224
https://oj.leetcode.com/problems/min-stack/http://blog.csdn.net/linhuanmars/article/details/41008731classMinStack{
publicvoidpush(intx){
data.push(x);
if(min.empty()||(x<=(int)min.peek()))
{
min.push(x);
}
}
publicvoidpop(){
if(data.empty())
return;
in..
分类:
其他 时间:
2015-01-09 19:32:46
收藏:
0 评论:
0 赞:
0 阅读:
187
在ruby中我们要实现遍历指定目录的方法,网上的方法也非常之多,我们可以拿来参考参考,如下边的traverse.rb文件内容所示:#!/usr/bin/ruby
deftraverse(filepath)
ifFile.directory?(filepath)
puts"Dirs:"+filepath
Dir.foreach(filepath)do|filename|
iffilename!="."andfil..
分类:
其他 时间:
2015-01-09 19:32:17
收藏:
0 评论:
0 赞:
0 阅读:
307
https://oj.leetcode.com/problemset/algorithms/http://www.cnblogs.com/yuzhangcmu/p/4128794.html/**
*Definitionforsingly-linkedlist.
*publicclassListNode{
*intval;
*ListNodenext;
*ListNode(intx){
*val=x;
*next=null;
*}
*}
*/
publicclassSolution{
//Assumehead..
分类:
其他 时间:
2015-01-09 19:32:07
收藏:
0 评论:
0 赞:
0 阅读:
254
计划任务分2种:1、例外性:按一定的周期循环来执行工作,例如每月发薪水、每天一次的工作报告、每天需要的打卡等等;2、临时性:指定时间执行的命令,这次做完下次不必做的,例如女朋友的生日、领导检查工作等;这些计划任务的工作Linux也都可以帮助我们,例如:每天早6:00要..
分类:
其他 时间:
2015-01-09 19:31:07
收藏:
0 评论:
0 赞:
0 阅读:
353
https://oj.leetcode.com/problemset/algorithms/http://siddontang.gitbooks.io/leetcode-solution/content/array/find_peak_element.htmlpublicclassSolution{
publicintfindPeakElement(int[]num){
//SolutionA:
returnfindPeakElement_Binary(num);
//SolutionB:
//retur..
分类:
其他 时间:
2015-01-09 19:30:36
收藏:
0 评论:
0 赞:
0 阅读:
193
https://oj.leetcode.com/problems/compare-version-numbers/http://blog.csdn.net/u012243115/article/details/41969181publicclassSolution{
publicintcompareVersion(Stringversion1,Stringversion2){
if(version1==null||version2==null)
return0;//Invalidinput.
//NOTE!..
分类:
其他 时间:
2015-01-09 19:30:16
收藏:
0 评论:
0 赞:
0 阅读:
265
https://oj.leetcode.com/problems/excel-sheet-column-title/http://blog.csdn.net/miss_snow_m/article/details/42098357publicclassSolution{
publicStringconvertToTitle(intn){
if(n<=0)
returnnull;
StringBuildersb=newStringBuilder();
do
{
intd=n%26;
sb.append..
分类:
其他 时间:
2015-01-09 19:30:06
收藏:
0 评论:
0 赞:
0 阅读:
238
操作系统升级到centos7后默认的FS变成了xfs首先找个现成的分区练练手[root@localhostothers]#df-hTFilesystemTypeSizeUsedAvailUse%Mountedon/dev/mapper/centos-rootxfs28G5.9G22G22%/devtmpfsdevtmpfs912M0912M0%/devtmpfstmpfs920M0920M0%/dev/shmtmpfstmpfs920M8.7M912M1%/..
分类:
其他 时间:
2015-01-09 19:29:57
收藏:
0 评论:
0 赞:
0 阅读:
1107
<filter><filter-name>struts-cleanup</filter-name><filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class></filter><filter-mapping><filter-name>struts-cleanup</filter-name><url-p..
分类:
其他 时间:
2015-01-09 19:29:47
收藏:
0 评论:
0 赞:
0 阅读:
286
https://oj.leetcode.com/problems/majority-element/publicclassSolution{
publicintmajorityElement(int[]num){
intlen=num.length;
intminhit=(len/2)+1;
Map<Integer,Integer>map=newHashMap<>();
for(inti:num)
{
Integeroccur=map.get(i);
if(occur==null)
..
分类:
其他 时间:
2015-01-09 19:29:36
收藏:
0 评论:
0 赞:
0 阅读:
261
https://oj.leetcode.com/problems/excel-sheet-column-number/publicclassSolution{
publicinttitleToNumber(Strings){
if(s==null||s.isEmpty())
return0;//invalidinput
char[]chars=s.toCharArray();
intr=0;
for(charc:chars)
{
r=r*26+(c-‘A‘)+1;
}
returnr;
}
}
分类:
其他 时间:
2015-01-09 19:29:26
收藏:
0 评论:
0 赞:
0 阅读:
256
在项目根目录建议一个.gitignore文件,根据需要输入如下内容(可参见官方模板https://github.com/github/gitignore)#-------Object-c----#Xcode#build/*.pbxuser!default.pbxuser*.mode1v3!default.mode1v3*.mode2v3!default.mode2v3*.perspectivev3!default.perspectivev3xcu..
分类:
其他 时间:
2015-01-09 19:29:06
收藏:
0 评论:
0 赞:
0 阅读:
285
https://oj.leetcode.com/problems/factorial-trailing-zeroes/publicclassSolution{
publicinttrailingZeroes(intn){
if(n<=0)
return0;//Invalidinput.
//Howmany5s,25s,125s...
intbase=5;
intfives=0;
do
{
fives+=n/d;
base*=5;
}
while(base<=n);
returnfives;
}
}
分类:
其他 时间:
2015-01-09 19:28:56
收藏:
0 评论:
0 赞:
0 阅读:
175
https://oj.leetcode.com/problems/binary-tree-upside-down/http://blog.csdn.net/xudli/article/details/42362441/**
*Definitionforbinarytree
*publicclassTreeNode{
*intval;
*TreeNodeleft;
*TreeNoderight;
*TreeNode(intx){val=x;}
*}
*/
publicclassSolution{
publicT..
分类:
其他 时间:
2015-01-09 19:28:27
收藏:
0 评论:
0 赞:
0 阅读:
254
一、前言
关于骨骼动画,如果大家不知道是什么东东的话,可以先百度一下。
如果大家有去玩过我介绍的《BattleHeart》的话,你会发现,里面用到的就是骨骼动画,而且骨骼动画有几个帧序列动画无法比拟的优点:
1)不需要太多的资源,就可以实现多种动画
2)动画效果可以自行设置(很适合像我这种没有美工MM辅助的苦逼)
3)可以随意替换,如果你有认真观察《BattleHeart》的话,你会发现...
分类:
其他 时间:
2015-01-09 19:25:36
收藏:
0 评论:
0 赞:
0 阅读:
288
题目大意:。。。自己看
从源点出发,分别向汇点连两条流量为a和b的边,跑最大流即是a+b。
代码:
#include
#include
#include
#include
#define M 10
#define S 1
#define T 2
#define INF 0x3f3f3f3f
using namespace std;
struct abcd{
int to,f,nex...
分类:
其他 时间:
2015-01-09 19:25:07
收藏:
0 评论:
0 赞:
0 阅读:
237
错误提示:
[root@localhost kvm_demo]# qemu-system-x86_64 -m 1024 -smp 4-bootorder=cd -hda /home/kx/kvm_demo/xp.img -cdrom /home/kx/kvm_demo/winxp_32.iso
Could not access KVM kernel module: No such file...
分类:
其他 时间:
2015-01-09 19:24:46
收藏:
0 评论:
0 赞:
0 阅读:
309
系统自带的SlidingDrawer,只提供了两个方向的滑动:从下到上,从右到左。下面介绍四个方向都可以滑动的抽屉控件。
自定义控件,包含自定义属性,可以制定方向。leftToRight,bottomToTop,rightToLeft,topToBottom
handle.xml
<RelativeLayout xmlns:android="http://schemas.android...
分类:
其他 时间:
2015-01-09 19:24:26
收藏:
0 评论:
0 赞:
0 阅读:
263