首先定义一个runtaketime委托:public delegate int runtaketime(int data,int ms);定义一个静态的方法,参数,返回类型和定义的委托一样 static public int taketime(int data, int ms) ...
分类:
编程语言 时间:
2014-07-14 22:14:45
阅读次数:
312
静态NAT(一对一)1.定义转换规则Gateway(config)# ip nat inside source static [Inside local IP address] [Inside global IP address]*1.1 具体端口映射Gateway(config)# ip nat ...
分类:
其他好文 时间:
2014-07-14 20:56:51
阅读次数:
743
监控server端的安装部署一、apache的安装下载httpd-2.2.15.tar.gz gunzip httpd-2.2.15.tar.gztar xvf httpd-2.2.15.tarcd httpd-2.2.15./configure --prefix=/usr/local/apache...
分类:
移动开发 时间:
2014-07-14 20:39:09
阅读次数:
278
daniel@daniel-mint /usr/lib/ghc/haskell2010-1.1.1.0 $ tree.├── Control│ └── Monad.hi├── Data│ ├── Array.hi│ ├── Bits.hi│ ├── Char.hi│ ├── Complex.hi│ ...
分类:
其他好文 时间:
2014-07-14 20:35:19
阅读次数:
225
cenOS设置程序开机自启动的方法主要有两种1.把启动程序的命令添加到/etc/rc.d/rc.local 文件夹中.eg1.设置开机启动mysqlvim /etc/rc.d/rc.local#!/bin/sh## This script will be executed *after* all ....
分类:
其他好文 时间:
2014-07-14 20:27:35
阅读次数:
254
在模板中可以定义三种类型的变量:
简单变量:它能从模板中的任何位置来访问,或者从使用 include 指令引入的模板访问。可以使用 assign 或 macro 指令来创建或替换这些变量。
局部变量:它们只能被设置在宏定义体内,而且只在宏内可见。一个局部变量的生存周期只是宏的调用过程。可以使用 local 指令在宏定义体内创建或替换局部变量。
循环变量:循环变量是由指令(如 list...
分类:
其他好文 时间:
2014-07-14 17:43:28
阅读次数:
326
在dataGrid的定义中添加如下代码:
JavaScript Code
1
2
3
4
5
6
7
8
9
10
11
onLoadSuccess : function (data) {
if (data.total == 0) {
$('#searchLogGrid').datagri...
分类:
其他好文 时间:
2014-07-14 17:18:52
阅读次数:
299
上次介绍了如何使用ansibleplaybook安装zabbix客户端(http://dl528888.blog.51cto.com/2382721/1436745),这次介绍一下如何使用playbook安装mysql。下面是安装mysql的信息:mysql_basedir:/data/mysql/basedir源码目录
mysql_datadir:/data/mysql/datadir数据目录
mysql_user..
分类:
数据库 时间:
2014-07-14 16:31:20
阅读次数:
484
int fscanf( FILE *stream, const char *format [, argument ]... );
下面是csdn的例子:
/* FSCANF.C: This program writes formatted
* data to a file. It then uses fscanf to
* read the various data back from...
分类:
其他好文 时间:
2014-07-14 16:15:19
阅读次数:
207
连接的是mysql数据库,插入数据时,控制台报:com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'user_name' at row 1错误,具体信息如下:严重: Servlet.servic...
分类:
数据库 时间:
2014-07-14 15:41:18
阅读次数:
249