<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[逆雪寒的天坑]]></title><description><![CDATA[Mysql DBA]]></description><link>https://blog.youkuaiyun.com/huithe</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; huithe]]></copyright><item><title><![CDATA[git 开发日常使用]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/51705505</link><guid>https://blog.youkuaiyun.com/huithe/article/details/51705505</guid><author>huithe</author><pubDate>Sat, 18 Jun 2016 13:29:01 +0800</pubDate><description><![CDATA[助你开始使用 git 的简易指南，木有高深内容，;)。
Tweet

作者：罗杰·杜德勒 
感谢：@tfnico, @fhd and Namics
其他语言 english, deutsch, español, français, italiano, nederlands, português, русский, türkçe, 
မြန်မာ, 日本語, 한국어 
如有纰漏，请到]]></description><category></category></item><item><title><![CDATA[违法、色情、敏感信息过滤服务。。尝试了下 Rabbit]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/51673011</link><guid>https://blog.youkuaiyun.com/huithe/article/details/51673011</guid><author>huithe</author><pubDate>Tue, 14 Jun 2016 16:54:04 +0800</pubDate><description><![CDATA[需要对内容进行 违法的 色情 等内容过滤。  自己写又麻烦  用了下 https://github.com/nixuehan/rabbit    发现 真不错。。]]></description><category></category></item><item><title><![CDATA[去除mysql 里不可见字符]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/44220017</link><guid>https://blog.youkuaiyun.com/huithe/article/details/44220017</guid><author>huithe</author><pubDate>Thu, 12 Mar 2015 12:11:32 +0800</pubDate><description><![CDATA[工作中有一个中文字库表，是前辈从其他地方导入的。最近使用的时候发现有些词，比如“清白”，明明只有两个字，却只能用LIKE ‘%清白%’查出，直接=’清白’找不到。

第一反应，前后可能有空格。于是在PHPMyadmin中用MySQL的trim函数过滤了一下
update 字库 set Vocabulary = trim(Vocabulary)

但返回的affected rows数居然是]]></description><category></category></item><item><title><![CDATA[一致性哈希memcache  php实现]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/44101817</link><guid>https://blog.youkuaiyun.com/huithe/article/details/44101817</guid><author>huithe</author><pubDate>Fri, 06 Mar 2015 16:56:25 +0800</pubDate><description><![CDATA[/**
 * 一致性哈希memcache分布式，采用的是虚拟节点的方式解决分布均匀性问题,查找节点采用二分法快速查找
 * the last known user to change this file in the repository  
 * @author nash.xiong 
 * @copyright Copyright &copy; 2003-2012 phpd.cn
 ]]></description><category></category></item><item><title><![CDATA[自定义异常 例子]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/44026677</link><guid>https://blog.youkuaiyun.com/huithe/article/details/44026677</guid><author>huithe</author><pubDate>Tue, 03 Mar 2015 00:00:41 +0800</pubDate><description><![CDATA[以下4段代码为我在waylife项目中的简单应用（非生产环境），不健壮也不美化，但该SNS项目早已经夭折。

1、异常类的层级关系：


class NotFoundException extends Exception{}  
class InputException extends Exception{}  
class DBException extends Exception]]></description><category></category></item><item><title><![CDATA[PHP5.2至5.6的新增功能详解]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/43928213</link><guid>https://blog.youkuaiyun.com/huithe/article/details/43928213</guid><author>huithe</author><pubDate>Tue, 24 Feb 2015 23:08:02 +0800</pubDate><description><![CDATA[截至目前(2014.2), PHP 的最新稳定版本是 PHP5.5, 但有差不多一半的用户仍在使用已经不在维护[注]的 PHP5.2, 其余的一半用户在使用 PHP5.3[注]
因为 PHP 那“集百家之长”的蛋疼语法，加上社区氛围不好，很多人对新版本，新特征并无兴趣。

本文将会介绍自 PHP5.2 起，直至 PHP5.6 中增加的新特征。

PHP5.2 以前：autoload, P]]></description><category></category></item><item><title><![CDATA[AFNetworking 使用]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/43057683</link><guid>https://blog.youkuaiyun.com/huithe/article/details/43057683</guid><author>huithe</author><pubDate>Fri, 23 Jan 2015 16:42:29 +0800</pubDate><description><![CDATA[http网络库是集XML解析，Json解析，网络图片下载，plist解析，数据流请求操作，上传，下载，缓存等网络众多功能于一身的强大的类库。最新版本支持session，xctool单元测试。网络获取数据一直是手机软件的重中之重，如果处理的不好，会造成很差的用户体验。随着ASIHTTPRequest的停止更新，更换网络库是必然的事情，AFNetworking就是很好的替代品。而且都是轻量级，不要担心]]></description><category></category></item><item><title><![CDATA[openwrt 配置 wifidog]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/28896219</link><guid>https://blog.youkuaiyun.com/huithe/article/details/28896219</guid><author>huithe</author><pubDate>Fri, 06 Jun 2014 16:35:24 +0800</pubDate><description><![CDATA[http://sinappel.com/2013/12/08/openwrt-wifidog-wifi-hotspots/]]></description><category></category></item><item><title><![CDATA[ubuntu 和  window 共享]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/27606497</link><guid>https://blog.youkuaiyun.com/huithe/article/details/27606497</guid><author>huithe</author><pubDate>Fri, 30 May 2014 01:58:14 +0800</pubDate><description><![CDATA[sudo apt-get install open-vm-dkms，一路按enter键通过。 
然后sudo mount  -t  vmhgfs  .host:/   /mnt/hgfs，这样/mnt/hgfs下便有了与windows的共享目录。 
为了每次开机自动挂载共享目录，在/etc/init.d/open-vm-tools末尾增加一行： 
sudo mount  -t  vmhgfs]]></description><category></category></item><item><title><![CDATA[ApFree/wifidog_v2_authserver_demo]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/27605361</link><guid>https://blog.youkuaiyun.com/huithe/article/details/27605361</guid><author>huithe</author><pubDate>Fri, 30 May 2014 01:52:43 +0800</pubDate><description><![CDATA[ApFree/wifidog_v2_authserver_demo




https://github.com/ApFree/wifidog_v2_authserver_demo]]></description><category></category></item><item><title><![CDATA[nginx 404 图片均衡]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/27498569</link><guid>https://blog.youkuaiyun.com/huithe/article/details/27498569</guid><author>huithe</author><pubDate>Thu, 29 May 2014 10:58:12 +0800</pubDate><description><![CDATA[error_page 404 = /atta/$request_uri;




        location /atta/ {
                internal;
                proxy_set_header  Host $host;
                proxy_set_header X-Forwarded-For $rem]]></description><category></category></item><item><title><![CDATA[wifidog  认证 php]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/27253859</link><guid>https://blog.youkuaiyun.com/huithe/article/details/27253859</guid><author>huithe</author><pubDate>Wed, 28 May 2014 00:19:40 +0800</pubDate><description><![CDATA[1.首先简单说说wifidog认证的过程客户端首次连接到wifi后，浏览器请求将会被重定向到：login/?gw_address=%s&gw_port=%d&gw_id=%s&url=%s验证通过后，客户端被重定向到网关，url格式如下：http://网关地址:网关端口/wifidog/auth?token=wifidong会启动一个线程周期性地报告每一个用户的状态信息，并通过如下地址发送给认证服]]></description><category></category></item><item><title><![CDATA[wifidog  认证]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/27195903</link><guid>https://blog.youkuaiyun.com/huithe/article/details/27195903</guid><author>huithe</author><pubDate>Tue, 27 May 2014 13:32:30 +0800</pubDate><description><![CDATA[首先简单介绍一下什么是Portal认证，Portal认证，通常也会叫Web认证，未认证用户上网时，设备强制用户登录到特定站点，用户可以免费访问其中的服务。当用户需要使用互联网中的其它信息时，必须在门户网站进行认证，只有认证通过后才可以使用互联网资源。现金很多中国移动CMCC、中国联通、中国电信ChinaNet的WIFI都使用这种认证接入方式。



在OpenWRT上实现Portal认证，]]></description><category></category></item><item><title><![CDATA[wifidog 认证]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/27187115</link><guid>https://blog.youkuaiyun.com/huithe/article/details/27187115</guid><author>huithe</author><pubDate>Tue, 27 May 2014 11:40:48 +0800</pubDate><description><![CDATA[Wifi有一种web方式认证方案，当连接到某些不加密的热点之后，会跳转到一个网页来认证登陆，大家熟悉的CMCC就采用了这种web的验证方式。
它的原理是在得到正确的认证之前，会把所有的流量重定向到认证服务器上，通过认证后，便可以正常使用。
如果说仅仅想获取web验证时其他用户的用户名和密码，arp欺骗然后嗅探足够了。因为此时攻击者已经分配到了ip，且同一网关下产生的流量是不会重定向的。
但是]]></description><category></category></item><item><title><![CDATA[openssl  生成 证书]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/26682843</link><guid>https://blog.youkuaiyun.com/huithe/article/details/26682843</guid><author>huithe</author><pubDate>Fri, 23 May 2014 11:07:27 +0800</pubDate><description><![CDATA[x509证书一般会用到三类文，key，csr，crt。

Key 是私用密钥openssl格，通常是rsa算法。

Csr 是证书请求文件，用于申请证书。在制作csr文件的时，必须使用自己的私钥来签署申，还可以设定一个密钥。

crt是CA认证后的证书文，（windows下面的，其实是crt），签署人用自己的key给你签署的凭证。 

 

1.key的生成 

opens]]></description><category></category></item><item><title><![CDATA[ubuntu pureftpd]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/26461183</link><guid>https://blog.youkuaiyun.com/huithe/article/details/26461183</guid><author>huithe</author><pubDate>Wed, 21 May 2014 12:00:52 +0800</pubDate><description><![CDATA[Pure-FTPd FTP server
Pure-FTPd is a fast, production-quality, standards-conformant FTP server based upon Troll-FTPd. Features include chrooted home directories, virtual domains, built-in 'ls', anti-w]]></description><category></category></item><item><title><![CDATA[PopupWindow 显示下拉菜单]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/25284963</link><guid>https://blog.youkuaiyun.com/huithe/article/details/25284963</guid><author>huithe</author><pubDate>Thu, 08 May 2014 10:34:51 +0800</pubDate><description><![CDATA[没有太多花样，也没有很复杂的技术，就是简单的PopupWindow的使用，可以实现点击弹出一个自定义的view，view里可以随便设计，常用的可以放一个listview。




demo中我只是一个点击展示，简单的使用了fade in out的动画效果，也没有精美的图片资源，看着也丑，不过这么短的时间，让你掌握一个很好用的技术，可以自己扩展，不很好么？







废]]></description><category></category></item><item><title><![CDATA[android json 处理]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/25234305</link><guid>https://blog.youkuaiyun.com/huithe/article/details/25234305</guid><author>huithe</author><pubDate>Wed, 07 May 2014 17:39:02 +0800</pubDate><description><![CDATA[String strJson = "{"students":[{"name":"Jack","age":12}, {"name":"Vista","age":23}, {"name":"Kaka","age":22}, {"name":"Hony","age":31}]}";
        try {
            JSONObject jo = new JSONObject(st]]></description><category></category></item><item><title><![CDATA[使用tc限制带宽]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/25070739</link><guid>https://blog.youkuaiyun.com/huithe/article/details/25070739</guid><author>huithe</author><pubDate>Mon, 05 May 2014 18:04:56 +0800</pubDate><description><![CDATA[最近有同事用bt和电驴疯狂下载，我们上网打cs受到极大影响，所以对nat上网做了流量控制,将一点经验介绍给网友，希望对cs fans 有所帮助. 
我们上网环境如下： 
    eth0 外网ip :a.b.c.d 
    eth1 内网ip1:192.168.0.0/24  给老板和bt 
    eth2 内网ip2:192.168.1.0/24  给我和csfans 
用linu]]></description><category></category></item><item><title><![CDATA[iOS程序自动检测更新的实现]]></title><link>https://blog.youkuaiyun.com/huithe/article/details/23706503</link><guid>https://blog.youkuaiyun.com/huithe/article/details/23706503</guid><author>huithe</author><pubDate>Mon, 14 Apr 2014 21:17:57 +0800</pubDate><description><![CDATA[之前项目需要用到app自动更新的功能，现将实现方案分享出来。
iOS程序自动提示更新的实现方案大致分为两种：
第一种，自己服务器提供一个接口，告知相关app的当前版本，是否需要更新，以及更新的地址等信息 。
第二种，就是利用苹果的appstore 提供的相关api进行查询更新。
 
由于此前没有找到iOS程序更新的方法，就用了第一种方式，但后来发现了一些问题，自己提供服务器，需要维护，程]]></description><category></category></item></channel></rss>