引入了一个jar:javax.mail.jar直接上代码:InitMail:package com.hi.test;import java.util.Properties;import javax.activation.DataHandler;import javax.activation.File...
分类:
编程语言 时间:
2014-08-10 12:54:20
阅读次数:
344
//get拦截规则$getfilter = "\\||\\b(alert\\(|confirm\\(|expression\\(|prompt\\(|benchmark\s*?\\(\d+?|sleep\s*?\\([\d\.]+?\\)|load_file\s*?\\()|]*?\\bon([a-...
分类:
Web程序 时间:
2014-08-10 12:53:40
阅读次数:
235
package com.sun;/* * 操作对文件IO的写 * 2014-08-10 */import java.io.*;public class File_Write { public static void main(String[] args) { // TODO Au...
分类:
编程语言 时间:
2014-08-10 12:41:40
阅读次数:
192
题目链接SegmentsTime Limit:4000/2000MS (Java/Others)Memory Limit:20000/10000KB (Java/Others)Problem Description由3钟类型操作:1)D L R(1 File Name: 1157.cpp 3 ...
分类:
其他好文 时间:
2014-08-10 12:40:40
阅读次数:
298
1 package com.sun; 2 /* 3 * 这里是对文件IO流读取的操作 4 * 2014-08-10 5 */ 6 import java.io.*; 7 public class File_test { 8 9 10 public static void m...
分类:
编程语言 时间:
2014-08-10 12:39:40
阅读次数:
171
ObjectMapper objectMapper = new ObjectMapper();
String jsonString = objectMapper.writeValueAsString(Object);//Object, 实体对象...
分类:
编程语言 时间:
2014-08-10 10:26:30
阅读次数:
182
Round 1(Bar Raiser):Complete discussion on my project.Suppose you have a file with billion entries and you have to sort the data of a file according t...
分类:
其他好文 时间:
2014-08-10 08:07:59
阅读次数:
191
File path = new File("/sdcard/okc"); File file = new File("/sdcard/okc/save.txt"); if (!path.exists()){ path.mkdirs(); ...
分类:
其他好文 时间:
2014-08-10 01:42:29
阅读次数:
220
SecureCRT在Windows XP和Windows 7中的个人应用数据路径是不同的,在Windows 7中,应用数据路径为:C:\Users\\AppData(hidden)\Roaming\VanDyke\Config。 但以上是针对合法安装注册的用户,对于绿色携带版,尤其直接复制粘贴...
分类:
数据库 时间:
2014-08-09 22:57:59
阅读次数:
1530
/*===================================================* 从b串中寻找和a串长度相同的子串,返回开始位置
不保证绝对正确,发生冲突概率为O(sqrt(n)),
n为哈希函数的最大值
\*===================================================*/
#define ull u...
分类:
其他好文 时间:
2014-08-09 21:29:49
阅读次数:
201