<?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>冬泉·北望</title>
	<atom:link href="http://www.fygx.org/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.fygx.org</link>
	<description>Everlook in Winterspring</description>
	<lastBuildDate>Wed, 18 Nov 2009 13:11:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>终于搞定了留言的自定义头像</title>
		<link>http://www.fygx.org/?p=37</link>
		<comments>http://www.fygx.org/?p=37#comments</comments>
		<pubDate>Wed, 18 Nov 2009 13:11:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.fygx.org/?p=37</guid>
		<description><![CDATA[半下午+半晚上的功夫，终于搞定~
wordpress2.8的后台可以启用gravatar了
但总觉得头像丑了点。。
于是自己动手
显示头像的函数在functions.php中：&#60;?php echo get_avatar($comment, 64); ?&#62;
原来想找到get_avatar()的源码，失败
想找找$comment的定义，也失败
于是自己摸索着写了代码：
&#60;?php
     echo &#8220;&#60;img src=&#8217;/wp-content/themes/fusion/images/wow/&#8221;.getNum($comment).&#8221;.jpg&#8217; class=&#8217;avatar&#8217; /&#62;&#8221;;
?&#62;
getNum()是一个hash
function getNum($comment)
{
 $ss = $comment-&#62;comment_author_email;
 $hash = 0;
 $n = strlen($ss);
 for ($i = 0; $i &#60; $n; $i++)
 {
  $hash += ($hash &#60;&#60;2 ) + ord($ss[$i]);
 }
 return ($hash % 81)+1;
}
刚开始一直得负数。。发现是移位太狠了。。数字改小后OK
图片就81张，所以是模81
函数的位置也要看下。。一不小心就会出现reclaim
感觉win下文件查找太麻烦了
还是grep好用啊。。。
]]></description>
			<content:encoded><![CDATA[<p>半下午+半晚上的功夫，终于搞定~<br />
wordpress2.8的后台可以启用gravatar了<br />
但总觉得头像丑了点。。<br />
于是自己动手</p>
<p>显示头像的函数在functions.php中：&lt;?php echo get_avatar($comment, 64); ?&gt;<br />
原来想找到get_avatar()的源码，失败<br />
想找找$comment的定义，也失败<br />
于是自己摸索着写了代码：<br />
&lt;?php<br />
     echo &#8220;&lt;img src=&#8217;/wp-content/themes/fusion/images/wow/&#8221;.getNum($comment).&#8221;.jpg&#8217; class=&#8217;avatar&#8217; /&gt;&#8221;;<br />
?&gt;<br />
getNum()是一个hash<br />
function getNum($comment)<br />
{<br />
 $ss = $comment-&gt;comment_author_email;<br />
 $hash = 0;<br />
 $n = strlen($ss);<br />
 for ($i = 0; $i &lt; $n; $i++)<br />
 {<br />
  $hash += ($hash &lt;&lt;2 ) + ord($ss[$i]);<br />
 }<br />
 return ($hash % 81)+1;<br />
}<br />
刚开始一直得负数。。发现是移位太狠了。。数字改小后OK<br />
图片就81张，所以是模81<br />
函数的位置也要看下。。一不小心就会出现reclaim</p>
<p>感觉win下文件查找太麻烦了<br />
还是grep好用啊。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fygx.org/?feed=rss2&amp;p=37</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>[硬件的胜利?]LED裙子</title>
		<link>http://www.fygx.org/?p=29</link>
		<comments>http://www.fygx.org/?p=29#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:22:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.fygx.org/?p=29</guid>
		<description><![CDATA[cnbeta 上看到的：http://www.cnbeta.com/articles/97794.htm
芝加哥科学和工业中心刚刚展示了一款世界上规模最大的可穿戴式显示器“银河连衣裙”，它采用多达24000个彩色LED构成

 

其实我对于第二幅图中的广告语更感兴趣
what if you could text a hug to your friend
应该是个传感器的衣服之类的吧。。
果然是不怕想不到，只怕做不到
]]></description>
			<content:encoded><![CDATA[<p>cnbeta 上看到的：<a href="http://www.cnbeta.com/articles/97794.htm">http://www.cnbeta.com/articles/97794.htm</a></p>
<p><strong>芝加哥科学和工业中心刚刚展示了一款世界上规模最大的可穿戴式显示器“银河连衣裙”，它采用多达24000个彩色LED构成</strong></p>
<p><strong><img class="alignnone size-full wp-image-32" title="led1" src="http://www.fygx.org/wp-content/uploads/2009/11/08462702083662052.jpg" alt="led1" width="593" height="727" /></strong></p>
<p><strong> </strong></p>
<p><img class="alignnone size-full wp-image-33" title="led2" src="http://www.fygx.org/wp-content/uploads/2009/11/08462911315304753.jpg" alt="led2" width="588" height="740" /></p>
<p>其实我对于第二幅图中的广告语更感兴趣<br />
what if you could <span style="color: #ff0000;">text <span style="color: #000000;">a hug to your friend<br />
应该是个传感器的衣服之类的吧。。</span></span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">果然是不怕想不到，只怕做不到</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fygx.org/?feed=rss2&amp;p=29</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>chm打开后无法显示网页</title>
		<link>http://www.fygx.org/?p=27</link>
		<comments>http://www.fygx.org/?p=27#comments</comments>
		<pubDate>Wed, 11 Nov 2009 06:29:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chm]]></category>
		<category><![CDATA[windows bug]]></category>

		<guid isPermaLink="false">http://www.fygx.org/?p=27</guid>
		<description><![CDATA[下了个chm文档
打开后左边目录正常，右边的页面全是无法显示
解决方法：右键→属性→解除锁定
搞定~
如果觉得每次都这样麻烦
可以通过修改注册表
xx.reg:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]
&#8220;MaxAllowedZone&#8221;=dword:00000003
导入
不过该方法提高了权限，存在安全隐患
趋势安全站点对此漏洞作出了如下描述：
这个安全问题来自于早先公布的微软HTML Help漏洞。HTML Help是Windows平台上的标准帮助系统。作者可以使用它为程序或者多媒体主题或者Web站点创建在线的帮助文件。
由于HTML Help并不会完全校验输入数据的特性，导致这一点可能被利用。一个特殊的CHM文件可以导致帮助系统溢出，这个溢出如果被利用，就可以用于执行恶意代码。
这样的恶意CHM文件可以使用“ms-its”协议，通过IE开启。开启后的CHM文件不再需要用户的参与，就能够自动执行恶意CHM文件和附随的代码。 “ms-its”协议是InfoTech 协议的一部分，该协议能够 为ITSS.DLL或者微软InfoTech Storage System Library所执行。当然，这些恶意的程序无法靠自身传播，仍然需要用户在特定的位置，通过IE和“ms-its”协议访问恶意的CHM文件。
这种情况一旦发生，如果受影响的用户当前登录身份是管理员，远程代码执行的漏洞可以允许恶意用户或者恶意软件，获得受影响系统的完全控制权限。
从而这个恶意用户或者恶意程序得以在此系统上执行代码，并使用完全控制权限安装或者运行程序，并能够察看或者编辑数据。因此，这个漏洞同样也能够被用于复制。
P.S.传说还有因为语言版本问题出现的错误，没碰上~
]]></description>
			<content:encoded><![CDATA[<p>下了个chm文档<br />
打开后左边目录正常，右边的页面全是无法显示</p>
<p>解决方法：右键→属性→解除锁定<br />
搞定~<br />
如果觉得每次都这样麻烦<br />
可以通过修改注册表<br />
xx.reg:<br />
REGEDIT4<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp]<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]<br />
&#8220;MaxAllowedZone&#8221;=dword:00000003<br />
导入<br />
<span style="color: #ff0000;">不过该方法提高了权限，存在安全隐患</span></p>
<p>趋势安全站点对此漏洞作出了如下描述：</p>
<p>这个安全问题来自于早先公布的微软HTML Help漏洞。HTML Help是Windows平台上的标准帮助系统。作者可以使用它为程序或者多媒体主题或者Web站点创建在线的帮助文件。<br />
由于HTML Help并不会完全校验输入数据的特性，导致这一点可能被利用。一个特殊的CHM文件可以导致帮助系统溢出，这个溢出如果被利用，就可以用于执行恶意代码。<br />
这样的恶意CHM文件可以使用“ms-its”协议，通过IE开启。开启后的CHM文件不再需要用户的参与，就能够自动执行恶意CHM文件和附随的代码。 “ms-its”协议是InfoTech 协议的一部分，该协议能够 为ITSS.DLL或者微软InfoTech Storage System Library所执行。当然，这些恶意的程序无法靠自身传播，仍然需要用户在特定的位置，通过IE和“ms-its”协议访问恶意的CHM文件。<br />
这种情况一旦发生，如果受影响的用户当前登录身份是管理员，远程代码执行的漏洞可以允许恶意用户或者恶意软件，获得受影响系统的完全控制权限。<br />
从而这个恶意用户或者恶意程序得以在此系统上执行代码，并使用完全控制权限安装或者运行程序，并能够察看或者编辑数据。因此，这个漏洞同样也能够被用于复制。</p>
<p>P.S.传说还有因为语言版本问题出现的错误，没碰上~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fygx.org/?feed=rss2&amp;p=27</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[反垃圾评论]来算个题吧~</title>
		<link>http://www.fygx.org/?p=23</link>
		<comments>http://www.fygx.org/?p=23#comments</comments>
		<pubDate>Thu, 15 Oct 2009 06:29:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.fygx.org/?p=23</guid>
		<description><![CDATA[自我感觉我这个网站是十分低调的啊，可为什么各种垃圾评论到处充斥呢
每天都收到很多，删得手都累了
今天终于不堪重负，想装个插件。
在下面这个地址可以下载到：
http://sw-guide.de/wordpress/plugins/math-comment-spam-protection/
但装完后有warning,而且两个加数不能显示
仔细看了下，应该是和这个有关
Go to Options / Math Comment Spam, adjust the options and save.
Important: You need to save the options when you use this plugin the first time or if you have updated from a previous version.
但我没发现options这个选项（用的英文版的后台），所以只是在plugins/math comment spam里update files了下
去搜了下，搜到中文的说明，但都是写的option
其实应该是settings/（版本是WordPress 2.8.4）
OK 搞定了
以后可以远离垃圾评论~
]]></description>
			<content:encoded><![CDATA[<p>自我感觉我这个网站是十分低调的啊，可为什么各种垃圾评论到处充斥呢<br />
每天都收到很多，删得手都累了</p>
<p>今天终于不堪重负，想装个插件。<br />
在下面这个地址可以下载到：<br />
<a href="http://sw-guide.de/wordpress/plugins/math-comment-spam-protection/">http://sw-guide.de/wordpress/plugins/math-comment-spam-protection/</a></p>
<p>但装完后有warning,而且两个加数不能显示<br />
仔细看了下，应该是和这个有关<br />
Go to <em>Options / Math Comment Spam</em>, adjust the options and save.<br />
<strong>Important:</strong> You need to save the options when you use this plugin the first time or if you have updated from a previous version.</p>
<p>但我没发现options这个选项（用的英文版的后台），所以只是在plugins/math comment spam里update files了下<br />
去搜了下，搜到中文的说明，但都是写的option<br />
其实应该是settings/（版本是<span>WordPress 2.8.4</span>）</p>
<p>OK 搞定了<br />
以后可以远离垃圾评论~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fygx.org/?feed=rss2&amp;p=23</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>xml文件解析</title>
		<link>http://www.fygx.org/?p=19</link>
		<comments>http://www.fygx.org/?p=19#comments</comments>
		<pubDate>Sun, 20 Sep 2009 02:21:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.fygx.org/?p=19</guid>
		<description><![CDATA[这几天用java做了个xml的解析，用的是dom4j，收获：
1.刚开始用的是Element.elementIterator(),各种遍历，各种递归。
2.后来发现了xpath，很方便的就解决了，而且代码结构看上去也好点：
        /aa/bb:相对路径
        //a/b   :绝对路径
        .              :当前节点
        ..            :父节点
还有一些诸如 *  []的参数
3.利用Element.attributeIterator()和getData()获取参数的值
不足之处是泛型的使用上还是会出现非受检警告，有待进一步解决
]]></description>
			<content:encoded><![CDATA[<p>这几天用java做了个xml的解析，用的是dom4j，收获：<br />
1.刚开始用的是<a href="http://www.dom4j.org/apidocs/org/dom4j/Element.html#elementIterator()" target="_blank">Element.<code>elementIterator()</code></a>,各种遍历，各种递归。<br />
2.后来发现了xpath，很方便的就解决了，而且代码结构看上去也好点：<br />
        /aa/bb:相对路径<br />
        //a/b   :绝对路径<br />
        .              :当前节点<br />
        ..            :父节点<br />
还有一些诸如 *  []的参数<br />
3.利用<a href="http://www.dom4j.org/apidocs/org/dom4j/Element.html#attributeIterator()" target="_blank">Element.attributeIterator()</a>和<a href="http://www.dom4j.org/apidocs/org/dom4j/Attribute.html#getData()" target="_blank">getData()</a>获取参数的值</p>
<p>不足之处是泛型的使用上还是会出现非受检警告，有待进一步解决</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fygx.org/?feed=rss2&amp;p=19</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>home,eventually.</title>
		<link>http://www.fygx.org/?p=3</link>
		<comments>http://www.fygx.org/?p=3#comments</comments>
		<pubDate>Fri, 11 Sep 2009 10:18:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.fygx.org/?p=3</guid>
		<description><![CDATA[买域名，买空间，等待DNS解析，搭建wp&#8230;.
终于也算有了自己的一个空间吧。
在换掉了前几天的临时index.html后，嗯，会慢慢更新的。
]]></description>
			<content:encoded><![CDATA[<p>买域名，买空间，等待DNS解析，搭建wp&#8230;.<br />
终于也算有了自己的一个空间吧。</p>
<p>在换掉了前几天的临时index.html后，嗯，会慢慢更新的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fygx.org/?feed=rss2&amp;p=3</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
