﻿<?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.uyun.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uyun.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Apr 2010 17:09:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-beta1</generator>
		<item>
		<title>PHP守护进程</title>
		<link>http://www.uyun.com/2010/04/php-deamon/</link>
		<comments>http://www.uyun.com/2010/04/php-deamon/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 04:55:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP&MYSQL]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=905</guid>
		<description><![CDATA[配置守护进程cron-for-windows]]></description>
			<content:encoded><![CDATA[<p>配置守护进程<a href="http://www.uyun.com/wp-content/uploads/2010/04/cron-for-windows.zip">cron-for-windows</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2010/04/php-deamon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>炳胜 天河东店 吃饭不爽记</title>
		<link>http://www.uyun.com/2010/04/ping-sheng-east-tianhe-dinner-accurate-record-shop/</link>
		<comments>http://www.uyun.com/2010/04/ping-sheng-east-tianhe-dinner-accurate-record-shop/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 18:33:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=900</guid>
		<description><![CDATA[4月10号在炳胜吃饭，都是高宗同学，东西都比较好，口感算不错吧，有点咸。 不过后来埋单的时候就出现点问题。结完帐了他们还会跟你说这次喝酒的两个杯子有裂缝，还要你另外加钱的！比较黑就是了。想去吃饭但是又不想丢面子的食客就要小心了。还会有保安拦着你不让你离开的，就因为十来二十块钱出动保安在外面拦着你。 非常行横的…… 作为民族饮食企业我们应该支持，但是他们不会考虑你的知情权，也不会在上杯子之前跟你说杯子是完整的，如果出现破裂就要赔偿，更加重要的是他们不跟你说要陪多少钱。今天是十来块钱，明天可能就是几百块，不给不让你出门，有点恐怖的。而且我们都是斯文人，大学生，喝酒也仅仅是红酒兑雪碧，十个人才喝一瓶750ml的红酒，每个人都没醉，他们就是欺负弱小，已经投诉12315，如有更多动态会更新。 &#8212;&#8211;更新1： 2010年4月11号 下午2点半收到12315的电话，再次提供更为详细的内容跟过程，等待进一步的处理 &#8212;&#8211;更新2： 2010年4月16号 晚上六点多收到天河炳胜负责人的电话，初步协商解决办法，本来我觉得大事花小就算了，谁知道该负责人说了一句“我对事件表示抱歉，对不起”的话，我马上觉得很反感。我要的是官方的表态，个人表态谁都可以表，遂交待她两个方案：其一为在覆盖面超10万的平媒发布道歉公告；其二是赔偿人民币一块钱。她表示会在第二天给我答复。 &#8212;&#8211;更新3： 2010年4月17号 晚上九点多收到广州炳胜总店负责人的电话，姓潘，由于之前的一些情况，我依然提出昨晚两个要求，补充了一句：“也知道你们不会那样子做”。后面潘先生态度非常好，还说要登门拜访之类，我立马拒绝：让你知道我住在那，谁知道会有什么情况。遂告之，这个是一个很小很小的事情，完全是当时工作人员不会操作导致，会保留潘先生电话，日后能够帮忙定个位置即可。对方肯定很高兴。还表示可以宴请之前我们同学一起吃饭，我也婉拒：服务做不好，还要厚着脸皮请人的情况在国内很多多。我当然也不愿意为此事烦恼，不过就我在炳胜经历的事情说明他们真的服务很差。]]></description>
			<content:encoded><![CDATA[<p>4月10号在炳胜吃饭，都是高宗同学，东西都比较好，口感算不错吧，有点咸。<br />
不过后来埋单的时候就出现点问题。结完帐了他们还会跟你说这次喝酒的两个杯子有裂缝，还要你另外加钱的！比较黑就是了。想去吃饭但是又不想丢面子的食客就要小心了。还会有保安拦着你不让你离开的，就因为十来二十块钱出动保安在外面拦着你。<br />
非常行横的……</p>
<p>作为民族饮食企业我们应该支持，但是他们不会考虑你的知情权，也不会在上杯子之前跟你说杯子是完整的，如果出现破裂就要赔偿，更加重要的是他们不跟你说要陪多少钱。今天是十来块钱，明天可能就是几百块，不给不让你出门，有点恐怖的。而且我们都是斯文人，大学生，喝酒也仅仅是红酒兑雪碧，十个人才喝一瓶750ml的红酒，每个人都没醉，他们就是欺负弱小，已经投诉12315，如有更多动态会更新。</p>
<p>&#8212;&#8211;更新1： 2010年4月11号 下午2点半收到12315的电话，再次提供更为详细的内容跟过程，等待进一步的处理</p>
<p>&#8212;&#8211;更新2： 2010年4月16号 晚上六点多收到天河炳胜负责人的电话，初步协商解决办法，本来我觉得大事花小就算了，谁知道该负责人说了一句“我对事件表示抱歉，对不起”的话，我马上觉得很反感。我要的是官方的表态，个人表态谁都可以表，遂交待她两个方案：其一为在覆盖面超10万的平媒发布道歉公告；其二是赔偿人民币一块钱。她表示会在第二天给我答复。</p>
<p>&#8212;&#8211;更新3： 2010年4月17号 晚上九点多收到广州炳胜总店负责人的电话，姓潘，由于之前的一些情况，我依然提出昨晚两个要求，补充了一句：“也知道你们不会那样子做”。后面潘先生态度非常好，还说要登门拜访之类，我立马拒绝：让你知道我住在那，谁知道会有什么情况。遂告之，这个是一个很小很小的事情，完全是当时工作人员不会操作导致，会保留潘先生电话，日后能够帮忙定个位置即可。对方肯定很高兴。还表示可以宴请之前我们同学一起吃饭，我也婉拒：服务做不好，还要厚着脸皮请人的情况在国内很多多。我当然也不愿意为此事烦恼，不过就我在炳胜经历的事情说明他们真的服务很差。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2010/04/ping-sheng-east-tianhe-dinner-accurate-record-shop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>无法忍受discuz的怠慢态度，亲自操刀修正discuz与google chrome的兼容问题</title>
		<link>http://www.uyun.com/2010/03/discuz-intolerable-attitude-of-neglect-and-personally-wield-the-sword-to-amend-discuz-compatibility-issues-with-google-chrome/</link>
		<comments>http://www.uyun.com/2010/03/discuz-intolerable-attitude-of-neglect-and-personally-wield-the-sword-to-amend-discuz-compatibility-issues-with-google-chrome/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 18:13:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAJX&UI]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=895</guid>
		<description><![CDATA[最近喜欢上用chrome。不过，在chrome下面，discuz总有些问题，今晚抽空在discuz的论坛找了下，无果，也发现很多人对此很着急。遂自己动手，丰衣足食。 对于心急的看官，可以先下载修改后的common.js 到include/js目录下覆盖原来文件（建议先备份一下），然后跑到网站后台更新下缓存即可。 做下修改记录吧： 修正function ajaxpost ： 约1169行，针对chrome专门优化了一下。 if(BROWSER.chrome){ var s_00 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.previousSibling.previousSibling.nodeValue; var s_0 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.previousSibling.nodeValue; var s_1 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.nodeValue; s =&#8221;; if(s_0 &#38;&#38; s_0.indexOf(&#8216; =0 &#38;&#38; s_0.indexOf(&#8216; &#60;=2){ if(s_0) s += s_0; if(s_1) s += s_1; }else{ if(s_00) s += s_00; if(s_0) s += s_0; if(s_1) s += s_1; } } 修改function showselect：约1573行。 [...]]]></description>
			<content:encoded><![CDATA[<p>最近喜欢上用chrome。不过，在chrome下面，discuz总有些问题，今晚抽空在discuz的论坛找了下，无果，也发现很多人对此很着急。遂自己动手，丰衣足食。</p>
<p>对于心急的看官，可以先下载修改后的<a href="http://www.uyun.com/wp-content/uploads/2010/03/common.js">common.js</a> 到include/js目录下覆盖原来文件（建议先备份一下），然后跑到网站后台更新下缓存即可。</p>
<p>做下修改记录吧：</p>
<ol>
<li>修正function ajaxpost ： 约1169行，针对chrome专门优化了一下。</li>
<blockquote><p>if(BROWSER.chrome){<br />
var s_00 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.previousSibling.previousSibling.nodeValue;<br />
var s_0 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.previousSibling.nodeValue;<br />
var s_1 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.nodeValue;<br />
s =&#8221;;<br />
if(s_0 &amp;&amp; s_0.indexOf(&#8216;<br />
=0 &amp;&amp; s_0.indexOf(&#8216;<br />
&lt;=2){<br />
if(s_0) s += s_0;<br />
if(s_1) s += s_1;<br />
}else{<br />
if(s_00) s += s_00;<br />
if(s_0) s += s_0;<br />
if(s_1) s += s_1;<br />
}</p>
<p>}</p></blockquote>
<li>修改function showselect：约1573行。 将原来只判断obj.id 的修改为 if(!obj.id  || ( BROWSER.chrome &amp;&amp; obj.id.indexOf(&#8216;calendarexp_&#8217;)===-1) ) {</li>
</ol>
<p>大功告成。 主要的问题是discuz使用自己写的JavaScript，说实在，很烂，兼容性不高，对内影响了discuz在页面交互的灵活性，对外就是discuz的延伸性受到一定限制。如果能够用jQuery，那么就爽咯:)</p>
<p>最后附上修正后的网站案例：</p>
<p><a href="http://www.gdutbbs.com/" target="_blank">http://www.gdutbbs.com/ 工大后院</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2010/03/discuz-intolerable-attitude-of-neglect-and-personally-wield-the-sword-to-amend-discuz-compatibility-issues-with-google-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google 本地host全接触</title>
		<link>http://www.uyun.com/2010/02/google-local-host-keys/</link>
		<comments>http://www.uyun.com/2010/02/google-local-host-keys/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 10:10:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[大杂烩]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=892</guid>
		<description><![CDATA[把下面的内容添加到C:\Windows\System32\drivers\etc\hosts文件中 由于使用的IP未必为最优，所以速度可能变慢。 尽管你写了host，但是由于dns污染技术太牛，不一定保证你100%能够访问 #Search 74.125.39.99    www.google.com 74.125.39.103   www.google.com 74.125.39.104   www.google.com 74.125.39.105   www.l.google.com #Images 74.125.39.99    images.google.com 74.125.39.103   images.google.com 74.125.39.104   images.google.com 74.125.39.105   images.google.com 74.125.39.106   images.google.com 74.125.39.147   images.google.com 74.125.77.99    tbn0.google.com 74.125.77.99    tbn1.google.com 74.125.77.103   tbn2.google.com 74.125.77.104   tbn3.google.com 74.125.77.105   tbn4.google.com 74.125.77.106   tbn5.google.com 74.125.77.147   tbn6.google.com #Shopping 74.125.39.99    base0.googlehosted.com 74.125.39.103   base1.googlehosted.com 74.125.39.104   base2.googlehosted.com 74.125.39.105   base3.googlehosted.com 74.125.39.106   base4.googlehosted.com [...]]]></description>
			<content:encoded><![CDATA[<p>把下面的内容添加到C:\Windows\System32\drivers\etc\hosts文件中<br />
由于使用的IP未必为最优，所以速度可能变慢。</p>
<p>尽管你写了host，但是由于dns污染技术太牛，不一定保证你100%能够访问</p>
<p>#Search<br />
74.125.39.99    <a href="http://www.google.com/">www.google.com</a><br />
74.125.39.103   <a href="http://www.google.com/">www.google.com</a><br />
74.125.39.104   <a href="http://www.google.com/">www.google.com</a><br />
74.125.39.105   <a href="http://www.l.google.com/">www.l.google.com</a></p>
<p>#Images<br />
74.125.39.99    <a href="http://images.google.com/">images.google.com</a><br />
74.125.39.103   <a href="http://images.google.com/">images.google.com</a><br />
74.125.39.104   <a href="http://images.google.com/">images.google.com</a><br />
74.125.39.105   <a href="http://images.google.com/">images.google.com</a><br />
74.125.39.106   <a href="http://images.google.com/">images.google.com</a><br />
74.125.39.147   <a href="http://images.google.com/">images.google.com</a><br />
74.125.77.99    <a href="http://tbn0.google.com/">tbn0.google.com</a><br />
74.125.77.99    <a href="http://tbn1.google.com/">tbn1.google.com</a><br />
74.125.77.103   <a href="http://tbn2.google.com/">tbn2.google.com</a><br />
74.125.77.104   <a href="http://tbn3.google.com/">tbn3.google.com</a><br />
74.125.77.105   <a href="http://tbn4.google.com/">tbn4.google.com</a><br />
74.125.77.106   <a href="http://tbn5.google.com/">tbn5.google.com</a><br />
74.125.77.147   <a href="http://tbn6.google.com/">tbn6.google.com</a></p>
<p>#Shopping<br />
74.125.39.99    <a href="http://base0.googlehosted.com/">base0.googlehosted.com</a><br />
74.125.39.103   <a href="http://base1.googlehosted.com/">base1.googlehosted.com</a><br />
74.125.39.104   <a href="http://base2.googlehosted.com/">base2.googlehosted.com</a><br />
74.125.39.105   <a href="http://base3.googlehosted.com/">base3.googlehosted.com</a><br />
74.125.39.106   <a href="http://base4.googlehosted.com/">base4.googlehosted.com</a><br />
74.125.39.147   <a href="http://base5.googlehosted.com/">base5.googlehosted.com</a></p>
<p>#Books<br />
74.125.39.100   <a href="http://books.google.com/">books.google.com</a><br />
74.125.39.101   <a href="http://books.google.com/">books.google.com</a><br />
74.125.39.102   <a href="http://books.google.com/">books.google.com</a><br />
74.125.39.113   <a href="http://books.google.com/">books.google.com</a><br />
74.125.39.138   <a href="http://books.google.com/">books.google.com</a><br />
74.125.39.139   <a href="http://books.google.com/">books.google.com</a><br />
74.125.39.100   <a href="http://bks0.books.google.com/">bks0.books.google.com</a><br />
74.125.39.100   <a href="http://bks1.books.google.com/">bks1.books.google.com</a><br />
74.125.39.101   <a href="http://bks2.books.google.com/">bks2.books.google.com</a><br />
74.125.39.102   <a href="http://bks3.books.google.com/">bks3.books.google.com</a><br />
74.125.39.113   <a href="http://bks4.books.google.com/">bks4.books.google.com</a><br />
74.125.39.138   <a href="http://bks5.books.google.com/">bks5.books.google.com</a><br />
74.125.39.139   <a href="http://bks6.books.google.com/">bks6.books.google.com</a><br />
74.125.39.113   <a href="http://bks7.books.google.com/">bks7.books.google.com</a><br />
74.125.39.138   <a href="http://bks8.books.google.com/">bks8.books.google.com</a><br />
74.125.39.139   <a href="http://bks9.books.google.com/">bks9.books.google.com</a></p>
<p>#Video<br />
74.125.39.100   <a href="http://video.google.com/">video.google.com</a><br />
74.125.39.101   <a href="http://video.google.com/">video.google.com</a><br />
74.125.39.102   <a href="http://video.google.com/">video.google.com</a><br />
74.125.39.113   <a href="http://video.google.com/">video.google.com</a><br />
74.125.39.138   <a href="http://video.google.com/">video.google.com</a><br />
74.125.39.139   <a href="http://video.google.com/">video.google.com</a><br />
74.125.39.100   <a href="http://0.gvt0.com/">0.gvt0.com</a><br />
74.125.39.101   <a href="http://1.gvt0.com/">1.gvt0.com</a><br />
74.125.39.102   <a href="http://2.gvt0.com/">2.gvt0.com</a><br />
74.125.39.113   <a href="http://3.gvt0.com/">3.gvt0.com</a><br />
74.125.39.138   <a href="http://4.gvt0.com/">4.gvt0.com</a><br />
74.125.39.139   <a href="http://5.gvt0.com/">5.gvt0.com</a></p>
<p>#Mail(POP3/SMTP)<br />
209.85.147.109  <a href="http://pop.gmail.com/">pop.gmail.com</a><br />
209.85.147.109  <a href="http://smtp.gmail.com/">smtp.gmail.com</a></p>
<p>#WebMail<br />
64.233.189.18   <a href="http://mail.google.com/">mail.google.com</a><br />
64.233.189.19   <a href="http://mail.google.com/">mail.google.com</a><br />
64.233.189.83   <a href="http://mail.google.com/">mail.google.com</a><br />
64.233.189.18   <a href="http://www.gmail.com/">www.gmail.com</a><br />
64.233.189.19   <a href="http://www.gmail.com/">www.gmail.com</a><br />
64.233.189.83   <a href="http://www.gmail.com/">www.gmail.com</a><br />
64.233.189.19   <a href="http://googlemail.l.google.com/">googlemail.l.google.com</a></p>
<p>#Docs<br />
64.233.189.101  <a href="http://writely-china.l.google.com/">writely-china.l.google.com</a><br />
64.233.189.101  <a href="http://writely.l.google.com/">writely.l.google.com</a><br />
64.233.189.102  <a href="http://docs.google.com/">docs.google.com</a><br />
64.233.189.101  <a href="http://docs.google.com/">docs.google.com</a><br />
64.233.189.100  <a href="http://docs.google.com/">docs.google.com</a></p>
<p>#Map<br />
64.233.189.104  <a href="http://map.google.com/">map.google.com</a><br />
64.233.189.99   <a href="http://map.google.com/">map.google.com</a><br />
64.233.189.147  <a href="http://map.google.com/">map.google.com</a><br />
64.233.189.104  <a href="http://maps.google.com/">maps.google.com</a><br />
64.233.189.99   <a href="http://maps.google.com/">maps.google.com</a><br />
64.233.189.147  <a href="http://maps.google.com/">maps.google.com</a><br />
64.233.189.99   <a href="http://maps.gstatic.com/">maps.gstatic.com</a><br />
203.208.39.93   <a href="http://khm.google.com/">khm.google.com</a><br />
203.208.39.91   <a href="http://mt0.google.com/">mt0.google.com</a><br />
203.208.39.93   <a href="http://mt1.google.com/">mt1.google.com</a><br />
203.208.39.91   <a href="http://mt2.google.com/">mt2.google.com</a><br />
203.208.39.91   <a href="http://mt.l.google.com/">mt.l.google.com</a><br />
64.233.189.99   <a href="http://maps.l.google.com/">maps.l.google.com</a></p>
<p>#Scholar<br />
64.233.189.99   <a href="http://scholar.google.com/">scholar.google.com</a><br />
64.233.189.104  <a href="http://scholar.google.com/">scholar.google.com</a><br />
64.233.189.147  <a href="http://scholar.google.com/">scholar.google.com</a><br />
64.233.189.104  <a href="http://scholar.l.google.com/">scholar.l.google.com</a></p>
<p>#Group<br />
64.233.189.102  <a href="http://groups.google.com/">groups.google.com</a><br />
64.233.189.100  <a href="http://groups.google.com/">groups.google.com</a><br />
64.233.189.101  <a href="http://groups.google.com/">groups.google.com</a><br />
64.233.189.101  <a href="http://groups.l.google.com/">groups.l.google.com</a></p>
<p>#Picasa<br />
74.125.39.147   <a href="http://picasa.google.com/">picasa.google.com</a><br />
74.125.39.91    <a href="http://photos.google.com/">photos.google.com</a><br />
74.125.39.91    <a href="http://picasaweb.google.com/">picasaweb.google.com</a><br />
74.125.39.93    <a href="http://picasaweb.google.com/">picasaweb.google.com</a><br />
74.125.39.136   <a href="http://picasaweb.google.com/">picasaweb.google.com</a><br />
74.125.39.190   <a href="http://picasaweb.google.com/">picasaweb.google.com</a><br />
74.125.39.91    <a href="http://lh0.ggpht.com/">lh0.ggpht.com</a><br />
74.125.39.93    <a href="http://lh1.ggpht.com/">lh1.ggpht.com</a><br />
74.125.39.136   <a href="http://lh2.ggpht.com/">lh2.ggpht.com</a><br />
74.125.39.190   <a href="http://lh3.ggpht.com/">lh3.ggpht.com</a><br />
74.125.39.91    <a href="http://lh4.ggpht.com/">lh4.ggpht.com</a><br />
74.125.39.93    <a href="http://lh5.ggpht.com/">lh5.ggpht.com</a><br />
74.125.39.136   <a href="http://lh6.ggpht.com/">lh6.ggpht.com</a><br />
74.125.39.190   <a href="http://lh7.ggpht.com/">lh7.ggpht.com</a></p>
<p>#Translate<br />
74.125.39.100   <a href="http://translate.google.com/">translate.google.com</a><br />
74.125.39.101   <a href="http://translate.google.com/">translate.google.com</a><br />
74.125.39.102   <a href="http://translate.google.com/">translate.google.com</a><br />
74.125.39.113   <a href="http://translate.google.com/">translate.google.com</a><br />
74.125.39.138   <a href="http://translate.google.com/">translate.google.com</a><br />
74.125.39.139   <a href="http://translate.google.com/">translate.google.com</a></p>
<p>#Reader<br />
74.125.39.99    <a href="http://reader.google.com/">reader.google.com</a><br />
74.125.39.103   <a href="http://reader.google.com/">reader.google.com</a><br />
74.125.39.104   <a href="http://reader.google.com/">reader.google.com</a><br />
74.125.39.105   <a href="http://reader.google.com/">reader.google.com</a><br />
74.125.39.106   <a href="http://reader.google.com/">reader.google.com</a></p>
<p>#Sites<br />
64.233.161.9    <a href="http://sites.google.com/">sites.google.com</a><br />
74.125.53.9     <a href="http://sites.google.com/">sites.google.com</a> <br />
74.125.39.102   <a href="http://sites.google.com/">sites.google.com</a> <br />
74.125.39.139   <a href="http://sites.google.com/">sites.google.com</a> <br />
74.125.45.9     <a href="http://sites.google.com/">sites.google.com</a> <br />
74.125.39.139   <a href="http://sites.google.com/">sites.google.com</a></p>
<p>#Code<br />
74.125.53.9     <a href="http://code.google.com/">code.google.com</a>   <br />
74.125.45.9     <a href="http://code.google.com/">code.google.com</a>   <br />
64.233.161.9    <a href="http://code.google.com/">code.google.com</a>   <br />
74.125.39.102   <a href="http://code.google.com/">code.google.com</a>   <br />
209.85.137.9    <a href="http://code.google.com/">code.google.com</a>   <br />
74.125.39.139   <a href="http://code.l.google.com/">code.l.google.com</a></p>
<p>#Labs<br />
74.125.39.141   <a href="http://www.googlelabs.com/">www.googlelabs.com</a><br />
74.125.39.141   <a href="http://appspot.l.google.com/">appspot.l.google.com</a><br />
74.125.39.100   <a href="http://labs.google.com/">labs.google.com</a><br />
74.125.39.101   <a href="http://labs.google.com/">labs.google.com</a><br />
74.125.39.102   <a href="http://labs.google.com/">labs.google.com</a><br />
74.125.39.113   <a href="http://labs.google.com/">labs.google.com</a><br />
74.125.39.138   <a href="http://labs.google.com/">labs.google.com</a><br />
74.125.39.139   <a href="http://labs.google.com/">labs.google.com</a></p>
<p>#Knol<br />
74.125.39.100   <a href="http://knol.google.com/">knol.google.com</a><br />
74.125.39.101   <a href="http://knol.google.com/">knol.google.com</a><br />
74.125.39.102   <a href="http://knol.google.com/">knol.google.com</a><br />
74.125.39.113   <a href="http://knol.google.com/">knol.google.com</a><br />
74.125.39.138   <a href="http://knol.google.com/">knol.google.com</a><br />
74.125.39.139   <a href="http://knol.google.com/">knol.google.com</a></p>
<p>#Sketchup<br />
74.125.39.99    <a href="http://sketchup.google.com/">sketchup.google.com</a><br />
74.125.39.103   <a href="http://sketchup.google.com/">sketchup.google.com</a><br />
74.125.39.104   <a href="http://sketchup.google.com/">sketchup.google.com</a><br />
74.125.39.105   <a href="http://sketchup.google.com/">sketchup.google.com</a><br />
74.125.39.106   <a href="http://sketchup.google.com/">sketchup.google.com</a></p>
<p>#Pack<br />
74.125.39.99    <a href="http://pack.google.com/">pack.google.com</a><br />
74.125.39.103   <a href="http://pack.google.com/">pack.google.com</a><br />
74.125.39.104   <a href="http://pack.google.com/">pack.google.com</a><br />
74.125.39.105   <a href="http://pack.google.com/">pack.google.com</a><br />
74.125.39.106   <a href="http://pack.google.com/">pack.google.com</a></p>
<p>#News<br />
74.125.39.99    <a href="http://news.google.com/">news.google.com</a><br />
74.125.39.103   <a href="http://news.google.com/">news.google.com</a><br />
74.125.39.104   <a href="http://news.google.com/">news.google.com</a><br />
74.125.39.105   <a href="http://news.google.com/">news.google.com</a><br />
74.125.39.106   <a href="http://news.google.com/">news.google.com</a><br />
74.125.39.147   <a href="http://news.google.com/">news.google.com</a><br />
74.125.39.99    <a href="http://nt0.ggpht.com/">nt0.ggpht.com</a><br />
74.125.39.103   <a href="http://nt1.ggpht.com/">nt1.ggpht.com</a><br />
74.125.39.104   <a href="http://nt2.ggpht.com/">nt2.ggpht.com</a><br />
74.125.39.105   <a href="http://nt3.ggpht.com/">nt3.ggpht.com</a><br />
74.125.39.106   <a href="http://nt4.ggpht.com/">nt4.ggpht.com</a><br />
74.125.39.147   <a href="http://nt5.ggpht.com/">nt5.ggpht.com</a></p>
<p>#Calendar<br />
74.125.39.100   <a href="http://calendar.google.com/">calendar.google.com</a><br />
74.125.39.101   <a href="http://calendar.google.com/">calendar.google.com</a><br />
74.125.39.102   <a href="http://calendar.google.com/">calendar.google.com</a><br />
74.125.39.113   <a href="http://calendar.google.com/">calendar.google.com</a><br />
74.125.39.138   <a href="http://calendar.google.com/">calendar.google.com</a><br />
74.125.39.139   <a href="http://calendar.google.com/">calendar.google.com</a></p>
<p>#Blogger<br />
74.125.39.191   <a href="http://www.blogger.com/">www.blogger.com</a><br />
74.125.39.191   <a href="http://blogger.l.google.com/">blogger.l.google.com</a><br />
74.125.39.191   <a href="http://blogger.google.com/">blogger.google.com</a></p>
<p>#Orkut<br />
74.125.47.85    <a href="http://www.orkut.com/">www.orkut.com</a><br />
74.125.47.86    <a href="http://www.orkut.com/">www.orkut.com</a><br />
74.125.47.85    <a href="http://orkut.google.com/">orkut.google.com</a><br />
74.125.47.86    <a href="http://orkut.l.google.com/">orkut.l.google.com</a></p>
<p>#Youtube<br />
74.125.39.100   <a href="http://www.youtube.com/">www.youtube.com</a><br />
74.125.39.101   <a href="http://www.youtube.com/">www.youtube.com</a><br />
74.125.39.102   <a href="http://www.youtube.com/">www.youtube.com</a><br />
74.125.39.113   <a href="http://www.youtube.com/">www.youtube.com</a></p>
<p>#Toolbar<br />
74.125.39.100   <a href="http://toolbar.google.com/">toolbar.google.com</a><br />
74.125.39.101   <a href="http://toolbar.google.com/">toolbar.google.com</a><br />
74.125.39.102   <a href="http://toolbar.google.com/">toolbar.google.com</a><br />
74.125.39.113   <a href="http://toolbar.google.com/">toolbar.google.com</a></p>
<p>#Apps<br />
74.125.39.99    <a href="http://apps.google.com/">apps.google.com</a><br />
74.125.39.103   <a href="http://apps.google.com/">apps.google.com</a><br />
74.125.39.104   <a href="http://apps.google.com/">apps.google.com</a><br />
74.125.39.115   <a href="http://apps.google.com/">apps.google.com</a></p>
<p>#Chrome<br />
74.125.39.99    <a href="http://chrome.google.com/">chrome.google.com</a><br />
74.125.39.103   <a href="http://chrome.google.com/">chrome.google.com</a><br />
74.125.39.104   <a href="http://chrome.google.com/">chrome.google.com</a><br />
74.125.39.115   <a href="http://chrome.google.com/">chrome.google.com</a></p>
<p>#Finance<br />
74.125.39.99    <a href="http://finance.google.com/">finance.google.com</a><br />
74.125.39.103   <a href="http://finance.google.com/">finance.google.com</a><br />
74.125.39.104   <a href="http://finance.google.com/">finance.google.com</a><br />
74.125.39.115   <a href="http://finance.google.com/">finance.google.com</a></p>
<p>#Desktop<br />
74.125.39.99    <a href="http://desktop.google.com/">desktop.google.com</a><br />
74.125.39.103   <a href="http://desktop.google.com/">desktop.google.com</a><br />
74.125.39.104   <a href="http://desktop.google.com/">desktop.google.com</a><br />
74.125.39.115   <a href="http://desktop.google.com/">desktop.google.com</a></p>
<p>#Ajax<br />
74.125.53.9     <a href="http://ajax.googleapis.com/">ajax.googleapis.com</a><br />
74.125.45.9     <a href="http://ajax.googleapis.com/">ajax.googleapis.com</a><br />
64.233.161.9    <a href="http://ajax.googleapis.com/">ajax.googleapis.com</a><br />
209.85.137.9    <a href="http://ajax.googleapis.com/">ajax.googleapis.com</a><br />
72.14.203.9     <a href="http://googleapis-ajax.l.google.com/">googleapis-ajax.l.google.com</a></p>
<p>#Modules<br />
74.125.39.132   <a href="http://1.ig.gmodules.com/">1.ig.gmodules.com</a><br />
74.125.39.132   <a href="http://2.ig.gmodules.com/">2.ig.gmodules.com</a><br />
74.125.39.132   <a href="http://3.ig.gmodules.com/">3.ig.gmodules.com</a><br />
74.125.39.132   <a href="http://4.ig.gmodules.com/">4.ig.gmodules.com</a><br />
74.125.39.132   <a href="http://5.ig.gmodules.com/">5.ig.gmodules.com</a><br />
74.125.39.132   <a href="http://6.ig.gmodules.com/">6.ig.gmodules.com</a></p>
<p>#Misc<br />
64.233.189.101  <a href="http://id.google.com/">id.google.com</a><br />
64.233.189.102  <a href="http://id.google.com/">id.google.com</a><br />
64.233.189.100  <a href="http://id.google.com/">id.google.com</a><br />
64.233.189.100  <a href="http://id.l.google.com/">id.l.google.com</a><br />
74.125.39.132   <a href="http://skins.gmodules.com/">skins.gmodules.com</a><br />
74.125.39.132   <a href="http://googlehosted.l.google.com/">googlehosted.l.google.com</a><br />
74.125.39.132   <a href="http://img0.gmodules.com/">img0.gmodules.com</a><br />
74.125.39.99    <a href="http://blogsearch.google.com/">blogsearch.google.com</a><br />
74.125.39.99    <a href="http://www2.l.google.com/">www2.l.google.com</a><br />
74.125.39.99    <a href="http://www.gstatic.com/">www.gstatic.com</a><br />
74.125.39.100   <a href="http://www3.l.google.com/">www3.l.google.com</a><br />
74.125.39.99    <a href="http://buttons.googlesyndication.com/">buttons.googlesyndication.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2010/02/google-local-host-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何在APMser上实现URL改写</title>
		<link>http://www.uyun.com/2010/01/how-to-achieve-url-rewriting-apmser/</link>
		<comments>http://www.uyun.com/2010/01/how-to-achieve-url-rewriting-apmser/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 04:22:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP&MYSQL]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=884</guid>
		<description><![CDATA[        APMserv是张晏同学推出的一个windows环境下的LAMP一体包，有着傻瓜的使用概念，大大节约了测试环境的搭建时间，不过如果你打算应用于生产环境则还需要一定的改造。本文就说下如何去改造下里面的URL改写功能。        首先，APMserver的Apache配置文件是放在Apache/conf目录下的httpd.conf 。这个文件通过一句话跟我们通过软件配置的虚拟主机结合起来。就是这句啦： Include conf/apmserv/vhost.conf 里面的注释明确说到不要手动修改或者将自定义的站点配置放在vhost.conf文件中。 接下来，在Apache/conf/httpd.conf里面找到 NameVirtualHost *:80 在下面加上一句： Include conf/apmserv/DIY.conf 保存Apache/conf/httpd.conf文件。 再来，跑到Apache/conf/apmserv/下面，建一个DIY.conf的文件，里面内容，可以参考Apache/conf/apmserv/vhost.conf 。如： &#60;VirtualHost *:80&#62; ServerName foodem.p.fabriqate.com DocumentRoot “D:/live/FQ/projects/efd” &#60;Directory “D:/live/FQ/projects/efd”&#62; Options All ExecCGI FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx AllowOverride All Order Deny,Allow Allow from all &#60;/Directory&#62; &#60;/VirtualHost&#62; 将这段话，从Apache/conf/apmserv/vhost.conf 剪切 到 Apache/conf/apmserv/DIY.conf ,并将AllowOverride [...]]]></description>
			<content:encoded><![CDATA[<p>        <a href="http://apmserv.s135.com/" target="_blank">APMserv</a>是张晏同学推出的一个windows环境下的LAMP一体包，有着傻瓜的使用概念，大大节约了测试环境的搭建时间，不过如果你打算应用于生产环境则还需要一定的改造。本文就说下如何去改造下里面的URL改写功能。</p>
<p>       首先，APMserver的Apache配置文件是放在Apache/conf目录下的httpd.conf 。这个文件通过一句话跟我们通过软件配置的虚拟主机结合起来。就是这句啦：</p>
<blockquote><p>Include conf/apmserv/vhost.conf</p></blockquote>
<p>里面的注释明确说到不要手动修改或者将自定义的站点配置放在vhost.conf文件中。<br />
接下来，在Apache/conf/httpd.conf里面找到</p>
<blockquote><p>NameVirtualHost *:80</p></blockquote>
<p>在下面加上一句：</p>
<blockquote><p>Include conf/apmserv/DIY.conf</p></blockquote>
<p>保存Apache/conf/httpd.conf文件。</p>
<p>再来，跑到Apache/conf/apmserv/下面，建一个DIY.conf的文件，里面内容，可以参考Apache/conf/apmserv/vhost.conf 。如：</p>
<blockquote><p>&lt;VirtualHost *:80&gt;<br />
ServerName foodem.p.fabriqate.com<br />
DocumentRoot “D:/live/FQ/projects/efd”<br />
&lt;Directory “D:/live/FQ/projects/efd”&gt;<br />
Options All ExecCGI FollowSymLinks IncludesNOEXEC Indexes<br />
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx<br />
<strong>AllowOverride All</strong><br />
Order Deny,Allow<br />
Allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p>将这段话，从Apache/conf/apmserv/vhost.conf <strong><span style="text-decoration: underline;"><span style="color: #ff0000;">剪切</span></span></strong> 到<br />
Apache/conf/apmserv/DIY.conf ,并将<span style="text-decoration: underline;">AllowOverride None</span> 改成<span style="text-decoration: underline;">AllowOverride All</span>也就是在Apache/conf/apmserv/vhost.conf里面，差不多有这样的一段话</p>
<blockquote><p>&lt;VirtualHost *:80&gt;<br />
ServerName foodem.p.fabriqate.com<br />
DocumentRoot &#8220;D:/live/FQ/projects/efd&#8221;<br />
&lt;Directory &#8220;D:/live/FQ/projects/efd&#8221;&gt;<br />
Options All ExecCGI FollowSymLinks IncludesNOEXEC Indexes<br />
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx<br />
<strong>AllowOverride All</strong><br />
Order Deny,Allow<br />
Allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p>分别保存DIY.conf跟vhost.conf ，然后跑APMser的图形界面，重启下apache即可。</p>
<p>然后将你要配置的.htaccess放在对应程序的根目录即可。</p>
<p>下面附上discuz的httaccess配置：</p>
<p><a href="http://www.uyun.com/wp-content/uploads/2010/01/htaccess.zip">htaccess</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2010/01/how-to-achieve-url-rewriting-apmser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ADSL 通过路由器共享，FTP上传缓慢，甚至停顿的解决方法</title>
		<link>http://www.uyun.com/2010/01/adsl-through-a-router-to-share-ftp-upload-is-slow-even-stop-solution/</link>
		<comments>http://www.uyun.com/2010/01/adsl-through-a-router-to-share-ftp-upload-is-slow-even-stop-solution/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 08:28:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[大杂烩]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mtu]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=528</guid>
		<description><![CDATA[最近公司换了一个磊科的NW618 的路由器，这个家伙很不错的，一下子把之前浪费的网速拿了回来。不过出现了一个问题，用FTP上传的时候很慢，甚至是停止好几分钟，才能反应过来，上传是能够上传，但是往往要等几分钟才能传几k的东西。实在看不下去…… 开始排查了，由于之前FTP服务器出了问题，重装了一次，一直都觉得是FTP服务器的原因。结果，在服务器上对着pure-ftpd.conf看了老半天还是没什么结论。接着看FTP连接，不是被动模式的问题，更加奇怪的是我在192.168.1.105 能够正常上传，跑换到192.168.2.108 就不行了。 基本将服务器、FTP软件排除掉。 后来百度下，终于发现了问题的根源：MTU 最大传输单元的设置问题！ 如何测试自己最大的MTU呢？ 其实可以通过ping命令来测试：ping -f -l 1440 www.baidu.com 如果这个时候出现类似“来自 192.168.1.105 的回复: 需要拆分数据包但是设置 DF。”的提示，如图： 就说明你的ADSL设置MTU的时候不能超过1440，如何找最大的MTU？ 呵呵，没有办法，逐步减少试下，ping -f -l 1340 www.baidu.com 提示timeout 或者 反应TTL多少ms都是正确的值，多次测试，取一个比较大的就可以了。 然后到modem设置页面，找到ADSL的页面，填入这个数值即可！ 那么，为什么出现在192.168.2.108 不行而192.168.1.105 可以的情况呢？ 往往是因为192.168.2.1 这个路由器的设置问题，对应调整 MTU，重启路由器后一切正常。]]></description>
			<content:encoded><![CDATA[<p>最近公司换了一个磊科的NW618 的路由器，这个家伙很不错的，一下子把之前浪费的网速拿了回来。不过出现了一个问题，用FTP上传的时候很慢，甚至是停止好几分钟，才能反应过来，上传是能够上传，但是往往要等几分钟才能传几k的东西。实在看不下去……</p>
<p style="text-align: center;"><a href="http://www.uyun.com/wp-content/uploads/2010/01/mut-ftp1.png"><img class="size-full wp-image-529 aligncenter" title="mut-ftp1" src="http://www.uyun.com/wp-content/uploads/2010/01/mut-ftp1.png" alt="" width="197" height="151" /></a></p>
<p>开始排查了，由于之前FTP服务器出了问题，重装了一次，一直都觉得是FTP服务器的原因。结果，在服务器上对着pure-ftpd.conf看了老半天还是没什么结论。接着看FTP连接，不是被动模式的问题，更加奇怪的是我在192.168.1.105 能够正常上传，跑换到192.168.2.108 就不行了。 基本将服务器、FTP软件排除掉。</p>
<p>后来百度下，终于发现了问题的根源：<a href="http://baike.baidu.com/view/26974.htm" target="_blank">MTU</a> 最大传输单元的设置问题！</p>
<p>如何测试自己最大的MTU呢？ 其实可以通过ping命令来测试：<strong>ping -f -l 1440 www.baidu.com </strong>如果这个时候出现类似“来自 192.168.1.105 的回复: 需要拆分数据包但是设置 DF。”的提示，如图：</p>
<p><a href="http://www.uyun.com/wp-content/uploads/2010/01/mut-ftp2.png"><img class="aligncenter size-full wp-image-530" title="mut-ftp2" src="http://www.uyun.com/wp-content/uploads/2010/01/mut-ftp2.png" alt="" width="429" height="63" /></a></p>
<p>就说明你的ADSL设置MTU的时候不能超过1440，如何找最大的MTU？ 呵呵，没有办法，逐步减少试下，<strong>ping -f -l 1340 www.baidu.com </strong>提示timeout 或者 反应TTL多少ms都是正确的值，多次测试，取一个比较大的就可以了。</p>
<p>然后到modem设置页面，找到ADSL的页面，填入这个数值即可！</p>
<p><a href="http://www.uyun.com/wp-content/uploads/2010/01/mut-ftp4.png"><img class="aligncenter size-full wp-image-531" title="mut-ftp4" src="http://www.uyun.com/wp-content/uploads/2010/01/mut-ftp4.png" alt="" width="513" height="111" /></a></p>
<p>那么，为什么出现在192.168.2.108 不行而192.168.1.105 可以的情况呢？ 往往是因为192.168.2.1 这个路由器的设置问题，对应调整 MTU，重启路由器后一切正常。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2010/01/adsl-through-a-router-to-share-ftp-upload-is-slow-even-stop-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 系统查看流量的命令</title>
		<link>http://www.uyun.com/2010/01/linux-system-see-the-order-flow/</link>
		<comments>http://www.uyun.com/2010/01/linux-system-see-the-order-flow/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 07:56:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LINUX]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=520</guid>
		<description><![CDATA[事实上ifconfig 这个命令就提供了在启动网卡以来的总流量，是以B也就是位计算的。 结合watch命令即可看到某个时间间隔内的流量变化，很cool的。完整命令如下： watch -n 1 &#8216;ifconfig &#124;grep byte&#8217; 该命令会自动刷新，流量统计，非常好。可以在 保存到/root/liuliang.sh 。赋权 chmod  x+  /root/liuliang.sh 日后就可以通过 /root/liuliang.sh 来看流量了，爽！ 效果图： RX 就是接收数据，TX就是发送的数据。上面的图就是服务器接收了14.7G的数据包，发送了11.5G]]></description>
			<content:encoded><![CDATA[<p>事实上ifconfig 这个命令就提供了在启动网卡以来的总流量，是以B也就是位计算的。</p>
<p>结合watch命令即可看到某个时间间隔内的流量变化，很cool的。完整命令如下：</p>
<blockquote><p><strong>watch -n 1 &#8216;ifconfig |grep byte&#8217;<br />
</strong></p></blockquote>
<p>该命令会自动刷新，流量统计，非常好。可以在 保存到/root/liuliang.sh 。赋权 chmod  x+  /root/liuliang.sh</p>
<p>日后就可以通过 /root/liuliang.sh 来看流量了，爽！</p>
<p>效果图：</p>
<p><a href="http://www.uyun.com/wp-content/uploads/2010/01/watch-n-1.png"><img class="alignnone size-full wp-image-526" title="watch-n-1" src="http://www.uyun.com/wp-content/uploads/2010/01/watch-n-1.png" alt="" width="643" height="74" /></a></p>
<p>RX 就是接收数据，TX就是发送的数据。上面的图就是服务器接收了14.7G的数据包，发送了11.5G</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2010/01/linux-system-see-the-order-flow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Nginx环境下安装elgg</title>
		<link>http://www.uyun.com/2009/02/install-elgg-on-nginx/</link>
		<comments>http://www.uyun.com/2009/02/install-elgg-on-nginx/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 18:42:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[大杂烩]]></category>
		<category><![CDATA[elgg]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=473</guid>
		<description><![CDATA[elgg作为一套SNS系统已经得到不少fans的爱戴。

但是在Nginx下面安装elgg的时候就往往遇到改写出问题。

下...]]></description>
			<content:encoded><![CDATA[<p>elgg作为一套SNS系统已经得到不少fans的爱戴。</p>
<p>但是在Nginx下面安装elgg的时候就往往遇到改写出问题。</p>
<p>下面附一份完整的改写配置文件，已经正常在elgg1.2 实现改写功能。</p>
<p><a href="http://www.uyun.com/wp-content/uploads/2009/02/tof.rar">elgg在nginx的改写配置</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2009/02/install-elgg-on-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql“海量”数据库的编码转换，成功案例 Latin1到Utf8</title>
		<link>http://www.uyun.com/2009/02/mysql-mass-database-encoding-conversion-success-stories-latin1-to-utf8/</link>
		<comments>http://www.uyun.com/2009/02/mysql-mass-database-encoding-conversion-success-stories-latin1-to-utf8/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 18:51:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP&MYSQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[备份]]></category>
		<category><![CDATA[编码转换]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=465</guid>
		<description><![CDATA[这些应用都不能算是海量了。大小也只是2个G，转换后成功率99.97%，重要的数据都对比了条数，没有缺少，很是...]]></description>
			<content:encoded><![CDATA[<p>这些应用都不能算是海量了。大小也只是2个G，转换后成功率99.97%，重要的数据都对比了条数，没有缺少，很是欣慰。</p>
<p>之前自己写了一个脚本，直接转换Mysql，没有先把数据存下来的那种，每次设定转换一定的数据量，不过只能适合普通的几十M的转换，除非CPU比较高。</p>
<p>源码如下：</p>
<p><a href="http://www.uyun.com/wp-content/uploads/2009/02/db_chasrset.rar">基于PTK的数据库备份方案</a></p>
<p>不过不建议用这个，只能说自己的水平比较有限，没有考虑到编码转换等的种种问题。</p>
<p><strong>经过研究发现：先把数据库备份下来再恢复是最佳的方案。</strong></p>
<p>之前记得有个帝国备份王的。感觉不错，于是就在上面做了一些修改：</p>
<p>原版（开源）：<a href="http://www.uyun.com/wp-content/uploads/2009/02/ebak2008.zip">帝国备份王2008 </a></p>
<p>修改了里面一个文件：class下面的functions.php就可以解决问题了。</p>
<p>下面附上functions.php的代码：</p>
<p><a href="http://www.uyun.com/wp-content/uploads/2009/02/functions.rar">修改帝国备份王2008的函数定义文件</a></p>
<p>这样子，就可以解决一两个G的数据库备份，转码等问题。</p>
<p>过程中，发现帝国备份王比其他的备份工具都要快，原因是因为我选择了按照条数来限制每次导出量，并且自动识别了主键。</p>
<p>在SQL查询是如何体现的呢？</p>
<p>核心代码如下：</p>
<blockquote><p>Select * From yanxue8_visit Where vid &gt;=(<br />
Select vid From yanxue8_visit Order By vid limit 10,1<br />
) limit 10 </p></blockquote>
<p>简单吧，更多的内容可以参照：</p>
<p><a href="http://www.phpobject.net/blog/read.php/119.htm">http://www.phpobject.net/blog/read.php/119.htm</a></p>
<p>此外，也有用命令行来做编码转换的，核心的导出：</p>
<blockquote><p>以原来的字符集为latin1为例，升级成为utf8的字符集。原来的表: old_table (default charset=latin1)，新表：new_table(default charset=utf8)。<br />
第一步：导出旧数据<br />
mysqldump &#8211;default-character-set=latin1 -hlocalhost -uroot -B my_db &#8211;tables old_table &gt; old.sql<br />
第二步：转换编码(类似unix/linux环境下)<br />
iconv -t utf-8 -f gb2312 -c old.sql &gt; new.sql<br />
或者可以去掉 -f 参数，让iconv自动判断原来的字符集<br />
iconv -t utf-8 -c old.sql &gt; new.sql<br />
在这里，假定原来的数据默认是gb2312编码。</p></blockquote>
<p>事实证明这个不明智，超过两个G的SQL文件，转码慢，无法一次打开，无法修改，用命令导入的时候Mysql经常自己掉线，最可怕的是数据丢失严重。我之前也是打算用命令行来转换后院的数据库的，后来发现，不行，丢失数据的情况很严重，然后自己写然后再出现了本文开头的那一幕。</p>
<p>分别学到的PHP跟MySQL语法有：</p>
<ul>
<li>识别当前字段类型 mysql_field_type</li>
<li>识别当前字段属性 mysql_field_flags（一般是判断是否是二进制，如果是就用base64_encode，导入的时候用base64_decode，这个是一个笨办法 :~ ）</li>
<li>在中文的系统，导出的SQL如果正常显示中文就说明已经是gbk的格式（ANSI文件格式），这个时候只要用 &#8220;character_set_client=&#8217;binary&#8217;; ENGINE=MYISAM DEFAULT CHARSET=gbk;&#8221; 就可以了。千万不要与目标编码对齐。</li>
<li>可以看备份王里面关于生成文件编码的处理，确实很优秀，值得学习跟推荐。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2009/02/mysql-mass-database-encoding-conversion-success-stories-latin1-to-utf8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>密码保护：Nginx初步测试反向代理</title>
		<link>http://www.uyun.com/2009/02/preliminary-test-nginx-reverse-proxy/</link>
		<comments>http://www.uyun.com/2009/02/preliminary-test-nginx-reverse-proxy/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 00:41:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[大杂烩]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[反向代理]]></category>

		<guid isPermaLink="false">http://www.uyun.com/?p=460</guid>
		<description><![CDATA[无法提供任何摘要。这是一篇受保护的文章。]]></description>
			<content:encoded><![CDATA[<form action="http://www.uyun.com/wp-pass.php" method="post">
<p>这是一篇受密码保护的文章。您需要提供访问密码：</p>
<p><label for="pwbox-460">密码：<br />
<input name="post_password" id="pwbox-460" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="提交" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.uyun.com/2009/02/preliminary-test-nginx-reverse-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
