<?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>Wed, 21 Mar 2012 02:02: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>centos安装 git工具</title>
		<link>http://www.wuleilei.net/1435.html</link>
		<comments>http://www.wuleilei.net/1435.html#comments</comments>
		<pubDate>Wed, 21 Mar 2012 02:02:54 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[Linux相关]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1435</guid>
		<description><![CDATA[安装git wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz tar xzvf git-latest.tar.gz cd git-{date} autoconf ./configure make &#38; make install &#160; 除了安装 yum install zlib-devel yum install openssl-devel yum install perl yum install cpio yum install expat-devel yum install gettext-devel 还需要安装gettext 否则make 会出现 SUBDIR perl SUBDIR git_remote_helpers SUBDIR templates MSGFMT po/build/locale/is/LC_MESSAGES/git.mo /bin/sh: msgfmt: command not found make: *** [po/build/locale/is/LC_MESSAGES/git.mo] Error 127 随机日志2009年10月21日 [...]]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1435.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“GNU assembler not found, install gas-preprocessor” 解决方法</title>
		<link>http://www.wuleilei.net/1432.html</link>
		<comments>http://www.wuleilei.net/1432.html#comments</comments>
		<pubDate>Wed, 29 Feb 2012 02:25:41 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[Linux相关]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1432</guid>
		<description><![CDATA[第一次编译ffmpeg的时候会遇到GNU assembler not found, install gas-preprocessor错误提示 意思就是让我们安装gas-preprocessor啦 安装步骤 1）到https://github.com/yuvi/gas-preprocessor下载gas－preprocessor安装包 2）解压安装包 3）复制gas-preprocessor.pl到/usr/local/bin下 4）chmod 777 /usr/local/bin/gas-preprocessor.pl &#160; 随机日志2010年02月25日 -- VirtualBox 出現 “virtualbox vt-x is not available” 錯誤訊息2011年03月22日 -- Windows7音量小喇叭不出现音量调节按钮怎么办？2009年11月9日 -- 5种常见网页自动跳转方法2012年03月21日 -- centos安装 git工具2010年01月18日 -- php时间戳与日期互转]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1432.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery文本输入字数限制插件-maxlength</title>
		<link>http://www.wuleilei.net/1429.html</link>
		<comments>http://www.wuleilei.net/1429.html#comments</comments>
		<pubDate>Tue, 28 Feb 2012 07:35:31 +0000</pubDate>
		<dc:creator>香草吧噗</dc:creator>
				<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.wuleilei.net/?p=1429</guid>
		<description><![CDATA[项目开发中常会遇到输入字数限制的环节，maxlength可以满足很多方面的要求.例如像微博的文本输入限制。 从网上找到一个比较好用的，收藏一下。 随机日志2011年06月24日 -- IE6下链接失效的解决方法2010年03月16日 -- 什么是A记录？什么是别名记录(CNAME)？什么是MX记录？什么是NS记录？2009年11月23日 -- IE的各种设置列表及禁止修改IE主页2010年02月25日 -- VirtualBox 出現 “virtualbox vt-x is not available” 錯誤訊息2010年01月27日 -- JavaScript改变父窗口中的元素]]></description>
		<wfw:commentRss>http://www.wuleilei.net/1429.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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，拖动一下上面的白色矩形，放到较中间的问题。警告消失。 随机日志2010年01月18日 -- apache开启.htaccess-(apache .htaccess 写法)2010年01月27日 -- php时区设置2009年12月1日 -- 如何用 CSS + JavaScript 实现网站风格切换2010年01月6日 -- php filemtime() 函数使用方法详解2010年01月15日 -- xrea出现403的解决办法]]></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上的图标重新恢复显示。 随机日志2009年12月3日 -- Wordpress自动保存远程图片的插件:Auto_Save_Image2009年11月11日 -- 真正完美截取utf8和gb2312字符串的php函数2009年10月30日 -- 配置APACHE支持CGI（WIN环境）2010年10月9日 -- 让Dreamweaver支持jQuery自动提示代码功能2010年04月24日 -- PHP向数组中插入元素PHP array_push()与PHP array_unshift()]]></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>
	</channel>
</rss>

