<?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://pigz.cn/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://pigz.cn/blog</link>
	<description>多看则清,多听则明,多思则准,多干则成.</description>
	<lastBuildDate>Wed, 18 Nov 2009 06:33:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>买了个新显示器.</title>
		<link>http://pigz.cn/blog/archives/50</link>
		<comments>http://pigz.cn/blog/archives/50#comments</comments>
		<pubDate>Thu, 22 Oct 2009 15:43:12 +0000</pubDate>
		<dc:creator>PigZ</dc:creator>
				<category><![CDATA[琐事杂谈]]></category>

		<guid isPermaLink="false">http://pigz.cn/blog/?p=50</guid>
		<description><![CDATA[好久没更新blog了,越来越没什么可写的了.
上个月入手了一台显示器.Dell UltraSharp 2209WA,22寸宽屏,,价格比普通22寸显示器要贵一些.
买来有一个月了,一直懒于拍照,拍了又懒于上传.

据说是E-IPS面板,虽然不是正统的IPS,但总比TN面板效果好一些.

UltraSharp系列的屏幕都可以旋转,Dell的做工还是很不错的.

我老家唐河县的卫星地图,Google的卫星地图上一直没有信息,小县城么,也没人关注,这是偶然在微软的卫星地图上找到了清晰度很高的城区地图.
]]></description>
		<wfw:commentRss>http://pigz.cn/blog/archives/50/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>使用Apache的Rewrite解决JavaScript的跨域问题</title>
		<link>http://pigz.cn/blog/archives/33</link>
		<comments>http://pigz.cn/blog/archives/33#comments</comments>
		<pubDate>Tue, 07 Apr 2009 15:12:25 +0000</pubDate>
		<dc:creator>PigZ</dc:creator>
				<category><![CDATA[网站技术]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[跨域]]></category>

		<guid isPermaLink="false">http://pigz.cn/blog/?p=33</guid>
		<description><![CDATA[关于各大浏览器对js跨域的限制不再敷述.
网上也有各种各样的解决办法,但都不是很完美.
翻看了一些资料后,尝试了一下,觉得apache的rewrite对跨域问题的解决还算不错.
把相关的重点事项记录一下.
1.首先要开启apache的rewrite和proxy模块.
修改apache配置文件,去掉以下三行前边的#号
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
重启apache.
PS:如果未开启proxy模块,会导致rewrite规则中的P参数无效;如果rewrite模块未开启-.-那就&#8230;没的说了.
2.编写rewrite规则
RewriteEngine On
RewriteBase /
RewriteRule ^jump.*  http://www.zzjuhe.net/ [L,R,P,NC] 
需要注意的是RewriteRule 后边的重写规则参数
L不解释了
R是强制外部重定向,因为是要跨域定向到外部域,所以必须有R
P是强制使用代理转发,这个也是必须的.
NC是不区分大小写,这个倒是可选,但是为了增加兼容性,最好还是加上.
这里特别要注意的是P参数,如果没有P参数,ie会弹出&#8221;该页正在访问其控制范围外的信息,这有些危险.是否继续?&#8221;的对话框.点&#8221;是&#8221;的话还是可以继续的;firefox会得到&#8221;302 Found&#8221;的错误提示.
做完以上工作后,就基本OK了,现在可以尝试用ajax请求http://pigz.cn/jump/,会发现得到的数据是apache已经重新定向了的http://www.zzjuhe.net/的数据.
]]></description>
		<wfw:commentRss>http://pigz.cn/blog/archives/33/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>博客重新开张</title>
		<link>http://pigz.cn/blog/archives/1</link>
		<comments>http://pigz.cn/blog/archives/1#comments</comments>
		<pubDate>Wed, 18 Feb 2009 16:20:41 +0000</pubDate>
		<dc:creator>PigZ</dc:creator>
				<category><![CDATA[琐事杂谈]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[友情链接]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=1</guid>
		<description><![CDATA[搞了三年多的PHP,但blog还一直是asp的,这次blog空间到期,把blog放到了自己服务器上,顺便就把程序也换成了wordpress.抽了点时间简单搞了一个blog皮肤,细节再慢慢修改.不准备把旧blog的数据转移过来了,新的程序,一切从新开始.
 
改了两天的wp模板,对这个程序基本熟悉了,wp很人性化,但效率太低.所以考虑自己做一些其他的功能.
相册:之前拍了不少的照片,而这两年由于工作太忙,已经很少碰相机了.打算做个相册功能,以后继续拍照.
音乐:去年曾经用AtcionScript结合JavaScript写了一个音乐播放器,用php+xml做管理后台,有时间的话再完善一下,收集一些自己喜欢的音乐.
聚合:一直用鲜果的阅读器,觉得越来越不好用了,自己写过采集程序,修改一下用来做RSS聚合应该也不错.
 
友情链接只保留了和我的旧BLOG有链接的朋友的链接,如果想交换友情链接,就在这里留言吧.
新的blog链接依然是http://www.pigz.cn/blog
]]></description>
		<wfw:commentRss>http://pigz.cn/blog/archives/1/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
