<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[XXHSU]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/xxhsu</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; xxhsu]]></copyright><item><title><![CDATA[PHP用深搜、广搜实现数字华容道]]></title><link>https://blog.youkuaiyun.com/xxhsu/article/details/88882302</link><guid>https://blog.youkuaiyun.com/xxhsu/article/details/88882302</guid><author>xxhsu</author><pubDate>Fri, 29 Mar 2019 02:18:46 +0800</pubDate><description><![CDATA[发现用PHP实现深搜和广搜资料较少，自己动手写了一下。

PHP跑起来效率还是偏慢，没有使用多线程。

下图是迷宫深搜的实现效果，帮助自己梳理一遍搜索的流程。



然后是数字华容道的实现效果，程序自动移动白方块至胜利并输出行走路径。



具体搜索原理网上资料很多，可以自行查找，这里直接贴出PHP版本的代码。有时间的话会做些优化。

查看代码
...]]></description><category></category></item><item><title><![CDATA[linux查找文件BOM头及删除SHELL]]></title><link>https://blog.youkuaiyun.com/xxhsu/article/details/79568335</link><guid>https://blog.youkuaiyun.com/xxhsu/article/details/79568335</guid><author>xxhsu</author><pubDate>Thu, 15 Mar 2018 15:10:20 +0800</pubDate><description><![CDATA[查找包含BOM头的文件，命令如下：grep -r -I -l $'^\xEF\xBB\xBF' ./这条命令会查找当前目录及子目录下所有包含BOM头的文件，并把文件名在屏幕上输出。但是，删除BOM头，网上找到的命令大多不能用，比较常见的命令是：grep -r -I -l $'^\xEF\xBB\xBF' /path | xargs sed -i 's/^\xEF\xBB\xBF//;q'但这条命令...]]></description><category></category></item><item><title><![CDATA[Ubuntu下重启Apache出现ServerName提示]]></title><link>https://blog.youkuaiyun.com/xxhsu/article/details/47699795</link><guid>https://blog.youkuaiyun.com/xxhsu/article/details/47699795</guid><author>xxhsu</author><pubDate>Sun, 16 Aug 2015 09:17:19 +0800</pubDate><description><![CDATA[Ubuntu环境下重启Apache出现如下提示：
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message



解决方法：]]></description><category></category></item><item><title><![CDATA[Sublime text2追踪函数插件：ctags]]></title><link>https://blog.youkuaiyun.com/xxhsu/article/details/30766675</link><guid>https://blog.youkuaiyun.com/xxhsu/article/details/30766675</guid><author>xxhsu</author><pubDate>Sat, 14 Jun 2014 19:07:14 +0800</pubDate><description><![CDATA[一、下载（择其一即可）：1）http://ctags.sourceforge.net/2）http://prdownloads.sourceforge.net/ctags/解压后单独取出ctags.exe使用即可。二、安装Sublime text插件：1）确认Sublime text已安装Install Package；2）按Ctrl+shift+P，输入Install Package回车；3）弹...]]></description><category></category></item><item><title><![CDATA[如何在Sublime text中运行PHP文件]]></title><link>https://blog.youkuaiyun.com/xxhsu/article/details/30757229</link><guid>https://blog.youkuaiyun.com/xxhsu/article/details/30757229</guid><author>xxhsu</author><pubDate>Sat, 14 Jun 2014 17:17:46 +0800</pubDate><description><![CDATA[添加 PHP 的 build system，如图所示， Tools->Build System-> New Build System ：



新建一个，默认的内容是：
{
    "cmd": ["make"]
}


修改为：
    { 
        "cmd": ["php", "$file"],
        "file_regex": "php$",]]></description><category></category></item><item><title><![CDATA[namespace及use的用法]]></title><link>https://blog.youkuaiyun.com/xxhsu/article/details/8463624</link><guid>https://blog.youkuaiyun.com/xxhsu/article/details/8463624</guid><author>xxhsu</author><pubDate>Sat, 26 Jan 2013 10:50:58 +0800</pubDate><description><![CDATA[namespace（以下简称ns）。在定义了一个ns之后，下面所申明的class、interface、const（不包含variable）都是在申明的ns这个“域”里面的。当引用一个申明了ns的包含文件，想要调用这个ns里面的东西，那必须调整当前脚本也到此ns域，否则就得用全称（）包含ns全称）：




// inc.php
namespace Foo;
class Bar {}

// 访问...]]></description><category></category></item></channel></rss>