<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>威言大义 &#187; 开发经验</title>
	<atom:link href="http://www.chenweionline.cn/archives/tag/%e5%bc%80%e5%8f%91%e7%bb%8f%e9%aa%8c/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chenweionline.cn</link>
	<description>言简意赅，论人论事论学问</description>
	<lastBuildDate>Thu, 05 May 2011 05:16:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>人民大学开发完成学术主页生成系统EasyScholar</title>
		<link>http://www.chenweionline.cn/archives/60.htm</link>
		<comments>http://www.chenweionline.cn/archives/60.htm#comments</comments>
		<pubDate>Thu, 05 May 2011 01:56:15 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[网站开发]]></category>
		<category><![CDATA[威言大义]]></category>
		<category><![CDATA[开发经验]]></category>
		<category><![CDATA[网站界面开发]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=60</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;&#160;&#160;&#160;继发布面向计算机领域的中文文献集成系统C-DBLP（后更名为SearchScholar）后，人民大学孟小峰教授领导的网络与移动数据管理（WAMDM）实验室近日又开发完成了学术主页生成系统EasyScholar。该系统基于WAMDM实验室在Web数据集成方向的研究成果及SearchScholar开发中的技术积累，自动收集整理学者的论文著作、承担项目、研究兴趣等学术信息，实现了学者个人学术主页的自动构建功能，大大简化了学者建立个人主页的过程。
&#160;&#160;&#160;&#160;&#160;&#160;EasyScholar着眼于目前国内学者在建立个人主页时收集整理论文著作、科研项目等信息时诸多不便，应用WAMDM实验室面向领域的Web数据集成技术从Web上的公开数据源自动获取学者的相关学术信息，在有限的人工参与下方便地建立学者的个人主页。由于使用了Web数据集成方法，在EasyScholar上建立学术主页不再是一个单调繁重的工作，而是一种方便快捷的体验。此外，EasyScholar根据国内外主流学术主页的风格制作了多种学术主页的模板，用户可以根据个人偏好定制学术主页的风格。生成的主页即可放在我们的学术空间，也可提供静态学术主页的打包下载功能，方便用户部署到其他站点中。
&#160;&#160;&#160;&#160;&#160;&#160;在以上成果的基础上，孟小峰教授进一步提出了构建适合中国学者的学术空间ScholarSpace的计划。ScholarSpace将由三部分组成，即文献集成系统SearchScholar，学术主页生成系统EasyScholar，和将开发完成的学者间社交网络SocialScholar。EasyScholar基于SearchScholar开发完成， SocialScholar将基于EasyScholar开发完成，而SocialScholar的实现会进一步提高SearchScholar的学术搜索质量和能力。学术空间ScholarSpace的这三个子系统形成彼此促进的关系，构成了一个学术信息和资源汇集与分享的良性循环，将为我国学者的学术交流提供便利。
&#160;&#160;&#160;&#160;&#160;&#160;欢迎大家试用：http://easyscholar.ruc.edu.cn/
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;继发布面向计算机领域的中文文献集成系统C-DBLP（后更名为SearchScholar）后，人民大学孟小峰教授领导的网络与移动数据管理（WAMDM）实验室近日又开发完成了学术主页生成系统EasyScholar。该系统基于WAMDM实验室在Web数据集成方向的研究成果及SearchScholar开发中的技术积累，自动收集整理学者的论文著作、承担项目、研究兴趣等学术信息，实现了学者个人学术主页的自动构建功能，大大简化了学者建立个人主页的过程。<span id="more-60"></span></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>EasyScholar</span>着眼于目前国内学者在建立个人主页时收集整理论文著作、科研项目等信息时诸多不便，应用WAMDM实验室面向领域的Web数据集成技术从Web上的公开数据源自动获取学者的相关学术信息，在有限的人工参与下方便地建立学者的个人主页。由于使用了Web数据集成方法，在EasyScholar上建立学术主页不再是一个单调繁重的工作，而是一种方便快捷的体验。此外，EasyScholar根据国内外主流学术主页的风格制作了多种学术主页的模板，用户可以根据个人偏好定制学术主页的风格。生成的主页即可放在我们的学术空间，也可提供静态学术主页的打包下载功能，方便用户部署到其他站点中。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在以上成果的基础上，孟小峰教授进一步提出了构建适合中国学者的学术空间ScholarSpace的计划。ScholarSpace将由三部分组成，即文献集成系统SearchScholar，学术主页生成系统EasyScholar，和将开发完成的学者间社交网络SocialScholar。EasyScholar基于SearchScholar开发完成， SocialScholar将基于EasyScholar开发完成，而SocialScholar的实现会进一步提高SearchScholar的学术搜索质量和能力。学术空间ScholarSpace的这三个子系统形成彼此促进的关系，构成了一个学术信息和资源汇集与分享的良性循环，将为我国学者的学术交流提供便利。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;欢迎大家试用：<a href="http://easyscholar.ruc.edu.cn/"><span style="COLOR: #0000ff"><span style="text-decoration: underline;">http://easyscholar.ruc.edu.cn/</span></span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/60.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyEclipse安装SubClipse SVN插件</title>
		<link>http://www.chenweionline.cn/archives/59.htm</link>
		<comments>http://www.chenweionline.cn/archives/59.htm#comments</comments>
		<pubDate>Sun, 01 May 2011 07:29:19 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[myclipse]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[开发经验]]></category>
		<category><![CDATA[版本控制]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=59</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;&#160;&#160;&#160;SubClipse是Eclipse上的一个SubVersion版本控制客户端插件，几乎支持所有版本的Eclipse，MyEclipse中也可以使用该插件。安装Subclipse一般可以有两种方式：（1）使用MyEclipse自带的MyEclipse Configuration Center以类似于Eclipse中的software update的方式自动升级安装，但由于安装过程中需要在myeclipse官网下载部分myeclipse的plugin，而MyEclipse对中国区的软件用户下载和更新进行了限制（可能是由于copyright的原因），所以用这种方式更新时总会报错失败。（2）到subclipse的网站（http://subclipse.tigris.org/）上下载相应的subclipse的zip包到本地，以myeclipse插件手动安装。
&#160;&#160;&#160;&#160;&#160;&#160;手动安装subclipse插件时，先从网站下载相应版本的zip包至本地，解压后可以看见包中有features和plugins两个文件夹和一个site.xml文件，将features和plugins两个文件夹拷贝到myeclipse安装目录下新建文件夹（如svn）中，site.xml文件不用拷贝。在$Myeclipse_HOME/dropins文件夹下建一个快捷方式文件svn.link，指向刚才features和plugins文件夹所在的文件夹。（可以先建一个文本文件，在里面写上path=C:\\Users\\web\\AppData\\Local\\Genuitec\\MyEclipse 8.5\\myplugin\\svn，然后把文本文件后缀名.txt改成.link即可）上述操作完成后删除$MyEclipse_HOME/configuration/org.eclipse.update文件夹中的所有内容，重新启动myeclipse即可完成安装。安装完成后可以在菜单中window->show view->other->svn下找到subclipse的相关界面，如“svn资源库”、“svn属性”、“svn注释”等。
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SubClipse是Eclipse上的一个SubVersion版本控制客户端插件，几乎支持所有版本的Eclipse，MyEclipse中也可以使用该插件。安装Subclipse一般可以有两种方式：（1）使用MyEclipse自带的MyEclipse Configuration Center以类似于Eclipse中的software update的方式自动升级安装，但由于安装过程中需要在myeclipse官网下载部分myeclipse的plugin，而MyEclipse对中国区的软件用户下载和更新进行了限制（可能是由于copyright的原因），所以用这种方式更新时总会报错失败。（2）到subclipse的网站（<a href='http://subclipse.tigris.org/' target='_blank'>http://subclipse.tigris.org/</a>）上下载相应的subclipse的zip包到本地，以myeclipse插件手动安装。<span id="more-59"></span><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手动安装subclipse插件时，先从网站下载相应版本的zip包至本地，解压后可以看见包中有features和plugins两个文件夹和一个site.xml文件，将features和plugins两个文件夹拷贝到myeclipse安装目录下新建文件夹（如svn）中，site.xml文件不用拷贝。在$Myeclipse_HOME/dropins文件夹下建一个快捷方式文件svn.link，指向刚才features和plugins文件夹所在的文件夹。（可以先建一个文本文件，在里面写上path=C:\\Users\\web\\AppData\\Local\\Genuitec\\MyEclipse 8.5\\myplugin\\svn，然后把文本文件后缀名.txt改成.link即可）上述操作完成后删除$MyEclipse_HOME/configuration/org.eclipse.update文件夹中的所有内容，重新启动myeclipse即可完成安装。安装完成后可以在菜单中window->show view->other->svn下找到subclipse的相关界面，如“svn资源库”、“svn属性”、“svn注释”等。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/59.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse出现java was started but returned exit code 1报错并退出的解决方法</title>
		<link>http://www.chenweionline.cn/archives/57.htm</link>
		<comments>http://www.chenweionline.cn/archives/57.htm#comments</comments>
		<pubDate>Fri, 22 Apr 2011 05:33:44 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JVM]]></category>
		<category><![CDATA[开发经验]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=57</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;&#160;&#160;&#160;最近在使用Eclipse时发现无法启动，或者启动后经常出现崩溃退出的情况，提示的错误信息都是“java was started but returned exit code 1”，下载安装了最新版的Eclipse后还是没有解决问题。无奈之下只好百度之，翻了好几页都没有发现有用的信息，直接换到Google.com，终于在Eclipse Forum找到了一个靠谱的答案（网址是http://www.eclipse.org/forums/index.php?t=tree&#38;goto=547573&#38;#page_top），回答答案是“Eclipse is using the system default JRE that it finds in the windows system folders. You should point it to a JDK installation using eclipse.ini (as described here: http://wiki.eclipse.org/Eclipse.ini )”，大意是Eclipse启动的时候默认会使用从windows系统目录下找到的JRE作为默认的环境，由于我之前升级安装了一下JDK，所以系统目录下的JRE和实际的Java安装是不匹配的，因此会出现运行Eclipse时报错的情况。
解决方案：
&#160;&#160;&#160;&#160;&#160;&#160;根据eclipse.ini文件的说明（http://wiki.eclipse.org/Eclipse.ini），该文件提供指定运行eclipse的JVM功能，需要在eclipse.ini中加入JVM的路径说明。语法很简单：
-vm
C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe
&#160;&#160;&#160;&#160;&#160;&#160;eclipse.ini说明文档中特别提到使用-vm参数的注意事项：
（1）The -vm option and its value (the path) must be on separate lines.（-vm选项和其对应的javaw.exe的路径必须各占一行，这应该是参数解析的格式要求）
（2）The value must be the [...]]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最近在使用Eclipse时发现无法启动，或者启动后经常出现崩溃退出的情况，提示的错误信息都是“java was started but returned exit code 1”，下载安装了最新版的Eclipse后还是没有解决问题。无奈之下只好百度之，翻了好几页都没有发现有用的信息，直接换到Google.com，终于在Eclipse Forum找到了一个靠谱的答案（网址是<a href='http://www.eclipse.org/forums/index.php?t=tree&amp;goto=547573&amp;#page_top' target='_blank'>http://www.eclipse.org/forums/index.php?t=tree&amp;goto=547573&amp;#page_top</a>），回答答案是“Eclipse is using the system default JRE that it finds in the windows system folders. You should point it to a JDK installation using eclipse.ini (as described here: http://wiki.eclipse.org/Eclipse.ini )”，大意是Eclipse启动的时候默认会使用从windows系统目录下找到的JRE作为默认的环境，由于我之前升级安装了一下JDK，所以系统目录下的JRE和实际的Java安装是不匹配的，因此会出现运行Eclipse时报错的情况。<span id="more-57"></span><br />
<strong>解决方案：<br />
</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;根据eclipse.ini文件的说明（<a href='http://wiki.eclipse.org/Eclipse.ini' target='_blank'>http://wiki.eclipse.org/Eclipse.ini</a>），该文件提供指定运行eclipse的JVM功能，需要在eclipse.ini中加入JVM的路径说明。语法很简单：</p>
<pre>-vm</pre>
<pre>C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eclipse.ini说明文档中特别提到使用-vm参数的注意事项：<br />
（1）<strong>The -vm option and its value (the path) must be on separate lines</strong>.（-vm选项和其对应的javaw.exe的路径必须各占一行，这应该是参数解析的格式要求）<br />
（2）<strong>The value must be the full absolute path to the Java executable, not just to the Java home directory</strong>.（指定的虚拟机路径必须是指向可执行Java程序的完整绝对路径，不能只指定到Java_HOME目录。这个好理解，要指定JVM的话肯定要指定到具体的可执行文件去）<br />
（3）<strong>The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM</strong>.（-vm选项必须放在-vmargs选项前，这是因为-vmargs选项后的值都是作为JVM的参数传给虚拟机的，如果-vm放在-vmargs之后就没有意义了。而-vmargs选项中一般可指定-Xms和-Xmx这两个内存参数）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/57.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apt-get出现E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists错误的解决方法</title>
		<link>http://www.chenweionline.cn/archives/55.htm</link>
		<comments>http://www.chenweionline.cn/archives/55.htm#comments</comments>
		<pubDate>Sat, 05 Mar 2011 10:51:11 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[Unix/Linux系统]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[开发经验]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=55</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;&#160;&#160;&#160;最近在Ubuntu上安装mysql-server时用命令apt-get install mysql-server出现报错提示：
E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/******
刚开始以为是apt lists中的package没有mysql-server，所以运行命令apt-get update更新list列表，但仍然报上述错误，提示是lists的某一个mirror站点的package入口文件Could not be parsed or opened。回想起上一次调用apt-get update时由于update时间太长我直接CTRL+C中止的情形，可能是由于lists中某一个文件没有下载完成，出现解析错误。
&#160;&#160;&#160;&#160;&#160;&#160;可用的解决方案：将/var/lib/apt/lists/下的所有list文件都删除，然后再update即可，命令如下： 
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
&#160;&#160;&#160;&#160;&#160;&#160;在Ubuntu server中通过apt-get install是一种比较方便的安装软件的途径，不过由于Ubuntu Mirrors的访问速度问题，安装过程往往耗时很长，比起直接下载代码在本地make的方式要更需要耐心。
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最近在Ubuntu上安装mysql-server时用命令apt-get install mysql-server出现报错提示：</p>
<pre><strong>E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/******</strong></pre>
<p>刚开始以为是apt lists中的package没有mysql-server，所以运行命令apt-get update更新list列表，但仍然报上述错误，提示是lists的某一个mirror站点的package入口文件Could not be parsed or opened。回想起上一次调用apt-get update时由于update时间太长我直接CTRL+C中止的情形，可能是由于lists中某一个文件没有下载完成，出现解析错误。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可用的解决方案：将/var/lib/apt/lists/下的所有list文件都删除，然后再update即可，命令如下： </p>
<pre><strong>sudo rm /var/lib/apt/lists/* -vf</strong></pre>
<pre><strong>sudo apt-get update</strong></pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在Ubuntu server中通过apt-get install是一种比较方便的安装软件的途径，不过由于Ubuntu Mirrors的访问速度问题，安装过程往往耗时很长，比起直接下载代码在本地make的方式要更需要耐心。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/55.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyEclipse+Tomcat设置程序修改自动reload功能</title>
		<link>http://www.chenweionline.cn/archives/53.htm</link>
		<comments>http://www.chenweionline.cn/archives/53.htm#comments</comments>
		<pubDate>Wed, 19 Jan 2011 03:05:04 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[开发经验]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=53</guid>
		<description><![CDATA[

热度:

MyEclipse是JavaEE开发中经常使用的IDE，因其比Eclipse提供了更多的面向JavaEE的插件而为人所青睐，但在MyEclipse+Tomcat搭配的JavaEE项目开发环境中，如果没有对Tomcat进行相关配置的话，MyEclipse中修改程序代码后Tomcat并不会自动reload最新修改的代码，因此需要通过对Tomcat的配置设置程序修改后的自动context reload功能。
对Tomcat6.0版本的修改是在$TOMCAT_HOME/conf/context.xml上进行的，为了保证部署在Tomcat上的所有应用都能够在程序被修改时自动reload，我们需要把context结点加上reloadable属性，修改部分如下：
&#60;Context reloadable=&#8221;true&#8221;&#62;settings&#60;/Context&#62;
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>MyEclipse是JavaEE开发中经常使用的IDE，因其比Eclipse提供了更多的面向JavaEE的插件而为人所青睐，但在MyEclipse+Tomcat搭配的JavaEE项目开发环境中，如果没有对Tomcat进行相关配置的话，MyEclipse中修改程序代码后Tomcat并不会自动reload最新修改的代码，因此需要通过对Tomcat的配置设置程序修改后的自动context reload功能。</p>
<p>对Tomcat6.0版本的修改是在$TOMCAT_HOME/conf/context.xml上进行的，为了保证部署在Tomcat上的所有应用都能够在程序被修改时自动reload，我们需要把context结点加上reloadable属性，修改部分如下：</p>
<p>&lt;Context <font color='red'>reloadable=&#8221;true&#8221;</font>&gt;settings&lt;/Context&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/53.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何将Tomcat安装为Windows7系统服务</title>
		<link>http://www.chenweionline.cn/archives/52.htm</link>
		<comments>http://www.chenweionline.cn/archives/52.htm#comments</comments>
		<pubDate>Mon, 17 Jan 2011 03:16:43 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[开发经验]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=52</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;&#160;&#160;&#160;Windows版本的Tomcat 6.0版本不提供exe安装程序，下载zip包解压后即可使用，但为了让tomcat注册为系统服务以便自动运行还需要执行命令安装，步骤如下：

第一步：在Windows 7或Vista操作系统下，需要以管理员身份运行cmd命令行窗口，否则在安装时会提示出错。这是由于windows 7和vista使用了更严格的权限管理机制，非管理员身份运行的命令行窗口无法修改系统服务。安装过程中相关错误提示信息可在$TOMCAT_HOME/logs下找到。
第二步：在命令行窗口中进入到$TOMCAT_HOME/bin文件下，使用service.bat文件安装服务，命令如下：
service.bat install tomcat

&#160;&#160;&#160;&#160;&#160;&#160;如果系统之前安装过tomcat系统服务，在再安装之前需要先移除原服务再安装，命令如下：
service.bat remove tomcat
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Windows版本的Tomcat 6.0版本不提供exe安装程序，下载zip包解压后即可使用，但为了让tomcat注册为系统服务以便自动运行还需要执行命令安装，步骤如下：</p>
<ul>
<li>第一步：在Windows 7或Vista操作系统下，需要以管理员身份运行cmd命令行窗口，否则在安装时会提示出错。这是由于windows 7和vista使用了更严格的权限管理机制，非管理员身份运行的命令行窗口无法修改系统服务。安装过程中相关错误提示信息可在$TOMCAT_HOME/logs下找到。</li>
<li>第二步：在命令行窗口中进入到$TOMCAT_HOME/bin文件下，使用service.bat文件安装服务，命令如下：</li>
<pre>service.bat install tomcat</pre>
</ul>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果系统之前安装过tomcat系统服务，在再安装之前需要先移除原服务再安装，命令如下：</p>
<pre>service.bat remove tomcat</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/52.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Server上修改mysql默认数据文件存放地址datadir</title>
		<link>http://www.chenweionline.cn/archives/51.htm</link>
		<comments>http://www.chenweionline.cn/archives/51.htm#comments</comments>
		<pubDate>Thu, 13 Jan 2011 08:54:43 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[开发经验]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=51</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;&#160;&#160;&#160;最近在研究Ubuntu Server上部署网站系统，使用的是标准的LAMP架构（Ubuntu Server 10.04 + Apache + Mysql + php）。Ubuntu Server安装过程中可以自动安装Apache Mysql及php组件，但我们需要根据需要调整相应的配置。今天我们就来讨论一下如何修改mysql默认的数据文件存放地址datadir的方法。
&#160;&#160;&#160;&#160;&#160;&#160;在Ubuntu Server系统中，mysql的配置文件是在/etc/mysql文件夹下，包括my.cnf文件, conf.d文件夹及另外两个debian相关的文件，而默认数据文件存放地址datadir是在my.cnf文件中指定的。打开my.cnf文件，找到配置datadir的位置，默认的路径应该是：
datadir=/var/lib/mysql
把该路径改成需要指定的数据文件存放的新地址，如：
datadir=/data/mysqldata
&#160;&#160;&#160;&#160;&#160;&#160;这样就完成了对数据文件存放地址的修改。但需要注意的是，只修改这一处并不能保证mysql正常地运行，还需要修改其他两处。这是因为修改数据文件存放地址时还需要修改chroot属性，所以还需要修改/etc/apparmor.d下的相关文件。

修改/etc/apparmor.d/usr.sbin.mysqld文件：
/var/lib/mysql/ r      改为：/data/mysqldata r
/var/lib/mysql/**  rwk      改为：/data/mysqldata/**  rwk
修改/etc/apparmor.d/abstractions/mysql文件：
/var/lib/mysql/mysql.sock rw    改为：/data/mysqldata/mysql.sock rw
修改完成后重新加载apparmor服务：
sudo /etc/init.d/apparmor reload
重新建立mysql基本数据库：
sudo mysql_install_db

&#160;&#160;&#160;&#160;&#160;&#160;上述步骤中如果遇到permission问题，请调整相应的数据文件夹的权限设置。在mysql_install_db成功执行后即可使用service mysql start命令启动mysql服务器。
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最近在研究Ubuntu Server上部署网站系统，使用的是标准的LAMP架构（Ubuntu Server 10.04 + Apache + Mysql + php）。Ubuntu Server安装过程中可以自动安装Apache Mysql及php组件，但我们需要根据需要调整相应的配置。今天我们就来讨论一下如何修改mysql默认的数据文件存放地址datadir的方法。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在Ubuntu Server系统中，mysql的配置文件是在/etc/mysql文件夹下，包括my.cnf文件, conf.d文件夹及另外两个debian相关的文件，而默认数据文件存放地址datadir是在my.cnf文件中指定的。打开my.cnf文件，找到配置datadir的位置，默认的路径应该是：</p>
<pre>datadir=/var/lib/mysql</pre>
<p>把该路径改成需要指定的数据文件存放的新地址，如：</p>
<pre>datadir=/data/mysqldata</pre>
<p><span id="more-51"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这样就完成了对数据文件存放地址的修改。但需要注意的是，只修改这一处并不能保证mysql正常地运行，还需要修改其他两处。这是因为修改数据文件存放地址时还需要修改chroot属性，所以还需要修改<strong>/etc/apparmor.d</strong>下的相关文件。</p>
<ul>
<li>修改<strong>/etc/apparmor.d/usr.sbin.mysqld</strong>文件：</li>
<pre>/var/lib/mysql/ r      改为：/data/mysqldata r</pre>
<pre>/var/lib/mysql/**  rwk      改为：/data/mysqldata/**  rwk</pre>
<li>修改<strong>/etc/apparmor.<strong>d</strong></strong><strong>/abstractions/mysq</strong>l文件：</li>
<pre>/var/lib/mysql/mysql.sock rw    改为：/data/mysqldata/mysql.sock rw</pre>
<li>修改完成后重新加载apparmor服务：</li>
<pre>sudo /etc/init.d/apparmor reload</pre>
<li>重新建立mysql基本数据库：</li>
<pre>sudo mysql_install_db</pre>
</ul>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上述步骤中如果遇到permission问题，请调整相应的数据文件夹的权限设置。在mysql_install_db成功执行后即可使用service mysql start命令启动mysql服务器。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/51.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>中国计算机学会数据库专业委员会新版网站上线</title>
		<link>http://www.chenweionline.cn/archives/50.htm</link>
		<comments>http://www.chenweionline.cn/archives/50.htm#comments</comments>
		<pubDate>Wed, 05 Jan 2011 12:01:59 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[网站开发]]></category>
		<category><![CDATA[开发经验]]></category>
		<category><![CDATA[网站界面开发]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=50</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;&#160;&#160;&#160;经过与小组内同学的一起努力，数据库专业委员会新版网站终于在今天正式上线运行，大家可以通过域名http://www.ccf-dbs.org.cn访问新版网站。本次网站改版是受数据库专业委员会秘书长孟小峰老师委托，由WAMDM实验室Web组完成，前后开发和调试历时月余，网站界面多次调整，并由实验室研一同学完成了旧版网站到新网站的数据录入工作，期间颇费周折。值此新网站上线之时，特此感谢研一同学们的支持和帮助。
&#160;&#160;&#160;&#160;&#160;&#160;数据库专业委员会的原版网站已经运行近十年，经林灿师兄、王仲远师兄再到我已经经历了多次调整，但在界面、内容及后台管理方面仍存在诸多问题。针对这些问题，我们开发部署了新版网站。为了减轻开发量，我们选用了一个免费的asp.net平台的cms系统pageadmin cms，并把原主机平台升级到支持asp.net环境。在部署pageadmin cms的过程中，我们解决了许多小问题，如urlrewrite的配置、站点界面的修改、各种应用程序错误的调试等等。经过本次改版，专委会网站内容更加丰富，网站组织更加清晰，并且增加了一些新的功能模块，主要包括以下几个方面：

收集整理了历届NDBC会议的相关信息，建立了NDBC专栏，展示了中国数据库学术会议的发展历程。
简化了新闻快报的分类，只设“新闻”和“征文通知”两类，更加清晰明了。
基于1990至2009年NDBC的电子文献库建立了数据库专委会“数字文库”，提供对历届NDBC论文的浏览、检索和全文下载功能（特别感谢CNKI提供的论文数据）。
收集整理了已故的萨师煊教授、陆宏钧教授、李天柱教授、郑怀远教授等四位中国数据库研究界领军人物的生平事迹，建立了缅怀四位中国数据库研究先驱的纪念专题。
基于第27届中国数据库学术会议组委会整理的“中国数据库发展历史回顾文集”的材料，建立了数据库专业委员会“历史回顾”专题，收录了数据库领域知名研究者对我国数据库研究发展的回顾文章及珍贵的历史照片。
保留了“国际合作”、“数据库术语”、“相关资源”等原版网站的重要专题。

&#160;&#160;&#160;&#160;&#160;&#160;经过本次改版，数据库专业委员会的官方网站在界面、内容及后台管理方面有了长足的进步，也希望大家在使用的过程中把意见和建议反馈给我们，以便我们进一步改进。
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;经过与小组内同学的一起努力，数据库专业委员会新版网站终于在今天正式上线运行，大家可以通过域名<a href="http://www.ccf-dbs.org.cn" target="_blank">http://www.ccf-dbs.org.cn</a>访问新版网站。本次网站改版是受数据库专业委员会秘书长孟小峰老师委托，由WAMDM实验室Web组完成，前后开发和调试历时月余，网站界面多次调整，并由实验室研一同学完成了旧版网站到新网站的数据录入工作，期间颇费周折。值此新网站上线之时，特此感谢研一同学们的支持和帮助。<span id="more-50"></span><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数据库专业委员会的原版网站已经运行近十年，经林灿师兄、王仲远师兄再到我已经经历了多次调整，但在界面、内容及后台管理方面仍存在诸多问题。针对这些问题，我们开发部署了新版网站。为了减轻开发量，我们选用了一个免费的asp.net平台的cms系统pageadmin cms，并把原主机平台升级到支持asp.net环境。在部署pageadmin cms的过程中，我们解决了许多小问题，如urlrewrite的配置、站点界面的修改、各种应用程序错误的调试等等。经过本次改版，专委会网站内容更加丰富，网站组织更加清晰，并且增加了一些新的功能模块，主要包括以下几个方面：</p>
<ul>
<li>收集整理了历届NDBC会议的相关信息，建立了NDBC专栏，展示了中国数据库学术会议的发展历程。</li>
<li>简化了新闻快报的分类，只设“新闻”和“征文通知”两类，更加清晰明了。</li>
<li>基于1990至2009年NDBC的电子文献库建立了数据库专委会“数字文库”，提供对历届NDBC论文的浏览、检索和全文下载功能（特别感谢CNKI提供的论文数据）。</li>
<li>收集整理了已故的萨师煊教授、陆宏钧教授、李天柱教授、郑怀远教授等四位中国数据库研究界领军人物的生平事迹，建立了缅怀四位中国数据库研究先驱的纪念专题。</li>
<li>基于第27届中国数据库学术会议组委会整理的“中国数据库发展历史回顾文集”的材料，建立了数据库专业委员会“历史回顾”专题，收录了数据库领域知名研究者对我国数据库研究发展的回顾文章及珍贵的历史照片。</li>
<li>保留了“国际合作”、“数据库术语”、“相关资源”等原版网站的重要专题。</li>
</ul>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;经过本次改版，数据库专业委员会的官方网站在界面、内容及后台管理方面有了长足的进步，也希望大家在使用的过程中把意见和建议反馈给我们，以便我们进一步改进。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/50.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C-DBLP更名为“学术空间ScholarSpace”并发布新功能</title>
		<link>http://www.chenweionline.cn/archives/46.htm</link>
		<comments>http://www.chenweionline.cn/archives/46.htm#comments</comments>
		<pubDate>Thu, 17 Jun 2010 05:36:48 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[开发经验]]></category>
		<category><![CDATA[网站界面开发]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=46</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;由WAMDM实验室开发的面向计算机领域的中文文献集成系统C-DBLP在成功运行近两年时间后近期正式更名为“学术空间ScholarSpace”，新名字更好地反映了系统的定位和发展方向。我们并不是要做一个中文版的DBLP文献系统，到目前为止我们已经在基于该系统的数据集开发了很多有价值的、DBLP所没有的功能和应用，ScholarSpace的目标是为国内计算机科学研究者建立一个中文的“学术空间”，汇集该研究者的文献著述、学术活动、科研项目、就职单位变迁等方面的信息，综合、全面、客观地展示研究人员的学术研究进展情况。
&#160;&#160;&#160;今年我们将ScholarSpace系统的进一步开发作为毕业设计实习课题交给大四本科生完成，经过几个月的研究和开发，系统发布了以下新功能：

文献作者研究兴趣：基于ScholarSpace的文献数据，我们从文献标题中自动抽取出该作者可能的研究领域情况在作者页面展示，并且提供查询相同研究领域作者的功能。
作者学术活动集成：利用面向领域的Web数据集成技术，我们从搜索引擎中集成了该作者的新闻信息，展示作者的学术活动及社会新闻情况。
作者列表展示：截至2010年6月，ScholarSpace收录的作者数量达到68,000+，为了方便用户浏览，我们发布了作者列表展示功能，以拼音序展示系统收录的所有作者姓氏，使用Ajax技术动态显示每个姓氏下的所有作者列表浏览功能。欢迎大家访问http://www.cdblp.cn/authorlist.php页面使用并提出宝贵意见。

&#160;&#160;&#160;上述几个功能所使用的数据都是由信息学院2006级本科生陈喆在实验室毕业实习期间完成的，在此向她表示感谢。
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;由<a title="WAMDM实验室" href="http://idke.ruc.edu.cn" target="_blank">WAMDM实验室</a>开发的面向计算机领域的中文文献集成系统<a title="C-DBLP" href="http://www.cdblp.cn" target="_blank">C-DBLP</a>在成功运行近两年时间后近期正式更名为“<strong>学术空间ScholarSpace</strong>”，新名字更好地反映了系统的定位和发展方向。我们并不是要做一个中文版的DBLP文献系统，到目前为止我们已经在基于该系统的数据集开发了很多有价值的、DBLP所没有的功能和应用，ScholarSpace的目标是为国内计算机科学研究者建立一个中文的“学术空间”，汇集该研究者的文献著述、学术活动、科研项目、就职单位变迁等方面的信息，综合、全面、客观地展示研究人员的学术研究进展情况。<span id="more-46"></span></p>
<p>&nbsp;&nbsp;&nbsp;今年我们将ScholarSpace系统的进一步开发作为毕业设计实习课题交给大四本科生完成，经过几个月的研究和开发，系统发布了以下新功能：</p>
<ul>
<li><strong>文献作者研究兴趣：</strong>基于ScholarSpace的文献数据，我们从文献标题中自动抽取出该作者可能的研究领域情况在作者页面展示，并且提供查询相同研究领域作者的功能。</li>
<li><strong>作者学术活动集成：</strong>利用面向领域的Web数据集成技术，我们从搜索引擎中集成了该作者的新闻信息，展示作者的学术活动及社会新闻情况。</li>
<li><strong>作者列表展示：</strong>截至2010年6月，ScholarSpace收录的作者数量达到68,000+，为了方便用户浏览，我们发布了作者列表展示功能，以拼音序展示系统收录的所有作者姓氏，使用Ajax技术动态显示每个姓氏下的所有作者列表浏览功能。欢迎大家访问<a title="ScholarSpace作者列表页面" href="http://www.cdblp.cn/authorlist.php" target="_blank">http://www.cdblp.cn/authorlist.php</a>页面使用并提出宝贵意见。</li>
</ul>
<p>&nbsp;&nbsp;&nbsp;上述几个功能所使用的数据都是由信息学院2006级本科生陈喆在实验室毕业实习期间完成的，在此向她表示感谢。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/46.htm/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>IE内核浏览器不能自动识别网页编码的解决方法</title>
		<link>http://www.chenweionline.cn/archives/45.htm</link>
		<comments>http://www.chenweionline.cn/archives/45.htm#comments</comments>
		<pubDate>Wed, 16 Jun 2010 06:35:25 +0000</pubDate>
		<dc:creator>陈威</dc:creator>
				<category><![CDATA[网站开发]]></category>
		<category><![CDATA[开发经验]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[转载]]></category>

		<guid isPermaLink="false">http://www.chenweionline.cn/?p=45</guid>
		<description><![CDATA[

热度:

&#160;&#160;&#160;最近为C-DBLP系统开发一个新的人名列表展示的功能，开发过程中遇到IE内核浏览器（如IE8，傲游，Sogou浏览器）不能正确识别人名列表页面的问题，这些浏览器在打开http://www.cdblp.cn/authorlist.php后只显示一片空白，查看页面源代码发现页面内容已经下载到本地，但其中的中文都是乱码。在页面中右键选择“编码”将页面编码人工设置为UTF-8后页面显示正常，但再次访问该页面时浏览器仍然不能显示页面内容。这样的问题只在IE内核的浏览器中出现，在Firefox、Safari浏览器中都没有遇到这种情况。在网上查了很多资料后终于解决了这个问题，特将查到的解决方案转载如下：
&#160;&#160;&#160;在windows操作系统上使用IE作为浏览器时。常常会发生这样的问题：在浏览使用UTF-8编码的网页时，浏览器无法自动侦测（即没有设定“自 动选择”编码格式时）该页面所用的编码。即使网页已经声明过编码格式：
&#60;meta  http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&#62;
由此造成某些含有中文UTF-8编码的页面产生空白输出。
&#160;&#160;&#160;如果使用的是Mozilla、Mozilla  Firefox、Safari的浏览器这不会造成这个问题。这是由于IE解析网页编码时以HTML内的标签优先，而后才是HTTP  header内的讯息；而mozilla系列的浏览器则刚刚相反。
&#160;&#160;&#160;由于UTF-8为3个字节表示一个汉字，而普通的GB2312或BIG5 是两个。页面输出时，由于上述原因，使浏览器解析、输出&#60;title&#62;&#60;/title&#62;的内容时，如果在&#60; /title&#62;前有奇数个全角字符时，IE把UTF-8当作两个字节解析时出现半个汉字的情况，这时该半个汉字会和&#60;/title&#62; 的&#60;结合成一个乱码字，导致IE无法读完&#60;title&#62;部分，使整个页面为空白输出。而这个时候如果察看源文件的话，会发现实际上整个 页面全部已经输出了。
&#160;&#160;&#160;因此最简单的解决办法是在网页文件的&#60;head&#62;&#60;/head&#62;标签中一定要把字符定 义&#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243;  /&#62; 放在&#60;title&#62;&#60;/title&#62;之前。
]]></description>
			<content:encoded><![CDATA[
<table>
<tr cellpadding=0><td>热度:</td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun.gif' width=10 height=10 border=0 /></td><td cellpadding=0><img src='http://www.chenweionline.cn/wp-content/plugins/statpresscn/images/sun_dark.gif' width=10 height=10 border=0 /></td></tr>
</table>
<p><p>&nbsp;&nbsp;&nbsp;最近为C-DBLP系统开发一个新的人名列表展示的功能，开发过程中遇到IE内核浏览器（如IE8，傲游，Sogou浏览器）不能正确识别人名列表页面的问题，这些浏览器在打开<a href="http://www.cdblp.cn/authorlist.php" target='_blank'>http://www.cdblp.cn/authorlist.php</a>后只显示一片空白，查看页面源代码发现页面内容已经下载到本地，但其中的中文都是乱码。在页面中右键选择“编码”将页面编码人工设置为UTF-8后页面显示正常，但再次访问该页面时浏览器仍然不能显示页面内容。这样的问题只在IE内核的浏览器中出现，在Firefox、Safari浏览器中都没有遇到这种情况。<span id="more-45"></span>在网上查了很多资料后终于解决了这个问题，特将查到的解决方案转载如下：</p>
<p>&nbsp;&nbsp;&nbsp;在windows操作系统上使用IE作为浏览器时。常常会发生这样的问题：在浏览使用UTF-8编码的网页时，浏览器无法自动侦测（即没有设定“自 动选择”编码格式时）该页面所用的编码。即使网页已经声明过编码格式：</p>
<p>&lt;meta  http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;</p>
<p>由此造成某些含有中文UTF-8编码的页面产生空白输出。</p>
<p>&nbsp;&nbsp;&nbsp;如果使用的是Mozilla、Mozilla  Firefox、Safari的浏览器这不会造成这个问题。这是由于IE解析网页编码时以HTML内的标签优先，而后才是HTTP  header内的讯息；而mozilla系列的浏览器则刚刚相反。</p>
<p>&nbsp;&nbsp;&nbsp;由于UTF-8为3个字节表示一个汉字，而普通的GB2312或BIG5 是两个。页面输出时，由于上述原因，使浏览器解析、输出&lt;title&gt;&lt;/title&gt;的内容时，如果在&lt; /title&gt;前有奇数个全角字符时，IE把UTF-8当作两个字节解析时出现半个汉字的情况，这时该半个汉字会和&lt;/title&gt; 的&lt;结合成一个乱码字，导致IE无法读完&lt;title&gt;部分，使整个页面为空白输出。而这个时候如果察看源文件的话，会发现实际上整个 页面全部已经输出了。</p>
<p>&nbsp;&nbsp;&nbsp;因此最简单的解决办法是<span style="color: #0000ff;"><strong>在网页文件的&lt;head&gt;&lt;/head&gt;标签中一定要把字符定 义&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243;  /&gt; 放在&lt;title&gt;&lt;/title&gt;之前</strong></span>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenweionline.cn/archives/45.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

