<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Newweapon's Trace]]></title><description><![CDATA[Try my best and smile every day!]]></description><link>https://blog.csdn.net/newweapon</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; newweapon]]></copyright><item><title><![CDATA[Java程序运行时间统计]]></title><link>https://blog.csdn.net/newweapon/article/details/86431184</link><guid>https://blog.csdn.net/newweapon/article/details/86431184</guid><author>newweapon</author><pubDate>Sun, 13 Jan 2019 23:00:13 +0800</pubDate><description><![CDATA[写代码特别是完成一些对时间要求比较高的任务时，我们经常需要统计程序运行时间。整体思路当然很简单，在程序开启和结束后分别记录当前时间，两者相减，就得到了程序运行时间。以下介绍一些常见方法，具体使用情况可以根据项目需要选择。

一、简单方法

1.1 System.currentTimeMillis()

大家第一印象肯定想到的是System.currentTimeMillis()。没错！这个可以用来...]]></description><category></category></item><item><title><![CDATA[Browsers send requests twice]]></title><link>https://blog.csdn.net/newweapon/article/details/4676411</link><guid>https://blog.csdn.net/newweapon/article/details/4676411</guid><author>newweapon</author><pubDate>Thu, 15 Oct 2009 16:58:00 +0800</pubDate><description><![CDATA[Several days ago, I found that some pages of my site would be requested twice each time. I also noticed that this only happens when I am not logged in.But since I noticed this in firebug console, ]]></description><category></category></item><item><title><![CDATA[Parsing Html]]></title><link>https://blog.csdn.net/newweapon/article/details/3859926</link><guid>https://blog.csdn.net/newweapon/article/details/3859926</guid><author>newweapon</author><pubDate>Tue, 03 Feb 2009 11:59:00 +0800</pubDate><description><![CDATA[ It depends *very*much* on what youre trying to extract.I once had my motd come from $x = `curl -s http://www.care2.com/`;$t = strpos($x, DAILY QUACK UP);$y = substr($x, $t, 300);$t = s]]></description><category></category></item><item><title><![CDATA[Parsing HTML in PHP]]></title><link>https://blog.csdn.net/newweapon/article/details/3859923</link><guid>https://blog.csdn.net/newweapon/article/details/3859923</guid><author>newweapon</author><pubDate>Tue, 03 Feb 2009 11:58:00 +0800</pubDate><description><![CDATA[Haveyou ever wanted to get a list of the links contained in a HTML page? Ora list of images, the title or every other non-nested tag for thatmatter? Then this is the class for you!Example:]]></description><category></category></item><item><title><![CDATA[在ubuntu8.04中安装OpenOffice3]]></title><link>https://blog.csdn.net/newweapon/article/details/3304871</link><guid>https://blog.csdn.net/newweapon/article/details/3304871</guid><author>newweapon</author><pubDate>Sat, 15 Nov 2008 12:44:00 +0800</pubDate><description><![CDATA[Ubuntu8.04中的OpenOffice版本为2.4。安装OpenOffice3并不会和OpenOffice2.4冲突，如果你不需要把OpenOffice3添加到系统菜单中去的话。也就是说这两者可以同时存在。如果要把OpenOffice3添加到系统菜单中，则需要使用新立得软件管理将OpenOffice2.4卸载。安装OpenOffice3的步骤如下：1. 下载直接到http]]></description><category></category></item><item><title><![CDATA[CSDN的bug]]></title><link>https://blog.csdn.net/newweapon/article/details/3285695</link><guid>https://blog.csdn.net/newweapon/article/details/3285695</guid><author>newweapon</author><pubDate>Wed, 12 Nov 2008 22:30:00 +0800</pubDate><description><![CDATA[1. 在firefox中不能发布迷你博客，至少在ubuntu8.04中的firefox3下不能发布，点击“发布”按钮无效。这个问题已经很久了，也没有看到有什么解决，估计还没发现。2. 在别人的空间中不能发布留言，老是“出错啦～“...]]></description><category></category></item><item><title><![CDATA[PHP正则表达式]]></title><link>https://blog.csdn.net/newweapon/article/details/3280533</link><guid>https://blog.csdn.net/newweapon/article/details/3280533</guid><author>newweapon</author><pubDate>Wed, 12 Nov 2008 12:30:00 +0800</pubDate><description><![CDATA[Php有两种类型的正则表达式，一种是与perl兼容的表达式，一种是扩展POSIX的。一般我们使用的是Perl兼容的正则表达式。使用简单的表达式弄清楚以下几个步骤就是了：1. 弄清楚PHP中的正则表达式是以“/”开始，并以“/“结束，比如: /abc/ －－表示在任意位置包含abc的字符串。2. 理解PHP中正则表达式的特殊字符。包括：“/”、“/”、“^“、“$”……。这些字符都代表特殊的含义，如]]></description><category></category></item><item><title><![CDATA[windows下Tomcat多域名]]></title><link>https://blog.csdn.net/newweapon/article/details/3208050</link><guid>https://blog.csdn.net/newweapon/article/details/3208050</guid><author>newweapon</author><pubDate>Mon, 03 Nov 2008 01:32:00 +0800</pubDate><description><![CDATA[    1. 修改host下，接收要设置的域名：进入C:/WINDOWS/system32/drivers/etc，先取消host文件的只读属性。然后添加一句：127.0.0.1    docviewer.com.cn所以配置完之后的host可能如下：127.0.0.1       localhost 127.0.0.1    docviewer.com.cn  127.0.0]]></description><category></category></item><item><title><![CDATA[大量的开发文档在线查看啦]]></title><link>https://blog.csdn.net/newweapon/article/details/3189379</link><guid>https://blog.csdn.net/newweapon/article/details/3189379</guid><author>newweapon</author><pubDate>Fri, 31 Oct 2008 02:15:00 +0800</pubDate><description><![CDATA[花了两天时间，在网上找啊找，下啊下，才搞了这么些文档，真tnnd的辛苦啊。稍微标题档了一下，其实资料还不是很多的，呵呵。目前主要收集的是JavaEE相关的，其他的还在收集中...网站的主要目的就是让coder们在工作和学习的过程中不用再到处到各个网站去找文档了。欢迎大家来踩，并收藏使用。http://docviewer.netC/C++Apache log4]]></description><category></category></item><item><title><![CDATA[解决Ubuntu休眠后无声的问题]]></title><link>https://blog.csdn.net/newweapon/article/details/3138920</link><guid>https://blog.csdn.net/newweapon/article/details/3138920</guid><author>newweapon</author><pubDate>Fri, 24 Oct 2008 23:33:00 +0800</pubDate><description><![CDATA[两种方法：1. 每次启动后，手动运行如下命令重载alsa。alsa force-reload2. 创建脚本，每次休眠后启动自动运行。1）: 修改 /etc/default/alsa 中的 "force_unload_modules_before_suspend" 为:force_unload_modules_before_suspend="snd_hda_intel"2）: 创建文件 /usr]]></description><category></category></item><item><title><![CDATA[evince pdf viewer中文乱码]]></title><link>https://blog.csdn.net/newweapon/article/details/3093574</link><guid>https://blog.csdn.net/newweapon/article/details/3093574</guid><author>newweapon</author><pubDate>Sat, 18 Oct 2008 00:11:00 +0800</pubDate><description><![CDATA[Ubuntu8.04 ADM64环境。1. 安装xpdf的中文支持包，evince后台是通过xpdf来进行字串处理的，所以需要安装对应的中文支持。 sudo apt-get install xpdf-chinese-simplified2. 安装poppler sudo apt-get install poppler-utils  可以理解为一个PDF中文显示插件。3. 还需要装pop]]></description><category></category></item><item><title><![CDATA[ubuntu8.04中编译安装php（apache/php使用apt-get安装）]]></title><link>https://blog.csdn.net/newweapon/article/details/3066146</link><guid>https://blog.csdn.net/newweapon/article/details/3066146</guid><author>newweapon</author><pubDate>Sun, 12 Oct 2008 23:16:00 +0800</pubDate><description><![CDATA[本来在ubuntu中安装lamp是非常简单的，直接使用新立得软件管理工具-->Edit-->Mask Package as Task，然后选择lamp server即可。或者使用apt-get install一个一个安装也是挺简单的。但是因为需要使用php中的信号量、系统消息等功能，所以需要手动编译安装php。当然，如果apache、mysql如果都是自己编译安装的话，也比较简单，以为所有的文件都]]></description><category></category></item><item><title><![CDATA[Ubuntu8.0.4 amd64 下飞信make失败的原因]]></title><link>https://blog.csdn.net/newweapon/article/details/3062877</link><guid>https://blog.csdn.net/newweapon/article/details/3062877</guid><author>newweapon</author><pubDate>Sun, 12 Oct 2008 12:59:00 +0800</pubDate><description><![CDATA[除了按照LibFetion官方网站安装说明上所说的要安装如下软件包以外：sudo apt-get install automakesudo apt-get install libc-devsudo apt-get install g++ sudo apt-get install libcurl-dev sudo apt-get install libqt4-dev qt4-dev-tools 还需]]></description><category></category></item><item><title><![CDATA[Ubuntu8.04 Atheros AR242x无线网卡驱动成功安装]]></title><link>https://blog.csdn.net/newweapon/article/details/3052500</link><guid>https://blog.csdn.net/newweapon/article/details/3052500</guid><author>newweapon</author><pubDate>Fri, 10 Oct 2008 19:52:00 +0800</pubDate><description><![CDATA[被无法找到无线网卡的问题困扰了2天了,之前使用ndiswrapper安装过windows下的驱动，但还是无法找到无线网卡。今天在ubuntu.org.cn上发现Atherors AR242x的无线网卡在ubuntu中就是无法显示出来，但给出的解决方案的链接却不发打开。于是，自己goolgle一把，发现http://ubuntuforums.org/showthread.php?t=902860讨论]]></description><category></category></item><item><title><![CDATA[Ubuntu8.04 ACER 宏基4520 休眠后不能启动的问题]]></title><link>https://blog.csdn.net/newweapon/article/details/3037163</link><guid>https://blog.csdn.net/newweapon/article/details/3037163</guid><author>newweapon</author><pubDate>Thu, 09 Oct 2008 00:07:00 +0800</pubDate><description><![CDATA[装了个ubuntu8.04 desktop版，结果不能休眠，每次使用挂机或者休眠后都无法开启机器，每次都能会听到硬盘转动的声音，但是几秒钟后一切归于宁静，再按任何键都没有反应了。在网上找了很多，最后发现可以使用一种叫做uswsusp的软件来代替内核的休眠。参见：http://blog.paulbetts.org/index.php/2007/02/11/fixing-software-suspen]]></description><category></category></item><item><title><![CDATA[求伯君：从未放弃与微软竞争 金山在WPS在]]></title><link>https://blog.csdn.net/newweapon/article/details/3013775</link><guid>https://blog.csdn.net/newweapon/article/details/3013775</guid><author>newweapon</author><pubDate>Fri, 03 Oct 2008 14:50:00 +0800</pubDate><description><![CDATA[　　“前有微软，后有盗版”，中国的软件从业者们，常常用这样一句话来形容自己的尴尬。他们，就在这样的尴尬中艰难前行。金山，恰恰是这支尴尬队伍的“扛旗手”。它代表着一个时代的狂歌与梦想，也代表着一个群体的执着与彷徨。它曾经如此近地触摸辉煌的巅峰，也曾经如此不可思议地跌入失意的低谷。直到今天，依然还有人会提出种种疑问：中国软件业的未来在何方?金山还能不能成为“中国的微软”?]]></description><category></category></item><item><title><![CDATA[Delphi:TMemoryStream类--二进制大对象与数据库的交互]]></title><link>https://blog.csdn.net/newweapon/article/details/2993663</link><guid>https://blog.csdn.net/newweapon/article/details/2993663</guid><author>newweapon</author><pubDate>Sun, 28 Sep 2008 20:14:00 +0800</pubDate><description><![CDATA[Q:如何将一个大的二进制数组保存到数据库，并从数据库再次取回到数组？A:使用TMemoryStream类对象，使用内存流对象的WriteBuffer/ReadBuffer方法和数据库BLOB字段对象的SaveToStream/WriteFromStream方法。以下是我做的一个例子，Form1只有一个按钮，但是要usesDataModule2;DataModule2里包含一个ADOTa]]></description><category></category></item><item><title><![CDATA[Delphi中图片灰色的问题]]></title><link>https://blog.csdn.net/newweapon/article/details/2850684</link><guid>https://blog.csdn.net/newweapon/article/details/2850684</guid><author>newweapon</author><pubDate>Fri, 29 Aug 2008 22:55:00 +0800</pubDate><description><![CDATA[在大量使用图片来做界面的程序中，有时会大量设置某些图片按钮的visibal，会造成某些图片刷新不及时出现灰色区域，这时注意需要使用Repaint来手动刷新。]]></description><category></category></item><item><title><![CDATA[去除虚拟路径中的多余index.php]]></title><link>https://blog.csdn.net/newweapon/article/details/2826106</link><guid>https://blog.csdn.net/newweapon/article/details/2826106</guid><author>newweapon</author><pubDate>Mon, 25 Aug 2008 11:16:00 +0800</pubDate><description><![CDATA[在使用虚拟路径的时候，会发现路径形如http://localhost/vp/index.php/edit/id/1的url，但是如果不使用虚拟路径则是http://localhost/index/edit/id/1。经过调研，发现是.htaccess中的路径重写规则有误。正确的规则应该加上虚拟路径，如下:RewriteRule .* /vp/index.php]]></description><category></category></item><item><title><![CDATA[PHP Zend自定义错误]]></title><link>https://blog.csdn.net/newweapon/article/details/2823478</link><guid>https://blog.csdn.net/newweapon/article/details/2823478</guid><author>newweapon</author><pubDate>Sun, 24 Aug 2008 15:16:00 +0800</pubDate><description><![CDATA[ErrorController.phprequire_once Zend/Controller/Action.php;class ErrorController extends Zend_Controller_Action{    public function init()    {        $this->view->baseUrl = $t]]></description><category></category></item></channel></rss>