买了遨游的VPS,试用了一下阿里云,1m带宽实在受不了,现在开始跟李炎恢老师试试快速搭建1.先将VPS重置成centOS6,第一步需要做的是修改root密码,方便以后使用#passwdrootNewpassword:输入新密码RetypeNewpassword:输入新密码2.登录www.lnmp.org查看安装教程使用命令wget-ch..
分类:
其他 时间:
2015-10-07 23:01:59
收藏:
0 评论:
0 赞:
0 阅读:
367
好压压缩软件,又叫“2345好压”,是一款国产的优秀压缩软件,目前是免费的,据官网介绍,该软件永久免费。官网地址:http://haozip.2345.com/本文主要对该软件的命令行模式用法进行介绍。目前,压缩软件支持命令行模式的还有winrar,一款国外的优秀老牌压缩软件,winrar的命令行模...
分类:
其他 时间:
2015-10-07 22:59:28
收藏:
0 评论:
0 赞:
1 阅读:
7283
package lx;public class lx { public static void main(String[] args) { for(int i = 1;i = i; h--) { System.out.print(" ");//打印空格,从9个到1个 } for(...
分类:
其他 时间:
2015-10-07 22:59:18
收藏:
0 评论:
0 赞:
0 阅读:
252
在Scala中函数和方法有什么区别方法可以作为一个表达式的一部分出现(调用函数并传参),但是方法(带参方法)不能作为最终的表达式,但是函数可以作为最终的表达式出现:scala> //定义一个方法scala> def m(x:Int) = 2*xm: (x: Int)Intscala> //定义一个函...
分类:
其他 时间:
2015-10-07 22:58:48
收藏:
0 评论:
0 赞:
0 阅读:
345
最近学习juniper的防火墙,在网上找的模拟器。根据http://bbs.hh010.com/thread-377313-1-1.html的设置,但virtualbox启动时一直报错NamedPipe#0 failed to connect to named pipe \\.\pipe\com_1...
分类:
其他 时间:
2015-10-07 22:58:19
收藏:
0 评论:
0 赞:
0 阅读:
2768
class rectangle{public: conner left_bottle; // 为了计算方便,把几个点都列出 int width; // 宽度 int height; // }void outrec(vector >::iterator recout,int n){ ...
分类:
其他 时间:
2015-10-07 22:57:28
收藏:
0 评论:
0 赞:
0 阅读:
125
题三 加分二叉树【问题描述】 设一个n个节点的二叉树tree的中序遍历为(l,2,3,…,n),其中数字1,2,3,…,n为节点编号。每个节点都有一个分数(均为正整数),记第j个节点的分数为di,tree及它的每个子树都有一个加分,任一棵子树subtree(也包含tree本身)的加分计算方法如下: ...
分类:
其他 时间:
2015-10-07 22:56:28
收藏:
0 评论:
0 赞:
0 阅读:
199
纠结了一小会怎么写标题,还是放弃了,感觉每次写随笔就像去菜市场买菜,去的路上一直纠结今天吃什么好,结果转了两圈手上拎的就够满足自己一天的口腹之欲了。这个比喻不是很恰当,先凑合着吧。本想着国庆的最后一天要怎么怎么地总结下自己这几天的成果,回过头来,却发现自己能够拿出来的实在是少之又少。零乱、记不住、....
分类:
其他 时间:
2015-10-07 22:56:19
收藏:
0 评论:
0 赞:
0 阅读:
216
LCA,全称为Lowest Common Ancestor, 即最近公共祖先。这是对于有根树而言的,两个节点u, v的公共祖先中距离最近的那个被称为最近公共祖先(这解释。。真通俗。。。)我们来看个图:4和7的LCA是2,5和6的LCA是1,2和5的LCA是2。最笨的实现方法就是;对于同一深度的点,一...
分类:
其他 时间:
2015-10-07 22:55:58
收藏:
0 评论:
0 赞:
0 阅读:
291
启动一个容器:$ sudo docker run --name -d redis连接一个容器:sudo docker run -it --link :redis --rm redis sh -c 'exec redis-cli -h "$REDIS_PORT_6379_TCP_ADDR" -p "....
分类:
其他 时间:
2015-10-07 22:54:38
收藏:
0 评论:
0 赞:
0 阅读:
224
1.GCD的简单介绍GCD全称Great Center Dispatch,我们可以给它起个‘滚床单’名字,便于更好的记忆GCD是由苹果公司开发的技术。是为了优化应用程序,支持多核心处理器和其他的对称多处理系统的系统GCD属于函数级的多线程,运用的是C语言(大部分接触的是block块),性能更高,功能...
分类:
其他 时间:
2015-10-07 22:54:28
收藏:
0 评论:
0 赞:
0 阅读:
244
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.According to thedefinition of LCA on Wikipedia: “The lowest ...
分类:
其他 时间:
2015-10-07 22:54:18
收藏:
0 评论:
0 赞:
0 阅读:
274
这个问题是在真机调试时发生的,使用模拟器没有发现这个问题,具体报错如下图: 意思就是读取的时候没有找到这张图片,检查了一下图片路径,没有问题,有两种解决方法。 1.在build settings里把工程里的Compress PNG files设置为NO,但这样设置以后,弄出来的i...
分类:
其他 时间:
2015-10-07 22:54:08
收藏:
0 评论:
0 赞:
0 阅读:
322
x64下fs的角色已经换成了gs.暂时发现存储的一些感兴趣的东西,如果有其他的,希望能告知我.gs:[0x30] TEBgs:[0x40] Pidgs:[0x48] Tidgs:[0x60] PEBgs:[0x68] LastErrorgs:[0x188] _ethread
分类:
其他 时间:
2015-10-07 22:53:58
收藏:
0 评论:
0 赞:
0 阅读:
655
#includeusing namespace std;const int maxn=1e6+200;const int INF = 0x3f3f3f3f;int a[maxn],b[maxn],endminv[maxn];int dp[maxn];int BinSearch(int l,int r...
分类:
其他 时间:
2015-10-07 22:53:48
收藏:
0 评论:
0 赞:
0 阅读:
249
本题算法不难想出,但是中间还是出现了一些问题。开始的时候是#11:Execution error,后来把普通的数组改成动态数组后问题消失。后来又出现了Execution error: Your program had this runtime error: Illegal file open (/d...
分类:
其他 时间:
2015-10-07 22:53:38
收藏:
0 评论:
0 赞:
0 阅读:
295
Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:
其他 时间:
2015-10-07 22:53:28
收藏:
0 评论:
0 赞:
0 阅读:
334
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
其他 时间:
2015-10-07 22:52:58
收藏:
0 评论:
0 赞:
0 阅读:
274
A,水题不多说。#includeusing namespace std;//#define LOCALint main(){#ifdef LOCAL freopen("in.txt","r",stdin);#endif int n,t; scanf("%d%d",&n,&t); i...
分类:
其他 时间:
2015-10-07 22:52:39
收藏:
0 评论:
0 赞:
0 阅读:
330
1.仔细阅读示例: EnumTest.java,运行它,分析运行结果?源代码:public class EnumTest { public static void main(String[] args) { Size s=Size.SMALL; Size t=Size.LARGE; //s和t...
分类:
其他 时间:
2015-10-07 22:52:28
收藏:
0 评论:
0 赞:
0 阅读:
151