<?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>Hezll 博客</title>
	<atom:link href="http://www.shotki.com/hezll/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shotki.com/hezll</link>
	<description>Make a difference以最简单的方式解决您的问题！</description>
	<lastBuildDate>Wed, 05 Oct 2011 13:51:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>超爽战争机器等Xlive游戏无法存盘 离线建档Home等F1键无效完美解决方案（win7 64位测试有效）</title>
		<link>http://www.shotki.com/hezll/2011/10/xliveofflinesave/</link>
		<comments>http://www.shotki.com/hezll/2011/10/xliveofflinesave/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 13:05:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[游戏 xlive 战争机器]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/2011/10/%e6%88%98%e4%ba%89%e6%9c%ba%e5%99%a8%e7%ad%89xlive%e6%b8%b8%e6%88%8f%e6%97%a0%e6%b3%95%e5%bb%ba%e6%a1%a3home%e7%ad%89f1%e9%94%ae%e6%97%a0%e6%95%88%e5%ae%8c%e7%be%8e%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</guid>
		<description><![CDATA[原文地址：http://bbs.3dmgame.com/thread-2000234-1-1.html
本人下载的3.2版本。测试环境win7 64位机器。原先状况是进入游戏之后按f1，home均无反应。将下载后的文件解压缩到system32以及对应目录后，xlive建档出现了。


战争机器详细步骤：
1.http://www.verycd.com/entries/1361/ 《战争机器》(Gears of War)破解版[ISO]  下载此版本，然后用虚拟光驱deamon等工具直接安装（此游戏只能装在c盘）
2.下载破解补丁 可从本地下载，也可以百度一下razor1.19
3.一定要注意路径：如图：可以在c盘搜索

此位置即游戏的exe文件所在，其他游戏也是同样，将破解文件放到此位置。
此时运行游戏，发现无法存档，home和f1也没有任何作用，不要着急
一开始不是有xboxlive的4个小文件么，除了解压到system32，也要放到此目录下
如此重新打开游戏（由于历史破解问题，此游戏在玩的时候需要把时间设置到2007年），f1之后发现可以建档了
这时候可以选择创建一个档案，跟所有live游戏类似，在一堆废话的因为同意文件最下面隐藏着蓝色小字create local profile.点他就可以了
这样你就有本地档案，当然，也注意下，游戏的提示，离线档案，和在线档案（需要正版product key）不能同时使用，否则会丢档。
好了，如果大家在游戏累了之后可以上射客影视看看电影。建议使用百度影音。
]]></description>
			<content:encoded><![CDATA[<p>原文地址：http://bbs.3dmgame.com/thread-2000234-1-1.html</p>
<p>本人<a href="http://www.shotki.com/hezll/wp-content/uploads/2011/10/XLIVE3.2.3.0.7z">下载的3.2版本</a>。测试环境win7 64位机器。原先状况是进入游戏之后按f1，home均无反应。将下载后的文件解压缩到system32以及对应目录后，xlive建档出现了。</p>
<p><img class="alignnone" title="战争机器超爽火爆" src="http://i-7.vcimg.com/resize/6429b619479a81f152e25d1771f5eaa3115502(600x)/thumb.jpg" alt="" width="600" height="846" /></p>
<p><span id="more-333"></span></p>
<p>战争机器详细步骤：</p>
<p>1.<a href="http://www.verycd.com/entries/1361/">http://www.verycd.com/entries/1361/</a> <a style="word-wrap: break-word; word-break: break-all; cursor: pointer; color: #000000; text-decoration: underline;" href="http://www.verycd.com/topics/208152/" target="_blank">《战争机器》(Gears of War)破解版[ISO]</a> <img style="word-wrap: break-word; word-break: break-all; border-style: initial; border-color: initial;" title="普通资源" src="http://v4.vcimg.com/images/group/elite_off.gif" alt="普通资源" align="absmiddle" /> 下载此版本，然后用虚拟光驱deamon等工具直接安装（此游戏只能装在c盘）</p>
<p>2.下载破解补丁 可从<a href="http://www.shotki.com/hezll/wp-content/uploads/2011/10/gowup12cd.rar">本地下载</a>，也可以百度一下razor1.19</p>
<p>3.一定要注意路径：如图：可以在c盘搜索<br />
<img class="aligncenter size-medium wp-image-338" title="20071005213741" src="http://www.shotki.com/hezll/wp-content/uploads/2011/10/20071005213741-300x174.png" alt="20071005213741" width="300" height="174" /><br />
此位置即游戏的exe文件所在，其他游戏也是同样，将破解文件放到此位置。<!--more--></p>
<p>此时运行游戏，发现无法存档，home和f1也没有任何作用，不要着急</p>
<p>一开始不是有xboxlive的4个小文件么，除了解压到system32，也要放到此目录下</p>
<p>如此重新打开游戏（由于历史破解问题，此游戏在玩的时候需要把时间设置到2007年），f1之后发现可以建档了</p>
<p>这时候可以选择创建一个档案，跟所有live游戏类似，在一堆废话的因为同意文件最下面隐藏着蓝色小字create local profile.点他就可以了</p>
<p>这样你就有本地档案，当然，也注意下，游戏的提示，离线档案，和在线档案（需要正版product key）不能同时使用，否则会丢档。</p>
<p>好了，如果大家在游戏累了之后可以上<a href="http://www.shotki.com" target="_blank">射客影视</a>看看电影。建议使用百度影音。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/10/xliveofflinesave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>服务器迁移到linode 东京了，飞速啊</title>
		<link>http://www.shotki.com/hezll/2011/09/%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%81%e7%a7%bb%e5%88%b0linode-%e4%b8%9c%e4%ba%ac%e4%ba%86%ef%bc%8c%e9%a3%9e%e9%80%9f%e5%95%8a/</link>
		<comments>http://www.shotki.com/hezll/2011/09/%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%81%e7%a7%bb%e5%88%b0linode-%e4%b8%9c%e4%ba%ac%e4%ba%86%ef%bc%8c%e9%a3%9e%e9%80%9f%e5%95%8a/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 05:27:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/2011/09/%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%81%e7%a7%bb%e5%88%b0linode-%e4%b8%9c%e4%ba%ac%e4%ba%86%ef%bc%8c%e9%a3%9e%e9%80%9f%e5%95%8a/</guid>
		<description><![CDATA[service mysql start
cd /var/
tar zcfP /var/back1.tar.gz /var/www  在注意P参数 http://xiaobin.net/200911/tar-removing-leading-slash-from-member-name/
ln -s /var/back1.tar.gz /var/www/back1.tar.gz
rm /var/www/back1.tar.gz
/usr/local/mysql/bin/mysqldump -u root -p &#8211;all-databases &#8211;add-drop-table>(全路径)sql2010719.txt
数据库备份
ps aux &#124;grep php-cgi &#124;wc
 -l
查看fcgi 进程
/usr/local/php/sbin/php-fpm reload 重置apc
/usr/local/nginx/&#8230;./nginx   开nginx
/usr&#8230;&#8230;./nginx -s reload  重载配置文件
/usr&#8230;&#8230;./nginx -s stop 停止nginx 
]]></description>
			<content:encoded><![CDATA[<p>service mysql start<br />
cd /var/<br />
tar zcfP /var/back1.tar.gz /var/www  在注意P参数 http://xiaobin.net/200911/tar-removing-leading-slash-from-member-name/<br />
ln -s /var/back1.tar.gz /var/www/back1.tar.gz<br />
rm /var/www/back1.tar.gz<br />
/usr/local/mysql/bin/mysqldump -u root -p &#8211;all-databases &#8211;add-drop-table>(全路径)sql2010719.txt<br />
数据库备份</p>
<p>ps aux |grep php-cgi |wc<br />
 -l<br />
查看fcgi 进程<br />
/usr/local/php/sbin/php-fpm reload 重置apc<br />
/usr/local/nginx/&#8230;./nginx   开nginx<br />
/usr&#8230;&#8230;./nginx -s reload  重载配置文件<br />
/usr&#8230;&#8230;./nginx -s stop 停止nginx </p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/09/%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%81%e7%a7%bb%e5%88%b0linode-%e4%b8%9c%e4%ba%ac%e4%ba%86%ef%bc%8c%e9%a3%9e%e9%80%9f%e5%95%8a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>极简单加减法验证码加Akismet过滤基本垃圾评论</title>
		<link>http://www.shotki.com/hezll/2011/08/simplecodeakismet/</link>
		<comments>http://www.shotki.com/hezll/2011/08/simplecodeakismet/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 10:03:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[垃圾评论]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/2011/08/%e6%9e%81%e7%ae%80%e5%8d%95%e5%8a%a0%e5%87%8f%e6%b3%95%e9%aa%8c%e8%af%81%e7%a0%81%e5%8a%a0akismet%e8%bf%87%e6%bb%a4%e5%9f%ba%e6%9c%ac%e5%9e%83%e5%9c%be%e8%af%84%e8%ae%ba/</guid>
		<description><![CDATA[http://www.mangguo.org/add-comment-verification-code-for-wordpress/
验证，加减法.注意此文中有个bug  empty($sub)应该改为!isset($sub).否则如果sub为0就坏啦！
Akismet过滤垃圾评论，非常好用。
另外Aksmet
]]></description>
			<content:encoded><![CDATA[<p>http://www.mangguo.org/add-comment-verification-code-for-wordpress/<br />
验证，加减法.注意此文中有个bug  empty($sub)应该改为!isset($sub).否则如果sub为0就坏啦！<br />
Akismet过滤垃圾评论，非常好用。<br />
另外Aksmet</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/08/simplecodeakismet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于js同域名跨域操作iframe 并且模拟搜狐微博滚动输出</title>
		<link>http://www.shotki.com/hezll/2011/07/iframehideslidedownheredoc/</link>
		<comments>http://www.shotki.com/hezll/2011/07/iframehideslidedownheredoc/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 08:37:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/?p=323</guid>
		<description><![CDATA[如果主域名为xxx.shotki.com而iframe中域名为bbb.shotki.com
那么跨域问题解决方案为同时加上document.domain=&#8221;xxx.com&#8221;;
注意：如果页面上有别的ajax请求，也需要设置:
header&#40;&#34;Content-type: text/html; charset=utf-8&#34;&#41;;

echo '&#60;script type=&#34;text/javascript&#34;&#62;
document.domain=&#34;sohu.com&#34;;
&#60;/script&#62;';
参考：http://social.microsoft.com/Forums/nl-NL/267/thread/3c42e7cb-c639-47aa-8c29-4f59b780070c
操作完iframe内容后滚动输出，很简单 首先找到iframe内容（跨域解决后有效，只有ie8报这个错误，权限问题。其他浏览器不报错，但是也不生效。）
var ifr = $(&#8217;#11iframe&#8217;).contents();
$(n.html).prependTo(ifr.find(&#8221;#twitter_container&#8221;)).hide().slideDown(&#8221;normal&#8221;,function(){ifr.find(&#8221;a.btn2&#8243;).css(&#8221;position&#8221;,&#8221;relative&#8221;)});
意思很简单，把n.html  hide的方式加入到容器第一行，然后slideDown出来。搜狐微博就是这样的效果。
ps   heredoc很好的解决了大文本输出：

注意前后没有空格，EOT可以自己定义，只要不在文本中出现，注意数组。
]]></description>
			<content:encoded><![CDATA[<p>如果主域名为xxx.shotki.com而iframe中域名为bbb.shotki.com</p>
<p>那么跨域问题解决方案为同时加上document.domain=&#8221;xxx.com&#8221;;<br />
注意：如果页面上有别的ajax请求，也需要设置:</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: text/html; charset=utf-8&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;script type=&quot;text/javascript&quot;&gt;<br />
document.domain=&quot;sohu.com&quot;;<br />
&lt;/script&gt;'</span><span style="color: #339933;">;</span></div></div>
<p>参考：http://social.microsoft.com/Forums/nl-NL/267/thread/3c42e7cb-c639-47aa-8c29-4f59b780070c<br />
操作完iframe内容后滚动输出，很简单 首先找到iframe内容（跨域解决后有效，只有ie8报这个错误，权限问题。其他浏览器不报错，但是也不生效。）<br />
var ifr = $(&#8217;#11iframe&#8217;).contents();<br />
$(n.html).prependTo(ifr.find(&#8221;#twitter_container&#8221;)).hide().slideDown(&#8221;normal&#8221;,function(){ifr.find(&#8221;a.btn2&#8243;).css(&#8221;position&#8221;,&#8221;relative&#8221;)});<br />
意思很简单，把n.html  hide的方式加入到容器第一行，然后slideDown出来。搜狐微博就是这样的效果。</p>
<p>ps   heredoc很好的解决了大文本输出：<br />
<?php<br />
$data = <<<EOT<br />
{$aaa["ss"]}数组</p>
<div>$txt</div>
<p>EOT;<br />
?></p>
<p>注意前后没有空格，EOT可以自己定义，只要不在文本中出现，注意数组。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/07/iframehideslidedownheredoc/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>burst服务器重生记</title>
		<link>http://www.shotki.com/hezll/2011/05/burstrelive/</link>
		<comments>http://www.shotki.com/hezll/2011/05/burstrelive/#comments</comments>
		<pubDate>Fri, 13 May 2011 02:38:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[美国主机]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/?p=311</guid>
		<description><![CDATA[burst虽然廉价，但是也还比较稳定。不过再稳定的东西也有偶尔当机的问题。
我的网站www.shotki.com射客本来运行的好好的，可是突然有一天，发现打不开了。
更奇怪的是连winscp都连不上。这可愁坏了。没办法遇到问题第一招
面板重启！
一般情况，经历了重启，机器就会正常了。（如果进入不了面板，那么只有发ticket，自求多福了）
重启之后，继续测试，发现问题依旧。这下只好登陆https://support.burst.net/
简单的注册之后，您就可以留下您的问题。

其实就是告诉它机器坏了，连不上需要帮忙。

很快有了答复。很简单，你重装吧（我了歌曲），我们给你备份。或者你自己点击面板里的备份。一直以为面板里的备份没有用呢

反正就是备份好了，重装系统就好了。装完系统装lnmp，那个备份文件得让他们帮你拷贝过去。

拷完自己解压缩，然后再把对应的mysql data拷贝到新建data下，wwwroot下面程序拷贝到对应下面，ningx配置拷贝一下就ok。
犹豫所有操作都是在vps上操作，不需要下载上传，因此速度还是可以的。

到这里就差不多了。哈哈。如果重装lnmp密码啥都一致，基本上拷贝完网站就能用。

]]></description>
			<content:encoded><![CDATA[<p>burst虽然廉价，但是也还比较稳定。不过再稳定的东西也有偶尔当机的问题。</p>
<p>我的网站www.shotki.com射客本来运行的好好的，可是突然有一天，发现打不开了。</p>
<p>更奇怪的是连winscp都连不上。这可愁坏了。没办法遇到问题第一招</p>
<p><strong>面板重启！</strong></p>
<p>一般情况，经历了重启，机器就会正常了。（如果进入不了面板，那么只有发ticket，自求多福了）</p>
<p>重启之后，继续测试，发现问题依旧。这下只好登陆https://support.burst.net/</p>
<p>简单的注册之后，您就可以留下您的问题。<br />
<img class="aligncenter size-medium wp-image-316" title="问问题" src="http://www.shotki.com/hezll/wp-content/uploads/2011/05/问问题-300x159.jpg" alt="问问题" width="485" height="257" /></p>
<p>其实就是告诉它机器坏了，连不上需要帮忙。</p>
<p><img class="aligncenter size-medium wp-image-312" title="答复" src="http://www.shotki.com/hezll/wp-content/uploads/2011/05/答复-300x134.jpg" alt="答复" width="475" height="212" /></p>
<p>很快有了答复。很简单，你重装吧（我了歌曲），我们给你备份。或者你自己点击面板里的备份。一直以为面板里的备份没有用呢</p>
<p><img class="aligncenter size-medium wp-image-313" title="继续" src="http://www.shotki.com/hezll/wp-content/uploads/2011/05/继续-300x160.jpg" alt="继续" width="393" height="209" /></p>
<p>反正就是备份好了，重装系统就好了。装完系统装lnmp，那个备份文件得让他们帮你拷贝过去。</p>
<p><img class="aligncenter size-medium wp-image-314" title="继续1" src="http://www.shotki.com/hezll/wp-content/uploads/2011/05/继续1-300x175.jpg" alt="继续1" width="353" height="205" /></p>
<p>拷完自己解压缩，然后再把对应的mysql data拷贝到新建data下，wwwroot下面程序拷贝到对应下面，ningx配置拷贝一下就ok。<br />
犹豫所有操作都是在vps上操作，不需要下载上传，因此速度还是可以的。</p>
<p><img class="aligncenter size-medium wp-image-315" title="问题解决" src="http://www.shotki.com/hezll/wp-content/uploads/2011/05/问题解决-300x191.jpg" alt="问题解决" width="335" height="211" /></p>
<p>到这里就差不多了。哈哈。如果重装lnmp密码啥都一致，基本上拷贝完网站就能用。</p>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="600" height="490" id="cc_C79489CA64131841"><param name="movie" value="http://union.bokecc.com/flash/player.swf?vid=C79489CA64131841&#038;siteid=F637A140A4F87A9B&#038;autoStart=false" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://union.bokecc.com/flash/player.swf?vid=C79489CA64131841&#038;siteid=F637A140A4F87A9B&#038;autoStart=false" width="600" height="490" name="cc_C79489CA64131841" allowFullScreen="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"/></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/05/burstrelive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 语句关于in的一个注意事项</title>
		<link>http://www.shotki.com/hezll/2011/04/mysql-%e8%af%ad%e5%8f%a5%e5%85%b3%e4%ba%8ein%e7%9a%84%e4%b8%80%e4%b8%aa%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9/</link>
		<comments>http://www.shotki.com/hezll/2011/04/mysql-%e8%af%ad%e5%8f%a5%e5%85%b3%e4%ba%8ein%e7%9a%84%e4%b8%80%e4%b8%aa%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 02:20:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php mysql in]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/2011/04/mysql-%e8%af%ad%e5%8f%a5%e5%85%b3%e4%ba%8ein%e7%9a%84%e4%b8%80%e4%b8%aa%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9/</guid>
		<description><![CDATA[delete from  db2011.hpmvp_info_baby where author in(select bs.author  from (select b.author from db2011.hpmvp_info_mvp m,db2011.hpmvp_info_baby b where m.author=b.author) bs)
注意到in 后面采用的一个双层select写法了，原因就是因为in里边不能直接跟where
好了，问题解决了么？
]]></description>
			<content:encoded><![CDATA[<p>delete from  db2011.hpmvp_info_baby where author in(select bs.author  from (select b.author from db2011.hpmvp_info_mvp m,db2011.hpmvp_info_baby b where m.author=b.author) bs)</p>
<p>注意到in 后面采用的一个双层select写法了，原因就是因为in里边不能直接跟where</p>
<p>好了，问题解决了么？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/04/mysql-%e8%af%ad%e5%8f%a5%e5%85%b3%e4%ba%8ein%e7%9a%84%e4%b8%80%e4%b8%aa%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ps</title>
		<link>http://www.shotki.com/hezll/2011/03/ps/</link>
		<comments>http://www.shotki.com/hezll/2011/03/ps/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 02:43:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/?p=308</guid>
		<description><![CDATA[【疯狂文艺常识】
]]></description>
			<content:encoded><![CDATA[<p>【疯狂文艺常识】</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/03/ps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>注意谷歌浏览器和firefox浏览器的js this.width支持问题</title>
		<link>http://www.shotki.com/hezll/2011/01/jschromwidth/</link>
		<comments>http://www.shotki.com/hezll/2011/01/jschromwidth/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 08:03:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/2011/01/%e6%b3%a8%e6%84%8f%e8%b0%b7%e6%ad%8c%e6%b5%8f%e8%a7%88%e5%99%a8%e5%92%8cfirefox%e6%b5%8f%e8%a7%88%e5%99%a8%e7%9a%84js-this-width%e6%94%af%e6%8c%81%e9%97%ae%e9%a2%98/</guid>
		<description><![CDATA[&#60;img class=&#34;thumb_img&#34; &#160;src=&#34;http://s2.t.itc.cn/mblog/pic/201101/13/9/f_12948809972177.jpg&#34;&#62;

&#60;script&#62;

$&#40;document&#41;.ready&#40;function&#40;&#41;&#123;

$&#40;'img.thumb_img'&#41;.each&#40;function&#40;&#41;&#123;

$&#40;this&#41;.load&#40;function&#40;&#41;&#123;

alert&#40;this.width&#41;;

&#125;&#41;

&#125;&#41;;

&#125;&#41;;

&#60;/script&#62;
注意到上面代码的 load()了么，如果没有这个处理过程，谷歌浏览器是得不到正确的width,因为谷歌浏览器需要图片完全加载才知道其属性。
]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&lt;</span>img <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;thumb_img&quot;</span> &nbsp;src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://s2.t.itc.cn/mblog/pic/201101/13/9/f_12948809972177.jpg&quot;</span><span style="color: #339933;">&gt;</span><br />
<br />
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span><br />
<br />
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>ready<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
<br />
$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'img.thumb_img'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><a href="http://www.php.net/each"><span style="color: #990000;">each</span></a><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
<br />
$<span style="color: #009900;">&#40;</span>this<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>load<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
<br />
alert<span style="color: #009900;">&#40;</span>this<span style="color: #339933;">.</span>width<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><br />
<br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></div></div>
<p>注意到上面代码的 <font color=red>load()</font>了么，如果没有这个处理过程，谷歌浏览器是得不到正确的width,因为谷歌浏览器需要图片完全加载才知道其属性。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/01/jschromwidth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>北京到成都重庆快车动车路线示意大全</title>
		<link>http://www.shotki.com/hezll/2011/01/railwaybeijing/</link>
		<comments>http://www.shotki.com/hezll/2011/01/railwaybeijing/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 07:20:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[随笔]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/2011/01/%e5%8e%bb%e6%88%90%e9%83%bd%e9%87%8d%e5%ba%86%e5%bf%ab%e8%bd%a6%e5%8a%a8%e8%bd%a6%e8%b7%af%e7%ba%bf%e7%a4%ba%e6%84%8f%e5%a4%a7%e5%85%a8/</guid>
		<description><![CDATA[北京西~成都动车组列车1对，车次为D317/8次,经由京广、郑西高铁、西康、襄渝、达成、遂成线运行
北京西~重庆北动车组列车1对，车次为D319/20次，经由京广、郑西高铁、西康、襄渝线运行。
T7 北京西 &#8211; 成都  北京 石家庄 洛阳 西安 宝鸡 广元 绵羊 成都
T9 北京西-重庆  石家庄 邢台 邯郸 安阳 郑州 襄樊 十堰 安康 万源 达州 广安 重庆
从路线上看果然便捷了不少，但是价格却昂贵了1倍，只有硬座划算。当然也多给中高端人士一个选择，还是很给力的。
]]></description>
			<content:encoded><![CDATA[<p>北京西~成都动车组列车1对，车次为D317/8次,经由京广、郑西高铁、西康、襄渝、达成、遂成线运行<br />
北京西~重庆北动车组列车1对，车次为D319/20次，经由京广、郑西高铁、西康、襄渝线运行。</p>
<p><span id="from_to" style="font-size: 14px; font-weight: bold; padding-right: 30px;">T7 北京西 &#8211; 成都  北京 石家庄 洛阳 西安 宝鸡 广元 绵羊 成都</span></p>
<p><span style="font-size: 14px; font-weight: bold; padding-right: 30px;">T9 北京西-重庆  石家庄 邢台 邯郸<span style="white-space: pre;"> </span>安阳<span style="white-space: pre;"> </span>郑州<span style="white-space: pre;"> </span>襄樊<span style="white-space: pre;"> </span>十堰<span style="white-space: pre;"> </span>安康<span style="white-space: pre;"> </span>万源<span style="white-space: pre;"> </span>达州<span style="white-space: pre;"> </span>广安<span style="white-space: pre;"> </span>重庆</span></p>
<p><span style="font-size: 14px; font-weight: bold; padding-right: 30px;">从路线上看果然便捷了不少，但是价格却昂贵了1倍，只有硬座划算。当然也多给中高端人士一个选择，还是很给力的。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2011/01/railwaybeijing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cron job执行别忘记发邮件设置，防止send_mail造成的服务器缓慢</title>
		<link>http://www.shotki.com/hezll/2010/12/cron_disable_sendmai/</link>
		<comments>http://www.shotki.com/hezll/2010/12/cron_disable_sendmai/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 08:47:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[美国主机]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[qvod]]></category>
		<category><![CDATA[send_mail]]></category>

		<guid isPermaLink="false">http://www.shotki.com/hezll/?p=288</guid>
		<description><![CDATA[在cron_cmd后面加上 &#62; /dev/null 2&#62;&#38;1 就可以不发送MAIL了

PS ：  没事别输出cron job 内容


或者 &#62; /var/log/xxx.log 2&#62;&#38;1记log
例子：
*/2 * * * *  /usr/local/php/bin/php /home/test/foo.php &#62; /dev/null 2&#62;&#38;1

最近搞了一个电影网站www.shotki.com   结果发现每天早晨都会出现502错误，一开始以为 fastcgi错误。后来通过
Top执行，

“load average”为当前系统负载的平均值，后面的三个值分别为1分钟前、5分钟前、15分钟前进程的平均数，一般的可以认为这个数值超过 CPU 数目时，CPU 将比较吃力的负载当前系统所包含的进程；发现为5，找出原因是 send_mail 已经处于僵尸状态了。
联想到程序中的采集定时任务，判断每次采集后，会定时发邮件

 
tail -100 /var/spool/mail/root
tail -100 /var/spool/mail/root
执行之后果然，有若干封邮件，每次都在计划任务后执行，但是去程序中也没有找到发邮件的函数。于是判定是服务器自动行为，终于在网上找到禁止方法如上。

]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">在cron_cmd后面加上 &gt; /dev/null 2&gt;&amp;1 就可以不发送MAIL了</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">PS ：  <span style="color: #ff0000;">没事别输出cron job 内容</span></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;"><span style="color: #ff0000;"><br />
</span></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">或者 &gt; /var/log/xxx.log 2&gt;&amp;1记log</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">例子：</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">*/2 * * * *  /usr/local/php/bin/php /home/test/foo.php &gt; /dev/null 2&gt;&amp;1</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">最近搞了一个<a title="射客影视在线" href="http://www.shotki.com">电影网站</a>www.shotki.com   结果发现每天早晨都会出现502错误，一开始以为 fastcgi错误。后来通过</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">Top执行，<span id="more-288"></span></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;"><img class="alignnone" title="top示例" src="http://www.centospub.com/prep/others/top01.gif" alt="" width="720" height="400" /></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">“load average”为当前系统负载的平均值，后面的三个值分别为1分钟前、5分钟前、15分钟前进程的平均数，一般的可以认为这个数值超过 CPU 数目时，CPU 将比较吃力的负载当前系统所包含的进程；发现为5，找出原因是 send_mail 已经处于僵尸状态了。</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">联想到程序中的<span style="color: #ff0000;">采集定时任务，<span style="color: #000000;">判断每次采集后，会定时发邮件</span></span></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;"><span style="color: #ff0000;"><span style="color: #000000;"> </span></span></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 295px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">tail -100 /var/spool/mail/root</div>
<p>tail -100 /var/spool/mail/root</p>
<div>执行之后果然，有若干封邮件，每次都在计划任务后执行，但是去程序中也没有找到发邮件的函数。于是判定是服务器自动行为，终于在网上找到禁止方法如上。</div>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; padding: 0px; border: 0px initial initial;">
]]></content:encoded>
			<wfw:commentRss>http://www.shotki.com/hezll/2010/12/cron_disable_sendmai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

