<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/ChaoticLife</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; ChaoticLife]]></copyright><item><title><![CDATA[androidNDK经验总结]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/18811387</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/18811387</guid><author>ChaoticLife</author><pubDate>Mon, 27 Jan 2014 11:34:37 +0800</pubDate><description><![CDATA[1. NDK Studio 创建的虚拟机的配置文件C:\Users\andi\.android\avd\AVD4.2.avd\config.ini 要加入 eg hw.ramSize=1024MB


2. fixbug: 解决ndk-build clean 错误
ndk\build\core\build-binary.mk
49行 ：修正为 $(cleantarget): PRIVAT]]></description><category></category></item><item><title><![CDATA[apache 目录权限不能更改]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/18003427</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/18003427</guid><author>ChaoticLife</author><pubDate>Wed, 08 Jan 2014 16:32:06 +0800</pubDate><description><![CDATA[如果apache配置都没有问题 FollowSymLinks 也配置了
软链就是不能正常访问，可以考虑SELinux是否打开的]]></description><category></category></item><item><title><![CDATA[readdir 报错Value too large for defined data]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/17997459</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/17997459</guid><author>ChaoticLife</author><pubDate>Wed, 08 Jan 2014 12:36:20 +0800</pubDate><description><![CDATA[linux 下64位系统下 执行32位的程序  readdir 报Value too large for defined data错误
原因应该是文件节点inode64读取的问题
编译时加入-D_FILE_OFFSET_BITS=64]]></description><category></category></item><item><title><![CDATA[epoll原理]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/12045263</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/12045263</guid><author>ChaoticLife</author><pubDate>Thu, 26 Sep 2013 12:02:31 +0800</pubDate><description><![CDATA[首先我们来定义流的概念，一个流可以是文件，socket，pipe等等可以进行I/O操作的内核对象。
不管是文件，还是套接字，还是管道，我们都可以把他们看作流。
之后我们来讨论I/O的操作，通过read，我们可以从流中读入数据；通过write，我们可以往流写入数据。现在假定一个情形，我们需要从流中读数据，但是流中还没有数据，（典型的例子为，客户端要从socket读如数据，但是服务器还没有把数据传]]></description><category></category></item><item><title><![CDATA[Linux多线程服务器编程 读书笔记]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/12013031</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/12013031</guid><author>ChaoticLife</author><pubDate>Wed, 25 Sep 2013 14:37:40 +0800</pubDate><description><![CDATA[对象做到线程安全，在构造期间不要泄漏this指针
1. 不要再注册期间注册任何回调
2. 不要再构造函数中吧this船歌跨线程的对象
3.]]></description><category></category></item><item><title><![CDATA[CentOS 6 安装后基本配置]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/8722482</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/8722482</guid><author>ChaoticLife</author><pubDate>Tue, 26 Mar 2013 16:34:51 +0800</pubDate><description><![CDATA[1．网络配置

（1）命令配置
# ifconfig eth0 192.168.0.2 netmask 255.255.255.0 　　//ip地址、子网掩码
# route add default gw 192.168.0.1 dev eth0　　//网关
# hostname centos 　　//计算机名

（2）文件配置
修改IP地址
修改对应网卡的IP地址的配置文件]]></description><category></category></item><item><title><![CDATA[JQGrid 心得]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/8501919</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/8501919</guid><author>ChaoticLife</author><pubDate>Mon, 14 Jan 2013 17:27:40 +0800</pubDate><description><![CDATA[如果文件中有BOM头 会影响jqgrid的显示 比如翻页样式。 height的]]></description><category></category></item><item><title><![CDATA[boost::bind介绍]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/8141344</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/8141344</guid><author>ChaoticLife</author><pubDate>Fri, 02 Nov 2012 16:25:12 +0800</pubDate><description><![CDATA[boost::bind介绍
bind的中文翻译是"绑定",它的作用就是把参数与象函数一样的"东西"进行"绑定",然后象
函数一样运行.那象函数一样的"东西"到底是什么东西呢?
象函数一样的"东西"还挺多的.
int f1();
free function,这当然是一种.
int C::method();
某个class的method,当然也是一种.
typedef int (*pf]]></description><category></category></item><item><title><![CDATA[unsigned char* 转 string]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/7302562</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/7302562</guid><author>ChaoticLife</author><pubDate>Tue, 28 Feb 2012 15:54:07 +0800</pubDate><description><![CDATA[unsigned char bytes [] 
            int length = bytes_message->getBodyLength();
            char* bytes = new char[length];

            memcpy(bytes, bytes_message->getBodyBytes(), length);]]></description><category></category></item><item><title><![CDATA[PHP扩展二进制数据返回]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/7302537</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/7302537</guid><author>ChaoticLife</author><pubDate>Tue, 28 Feb 2012 15:52:39 +0800</pubDate><description><![CDATA[使用C或者C++编写PHP扩展时需要返回二进制的字符串是要使用RETURN_STRINGL宏进行返回
用法如下：




RETURN_STRINGL(string, length, duplicate)
返回一个定长的字符串。其余跟 RETURN_STRING 相同。这个宏速度更快而且是二进制安全的。]]></description><category></category></item><item><title><![CDATA[C++  undefined reference to 错误]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/7302029</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/7302029</guid><author>ChaoticLife</author><pubDate>Tue, 28 Feb 2012 14:25:46 +0800</pubDate><description><![CDATA[undefined reference to xxx 一般都是没有链接对应的lib文件造成的

例如
t.cc:(.text+0x13): undefined reference to `std::cout'
没有链接标准库文件
编译时加参数 -lstdc++  即可]]></description><category></category></item><item><title><![CDATA[Let's BOOST THE WORLD .]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/7260688</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/7260688</guid><author>ChaoticLife</author><pubDate>Wed, 15 Feb 2012 12:01:32 +0800</pubDate><description><![CDATA[1. 序言

现在学的东西很容易忘记,写这篇文章的目的是能让我在需要时快速找回当时的感觉. Let's BOOST THE WORLD .

2. 编译:VC2005注意

在 属性->C/C++->预处理器->预处理定义 中加入

_CRT_SECURE_NO_DEPRECATE;

来屏蔽不必要的警告

3. Asio 网络库

Boost.Asio是利用当代C++]]></description><category></category></item><item><title><![CDATA[protobuf的编码方式]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/7228828</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/7228828</guid><author>ChaoticLife</author><pubDate>Thu, 02 Feb 2012 16:05:20 +0800</pubDate><description><![CDATA[本文介绍protobuf的编码方式。源地址

一个简单的消息
message Test1 {
  required int32 a = 1;
}

我们创建一个Test1消息，给a赋值150，序列化之后存储，我们得到如下的3个byte数据（16进制表示）：
08 96 01



非常的简洁，那么这是如何得到的呢？下面我们开始分析

Varints编码

首先介绍Var]]></description><category></category></item><item><title><![CDATA[让人郁闷的IE]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/7024688</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/7024688</guid><author>ChaoticLife</author><pubDate>Tue, 29 Nov 2011 19:56:11 +0800</pubDate><description><![CDATA[IE下类的方法居然不能使用delete 做方法名，错误提示还莫名奇妙，郁闷呀......]]></description><category></category></item><item><title><![CDATA[支持缩进的json序列化类，支持js function 和json]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/6980825</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/6980825</guid><author>ChaoticLife</author><pubDate>Thu, 17 Nov 2011 10:59:38 +0800</pubDate><description><![CDATA[前段时间需要用php的数组生成js对象，需要在php中直接写入js 的简单函数代码function，php的json_encode 木有这样滴功能  无奈自己写了一个json序列化的类，为了方便查看生成的json，加入了缩进的功能， 代码如下：


/**
 * created by wangbinandi@gmail.com at 2011-11-12 21:12
 *  可以生成缩进的j]]></description><category></category></item><item><title><![CDATA[SHIP S-OFF、ENG S-OFF、软解、白卡解锁释疑]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/6894764</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/6894764</guid><author>ChaoticLife</author><pubDate>Fri, 21 Oct 2011 18:05:05 +0800</pubDate><description><![CDATA[SHIP S-OFF、ENG S-OFF、软解、白卡解锁释疑 源地址


DHD刚上市，中文rom出来后，入手同学多了很多 
市场也确实比较复杂，什么JS白卡解啊，软解啊，这刷不了啊，那刷不了啊，吧啦吧啦吧啦。。。。。。 

关心自己手上鸡鸡状态的同学不少，就这些个问题，大致说明下吧 
方向键下，power开机进FASTBOOT  看信息 
拿个最常见的出来说明下吧 

VIS]]></description><category></category></item><item><title><![CDATA[ 解决error LNK2019一种错误]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/6218730</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/6218730</guid><author>ChaoticLife</author><pubDate>Wed, 02 Mar 2011 17:22:00 +0800</pubDate><description><![CDATA[<br />1 去掉cpp 文件的inline  2 模板函数移入头文件中]]></description><category></category></item><item><title><![CDATA[TCP/UDP流程比较]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/6070640</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/6070640</guid><author>ChaoticLife</author><pubDate>Sun, 12 Dec 2010 11:56:00 +0800</pubDate><description><![CDATA[TCP 流程UDP流程TCP和UDP的程序差异：socket()参数不同UDP Server不需要使用listen及acceptUDP收发数据用sendto/recvfrom TCP使用send/recvTCP：address message在connect/accept时决定
    UDP：在每次的sendto/recvfrom函数中取得address messageUDP：shutdown无效
SOCK_STREAM：使用TCP/IP協定。
SOCK_DGRAM：使用UDP協定。
SOCK_R]]></description><category></category></item><item><title><![CDATA[收集C++开发经验]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/6070547</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/6070547</guid><author>ChaoticLife</author><pubDate>Sun, 12 Dec 2010 10:25:00 +0800</pubDate><description><![CDATA[<br />1. 常量字符串放哪里<br />
char* msg = "hello"; // 字符串常量 应该用const 来修饰<br />
// msg 是个指针，c/c++语言不保证为它翻盘一块内存，其实我们没有现实的为它分配一块内存， <br />
它指向哪里？ 指向"hello" 当在代码里写了"hello" <br />
实际上c++语言分配了一块内存存放这个字符串，<br />
当写了char* msg = "hello"的时候，就把hello的内存地址赋给了msg<br />
]]></description><category></category></item><item><title><![CDATA[boost 库linux编译安装(修正 版)]]></title><link>https://blog.youkuaiyun.com/ChaoticLife/article/details/5767655</link><guid>https://blog.youkuaiyun.com/ChaoticLife/article/details/5767655</guid><author>ChaoticLife</author><pubDate>Mon, 26 Jul 2010 23:59:00 +0800</pubDate><description><![CDATA[ boost 库linux编译安装(修正 版)

    相对于Windows来，Linux下的boost编译简单至极。没有那么多的可选编译器，没有那长的编译时间，没有那么多的硬盘使用量，统一的inlude和lib目录，你熟悉命令行，不使用IDE，不需要我那么罗嗦的介绍怎么配置EditPlus。
]]></description><category></category></item></channel></rss>