<?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>藤长志-做优质的技术分享博客-pcyoyo.com</title>
	<atom:link href="http://pcyoyo.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://pcyoyo.com</link>
	<description>业精于勤荒于嬉 行成于思毁于随(藤长志，成长志，跟大家一起见证成长)</description>
	<lastBuildDate>Fri, 18 May 2012 23:14:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Windows Live Writer功能项与WP主题iNove 1.4.6样式的一点小冲突</title>
		<link>http://pcyoyo.com/?p=674</link>
		<comments>http://pcyoyo.com/?p=674#comments</comments>
		<pubDate>Fri, 18 May 2012 23:13:52 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[iNove]]></category>
		<category><![CDATA[Windows Live Writer]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[冲突]]></category>
		<category><![CDATA[样式]]></category>

		<guid isPermaLink="false">http://pcyoyo.com/?p=674</guid>
		<description><![CDATA[&#160;&#160;&#160; 刚才写代码，粘贴代码时候出现，一些问题，每一行代码按WP主题的“引用”显示，而不是用Code Snippet插件定义的样式显示。效果如下图： &#160;&#160;&#160; &#160;&#160;&#160; 找了下原因，点一下”Embed Styles”再插入就可以了 &#160;&#160;&#160; &#160;&#160;&#160; 具体原因，稍后再上，先洗脸吃饭去咯！]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160; 刚才写代码，粘贴代码时候出现，一些问题，每一行代码按WP主题的“引用”显示，而不是用Code Snippet插件定义的样式显示。效果如下图：</p>
<p>&#160;&#160;&#160; <a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/11.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="1" border="0" alt="1" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/1_thumb1.png" width="534" height="117" /></a></p>
<p> <!--CRLF-->
<p>&#160;&#160;&#160; 找了下原因，点一下”Embed Styles”再插入就可以了</p>
<p>&#160;&#160;&#160; <a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="2" border="0" alt="2" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/2_thumb.png" width="535" height="28" /></a></p>
<p>&#160;&#160;&#160; 具体原因，稍后再上，先洗脸吃饭去咯！<img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="眨眼" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/wlEmoticon-winkingsmile.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=674</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>分享:获取用户真实IP的函数</title>
		<link>http://pcyoyo.com/?p=668</link>
		<comments>http://pcyoyo.com/?p=668#comments</comments>
		<pubDate>Fri, 18 May 2012 22:58:00 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[函数]]></category>

		<guid isPermaLink="false">http://pcyoyo.com/?p=668</guid>
		<description><![CDATA[&#160;&#160;&#160; 想要实现一个根据用户ip每天每用户只显示一次内容的功能。 &#160;&#160;&#160; 首先我们需要检测用户的ip，代码如下： 1: &#60;?php 2: /* 3: * 4: * @Author: Pcyoyo 5: * @Site: http://pcyoyo.com 6: * @description 获取访客ip 7: * @Param none 8: * 9: * @return string $ip 10: * 11: */ 12: function getIp() { 13: if(@$_SERVER[&#34;HTTP_CLIENT_IP&#34;]) { 14: $ip = $_SERVER[&#34;HTTP_CLIENT_IP&#34;]; 15: } elseif (@$_SERVER[&#34;HTTP_X_FORWARDED_FOR&#34;]) { 16: $ip [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160; 想要实现一个根据用户ip每天每用户只显示一次内容的功能。</p>
<p>&#160;&#160;&#160; 首先我们需要检测用户的ip，代码如下：</p>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> &lt;?php</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span> <span style="color: #008000">/*</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span> <span style="color: #008000">*</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span> <span style="color: #008000">*    @Author:        Pcyoyo</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum5">   5:</span> <span style="color: #008000">*    @Site:          http://pcyoyo.com</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum6">   6:</span> <span style="color: #008000">*    @description    获取访客ip</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum7">   7:</span> <span style="color: #008000">*    @Param          none</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum8">   8:</span> <span style="color: #008000">*</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum9">   9:</span> <span style="color: #008000">*    @return         string $ip</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum10">  10:</span> <span style="color: #008000">*</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum11">  11:</span> <span style="color: #008000">*/</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum12">  12:</span> <span style="color: #0000ff">function</span> getIp() {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum13">  13:</span>     <span style="color: #0000ff">if</span>(@$_SERVER[<span style="color: #006080">&quot;HTTP_CLIENT_IP&quot;</span>]) {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum14">  14:</span>         $ip = $_SERVER[<span style="color: #006080">&quot;HTTP_CLIENT_IP&quot;</span>];</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum15">  15:</span>     } <span style="color: #0000ff">elseif</span> (@$_SERVER[<span style="color: #006080">&quot;HTTP_X_FORWARDED_FOR&quot;</span>]) {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum16">  16:</span>         $ip = $_SERVER[<span style="color: #006080">&quot;HTTP_X_FORWARDED_FOR&quot;</span>];</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum17">  17:</span>     } <span style="color: #0000ff">else</span> {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum18">  18:</span>         $ip = $_SERVER[<span style="color: #006080">&quot;REMOTE_ADDR&quot;</span>];</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum19">  19:</span>     }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum20">  20:</span>  </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum21">  21:</span>     <span style="color: #0000ff">return</span> $ip;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum22">  22:</span>  </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum23">  23:</span> }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum24">  24:</span>  </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum25">  25:</span> $ip = getIp();</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum26">  26:</span> <span style="color: #0000ff">echo</span> $ip;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum27">  27:</span>  </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum28">  28:</span> ?&gt;</pre>
<p><!--CRLF--></div>
</div>
<p>&#160;&#160;&#160; 稍后上解释和后续内容，洗脸吃饭去！<img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="微笑" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/wlEmoticon-smile.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=668</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WLW代码高亮插件&#8212;&#8212;Code Snippet的安装与配置</title>
		<link>http://pcyoyo.com/?p=666</link>
		<comments>http://pcyoyo.com/?p=666#comments</comments>
		<pubDate>Thu, 17 May 2012 21:35:15 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Code Snippet]]></category>
		<category><![CDATA[Windows Live Writer]]></category>
		<category><![CDATA[代码高亮]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[编辑器]]></category>

		<guid isPermaLink="false">http://www.pcyoyo.com/?p=666</guid>
		<description><![CDATA[&#160; 自己WordPress博客当前版本是3.2.1，使用的是系统推荐的代码高亮插件，但是使用的时候感觉不太方面：需要自己到在编辑器的“HTML模式”中添加到pre标签里，而平时编辑文字时候更倾向于使用“可视化模式”，在两者之间切换一些非普通文字信息会出现点问题，况且系统推荐的代码高亮插件显示效果也有点一般，所以想找一个类似于oschina，cnblog那种显示效果，又好用的插件，找到了一款WLW(Windows Live Writer)的插件：Code Snippet。下面就说一下它的安装与配置吧！ 1.安装Code Snippet并写测试代码Hello World&#160; &#160;&#160; 首先，从WLW插件中心下载Code Snippet插件(http://plugins.live.com/writer/detail/code-snippet-plugin-for-windows-live-writer)(CodeSnippetSetup.msi)，安装！ &#160;&#160;&#160; 安装完后，点击插件图标，你会发现一个问题，缺少7.0.3300.0版本的Microsoft.mshtml.dll文件，错误信息如下图提示： &#160;&#160;&#160; &#160;&#160;&#160; 解决办法是，下载7.0.3300.0版本的Microsoft.mshtml.dll文件，然后把它放到Windows Live Writer的安装目录下，重启WLW，再启动插件，OK了吧！ &#160;&#160;&#160; 下面写一段测试代码PHP的Hello World。 &#160;&#160;&#160; 如下图，在插件里选择语言，并写下代码，点击插入： &#160;&#160;&#160; 1: &#60;?php 2: echo &#34;Hello World!&#34;; 3: ?&#62; &#160;&#160;&#160; 可能跟博主使用的主题样式有关，行号那显示“引用”功能的“引号”图标，不过不影响大体显示啦，还是OK的！ 2.简述Code Snippet配置 &#160;&#160;&#160; a.可供选择显示的代码： &#160;&#160;&#160;&#160;&#160; 如下图，插件可供选择代码的种类为：AutoIt、C/C++、C#、ColdFusion、Cascading Style Sheet、HTML、Java、JavaScript、MSH、PHP、Regular Expression、TSQL、Visual Basic。 &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; b.代码效果显示选项 &#160;&#160;&#160;&#160;&#160; 如下图，用户可以选择Line Numbers(是否选择行号)、Alternate Lines(是否区分交替行)、Embed Styles(这个博主还不太清楚，好像是是否对代码使用内嵌的样式)、Use Container(是否把代码显示在一个容器中，即一个框中) &#160;&#160;&#160;&#160;&#160;&#160; (暂时先介绍这么多吧，稍后更新这篇文章！)]]></description>
			<content:encoded><![CDATA[<blockquote><p>&#160; <font size="2" face="宋体">自己WordPress博客当前版本是3.2.1，使用的是系统推荐的代码高亮插件，但是使用的时候感觉不太方面：需要自己到在编辑器的“HTML模式”中添加到pre标签里，而平时编辑文字时候更倾向于使用“可视化模式”，在两者之间切换一些非普通文字信息会出现点问题，况且系统推荐的代码高亮插件显示效果也有点一般，所以想找一个类似于oschina，cnblog那种显示效果，又好用的插件，找到了一款WLW(Windows Live Writer)的插件：Code Snippet。下面就说一下它的安装与配置吧！</font></p>
</blockquote>
<p><font size="2"></font></p>
<p><strong>1.安装Code Snippet并写测试代码Hello World</strong>&#160;</p>
<p>&#160;&#160; 首先，从WLW插件中心下载Code Snippet插件(<a title="http://plugins.live.com/writer/detail/code-snippet-plugin-for-windows-live-writer" href="http://plugins.live.com/writer/detail/code-snippet-plugin-for-windows-live-writer)(CodeSnippetSetup.msi">http://plugins.live.com/writer/detail/code-snippet-plugin-for-windows-live-writer)(CodeSnippetSetup.msi</a>)，安装！</p>
<p>&#160;&#160;&#160; 安装完后，点击插件图标，你会发现一个问题，缺少7.0.3300.0版本的Microsoft.mshtml.dll文件，错误信息如下图提示：</p>
<p>&#160;&#160;&#160; <a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/error.jpg"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="error" border="0" alt="error" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/error_thumb.jpg" width="244" height="162" /></a></p>
<p>&#160;&#160;&#160; 解决办法是，下载7.0.3300.0版本的Microsoft.mshtml.dll文件，然后把它放到Windows Live Writer的安装目录下，重启WLW，再启动插件，OK了吧！</p>
<p>&#160;&#160;&#160; 下面写一段测试代码PHP的Hello World。</p>
<p>&#160;&#160;&#160; 如下图，在插件里选择语言，并写下代码，点击插入：</p>
<p>&#160;&#160;&#160; <a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/Code-Snippet1.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Code Snippet1" border="0" alt="Code Snippet1" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/Code-Snippet1_thumb.png" width="552" height="381" /></a></p>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> &lt;?php</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span>     <span style="color: #0000ff">echo</span> <span style="color: #006080">&quot;Hello World!&quot;</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span> ?&gt;</pre>
<p><!--CRLF--></div>
</div>
<p>&#160;&#160;&#160; 可能跟博主使用的主题样式有关，行号那显示“引用”功能的“引号”图标，不过不影响大体显示啦，还是OK的！</p>
<p>2.简述Code Snippet配置</p>
<p>&#160;&#160;&#160; a.可供选择显示的代码：</p>
<p>&#160;&#160;&#160;&#160;&#160; 如下图，插件可供选择代码的种类为：AutoIt、C/C++、C#、ColdFusion、Cascading Style Sheet、HTML、Java、JavaScript、MSH、PHP、Regular Expression、TSQL、Visual Basic。</p>
<p>&#160;&#160;&#160;&#160;&#160; <a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/language.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="language" border="0" alt="language" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/language_thumb.png" width="125" height="244" /></a></p>
<p>&#160;&#160;&#160; b.代码效果显示选项</p>
<p>&#160;&#160;&#160;&#160;&#160; 如下图，用户可以选择Line Numbers(是否选择行号)、Alternate Lines(是否区分交替行)、Embed Styles(这个博主还不太清楚，好像是是否对代码使用内嵌的样式)、Use Container(是否把代码显示在一个容器中，即一个框中)</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; <a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/Code-Snippet2.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Code Snippet2" border="0" alt="Code Snippet2" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/Code-Snippet2_thumb.png" width="544" height="374" /></a></p>
<p>(暂时先介绍这么多吧，稍后更新这篇文章！)</p>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=666</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用CSS怎样实现整体居中显示的效果</title>
		<link>http://pcyoyo.com/?p=652</link>
		<comments>http://pcyoyo.com/?p=652#comments</comments>
		<pubDate>Thu, 17 May 2012 00:28:29 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[整体居中]]></category>

		<guid isPermaLink="false">http://www.pcyoyo.com/?p=652</guid>
		<description><![CDATA[问题：有的网站是贴左边的;有的网站是满屏幕的;有的是居中的，两边有余白，这样的效果用CSS怎么显示呢？ &#160;&#160;&#160;&#160; 解答： css中主要是2个属性的样式，一个是body的，一个是div的。body中设置margin:0px auto;text-align:center； div也设置margin:0px auto； 在CSS中想让网页居中显示或者说给两边留空边。这种各种浏览器兼容性很让人头疼。经过艰苦地探索，找到一些解决兼容性问题的办法： IE：上级元素:text-align:center; Opera:本级元素:margin:auto; Firefox:本级元素:margin:auto; （元素是指div）]]></description>
			<content:encoded><![CDATA[<blockquote><p>问题：有的网站是贴左边的;有的网站是满屏幕的;有的是居中的，两边有余白，这样的效果用CSS怎么显示呢？</p>
</blockquote>
<p>&#160;&#160;&#160;&#160; 解答：</p>
<ol>
<li>css中主要是2个属性的样式，一个是body的，一个是div的。body中设置margin:0px auto;text-align:center；     <br />div也设置margin:0px auto；</li>
<li>在CSS中想让网页居中显示或者说给两边留空边。这种各种浏览器兼容性很让人头疼。经过艰苦地探索，找到一些解决兼容性问题的办法：     <br />IE：上级元素:text-align:center;      <br />Opera:本级元素:margin:auto;      <br />Firefox:本级元素:margin:auto;      <br />（元素是指div）</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=652</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>安装了Windows Live Writer</title>
		<link>http://pcyoyo.com/?p=650</link>
		<comments>http://pcyoyo.com/?p=650#comments</comments>
		<pubDate>Wed, 16 May 2012 22:28:28 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Windows Live Writer]]></category>

		<guid isPermaLink="false">http://www.pcyoyo.com/?p=650</guid>
		<description><![CDATA[  感觉Windows Live Writer还不错，挺好用的！(起码对于原生的编辑器来说)，配图如下：]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: small;">  感觉Windows Live Writer还不错，挺好用的！(起码对于原生的编辑器来说)，配图如下：</span></p>
<p><a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="1" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/1_thumb.png" alt="1" width="454" height="369" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=650</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress中检测PHP版本函数</title>
		<link>http://pcyoyo.com/?p=647</link>
		<comments>http://pcyoyo.com/?p=647#comments</comments>
		<pubDate>Wed, 16 May 2012 22:07:35 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[函数]]></category>
		<category><![CDATA[版本]]></category>

		<guid isPermaLink="false">http://www.pcyoyo.com/?p=647</guid>
		<description><![CDATA[/** * Check for the required PHP version, and the MySQL extension or a database drop-in. * * Dies if requirements are not met. * * This function must be able to work without a complete environment set up. In wp-load.php, for * example, WP_CONTENT_DIR is defined and version.php is included before this function is [...]]]></description>
			<content:encoded><![CDATA[<div class="cnblogs_Highlighter">
<pre class="brush:php;collapse:false;;gutter:true;">/**
 * Check for the required PHP version, and the MySQL extension or a database drop-in.
 *
 * Dies if requirements are not met.
 *
 * This function must be able to work without a complete environment set up. In wp-load.php, for
 * example, WP_CONTENT_DIR is defined and version.php is included before this function is called.
 *
 * @access private
 * @since 3.0.0
 */
/*
*
* @NotedBy:	Pcyoyo
* @Note:
		@descriptions			检查被请求的PHP版本,和Mysql扩展或a database drop-in

								如果请求没有被满足,则脚本停止

								这个函数必须在没有完整被配置的环境下有能力工作.例如,
								在wp-load.php文件中,在这个函数被调用之前,WP_CONTENT_DIR被定义并且version.php文件被包含

		@access(访问)			私有
		@since(自从)			3.0.0
*
*/
function wp_check_php_mysql_versions() {
	// we can probably extend this function to check if wp_die() exists then use translated strings, and then use it in install.php etc.
	//我们可能扩展这个函数来检查是否 wp_die() 存在,之后使用被翻译的字符串,然后在 install.php等文件里使用它

	global $required_php_version, $wp_version;
	$php_version = phpversion();
	if ( version_compare( $required_php_version, $php_version, '&gt;' ) )
		die( sprintf( /*WP_I18N_OLD_PHP*/'您的服务器现在运行的 PHP 版本为 %1$s，但 WordPress %2$s 要求的最低版本为 %3$s。'/*/WP_I18N_OLD_PHP*/, $php_version, $wp_version, $required_php_version ) );

	if ( !extension_loaded( 'mysql' ) &amp;&amp; !file_exists( WP_CONTENT_DIR . '/db.php' ) )
		die( /*WP_I18N_OLD_MYSQL*/'您的 PHP 似乎没有安装运行 WordPress 所必需的 MySQL 扩展。'/*/WP_I18N_OLD_MYSQL*/ );
}</pre>
</div>
<p>在wp-load.php文件中用到，定义是在/wp-includes/load.php文件中。</p>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=647</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>出于安全性考虑,web目录下不应该存在多余的程序</title>
		<link>http://pcyoyo.com/?p=644</link>
		<comments>http://pcyoyo.com/?p=644#comments</comments>
		<pubDate>Tue, 15 May 2012 22:01:59 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.pcyoyo.com/?p=644</guid>
		<description><![CDATA[由我刚开始学习php的时候，discuz, ofstart 这些程序所有的程序都是存在放在web的根目录下。如ofstart和phpwind的require目录，存放了大量的库文件。 虽然都会在这些程序前增加一些判断和限制。但除了库文件，还有临时文件，模板文件等这些文件本来就不应该被人直接通过 web 访问到的。无论从安全性还是代码管理方面，把不能访问的文件存放到web目录下。 为什么会有这样的问题？回到以前，大部分的网站还是放到虚拟主机上，而且ftp的根目录直接就是web的根目录。为了适应这样的情况。像 phpbb, vb, discuz, ofstar的代码也只能把库文件直接存放到同一级的目录下。 但 现在还有必要吗？现在的服务器价格已经比以前便宜很多，基本上一个站长就是一台服务器，差一点也是vps,另外就算虚拟主机也不会是ftp根目录与web 根目录是同一个。一般都是ftp比web高一级目录。所以我们没有必要再把所有程序放到web目录下，而是把需要在web上用到的文件才放到web目录 下。 原文来自：jb51]]></description>
			<content:encoded><![CDATA[<p>由我刚开始学习php的时候，discuz, ofstart 这些程序所有的程序都是存在放在web的根目录下。如ofstart和phpwind的require目录，存放了大量的库文件。</p>
<p>虽然都会在这些程序前增加一些判断和限制。但除了库文件，还有临时文件，模板文件等这些文件本来就不应该被人直接通过 web 访问到的。无论从安全性还是代码管理方面，把不能访问的文件存放到web目录下。</p>
<p>为什么会有这样的问题？回到以前，大部分的网站还是放到虚拟主机上，而且ftp的根目录直接就是web的根目录。为了适应这样的情况。像 phpbb, vb, discuz, ofstar的代码也只能把库文件直接存放到同一级的目录下。</p>
<p>但 现在还有必要吗？现在的服务器价格已经比以前便宜很多，基本上一个站长就是一台服务器，差一点也是vps,另外就算虚拟主机也不会是ftp根目录与web 根目录是同一个。一般都是ftp比web高一级目录。所以我们没有必要再把所有程序放到web目录下，而是把需要在web上用到的文件才放到web目录 下。</p>
<blockquote><p>原文来自：jb51</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=644</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPUnZip &#8211; 一个PHP在线解压ZIP工具</title>
		<link>http://pcyoyo.com/?p=640</link>
		<comments>http://pcyoyo.com/?p=640#comments</comments>
		<pubDate>Tue, 15 May 2012 04:37:08 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.pcyoyo.com/?p=640</guid>
		<description><![CDATA[如果要把一个包含很多文件的文件夹上传到服务器，这个文件夹可能是一个CMS，如果直接上传，不论是使用PHP还是FTP，上传的时间都是相当长 的，因为这个文件夹包含的文件数量很大，尽管文件可能很小，但每个文件都要建立一次连接，这加起来的时间是很可怕的。通常，我们使用的方法是现把这个文件 夹压缩成zip或者tar.gz文件，上传到服务器，然后在服务器上解压，这样可以节省很多时间。 很多服务器提供了解压ZIP文件的功能，比如cPanel和Direct Admin面板都有这个功能。但如果你的服务器刚好没有这个功能怎么办呢？这时候可以尝试使用PHP工具。 PHPUnZip这款PHP工具体积很小，只有一个文件，它可以在服务器上方便地解压ZIP文件。 使用方法 1.下载并解压得到unzip.php文件，用文本编辑器打开（不能使用Windows自带的记事本，推荐Notepad2），在这个文件的头部找到 &#60;?php //设定密码 $password = “www.eincy.com”; ?&#62; 修改密码后保存。 2.上传unzip.php到服务器并运行它。 3.选择zip文件，你可以选择在unzip.php同目录下的zip文件，或者上传一个zip文件。 4.输入你准备解压这个zip文件的目录，如果留空，则表示在当前目录下解压。 5.输入第一步中设定的密码，然后点击解压。 文件下载地址：unzip.zip 转载请以链接形式注明本文原始链接：http://www.eincy.com/unzip]]></description>
			<content:encoded><![CDATA[<p>如果要把一个包含很多文件的文件夹上传到服务器，这个文件夹可能是一个CMS，如果直接上传，不论是使用PHP还是FTP，上传的时间都是相当长 的，因为这个文件夹包含的文件数量很大，尽管文件可能很小，但每个文件都要建立一次连接，这加起来的时间是很可怕的。通常，我们使用的方法是现把这个文件 夹压缩成zip或者tar.gz文件，上传到服务器，然后在服务器上解压，这样可以节省很多时间。</p>
<p>很多服务器提供了解压ZIP文件的功能，比如cPanel和Direct Admin面板都有这个功能。但如果你的服务器刚好没有这个功能怎么办呢？这时候可以尝试使用PHP工具。</p>
<p>PHPUnZip这款PHP工具体积很小，只有一个文件，它可以在服务器上方便地解压ZIP文件。</p>
<p><strong>使用方法</strong></p>
<p>1.下载并解压得到unzip.php文件，用文本编辑器打开（不能使用Windows自带的记事本，推荐Notepad2），在这个文件的头部找到</p>
<blockquote><p>&lt;?php</p>
<p>//设定密码</p>
<p>$password = “www.eincy.com”;</p>
<p>?&gt;</p></blockquote>
<p>修改密码后保存。</p>
<p>2.上传unzip.php到服务器并运行它。</p>
<p><a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/unzip-300x85.jpg"><img class="aligncenter size-full wp-image-641" title="unzip-300x85" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/unzip-300x85.jpg" alt="" width="300" height="85" /></a></p>
<p>3.选择zip文件，你可以选择在unzip.php同目录下的zip文件，或者上传一个zip文件。</p>
<p>4.输入你准备解压这个zip文件的目录，如果留空，则表示在当前目录下解压。</p>
<p>5.输入第一步中设定的密码，然后点击解压。</p>
<p>文件下载地址：<a href="http://www.eincy.com/wp-content/plugins/download-monitor/download.php?id=53" target="_blank">unzip.zip</a></p>
<p>转载请以链接形式注明本文原始链接：<a href="http://www.eincy.com/unzip" target="_blank">http://www.eincy.com/unzip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=640</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Deepin 编年史(信息图)</title>
		<link>http://pcyoyo.com/?p=636</link>
		<comments>http://pcyoyo.com/?p=636#comments</comments>
		<pubDate>Mon, 14 May 2012 22:43:47 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Deepin]]></category>
		<category><![CDATA[编年史]]></category>

		<guid isPermaLink="false">http://www.pcyoyo.com/?p=636</guid>
		<description><![CDATA[Linux Deepin 项目地址: http://www.linuxdeepin.com]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/xDjRD.jpg"><img class="aligncenter size-full wp-image-637" title="xDjRD" src="http://localhostblog-wordpress.stor.sinaapp.com/uploads/2012/05/xDjRD.jpg" alt="" width="480" height="3893" /></a></p>
<blockquote><p>Linux Deepin 项目地址: <a href="http://www.linuxdeepin.com/" target="_blank">http://www.linuxdeepin.com</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=636</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmer&#8217;s love</title>
		<link>http://pcyoyo.com/?p=626</link>
		<comments>http://pcyoyo.com/?p=626#comments</comments>
		<pubDate>Sun, 13 May 2012 22:33:31 +0000</pubDate>
		<dc:creator>localtest</dc:creator>
				<category><![CDATA[程序猿趣味]]></category>

		<guid isPermaLink="false">http://www.pcyoyo.com/?p=626</guid>
		<description><![CDATA[每个人都有自己爱和表达爱的方式，大家来看看程序猿的爱吧！ 我能把整个世界都抽象成对象 但是没办法把你变成我的对象 想让你成为私有常量，外部函数无法访问你 又想让你变成全局常量，在整个生命周期随时随地都可以调用你 因为世界上没有这样的常量 所以我的无法定义你 我可以重载甚至覆盖任何一种方法 但是我却不能重载对你的思念 也许命中注定了 你在我的世界里永远的烙上了静态的属性 而我不慎调用了爱你这个方法 当我义无返顾的把自己作为参数传进这个方法时 我才发现“爱你”方法里面执行是一个死循环 她不停的返回对你的思念存入我心里的堆栈 在这无尽的无穷无尽循环中 我的内存资源已经快消耗殆尽 我却依然不停的向系统申请空间换取我对你的想念 终于我受不了爱你的煎熬 调用了“表白”这个Public方法 将字符串 “如果你爱你，我将用尽一生去爱你，你爱我吗？” 传递给你 我却捕获一个异常－－－内存溢出,我爱的人不爱我 为了解决这个异常 我偷偷修改”表白”的方法 加上了异常处理finally块 并且将返回值设为真 心想这样万无一失了吧 鼓起勇气再一次调用“表白” 我却依然捕获到同样的异常 仔细调试代码原来在方法中有一段这样的代码 “如果没房没车则执行System.exit()” 欲哭无泪，身心破碎…… &#160; 下面这段是仿《死了都要爱》 死了都要try！ 不抓住异常不痛快！ BUG多深，只有这样，才不用重来！ 死了都要try！ 不catch够我不痛快！ 程序毁灭throw还在！ 把每天,当作是程序来更改,一改一天,都累到泪水掉下来, 不理会,老板是看好或看坏,只要有工资,来还贷. 改,不是需求做的太坏,那是客户想要什么,自己都不明白. 忍受现在,自己一生还不完的贷,很多模块,不能完成,我还得改. 死了都要try！ 不catch够我不痛快！ 程序毁灭throw还在！ &#160; &#160; 原文来自：互联网]]></description>
			<content:encoded><![CDATA[<blockquote><p>每个人都有自己爱和表达爱的方式，大家来看看程序猿的爱吧！</p></blockquote>
<p>我能把整个世界都抽象成对象<br />
但是没办法把你变成我的对象<br />
想让你成为私有常量，外部函数无法访问你<br />
又想让你变成全局常量，在整个生命周期随时随地都可以调用你<br />
因为世界上没有这样的常量<br />
所以我的无法定义你<br />
我可以重载甚至覆盖任何一种方法<br />
但是我却不能重载对你的思念<br />
也许命中注定了 你在我的世界里永远的烙上了静态的属性<br />
而我不慎调用了爱你这个方法<br />
当我义无返顾的把自己作为参数传进这个方法时<br />
我才发现“爱你”方法里面执行是一个死循环<br />
她不停的返回对你的思念存入我心里的堆栈<br />
在这无尽的无穷无尽循环中<br />
我的内存资源已经快消耗殆尽<br />
我却依然不停的向系统申请空间换取我对你的想念<br />
终于我受不了爱你的煎熬<br />
调用了“表白”这个Public方法<br />
将字符串 “如果你爱你，我将用尽一生去爱你，你爱我吗？” 传递给你<br />
我却捕获一个异常－－－内存溢出,我爱的人不爱我<br />
为了解决这个异常<br />
我偷偷修改”表白”的方法<br />
加上了异常处理finally块<br />
并且将返回值设为真<br />
心想这样万无一失了吧<br />
鼓起勇气再一次调用“表白”<br />
我却依然捕获到同样的异常<br />
仔细调试代码原来在方法中有一段这样的代码<br />
“如果没房没车则执行System.exit()”<br />
欲哭无泪，身心破碎……</p>
<p>&nbsp;</p>
<blockquote><p>下面这段是仿《死了都要爱》</p></blockquote>
<p><span style="color: #808080;">死了都要try！</span><br />
<span style="color: #808080;"> 不抓住异常不痛快！</span><br />
<span style="color: #808080;"> BUG多深，只有这样，才不用重来！</span><br />
<span style="color: #808080;"> 死了都要try！</span><br />
<span style="color: #808080;"> 不catch够我不痛快！</span><br />
<span style="color: #808080;"> 程序毁灭throw还在！</span><br />
<span style="color: #808080;"> 把每天,当作是程序来更改,一改一天,都累到泪水掉下来, 不理会,老板是看好或看坏,只要有工资,来还贷.</span><br />
<span style="color: #808080;"> 改,不是需求做的太坏,那是客户想要什么,自己都不明白.</span><br />
<span style="color: #808080;"> 忍受现在,自己一生还不完的贷,很多模块,不能完成,我还得改.</span><br />
<span style="color: #808080;"> 死了都要try！</span><br />
<span style="color: #808080;"> 不catch够我不痛快！</span><br />
<span style="color: #808080;"> 程序毁灭throw还在！</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<blockquote><p>原文来自：互联网</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://pcyoyo.com/?feed=rss2&#038;p=626</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

