<?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>苏洋博客 &#187; 学习点滴</title>
	<atom:link href="http://promiseforever.com/topics/learning/feed" rel="self" type="application/rss+xml" />
	<link>http://promiseforever.com</link>
	<description>记录我的一点一滴。</description>
	<lastBuildDate>Sun, 05 Feb 2012 22:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>淘宝开源Tengine(Nginx)服务器</title>
		<link>http://promiseforever.com/2012/02/06/tengine.html</link>
		<comments>http://promiseforever.com/2012/02/06/tengine.html#comments</comments>
		<pubDate>Sun, 05 Feb 2012 21:29:29 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Tengine]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[淘宝]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=5838</guid>
		<description><![CDATA[Tengine是由淘宝核心系统部基于Nginx开发的Web服务器，它在Nginx的基础上，针对大访问量网站的需求，添加了很多功能和特性。Tengine的性能和稳定性已经在大型的网站如淘宝网，淘宝商城等得到了很好的验证。它的最终目标是打造一个高效、稳定、安全、易用的 Web 平台。Tengine现已开源。 从官方简介的页面可以看出，这个项目是一个给力的技术组做的，目前还少有美工介入。 看看特性列表，口水一地。 继承Nginx-1.0.11的所有特性； 输入过滤器机制支持。通过使用这种机制Web应用防火墙的编写更为方便； 组合多个CSS、JavaScript文件的访问请求变成一个请求； 支持管道和syslog形式的日志和抽样； 自动根据CPU数目设置亲缘性； 监控系统的负载和资源占用从而对系统进行保护； 显示对运维人员更友好的出错信息，便于定位出错机器； 更强大的访问速度限制模块； backtrace模块，程序崩溃的时候可以显示出错的调用栈。 &#8230; 官方地址]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/02/06/tengine.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMAPP子域名设置，实现本地测试</title>
		<link>http://promiseforever.com/2012/02/04/xmapp-sub-domian.html</link>
		<comments>http://promiseforever.com/2012/02/04/xmapp-sub-domian.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 23:00:27 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[WIN32]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[子域名]]></category>
		<category><![CDATA[本地测试]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=5821</guid>
		<description><![CDATA[XMAPP是一款不错的LAMP集成环境,不论是Ubuntu还是Windows,我都习惯用它来做测试。 虽然说是XMAPP独立子域名设置,但是其实还是Apache的子域名设置。 首先你要检查httpd.conf设置是否开启了Virtual hosts Linux套件环境httpd.conf在/opt/lampp/etc/httpd.conf Windows套件环境httpd.conf在xampp安装目录\apache\conf 打开conf文件,查找Virtual hosts 找到 # Virtual hosts #Include etc/extra/httpd-vhosts.conf 如果 Include etc/extra/httpd-vhosts.conf 前有“#”号的话,去掉“#”，并保存文件。 开始配置虚拟目录，或者说是子域名 Linux 修改/opt/lampp/extra/httpd-vhosts.conf文件 在里面添加下面的内容。 Windows下则是xampp安装目录\apache\conf\extra\httpd-vhosts.conf 注意我的配置里的logs目录设置和DocumentRoot的路径,下面的设置是Windows下的。 NameVirtualHost *:80 #www.test.com &#60;VirtualHost *:80&#62; ServerAdmin admin@test.com DocumentRoot &#34;C:/xampp/htdocs/&#34; ServerName test.com ServerAlias www.test.com ErrorLog &#34;logs/test.localhost.log&#34; CustomLog &#34;logs/test.localhost-access.log&#34; combined &#60;/VirtualHost&#62; &#160; #cache.test.com &#60;Directory &#34;C:/xampp/htdocs/cache&#34;&#62; Options Indexes FollowSymLinks ExecCGI Includes AllowOverride All Order ...]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/02/04/xmapp-sub-domian.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress脚本跨域解决方法</title>
		<link>http://promiseforever.com/2012/02/03/wordpress%e8%84%9a%e6%9c%ac%e8%b7%a8%e5%9f%9f%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html</link>
		<comments>http://promiseforever.com/2012/02/03/wordpress%e8%84%9a%e6%9c%ac%e8%b7%a8%e5%9f%9f%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 02:47:13 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WORDPRESS]]></category>
		<category><![CDATA[跨域]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=6008</guid>
		<description><![CDATA[说到跨域问题，我想很多人都知道，所以不做太详细解释了。 针对跨域，wordpress进行了过滤，在定时发布的一篇日志中，我有提到如何去掉wordpress的版本号，文章的修改方法是没有错误的，但是在实践的过程中，我还将静态资源移动到了子域名中，所以呢，资源就跨域访问了。 那么如何解决静态脚本跨域使用呢，在wordpress中有3个专门的函数wp_deregister_script,wp_register_script以及wp_enqueue_script function fir_scripts_method&#40;&#41; &#123; wp_deregister_script&#40; 'jquery' &#41;; wp_register_script&#40; 'jquery', 'http://yoururl/wp-includes/js/jquery/jquery.js'&#41;; wp_enqueue_script&#40; 'jquery' &#41;; &#125; add_action&#40;'wp_enqueue_scripts', 'fir_scripts_method_jquery'&#41;; 将代码添加到你的后台模版或者post.php合适位置,即可. 这么一来,前台依旧是静态化的子域名资源,而后台重新使用函数注册并安全输出脚本,跨域神马的就再见了。]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/02/03/wordpress%e8%84%9a%e6%9c%ac%e8%b7%a8%e5%9f%9f%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery选择器摘要</title>
		<link>http://promiseforever.com/2012/02/03/jquery%e9%80%89%e6%8b%a9%e5%99%a8%e6%91%98%e8%a6%81.html</link>
		<comments>http://promiseforever.com/2012/02/03/jquery%e9%80%89%e6%8b%a9%e5%99%a8%e6%91%98%e8%a6%81.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 00:00:38 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[JAVASCRIPT]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[选择器]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=5793</guid>
		<description><![CDATA[Jquery选择器是Jquery基础,把一些经典例子留上来吧.. JQuery选择器 load()方法参数解释 插入节点的方法 $.get()方法参数解释]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/02/03/jquery%e9%80%89%e6%8b%a9%e5%99%a8%e6%91%98%e8%a6%81.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP模拟登陆</title>
		<link>http://promiseforever.com/2012/02/03/php%e6%a8%a1%e6%8b%9f%e7%99%bb%e9%99%86.html</link>
		<comments>http://promiseforever.com/2012/02/03/php%e6%a8%a1%e6%8b%9f%e7%99%bb%e9%99%86.html#comments</comments>
		<pubDate>Thu, 02 Feb 2012 23:31:06 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[模拟]]></category>
		<category><![CDATA[登录]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=5936</guid>
		<description><![CDATA[PHP如何模拟登录呢,这里有个简单的例子。 &#60;?php function GetWebContent&#40;$host, $method, $str, $sessid = ''&#41; &#123; $ip = gethostbyname&#40;$host&#41;; $fp = @fsockopen&#40;$ip, 80&#41;; if &#40;!$fp&#41; return; fputs&#40;$fp, &#34;$method\r\n&#34;&#41;; fputs&#40;$fp, &#34;Host: $host\r\n&#34;&#41;; if &#40;!empty&#40;$sessid&#41;&#41; &#123; fputs&#40;$fp, &#34;Cookie: PHPSESSID=$sessid; path=/;\r\n&#34;&#41;; &#125; if &#40;substr&#40;trim&#40;$method&#41;, 0, 4&#41; == &#34;POST&#34;&#41; &#123; fputs&#40;$fp, &#34;Content-Length: &#34; . strlen&#40;$str&#41; . &#34;\r\n&#34;&#41;; &#125; &#160; fputs&#40;$fp, &#34;Content-Type: application/x-www-form-urlencoded\r\n&#34;&#41;; fputs&#40;$fp, &#34;User-Agent: Mozilla/4.0 ...]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/02/03/php%e6%a8%a1%e6%8b%9f%e7%99%bb%e9%99%86.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CuFon 中文可实施方案</title>
		<link>http://promiseforever.com/2012/02/02/cufon-%e4%b8%ad%e6%96%87%e5%8f%af%e5%ae%9e%e6%96%bd%e6%96%b9%e6%a1%88.html</link>
		<comments>http://promiseforever.com/2012/02/02/cufon-%e4%b8%ad%e6%96%87%e5%8f%af%e5%ae%9e%e6%96%bd%e6%96%b9%e6%a1%88.html#comments</comments>
		<pubDate>Wed, 01 Feb 2012 17:15:03 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[生活随笔]]></category>
		<category><![CDATA[cufon]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=5944</guid>
		<description><![CDATA[先说一下咱自己的进度吧，目前可以动态根据传入内容进行字库缓存生成，每个页面调用common字库，和独立字库即可实现中文字体的快速替换渲染。但是你可能会好奇，那么为什么你没有在站内使用cufon呢，很简单的原因，我还在制作字库。字库准备使用几种字体混合的方案，实现全字库可用的目标。 cufon是一种使用javascript进行快速字体渲染的技术，想要在你的网站里使用你切片时候的字体么。想解决国外模版和字体不支持中文显示的问题么，使用cufon吧。 类似技术还有sIFR、typeface、css3渲染等，但是从现在的通用性来说，cufon是最强的。 官方GIT主页在这里，我觉得我没必要进行cufon的详细介绍了。晚些时候，做好字体，开始考虑把函数封包翻出来分享。 用16MB的楷书+Droid生成了120MB的STXingKai.sfd..压力很大,修改PHP转换脚本中,或许我需要制作一个WINDOWS GUI SHELL?]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/02/02/cufon-%e4%b8%ad%e6%96%87%e5%8f%af%e5%ae%9e%e6%96%bd%e6%96%b9%e6%a1%88.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>针对垃圾评论的进一步优化</title>
		<link>http://promiseforever.com/2012/02/01/%e9%92%88%e5%af%b9%e5%9e%83%e5%9c%be%e8%af%84%e8%ae%ba%e7%9a%84%e8%bf%9b%e4%b8%80%e6%ad%a5%e4%bc%98%e5%8c%96.html</link>
		<comments>http://promiseforever.com/2012/02/01/%e9%92%88%e5%af%b9%e5%9e%83%e5%9c%be%e8%af%84%e8%ae%ba%e7%9a%84%e8%bf%9b%e4%b8%80%e6%ad%a5%e4%bc%98%e5%8c%96.html#comments</comments>
		<pubDate>Tue, 31 Jan 2012 20:21:52 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WORDPRESS]]></category>
		<category><![CDATA[垃圾评论]]></category>
		<category><![CDATA[头像缓存]]></category>
		<category><![CDATA[脚本超时]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=5900</guid>
		<description><![CDATA[优化网站之后台垃圾评论细节处理 今天查看后台评论，发现半天打不开，到后台面板去查看apache错误，发现我又对不起小张了。 不过问题很好解决，而且觉得有推广的价值，记录下来吧。 首先看下后台的错误日志，基本都是超时，超时说明神马，服务器被DDOS了，有这个可能性，但是呢，ping后发现还是18~25ms，丢包率0，所以排除，那么最大的可能性就是死循环，或者远程访问超时。 死循环这种这么给力的事情，除了之前09年的残留代码干过一次，还真没发生过第二次。 因为使用了avatar站内缓存，而生成站内的avator缓存又需要进行远程copy，远程服务器正常还好，如果一旦反映比较慢，加上请求次数比较多的话，本地脚本超时那是果断滴！ [Wed Feb 01 03:24:00 2012] Script timed out before returning headers: edit-comments.php [Wed Feb 01 03:24:01 2012] Script timed out before returning headers: index.php [Wed Feb 01 03:24:04 2012] Script timed out before returning headers: index.php [Wed Feb 01 03:24:10 2012] Script timed out before returning headers: index.php, referer: ...]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/02/01/%e9%92%88%e5%af%b9%e5%9e%83%e5%9c%be%e8%af%84%e8%ae%ba%e7%9a%84%e8%bf%9b%e4%b8%80%e6%ad%a5%e4%bc%98%e5%8c%96.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[总结]Shell.Application</title>
		<link>http://promiseforever.com/2012/01/30/shell-application.html</link>
		<comments>http://promiseforever.com/2012/01/30/shell-application.html#comments</comments>
		<pubDate>Mon, 30 Jan 2012 00:00:17 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[VB]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=1842</guid>
		<description><![CDATA[1.对象的创建
ASP.NET中创建Shell对象
[code]
 var Shell = new ActiveXObject(Shell.Application);
[/code]
VB中创建Shell对象
[code]
Set Shell = CreateObject(&#34;Shell.Application&#34;)
[/code]
2.Shell对象的属性和方法[是不是和FSO很相似呢]
至此是不是获取Windows常用对象的方法又多了一种呢
[code...]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/01/30/shell-application.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP重写URL基础前置知识</title>
		<link>http://promiseforever.com/2012/01/27/php%e9%87%8d%e5%86%99url%e5%9f%ba%e7%a1%80%e5%89%8d%e7%bd%ae%e7%9f%a5%e8%af%86.html</link>
		<comments>http://promiseforever.com/2012/01/27/php%e9%87%8d%e5%86%99url%e5%9f%ba%e7%a1%80%e5%89%8d%e7%bd%ae%e7%9f%a5%e8%af%86.html#comments</comments>
		<pubDate>Fri, 27 Jan 2012 15:00:37 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=5669</guid>
		<description><![CDATA[转载一篇apache rewrite,感觉写的不错,很基础,其实看是否支持rewrite,只要用下面的函数即可. &#60;?php phpinfo&#40;8&#41;;?&#62; 1.检测Apache是否支持mod_rewrite 通过php提供的phpinfo()函数查看环境配置，通过Ctrl+F查找到“Loaded Modules”，其中列出了所有apache2handler已经开启的模块，如果里面包括“mod_rewrite”，则已经支持，不再需要继续设置。 如果没有开启“mod_rewrite”，则打开目录 您的apache安装目录“/apache/conf/” 下的 httpd.conf 文件，通过Ctrl+F查找到“LoadModule rewrite_module”，将前面的”#”号删除即可。 如果没有查找到，则到“LoadModule” 区域，在最后一行加入“LoadModule rewrite_module modules/mod_rewrite.so”（必选独占一行），然后重启apache服务器即可。 2.让apache服务器支持.htaccess 如 何让自己的本地APACHE服务器支持”.htaccess”呢?其实只要简单修改一下apache的httpd.conf设置就可以让 APACHE支 持.htaccess了。打开httpd.conf文件(在那里? APACHE目录的CONF目录里面),用文本编辑器打开后,查找 Options FollowSymLinks AllowOverride None 改为 Options FollowSymLinks AllowOverride All 就可以了。 3.建立.htaccess 文件 如 果是在windows平台下，刚开始还真不知道怎么建立”.htaccess”文件，因为这个文件实际上没有文件名，仅仅只有扩展名，通过普通方 式是无法建立这个文件的，别着急，马上告诉你三种方法：三种方法都是先建立一个htaccess.txt的文本文件（当然，这个文本文件的名字你可以随便 取），然后有三种方式给这个文件重命名： （1）用记事本 打开，点击文件–另存为，在文件名窗口输入”.htaccess”，注意是整个绿色部分，也就是包含英文引号，然后点击保存就行了。 （2）进入cmd命令 窗口，通过cd切换当刚建立htaccess.txt文件的文件夹，然后输入命令：rename htaccess.txt .htaccess ，然后点击键盘Enter键即可。 （3）通过ftp连接htaccess.txt所在文件夹，通过ftp软件重命名。 4.rewrite规则学习 我们新建一个.htaccess文件之后，就在里面写入以下内容： RewriteEngine on #rewriteengine为重写引擎开关on为开启off为关闭 RewriteRule ([0-9]{1,})$ index.php?id=$1 ...]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/01/27/php%e9%87%8d%e5%86%99url%e5%9f%ba%e7%a1%80%e5%89%8d%e7%bd%ae%e7%9f%a5%e8%af%86.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP操作文件函数比较</title>
		<link>http://promiseforever.com/2012/01/27/php%e6%93%8d%e4%bd%9c%e6%96%87%e4%bb%b6%e5%87%bd%e6%95%b0%e6%af%94%e8%be%83.html</link>
		<comments>http://promiseforever.com/2012/01/27/php%e6%93%8d%e4%bd%9c%e6%96%87%e4%bb%b6%e5%87%bd%e6%95%b0%e6%af%94%e8%be%83.html#comments</comments>
		<pubDate>Fri, 27 Jan 2012 14:01:06 +0000</pubDate>
		<dc:creator>苏洋</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[经典资料]]></category>
		<category><![CDATA[fgets]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[file_get_contents]]></category>
		<category><![CDATA[fpassthru]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[include_once]]></category>
		<category><![CDATA[readfile]]></category>
		<category><![CDATA[require]]></category>
		<category><![CDATA[require_once]]></category>
		<category><![CDATA[操作文件]]></category>

		<guid isPermaLink="false">http://promiseforever.com/?p=5658</guid>
		<description><![CDATA[这篇真心不是我要的,但是作为资料,备份下来吧. 前面的文字性质的描述就直接省略了,有兴趣的直接点击文章开头的链接,访问原文. 从手册上摘录下列的方法，大致是6种，但是印象中还有使用服务器组件进行操作的方法。 下面将老外用1MB文件来进行测试的结果也贴一下,有兴趣的朋友补充测试. &#160; Function Sample Usage Time (s) Memory (b) file_get_contents echo file_get_contents($filename); 0.00564 1067856 fpassthru fpassthru($fp); 0.00184 20032 fgets $fp = fopen($filename,"rb"); while(!feof($fp)) { echo fgets($fp); } 0.07190 30768 file echo join(&#8220;&#8221;,file($filename)); 0.06464 2185624 require_once require_once($filename); 0.08065 2067696 include include($filename); 0.08202 2067696 readfile readfile($filename); 0.00191 19208 &#160; 接着是32KB的小文件处理上 &#160; Function Time (s) ...]]></description>
		<wfw:commentRss>http://promiseforever.com/2012/01/27/php%e6%93%8d%e4%bd%9c%e6%96%87%e4%bb%b6%e5%87%bd%e6%95%b0%e6%af%94%e8%be%83.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

