<?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>Mon, 30 Aug 2010 05:38:12 +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>Google吃豆人游戏的杯具：浪费全球482万工时</title>
		<link>http://qlj.sh.cn/web/20100602/google-pac-man/</link>
		<comments>http://qlj.sh.cn/web/20100602/google-pac-man/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 12:23:14 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1087</guid>
		<description><![CDATA[这个真有意思 哈哈
我跟越 还2个人一起双人玩。。
比单人简单多了。
还想玩。。。 不过找不到页面了
Google为纪念经典游戏PAC-MAN（吃豆人）30周年而于上周五推出的Doodle大受欢迎，有人评论说“吃豆人”毁掉了数百万美元的生产力，然而Rescuetime的统计显示，不是数百万而是一亿多美元。 多数人都是把Google作为一个跳板，一种导航工具，因此在Google搜索页面停留的时间很短，至多十几秒钟。但当PAC-MAN推出之后，Google全球的数亿用户中，有一部分人可能会在主页停留更长时间去玩吃豆人游戏。
Rescuetime对比了PAC-MAN日与过去周五的流量差异，发现了明显区别。Rescuetime选择了一个随机子集，共包含11000余人，他们停留在Google主页上的时间达到了3百万秒，平均每位用户在Google.com上多停留了36秒。根据Wolfram Alpha的Google 流量统计，5月23日Google的全球独立访问用户为504,703,000，以此计算PAC-MAN浪费了全球4,819,352工时，以每小时25美元计算，总共浪费了120,483,800美元。这笔钱足以雇用Google所有的19,835名员工，包括Larry和Sergey，为你工作6周的时间。
]]></description>
		<wfw:commentRss>http://qlj.sh.cn/web/20100602/google-pac-man/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>ubuntu one 无法 使用问题解决中。。</title>
		<link>http://qlj.sh.cn/linux/ubuntu-linux/20100523/ubuntu-one-01/</link>
		<comments>http://qlj.sh.cn/linux/ubuntu-linux/20100523/ubuntu-one-01/#comments</comments>
		<pubDate>Sat, 22 May 2010 18:31:30 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntuone]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1084</guid>
		<description><![CDATA[UBUNTU one 注册完成后 提示 
add your computer to the list of devices that sync with your personal cloud. To add your computer to your Ubuntu One account, click on the
但是无法 找到这个  Add this Computer button 按钮
使用命令
u1sync &#8211;authorize
等待几秒。。
FIREFOX会跳转网页


Traceback &#40;most recent call last&#41;:
  File &#34;/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py&#34;, line 251, in dataReceived
    why = self.lineReceived&#40;line&#41;
 [...]]]></description>
		<wfw:commentRss>http://qlj.sh.cn/linux/ubuntu-linux/20100523/ubuntu-one-01/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>笑谈QQmail的大容量</title>
		<link>http://qlj.sh.cn/web/20100520/qqmail-so-big/</link>
		<comments>http://qlj.sh.cn/web/20100520/qqmail-so-big/#comments</comments>
		<pubDate>Wed, 19 May 2010 19:12:08 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[qq]]></category>
		<category><![CDATA[腾讯]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1082</guid>
		<description><![CDATA[QQ邮箱正可谓巨大。。
大到了。。就想我的硬盘一般。。。
如此存放EMAIL 。。。
要放到啥时候才能满
邮箱容量：128G (已使用1.33G，1%)
受诱惑了吧。

更好的是。。QQ经常在线 用QQMAIL 还能直接收到邮件提醒。。
于是呼
打算代收一下GMAIL 。。
GMAIL 很方便很好用。。 垃圾过滤的也比其他任何一个强（自己用的几个目前是GMAIL 最强吧 不排除更好用的收费邮箱的存在）
就这样填写了自己GMAIL的帐户 密码
才收了几十封就停了
也没在意。
反正是代收。。 方便提醒邮件而已。。
没想到过了2天。。
收到TENCENT发来的邮件
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
您的邮箱暂时不能收取大邮件    发件人信息
发件人：QQ邮箱管理员 &#60;10000@qq.com&#62;  查看 添加
时   间：2010年5月11日(星期二) 凌晨0:06  纯文本 &#124;
收件人： yingouqlj
附   件：0 个 ( )
大   小：2.3K
打印 &#124; 显示邮件原文 &#124; 导出为eml文件 &#124; 邮件有乱码？ &#124; 转发到群邮件 &#124; 保存到记事本 &#124; 作为附件转发
备　注： 编辑  删除
请在此输入备注&#8230;
取消
请认准此标志，拥有此标志的才是发自腾讯公司的系统邮件。
标记：已将此邮件标记为待办邮件。 取消待办
xcheatcode:0
尊敬的用户，
您好！
近期您的邮箱集中收到了过多的大邮件。可能是邮箱遭遇到恶意邮件大批量攻击。
为了您的邮箱和系统的安全，最近5日内，此邮箱将不再接收大于5M的邮件。
在此期间，对于普通附件不超过5M（超大附件不受限制）的邮件，仍然可以正常收取。在5日之后，邮箱将自动恢复正常。
敬请知晓。谢谢对QQ邮箱的支持。
QQ邮箱管理员
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
HOHO
之前用GMAIL 发了几个 喊附件的邮件 [...]]]></description>
		<wfw:commentRss>http://qlj.sh.cn/web/20100520/qqmail-so-big/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>smarty cache缓存的使用</title>
		<link>http://qlj.sh.cn/php/20100520/smarty-cache/</link>
		<comments>http://qlj.sh.cn/php/20100520/smarty-cache/#comments</comments>
		<pubDate>Wed, 19 May 2010 18:46:00 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[smarty]]></category>
		<category><![CDATA[缓存]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1080</guid>
		<description><![CDATA[机器实在太老了。。
在增加到8W条文章
TAG表已经增加到了30多万条了
10 个表  总计 415,762
在我那个老电脑上。。（p4 1.6   256内存）
很快。。内存不足了。。只剩下4MB剩余内存
于是TAOBAO上买了个 512的SDRAM

MYSQL 真是个费劲的家伙
原本将一些 列表等。缓存了。已减少查询。。在5W文章内。还不是很吃力
没想到 到了8W后。 要等好几秒才刷出来。。而PHP显示的执行时间却依然是不到0.2秒
在加内存后。
已经可以正常运行了。
但是看CPU使用率还是挺高的 于是决定。直接使用SMARTY缓存
首页缓寸一天

$Smarty -&#62; caching=true;
$Smarty-&#62;cache_lifetime = 86400;
if&#40;!$Smarty-&#62;is_cached&#40;'index.html'&#41;&#41;&#123;
&#160;
......
&#160;
&#125;
&#160;
//文章页 缓存 1周
$Smarty -&#62; caching=true;
$Smarty-&#62;cache_lifetime = 7*86400;
if&#40;!$Smarty-&#62;is_cached&#40;'article.php',$id&#41;&#41;&#123;
&#125;

为了防止把执行速度也CACHE了

function nocache_block&#40;$params,$content,Smarty $Smarty&#41;&#123;
	return $content;
	&#125;
	$Smarty -&#62; register_block&#40;'nocache','nocache_block',false&#41;;

调用

	&#60;p&#62;
	Processed in &#60;!--{nocache}--&#62;&#60;!--{$runtime}--&#62;&#60;!--{/nocache}--&#62; &#60;/p&#62;

引用另一种防止CACHE的方法
1、使用insert函数使模板的一部分不被缓存
首先在php页面中

&#60;?php
 function insert_get_now_time&#40;&#41;
 &#123;
  return date&#40;&#34;Y-m-d h:i:s&#34;,time&#40;&#41;+3600*8&#41;;
 &#125;
&#160;
&#160;
&#160;
&#160;
&#160;
?&#62;
//html调用方法
现在时间为：&#60;{insert name=&#34;get_now_time&#34;}&#62;

意：首先 函数命名一定要 以 insert_ 开头 后面紧跟着 模版中的函数名字
      只要定义了函数 smarty [...]]]></description>
		<wfw:commentRss>http://qlj.sh.cn/php/20100520/smarty-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SINA邮箱90天不用就删好。失望</title>
		<link>http://qlj.sh.cn/news/20100505/sinamail-90day/</link>
		<comments>http://qlj.sh.cn/news/20100505/sinamail-90day/#comments</comments>
		<pubDate>Wed, 05 May 2010 07:02:38 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[sina]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1078</guid>
		<description><![CDATA[今天上了下SINA邮箱。。
不知道啥时候注册的。。
基本不用。。
有时候注册信息填填资料
没想到。。居然会这样。。哎。。。
还好一直用的是 GMAIL。。。注册信息留 163 。。。

尊敬的yingouqlj：
    欢迎再次使用新浪网为您提供的免费电子邮件系统！
    新浪网为您提供的免费电子邮箱：yingouqlj@sina.com，已经被激活。您可以继续使用她发送或接收电子邮件。
    在过去的90天中，您没有通过任何形式（WEB/POP3）使用过此邮箱。根据《新浪免费邮件服务使用协议》，原始的个人资 料、通讯录、及邮箱里所有的电子邮件已经被清除，且不可恢复。
    友情提示：请您至少在未来的每90天内登录一次此邮箱，以便使其处于正常使用状态，可以正常收发朋友的邮件。若在任意连续的90天内，您没有通过任何形式 使用过此邮箱，它将再次被冻结，其间发送到此邮箱的邮件将被退还给发件人。
    如果您使用Outlook、Foxmail等客户端软件管理邮件，请注意最新的邮件服务器设置。
        收信（pop3）服务器：pop.sina.com
        发信（smtp）服务器：smtp.sina.com
    请选择smtp服务器要求身份验证选项。
    如果您有任何疑问，请浏览新浪邮箱帮助中心。
    感谢您对新浪网的支持！
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
SINA.com.cn  [...]]]></description>
		<wfw:commentRss>http://qlj.sh.cn/news/20100505/sinamail-90day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一个简单的短消息JQUERY+AJAX PUSH</title>
		<link>http://qlj.sh.cn/php/20100418/easy-jqueryajax-push/</link>
		<comments>http://qlj.sh.cn/php/20100418/easy-jqueryajax-push/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 13:53:46 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[push]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1073</guid>
		<description><![CDATA[哈。刚接触jquery
以前连JAVASCRIPT都不会。
JQUERY好方便。很容易理解。
几行代码就足够搞定了


		function checknewpm&#40;&#41;&#123;
             $.get&#40;&#34;pm.php?view=checknew&#34;, function&#40;data&#41;&#123;
$&#40;&#34;#npm&#34;&#41;.html&#40;data&#41;&#125;&#41;;
		&#125;
setInterval&#40;&#34;checknewpm()&#34;,60000&#41;;

PHP部分

$query = $db-&#62;query&#40;&#34;SELECT COUNT(pmid) from qlj_pm where tuid='{$qljid}' and isred ='0'&#34;&#41;;
$newpm= $db-&#62;result&#40;$query, 0&#41;;
if&#40;$newpm==0&#41;&#123;
$newpm=&#34;&#34;;
&#125;
echo $newpm;//就一个数字。不需要JSON了。。嘿嘿。懒。

简单方便。哈哈。。。
]]></description>
		<wfw:commentRss>http://qlj.sh.cn/php/20100418/easy-jqueryajax-push/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>php+mysql模仿android中短信界面的效果</title>
		<link>http://qlj.sh.cn/php/20100413/phpmysql-android-mms/</link>
		<comments>http://qlj.sh.cn/php/20100413/phpmysql-android-mms/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 20:11:01 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1071</guid>
		<description><![CDATA[十分喜欢android的短信
像 QQ一样。。
缺点是。。 发消息也想QQ一样。。。
一条接一条。。 钱也一条接一条的扣。。
哈哈
现在大部分网站的短信都类似于 GMAIL 一样。或者说。跟论坛主题一样。 。 一个贴。。后面回复。。
改变下模式。。做自己喜欢的效果。。

android短信的效果
对方号码 + 最后一条消息内容（简略） +条数
那变成站内信的效果就是
发信人资料  + 简短消息 +条数+ 最后时间
下面是PHP +MYSQL部分
觉得自己的MYSQL太烂了 希望有人能看到这个贴后优化下查询过程

$query=$db-&#62;query&#40;&#34;select * from qlj_pm where pmid in (SELECT max(pmid) FROM qlj_pm where tuid='{$qljid}' GROUP BY fuid )&#34;&#41;;
while&#40;$res=$db-&#62;fetch_array&#40;$query&#41;&#41;
&#123;
$count=$db-&#62;fetch_array&#40;$db-&#62;query&#40;&#34;select count(pmid) from qlj_pm where (fuid='{$res['fuid']}' and tuid='{$qljid}') or  (fuid='{$qljid}' and tuid='{$res['fuid']}')&#34;&#41;&#41;;
$res&#91;'count'&#93;=$count&#91;'count(pmid)'&#93;;//这个是条数
&#160;
&#125;

]]></description>
		<wfw:commentRss>http://qlj.sh.cn/php/20100413/phpmysql-android-mms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css3字体阴影text shadow</title>
		<link>http://qlj.sh.cn/web/20100413/css3-text-shadow/</link>
		<comments>http://qlj.sh.cn/web/20100413/css3-text-shadow/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 17:17:51 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[字体]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1069</guid>
		<description><![CDATA[text-shadow基本语法

text-shadow ： none &#124; &#60;length&#62; none &#124; &#91;&#60;shadow&#62;, &#93; * &#60;shadow&#62; 或none &#124; &#60;color&#62; &#91;, &#60;color&#62; &#93;*

 ： 指定颜色。
 ： 由浮点数字和单位标识符组成的长度值。可为负值。指定阴影的水平延伸距离。
 ： 由浮点数字和单位标识符组成的长度值。不可为负值。 指定模糊效果的作用距离。如果你仅仅需要模糊效果，将前两个 length 全部设定为 0 。请参阅 长度单位。

.text_shadow&#123;
    width:200px; 
    padding:40px 20px; 
    background:#a0b3d6; 
    text-shadow:2px 2px 1px white;
&#125;

下面是一个火焰字体的效果

#xibit&#123; padding-top:10px;text-align:center;text-shadow:0 0 4px [...]]]></description>
		<wfw:commentRss>http://qlj.sh.cn/web/20100413/css3-text-shadow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB转UNIX_TIMESTAMP</title>
		<link>http://qlj.sh.cn/software/20100402/vb-unix_timestamp/</link>
		<comments>http://qlj.sh.cn/software/20100402/vb-unix_timestamp/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 06:00:05 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1067</guid>
		<description><![CDATA[用PHP 一直是UNIX_TIMESTAMP存数据库的
但是VB没有这个


Option Explicit
Dim DateTime As String
&#160;
Public Function unixtime(ByVal DateTime As String)
&#160;
unixtime = DateDiff(&#34;s&#34;, &#34;01/1/1970 12:00:00 AM&#34;, DateTime)
End Function
'使用方法
Private Sub Command7_Click()
Textid.Text = unixtime(Now)
End Sub

再看下VB DateDiff函数
返回 Variant (Long) 的值，表示两个指定日期间的时间间隔数目。
语法
DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])
DateDiff 函数语法中有下列命名参数：
部分 描述
interval 必要。字符串表达式，表示用来计算date1 和 date2 的时间差的时间间隔
Date1□date2 必要；Variant (Date)。计算中要用到的两个日期。
Firstdayofweek 可选。指定一个星期的第一天的常数。如果未予指定，则以星期日为第一天。
firstweekofyear 可选。指定一年的第一周的常数。如果未予指定，则以包含 1 月 1 日的星期为第一周。 
设置
interval 参数的设定值如下：
设置 描述
yyyy 年
q 季
m 月
y 一年的日数
d 日
w 一周的日数
ww 周
h [...]]]></description>
		<wfw:commentRss>http://qlj.sh.cn/software/20100402/vb-unix_timestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python time模块详解(转)</title>
		<link>http://qlj.sh.cn/python/20100402/python-time/</link>
		<comments>http://qlj.sh.cn/python/20100402/python-time/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 19:29:16 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1065</guid>
		<description><![CDATA[刚开始学习python
把相关的内容做上记号
python 的内嵌time模板翻译及说明
一、简介
  time模块提供各种操作时间的函数
  说明：一般有两种表示时间的方式:
       第一种是时间戳的方式(相对于1970.1.1 00:00:00以秒计算的偏移量),时间戳是惟一的
       第二种以数组的形式表示即(struct_time),共有九个元素，分别表示，同一个时间戳的struct_time会因为时区不同而不同

    year (four digits, e.g. 1998)
    month (1-12)
    day (1-31)
    hours (0-23)
    minutes (0-59)
    seconds (0-59)
  [...]]]></description>
		<wfw:commentRss>http://qlj.sh.cn/python/20100402/python-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
