- 博客(20)
- 资源 (2)
- 收藏
- 关注
原创 java-poi
import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;imp...
2013-01-16 08:45:16 113
原创 识别图片数字-验证码
java 通过 JNI 调用开源的OCR 来识别验证码, 这样不要通过调用exe 生成临时文件来获得验证码 //演示程序 protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { S...
2011-04-03 00:09:39 393
原创 utf
package com;public class UTF8Tester { private static String HEX = "0123456789ABCDEF"; private static String toBin(int n) { StringBuffer stringBuffer = new StringBuffer(); n = n & 0x000000F...
2009-12-30 16:16:00 126
原创 gbk-utf-8
gcc -o msg stdsoap2.c soapC.c soapClient.c client.c stdsoap2.c更多使用例子,可以查看gsoap附带的sample目录。编码转换的例子,保证使用utf8传输int GBKtoUTF8(char *fromstr,size_t fromlen,char *tostr,size_t tolen){ int r; iconv_t...
2009-11-10 14:36:45 98
http 状态码
号码含义 ----------------------------------------- "100":Continue "101":witchingProtocols "200":OK "201":Created "202":Accepted "203":Non-AuthoritativeInformation "204":NoContent "205&
2009-10-22 12:16:25 94
svn
sc delete svn sc create svn binpath= "G:\test\setup\CollabNet Subversion Server\svnserve.exe --service -r G:\test\svn\svn_repository\test" displayname= "Subversion Server" depend= Tcpip start= auto &l...
2009-09-27 14:55:15 81
原创 Flex中利用ByteArray与BitmapData互相转换实现图片的二进制保存与复原
Flex中利用ByteArray与BitmapData互相转换实现图片的二进制保存与复原 近日在项目当中需要将图片保存到共享对象当中,开始用了俩天的时间做了对象的序列化,并以BitmapData的形式进行了图片的序列化保存共享,因为系统没有提供更好的接口所以无法测试,前天写好了测试代码,结果对象的其他类型的属性都可以访问了,但图片就是复原不了,到各大论天,技术网站考究了一天也没有答案, 只有“Ki...
2009-09-04 20:17:01 76
抓取新浪彩票数据
package com.overseas;import java.util.regex.Matcher;import java.util.regex.Pattern;public class DownLoadDB { public static void main(String[] args) throws Exception{ String sCurrentLine; String...
2009-08-06 15:44:15 208
java 正则表达式
package org;import java.util.regex.Matcher;import java.util.regex.Pattern;public class Tests { /** * @param args */ public static void main(String[] args) { String input = ""; String re...
2009-07-05 21:10:11 69
图片合并
package com.overseas;import java.awt.Graphics2D;import java.awt.image.BufferedImage;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoun...
2009-07-01 22:34:11 146
js 正则表达式分组
<script language="JavaScript" > function splitJS(){ var str = "01020304050607080900"; var len = Math.floor((str.length)/2); var regex = "^"; for(var i=0; i<len; i++){ re...
2009-06-30 17:07:47 99
把图片背景[白色]设置透明
package com.goldgrid.socket.client;import java.awt.Graphics2D;import java.awt.Image;import java.awt.image.BufferedImage;import java.io.ByteArrayOutputStream;import java.io.File;import javax.imagei...
2009-06-29 17:09:33 291
原创 jni 中文
char* jstringToWindows( JNIEnv *env, jstring jstr ){ int length = (env)->GetStringLength(jstr ); const jchar* jcstr = (env)->GetStringChars(jstr, 0 ); char* rtn = (char*)malloc( length*2+1 ); i...
2009-06-05 16:27:07 74
gbk与utf8 互转(java 实现)
public class EncodeUtil { public static String encodingString(String oldstring, String oldEncoding, String newEncoding){ OutputStreamWriter outputStreamWriter = null; System.out.println(o...
2009-06-02 14:44:00 175
g++ 生成dll(makefile[def])
shell = cmd.exeCPP = g++.exeCC = gcc.exeWINDRES = windres.exeRES = OBJ = ./com/Cmpnt.o ./com/GUIDS.o ./com/Registry.o $(RES)LINKOBJ = ./com/Cmpnt.o ./com/GUIDS.o ./com/Registry.o $(RES) $(RES)LI...
2009-05-26 11:07:13 861
原创 java 对证书操作
一:需要包含的包 import java.security.*; import java.io.*; import java.util.*; import java.security.*; import java.security.cert.*; import sun.security.x509.* import java.security.cert.Ce...
2009-05-08 18:53:20 112
删除工程文件下的CVS,SVN
package com.overseas.util;import java.io.File;/** * 删除工程文件下的CVS,SVN * @since 2009-03-28 * @author springmvc2006@sina.com * */public class RemoveFile { public static void main(String[] args){ //del...
2009-03-27 21:20:43 86
批量修改文件的编码
import java.io.BufferedInputStream;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.Fi...
2009-02-12 11:39:43 180
SQL Server 定时备份数据库(作业)
use iSignatureKey --数据名称if exists (select * from dbo.sysobjects where id=object_id(N'[dbo].mysp_All_iSignatureKey') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].mysp_All_iSignatur...
2009-01-14 13:13:31 716
GlassFish中MySQL连接池配置
GlassFish MySql连接池配置第一步:复制D:\glassfish\lib\install\templates\resources\jdbc\mysql_type4_datasource.xml 到D:\glassfish\domains\s317\config [注:s317是 domain名称] , 并命名为msql.xml...
2008-10-29 09:30:03 157
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人