思路:一个form表单,用户提交留言一个页面显示留言内容。用到Vector来存取信息并显示cas.jsp 留言人: 标题: 留言内容: fei.jsp ");
out.print("留言人标题留言内容留言...
分类:
编程语言 时间:
2014-05-15 18:00:58
阅读次数:
403
C/C++开发,在NDK和源码中输出Log信息的方法!
NDK:
1、包含头文件
#include
2、Android.mk中包含库
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog
上面这个一定要,不然出现error: undefined reference to '__android_log_print'
LOCAL_SHARED_LIB...
分类:
移动开发 时间:
2014-05-15 13:03:34
阅读次数:
358
经过几天的学习,pexpect模块对于linux下运维脚本编写属实有用,下面写个脚本检验下学习效果。#!/usr/bin/envpython
#coding=utf-8
#远程执行服务器上的脚本
importsys,time,os,multiprocessing
try:
importpexpect
exceptImportError:
print"""
Youmustinstallpexpectmodule
"..
分类:
其他好文 时间:
2014-05-15 12:55:28
阅读次数:
260
test
// alert(jQuery());
function print(string){
document.write(string+"");
};
document.write("********无返回值的情况***************");
(function(){
var jq = (function(){
var jq = fun...
分类:
编程语言 时间:
2014-05-15 11:14:55
阅读次数:
373
1. synchronized
If two threads are using the same function( here we use output to print out string) of another instance, if we want to make sure that these two threads are not disturbing each other.
...
分类:
其他好文 时间:
2014-05-15 11:14:14
阅读次数:
389
作者:zccst1,CSS/style/print.css文件.noprint{display:none;}
在testPrint.html中使用print.css中的样式,在网页浏览的时候是看不出效果的,但是打印的时候会起作用,如下面这一段,加上noprint之后,在浏览器中仍然是现实的,但是打印...
分类:
Web程序 时间:
2014-05-15 10:12:17
阅读次数:
350
先看下面的一个例子:DATA A;INPUT X Y @@;S+X;DATALINES;3 5
7 9 20 21PROC PRINT;RUN;衍生的新变量s为与x变量的求和,我们看结果Obs X Y S1 3 5 3 ...
分类:
其他好文 时间:
2014-05-15 09:41:11
阅读次数:
215
switch 语句int x = 10switch(x) case
1:print(“sfsd”)breakcase 2:print(“dsdf”)breakdefaultprint(“right”)break
分类:
其他好文 时间:
2014-05-14 23:47:11
阅读次数:
263
# 非波拉锲数列def fibs(num): the_list=[] a,b,i=0,1,1 for
i in range(num-1): a,b=b,a+b print bfibs(10)
分类:
编程语言 时间:
2014-05-14 22:00:27
阅读次数:
290
如果以后出现报警各网站无法ping通,或者服务器负载过高,可通过以下几条途径查找原因:1,查看访问日志,查看是否有访问异常,如有,过滤IP,进行IP封装cataccess.log|awk‘{print$1}’|sort|uniq–c|sort–n>/tmp/ip.txt
netstat-ntu|awk‘{print$5}‘|cut-d:-f1|sort|un..
分类:
Web程序 时间:
2014-05-14 16:32:07
阅读次数:
409