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
Hello World //HelloWorld.java文件 public class
HelloWorld { public static void main(String[] args) { System.out.println(“Hello
World!”); } } 编译运行 javac ...
分类:
编程语言 时间:
2014-05-16 04:11:27
阅读次数:
306
我们知道队列
就是在内容内存分配连续的内存空间,实现先进先出的逻辑,FIFO(LILO),这里用到了.net 4.0
的ConcurrentQueue类,(带线程安全的队列类),也可以用Queue ,多线程中自行同步。代码可直接复制运行 1 using System; 2
using System....
分类:
其他好文 时间:
2014-05-16 04:07:11
阅读次数:
276
1. 装箱是将值类型转换为 object 类型或由此值类型实现的任何接口类型的过程。装箱是隐式的。当
CLR 对值类型进行装箱时,会将该值包装到 System.Object 内部,再将后者存储在托管堆上。装箱和取消装箱的概念是类型系统 C#
统一视图的基础,其中任一类型的值都被视为一个对象。2. 拆...
分类:
其他好文 时间:
2014-05-16 03:53:13
阅读次数:
220
重启交换机,按住mode键。flash_initswitch:dirflash:switch:renameflash:config.textflash:config.oldswitch:bootWouldyouliketoentertheinitialconfigurationdialog?[yes/no]:noSwitch>enSwitch#renameflash:config.oldflash:config.textDestinationfilename[config.text]..
分类:
其他好文 时间:
2014-05-15 12:46:02
阅读次数:
279
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
1、下载java:jdk-7u51-linux-x64.tar.gzhttp://www.kuaipan.cn/file/id_175485603436042793.htm?source=12、移动jdk-7u51-linux-x64.tar.gz到/usr/localtar-zxvfjdk-7u51-linux-x64.tar.gz3、设置环境变量vi/etc/profile加入以下代码exportJAVA_HOME=/usr/local/java/jdk1.7.0..
分类:
编程语言 时间:
2014-05-15 12:35:10
阅读次数:
359
1. 在web.config文件中的<system.web>加入以下设置2.
添加一个页面,页面名称为Defalut.aspx在后台Defalut.aspx.cs页面写以下代码:protected void
Page_Load(object sender, EventArgs e){ AjaxPr....
分类:
Web程序 时间:
2014-05-15 12:04:12
阅读次数:
264
git出现error: bad signature fatal: index file
corruptgit的index被损坏解决方法:需要重新生成index文件,rm -f .git/indexgit reset --mixed HEAD
分类:
其他好文 时间:
2014-05-15 11:41:50
阅读次数:
2932