1 2 4 6 8 1 2 14 19 27 1 Toast toast = new Toast(mActivity); 2 View view = LayoutInflater.from(mActivity).inflate(R.layout.my_cente...
分类:
其他好文 时间:
2015-08-26 19:24:44
阅读次数:
98
Problem DescriptionXX星球有很多城市,每个城市之间有一条或多条飞行通道,但是并不是所有的路都是很安全的,每一条路有一个安全系数s,s是在 0 和 1 间的实数(包括0,1),一条从u 到 v 的通道P 的安全度为Safe(P) = s(e1)*s(e2)…*s(ek) e1,e2...
分类:
其他好文 时间:
2015-08-26 19:22:54
阅读次数:
130
congos 添加html的标签,然后写上js的代码,这段代码的功能是得到前一天的日期。
分类:
其他好文 时间:
2015-08-26 19:24:54
阅读次数:
150
有两台机器一直放在IDC 机房一直没怎么正式使用,今天突然说一个项目要上线,于是赶紧配置好环境,做一些权限控制,之前一直使用的是密码登录,现在正式使用公开了,密码登录方式肯定不安全,于是按照之前的方法,使用“密钥+密码”的方式登录系统,配置好ssh 之后 重启服务 用 Xshell 使用KEY 登录...
分类:
其他好文 时间:
2015-08-26 19:23:45
阅读次数:
249
Platform Services Controller (PSC) is a component of the VMware Cloud Infrastructure Suite. PSC deals with identity management for administrators and ...
分类:
其他好文 时间:
2015-08-26 19:23:37
阅读次数:
163
The data link layer or layer 2 is the second layer of the seven-layer OSI model of computer networking. The data link layer is concerned with local de...
分类:
其他好文 时间:
2015-08-26 19:22:19
阅读次数:
158
C++ Code1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757...
分类:
其他好文 时间:
2015-08-26 19:19:55
阅读次数:
179
验证控件一、非空验证 RequiredFieldValidatorErrorMessage - 验证出错后的提示信息ControlToValidate - 要验证的控件的IDDisplay - 显示方式。Static-不显示也占空间。Dynamic-不显示不占空间InitialValue - 验证的...
分类:
其他好文 时间:
2015-08-26 19:19:57
阅读次数:
162
jsp页面中,JSTL El表达式字符串比较常用方法fn:contains 判断字符串是否包含另外一个字符串 fn:containsIgnoreCase 判断字符串是否包含另外一个字符串(大小写无关) fn:endsWith 判断字符串是否以另外字符串结束 fn:escapeXml 把一些字符转成X...
分类:
其他好文 时间:
2015-08-26 19:19:20
阅读次数:
961
UVa 10375 Choose and divide题目:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19601思路: maxn=10000 如果计算maxn!再保存的话显然装不下。 但答案由阶乘的积或商组成,所以可以用唯...
分类:
其他好文 时间:
2015-08-26 19:19:04
阅读次数:
163
今天讲图最基本的东西---储存;一、邻接矩阵:a[i,j]:=...(指从点i到点j的距离);存储方便,但损耗空间太多,若有10000个点就不行了。二、邻接表:这里需要使用指针:这需要逆向保存,代码如下: 1 type 2 point=^node; 3 node=record 4 ...
分类:
其他好文 时间:
2015-08-26 19:20:24
阅读次数:
115
1.在node1上/home/username目录下执行ssh-keygen -t rsa然后3个回车。 2.打开当前目录下.ssh可以看到生成了id_rsa,和id_rsa.pub两个文件。 3.执行scp id_rsa.pub username@node2-IP:/home/userna...
分类:
其他好文 时间:
2015-08-26 19:17:26
阅读次数:
97
#include#include#define maxn 105int a[maxn],dp[maxn],map[maxn][maxn],pre[maxn];int max(int x,int y){ return x>y?x:y;}void print(int p){ if(p==1)...
分类:
其他好文 时间:
2015-08-26 19:18:29
阅读次数:
106
在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集与网络.#运行用户user www-data;#启动进程,通常设置成和cpu的数量相等worker_processes 1;#全局错误日志及PID文件error_log /var/log/nginx/error.log;pi...
分类:
其他好文 时间:
2015-08-26 19:19:09
阅读次数:
129
C#语法中一个个问号(?)的运算符是指:可以为 null 的类型。在处理数据库和其他包含不可赋值的元素的数据类型时,将 null 赋值给数值类型或布尔型以及日期类型的功能特别有用。例如,数据库中的布尔型字段可以存储值 true 或false,或者,该字段也可以未定义。 public DateTime...
分类:
其他好文 时间:
2015-08-26 19:19:17
阅读次数:
130
1.自动填充单元格数据fillHandle:true/false //当值为true时,允许拖动单元格右下角,将其值自动填充到选中的单元格2.合并单元格mergeCells:[{row:起始行数,cols:起始列数,rowspan:合并的行数,colspan:合并的列数},...]3.初始化单元格....
分类:
其他好文 时间:
2015-08-26 19:18:27
阅读次数:
1215