<?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>QLJ's Blog</title>
	<atom:link href="http://qlj.sh.cn/feed/" rel="self" type="application/rss+xml" />
	<link>http://qlj.sh.cn</link>
	<description>搜集网络信息,风云磅实验</description>
	<lastBuildDate>Thu, 26 Jan 2012 21:20:41 +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>php使用json代替serialize的想法</title>
		<link>http://qlj.sh.cn/php/20120127/json_serialize/</link>
		<comments>http://qlj.sh.cn/php/20120127/json_serialize/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 19:49:18 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[serialize]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1123</guid>
		<description><![CDATA[我需要把一些内容存放在数据库,感觉这些没必要建立字段,于是索性放在数组中序列化后存入数据库.
使用serialize序列化后的字符串很多内容都是不需要的,比如长度信息,数据类型.
感觉平时用的json不错.
打算用json代替,
网上好多结果都是json语serialize的速度比较,这个倒没很大的必要.
需要注意的是 json_decode时返回的是object,需要

json_decode&#40;&#34;字符串&#34;,ture&#41;;

后来发现也不是那么完美..
json_encode会对中文进行编码.如果含有大量的中文,那长度超过了serialize.
这让人很蛋疼,网上给出的办法是对内容进行urlencode,json_enocde后再urldecode

function jsonencode&#40;$code&#41;&#123; //新json_encode
 $code = json_encode&#40;urlencodearray&#40;$code&#41;&#41;;//对数组处理
 return urldecode&#40;$code&#41;;
&#125;
function urlencodearray&#40;$data&#41;&#123;//urlencode数组
 if&#40;is_array&#40;$data&#41;&#41;&#123;
 foreach&#40;$data as $key=&#38;gt;$val&#41;&#123;
 $data&#91;$key&#93; = urlencodearray&#40;$val&#41;;
 &#125;
 return $data;
 &#125;else&#123;
 return urlencode&#40;$data&#41;;
 &#125;
&#125;

真是菊花一紧啊&#8230;.
再这之后还可以进行一次压缩.
当然,如果不考虑内容的可读性,用其他的扩展也不错,比如msgpack,
]]></description>
			<content:encoded><![CDATA[<p>我需要把一些内容存放在数据库,感觉这些没必要建立字段,于是索性放在数组中序列化后存入数据库.<br />
使用serialize序列化后的字符串很多内容都是不需要的,比如长度信息,数据类型.<br />
感觉平时用的json不错.<br />
打算用json代替,<br />
网上好多结果都是json语serialize的速度比较,这个倒没很大的必要.<br />
需要注意的是 json_decode时返回的是object,需要</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">json_decode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;字符串&quot;</span><span style="color: #339933;">,</span>ture<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>后来发现也不是那么完美..<br />
json_encode会对中文进行编码.如果含有大量的中文,那长度超过了serialize.<br />
这让人很蛋疼,网上给出的办法是对内容进行urlencode,json_enocde后再urldecode</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> jsonencode<span style="color: #009900;">&#40;</span><span style="color: #000088;">$code</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//新json_encode</span>
 <span style="color: #000088;">$code</span> <span style="color: #339933;">=</span> <span style="color: #990000;">json_encode</span><span style="color: #009900;">&#40;</span>urlencodearray<span style="color: #009900;">&#40;</span><span style="color: #000088;">$code</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//对数组处理</span>
 <span style="color: #b1b100;">return</span> <span style="color: #990000;">urldecode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$code</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> urlencodearray<span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//urlencode数组</span>
 <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span><span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #000088;">$val</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> urlencodearray<span style="color: #009900;">&#40;</span><span style="color: #000088;">$val</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
 <span style="color: #b1b100;">return</span> <span style="color: #000088;">$data</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
 <span style="color: #b1b100;">return</span> <span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>真是菊花一紧啊&#8230;.<br />
再这之后还可以进行一次压缩.<br />
当然,如果不考虑内容的可读性,用其他的扩展也不错,比如msgpack,</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/php/20120127/json_serialize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下通过wget模拟 批量回帖抢楼</title>
		<link>http://qlj.sh.cn/linux/20111119/linux-wget-discuz/</link>
		<comments>http://qlj.sh.cn/linux/20111119/linux-wget-discuz/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 08:16:49 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1120</guid>
		<description><![CDATA[discuz 回帖必要的参数
header 中
referer  帖子地址  若出现 意外提交一般为这个不对
cookies  登录状态
内容中
 formhash 
message
有了这些 就可以模拟发帖了

首先通过wget 登录 获取COOKIES

&#160;
$ wget --post-data=&#34;username=yingouqlj&#38;password=password&#34; --save-cookies=cookie.txt --keep-session-cookies &#34;http://www.qwing.com/logging.php?action=login&#38;loginsubmit=true&#34;

登录后 使用之前的COOKIES  打开 帖子页面 获取 FORMHASH

&#160;
&#160;
wget --load-cookies cookie --keep-session-cookies http://www.qwing.com/viewthread.php?tid=7231

到下载的文件中
找到表单中的值
最后提交

&#160;
&#160;
 wget --referer 'http://www.qwing.com/viewthread.php?tid=7231' --load-cookies=cookie.txt --keep-session-cookies -r -x --post-data 'formhash=3084dc74&#38;message=%7B%3A7_383%3A%7D' 'http://www.qwing.com/post.php?action=reply&#38;fid=11&#38;tid=7231&#38;extra=&#38;replysubmit=yes&#38;infloat=yes&#38;handlekey=fastpost&#38;inajax=1'

最后 循环执行把。。哈
]]></description>
			<content:encoded><![CDATA[<p>discuz 回帖必要的参数</p>
<p>header 中<br />
referer  帖子地址  若出现 意外提交一般为这个不对</p>
<p>cookies  登录状态</p>
<p>内容中<br />
 formhash </p>
<p>message</p>
<p>有了这些 就可以模拟发帖了</p>
<p><span id="more-1120"></span></p>
<p>首先通过wget 登录 获取COOKIES</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
$ <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">--post-data</span>=<span style="color: #ff0000;">&quot;username=yingouqlj&amp;password=password&quot;</span> <span style="color: #660033;">--save-cookies</span>=cookie.txt <span style="color: #660033;">--keep-session-cookies</span> <span style="color: #ff0000;">&quot;http://www.qwing.com/logging.php?action=login&amp;loginsubmit=true&quot;</span></pre></div></div>

<p>登录后 使用之前的COOKIES  打开 帖子页面 获取 FORMHASH</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">--load-cookies</span> cookie <span style="color: #660033;">--keep-session-cookies</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.qwing.com<span style="color: #000000; font-weight: bold;">/</span>viewthread.php?<span style="color: #007800;">tid</span>=<span style="color: #000000;">7231</span></pre></div></div>

<p>到下载的文件中<br />
找到表单中的值</p>
<p>最后提交</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
&nbsp;
 <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">--referer</span> <span style="color: #ff0000;">'http://www.qwing.com/viewthread.php?tid=7231'</span> <span style="color: #660033;">--load-cookies</span>=cookie.txt <span style="color: #660033;">--keep-session-cookies</span> <span style="color: #660033;">-r</span> <span style="color: #660033;">-x</span> <span style="color: #660033;">--post-data</span> <span style="color: #ff0000;">'formhash=3084dc74&amp;message=%7B%3A7_383%3A%7D'</span> <span style="color: #ff0000;">'http://www.qwing.com/post.php?action=reply&amp;fid=11&amp;tid=7231&amp;extra=&amp;replysubmit=yes&amp;infloat=yes&amp;handlekey=fastpost&amp;inajax=1'</span></pre></div></div>

<p>最后 循环执行把。。哈</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/linux/20111119/linux-wget-discuz/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>php邮件发送类推荐 PHPMailer:smtp法</title>
		<link>http://qlj.sh.cn/php/20110526/phpmailler/</link>
		<comments>http://qlj.sh.cn/php/20110526/phpmailler/#comments</comments>
		<pubDate>Wed, 25 May 2011 19:48:11 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1118</guid>
		<description><![CDATA[这里说明下 我用的是SMTP 其他方法的请继续 GOOGLE
刚拿到的时候 测试了下发信 无异常 支持HTML
但是SMTP 发送的过程中 需要先于SMTP 服务器建立连接 然后发信
这个过程可能需要1-3秒 可能会导致网页响应较长时间
所以呢. 我们建立一个表用于存放发送的邮件队列
每次发送邮件是将 邮件内容加入表中
然后 用CRON 每分钟检查下表 若存在 则 队列发送
目前在起哄网上使用中.用于发送EMAIL认证邮件

&#160;
--
-- 表的结构 `qlj_sendmail`
--
&#160;
CREATE TABLE IF NOT EXISTS `qlj_sendmail` &#40;
  `id` int&#40;11&#41; NOT NULL AUTO_INCREMENT,
  `email` varchar&#40;50&#41; DEFAULT NULL,
  `subject` varchar&#40;120&#41; DEFAULT NULL,
  `body` text,
  `error` tinyint&#40;1&#41; NOT NULL DEFAULT '0',
  `dateline` [...]]]></description>
			<content:encoded><![CDATA[<p>这里说明下 我用的是SMTP 其他方法的请继续 GOOGLE<br />
刚拿到的时候 测试了下发信 无异常 支持HTML<br />
但是SMTP 发送的过程中 需要先于SMTP 服务器建立连接 然后发信<br />
这个过程可能需要1-3秒 可能会导致网页响应较长时间<br />
所以呢. 我们建立一个表用于存放发送的邮件队列<br />
每次发送邮件是将 邮件内容加入表中<br />
然后 用CRON 每分钟检查下表 若存在 则 队列发送<br />
目前在<a href="http://www.qihoon.com/" title="起哄网">起哄网</a>上使用中.用于发送EMAIL认证邮件</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">&nbsp;
<span style="color: #808080; font-style: italic;">--</span>
<span style="color: #808080; font-style: italic;">-- 表的结构 `qlj_sendmail`</span>
<span style="color: #808080; font-style: italic;">--</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #993333; font-weight: bold;">IF</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">EXISTS</span> <span style="color: #ff0000;">`qlj_sendmail`</span> <span style="color: #66cc66;">&#40;</span>
  <span style="color: #ff0000;">`id`</span> int<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">,</span>
  <span style="color: #ff0000;">`email`</span> varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span>
  <span style="color: #ff0000;">`subject`</span> varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">120</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span>
  <span style="color: #ff0000;">`body`</span> text<span style="color: #66cc66;">,</span>
  <span style="color: #ff0000;">`error`</span> tinyint<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span>
  <span style="color: #ff0000;">`dateline`</span> int<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span>
  <span style="color: #993333; font-weight: bold;">PRIMARY</span> <span style="color: #993333; font-weight: bold;">KEY</span>  <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">`id`</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span> ENGINE<span style="color: #66cc66;">=</span>MyISAM  <span style="color: #993333; font-weight: bold;">DEFAULT</span> CHARSET<span style="color: #66cc66;">=</span>utf8 <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span> ;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">#!/usr/local/php/bin/php -q
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mysql.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'class.phpmailer.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span>                <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> PHPMailer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DB<span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">IsSMTP</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">//SMTP服务器</span>
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;no-reply@qihoon.com&quot;</span><span style="color: #339933;">;</span>  
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>    
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">FromName</span> <span style="color: #339933;">=</span>  <span style="color: #0000ff;">&quot;起哄网信使&quot;</span><span style="color: #339933;">;</span>   
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SMTPAuth</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>          
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">From</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Username</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CharSet</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;utf8&quot;</span><span style="color: #339933;">;</span>           
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Encoding</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;base64&quot;</span><span style="color: #339933;">;</span> 
	<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AddAddress</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sendto_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
<span style="color: #000088;">$result</span><span style="color: #339933;">=</span><span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT id,email,subject,body FROM `qlj_sendmail` where error='0' LIMIT 0 , 30&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span><span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AltBody</span> <span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/html&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Subject</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'subject'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">MsgHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'body'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AddAddress</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;full_name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Send</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">//$errorid[]=array(id=&gt;$row['id'],error=&gt;$mail-&gt;ErrorInfo);//本来想记录出错信息的.但是表是INT 不浪费字段了.</span>
	  <span style="color: #000088;">$errid</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$okid</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ClearAddresses</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$okid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$sok</span><span style="color: #339933;">=</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span><span style="color: #000088;">$okid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;delete from `qlj_sendmail` where id in(<span style="color: #006699; font-weight: bold;">$sok</span>) ;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$errid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$serr</span><span style="color: #339933;">=</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span><span style="color: #000088;">$errid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;update `qlj_sendmail` set error='1' where id in(<span style="color: #006699; font-weight: bold;">$serr</span>) ;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>最后在  CRONTAB中 加入  每分钟的计划任务<br />
*/1 * * * * /usr/local/php/bin/php /home/yingouqlj/send_mail.php</p>
<p>参考官方实例.</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/php/20110526/phpmailler/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>DISCUZ漫游平台移植记</title>
		<link>http://qlj.sh.cn/discuz/20110320/discuz-manyou/</link>
		<comments>http://qlj.sh.cn/discuz/20110320/discuz-manyou/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 19:30:46 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[discuz]]></category>
		<category><![CDATA[开放平台]]></category>
		<category><![CDATA[漫游]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1114</guid>
		<description><![CDATA[想让自己的网站支持应用平台
个人能力有限.不可能自己搭建应用平台
国内的开源SNS程序中 只有DISCUZ提供了应用平台(漫游)
GOOGLE 的OPENSOCIAL 目前没找到方法
FACEBOOK 的是被墙的..
刚好THINKSNS 也已经使用了漫游平台.
那应该是没问题的.. 用THINKSNS 的代码看了下差不多是从UCHOME 移过来的
所以打算吧THINKSNS 的这个移动到我自己的SNS程序上


首先是注册站点 获取
['site_key']
['my_site_id']
['my_site_key']
这3个参数 用过DISCUZ 产品都知道
我在图中标明了
常见问题:
已被注册
参考DISCUZ官方解决方法
使用DISCUZ 提供的附件
根据需要选择“恢复漫游数据”或“重新注册到漫游平台”

我就不小心重复注册了N 次
应用部分

$_GET&#91;'id'&#93; = intval&#40;$_GET&#91;'id'&#93;&#41;; //用户访问的appid
$app		= doQuery&#40;&#34;SELECT * FROM {$db_prefix}myop_myapp WHERE `appid` = {$_GET['id']} LIMIT 1&#34;&#41;;
//检查数据库是否存在 (判断注册漫游ID)
$extra 		 = $_GET&#91;'my_extra'&#93;;
$timestamp	 = $_MY_GLOBAL&#91;'timestamp'&#93;;
$url 		.= '&#38;my_current='.urlencode&#40;$current_url&#41;;
$url 		.= '&#38;my_extra='.urlencode&#40;$extra&#41;;
$url 		.= '&#38;my_ts='.$timestamp;
$url 		.= '&#38;my_appVersion='.$app&#91;'version'&#93;;
$hash 		 = $_SITE_CONFIG&#91;'my_site_id'&#93; . '&#124;' . $qljid . '&#124;' . $_GET&#91;'id'&#93; . '&#124;' [...]]]></description>
			<content:encoded><![CDATA[<p>想让自己的网站支持应用平台<br />
个人能力有限.不可能自己搭建应用平台<br />
国内的开源SNS程序中 只有DISCUZ提供了应用平台(漫游)<br />
GOOGLE 的OPENSOCIAL 目前没找到方法<br />
FACEBOOK 的是被墙的..</p>
<p>刚好THINKSNS 也已经使用了漫游平台.<br />
那应该是没问题的.. 用THINKSNS 的代码看了下差不多是从UCHOME 移过来的</p>
<p>所以打算吧THINKSNS 的这个移动到我自己的SNS程序上<br />
<img src="http://upfile.case-mod.net/www.case-mod.net/2011/Mar/qlj.sh.cn1300561541.jpg" alt="discuz漫游平台分析" /><br />
<span id="more-1114"></span><br />
首先是注册站点 获取<br />
['site_key']<br />
['my_site_id']<br />
['my_site_key']</p>
<p>这3个参数 用过DISCUZ 产品都知道<br />
我在图中标明了<br />
常见问题:<br />
已被注册<br />
参考DISCUZ官方解决方法<br />
使用<a href="http://qlj.sh.cn/discuz/">DISCUZ</a> 提供的附件<br />
根据需要选择“恢复漫游数据”或“重新注册到漫游平台”<br />
<img src="http://upfile.case-mod.net/www.case-mod.net/2011/Mar/case-mod.net1300562034.jpg" alt="null" /><br />
我就不小心重复注册了N 次<br />
应用部分</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//用户访问的appid</span>
<span style="color: #000088;">$app</span>		<span style="color: #339933;">=</span> doQuery<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM <span style="color: #006699; font-weight: bold;">{$db_prefix}</span>myop_myapp WHERE `appid` = <span style="color: #006699; font-weight: bold;">{$_GET['id']}</span> LIMIT 1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//检查数据库是否存在 (判断注册漫游ID)</span>
<span style="color: #000088;">$extra</span> 		 <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'my_extra'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$timestamp</span>	 <span style="color: #339933;">=</span> <span style="color: #000088;">$_MY_GLOBAL</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'timestamp'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span> 		<span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&amp;my_current='</span><span style="color: #339933;">.</span><span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span> 		<span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&amp;my_extra='</span><span style="color: #339933;">.</span><span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$extra</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span> 		<span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&amp;my_ts='</span><span style="color: #339933;">.</span><span style="color: #000088;">$timestamp</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span> 		<span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&amp;my_appVersion='</span><span style="color: #339933;">.</span><span style="color: #000088;">$app</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'version'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$hash</span> 		 <span style="color: #339933;">=</span> <span style="color: #000088;">$_SITE_CONFIG</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'my_site_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'|'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$qljid</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'|'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'|'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$current_url</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'|'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$extra</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'|'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$timestamp</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'|'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SITE_CONFIG</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'my_site_key'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$hash</span>		 <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hash</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span>		<span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&amp;my_sig='</span><span style="color: #339933;">.</span><span style="color: #000088;">$hash</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$my_suffix</span>   <span style="color: #339933;">=</span> <span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_suffix</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//IFRAME的参数  具体用抓包工具分析</span></pre></div></div>

<p>如果用户已注册了 直接可以游戏了<br />
如果没注册 那么就需注册漫游ID<br />
但是漫游ID不返回具体错误参数<br />
所以需要自己改一下api/my.php<br />
给这个文件输出日志 已方便知道漫游平台与站点通信的参数</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">log_result<span style="color: #009900;">&#40;</span><span style="color: #990000;">serialize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//序列化了传入的参数</span>
log_result<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">formatResponse</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$response</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//这个是MY输出的参数 已经是序列化了的</span>
<span style="color: #000000; font-weight: bold;">function</span>  log_result<span style="color: #009900;">&#40;</span><span style="color: #000088;">$word</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #339933;">@</span><span style="color: #000088;">$fp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/home/jump/public_html/qlj/apps/myop/log.txt&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
	<span style="color: #339933;">@</span><span style="color: #990000;">flock</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> LOCK_EX<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
	<span style="color: #339933;">@</span><span style="color: #990000;">fwrite</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span><span style="color: #000088;">$word</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #339933;">@</span><span style="color: #990000;">flock</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span> LOCK_UN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #339933;">@</span><span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>然后我们去注册应用 再打开 日志文件</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">a<span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;module&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">15</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;UserApplication&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;method&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;add&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;params&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">491</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;a:18:{s:3:&quot;</span>uId<span style="color: #0000ff;">&quot;;s:1:&quot;</span><span style="color: #cc66cc;">6</span><span style="color: #0000ff;">&quot;;s:5:&quot;</span>appId<span style="color: #0000ff;">&quot;;i:1061581;s:7:&quot;</span>appName<span style="color: #0000ff;">&quot;;s:12:&quot;</span>小小战争<span style="color: #0000ff;">&quot;;s:7:&quot;</span>privacy<span style="color: #0000ff;">&quot;;s:6:&quot;</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #0000ff;">&quot;;s:12:&quot;</span>allowSideNav<span style="color: #0000ff;">&quot;;b:1;s:9:&quot;</span>allowFeed<span style="color: #0000ff;">&quot;;b:1;s:16:&quot;</span>allowProfileLink<span style="color: #0000ff;">&quot;;b:1;s:14:&quot;</span>defaultBoxType<span style="color: #0000ff;">&quot;;s:4:&quot;</span>wide<span style="color: #0000ff;">&quot;;s:11:&quot;</span>defaultMYML<span style="color: #0000ff;">&quot;;s:0:&quot;</span><span style="color: #0000ff;">&quot;;s:18:&quot;</span>defaultProfileLink<span style="color: #0000ff;">&quot;;s:0:&quot;</span><span style="color: #0000ff;">&quot;;s:7:&quot;</span>version<span style="color: #0000ff;">&quot;;s:1:&quot;</span><span style="color: #cc66cc;">0</span><span style="color: #0000ff;">&quot;;s:13:&quot;</span>displayMethod<span style="color: #0000ff;">&quot;;s:6:&quot;</span>canvas<span style="color: #0000ff;">&quot;;s:12:&quot;</span>displayOrder<span style="color: #0000ff;">&quot;;N;s:13:&quot;</span>userPanelArea<span style="color: #0000ff;">&quot;;s:1:&quot;</span><span style="color: #cc66cc;">3</span><span style="color: #0000ff;">&quot;;s:11:&quot;</span>canvasTitle<span style="color: #0000ff;">&quot;;s:0:&quot;</span><span style="color: #0000ff;">&quot;;s:12:&quot;</span>isFullscreen<span style="color: #0000ff;">&quot;;b:0;s:16:&quot;</span>displayUserPanel<span style="color: #0000ff;">&quot;;b:0;s:16:&quot;</span>additionalStatus<span style="color: #0000ff;">&quot;;s:3:&quot;</span><span style="color: #000000; font-weight: bold;">new</span><span style="color: #0000ff;">&quot;;}&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;sign&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">32</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;3857683fdb087a0984bacca88e228f3b&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
a<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;timezone&quot;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;version&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;X_VER&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;my_version&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;0.4&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;charset&quot;</span><span style="color: #339933;">;</span>N<span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;language&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;zh_CN&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;result&quot;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
a<span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;module&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Feed&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;method&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">24</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;publishTemplatizedAction&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;params&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">513</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;a:19:{s:3:&quot;</span>uId<span style="color: #0000ff;">&quot;;s:1:&quot;</span><span style="color: #cc66cc;">6</span><span style="color: #0000ff;">&quot;;s:5:&quot;</span>appId<span style="color: #0000ff;">&quot;;i:1061581;s:13:&quot;</span>titleTemplate<span style="color: #0000ff;">&quot;;s:40:&quot;</span><span style="color: #009900;">&#123;</span>actor<span style="color: #009900;">&#125;</span> 添加了<span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span><span style="color: #009900;">&#123;</span>app<span style="color: #009900;">&#125;</span><span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>应用<span style="color: #0000ff;">&quot;;s:9:&quot;</span>titleData<span style="color: #0000ff;">&quot;;a:1:{s:3:&quot;</span>app<span style="color: #0000ff;">&quot;;s:69:&quot;</span><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;userapp.php?id=1061581&amp;my_suffix=Lw%3D%3D&quot;</span> <span style="color: #339933;">&gt;</span>小小战争<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">&quot;;}s:12:&quot;</span>bodyTemplate<span style="color: #0000ff;">&quot;;N;s:8:&quot;</span>bodyData<span style="color: #0000ff;">&quot;;a:0:{}s:11:&quot;</span>bodyGeneral<span style="color: #0000ff;">&quot;;N;s:6:&quot;</span>image1<span style="color: #0000ff;">&quot;;N;s:10:&quot;</span>image1Link<span style="color: #0000ff;">&quot;;N;s:6:&quot;</span>image2<span style="color: #0000ff;">&quot;;N;s:10:&quot;</span>image2Link<span style="color: #0000ff;">&quot;;N;s:6:&quot;</span>image3<span style="color: #0000ff;">&quot;;N;s:10:&quot;</span>image3Link<span style="color: #0000ff;">&quot;;N;s:6:&quot;</span>image4<span style="color: #0000ff;">&quot;;N;s:10:&quot;</span>image4Link<span style="color: #0000ff;">&quot;;N;s:9:&quot;</span>targetIds<span style="color: #0000ff;">&quot;;N;s:7:&quot;</span>privacy<span style="color: #0000ff;">&quot;;s:6:&quot;</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #0000ff;">&quot;;s:12:&quot;</span>hashTemplate<span style="color: #0000ff;">&quot;;N;s:8:&quot;</span>hashData<span style="color: #0000ff;">&quot;;N;}&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;sign&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">32</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;d87dcbc4a5656958f29efc5467914eb6&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
a<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;timezone&quot;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;version&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;X_VER&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;my_version&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;0.4&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;charset&quot;</span><span style="color: #339933;">;</span>N<span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;language&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;zh_CN&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;result&quot;</span><span style="color: #339933;">;</span>N<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
a<span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;module&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;Friends&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;method&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;get&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;params&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">35</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;a:1:{s:4:&quot;</span>uIds<span style="color: #0000ff;">&quot;;a:1:{i:0;s:1:&quot;</span><span style="color: #cc66cc;">1</span><span style="color: #0000ff;">&quot;;}}&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;sign&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">32</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;b21279970e2c99f307e0a4f962abcb45&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
a<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;timezone&quot;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;version&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;X_VER&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;my_version&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;0.4&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;charset&quot;</span><span style="color: #339933;">;</span>N<span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;language&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;zh_CN&quot;</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;result&quot;</span><span style="color: #339933;">;</span>a<span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>i<span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>a<span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>i<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;2&quot;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;4&quot;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">:</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>s<span style="color: #339933;">:</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;12&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>返回参数中 最重要的是 RESULT<br />
注册的时候需要提交很多信息 如用户资料等等.</p>
<p>只放了写大概  不会写文章.具体 就看输出的错误 抓包分析结果.看有没有空值的参数  再与DISCUZ跟THINKSNS对比 看异常的地方 即可</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/discuz/20110320/discuz-manyou/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>3月11日去了上海gtug谷歌开发技术分享活动</title>
		<link>http://qlj.sh.cn/journal/20110314/gtug-3-11/</link>
		<comments>http://qlj.sh.cn/journal/20110314/gtug-3-11/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 20:01:02 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[journal]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[ncf]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1112</guid>
		<description><![CDATA[挺有意思的活动,来自GOOGLE GROUP 分享一下 也算是宣传吧 shanghai-gtug@googlegroups.com

内容安排：
18:00 &#8211; 18:30  Set Up / Registration   签到
18:30 &#8211; 18:50  Opening                 开场
18:50 &#8211; 19:00  HTML5 Identity
19:00 &#8211; 20:00  Chrome / HTML5
20:00 &#8211; 20:15  Break     [...]]]></description>
			<content:encoded><![CDATA[<p>挺有意思的活动,来自GOOGLE GROUP 分享一下 也算是宣传吧 shanghai-gtug@googlegroups.com<br />
<img src="http://upfile.case-mod.net/www.case-mod.net/2011/Mar/qlj.sh.cn1300044044.jpg" alt="上海GTUG" /><br />
内容安排：<br />
18:00 &#8211; 18:30  Set Up / Registration   签到<br />
18:30 &#8211; 18:50  Opening                 开场<br />
18:50 &#8211; 19:00  HTML5 Identity<br />
19:00 &#8211; 20:00  Chrome / HTML5<br />
20:00 &#8211; 20:15  Break                   休息<br />
20:15 &#8211; 21:00  Andriod<br />
21:00 &#8211; 21:20  AdMob<br />
21:20 &#8211; 21:30  Q &#038; A                   问答<br />
<span id="more-1112"></span><br />
对于HTML5与 CSS3 关注有段日子了<br />
但是游览器的不兼容,也只能是看到新的好玩的就拿来玩弄一下<br />
这次的HTML5演讲列的很详细,部分内容也没听到过,还详细介绍了HTML的规范等<br />
不过有点可惜..比较多.细节的部分不够.时间原因吧.比较关注的websockets也简单的带过了<br />
不过CSS3部分好像有点多&#8230;这部分内容网上也比较多.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
哎 感慨IE的用户量下降的怎么那么慢.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
android部分的内容<br />
ANDROID的老用户了,虽然没有做过任何ANDROID应用,最为老用户..我还用着比较老的1.6<br />
而演讲的内容中比较多的是3.0,2.3&#8230;痛苦..<br />
3.0的UI 用户体验 貌似改变很大,唯一可惜的是&#8230;演讲人的应用&#8230; 都是一些IPHONE上很成熟的移植产品<br />
至于ADMOB 这个不发表意见&#8230;<br />
演讲者属于运营 管理类 大人物..所以无法产生共识..个人比较喜欢新奇或偏向技术层面的东西</p>
<p>总结.不管是HTML5 还是 ANDROID<br />
感觉移动市场的魅力越来越大<br />
首先ANDROID 跟 IOS 的游览器均为WEBKIT内核,可以很好的支持HTML5,相反PC下 更多的是IE. 移动平台的增长对HTML5的普及很有帮助,而HTML5 也很多的考虑到了移动平台.如重力感应, 这些  都是PC机不需要的硬件设备.典型应用如GOOGLEMAP 的 手机版<br />
另外ANDROID 演讲部分 让我比较开眼界的是 <a href="http://qlj.sh.cn/tag/NCF">NCF</a>近场通信<br />
这个也就是以前 电视广告里说的 IPHONE 的电子刷卡支付,<br />
这个会推动 移动支付.还有物联网. 可以说是相当好玩的一个东西</p>
<p>废话 抱怨有点多. 就到这吧<br />
放几张 从微博偷来的图<br />
<img src="http://upfile.case-mod.net/www.case-mod.net/2011/Mar/case-mod.net1300046309.jpg" alt="" /><br />
人还是挺多了呵呵<br />
<img src="http://upfile.case-mod.net/www.case-mod.net/2011/Mar/case-mod.net1300046340.jpg" alt="很不好意思的说 这个图里找到了我一个后脑勺" /><br />
很不好意思的说 这个图里找到了我一个后脑勺. 呵呵<br />
<img src="http://upfile.case-mod.net/www.case-mod.net/2011/Mar/case-mod.net1300046553.jpg" alt="那天的HTML5贴纸" /><br />
那天的贴纸</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/journal/20110314/gtug-3-11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>node.js 初体验</title>
		<link>http://qlj.sh.cn/web/20110312/node-js-1/</link>
		<comments>http://qlj.sh.cn/web/20110312/node-js-1/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 19:31:23 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1110</guid>
		<description><![CDATA[依据Google著名的开源JavaScript引擎V8来进行二次开发的Web I/O服务器（http://nodejs.org/）。V8本身是非常快的JavaScript引擎，处理JS执行运行的速度非常高。相关测试表明，FireFox、Opera和IE的JS引擎速度都不及V8来得快。而且，还可以说，只要浏览器之间的JS引擎大战一日不减，NodeJs就可以从中受益。有竞争才有进步：）。
以上简介 网络复制。。不介绍了

从官方 下载了NODE
./configure
make
make install
完成安装
其中需要安装libssl-dev
安装完后看下版本吧
yingouqlj@Compaq-321:~/temp/node-v0.4.2$ node -v
v0.4.2
第一次使用 当然尝试下helloworld
不知道 网上的都是0.2X 的版本还是 转载后 少了表单符号。。网上好多示例执行都有问题
剧烈 很多出现 res.close（）  报错
或者在OSCHINA上看到的。 居然字符串都没有引号。 
最后找到了官方正确的示例。对比下 没有那个出错的 RES。CLOSE

var sys=require&#40;'sys'&#41;,http=require&#40;'http'&#41;;
var server=http.createServer&#40;function&#40;req,res&#41;&#123;
res.writeHeader&#40;200,&#123;'Content-Type':'text/plain'&#125;&#41;;
res.end&#40;&#34;hello world&#34;&#41;;
&#125;&#41;
server.listen&#40;7581,'127.0.0.1'&#41;;
sys.puts&#40;&#34;run&#34;&#41;;

保存  后运行 node 文件名
然后访问本地 127.0.0.1:7581
即可看到 HELLOWORLD
这些代码虽然都是网络复制的。。 但为什么网上很多都是报错的。。是因为版本吗？
]]></description>
			<content:encoded><![CDATA[<p>依据Google著名的开源JavaScript引擎V8来进行二次开发的Web I/O服务器（http://nodejs.org/）。V8本身是非常快的JavaScript引擎，处理JS执行运行的速度非常高。相关测试表明，FireFox、Opera和IE的JS引擎速度都不及V8来得快。而且，还可以说，只要浏览器之间的JS引擎大战一日不减，NodeJs就可以从中受益。有竞争才有进步：）。<br />
以上简介 网络复制。。不介绍了<br />
<span id="more-1110"></span><br />
从官方 下载了NODE<br />
./configure<br />
make<br />
make install<br />
完成安装<br />
其中需要安装libssl-dev<br />
安装完后看下版本吧<br />
yingouqlj@Compaq-321:~/temp/node-v0.4.2$ node -v<br />
v0.4.2</p>
<p>第一次使用 当然尝试下helloworld<br />
不知道 网上的都是0.2X 的版本还是 转载后 少了表单符号。。网上好多示例执行都有问题<br />
剧烈 很多出现 res.close（）  报错<br />
或者在OSCHINA上看到的。 居然字符串都没有引号。 </p>
<p>最后找到了官方正确的示例。对比下 没有那个出错的 RES。CLOSE</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> sys<span style="color: #339933;">=</span>require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'sys'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>http<span style="color: #339933;">=</span>require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'http'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> server<span style="color: #339933;">=</span>http.<span style="color: #660066;">createServer</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>req<span style="color: #339933;">,</span>res<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
res.<span style="color: #660066;">writeHeader</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">200</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'Content-Type'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'text/plain'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
res.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hello world&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
server.<span style="color: #660066;">listen</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">7581</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'127.0.0.1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
sys.<span style="color: #660066;">puts</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;run&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>保存  后运行 node 文件名<br />
然后访问本地 127.0.0.1:7581<br />
即可看到 HELLOWORLD</p>
<p>这些代码虽然都是网络复制的。。 但为什么网上很多都是报错的。。是因为版本吗？</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20110312/node-js-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php延时更新点击数[文件缓存]</title>
		<link>http://qlj.sh.cn/php/20110309/php_lazyinsert_num/</link>
		<comments>http://qlj.sh.cn/php/20110309/php_lazyinsert_num/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 16:56:05 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[thinkphp]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1108</guid>
		<description><![CDATA[想法来源
用户积分增加
列入 用户访问空间时增加1分
用户首次登陆增加10分
那么每次操作都要insert一次
这显然很浪费
如果可以缓存一次性写入那么就可以降低MYSQL的压力了
像上面的情况我只要一次性增加11分即可
在THINKPHP中找到了方法
下面代码转载自THINKPHP(advmodel.class.php)

setLazyInc&#40;$field,$condition='',$step=1,$lazyTime=0&#41; &#123; //缓存累加
        if&#40;empty&#40;$condition&#41; &#38;&#38; isset&#40;$this-&#62;options&#91;'where'&#93;&#41;&#41;
            $condition   =  $this-&#62;options&#91;'where'&#93;;
        if&#40;empty&#40;$condition&#41;&#41; &#123; // 没有条件不做任何更新
            return false;
 [...]]]></description>
			<content:encoded><![CDATA[<p>想法来源</p>
<p>用户积分增加</p>
<p>列入 用户访问空间时增加1分</p>
<p>用户首次登陆增加10分</p>
<p>那么每次操作都要insert一次</p>
<p>这显然很浪费</p>
<p>如果可以缓存一次性写入那么就可以降低MYSQL的压力了</p>
<p>像上面的情况我只要一次性增加11分即可</p>
<p>在THINKPHP中找到了方法</p>
<p>下面代码转载自<a href="http://qlj.sh.cn/tag/thinkphp/">THINKPHP</a>(advmodel.class.php)</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">setLazyInc<span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #339933;">,</span><span style="color: #000088;">$condition</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$step</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #000088;">$lazyTime</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//缓存累加</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$condition</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'where'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
            <span style="color: #000088;">$condition</span>   <span style="color: #339933;">=</span>  <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'where'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$condition</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// 没有条件不做任何更新</span>
            <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lazyTime</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">// 延迟写入</span>
            <span style="color: #000088;">$guid</span> <span style="color: #339933;">=</span>  <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$field</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'_'</span><span style="color: #339933;">.</span><span style="color: #990000;">serialize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$condition</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$step</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">lazyWrite</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #339933;">,</span><span style="color: #000088;">$step</span><span style="color: #339933;">,</span><span style="color: #000088;">$lazyTime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">===</span> <span style="color: #000088;">$step</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 等待下次写入</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setField</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'exp'</span><span style="color: #339933;">,</span><span style="color: #000088;">$field</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'+'</span><span style="color: #339933;">.</span><span style="color: #000088;">$step</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$condition</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> lazyWrite<span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #339933;">,</span><span style="color: #000088;">$step</span><span style="color: #339933;">,</span><span style="color: #000088;">$lazyTime</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>   
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">!==</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span> <span style="color: #339933;">=</span> F<span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// 存在缓存写入数据</span>
            <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span>F<span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'_time'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #000088;">$lazyTime</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">// 延时更新时间到了，删除缓存数据 并实际写入数据库</span>
                F<span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                F<span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'_time'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">return</span> <span style="color: #000088;">$value</span><span style="color: #339933;">+</span><span style="color: #000088;">$step</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">// 追加数据到缓存</span>
                F<span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #339933;">,</span><span style="color: #000088;">$value</span><span style="color: #339933;">+</span><span style="color: #000088;">$step</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// 没有缓存数据</span>
            F<span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #339933;">,</span><span style="color: #000088;">$step</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #666666; font-style: italic;">// 计时开始</span>
            F<span style="color: #009900;">&#40;</span><span style="color: #000088;">$guid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'_time'</span><span style="color: #339933;">,</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span></pre></div></div>

<p>上面有个 FUNCTION F 在FACTIONS.PHP</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">// 快速文件数据读取和保存 针对简单类型数据 字符串、数组
function F($name,$value='',$path=DATA_PATH) { //修改$path为自己的缓存路径
    static $_cache = array();
    $filename   =   $path.$name.'.php';
    if('' !== $value) {
        if(is_null($value)) {
            // 删除缓存
            return unlink($filename);
        }else{
            // 缓存数据
            $dir   =  dirname($filename);
            // 目录不存在则创建
            if(!is_dir($dir))  mkdir($dir);
            return file_put_contents($filename,&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span>\nreturn <span style="color: #0000ff;">&quot;.var_export(<span style="color: #006699; font-weight: bold;">$value</span>,true).&quot;</span><span style="color: #339933;">;</span>\n<span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;);
        }
    }</pre></div></div>

<p>调用方法</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">setLazyDec<span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #339933;">,</span><span style="color: #000088;">$condition</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$step</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #000088;">$lazyTime</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> 
<span style="color: #666666; font-style: italic;">//根据需要 自己修改吧我加入了table 等多个</span>
<span style="color: #000000; font-weight: bold;">function</span> lazyaddint<span style="color: #009900;">&#40;</span><span style="color: #000088;">$table</span><span style="color: #339933;">,</span><span style="color: #000088;">$field</span><span style="color: #339933;">,</span><span style="color: #000088;">$condition</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$num</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #000088;">$ltime</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #666666; font-style: italic;">//调用方法 更具实际需要修改吧</span>
lazyaddint<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'表明'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'字段名'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;WHERE条件&quot;</span><span style="color: #339933;">,</span>增加数量<span style="color: #339933;">,</span>缓存时间<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>此方法 会在缓存目录中创建2个临时文件</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">//07e8c1b06dbdc4f282bf7bf9311a1fce_time.php
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">1299602761</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
//07e8c1b06dbdc4f282bf7bf9311a1fce.php
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">21</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>根据时间超过 设定的时间就写入数据库<br />
此方法已经适用无问题<br />
感觉方法不太好.. 期待MEMCACHED的方式</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/php/20110309/php_lazyinsert_num/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10张凡客礼品卡/优惠券和密码 2011年2月底结束</title>
		<link>http://qlj.sh.cn/ad/20110215/vancal_giftcard/</link>
		<comments>http://qlj.sh.cn/ad/20110215/vancal_giftcard/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 14:31:03 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[ad]]></category>
		<category><![CDATA[凡客]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1106</guid>
		<description><![CDATA[凡客诚品邮件过来的卡号跟密码
顺序自己试 一次性用品  点查询 如果可以使用就用吧 ,不能使用就是已经有人用了
面值10圆
您礼品卡的余额为10.00元，有效期截止2011-02-28





















卡 号
密 码


1SCCL1104282X
57745797


1SCCL1104282Y
53541496


1SCCL1104282Z
13692279


1SCCL11042830
16297680


1SCCL11042831
27648202















]]></description>
			<content:encoded><![CDATA[<p>凡客诚品邮件过来的卡号跟密码</p>
<p>顺序自己试 一次性用品  点查询 如果可以使用就用吧 ,不能使用就是已经有人用了</p>
<p>面值10圆</p>
<p><span style="color: #ff0000;">您礼品卡的余额为10.00元，有效期截止2011-02-28</span></p>
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td><img alt="" /></td>
</tr>
<tr>
<td><img alt="" /></td>
</tr>
<tr>
<td><img alt="" /></td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><img alt="" /></td>
<td>
<table style="height: 195px;" cellspacing="0" cellpadding="0" width="534" align="center">
<tbody>
<tr>
<td>卡 号</td>
<td>密 码</td>
</tr>
<tr>
<td>1SCCL1104282X</td>
<td>57745797</td>
</tr>
<tr>
<td>1SCCL1104282Y</td>
<td>53541496</td>
</tr>
<tr>
<td>1SCCL1104282Z</td>
<td>13692279</td>
</tr>
<tr>
<td>1SCCL11042830</td>
<td>16297680</td>
</tr>
<tr>
<td>1SCCL11042831</td>
<td>27648202</td>
</tr>
</tbody>
</table>
</td>
<td><img alt="" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td><img alt="" /></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/ad/20110215/vancal_giftcard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>视觉欺骗变真男人(肌肉的秘密).生日快乐</title>
		<link>http://qlj.sh.cn/journal/20110205/visual_deception/</link>
		<comments>http://qlj.sh.cn/journal/20110205/visual_deception/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 19:08:51 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[journal]]></category>
		<category><![CDATA[第几个100天]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1098</guid>
		<description><![CDATA[半年没啥动静的博客..真对不起我自己..HOHO .借着生日.发篇文章凑个数.
首先.事件的开端是..
阴沟历经3个月的努力..从3个俯卧撑可以坚持到30个了..(虽然不是标准的30个&#8230;但也算可以凑数啊&#8230;前20个没问题..后10个人挺不直了)
接着..引起了我们为人民服务的好敬察胖绝泪的兴趣&#8230;

&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-广告插入&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
先放绝泪的100天..HOHO .感谢在我生日那晚上..奋战3小时学100天唱给我听的绝泪..

欢迎 献花 http://fc.5sing.com/3208875.html
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-广告结束&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
然后提到了胖绝泪的装备.. 啥哑铃..啥滚轮神马的..
绝泪 1:48:47
大哑铃 120斤一个·你看过了？
沟沟1:48:57
,..没..
绝泪 1:48:58
对了·还有JJ专用的滚轮·
绝泪 1:49:01
练腹肌的·
绝泪 1:49:05
林俊杰亲身示范
再之后..亮肌肉了&#8230;

 (图片留作纪念&#8230;绝泪被刺激到了&#8230;)

死胖子超受打击啊&#8230;.
我想告诉他这.不是真的.哈哈
首先yingou与大部分的geek们一样.

 没有肌肉.不壮but 有力 还很给力


图片是真实的..不是PS&#8230;
可是&#8230;要是真这样..我咋还只能做30个俯卧撑呢&#8230;
哈哈
放一个视频.
一看便知晓..
 不要管他说什么&#8230;看到最后 那几秒 你便明白

哈..我只是..吧手转过来&#8230;让手臂看起来细一点..
然后让摄像头更贴近肌肉的位置罢了&#8230;而手就有点远了..
HOHO 娱乐下..
顺便感谢下我们人好脾气又温和的双子座死胖子绝泪..啊哈哈
]]></description>
			<content:encoded><![CDATA[<p>半年没啥动静的博客..真对不起我自己..HOHO .借着生日.发篇文章凑个数.<br />
首先.事件的开端是..<br />
阴沟历经3个月的努力..从3个俯卧撑可以坚持到30个了..(虽然不是标准的30个&#8230;但也算可以凑数啊&#8230;前20个没问题..后10个人挺不直了)<br />
接着..引起了我们为人民服务的好敬察胖绝泪的兴趣&#8230;<br />
<span id="more-1098"></span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-广告插入&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
先放绝泪的100天..HOHO .感谢在我生日那晚上..奋战3小时学100天唱给我听的绝泪..<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="64" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowScriptAccess" value="sameDomain" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="src" value=" http://l.5sing.com/player.swf?songtype=fc&amp;songid=3208875" /><embed type="application/x-shockwave-flash" width="300" height="64" src=" http://l.5sing.com/player.swf?songtype=fc&amp;songid=3208875" bgcolor="#ffffff" quality="high" allowscriptaccess="sameDomain"></embed></object><br />
欢迎 献花<a href="http://fc.5sing.com/3208875.html"> http://fc.5sing.com/3208875.html</a><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-广告结束&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
然后提到了胖绝泪的装备.. 啥哑铃..啥滚轮神马的..</p>
<blockquote><p>绝泪 1:48:47<br />
大哑铃 120斤一个·你看过了？<br />
沟沟1:48:57<br />
,..没..<br />
绝泪 1:48:58<br />
对了·还有JJ专用的滚轮·<br />
绝泪 1:49:01<br />
练腹肌的·<br />
绝泪 1:49:05<br />
林俊杰亲身示范</p></blockquote>
<p>再之后..亮肌肉了&#8230;</p>
<p><img src="http://upfile.case-mod.net/www.case-mod.net/2011/Feb/qlj.sh.cn1297452343.jpg" alt="" /><br />
<strong> (图片留作纪念&#8230;绝泪被刺激到了&#8230;)</strong></p>
<p><strong></strong><br />
死胖子超受打击啊&#8230;.<br />
我想告诉他这.不是真的.哈哈<br />
首先yingou与大部分的<a href="http://qlj.sh.cn/tag/geek/">geek</a>们一样.<br />
<strong><br />
<span style="color: #ff0000;"> 没有肌肉.不壮but 有力 还很给力</span><br />
</strong></p>
<p><img src="http://upfile.case-mod.net/www.case-mod.net/2011/Feb/qlj.sh.cn1297452483.jpg" alt="" /></p>
<p>图片是真实的..不是PS&#8230;<br />
可是&#8230;要是真这样..我咋还只能做30个俯卧撑呢&#8230;<br />
哈哈<br />
放一个视频.<br />
一看便知晓..<br />
<span style="color: #0000ff;"> 不要管他说什么&#8230;看到最后 那几秒 你便明白</span><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.tudou.com/v/tEvysCuZlQM/v.swf" /><param name="wmode" value="opaque" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="400" src="http://www.tudou.com/v/tEvysCuZlQM/v.swf" allowfullscreen="true" wmode="opaque"></embed></object></p>
<p>哈..我只是..吧手转过来&#8230;让手臂看起来细一点..<br />
然后让摄像头更贴近肌肉的位置罢了&#8230;而手就有点远了..</p>
<p>HOHO 娱乐下..</p>
<p>顺便感谢下我们人好脾气又温和的双子座死胖子绝泪..啊哈哈</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/journal/20110205/visual_deception/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UBUNTU默认界面关闭,最小化,最大化回到右边</title>
		<link>http://qlj.sh.cn/linux/20101111/ubuntu-close-float-right/</link>
		<comments>http://qlj.sh.cn/linux/20101111/ubuntu-close-float-right/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 02:38:00 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1096</guid>
		<description><![CDATA[不容易习惯这感觉。。
按Alt+F2快捷键打开”运行对话框”，并输入gconf-editor或者直接在终端中输入gconf-editor命令，打开Ubuntu的 Configuration Editor对话框。找到”apps/metacity/general”项，在右边的列表中找到”button_layout”键，双击修改它的值为
menu:maximize,minimize,close
保存并关闭Configuration Editor。
]]></description>
			<content:encoded><![CDATA[<p>不容易习惯这感觉。。<br />
按Alt+F2快捷键打开”运行对话框”，并输入gconf-editor或者直接在终端中输入gconf-editor命令，打开Ubuntu的 Configuration Editor对话框。找到”apps/metacity/general”项，在右边的列表中找到”button_layout”键，双击修改它的值为</p>
<p>menu:maximize,minimize,close</p>
<p>保存并关闭Configuration Editor。</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/linux/20101111/ubuntu-close-float-right/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

