jsp上传文件,获取form表单type=file以外的数据
分类:
Web程序 时间:
2014-05-16 04:41:52
阅读次数:
446
#-*- coding:UTF-8 -*-#-*- author:Zahoor Wang
-*-import codecs, os, sys, platform, stringdef env():return platform.system()def
read_file(uri, charset =...
分类:
编程语言 时间:
2014-05-16 04:30:50
阅读次数:
306
例子1:(具体参照drp中的flow_card_add.jsp) cell0 cell1
cell2 例子2: /news.do?method=add" method="post" enctype="multipart/form-data">
新闻标题 ...
分类:
Web程序 时间:
2014-05-16 03:57:52
阅读次数:
442
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Data;usingSystem.Web.SessionState;namespacefriends{//////Hand...
分类:
其他好文 时间:
2014-05-16 03:53:53
阅读次数:
381
POJ2533#include #include #define max(a, b)
(((a) > (b)) ? (a) : (b))void GetMaxIncLen(int *data, int *maxLen, int
size){ int i, j; for(i = 2; i max) ....
分类:
其他好文 时间:
2014-05-15 13:52:57
阅读次数:
259
经过几天的学习,pexpect模块对于linux下运维脚本编写属实有用,下面写个脚本检验下学习效果。#!/usr/bin/envpython
#coding=utf-8
#远程执行服务器上的脚本
importsys,time,os,multiprocessing
try:
importpexpect
exceptImportError:
print"""
Youmustinstallpexpectmodule
"..
分类:
其他好文 时间:
2014-05-15 12:55:28
阅读次数:
260
1.慢查询日志:slow_launch_time=2查询大于某个时间的值(单位:s)slow_query_log=on/off开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log慢查询日志位置2.连接数:max_connectionsMySQL最大连接数back_log当连接数满了后,设置一个值,允许多少个连接进入等待堆..
分类:
数据库 时间:
2014-05-15 12:44:41
阅读次数:
385
综合类微软企业库微软官方出品,是为了协助开发商解决企业级应用开发过程中所面临的一系列共性的问题,
如安全(Security)、日志(Logging)、数据访问(Data Access)、配置管理(Configuration
Manage)等,并将这些广泛使用的应用程序块集成封装至一个叫企业库的程序包...
分类:
Web程序 时间:
2014-05-15 11:31:47
阅读次数:
416
使用open()方法打开磁盘文件时,默认的访问模式为r,表示读,不需要特意指定;要打开一个文件完成写,需要指定模式w,如data=open("sketch.txt","w"),如果该文件已经存在则会清空现有内容;要追加到一个文件,需要指定模式a,不会清空现有内容;要打开一个文件完成写和读,且不清空现...
分类:
编程语言 时间:
2014-05-15 11:30:22
阅读次数:
429
依赖javax.mail.jar,地址:https://java.net/projects/javamail/pages/Home完整示例代码如下: 1
package com.jadic.utils; 2 3 import java.io.UnsupportedEncodingExcept...
分类:
编程语言 时间:
2014-05-15 11:29:37
阅读次数:
523