1.在命令终端来获取root用户权限在终端中输入:sudo passwd rootEnter new UNIX password: (在这输入你的密码)Retype new UNIX password: (确定你输入的密码)passwd: password updated successfully以...
分类:
系统相关 时间:
2014-07-09 18:51:40
阅读次数:
206
1、远程查询进程: tasklist [/S system [/U username [/P [password]]]] [/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH] 如:tasklist /S domain /U d...
题目:Zhuge Liang's Password
题目大意:给出两个N * N 的数组,问后一个数组(可以旋转)与前一个数组比较,相同位置上的相同数字的最大个数。
解题思路:把3个旋转后的数组的坐标理起清楚就可以了。
代码:
#include
#include
const int N = 35;
int p1[N][N], p2[N][N];
int ...
分类:
其他好文 时间:
2014-07-08 18:21:52
阅读次数:
286
public static void main(String[] args) {
/*普通对象与json相互转换*/
User u = new User("miquan", "000");
//{"@type":"testjava.User","password":"000","userName":"miquan"}
String jsonUser = JSON.toJSON...
分类:
Web程序 时间:
2014-07-08 16:38:47
阅读次数:
240
通用标签和控制标签
第一部分;代码
//前端
Insert title here
访问属性
/tags.action?username=u&password=p">tags
//struct.xml
/tags.jsp
//类包
package com.struts2.tags;
import com.opensymphony.xwork2.Action...
分类:
Web程序 时间:
2014-07-08 16:21:33
阅读次数:
251
第一部分:代码
//前端
Insert title here
访问属性
/ognl.action?username=u&password=p">ognl
//web.xml
//ognl.xml
/ognl.jsp
...
分类:
Web程序 时间:
2014-07-08 15:42:17
阅读次数:
168
#!/bin/bash
HOST_NAME="localhost"
PORT=3306
USERNAME="root"
PASSWORD="root"
DBNAME="test"
TABLENAME="tb_test"
today=`date +%Y-%m-%d`
#删除数据
delete_sql="delete from ${TABLENAME} whe...
分类:
数据库 时间:
2014-07-08 15:40:54
阅读次数:
325
测试自动备份正常运转与否(备份恢复的方法)这里,以通过实际操作的过程来介绍问题出现后的恢复方法。[1] 当数据库被删除后的恢复方法首先建立一个测试用的数据库。[root@CentOS ~]# mysql -u root -p ← 用root登录到MySQL服务器Enter password: ...
分类:
数据库 时间:
2014-07-08 15:25:27
阅读次数:
311
HDU 4772 Zhuge Liang's Password
题目链接
题意:给定两张牌,可以旋转后重叠,重合后相同数字最多的是密码,求密码
思路:直接模拟记录最大值即可
代码:
#include
#include
#include
using namespace std;
const int N = 35;
int n;
int a[N][N], b[N]...
分类:
其他好文 时间:
2014-07-08 14:17:11
阅读次数:
185
Java HttpPost最近写项目的时候,需要用到java获得一个服务器上数据库的内容。在连接服务器数据库时需要使用以上包中的类,使用json格式传送 1 public static String Register(String username,String password,int op...
分类:
编程语言 时间:
2014-07-08 12:44:13
阅读次数:
203