指定登陆用户
默认的,ssh 会尝试用当前用户作为用户名来连接。在上面的示例命令中,ssh 会尝试用用户名叫 pungki 的用户身份来登入服务器,这是因为用户 pungki 正在客户机上使用 ssh 客户端软件。
假如目标主机上没有叫 pungki 的用户呢?这时你就必须提供一个目标主机上存在的用户名。从一开始就要指定用户名的,可以使用 -l 选项参数。
$ ssh -l leni...
分类:
其他 时间:
2015-03-11 21:45:16
收藏:
0 评论:
0 赞:
0 阅读:
295
uva 10003 Cutting SticksDescription你的任务是替一家叫Analog Cutting Machinery (ACM)的公司切割木棍。切割木棍的成本是根据木棍的长度而定。而且切割木棍的时候每次只切一段。很显然的,不同切割的顺序会有不同的成本。例如:有一根长10公尺的木棍必须在第2、4、7公尺的地方切割。这个时候就有几种选择了。你可以选择先切2公尺的地方,然后切4公尺的地...
分类:
其他 时间:
2015-03-11 21:45:06
收藏:
0 评论:
0 赞:
0 阅读:
377
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
不难,考细节
class Solution {
public:
string addBinary(string a, string b) {
...
分类:
其他 时间:
2015-03-11 21:44:46
收藏:
0 评论:
0 赞:
0 阅读:
237
标题在文字写书写不同数量的#可以完成不同的标题,如下:# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题呈现效果:一级标题二级标题三级标题四级标题五级标题六级标题等号及减号也可以进行标题的书写,不过只能书写二级标题,并且需要写在文字的下面,减号及等号的数量不会影响标题的基数,如下:二级标题
=========二级标题
---------呈...
分类:
其他 时间:
2015-03-11 21:44:37
收藏:
0 评论:
0 赞:
0 阅读:
313
昨天在使用dwr的时候遇到了session error 错误,google之后,在老外的一个论坛上看到了一个解决方法,
就是在web.xml 中配置如下:
dwr-invoker
org.directwebremoting.servlet.DwrServlet
debug
true
logLevel
warn
...
分类:
其他 时间:
2015-03-11 21:44:26
收藏:
0 评论:
0 赞:
0 阅读:
251
xmind文件下载...
分类:
其他 时间:
2015-03-11 21:44:16
收藏:
0 评论:
0 赞:
0 阅读:
284
题意:
N,个点,M条路,W个虫洞,虫洞的边就是负的
如果出现负环代表YES
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define maxn 1000
const int INF = 1111111111;
int N,M,...
分类:
其他 时间:
2015-03-11 21:44:07
收藏:
0 评论:
0 赞:
0 阅读:
279
1. IGES文件将3维模型导入
2. 对于规则的volumns 类型, elements type 选择 brick 8 node 185
global set - size of elments length k (单位:mm)
3 对与不规则的areas 类型 elements type 选择 shell 3D 8NODES 185
global ...
分类:
其他 时间:
2015-03-11 21:43:59
收藏:
0 评论:
0 赞:
0 阅读:
626
一、SPINE使用
研究2D骨骼动画,CYou的朋友介绍我SPINE这个工具,开发自EsotericSoftware的一款专门制作2D动画的软件,网络上的资料还很少,我这从半吊子美术技术的角度简单说一下使用教程。
有几个不错的地方:
1、美术制作前准备的贴图为一堆小切片图。不用非得拼成一张atlas,spine会做这一步,详见步骤七,
导出数据时会动态的将切片合...
分类:
其他 时间:
2015-03-11 21:43:16
收藏:
0 评论:
0 赞:
0 阅读:
875
彩色图像处理...
分类:
其他 时间:
2015-03-11 21:43:07
收藏:
0 评论:
0 赞:
0 阅读:
253
Problem Description
Lele now is thinking about a simple function f(x).If x = 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x-3) + …… + a9 * f(x-10);
And ai(0<=i<=9) can only be 0...
分类:
其他 时间:
2015-03-11 21:42:57
收藏:
0 评论:
0 赞:
0 阅读:
215
代码块用TAB键起始的段落,会被认为是代码块,如下:
echo “hello world";
呈现效果:
echo “hello world";
如果在一个行内需要引用代码,只要用反引号`引起来就好,如下:Use the `printf()` function.呈现效果:
Use the printf() fun...
分类:
其他 时间:
2015-03-11 21:42:47
收藏:
0 评论:
0 赞:
0 阅读:
304
马上又要继续出来创业做事了,想到要注册公司,有个麻烦事。 事情得回到2014年9月。 当时,由于各种因素,决定放弃ITFriend,当然也放弃了原来了公司。先是,咨询了横德瑞的陈总,关于公司注销的事。他是这么说的:公司注销,需要花费5000元左右,6个月左右的时间。也说道,如果不注销,3年内不能再当法人。 当时,我是这么想的:花这么多钱,还要这么长时间(我比较担心,需要留在北京6个...
分类:
其他 时间:
2015-03-11 21:42:26
收藏:
0 评论:
0 赞:
0 阅读:
269
String
StringBuilder
StringBuffer...
分类:
其他 时间:
2015-03-11 21:42:16
收藏:
0 评论:
0 赞:
0 阅读:
241
一开始我以为直线上怎么会有最短距离,后来发现每两点之间直接到和间接到达的距离一样的,比如 1 ->2->3 = 1->2+2->3但是不等于1->3的直接距离
建完图以后直接Floyd就行,还有就是long long 会WA ,用__int64
#include
#include
#include
#include
#include
#include
#include
#incl...
分类:
其他 时间:
2015-03-11 21:42:06
收藏:
0 评论:
0 赞:
0 阅读:
302
题意:求从出发点到每个车站的最短距离+从每个车站回到出发点的最短距离是多少
思路:如果从每个点到出发点求一次最短路10^5个点10^5次求SPFA也会超时,那么如果我们反向建边的话可以只用一次SPFA,因为是单向边嘛,把箭头反过来,再求一次起点到各点的最短距离不就行了?
#include
#include
#include
using namespace std;
const int inf ...
分类:
其他 时间:
2015-03-11 21:41:50
收藏:
0 评论:
0 赞:
0 阅读:
277
#include
int main()
{
int i,n,a[10000],sum,j;
while(~scanf("%d",&n)&&n)
{
sum=1;
for(i=0;;i++)
{
a[i]=n%2;
n=n/2;
if(a[i]...
分类:
其他 时间:
2015-03-11 21:41:26
收藏:
0 评论:
0 赞:
0 阅读:
223
高并发处理...
分类:
其他 时间:
2015-03-11 21:41:06
收藏:
0 评论:
0 赞:
0 阅读:
279
#include
#include
#include
#include
using namespace std;
const int Max_v = 1000 + 10;
const int INF = 9999999;
int cost[Max_v][Max_v];//权值
int d[Max_v];//顶点s出发最短距离
bool used[Max_v];//以使用过的图
int V...
分类:
其他 时间:
2015-03-11 21:40:56
收藏:
0 评论:
0 赞:
0 阅读:
174
关于继承的理解,先看两个类
person类
class Person{
private String name ;
private int age ;
public void setName(String name){
this.name = name ;
}
public void setAge(int age){
this.age = age ;
}
public S...
分类:
其他 时间:
2015-03-11 21:40:46
收藏:
0 评论:
0 赞:
0 阅读:
221