<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>朝闻道的“爱学”日志</title>
		<link>http://www.ax.net.cn/</link>
		<description>天道酬勤，唯爱学可成才</description>
		<copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright>
		<generator>SaBlog-X Version 1.6 Build 20080806</generator>
		<lastBuildDate>Thu, 09 Feb 2012 17:12:10 +0000</lastBuildDate>
		<ttl>30</ttl>
		<item>
			<guid>http://www.ax.net.cn/show-406-1.html</guid>
			<title>阴符经算法</title>
			<author>admin</author>
			<description><![CDATA[<p>现在有 a、b、c、d、e....无穷多的资源；<br />
资源分无穷多的类别；<br />
每个资源有1、2、3、4、5、...无穷多的特点（资源间有些特点相同）；<br />
每个特点有a1、a2、a3...无穷多的投票；<br />
资源特点相同我们视为关联，相同的多我们视为关联性强；<br />
另资源根据特点的投票数任意组合成不同等级的排序；<br />
如何获取不重复的特定特点的最优资源指定周期内的排序，及排序变动规律。<br />
<br />
各资源的隐性和显性特点是不可能直接被发现的；&nbsp; 阴<br />
各资源的特点相符与相近很难区别；&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 符<br />
各资源特点相符关系是不稳定的。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 经</p>
<p>&nbsp;</p><br /><br /><a href="http://www.ax.net.cn/show-406-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-406-1.html</link>
			<category domain="http://www.ax.net.cn/category-1-1.html">人生</category>
			<pubDate>2011-04-21 14:34</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-405-1.html</guid>
			<title>Linux桌面环境：轻型简易有妙招，群英荟萃书英豪</title>
			<author>admin</author>
			<description><![CDATA[<p>&nbsp;&nbsp;&nbsp; 该如何打造轻型简易的Linux桌面环境，充分利用系统资源。其实，不难。我把自己的感悟和使用经验，并结合相关文章，在这给大家介绍下。希望你的Linux战车所向披靡。</p>
<p>&nbsp;</p><br /><br /><a href="http://www.ax.net.cn/show-405-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-405-1.html</link>
			<category domain="http://www.ax.net.cn/category-10-1.html">系统</category>
			<pubDate>2011-04-16 09:31</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-404-1.html</guid>
			<title>freebsd的镜像有问题</title>
			<author>admin</author>
			<description><![CDATA[<p>今天想更新下FreeBsd的ports发现CVSUP始终链接不是，联通电信网通的都试过一样的不行，仔细检查几次发现没写错，再一打开发现到了电信的114，巨恶心。</p>
<p>又试了几个，发现台湾的能用。</p>
<p>台湾的FTP: ftp://freebsd.csie.nctu.edu.tw/pub/ports/i386/&nbsp; 最后的1386根据你自己的版本改变。</p>
<p>台湾的CVSUP</p>
<dl><dd>
<ul>
    <li>
    <p>cvsup.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup3.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup4.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup5.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup6.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup7.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup8.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup9.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup10.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup11.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup12.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup13.tw.FreeBSD.org</p>
    </li>
    <li>
    <p>cvsup14.tw.FreeBSD.org</p>
    </li>
</ul>
</dd></dl><br /><br /><a href="http://www.ax.net.cn/show-404-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-404-1.html</link>
			<category domain="http://www.ax.net.cn/category-10-1.html">系统</category>
			<pubDate>2011-03-03 16:57</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-403-1.html</guid>
			<title>国外的一些torrent种子和电驴的资源站</title>
			<author>admin</author>
			<description><![CDATA[BT、VeryCD倒下了，但是，后继有...种！

许多人在VC资源关闭后

都很迷惘：何处觅种？

正所谓是一个VC倒下了，千千万万个资源又站起来了

下面就是一些依旧健在的资源站

国外:

http://www.torrentdownloads.net/
老牌国外种子站 这里什么都有 禁片在这里不禁
VC没有的电影百分之90这都有
重要的是下载有速度

http://www.bittorrent.am
很大的种子站 和上面的有一比

http://www.bittorrent.am
更新的很快 电影比较全

http://www.filestube.com/
资源搜索引擎 很强大
....<br /><br /><a href="http://www.ax.net.cn/show-403-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-403-1.html</link>
			<category domain="http://www.ax.net.cn/category-14-1.html">生活</category>
			<pubDate>2011-02-10 09:54</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-402-1.html</guid>
			<title>WordPress的永久链接种类详解和设置技巧</title>
			<author>admin</author>
			<description><![CDATA[<h3>WordPress的永久链接种类详解和设置技巧</h3>
<p>　　什么是固定链接，打个比方，如果说域名是一个博客在互联网上的代表一个人的话，那么固定链接地址就是门牌号码。只有通过固定链接，你才能找到找 个人。由此可见，固定链接在博客中的重要性。对于wordpress用户而言，掌握一下一些固定连接的设置参数和技巧，则能够让别人更好的找到你的博客。...</p><br /><br /><a href="http://www.ax.net.cn/show-402-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-402-1.html</link>
			<category domain="http://www.ax.net.cn/category-8-1.html">php</category>
			<pubDate>2011-01-22 16:12</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-401-1.html</guid>
			<title>&quot;15点&quot;游戏</title>
			<author>admin</author>
			<description><![CDATA[<p>乡村庙会开始了。<br />
今年搞了一种叫做&ldquo;15点&rdquo;的游戏。<br />
艺人卡尼先生说：&ldquo;来吧，老乡们。规则很简单，我们只要把硬&nbsp;币轮流放在1到9这个数字上，谁先放都一样。你们放镍币，我放银元，谁首先把加起来为15的三个不同数字盖住，那么桌上的钱就全数归他。&rdquo;<br />
我们先看一下游戏的过程:某妇人先放，她把镍币放在7上，因为将7盖住，他人就不可再放了。其他一些数字也是如此。<br />
卡尼把一块银元放在8上。<br />
妇人第二次把镍币放在2上，这样她以为下一轮再用一枚镍币放在6上就可加为&nbsp;<br />
8，于是她以为就可蠃了。但艺人第二次把银元放&nbsp;在6上，堵住了夫人的路。现在，他只要在下一轮把银元放在1上就可获胜了。<br />
妇人看到这一威胁，便把镍币放在1上。<br />
卡尼先生下一轮笑嘻嘻地把银元放到了4上。妇人看到他下次放到5上便可蠃了，就不得不再次堵住他的路，她把一枚镍币放在5上。<br />
但是卡尼先生却把银元放在3上，因为8+4+3=15，所以他蠃了。可怜的妇人输掉了这4枚镍币。<br />
该镇的镇长先生被这种游戏所迷住，他断定是卡尼先生用了一种秘密的方法，使他比赛时怎么也不会输掉，除非他不想蠃。<br />
镇长彻夜末眠，想研究出这一秘密的方法。<br />
突然他从床上跳了下来，&ldquo;啊哈！我早知道那人有个秘密方法，我现在晓得他是怎么干的了。真的，顾客是没有办法蠃的。&rdquo;<br />
这位镇长找到了什么窍门？你或许能发现怎么同朋友们玩这种&ldquo;15点&rdquo;游戏而不会输一盘。</p><br /><br /><a href="http://www.ax.net.cn/show-401-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-401-1.html</link>
			<category domain="http://www.ax.net.cn/category-14-1.html">生活</category>
			<pubDate>2011-01-13 14:16</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-400-1.html</guid>
			<title>xQuery-使用DOMDocument里的DOMXPath的xpath分析HTML的类-使用方法</title>
			<author>admin</author>
			<description><![CDATA[<p>使用PHP分析HTML，可以直接写正则，也可以用phpquery，都是很好的办法，今天介绍一个用xpath分析HTML的方法。</p>
<p>先来一个演示，假设我们采集的是百度经验的文章列表</p>
<p>首先分析HTML代码</p>
<p><span><img border="0" src="http://hiphotos.baidu.com/tdweb/pic/item/4e49c01b06ec8a9aad6e75da.jpg" class="blogimg" alt="" /></span><br />
可以看到，文章列表是由class=&quot;f14&quot;的a标签包裹起来的，那么我们用FireFox的xpath插件xpath checker来试试看看能不能选择到</p>
<p><span><img border="0" src="http://hiphotos.baidu.com/tdweb/pic/item/87d89e545ccc61503a2935ad.jpg" class="blogimg" alt="" /></span></p>
<p><span>可以看到，我们使用//a[@class=&quot;f14&quot;]这段代码就能够筛选出文章列表，说明我们的xpath语句没有问题，是不是也很简单呢？</span></p>
<p><span>那么，我们怎么才能将xpath应用到PHP中呢，这就需要xQuery的支持了。</span></p>
<p>代码例子：</p>
<p>include(&quot;xQuery.php&quot;);</p>
<p>//引入xQuery<br />
$xq = new xQuery();</p>
<p>//初始化<br />
$xq-&gt;load(&quot;<a href="http://jingyan.baidu.com/list/1">http://jingyan.baidu.com/list/1</a>&quot;);</p>
<p>//用xQuery自带的CURL抓取列表内容<br />
$texts = $xq-&gt;Query('//a[@class=&quot;f14&quot;]')-&gt;textList();<br />
print_r($texts);</p>
<p>//读取所有标题文字<br />
$text = $xq-&gt;Query('//a[@class=&quot;f14&quot;]')-&gt;text();<br />
print_r($text);</p>
<p>//读取第一个匹配的标题文字（通常用于抓取详情结果页）<br />
$attrs = $xq-&gt;Query('//a[@class=&quot;f14&quot;]')-&gt;attrList(&quot;href&quot;);<br />
print_r($attrs);</p>
<p>//读取所有匹配的链接<br />
$attr = $xq-&gt;Query('//a[@class=&quot;f14&quot;]')-&gt;attr(&quot;href&quot;);<br />
print_r($attr);</p>
<p>//读取第一个匹配的链接<br />
$htmls = $xq-&gt;Query('//a[@class=&quot;f14&quot;]')-&gt;htmlList();<br />
print_r($htmls);</p>
<p>//读取所有匹配的HTML代码<br />
$html = $xq-&gt;Query('//a[@class=&quot;f14&quot;]')-&gt;html();<br />
print_r($html);</p>
<p>//读取第一个匹配的HTML代码<br />
这样使用起来是不是很简单呢？直接就返回了需要获取的数组。</p>
<p>有关xpath的更多用法，请参见<a href="http://www.w3school.com.cn/xpath/xpath_syntax.asp">http://www.w3school.com.cn/xpath/xpath_syntax.asp</a></p>
<p>文章首发<a href="http://hi.baidu.com/tdweb">http://hi.baidu.com/tdweb</a> 转载请保留版权。</p>
<p>xQuery下载地址：<a href="http://www.miaosha.com/xQuery.zip">http://www.miaosha.com/xQuery.zip</a></p><br /><br /><a href="http://www.ax.net.cn/show-400-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-400-1.html</link>
			<category domain="http://www.ax.net.cn/category-8-1.html">php</category>
			<pubDate>2011-01-07 16:53</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-399-1.html</guid>
			<title>windows环境下安装pear及使用PhpDocumentor</title>
			<author>admin</author>
			<description><![CDATA[<p>经常会需要用到PhpDocumentor，但是不经常安装pear所以每次要用到的时候都google一次。烦了。</p>
<p>在php程序目录中找到 go-pear.bat运行，</p>
<p>或者点击<a target="_blank" href="http://pear.php.net/go-pear" title="下载go-pear.php">这里</a>访问并复制器内容，命名为go-pear.php同时保存在php.exe所在的目录下，然后在命令行方式下输入：php go-pear.php。</p>
<p>&nbsp;</p>
<p>安装的使用默认直接回车就OK啦。...</p><br /><br /><a href="http://www.ax.net.cn/show-399-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-399-1.html</link>
			<category domain="http://www.ax.net.cn/category-8-1.html">php</category>
			<pubDate>2011-01-04 16:06</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-398-1.html</guid>
			<title>感悟：谈谈编程中的哲学，数学，基础，理论，思考与经验</title>
			<author>admin</author>
			<description><![CDATA[<p>一哥们的感悟，我原文摘抄了。<br />
<br />
&nbsp;&nbsp;&nbsp; 做为一个新人，我是无上尊崇理论的，很遗憾，我却看到不少人对理论和书本嗤之以鼻。<br />
&nbsp;&nbsp;&nbsp; 今天在一个web群里，突然又有人问到，md5(a)=b,那么已知b,那么如何解密出a.针对这个问题，却掀起了轩然大波，这本来是一个很没有讨论价值的东西，遗憾的是，很多人还对此争论个不休，却鲜见明白人。<br />
&nbsp;&nbsp;&nbsp;&nbsp; 首先，MD5不是一个加密函数，这点我还看到很多人在争论，吵个喋喋不休。说是加密函数的理由是他们在做网站中一直用MD5加密的，如果它不是加密函数那是什么。<span style="color: rgb(173, 142, 0);">那么，我用我刷牙的杯子舀水洗菜，那是否可以断然说我的口水杯就是炊具呢？</span>很简单的逻辑，其实，逻辑上的混乱是基础的不扎实。稍微学过信息安全学的人，都知道在信息安全领域，存在各种安全算法，如非对称加密，信息摘要等。这些概念都是很清晰的，都是有定论的，是没有任何争论的价值和必要的。<br />
&nbsp;&nbsp;&nbsp;&nbsp; 其实，询问如何MD5从密文还原到明文的，这就已经不是有没有学过信息安全的事，<span style="color: rgb(1, 58, 221);">而是有没有用哲学和数学的逻辑思维来思考的问题了，一个人的悟性就往往体现在这里</span>。我们都知道，MD5的结果是128位（不是16位，也不是32位，这个问题不该再争论了。），它可以表现为一个长度为16位或者32，甚或24位的16字符串。但是基本的形式是长度为16的字符串。好了，<span style="color: rgb(186, 75, 1);">假如说MD5可以还原的话，我们就可以把它看做一个压缩函数。那恭喜你，你的硬盘可以装下10亿部高清电影了</span>，因为我可以把一个1G多的高清电影MD5&ldquo;加密成&rdquo;只有16个字节的&ldquo;密文&rdquo;，我要看电影，那我只要把这16个字节还原了就可以了。这么看来，这个世界真是美妙。但这是不可能的，所以MD5还原时不可能的，就这么简单的逻辑。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  很快，又有人提出反驳意见，说到04年王小云教授的报告，甚至还截图网上的报告，报告中清晰地写着王小云破解了MD5，以此来反驳我。并以数学不是绝对的 来反驳我的数学分析。也有人提到只要计算机的性能足够，就可以做到破解密码。在这里，首先我们要明白，其一，媒体总喜欢故意夸大说辞来吸引眼球；其二，破 解的定义，什么是破解，什么能叫做破解。我们学习，万万不能涉浅不涉深。至于王小云教授的破解到底是怎么回事，我也不想再细说，这又是一个长篇大论了。可 以了解下强无碰撞和弱无碰撞，有限集的概念。至于破解网站，那都是暴力字典比对。<br />
&nbsp; &nbsp;&nbsp;  其实，大多web程序员都是非科班出身，抑或半路出家，大多没有系统的学习，在基础的算法，数学和数据结构上都是弱项。但是，就针对MD5的是否可还原， 可破解，我只是用了一个很简单数学模型就证明了这是荒谬的。我一直在强调数学。是的，数学。作为一个经济专业的我，尤其看重数学的重要，但也要注意到一些<span style="color: rgb(186, 75, 1);">数学形式主义</span>的存在。<br />
&nbsp; &nbsp; &nbsp; <span style="color: rgb(186, 75, 1);">很多编程中的问题，困惑，我们只要拿出数学和哲学这两个宝贝，就能迎刃而解</span>。对于一些不能理解的基础性问题，多从数学和哲学的角度来理解，我们就清楚这其中的道理了。<br />
&nbsp; &nbsp; &nbsp;&nbsp; 还有一个就是理论和经验。有不少同学都很鄙视书本和理论知识，唯经验至上。这里我要大声地告诉你，你错了。何解?<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 首先，理论的定义应该是：<span style="color: rgb(1, 58, 221);">理论=教科书+课外书（参考书）+工具书（手册）+Google+知识分享</span>。而不是单纯的书本。即使是书本，那也是蕴含了极大的智慧的，尤其是教科书。至少写技术类的教科书的都是专家教授。理论不存在有没有用，只存在你到不到那个境界，用不用得上的问题。<span style="color: rgb(164, 66, 1);">有很多我们自以为debug了半天才解决的问题，自以为得到了经验而沾沾自喜的时候，其实这些所谓的&ldquo;经验&rdquo;大多已经在手册上明晃晃地摆着了，或者早就被人描述过了</span>。 而90%的情况大多如此.理论来自于实践，我们多花时间和精力把理论学好，那就可以少花点&ldquo;经验&rdquo;，也就是工作时间了。当然，我的观点不是否定经验的重要 性，因为一个人很难在不长的时间内学完所有的理论，他需要在工作中学以致用和不断调整，不断比对经验和理论。能重视起理论来，那我的长篇大论的目的就达到 了。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  另外的一点就是多思考。我不是很赞同有人问基础的问题，除非遇到我也解决不了或者很困惑，或者我认为应该讲解一下的时候，一般我都是六个字回答&ldquo;看手册， 找谷歌&rdquo;。网上也有《提问的智慧》一问，也提到了，除非你花了两个小时的努力，还没解决一个问题点的时候，那你就可以提问了。这样的方式虽然看似冷酷和缓 慢，但是在经历一个略微漫长的爬升后，你就会迅速起步，掌握更多的基础和调试技术。而这，就是你的经验了。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 至于说我是做web的，该不该去碰其他东西呢？是不是要专呢？我的回答是，<span style="color: rgb(1, 58, 221);">要先把基础牢固了，基础不是歪门邪道</span>， 不要把比如凡是和PHP无关的全部视作旁门左道。算法，数学，英语是所有程序员的基础，他们不是旁门左道。另外，对于其他知识呢？我的观点是，你可以不 懂，但你至少得理解或者听说过，起码知道有这个东西。web程序员也可以完全花点时间关注下架构，操作系统，数学啊，英语啊，seo啊，营销啊，经济啊这 些东西。不要怕它们害了你。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 其实我也是个菜鸟级的新人，一个半路出家的土八路，花和尚。之所以提到这些，也正是在自己的发展中也有类似的问题和误区。也是自己经常困在代码领域中的困惑。谨在此交流愚见，欢迎切磋。</p><br /><br /><a href="http://www.ax.net.cn/show-398-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-398-1.html</link>
			<category domain="http://www.ax.net.cn/category-2-1.html">价值</category>
			<pubDate>2010-12-31 10:23</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-397-1.html</guid>
			<title>完美程序员的10种品质</title>
			<author>admin</author>
			<description><![CDATA[<p>　谁是完美程序员？著名博客作家Alex Iskold在《<a target="_blank" href="http://www.jobbole.com/entry.php/344">明星软件工程师的10种特质</a>》一文中给出这个问题的答案：<br />
<br />
1. 热爱编程<br />
2. 完成事情<br />
3. 持续重构代码<br />
4. 使用设计模式<br />
5. 编写测试<br />
6. 善用现有代码<br />
7. 专注可用性<br />
8. 编写可维护的代码<br />
9. 能用任何语言编程<br />
10. 知晓基本的计算机科学 <br />
<br />
这是一份合理的清单，但是这份清单侧重于次要特征，这些特征只是更深层次品质所产生的结果，并且这是一份理想化的清单。你认为儿童网站的Flash程序员跟B2B财务交易服务公司的软件工程师品质会相同吗？那么，我们该如何从众多开发者中甄别出一名完美的程序员呢？</p><br /><br /><a href="http://www.ax.net.cn/show-397-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-397-1.html</link>
			<category domain="http://www.ax.net.cn/category-2-1.html">价值</category>
			<pubDate>2010-12-10 17:05</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-396-1.html</guid>
			<title>mysql 字段内替换</title>
			<author>admin</author>
			<description><![CDATA[<p>批量替换&nbsp;<span class="searchword">MySQL</span>&nbsp;指定字段中的字符串是数据库应用中很常见的需求，但是有很多初学者在遇到这种需求时，通常都是用脚本来实现；其实，<span class="searchword">MySQL</span>&nbsp;内置的有批量替换语法，效率也会高很多；想了解具体方法，继续阅读本文吧&nbsp;:)<br />
<br />
批量替换的具体语法是：</p>
<div class="codeText">
<div class="codeHead">SQL代码</div>
<ol start="1" class="dp-sql">
    <li class="alt"><span><span class="keyword">UPDATE</span><span>&nbsp;表名&nbsp;</span><span class="keyword">SET</span><span>&nbsp;&nbsp;</span></span></li>
    <li class=""><span>指定字段&nbsp;=&nbsp;<span class="func">replace</span><span>(指定字段,&nbsp;&rsquo;要替换的字符串&rsquo;,&nbsp;&rsquo;想要的字符串&rsquo;)&nbsp;&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="keyword">WHERE</span><span>&nbsp;条件;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p>&nbsp;</p>
<div class="codeText">
<div class="codeHead">SQL代码</div>
<ol start="1" class="dp-sql">
    <li class="alt"><span><span class="keyword">UPDATE</span><span>&nbsp;iic_archives&nbsp;</span><span class="keyword">SET</span><span>&nbsp;&nbsp;</span></span></li>
    <li class=""><span>my_content=&nbsp;<span class="func">replace</span><span>(my_content,</span><span class="string">'service@chiwest.cn'</span><span>,</span><span class="string">'service@cucas.cn'</span><span>)&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span><span class="keyword">WHERE</span><span>&nbsp;`typeid`=</span><span class="string">'3003'</span><span>&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p>&nbsp;</p><br /><br /><a href="http://www.ax.net.cn/show-396-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-396-1.html</link>
			<category domain="http://www.ax.net.cn/category-5-1.html">程序</category>
			<pubDate>2010-10-19 09:39</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-395-1.html</guid>
			<title>windows下读坏了EXT4</title>
			<author>admin</author>
			<description><![CDATA[<p>开发程序的时候用的是ubuntu，当时并存着XP，用ubuntu的grub启动的。</p>
<p>程序部分开发完了，弄前台调试，由于习惯了win2003于是换了2003，杯具从这里开始。</p>
<p>2003替换了引导部分，ubuntu没法引导了，当时也不急着用ubuntu啦，就想等新版的出来升级的时候一并修复这个问题。</p>
<p>过了几个月。</p>
<p>又要开始新项目了，而且新版本也发布了。</p>
<p>网上找个了超级简单的方法：win下安装grub，我弄了个grub4dos，然后用explore2fs拷贝 /boot/的内容到C区</p>
<p>我一打开explore2fs发现没有一个分区能正常读取的。因为以前出过一次这样的错误，我立马觉得事态不妙。</p>
<p>但我再次用grub启动光盘镜像进liveCD的时候，我的EXT4分区仅有一个BOOT分区还正常。</p>
<p>于是逐个方法测试：PQ，磁盘分区医生 ... 结果我的/home 分区挂了。N多软件&nbsp; 无语</p>
<p>&nbsp;</p><br /><br /><a href="http://www.ax.net.cn/show-395-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-395-1.html</link>
			<category domain="http://www.ax.net.cn/category-10-1.html">系统</category>
			<pubDate>2010-10-11 17:25</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-394-1.html</guid>
			<title>PHPIni解析类INI Parser(2)- PHP修改删除增加配置文件</title>
			<author>admin</author>
			<description><![CDATA[<p>之前发过一个</p>
<h2 class="title"><a href="http://www.ax.net.cn/?action=show&amp;id=209">PHPIni解析类 Beta - PHP修改删除增加配置文件</a></h2>
<p>这一个与上一个不同。</p>
<p>PHPIni解析类INI Parser(2)- PHP修改删除增加配置文件</p>
<p>本类具有以下优点：</p>
<p>1.实现了与win编程下几乎相同的ini文件操作</p>
<p>2.安全性高，与平时使用的php的数组存取方式一样。不会被下载。</p>
<p>3.以前的config.php都得手工手改。本类实现了对ini文件的读取修改删除等操作。</p>
<p>4.可以使用Section或非Section方式。Section就是对每个属性设计一个块。具体可以参看后面的例子。</p>
<p>5.程序注释清晰易懂，你可以任意修改，例子的说明非常详细。</p>
<p>注：这是个测试版本，可能存在BUG，欢迎大家测试寻找错误。有问题可以留言。</p>
<p>下面是例子和程序，最下面有打包下载。</p><br /><br /><a href="http://www.ax.net.cn/show-394-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-394-1.html</link>
			<category domain="http://www.ax.net.cn/category-8-1.html">php</category>
			<pubDate>2010-10-11 09:33</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-393-1.html</guid>
			<title>PHP从URL取出域名的方法及IE6下div高度问题</title>
			<author>admin</author>
			<description><![CDATA[<p>手册提供了parse_url()函数可以返回URL的组成部分，所以，要得到域名就用</p>
<p>$url = &quot;<a href="http://hi.baidu.com/tdweb/ihome/myblog">http://www.ax.net.cn/?action=show&amp;id=392</a>;</p>
<p>$url = parse_url($url);</p>
<p>echo $url['host'];</p>
<p>&nbsp;</p>
<p>即使设定了height和line-height ，DIV的高度还是不能小于20，那么一定是忘记写font-size:0;了</p><br /><br /><a href="http://www.ax.net.cn/show-393-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-393-1.html</link>
			<category domain="http://www.ax.net.cn/category-8-1.html">php</category>
			<pubDate>2010-09-21 17:52</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-392-1.html</guid>
			<title>读取远程文件的类和屏蔽指定IP的类</title>
			<author>admin</author>
			<description><![CDATA[<p>[localfile=1]<br />
读取远程文件.小偷类。<br />
http://u.115.com/file/f13a3b81e2<br />
<br />
[localfile=2]<br />
使用XML格式作数据文档，屏蔽文档内的指定IP地址</p>
<p>http://u.115.com/file/f1dde36ee6</p><br /><br /><a href="http://www.ax.net.cn/show-392-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-392-1.html</link>
			<category domain="http://www.ax.net.cn/category-8-1.html">php</category>
			<pubDate>2010-07-31 09:10</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-391-1.html</guid>
			<title>两个不错的PHP类</title>
			<author>admin</author>
			<description><![CDATA[<p>[localfile=2]</p>
<p>用来生成HTML和JS的树形目录。</p>
<p><a href="http://u.115.com/file/f1bae1cd0">http://u.115.com/file/f1bae1cd0</a></p>
<p>&nbsp;</p>
<p>[localfile=1]</p>
<p>一个轻量的MVC框架。</p>
<p><a href="http://u.115.com/file/f19549b12e">http://u.115.com/file/f19549b12e</a></p><br /><br /><a href="http://www.ax.net.cn/show-391-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-391-1.html</link>
			<category domain="http://www.ax.net.cn/category-8-1.html">php</category>
			<pubDate>2010-07-29 21:54</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-390-1.html</guid>
			<title>忙了几个月了</title>
			<author>admin</author>
			<description><![CDATA[<p>忙了几个月用Thinkphp开发了个带群组活动的分类信息网站。英文的地址就不公布了。</p><br /><br /><a href="http://www.ax.net.cn/show-390-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-390-1.html</link>
			<category domain="http://www.ax.net.cn/category-14-1.html">生活</category>
			<pubDate>2010-07-29 21:35</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-389-1.html</guid>
			<title>simplemodal — jquery弹出窗体插件的一些应用</title>
			<author>admin</author>
			<description><![CDATA[<p>先上官方地址：<a href="http://www.ericmmartin.com/projects/simplemodal/" style="color: rgb(174, 50, 255) ! important; text-decoration: none;">http://www.ericmmartin.com/projects/simplemodal/</a><br />
<br />
<br />
用它之前先引入jquery</p>
<div class="codeText">
<div class="codeHead">XML/HTML代码</div>
<ol start="1" class="dp-xml">
    <li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">script</span><span>&nbsp;</span><span class="attribute">type</span><span>=</span><span class="attribute-value">'text/javascript'</span><span>&nbsp;</span><span class="attribute">src</span><span>=</span><span class="attribute-value">'js/jquery.simplemodal.js'</span><span class="tag">&gt;</span><span class="tag">&lt;/</span><span class="tag-name">script</span><span class="tag">&gt;</span><span>&nbsp; <br />
    </span></span></li>
</ol>
</div>
<div class="codeText">
<div class="codeHead">JavaScript代码</div>
<ol start="1" class="dp-c">
    <li class="alt"><span><span>$(document).ready(</span><span class="keyword">function</span><span>&nbsp;()&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;$(<span class="string">'a.add_post'</span><span>).click(</span><span class="keyword">function</span><span>&nbsp;(e)&nbsp;{&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.preventDefault();&nbsp;&nbsp;</span></li>
    <li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(<span class="string">'#basic-modal-content'</span><span>).modal();</span><span class="comment">//显示这一块</span><span>&nbsp;&nbsp;</span></span></li>
    <li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</span></li>
    <li class=""><span>});&nbsp;&nbsp;</span></li>
</ol>
</div>
<p>API</p>
<p>现在来看下其API   <font color="#4c4c4c"><br />
</font></p>
<p>appendTo  ：将弹出框添加到的父容器，参数为css选择器<font color="#4c4c4c"><br />
</font></p>
<p>opacity ：透明度<font color="#4c4c4c"><br />
</font></p>
<p>overlayId ：遮罩层id<font color="#4c4c4c"><br />
</font></p>
<p>overlayCss ：{Object}定义遮罩层样式<font color="#4c4c4c"><br />
</font></p>
<p>containerId ：弹出窗体容器id<font color="#4c4c4c"><br />
</font></p>
<p>containerCss ：定义容器的样式<font color="#4c4c4c"><br />
</font></p>
<p>dataId ：内容层id<font color="#4c4c4c"><br />
</font></p>
<p>containerCss ：内容层的样式<font color="#4c4c4c"><br />
</font></p>
<p>minHeight ：最小高度<font color="#4c4c4c"><br />
</font></p>
<p>minWidth ：最小宽度<font color="#4c4c4c"><br />
</font></p>
<p>maxHeight ：最大高度<font color="#4c4c4c"><br />
</font></p>
<p>maxWidth ：最大宽度<font color="#4c4c4c"><br />
</font></p>
<p>autoResize：是否自适应大小<font color="#4c4c4c"><br />
</font></p>
<p>zIndex ：弹出层的z-index<font color="#4c4c4c"><br />
</font></p>
<p>close ：是否允许关闭<font color="#4c4c4c"><br />
</font></p>
<p>closeHTML ：自定义关闭按钮<font color="#4c4c4c"><br />
</font></p>
<p>closeClass ：关闭层样式<font color="#4c4c4c"><br />
</font></p>
<p>overlayClose ：点击遮罩层是否关闭弹出窗体<font color="#4c4c4c"><br />
</font></p>
<p>position ：数组 [top, left] 自定义弹出窗体位置<font color="#4c4c4c"><br />
</font></p>
<p>onOpen ：弹出窗体打开时候的回调函数<font color="#4c4c4c"><br />
</font></p>
<p>onShow ：弹出窗体显示时候的回调函数<font color="#4c4c4c"><br />
</font></p>
<p><font color="#4c4c4c">onClose ：弹出窗体关闭时候的回调函数</font></p>
<p>最后 $.modal.close(); 关闭弹出窗体</p>
<p>&nbsp;</p><br /><br /><a href="http://www.ax.net.cn/show-389-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-389-1.html</link>
			<category domain="http://www.ax.net.cn/category-5-1.html">程序</category>
			<pubDate>2010-06-08 15:41</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-388-1.html</guid>
			<title>Godaddy主机优惠码</title>
			<author>admin</author>
			<description><![CDATA[<p><strong>1.Godaddy主机优惠码（通用）<br />
<br />
</strong>优惠券: <strong><font color="blue">cjchost20</font></strong> <br />
购买所有主机产品优惠20%.&nbsp;&nbsp;（独立主机例外）<br />
有效期至: 2008年9月20号<br />
<br />
优惠券: <strong>cjcophst20</strong><br />
购买Unlimited Hosting 方案特殊优惠码&lt;1年方案 $9.99/月,  2-年方案$6.29/月,3年方案$4.79/月&gt;<br />
<br />
优惠券: <strong><font color="blue">cjcshare20</font></strong> <br />
购买所有主机产品优惠20%.&nbsp;&nbsp;（仅虚拟主机适用）<br />
有效期: 无限制...</p><br /><br /><a href="http://www.ax.net.cn/show-388-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-388-1.html</link>
			<category domain="http://www.ax.net.cn/category-5-1.html">程序</category>
			<pubDate>2010-06-07 09:27</pubDate>
		</item>
		<item>
			<guid>http://www.ax.net.cn/show-387-1.html</guid>
			<title>用会zendstudio5.5</title>
			<author>admin</author>
			<description><![CDATA[<p>公司配了个AMD的机器，慢得死。zned for eclipse系列的一打开复杂点的代码就提示内存溢出，反反复复，周而复始，我郁闷。</p>
<p>用会了zendstudio5.5</p>
<p>安装完Zend  studio运行后发现就显示的应用程序页面是空白的，什么都没有，在Zend.com上找了一下，发现有两种解决方法，我用的方法是里边讲的第一种 bin/ZDE中加入一行代码，在1693加入   <br />
options=&quot;$options  -Dawt.toolkit=sun.awt.motif.MToolkit&quot;也就是debugOut前面。其他的方法可以参考这篇文章：   <br />
http://www.zend.com/support/knowledgebase.php?kbid=241</p><br /><br /><a href="http://www.ax.net.cn/show-387-1.html" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://www.ax.net.cn/show-387-1.html</link>
			<category domain="http://www.ax.net.cn/category-10-1.html">系统</category>
			<pubDate>2010-06-05 15:31</pubDate>
		</item>
	</channel>
</rss>

