<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/lizongbo" type="application/rss+xml" ref="self"></atom:link><fs:self_link href="http://feed.feedsky.com/lizongbo" type="application/rss+xml"></fs:self_link><lastBuildDate>Mon, 07 Jul 2008 12:28:06 GMT</lastBuildDate><title>lizongbo</title><description>lizongbo的流水记录</description><image><url>http://www.feedsky.com/feed/lizongbo/sc/gif</url><title>lizongbo</title><link>http://618119.com</link></image><link>http://618119.com</link><language>en</language><pubDate>Mon, 07 Jul 2008 12:28:06 GMT</pubDate><dc:date>2008-07-07T12:28:06Z</dc:date><dc:language>en</dc:language><item><title>java.net.URLEncoder对空格的处理的问题</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/90768198/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/07/07/99.html/feed</wfw:commentRss><description>java.net.URLEncoder对url进行编码处理的时候，对空格是替换成了加号，而不是%20
java.net.URLEncoder.java的源代码为：
[code]
if (dontNeedEncoding.get(c)) {
if (c == &amp;#8216; &amp;#8216;)  {
c = &amp;#8216;+&amp;#8217;;
needToChange =  true;
}
//System.out.println(&amp;#8221;Storing: &amp;#8221; +  c);
out.append((char)c);
i++;
}
[/code]
测试代码
[code]
String url=&amp;#8221;http://618119.com/docs/测试  空格.doc&amp;#8221;;
String  nurl=url.substring(0,url.lastIndexOf(&amp;#8217;/')+1)+java.net.URLEncoder.encode(url.substring(url.lastIndexOf(&amp;#8217;/')+1),  &amp;#8220;UTF-8&amp;#8243;);
System.out.println(nurl);
System.out.println(java.net.URLDecoder.decode(nurl,  &amp;#8220;UTF-8&amp;#8243;));
[/code]
执行的结果为：
http://618119.com/docs/%E6%B5%8B%E8%AF%95+%E7%A9%BA%E6%A0%BC.doc
http://618119.com/docs/测试 空格.doc
而在与同事调试的时候，发现对方的web服务器处理得有点问题，没能将加号还原为空格，
对文件名只截取到了空格前面部分的内容，导致在下载的时候，
头信息 content-disposition和Content-Type
写入的内容不对，导致手机无法正常下载文件。
无法正常下载到手机时的头信息是：
content-disposition: attachment;  filename=&amp;#8221;测试&amp;#8221;
Content-Type: application/octet-stream因此修改代码，对url进行替换，将加号替换成&amp;#8221;%20&amp;#8243;;
修改后的代码为：
[code]
String url=&amp;#8221;http://618119.com/docs/测试  空格.doc&amp;#8221;;
String  nurl=url.substring(0,url.lastIndexOf(&amp;#8217;/')+1)+java.net.URLEncoder.encode(url.substring(url.lastIndexOf(&amp;#8217;/')+1),  &amp;#8220;UTF-8&amp;#8243;);
nurl=nurl.replaceAll(&amp;#8221;\\+&amp;#8221;,  &amp;#8220;%20&amp;#8243;);//处理空格
System.out.println(nurl);
System.out.println(java.net.URLDecoder.decode(nurl,  &amp;#8220;UTF-8&amp;#8243;));
[/code]
执行结果为：
http://618119.com/docs/%E6%B5%8B%E8%AF%95%20%E7%A9%BA%E6%A0%BC.doc
http://618119.com/docs/测试 空格.doc
用手机可以正常下载文件时的头信息为：
content-disposition: attachment; filename=&amp;#8221;测试 空格.mp3&amp;#8243;
Content-Type:  audio/x-mpeg

	Tags: Java

	Related posts
	
	用JDBC连接Oracle 10g RAC遇到的问题 (0)
	用java实现HashCalc的文件指纹校验功能 [...]&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=de3d2b1d4deb1868bc336d243776ab9b&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=de3d2b1d4deb1868bc336d243776ab9b&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=97346b9097d02579cf48e520d0d83852&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=97346b9097d02579cf48e520d0d83852&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=5fd729a21b2a6e99caf14723de0d93ee&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=5fd729a21b2a6e99caf14723de0d93ee&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=e37a6feb160b2bb1e7707572c9fac9a8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=e37a6feb160b2bb1e7707572c9fac9a8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=f3bc4a6ba4439027a68827c4b0de6486&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=f3bc4a6ba4439027a68827c4b0de6486&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>Java</category><pubDate>Mon, 07 Jul 2008 20:28:06 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/07/07/99.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/07/07/99.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/07/07/99.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/90768198/4098543</fs:itemid></item><item><title>Socket读取数据包时的1448字节问题</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/90270087/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/07/05/98.html/feed</wfw:commentRss><description>昨天和同事调试接口的时候，发现接收到的数据包的字节内容后面部分全部是0.
而经过日志确认同事接口写回的数据包是正常的，
今天特意调试了一下，才发现是Socket读取数据时的1448字节问题。
通过google搜索，可以发现，java的Socket的getInputStream进行read到数组的时候，
每次的一次性读取时最多只能获得1448字节的数据。
下面是存在问题的写法：
[code]
//数据包前四个字节是数据包的长度说明
 private byte[] readResponse(Socket sc) {
  InputStream is;
  try {
   is = new BufferedInputStream(sc.getInputStream());
   byte[] lenb = new byte[4];
   is.read(lenb);
   byte[] pakb = new byte[HessionIO.bytesToInt(lenb, 0, 4) + 4];
   pakb[0] = lenb[0];
   pakb[1] = lenb[1];
   pakb[2] = lenb[2];
  [...]&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=d231fde5fbefc7b087bd9cd708a4217d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=d231fde5fbefc7b087bd9cd708a4217d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=308fd14a235beb7f7683d666cf504ea9&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=308fd14a235beb7f7683d666cf504ea9&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=7eb05d82ddebe15b265290b324d027c8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=7eb05d82ddebe15b265290b324d027c8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=e2ff128fba9c4fea519e19f008b03b75&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=e2ff128fba9c4fea519e19f008b03b75&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=d15fd1817e13afb1efa7d99ee3ab61df&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=d15fd1817e13afb1efa7d99ee3ab61df&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>Java</category><category>1448</category><category>socket</category><pubDate>Sat, 05 Jul 2008 18:16:28 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/07/05/98.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/07/05/98.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/07/05/98.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/90270087/4098543</fs:itemid></item><item><title>mysql 5.0 在插入记录的时候遇到 Incorrect string value这个错误</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/88148845/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/06/27/97.html/feed</wfw:commentRss><description>修改 C:\Program Files\mysql\mysql Server 5.0\my.ini
mysql 和 mysqld的  default-character-set为gbk,
my.ini节选如下：
[mysql]
default-character-set=gbk
[mysqld]
port=3306
basedir=&amp;#8221;C:/Program Files/mysql/mysql Server 5.0/&amp;#8221;
#Path to the database root
datadir=&amp;#8221;C:/Program Files/mysql/mysql Server 5.0/Data/&amp;#8221;
default-character-set=gbk
default-storage-engine=MyISAM
然后重启数据库，重新创建数据库即可。
创建的数据库步骤如下：
在heidisql里，先运行  set names &amp;#8216;gbk&amp;#8217;，
然后运行建表sql。
然后就可以看到表的字段和内容，均为中文显示了。
其它关于mysql 的笔记：
1.在命令行下， 用 mysql -uroot连接到mysql服务器
2.SHOW DATABASES; 查看当前服务器已经有的数据库名字。
3.use test 表示连接到名叫&amp;#8221;test&amp;#8221;的数据库
4.show table;
查看该数据库中的表名。
5.查询记录
select * from topic limit 10,3;
表示从topic中的第11条记录开始，取出三条，
6 show status;
查看数据库配置的一些信息。
7.查看数据库版本
SELECT VERSION();
8.创建数据库
CREATE DATABASE `testtable`; /*!40100 CHARACTER SET utf8 COLLATE utf8_general_ci */
9.创建表
CREATE TABLE `testtable`.`testtablemsg` (`testtabletype` VARCHAR (50)
DEFAULT &amp;#8216;fc_ssq&amp;#8217; NOT [...]&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=3e416f66c918f8e7b0c7e83e25da0a80&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=3e416f66c918f8e7b0c7e83e25da0a80&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=a3dfec79f7c5161f211b241dec18d931&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=a3dfec79f7c5161f211b241dec18d931&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=328587271bb528bc27579b7afe0853b2&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=328587271bb528bc27579b7afe0853b2&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=a6930bdc9682b7d4aedcd3e197bd422e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=a6930bdc9682b7d4aedcd3e197bd422e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=47f9175363cb2cefb346b6713b62000d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=47f9175363cb2cefb346b6713b62000d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>mysql</category><category>数据库</category><pubDate>Fri, 27 Jun 2008 20:24:29 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/06/27/97.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/06/27/97.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/06/27/97.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/88148845/4098543</fs:itemid></item><item><title>eclipse 3.4 (Ganymede)正式发布，已经可以下载了</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/87612141/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/06/26/96.html/feed</wfw:commentRss><description>Eclipse 3.4新增了一些新特性，可以参考：
http://www.javaeye.com/news/2713
java ee版本的 Eclipse3.4 下载镜像 地址为
http://ganymede-mirror1.eclipse.org/technology/epp/downloads/release/ganymede/R/eclipse-jee-ganymede-win32.zip
http://ganymede-mirror2.eclipse.org/technology/epp/downloads/release/ganymede/R/eclipse-jee-ganymede-win32.zip
http://mirror.csclub.uwaterloo.ca/eclipse/technology/epp/downloads/release/ganymede/R/eclipse-jee-ganymede-win32.zip
http://ftp.daum.net/eclipse/technology/epp/downloads/release/ganymede/R/eclipse-jee-ganymede-win32.zip
http://ftp.jaist.ac.jp/pub/eclipse/technology/epp/downloads/release/ganymede/R/eclipse-jee-ganymede-win32.zip
http://mirrors.nsa.co.il/eclipse/technology/epp/downloads/release/ganymede/R/eclipse-jee-ganymede-win32.zip
dbvisualizer 6.0.11在一个月前也发布了，下载地址为：
http://www.dbvis.com/product_download/dbvis/media/dbvis_windows_6_0_11.zip

	Tags: DbVisualizer, eclipse

	Related posts
	
	配置独立运行的jsp预编译ant脚本 (0)
	用JDBC连接Oracle 10g RAC遇到的问题 (0)
	使用Eclipse的几点注意事项 (0)
	Windows系统中使用jvmstat查看Java虚拟机信息 (0)
	Openfire 3.5.1 和 DbVisualizer 6.0.10 (0)&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=398995605d688198a7708ac606451894&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=398995605d688198a7708ac606451894&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=e0b4f852d7617224bc81cc283d2b0e7f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=e0b4f852d7617224bc81cc283d2b0e7f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=5c64d5e984fc1765d8664fe6479d8348&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=5c64d5e984fc1765d8664fe6479d8348&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=d90bacf5cda4fe58459a34b413aa561a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=d90bacf5cda4fe58459a34b413aa561a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=3cae13757400318087d4b1a12316fc5b&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=3cae13757400318087d4b1a12316fc5b&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>eclipse</category><category>JAVA IDE</category><category>DbVisualizer</category><pubDate>Thu, 26 Jun 2008 00:14:30 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/06/26/96.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/06/26/96.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/06/26/96.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/87612141/4098543</fs:itemid></item><item><title>关于wml的文本框缓存问题</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/86899713/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/06/23/95.html/feed</wfw:commentRss><description>普通情况下：
&amp;#60;%
String msg = request.getParameter(&amp;#8221;msg&amp;#8221;);
String emo= request.getParameter(&amp;#8221;emo&amp;#8221;);
msg=msg+emo;
%&amp;#62;
文本框写成: &amp;#60;input name=&amp;#8221;msg&amp;#8221; value=&amp;#8221;&amp;#60;%=msg%&amp;#62;&amp;#8221; type=&amp;#8221;text&amp;#8221; emptyok=&amp;#8221;true&amp;#8221;/&amp;#62;&amp;#60;br/&amp;#62;
表单定义成
&amp;#60;go href=&amp;#8221;/test.jsp&amp;#8221; method=&amp;#8221;post&amp;#8221;&amp;#62;
&amp;#60;postfield name=&amp;#8221;msg&amp;#8221; value=&amp;#8221;$msg&amp;#8221;/&amp;#62;
&amp;#60;postfield name=&amp;#8221;emo&amp;#8221; value=&amp;#8221;test&amp;#8221;/&amp;#62;
&amp;#60;/go&amp;#62;添加表情&amp;#60;/anchor&amp;#62;
表单是提交给当前页面的。
测试步骤如下：
在消息框输入内容“汉字”，提交表单。
预期结果为：文本框显示为“汉字test”，但是实际情况却是依然只显示“汉字”.
经过多次测试验证，发现这是手机浏览器或Opera等的表单缓存问题。
解决办法为：
将文本框的name定义成随机的。表单中关联到随机的文本框变量名，
修改后的代码如下：
&amp;#60;%
String msgName=&amp;#8221;m&amp;#8221;+rd.nextInt(65536*6);//随机数产生input名字
String msg = request.getParameter(&amp;#8221;msg&amp;#8221;);
String emo= request.getParameter(&amp;#8221;emo&amp;#8221;);
msg=msg+emo;
%&amp;#62;
文本框写成: &amp;#60;input name=&amp;#8221;&amp;#60;%=msgName %&amp;#62;&amp;#8221; value=&amp;#8221;&amp;#60;%=msg%&amp;#62;&amp;#8221; type=&amp;#8221;text&amp;#8221; emptyok=&amp;#8221;true&amp;#8221;/&amp;#62;&amp;#60;br/&amp;#62;
表单定义成
&amp;#60;go href=&amp;#8221;/test.jsp&amp;#8221; method=&amp;#8221;post&amp;#8221;&amp;#62;
&amp;#60;postfield name=&amp;#8221;msg&amp;#8221; value=&amp;#8221;$&amp;#60;%=msgName %&amp;#62;&amp;#8221;/&amp;#62;
&amp;#60;postfield name=&amp;#8221;emo&amp;#8221; value=&amp;#8221;test&amp;#8221;/&amp;#62;
&amp;#60;/go&amp;#62;添加表情&amp;#60;/anchor&amp;#62;
经过测试，不提交当前页面的，也有类似问题，三星X708破手机就是这样的。

	Tags: wml

	Related posts
	
	No related posts.&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=f6474bc3bed4088b4cb7dd21e34cd3a6&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=f6474bc3bed4088b4cb7dd21e34cd3a6&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=c33e4cb95405b379b2091c95078c416a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=c33e4cb95405b379b2091c95078c416a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=a8568d774576137cbbea0f6b6f0bec44&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=a8568d774576137cbbea0f6b6f0bec44&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=8500e27803abd61988ab9f9365ba20bf&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=8500e27803abd61988ab9f9365ba20bf&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=9b2cbbc07934ef4a8bebb424ddd829b2&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=9b2cbbc07934ef4a8bebb424ddd829b2&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>wml</category><category>Web</category><pubDate>Mon, 23 Jun 2008 22:45:57 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/06/23/95.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/06/23/95.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/06/23/95.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/86899713/4098543</fs:itemid></item><item><title>javascript实现身份证号码的验证</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/86899714/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/06/04/94.html/feed</wfw:commentRss><description>整理了一份javascript对身份证进行验证的程序。
源文件在： http://618119.com/docs/gis/shenfenzheng.html
javascript 代码为：
function getName(code){
var name=xzqh[code];
if(name==null){
return name;
}
//如果不是00结尾的，则补上市名称，659000例外 429000,469000
if(code%100 != 0 &amp;#38;&amp;#38; (code-code%100)!=659000 &amp;#38;&amp;#38; (code-code%100)!=429000 &amp;#38;&amp;#38; (code-code%100)!=469000){
var cityName=xzqh[(code-code%100)];
if(cityName.length&amp;#62;1){//过滤掉只有一个字的“县”
name=cityName+name;
}
}
//如果不是0000结尾的，再补上省名称
if(code%10000 != 0){
name=xzqh[(code-code%10000)]+name;
}
return name;
}
function genData(){
var str=&amp;#8221;&quot;;
for(code in xzqh){
//整理成竖线分隔的每行一条记录
str+=  &amp;#8220;&amp;#8221;+code  +&amp;#8221;&amp;#124;&amp;#8221; +getName(code) +&amp;#8221;\n&amp;#8221;;
}
document.getElementById(&amp;#8221;soapres&amp;#8221;).value=str;
}
function checkId(){
var code=document.getElementById(&amp;#8221;idCode&amp;#8221;).value;
if(code==null &amp;#124;&amp;#124; ( code.length!=15 &amp;#38;&amp;#38; code.length!=18)){
alert(&amp;#8221;请输出正确长度的身份证号码！&amp;#8221;);
return;
}
var xzqhCode=code.substr(0,6);
var xzqhName=getName(xzqhCode);
//先判断行政区划信息
if(xzqhName==null){
alert(&amp;#8221;没有该身份证号码的地区信息，很可能是假身份证号码！&amp;#8221;);
return;
}
//再判断是否都是数字和X.
for(var i=0;i&amp;#60;code.length;i++){
if(i&amp;#60;17){
if(code.charAt(i)&amp;#62;&amp;#8221;9&amp;#8243; &amp;#124;&amp;#124; code.charAt(i)&amp;#60;&amp;#8221;0&amp;#8243;){
alert(&amp;#8221;你输入的身份证号码有误，可能是假身份证号码！&amp;#8221;);
return;
}
}
if(i==17){//盘判断第17位
if(! ( (code.charAt(i) &amp;#62;= &amp;#8220;0&amp;#8243; &amp;#38;&amp;#38; code.charAt(i) &amp;#60;= &amp;#8220;9&amp;#8243; )&amp;#124;&amp;#124; code.charAt(i)==&amp;#8217;X&amp;#8217; &amp;#124;&amp;#124; code.charAt(i)==&amp;#8217;x') ){
alert(&amp;#8221;你输入的身份证号码有误，可能是假身份证号码！&amp;#8221;);
return ;
}
}
}
var year=1900;//出生年
var month=1;//出生月
var [...]&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=ebb80d19cebe132cd3115cf03d9f38c5&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=ebb80d19cebe132cd3115cf03d9f38c5&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=9a0450b4cfbabee8649469e24cafe422&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=9a0450b4cfbabee8649469e24cafe422&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=c158fcf0ec878a590d0a51de84bbec3e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=c158fcf0ec878a590d0a51de84bbec3e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=2101c3c04458e7429ac6136a0153d3e8&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=2101c3c04458e7429ac6136a0153d3e8&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=576142e17509f839529a0ab087e3a9a4&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=576142e17509f839529a0ab087e3a9a4&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>javascript</category><category>JavaScript</category><pubDate>Wed, 04 Jun 2008 23:48:50 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/06/04/94.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/06/04/94.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/06/04/94.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/86899714/4098543</fs:itemid></item><item><title>BEA开放了所有产品的License Keys</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/86899715/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/06/03/93.html/feed</wfw:commentRss><description>所有的bea产品的License Keys都开放了，
License Keys来源：
http://commerce.bea.com/products/all_products.jsp
下载url为：
MessageQ：
http://download2.bea.com/pub/license/All Products/MessageQ.zip
BEA Tuxedo Products：
http://download2.bea.com/pub/license/All Products/BEA_Tuxedo_Products.zip
BEA WebLogic：
http://download2.bea.com/pub/license/All Products/BEA_WebLogic.zip
BEA AquaLogic：
http://download2.bea.com/pub/license/All Products/BEA_AquaLogic.zip
BEA WebLogic Communications Platform：
http://download2.bea.com/pub/license/All Products/BEA_WebLogic_Communication_Platform.zip
BEA Workshop：
http://download2.bea.com/pub/license/All Products/BEA_Workshop.zip
Blended Open Source Resources：
http://download2.bea.com/pub/license/All Products/Blended_Open_Source_Resources.zip
BEA JRockit：
http://download2.bea.com/pub/license/All Products/BEA_JRockit.zip
其它产品的：
http://download2.bea.com/pub/license/All Products/Other_Products.zip
新的bea jrockit 6.0 下载入口为：
http://commerce.bea.com/products/weblogicjrockit/jrockit_prod_fam-bea.jsp
http://commerce.bea.com/products/weblogicjrockit/accept_terms60-bea.jsp
对应Jrockit安装程序为：
http://download2.bea.com/pub/jrockit/60/jrockit-R27.5.0-jdk1.6.0_03-windows-x64.exe
http://download2.bea.com/pub/jrockit/60/jrockit-R27.5.0-jdk1.6.0_03-windows-ia32.exe
http://download2.bea.com/pub/jrockit/60/jrockit-R27.5.0-jdk1.6.0_03-linux-ia32.bin
http://download2.bea.com/pub/jrockit/60/jrockit-R27.5.0-jdk1.6.0_03-linux-x64.bin
http://download2.bea.com/pub/jrockit/60/jrockit-R27.5.0-jdk1.6.0_03-solaris-sparcv9.bin

	Tags: bea, Keys, License

	Related posts
	
	No related posts.&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=877c971b2460ad45b297db32469342b4&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=877c971b2460ad45b297db32469342b4&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=9def18f2ffc3cd4e80cc425c5a21ecf3&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=9def18f2ffc3cd4e80cc425c5a21ecf3&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=d23a3f19f385edd0d4092d1bb7dba5be&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=d23a3f19f385edd0d4092d1bb7dba5be&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=a799ae8bf308f54ccc93f20fc424e899&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=a799ae8bf308f54ccc93f20fc424e899&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=ed5233027749ffd7a246d2be10d54fa9&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=ed5233027749ffd7a246d2be10d54fa9&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>Keys</category><category>Java</category><category>bea</category><category>License</category><category>JVM</category><pubDate>Tue, 03 Jun 2008 19:28:33 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/06/03/93.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/06/03/93.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/06/03/93.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/86899715/4098543</fs:itemid></item><item><title>缅怀重庆大学李志良教授</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/86899716/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/06/02/92.html/feed</wfw:commentRss><description>从张姐的QQ空间得知消息，想起这个熟悉的名字。
凭借网络搜索，我回忆起来了，我大学选修过 李志良教授的《诺贝尔奖与创新》，
我也买了李教授自编的课本《诺贝尔奖与创新》，
李教授上课很负责认真，当时他还让我们主动报名上台发表简单的辩论，
这是我在大学里唯一的一次主动有勇气上台对着那么多的同学进行辩论。
题目好像是中国20年内是否能够出现诺贝尔奖获得者，我当时的辩论观点是中国能够出现诺贝尔奖获得者。
这门课是我大学中认真听课了的为数极少的几门课之一，这门选修课我的成绩是90分。
也是在这门课，我才知道中国曾经有过几项科技成果差点获得诺贝尔奖的。
距今已经过去六七年了，中国和诺贝尔奖有关的新闻，最多的估计就是那个82和28的了。
选择主动告别这个世界，是需要极大的勇气的。
哀莫大于心不得不死，哀莫大于身随心逝。
­
李教授一路走好!

	Tags: 大学

	Related posts
	
	No related posts.&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=64b8a570e26346fac46aa99614a49b0a&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=64b8a570e26346fac46aa99614a49b0a&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=6a186cfe2a7d9b2df25fc42ea1e0804f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=6a186cfe2a7d9b2df25fc42ea1e0804f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=28454225c28752c5969bad17108bb76b&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=28454225c28752c5969bad17108bb76b&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=4f0e773c6352e92964e20988472b6a6d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=4f0e773c6352e92964e20988472b6a6d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=ee5f5160548813f24ed0124aab400bcc&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=ee5f5160548813f24ed0124aab400bcc&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>大学</category><category>未分类</category><pubDate>Mon, 02 Jun 2008 09:49:30 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/06/02/92.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/06/02/92.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/06/02/92.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/86899716/4098543</fs:itemid></item><item><title>省级行政区划代码整理</title><link>http://item.feedsky.com/~feedsky/lizongbo/~5992314/86899717/4098543/1/item.html</link><wfw:commentRss>http://618119.com/archives/2008/05/31/91.html/feed</wfw:commentRss><description>所在地省级行政区划代码表
数据来源： http://www.zhongguancun.com.cn/egov/docs/notice/20040102/attach/1073033759774_8.doc
我整理加上了香港和澳门。



代码
名称
代码
名称
代码
名称


11
北京市
34
安徽省
52
贵州省


12
天津市
35
福建省
53
云南省


13
河北省
36
江西省
54
西藏自治区


14
山西省
37
山东省
61
陕西省


15
内蒙古自治区
41
河南省
62
甘肃省


21
辽宁省
42
湖北省
63
青海省


22
吉林省
43
湖南省
64
宁夏回族自治区


23
黑龙江省
44
广东省
65
新疆维吾尔自治区


31
上海市
45
广西壮族自治区
71
台湾省


32
江苏省
46
海南省
81
香港特别行政区


33
浙江省
51
四川省
82
澳门特别行政区


竖线分隔的记录：
11&amp;#124;北京市
12&amp;#124;天津市
13&amp;#124;河北省
14&amp;#124;山西省
15&amp;#124;内蒙古自治区
21&amp;#124;辽宁省
22&amp;#124;吉林省
23&amp;#124;黑龙江省
31&amp;#124;上海市
32&amp;#124;江苏省
33&amp;#124;浙江省
34&amp;#124;安徽省
35&amp;#124;福建省
36&amp;#124;江西省
37&amp;#124;山东省
41&amp;#124;河南省
42&amp;#124;湖北省
43&amp;#124;湖南省
44&amp;#124;广东省
45&amp;#124;广西壮族自治区
46&amp;#124;海南省
51&amp;#124;四川省
52&amp;#124;贵州省
53&amp;#124;云南省
54&amp;#124;西藏自治区
61&amp;#124;陕西省
62&amp;#124;甘肃省
63&amp;#124;青海省
64&amp;#124;宁夏回族自治区
65&amp;#124;新疆维吾尔自治区
71&amp;#124;台湾省
81&amp;#124;香港特别行政区
82&amp;#124;澳门特别行政区

	Tags: gis, 行政区划

	Related posts
	
	获取公开的中国地图信息和使用MapBasic提取MapInfo地图资源信息 (0)
	深圳的几个办事地点的位置及相关公交路线 (0)
	在geoserver和Mapinfo中过滤重复显示的标注 (1)
	使用uDig制作geoserver中需要的style (0)
	geoserver与OpenLayers配置入门 (0)&lt;br /&gt;&lt;!-- Feedsky flare --&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=590c7412cb494da50c64cbe6a3c789b1&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=590c7412cb494da50c64cbe6a3c789b1&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=4d47f338b3556674f965a650e1b27987&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=4d47f338b3556674f965a650e1b27987&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=74102ef61a94cb29efb1f10099a007b1&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=74102ef61a94cb29efb1f10099a007b1&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=f533982e05539c893ffdab9c9b048b32&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=f533982e05539c893ffdab9c9b048b32&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/lizongbo?a=bfeaf7e3d6663c49903331b204f2918d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/lizongbo?i=bfeaf7e3d6663c49903331b204f2918d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;!-- /Feedsky flare --&gt;</description><category>行政区划</category><category>gis</category><category>未分类</category><pubDate>Sat, 31 May 2008 16:04:01 +0800</pubDate><author>lizongbo</author><comments>http://618119.com/archives/2008/05/31/91.html#comments</comments><guid isPermaLink="false">http://618119.com/archives/2008/05/31/91.html</guid><dc:creator>lizongbo</dc:creator><fs:srclink>http://618119.com/archives/2008/05/31/91.html</fs:srclink><fs:srcfeed>http://618119.com/feed</fs:srcfeed><fs:itemid>feedsky/lizongbo/~5992314/86899717/4098543</fs:itemid></item></channel></rss>