<?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>香草吧噗</title>
	<atom:link href="http://www.wuleilei.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wuleilei.net</link>
	<description>路漫漫其修远兮，吾将上下而求索</description>
	<lastBuildDate>Thu, 05 Jan 2012 06:52:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>在 OpenVZ 上安装 PPTP 完全版教程</title>
		<link>http://www.wuleilei.net/1426.html</link>
		<comments>http://www.wuleilei.net/1426.html#comments</comments>
		<pubDate>Thu, 05 Jan 2012 06:52:54 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[Linux相关]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1426</guid>
		<description><![CDATA[首先，我们必须要知道自己的VPS是否支持PPTP，如果你根据现在网上的那些教程做的话，那么你的第一步就是错的了。 cat /dev/ppp cat: /dev/ppp: No such device or address cat /dev/net/tun cat: /dev/net/tun: File descriptor in bad state 我记得有一篇教程说了，这两个只要一个OK就可以了。我现在可以很负责的告诉大家额，如果你的结果和我上面的两个结果不一样的话，那么你是肯定无法正常使用PPTP的哦。 如果你的结果和我一样的话，那么就继续往下看吧。 yum install -y ppp yum install -y iptables rpm -ivh http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.i386.rpm（X86） rpm -ivh http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.x86_64.rpm（X64） vi /etc/pptpd.conf # localip 192.168.0.1 -&#62; localip 192.168.0.1 # remoteip 192.168.0.234-238,192.168.0.245 -&#62;remoteip 192.168.0.234-238,192.168.0.245 vi /etc/ppp/options.pptpd # ms-dns 192.168.0.1 -&#62; ms-dns [...]]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1426.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“Content rectangle not entirely on screen with the menu bar”的解决方案</title>
		<link>http://www.wuleilei.net/1423.html</link>
		<comments>http://www.wuleilei.net/1423.html#comments</comments>
		<pubDate>Tue, 20 Dec 2011 00:51:39 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[MAC]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1423</guid>
		<description><![CDATA[打开xib，选择window，拖动一下上面的白色矩形，放到较中间的问题。警告消失。 随机日志2009年11月20日 -- GODADDY赠送的google广告费使用方法2009年12月8日 -- GoDaddy优惠码一枚2010年05月22日 -- 大量Flash Builder 4教程资源汇集2009年10月17日 -- XREA免费虚拟主机去广告与自定义错误页面2010年08月18日 -- PHP遍历文件夹]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1423.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cocoa恢复显示关闭的窗口</title>
		<link>http://www.wuleilei.net/1420.html</link>
		<comments>http://www.wuleilei.net/1420.html#comments</comments>
		<pubDate>Fri, 25 Nov 2011 06:58:01 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1420</guid>
		<description><![CDATA[在Mac OS中，点击窗口左上方的x，窗口将会关闭。如果你希望通过点击dock上的图标将窗口重新打开，你可以用如下方法做。 实现方法如下： 在delegate里设置一个outlet，比如myWindow： IBOutlet NSWindow *myWindow; 在Interface Builder中，将主窗口的”Release When Closed”选项取消掉。再将delegate里的myWindow和你的主窗口连接起来，然后在delegate里实现如下方法： - (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag { if (flag) { return NO; } else { [myWindow makeKeyAndOrderFront:self]; return YES; } } 这样窗口即使被关闭，也可以点击dock上的图标重新恢复显示。 随机日志2011年03月22日 -- Windows7音量小喇叭不出现音量调节按钮怎么办？2011年08月19日 -- centos init运行级别详解2011年07月10日 -- 电脑弹出交互式服务检测对话框的解决方法2009年12月24日 -- JS输入数字与小数2009年11月13日 -- .htaccess使用方法总结]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1420.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>安全模式下, 某用户的php文件访问另一用户文件的问题</title>
		<link>http://www.wuleilei.net/1415.html</link>
		<comments>http://www.wuleilei.net/1415.html#comments</comments>
		<pubDate>Tue, 08 Nov 2011 05:14:43 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[建站相关]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1415</guid>
		<description><![CDATA[如果一个php文件的属主是 user1, 想包含一个user2的php文件, 而且safe_mode为On, 这时就会报错: Warning: require_once() [function.require-once]: SAFE MODE Restriction in effect. The script whose uid is 11111 is not allowed to access ./include/common.inc.php owned by uid 10011 in /var/www/vhosts/neten.de/httpdocs/show.php on line 88 解决的方法有三种, 第三种最好: 1. 关闭safe mode 2. 手工更改生成目录的属主。 3. 把user1和user2设为同组, php.ini设置safe_mode_gid=On, 重启apache 什么, 你不会设定两个用户为同组啊? 那接着看吧: groupadd somegroup usermod -G somegroup user1 usermod [...]]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1415.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于解决”cannot modify header information &#8211; headers already sent by”的错误</title>
		<link>http://www.wuleilei.net/1413.html</link>
		<comments>http://www.wuleilei.net/1413.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 09:46:50 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[琐碎收藏]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1413</guid>
		<description><![CDATA[一个上传文件的功能，上传成功 返回信息的时候经常提示：cannot modify header information &#8211; headers already sent by (&#8230;&#8230;)。其实已经实现需要的效果了，就是这个错误信息看着不爽，网上找了很多办法，综合使用得到的解决方法是 1在页面顶部的php标签中加入ob_start(); 2在返回的信息下面加入ob_end_flush(); 这样就可以屏蔽错误信息的现实了 另外转一下其他人的方法，也许在其他情况下也会有效 If you got this message: “Warning: Cannot modify header information &#8211; headers already sent by &#8230;.” 如果在执行php程序时看到这条警告:”Warning: Cannot modify header information &#8211; headers already sent by &#8230;.” Few notes based on the following user posts: 有以下几种解决方法: 1. Blank lines (空白行): [...]]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1413.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.3.1 安全模式session_start权限问题的解决办法</title>
		<link>http://www.wuleilei.net/1410.html</link>
		<comments>http://www.wuleilei.net/1410.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 08:53:09 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[琐碎收藏]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1410</guid>
		<description><![CDATA[出现session_start写入权限问题。 提示信息如下： Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 2023 is not allowed to access /var/tmp/ owned by uid 0 in /configs/config.inc.php on line 9 Fatal error: session_start() [&#60;a href='function.session-start'&#62;function.session-start&#60;/a&#62;]: Failed to initialize storage module: files (path: ) in /configs/config.inc.php on line 9 &#160; 后来在php5的changelog里找到一个bug报告。里面提到一个安全模式的bug。默认session的save_path ; where MODE is [...]]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1410.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URL映射 php 实现</title>
		<link>http://www.wuleilei.net/1407.html</link>
		<comments>http://www.wuleilei.net/1407.html#comments</comments>
		<pubDate>Thu, 20 Oct 2011 14:59:48 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1407</guid>
		<description><![CDATA[1、大家来说说URL映射吧 一般url映射有两种方式，一种是通过mod_rewrite实现，这种网上教材很多我也不多说了。另外一种是在程序中模拟，比如类似zend Framework中的那种方式/index.php/controller/action/var1/value1/var2/value2/。这里方 式其实最主要是通过一个统一的输入接口，然后对url进行解析，最后转发到相应的controller中的module。 我这里写了两个简单函数来模拟。 第一个函数主要是进行地址解析，把类似/index.php/controller/action/var1/value1/var2/value2/的地址解析出来，一般来说要解析成三部分：controller,module,params。 &#60;? /** *对url路由进行简单的解析,支持对/path/to/site/index.php/module/action/parm/value * /path/to/site/index.php?/module/action/parm/value和 * /path/to/site/?/module/action/parm/value三种形式的处理 *@param:null *@return:router array */ function url_router(){ $path=strip_tags($_SERVER['REQUEST_URI']); $strpos=strpos($path,'.php'); if($strpos){ $path=substr($path,$strpos+4); }else{ if(empty($_SERVER['QUERY_STRING'])){ $strpos=strpos($path,'?'); if($strpos){ $path=substr($path,$strpos+1); }else{ $path=''; } }else{ $path=$_SERVER['QUERY_STRING']; } } //统一化$path的格式，如果$path的第一个字符为/则去掉 if($path[0]=='/'){ $path=substr($path,1); } //解析，并且路由 if(!empty($path)){ $path=explode('/',$path); $router['controller']=$path[0]; $router['action']=(!empty($path[1]))?$path[1]:'index'; //print_r($path); for($i=2;$i&#60;sizeof($path);$i=$i+2){ $params[$path[$i]]=(isset($path[$i+1]))?$path[$i+1]:''; } $router['params']=$params; }else{ //默认路由信息 $router['controller']='index'; $router['action']='index'; $router['params']=array(); } return $router; } ?&#62; 这里就完成主要的url解析功能，然后是转发映射，下面这个函数实现（注意这个函数的实现是结合了我自己的架构，所以你采用的话需要相应的修改，当然你的MVC如果类似zend [...]]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1407.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>草图设计软件</title>
		<link>http://www.wuleilei.net/1405.html</link>
		<comments>http://www.wuleilei.net/1405.html#comments</comments>
		<pubDate>Thu, 15 Sep 2011 06:42:20 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[软件收藏]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1405</guid>
		<description><![CDATA[Balsamiq Mockups 随机日志2009年11月11日 -- 如何使用GoDaddy免费域名解析服务2009年11月30日 -- 国家名称大全2011年07月15日 -- C#中插入记录，并同时返回插入后生成的自动编号2009年10月19日 -- 十大WordPress安全设置技巧2010年04月24日 -- PHP向数组中插入元素PHP array_push()与PHP array_unshift()]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1405.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过.htaccess提高网站安全性</title>
		<link>http://www.wuleilei.net/1401.html</link>
		<comments>http://www.wuleilei.net/1401.html#comments</comments>
		<pubDate>Wed, 14 Sep 2011 05:05:08 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[建站相关]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1401</guid>
		<description><![CDATA[网站安全性不容小视，尤其是是对于后台管理目录的访问需要格外的严格控制，否则一旦被人得到网站管理员的密码，再通过后台管理可能的上传操作就可以 拿下整个网站了。但是，目前一般来说我们对后台管理的权限都是通过程序本身的密码限制的，而程序本身的密码又受到了自身的安全性限制。因此需要更为底层的 访问限制来保障网站的安全性。当然，备份工作也不能忽视。 .htaccess文件便是Apache下的一个分布式配置文件，其对于网站的各种功能配置有非常重要的作用，我们也可以通过这个文件来限制对网站的访问。下面我将具体说明配置方法： 1、为网站的重要目录（比如后台管理）设置Apache访问控制密码。 首先建立一个名称为.htpasswd的文本文件，里面输入设置好的访问控制用户名和密码。文件内容因涉及到加密算法，需要打开 http://tool.liehuo.net/htaccess/在线生成页面，然后选择“文件夹密码保护”栏目，让你后输入你想要的用户名和密码，最后点击“创建.htpasswd内容”按钮，下面将会显示该文件的内容。 注意，该文件的内容应该类似于： username:gQQ/SeV/5y2bM 冒号前面的是用户名，后面的是加密后的密码，请不要手动更改。创建完成后，请将此文件上传至无法通过HTTP访问到的目录下，然后记录下这个文件的绝对路径。 上传后，手动建立一个内容如下的名为.htaccess的文件： AuthUserFile /home/foo/bar/.htpasswd AuthGroupFile /dev/null AuthName “Please enter your ID and password” AuthType Basic require valid-user 其中第一行“/home/foo/bar/.htpasswd”为.htpasswd文件的绝对地址，请根据实际情况进行修改。然后将此文件上传到需要保护的目录下即可。 此时，访问受保护的目录，将会弹出一个需要登录获取访问权限的窗口，输入你设置的用户名和密码，才能看见程序的登陆页面。并且，这个密码是非常安全 的。它并没有记录在网站的数据库中，也没有记录在网站的目录下。并且，任何对受保护目录的访问都需要进行授权。因此安全性非常高。 2、阻止某些IP对网站的访问。 比如希望阻止某一IP对网站的访问以提高安全性，可以直接将IP地址拒绝。也是通过.htaccess文件实现。在.htaccess文件中加入以下内容： order deny,allow deny from 127.0.0.1 上面的127.0.0.1即是网站拒绝需要访问的IP地址。然后将.htaccess文件上传到网站的根目录下即可。 &#160; 原文：http://www.veryhuo.com/a/view/20430.html 相关文章2010年07月1日 -- 通过htaccess文件达到SEO优化效果集锦2010年03月16日 -- .htaccess文件使用大全2010年03月11日 -- 更改了wordpress的固定链接格式后做301重定向2010年03月11日 -- 修改.htaccess实现301重定向2010年03月1日 -- 让GoDaddy免费空间支持rar等后缀的文件下载]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1401.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>自定义 UITableViewCell 的 accessory 样式</title>
		<link>http://www.wuleilei.net/1395.html</link>
		<comments>http://www.wuleilei.net/1395.html#comments</comments>
		<pubDate>Wed, 14 Sep 2011 03:24:47 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1395</guid>
		<description><![CDATA[对于 UITableViewCell 而言，其 accessoryType 属性有4种取值： UITableViewCellAccessoryNone , UITableViewCellAccessoryDisclosureIndicator , UITableViewCellAccessoryDetailDisclosureButton , UITableViewCellAccessoryCheckmark 分别显示 UITableViewCell 附加按钮的4种样式： 无、 、 、 。 除此之外，如果你想使用自定义附件按钮的其他样式，必需使用 UITableView 的 accessoryType 属性。比如，我们想自定义一个 的附件按钮，你可以这样做： UIButton *button ; if ( isEditableOrNot ){ UIImage *image= [ UIImage    imageNamed : @"delete.png" ]; button = [ UIButton buttonWithType : UIButtonTypeCustom ]; CGRect frame = CGRectMake ( 0.0 [...]]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1395.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

