<?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>毛蛋(maoegg)网</title>
	<atom:link href="http://www.maoegg.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maoegg.com</link>
	<description>——只为技术而存在</description>
	<lastBuildDate>Fri, 10 Feb 2012 08:14:46 +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>android手机忘记图形解锁密码</title>
		<link>http://www.maoegg.com/android-phone-forget-the-graphical-unlock-password/</link>
		<comments>http://www.maoegg.com/android-phone-forget-the-graphical-unlock-password/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 08:14:46 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[Android国度]]></category>
		<category><![CDATA[android忘记密码]]></category>
		<category><![CDATA[android手机忘记图形解锁密码]]></category>
		<category><![CDATA[android解锁密码]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1394</guid>
		<description><![CDATA[图形解锁忘记后的解决办法(如何破解安卓图形解锁画面)：
忘记密码时的手机状态：
1、没有设置同步GOOGLE账号；
2、锁定后拔入电话使用“房子”菜单键无法返回主界面；
3、错误解锁N次都不会出现“忘记解锁”图形按钮；
解决办法：（以小米手机为例）
1、下载“豌豆荚手机精灵”安装到电脑；
2、打开“小米”并连接USB数据线至电脑；
3、安装小米手机USB驱动；
4、打开“豌豆荚手机精灵”；
5、点选菜单栏里的“应用 游戏”，再点“左边”的“系统应用”，可以看到中间出现了手机默认装有的一些程序；
6、托动滚动条到最底部，点选定“Android动态壁纸“，再点击上部的”卸载“；
7、此时手机端会有程序要获取手机ROOT（最高权限）的提示，按提示点“返回”；
8、手机返回到”豌豆荚守护精灵“的绿色背景画面时，点”关闭USB模式“。拔掉数据线；
9、此时手机会跳过”图形解锁“回到桌面；
10、点手机端的”设置“-”个人“-”账户和同步“-”添加账号“，输入一个GOOLGE账号（没有的话在电脑上注册个），等待同步完成。
11、关闭手机重启，随便尝试输错误解锁图形5次后便会出现“忘记解锁”的图形按钮；
12、点击“忘记解锁”图形按钮，输入第10步那里的GOOGLE账号和密码，之后便可以重新设置新的解锁图形了
写在后面：
1、其实如果用户事先已经有在手机上保存过GOOGLE的帐号跟密码的话，可以忽略上面的，直接选择“忘记解锁”的图形按钮，输入帐号密码就行了。
2、其实走前面1-7这写步骤的目的是为了第8步&#8212;-利用豌豆荚，跳出密码输入的过程，直接进入手机桌面。（而不是真的要卸载某个软件，要的是弹出豌豆荚的界面而已）
]]></description>
		<wfw:commentRss>http://www.maoegg.com/android-phone-forget-the-graphical-unlock-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>厕所马桶被剩饭剩菜堵了（已解决）</title>
		<link>http://www.maoegg.com/toilet-leftovers-blocking-resolved/</link>
		<comments>http://www.maoegg.com/toilet-leftovers-blocking-resolved/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 03:31:32 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[WO的牢骚]]></category>
		<category><![CDATA[厕所堵]]></category>
		<category><![CDATA[厕所被剩饭堵]]></category>
		<category><![CDATA[厕所被堵]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1391</guid>
		<description><![CDATA[厕所马桶被剩饭剩菜堵了，Orz悲催了&#8230;..（至于怎么堵的，就不追究了）
先是用水冲，下不去，反而溢出马桶来，呃&#8230;幸亏没有便便，只有写菜渣跟面条，但是看着也很恶心啊
捅，捅不动&#8230;
垃圾桶里有个串糖葫芦的竹签，捣，捣不动&#8230;
马桶水管的结构是那样的，直棍根本没办法。
把垃圾铲弄进马桶里，把水一点一点的舀出来，中间一直感叹，幸亏只有饭菜，要是有些别的&#8230; 想都想不下去&#8230; 继续舀水吧&#8230;.
卫生间有皮搋子，水还剩下一点的时候用上了这个，但始终没有一点效果
试试用水冲吧，MD，一冲，又满了，又TM溢出来了&#8230;万恶啊，要抓狂了
重复上面的步骤，继续舀水吧，我勒个去
中间手机上网查了一下，有说找物业的，有说买个专用的粗铁丝勾的，有说找小广告疏通下水道的&#8230;.
NND，竟有这种说法，说用手捞出来吃了&#8230;
&#8230;&#8230;
从下班开始，捣鼓了半天，木有任何进展，只是用竹签把菜叶挑出来几片而已
已经八点多了，出去问问物业或找疏通下水道的吧。
楼下值班保安说，估计物业不管，找找通下水道的吧&#8230;
NND，这小区在二环，干净的不得了，哪儿来的小广告啊，出去小区连个纸片子也见不着&#8230;小广告啊

去五金店买专用铁钩？抱歉，这是在二环&#8230;还是去超市看看吧
超市只见着拖把、皮搋子、垃圾篓&#8230;就是没见捅厕所的啊，杯具辽
最终在超市的日化区找到了《管道疏通剂》，竟然有这种神奇的东西&#8230;
本来想，找疏通下水道的，至少也得三五十块，谁知道这个管道疏通剂，不要七八十，也不要五六十，只要十几块，是的，十几块就能买的到，一次买，多次用，一次搞不定，可以再次使用，真是居家旅行
]]></description>
		<wfw:commentRss>http://www.maoegg.com/toilet-leftovers-blocking-resolved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>正则&#8211;进阶</title>
		<link>http://www.maoegg.com/regular-advanced/</link>
		<comments>http://www.maoegg.com/regular-advanced/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 09:20:29 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[PHP之邦]]></category>
		<category><![CDATA[PHP正则]]></category>
		<category><![CDATA[正则]]></category>
		<category><![CDATA[正则表达式]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1385</guid>
		<description><![CDATA[正则表达式(regular  expression)描述了一种字符串匹配的模式，可以用来检查一个串是否含有某种子串、将匹配的子串做替换或者从某个串中取出符合某个条件的子串等。
列目录时，　dir *.txt或ls *.txt中的*.txt就不是一个正则表达式,因为这里*与正则式的*的含义是不同的。
正则表达式是由普通字符（例如字符 a 到  z）以及特殊字符（称为元字符）组成的文字模式。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。

3.1 普通字符
由所有那些未显式指定为元字符的打印和非打印字符组成。这包括所有的大写和小写字母字符，所有数字，所有标点符号以及一些符号。

3.2 非打印字符



字符
含义


\cx
匹配由x指明的控制字符。例如， \cM 匹配一个 Control-M 或回车符。x 的值必须为 A-Z  或 a-z 之一。否则，将 c 视为一个原义的 ‘c’ 字符。


\f
匹配一个换页符。等价于 \x0c 和 \cL。


\n
匹配一个换行符。等价于 \x0a 和 \cJ。


\r
匹配一个回车符。等价于 \x0d 和 \cM。


\s
匹配任何空白字符，包括空格、制表符、换页符等等。等价于 [ \f\n\r\t\v]。


\S
匹配任何非空白字符。等价于 [^ \f\n\r\t\v]。


\t
匹配一个制表符。等价于 \x09 和 \cI。


\v
匹配一个垂直制表符。等价于 \x0b 和 \cK。




3.3 特殊字符
所谓特殊字符，就是一些有特殊含义的字符，如上面说的”*.txt”中的*，简单的说就是表示任何字符串的意思。如果要查找文件名中有＊的文件，则需要对＊进行转义，即在其前加一个\。ls  \*.txt。正则表达式有以下特殊字符。



特别字符
说明


$
匹配输入字符串的结尾位置。如果设置了 RegExp 对象的 Multiline 属性，则 $ 也匹配  ‘\n’ [...]]]></description>
		<wfw:commentRss>http://www.maoegg.com/regular-advanced/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google推出Android版Chrome浏览器</title>
		<link>http://www.maoegg.com/google-launch-android-chrome-browser/</link>
		<comments>http://www.maoegg.com/google-launch-android-chrome-browser/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 01:28:37 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[Android国度]]></category>
		<category><![CDATA[IT新闻]]></category>
		<category><![CDATA[Android Chrome]]></category>
		<category><![CDATA[Android版Chrome]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1388</guid>
		<description><![CDATA[Google为Android智能手机推出Chrome浏览器。
本周二，Google宣布推出Android版Chrome浏览器，它可以用在使用Android 4.0系统的智能手机和平板中。Chrome移动浏览器与桌面版本同样快速，但多了一些修饰功能。




移动版本会解决“手指大但屏幕小”的问题，它提供了一个“链接预览”功能，可以自动缩放链接，帮助用户避免选择错误链接。它还支持用户在地址栏内搜索。和桌面版本一样，移动版也提供匿名模式，可以保护上网隐私。
二者最大的差别在于同步功能。移动版本可以与桌面版本无缝同步，因此，如果用户在桌面浏览器上网，离线之后，再在智能手机和平板上上网，它可以显示离线的地址：同样的地址，同样的浏览历史和同样的书签。
在桌面版中可以打开14个地址标签，通过多任务功能，在移动版本中也可以看到14个标签。用户只要滚动显示屏就可以在不同的标签间切换。在标签内，用户可以向前向后点击，从而获得PC上导航的网址。桌面版中书签网站、常访问的网站也可以在移动版本中很快显示。
Google Chrome资深副总裁皮采（Sundar Pichai）表示：“我们欲将桌面浏览器全部功能带到移动平台中。我们想拓展移动网络的边界。”
根据StatCounter的数据，在桌面浏览器中IE拥有40.6%的份额，居第一。去年11月，Chrome超过了Firefox居第二，它拥有25.7%的份额，Firefox为25.2%。随后是苹果Safari 5.9%，Opera 1.8%。
不过在移动市场仍然没有谁占主导。目前有8.5%的人通过移动设备上网，去年为4.3%。
苹果iPhone预装有Safari浏览器和Google搜索框。微软与RIM合作，在黑莓中提供了必应搜索。用户现在可以从Android Market下载测试版Chrome移动浏览器，它只能在Android 4.0上运行。
Google还表示，会在未来几个月推出完全版移动Chrome浏览器，它会预装到Android 4.0手机和平板中。
皮采说：“我们努力思考移动触摸的每一个功能，从而有了大的进步。”
下载:Chrome Beta for Android
]]></description>
		<wfw:commentRss>http://www.maoegg.com/google-launch-android-chrome-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>正则&#8211;初步</title>
		<link>http://www.maoegg.com/regular-preliminary/</link>
		<comments>http://www.maoegg.com/regular-preliminary/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 09:19:22 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[PHP之邦]]></category>
		<category><![CDATA[PHP正则]]></category>
		<category><![CDATA[正则]]></category>
		<category><![CDATA[正则表达式]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1382</guid>
		<description><![CDATA[1、入门简介
简单的说，正则表达式是一种可以用于模式匹配和替换的强有力的工具。我们可以在几乎所有的基于UNIX系统的工具中找到正则表达式的身影，例如，vi编辑器，Perl或PHP脚本语言，以及awk或sed  shell程序等。此外，象javascript这种客户端的脚本语言也提供了对正则表达式的支持。由此可见，正则表达式已经超出了某种语言或某个系统的局限，成为人们广为接受的概念和功能。
正则表达式可以让用户通过使用一系列的特殊字符构建匹配模式，然后把匹配模式与数据文件、程序输入以及WEB页面的表单输入等目标对象进行比较，根据比较对象中是否包含匹配模式，执行相应的程序。
举例来说，正则表达式的一个最为普遍的应用就是用于验证用户在线输入的邮件地址的格式是否正确。如果通过正则表达式验证用户邮件地址的格式正确，用户所填写的表单信息将会被正常处理；反之，如果用户输入的邮件地址与正则表达的模式不匹配，将会弹出提示信息，要求用户重新输入正确的邮件地址。由此可见正则表达式在WEB应用的逻辑判断中具有举足轻重的作用。
2、基本语法
在对正则表达式的功能和作用有了初步的了解之后，我们就来具体看一下正则表达式的语法格式。
正则表达式的形式一般如下：
/love/
其中位于“/”定界符之间的部分就是将要在目标对象中进行匹配的模式。用户只要把希望查找匹配对象的模式内容放入“/”定界符之间即可。为了能够使用户更加灵活的定制模式内容，正则表达式提供了专门的“元字符”。所谓元字符就是指那些在正则表达式中具有特殊意义的专用字符，可以用来规定其前导字符（即位于元字符前面的字符）在目标对象中的出现模式。
较为常用的元字符包括：  “+”， “*”，以及  “?”。其中，“+”元字符规定其前导字符必须在目标对象中连续出现一次或多次，“*”元字符规定其前导字符必须在目标对象中出现零次或连续多次，而“?”元字符规定其前导对象必须在目标对象中连续出现零次或一次。
下面，就让我们来看一下正则表达式元字符的具体应用。
/fo+/
因为上述正则表达式中包含“+”元字符，表示可以与目标对象中的  “fool”, “fo”, 或者  “football”等在字母f后面连续出现一个或多个字母o的字符串相匹配。
/eg*/
因为上述正则表达式中包含“*”元字符，表示可以与目标对象中的  “easy”, “ego”, 或者  “egg”等在字母e后面连续出现零个或多个字母g的字符串相匹配。
/Wil?/
因为上述正则表达式中包含“？”元字符，表示可以与目标对象中的  “Win”, 或者  “Wilson”,等在字母i后面连续出现零个或一个字母l的字符串相匹配。
除了元字符之外，用户还可以精确指定模式在匹配对象中出现的频率。例如，
/jim{2,6}/
上述正则表达式规定字符m可以在匹配对象中连续出现2-6次，因此，上述正则表达式可以同jimmy或jimmmmmy等字符串相匹配。
在对如何使用正则表达式有了初步了解之后，我们来看一下其它几个重要的元字符的使用方式。
\s：用于匹配单个空格符，包括tab键和换行符；
\S：用于匹配除单个空格符之外的所有字符；
\d：用于匹配从0到9的数字；
\w：用于匹配字母，数字或下划线字符；
\W：用于匹配所有与\w不匹配的字符；
.  ：用于匹配除换行符之外的所有字符。
（说明：我们可以把\s和\S以及\w和\W看作互为逆运算）
下面，我们就通过实例看一下如何在正则表达式中使用上述元字符。
/\s+/
上述正则表达式可以用于匹配目标对象中的一个或多个空格字符。
/\d000/
如果我们手中有一份复杂的财务报表，那么我们可以通过上述正则表达式轻而易举的查找到所有总额达千元的款项。
除了我们以上所介绍的元字符之外，正则表达式中还具有另外一种较为独特的专用字符，即定位符。定位符用于规定匹配模式在目标对象中的出现位置。
较为常用的定位符包括：  “^”, “$”, “\b” 以及  “\B”。其中，“^”定位符规定匹配模式必须出现在目标字符串的开头，“$”定位符规定匹配模式必须出现在目标对象的结尾，\b定位符规定匹配模式必须出现在目标字符串的开头或结尾的两个边界之一，而“\B”定位符则规定匹配对象必须位于目标字符串的开头和结尾两个边界之内，即匹配对象既不能作为目标字符串的开头，也不能作为目标字符串的结尾。同样，我们也可以把“^”和“$”以及“\b”和“\B”看作是互为逆运算的两组定位符。举例来说：
/^hell/
因为上述正则表达式中包含“^”定位符，所以可以与目标对象中以  “hell”, “hello”或  “hellhound”开头的字符串相匹配。
/ar$/
因为上述正则表达式中包含“$”定位符，所以可以与目标对象中以  “car”, “bar”或 “ar”  结尾的字符串相匹配。
/\bbom/
因为上述正则表达式模式以“\b”定位符开头，所以可以与目标对象中以  “bomb”, 或  “bom”开头的字符串相匹配。
/man\b/
因为上述正则表达式模式以“\b”定位符结尾，所以可以与目标对象中以  “human”, “woman”或  “man”结尾的字符串相匹配。
为了能够方便用户更加灵活的设定匹配模式，正则表达式允许使用者在匹配模式中指定某一个范围而不局限于具体的字符。例如：
/[A-Z]/
上述正则表达式将会与从A到Z范围内任何一个大写字母相匹配。
/[a-z]/
上述正则表达式将会与从a到z范围内任何一个小写字母相匹配。
/[0-9]/
上述正则表达式将会与从0到9范围内任何一个数字相匹配。
/([a-z][A-Z][0-9])+/
上述正则表达式将会与任何由字母和数字组成的字符串，如 [...]]]></description>
		<wfw:commentRss>http://www.maoegg.com/regular-preliminary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP调用Linux系统的常用函数</title>
		<link>http://www.maoegg.com/php-call-a-common-function-of-the-linux-system/</link>
		<comments>http://www.maoegg.com/php-call-a-common-function-of-the-linux-system/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 05:35:24 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[Linux天堂]]></category>
		<category><![CDATA[PHP之邦]]></category>
		<category><![CDATA[PHP调用Linux]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1378</guid>
		<description><![CDATA[PHP调用Linux系统的常用函数
1、exec函数
&#60;?php
$test = &#8220;ls /tmp/test&#8221;; //ls是linux下的查目录，文件的命令
exec($test，$array); //执行命令
print_r($array);
?&#62;
2、system函数
&#60;?php
$test = &#8220;ls /tmp/test&#8221;;
$last = system($test);
print &#8220;last： $last\n&#8221;;
?&#62;
3、passthru函数
&#60;?php
$test = &#8220;ls /tmp/test&#8221;;
passthru($test);
?&#62;
4、popen函数

&#60;?php
$test = &#8220;ls /tmp/test&#8221;;
$fp = popen($test，&#8221;r&#8221;); //popen打一个进程通道
while (!feof($fp)) { //从通道里面取得东西
$out = fgets($fp， 4096);
echo $out; //打印出来
}
pclose($fp);
?&#62;
5、proc_open函数
&#60;?php
$test = &#8220;ls /tmp/test&#8221;;
$arrayarray = array(
array(&#8220;pipe&#8221;，&#8221;r&#8221;)， //标准输入
array(&#8220;pipe&#8221;，&#8221;w&#8221;)， //标准输出内容
array(&#8220;pipe&#8221;，&#8221;w&#8221;) //标准输出错误
);
$fp = proc_open($test，$array，$pipes); //打开一个进程通道
echo stream_get_contents($pipes[1]); //为什么是$pipes[1]，因为1是输出内容
proc_close($fp);
?&#62;
6、proc_open函数
&#60;?php
$test = &#8220;ls /tmp/test&#8221;;
$arrayarray = array(
array(&#8220;pipe&#8221;，&#8221;r&#8221;)， //标准输入
array(&#8220;pipe&#8221;，&#8221;w&#8221;)， //标准输出内容
array(&#8220;pipe&#8221;，&#8221;w&#8221;) //标准输出错误
);
$fp = proc_open($test，$array，$pipes); //打开一个进程通道
echo stream_get_contents($pipes[1]); [...]]]></description>
		<wfw:commentRss>http://www.maoegg.com/php-call-a-common-function-of-the-linux-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>迅雷、快车和QQ旋风专用链接加解密</title>
		<link>http://www.maoegg.com/thunder-flashget-and-qq-cyclones-dedicated-link-encryption/</link>
		<comments>http://www.maoegg.com/thunder-flashget-and-qq-cyclones-dedicated-link-encryption/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 05:15:42 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[技术SHOW]]></category>
		<category><![CDATA[QQ旋风链接解密]]></category>
		<category><![CDATA[快车链接解密]]></category>
		<category><![CDATA[迅雷链接解密]]></category>
		<category><![CDATA[链接解密]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1374</guid>
		<description><![CDATA[
&#60;?php
/**
*专用链接加解密
* 本程序适用于迅雷、快车和QQ旋风专用链接加解密，其他的暂未支持。程序较简单，有PHP基础的一看就明白。
*@author bao
*@email about008@gmail.com
*@date 2011-12-18
*/
function encrypt($url = null, $type = &#8221;thunder&#8221;){
$types = array(&#8220;thunder&#8221;, &#8221;flashget&#8221;, &#8221;qqdl&#8221;);
$type = strtolower($type);
$url = trim($url);
if ($url == null) return null;
if (false == array_search($type, $types)) $type = &#8221;thunder&#8221;;
switch ($type){
case &#8221;thunder&#8221;:
$url = &#8221;thunder://&#8221; . base64_encode(&#8220;AA&#8221;.$url.&#8221;ZZ&#8221;);
break;
case &#8221;flashget&#8221;:
$url = &#8221;flashget://&#8221; . base64_encode(&#8220;[FLASHGET]&#8220;.$url.&#8221;[FLASHGET]&#8220;) . &#8221;&#38;bao&#8221;;
break;
case &#8221;qqdl&#8221;:
$url = &#8221;qqdl://&#8221; . base64_encode($url);
break;
}
return $url;
}
function decrypt($url_origin = null){
$url = trim($url_origin);
if ($url == null) return null;
$count = preg_match(&#8220;/(\w+):\/\//i&#8221;, $url, $matches);
if($count == 0 &#124;&#124; $count == false){
return $url_origin;
}else{
$type = strtolower($matches[1]);
}
$count = preg_match(&#8220;/:\/\/([a-zA-Z0-9+\/]+={0,2})/i&#8221;, $url, $matches);
if($count == 0 &#124;&#124; $count == false){
return $url_origin;
}else{
$url = $matches[1];
}
switch ($type){
case &#8221;thunder&#8221;:
$url = substr(base64_decode($url), 2, -2);
break;
case &#8221;flashget&#8221;:
$url = substr(base64_decode($url), 10, -10);
break;
case &#8221;qqdl&#8221;:
$url = base64_decode($url);
break;
default:
return $url_origin;
}
return $url;
}
?&#62;
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;专用链接加解密&#60;/title&#62;
&#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243; /&#62;
&#60;style type=&#8221;text/css&#8221;&#62;
#tb{
background-color:green;
margin:10px auto;
}
#result{
width:60%;
margin:10px auto;
}
&#60;/style&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;div id=&#8221;link&#8221;&#62;
&#60;form action=&#8221;&#60;?php echo $_SERVER['PHP_SELF']; ?&#62;&#8221; method=&#8221;POST&#8221; &#62;
&#60;table id=&#8221;tb&#8221;&#62;
&#60;tr&#62;&#60;td&#62;链接&#60;/td&#62;&#60;td colspan=2&#62;&#60;textarea rows=3 name=&#8221;url&#8221;&#62;&#60;/textarea&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td &#62;&#60;input type=&#8221;radio&#8221; name=&#8221;endecode&#8221; value=&#8221;decode&#8221; id=&#8221;decode&#8221; checked&#62;&#60;label for=&#8221;decode&#8221;&#62;解密&#60;/label&#62;&#60;/td&#62;&#60;td&#62;&#60;input type=&#8221;radio&#8221; name=&#8221;endecode&#8221; value=&#8221;encode&#8221; id=&#8221;encode&#8221;&#62;&#60;label for=&#8221;encode&#8221;&#62;加密&#60;/label&#62;&#60;/td&#62;&#60;td&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;input type=&#8221;radio&#8221; name=&#8221;type&#8221; value=&#8221;thunder&#8221; checked&#62;迅雷&#60;/td&#62;&#60;td&#62;&#60;input type=&#8221;radio&#8221; name=&#8221;type&#8221; value=&#8221;flashget&#8221;&#62;快车&#60;/td&#62;&#60;td&#62;&#60;input type=&#8221;radio&#8221; name=&#8221;type&#8221; value=&#8221;qqdl&#8221;&#62;QQ旋风&#60;/td&#62;&#60;/tr&#62;
&#60;tr&#62;&#60;td&#62;&#60;input type=&#8221;submit&#8221; name=&#8221;submit&#8221; value=&#8221;确定&#8221;&#62;&#60;/td&#62;&#60;td&#62;&#60;input type=&#8221;reset&#8221; name=&#8221;reset&#8221;&#62;&#60;/td&#62;&#60;td&#62;&#60;/td&#62;&#60;/tr&#62;
&#60;/table&#62;
&#60;/form&#62;
&#60;/div&#62;
&#60;div id = &#8221;result&#8221;&#62;
&#60;?php
if(isset($_POST['endecode']) &#38;&#38; isset($_POST['type']) &#38;&#38; isset($_POST['url'])){
$url = $_POST['url'];
$type = $_POST['type'];
$endecode = $_POST['endecode'];
if($endecode == &#8221;decode&#8221;){
$url2 = decrypt($url);
echo &#8221;&#60;p&#62;解密前的地址: $url &#60;/p&#62;&#8221;;
echo &#8221;&#60;p&#62;解密后的地址: $url2 &#60;/p&#62;&#8221;;
}elseif($endecode == &#8221;encode&#8221;){
$url2 = encrypt($url,$type);
echo &#8221;&#60;p&#62;加密前的地址: $url &#60;/p&#62;&#8221;;
echo &#8221;&#60;p&#62;加密后的地址: $url2 &#60;/p&#62;&#8221;;
}
}
?&#62;
&#60;/div&#62;
&#60;/body&#62;
&#60;/html&#62;
]]></description>
		<wfw:commentRss>http://www.maoegg.com/thunder-flashget-and-qq-cyclones-dedicated-link-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>miui精简google应用</title>
		<link>http://www.maoegg.com/miui-streamline-google-application/</link>
		<comments>http://www.maoegg.com/miui-streamline-google-application/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 05:10:36 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[Android国度]]></category>
		<category><![CDATA[miui精简]]></category>
		<category><![CDATA[miui精简google应用]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1371</guid>
		<description><![CDATA[如果不需要谷歌服务，可以用root管理器之类的工具把以下文件删除：
/system/app/Gmail.apk
/system/app/GoogleCalendarSyncAdapter.apk
/system/app/GooglePartnerSetup.apk
/system/app/Talk.apk
/system/app/GoogleBackupTransport.apk
/system/app/GoogleContactsSyncAdapter.apk
/system/app/GoogleServicesFramework.apk
/system/app/MarketUpdater.apk
/system/app/Vending.apk
最好不要删除GoogleServicesFramework.apk，网络定位的NetworkLocation.apk需要它，除非你把NetworkLocation.apk一起删除。
删除之后再OTA不会受影响，如果安装完整包，需要重新删除这些文件。详细信息可搜索各大精简教程
]]></description>
		<wfw:commentRss>http://www.maoegg.com/miui-streamline-google-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>优化PHP程序的方法</title>
		<link>http://www.maoegg.com/%e4%bc%98%e5%8c%96php%e7%a8%8b%e5%ba%8f%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.maoegg.com/%e4%bc%98%e5%8c%96php%e7%a8%8b%e5%ba%8f%e7%9a%84%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 02:24:26 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[PHP之邦]]></category>
		<category><![CDATA[优化PHP]]></category>
		<category><![CDATA[优化PHP程序]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1368</guid>
		<description><![CDATA[1. If a method can be static, declare it static. Speed improvement is by a factor of 4.
如果一个方法可静态化，就对它做静态声明。速率可提升至4倍。
2. echo is faster than print.
echo 比 print 快。
3. Use echo&#8217;s multiple parameters instead of string concatenation.
使用echo的多重参数(译注：指用逗号而不是句点)代替字符串连接。
4. Set the maxvalue for your for-loops before and not in the loop.
在执行for循环之前确定最大循环数，不要每循环一次都计算最大值。
5. Unset your variables to free memory, especially large arrays.
注销那些不用的变量尤其是大数组，以便释放内存。
6. [...]]]></description>
		<wfw:commentRss>http://www.maoegg.com/%e4%bc%98%e5%8c%96php%e7%a8%8b%e5%ba%8f%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>新浪微博客户端oauth之回调</title>
		<link>http://www.maoegg.com/%e6%96%b0%e6%b5%aa%e5%be%ae%e5%8d%9a%e5%ae%a2%e6%88%b7%e7%ab%afoauth%e4%b9%8b%e5%9b%9e%e8%b0%83/</link>
		<comments>http://www.maoegg.com/%e6%96%b0%e6%b5%aa%e5%be%ae%e5%8d%9a%e5%ae%a2%e6%88%b7%e7%ab%afoauth%e4%b9%8b%e5%9b%9e%e8%b0%83/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 08:23:23 +0000</pubDate>
		<dc:creator>weiwei</dc:creator>
				<category><![CDATA[IOS杂谈]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[新浪微博授权]]></category>
		<category><![CDATA[第三方发送微博]]></category>
		<category><![CDATA[腾讯微博授权]]></category>
		<category><![CDATA[豆瓣微博授权]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1342</guid>
		<description><![CDATA[最近项目中遇到了一个问题，第三方授权和发微博。在网上找了个例子，挺全面的，有新浪，豆瓣，腾讯和twitter的。
这个是项目的具体下载地址 http://115.com/file/c2d5wxb8
于是就把它加入自己的项目中了，但是项目在进行授权完成之后死活回不到自己的程序。
最后发现其实很简单 这个项目中有个plist文件 只要修改下这个地方就行

项目中有一个文件专门用来定义一些url 的 其中有这个回调url
#define CallBackURL @&#8221;oauth://minroad.com&#8221;  //回调url
只要修改你自己的plist文件和这个对应就行了
该项目还在进行中 会不断更新的 &#8212;&#8212;&#8212;-
]]></description>
		<wfw:commentRss>http://www.maoegg.com/%e6%96%b0%e6%b5%aa%e5%be%ae%e5%8d%9a%e5%ae%a2%e6%88%b7%e7%ab%afoauth%e4%b9%8b%e5%9b%9e%e8%b0%83/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一个完整的PHP MYSQL数据库类</title>
		<link>http://www.maoegg.com/%e4%b8%80%e4%b8%aa%e5%ae%8c%e6%95%b4%e7%9a%84php-mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e7%b1%bb/</link>
		<comments>http://www.maoegg.com/%e4%b8%80%e4%b8%aa%e5%ae%8c%e6%95%b4%e7%9a%84php-mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e7%b1%bb/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 08:07:54 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[PHP之邦]]></category>
		<category><![CDATA[MYSQL数据库类]]></category>
		<category><![CDATA[PHP 数据库类]]></category>
		<category><![CDATA[数据库类]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1340</guid>
		<description><![CDATA[&#60;?php
class mysql {
	private $db_host; //数据库主机
	private $db_user; //数据库用户名
	private $db_pwd; //数据库用户名密码
	private $db_database; //数据库名
	private $conn; //数据库连接标识;
	private $result; //执行query命令的结果资源标识
	private $sql; //sql执行语句
	private $row; //返回的条目数
	private $coding; //数据库编码，GBK,UTF8,gb2312
	private $bulletin = true; //是否开启错误记录
	private $show_error = false; //测试阶段，显示所有错误,具有安全隐患,默认关闭
	private $is_error = false; //发现错误是否立即终止,默认true,建议不启用，因为当有问题时用户什么也看不到是很苦恼的

	/*构造函数*/
	public function __construct($db_host, $db_user, $db_pwd, $db_database, $conn, $coding) {
		$this-&#62;db_host = $db_host;
		$this-&#62;db_user = $db_user;
		$this-&#62;db_pwd = $db_pwd;
		$this-&#62;db_database = $db_database;
		$this-&#62;conn = $conn;
		$this-&#62;coding = $coding;
		$this-&#62;connect();
	}

	/*数据库连接*/
	public function connect() [...]]]></description>
		<wfw:commentRss>http://www.maoegg.com/%e4%b8%80%e4%b8%aa%e5%ae%8c%e6%95%b4%e7%9a%84php-mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e7%b1%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Studio 9.0.0 Final放出</title>
		<link>http://www.maoegg.com/zend-studio-9-0-0-final%e6%94%be%e5%87%ba/</link>
		<comments>http://www.maoegg.com/zend-studio-9-0-0-final%e6%94%be%e5%87%ba/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 01:29:20 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[PHP之邦]]></category>
		<category><![CDATA[Zend Studio]]></category>
		<category><![CDATA[Zend Studio 9]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1335</guid>
		<description><![CDATA[Zend Studio是Zend Technologies开发的PHP语言集成开发环境（Integrated Development Environment　IDE)。也支持HTML和js标签，但只对PHP语言提供调试支持。因为是同一个公司的产品，所以提供的Zend Framework方面的支持比其他软件好。
Zend Studio 9 正式发布，主要包含以下更新：
Git和Github支持
云开发部署
深度Zend Framework和Zend Server集成
更快、更精简的IDE
下载:Zend Studio 9.0.0 Final
查看:What&#8217;s New in Zend Studio 9
]]></description>
		<wfw:commentRss>http://www.maoegg.com/zend-studio-9-0-0-final%e6%94%be%e5%87%ba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php与jquery的flash上传插件&#8211;uploadify</title>
		<link>http://www.maoegg.com/php%e4%b8%8ejquery%e7%9a%84flash%e4%b8%8a%e4%bc%a0%e6%8f%92%e4%bb%b6-uploadify/</link>
		<comments>http://www.maoegg.com/php%e4%b8%8ejquery%e7%9a%84flash%e4%b8%8a%e4%bc%a0%e6%8f%92%e4%bb%b6-uploadify/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 05:25:16 +0000</pubDate>
		<dc:creator>xhot</dc:creator>
				<category><![CDATA[PHP之邦]]></category>
		<category><![CDATA[jquery uploadify]]></category>
		<category><![CDATA[jquery 上传]]></category>
		<category><![CDATA[jquery 上传 插件]]></category>
		<category><![CDATA[uploadify]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1331</guid>
		<description><![CDATA[很不错的一个jquery上传文件插件，功能比较强大。
这里我用的是uploadify-v2.1.4版，不少是从官网的文档（www.uploadify.com/documentation/）翻译过来的，然后加上一些自己的理解，配置的。
大部分都是写在注释里了，方便大家理解和使用，以下是代码，源代码请去官网下载吧。
&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;
&#60;link href="./uploadify.css" type="text/css" rel="stylesheet" /&#62;
&#60;script type="text/javascript" src="./jquery-1.4.2.min.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript" src="./swfobject.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript" src="./jquery.uploadify.v2.1.4.min.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript"&#62;

$(document).ready(function() {			//对中文支持不好，重命名文件不要为中文，配置中文字不可为中文
$('#file_upload').uploadify({			//必须文件或配置加*号							*
'uploader'  : './uploadify.swf',	//指定上传控件的主体文件，默认‘uploader.swf’	*
'script'    : './uploadify.php',	//指定服务器端上传处理文件，默认‘upload.php’	*
'cancelImg' : './cancel.png',		//指定取消上传的图片，默认‘cancel.png’			*
'folder'    : '../mytmp/',			//要上传到的服务器路径，默认‘/’					*
'auto'      : false,				//选定文件后是否自动上传，默认false
'multi'		: true,					//是否允许同时上传多个文件，默认false
'fileDesc'	: '小于800Kpng\jpg\gif格式的图片',	//出现在上传对话框中的文件类型描述
'fileExt'	: '*.png;*.gif;*.jpg;*.jpeg',		//控制可上传文件的扩展名，启用本项时需同时声明fileDesc
'sizeLimit'	: 8640000,				//控制上传文件的大小，单位byte
'simUploadLimit' : 2,				//多个文件上传时，同时上传文件数目限制，默认为1
'checkScript': './check.php',		//用来判断上传选择的文件在服务器是否存在的后台处理程序的相对路径(跟onCheck配合，图片有限制，可不要)
'buttonText': 'Add File',			//按钮上的文字，不支持中文
'queueID'	: 'queue',				//存放显示文件队列div的ID，如果没有不设置，系统默认在添加按钮下方
//'height'	: 80,					//按钮高度
//'width'	: 240,					//按钮宽度
'queueSizeLimit'	: 3,			//上传队列文件个数限制，默认999（可与onQueenFull结合，可不要）
//'hideButton': true,				//设置为true则隐藏浏览按钮的图片,默认为false
'buttonImg' : './button.png',		//添加按钮背景图片（有默认flash文件，可不要）
'method'	: 'post',				//提交方式Post或Get，默认为Post
'scriptData': {'firstName':'Ronnie','age':30},						//传递其他参数信息，格式为json，提交到'script'页面（必须要有method参数才可使用）
'rollover'	: true,					//设置为true时当鼠标移到浏览按钮图片上时有反转效果，默认false（必须跟buttonImg配合，可不要）
/*'onComplete': function (event, ID, fileObj, response, [...]]]></description>
		<wfw:commentRss>http://www.maoegg.com/php%e4%b8%8ejquery%e7%9a%84flash%e4%b8%8a%e4%bc%a0%e6%8f%92%e4%bb%b6-uploadify/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>openFlow处理图片 超简单</title>
		<link>http://www.maoegg.com/openflow%e5%a4%84%e7%90%86%e5%9b%be%e7%89%87-%e8%b6%85%e7%ae%80%e5%8d%95/</link>
		<comments>http://www.maoegg.com/openflow%e5%a4%84%e7%90%86%e5%9b%be%e7%89%87-%e8%b6%85%e7%ae%80%e5%8d%95/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 02:59:50 +0000</pubDate>
		<dc:creator>weiwei</dc:creator>
				<category><![CDATA[IOS杂谈]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[openFlow]]></category>
		<category><![CDATA[图片显示 iphone]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1328</guid>
		<description><![CDATA[在进行项目开发的时候图片的处理也是相当常见的一个功能 openflow就是主要用来处理图片显示的
该程序实现效果是这样的
首先附上一个下载该库的地址http://115.com/file/clyu8xf6
接着就是创建一个简单的工程 我在这里直接创建了一个基于view的工程
视图控制器类要遵循两个协议
&#60;AFOpenFlowViewDataSource, AFOpenFlowViewDelegate&#62;
在该类中加入如下代码
- (void)viewDidLoad {
[(AFOpenFlowView *)self.view setNumberOfImages:40]; //其实此处在xib中把self.view的类变成了AFOpenFlowView 这个应该都会的吧
for (int i=0; i&#60;=40; i++) {
UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"t%d.jpg",i%6]];
[(AFOpenFlowView *)self.view setImage:image forIndex:i];
}
[super viewDidLoad];
}
//这样就可以实现比较炫的图片展示效果了
]]></description>
		<wfw:commentRss>http://www.maoegg.com/openflow%e5%a4%84%e7%90%86%e5%9b%be%e7%89%87-%e8%b6%85%e7%ae%80%e5%8d%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xcode4.2 提示错误libxml/tree.h找不到</title>
		<link>http://www.maoegg.com/xcode4-2-%e6%b7%bb%e5%8a%a0libxml-%ef%bc%8c%e6%8f%90%e7%a4%ba%e9%94%99%e8%af%af/</link>
		<comments>http://www.maoegg.com/xcode4-2-%e6%b7%bb%e5%8a%a0libxml-%ef%bc%8c%e6%8f%90%e7%a4%ba%e9%94%99%e8%af%af/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 05:41:55 +0000</pubDate>
		<dc:creator>weiwei</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[libxml]]></category>
		<category><![CDATA[xcode4.2]]></category>
		<category><![CDATA[使用xml]]></category>

		<guid isPermaLink="false">http://www.maoegg.com/?p=1321</guid>
		<description><![CDATA[最近在做xml解析的程序 可是出现
提示找不到该文件 找了半天才解决
具体的做法是
在target 中添加的header file search path 如下图
然后添加libxml.dylib 再编译运行就不会报错了
]]></description>
		<wfw:commentRss>http://www.maoegg.com/xcode4-2-%e6%b7%bb%e5%8a%a0libxml-%ef%bc%8c%e6%8f%90%e7%a4%ba%e9%94%99%e8%af%af/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

