<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[纯，属虚构]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/fall221</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; fall221]]></copyright><item><title><![CDATA[utf8编码表]]></title><link>https://blog.csdn.net/fall221/article/details/51541550</link><guid>https://blog.csdn.net/fall221/article/details/51541550</guid><author>fall221</author><pubDate>Mon, 30 May 2016 22:04:02 +0800</pubDate><description><![CDATA[UTF，是UnicodeTransformation Format的缩写，意为Unicode转换格式。UTF-8是UNICODE的一种变长字符编码，由Ken
 Thompson于1992年创建。现在已经标准化为RFC 3629。UTF-8用1到6个字节编码UNICODE字符。

    如果UNICODE字符由2个字节表示，则编码成UTF-8很可能需要3个字节，而如果UNICODE字符由4个]]></description><category></category></item><item><title><![CDATA[gbk编码表]]></title><link>https://blog.csdn.net/fall221/article/details/51541547</link><guid>https://blog.csdn.net/fall221/article/details/51541547</guid><author>fall221</author><pubDate>Mon, 30 May 2016 22:03:20 +0800</pubDate><description><![CDATA[GBK 汉字内码扩展规范编码表(二)



全国信息技术标准化技术委员会



汉字内码扩展规范(GBK)



ChineseInternal Code Specification



1.0 版



（按分类顺序排列）



● GBK/1:GB2312非汉字符号



A1 ０ １ ２３ ４ ５ ６ ７ ８ ９ Ａ Ｂ Ｃ Ｄ Ｅ ]]></description><category></category></item><item><title><![CDATA[leanote]]></title><link>https://blog.csdn.net/fall221/article/details/51317360</link><guid>https://blog.csdn.net/fall221/article/details/51317360</guid><author>fall221</author><pubDate>Wed, 04 May 2016 19:07:55 +0800</pubDate><description><![CDATA[leanote私有云笔记mac下如何安装：详细步骤：https://github.com/leanote/leanote/wiki/leanote-binary-distribution-installation-tutorial下载leonote二进制版： 
https://sourceforge.net/projects/leanote-bin/files/1.4.2/leanote-darwi]]></description><category></category></item><item><title><![CDATA[C++11以前的序列点]]></title><link>https://blog.csdn.net/fall221/article/details/50759125</link><guid>https://blog.csdn.net/fall221/article/details/50759125</guid><author>fall221</author><pubDate>Sun, 28 Feb 2016 10:49:33 +0800</pubDate><description><![CDATA[首先看wiki： 
https://en.wikipedia.org/wiki/Sequence_point简单翻译：C和C++中的序列点在C和C++中，下列位置被认为是序列点。（注意，被重载的运算符，相当于函数调用，它们引入的序列点与运算符没有关系，而与函数调用一致） 
1.&&（与）、||（或）运算符的左右两边之间有序列点。（为了实现短路逻辑）逗号表达式也是一个序列点。例如， *p++ != 0]]></description><category></category></item><item><title><![CDATA[C++ 线程安全的singleton如何实现]]></title><link>https://blog.csdn.net/fall221/article/details/50755020</link><guid>https://blog.csdn.net/fall221/article/details/50755020</guid><author>fall221</author><pubDate>Sat, 27 Feb 2016 14:07:47 +0800</pubDate><description><![CDATA[线程安全的C++ 单例饿汉模式template <class T>
class Singleton<T> {
    private:
        Singleton<T>() {}
        Singleton<T> (const Singleton<T> &);
        Singleton<T>& operator= (const Singleton<T> &);
    pu]]></description><category></category></item><item><title><![CDATA[条件变量 condition variable]]></title><link>https://blog.csdn.net/fall221/article/details/50533224</link><guid>https://blog.csdn.net/fall221/article/details/50533224</guid><author>fall221</author><pubDate>Sun, 17 Jan 2016 20:06:38 +0800</pubDate><description><![CDATA[条件变量 condition variable怎么用man pthread_cond_init 
man pthread_cond_wait注意：
必须和mutex一起用，必须先锁住mutex，再wait，否则的行为是未定义的。
不是信号安全的。因此不要在信号的handler里用
用同一个mutex，否则行为未定义
如何实现无限缓冲区假设只有一个消费者，一个生产者// 生产者
lock(&mutex]]></description><category></category></item><item><title><![CDATA[Mutext，pthread_mutext_t]]></title><link>https://blog.csdn.net/fall221/article/details/50491787</link><guid>https://blog.csdn.net/fall221/article/details/50491787</guid><author>fall221</author><pubDate>Sun, 10 Jan 2016 12:53:43 +0800</pubDate><description><![CDATA[pthread_mutext_t的实现查看man，可以得到： 
pthread_mutex_getprioceiling(), pthread_mutex_lock(), pthread_mutex_timedlock(), pthread_mutexattr_getpshared()#include <pthread.h>       int pthread_mutex_destroy(pthre]]></description><category></category></item><item><title><![CDATA[Mutex与Semaphore 第三部分：互斥的问题]]></title><link>https://blog.csdn.net/fall221/article/details/50489703</link><guid>https://blog.csdn.net/fall221/article/details/50489703</guid><author>fall221</author><pubDate>Sat, 09 Jan 2016 21:42:23 +0800</pubDate><description><![CDATA[As hopefully you can see from the previous posting, the mutex is a significantly safer mechanism to use for implementing mutual exclusion around shared resources. Nevertheless, there are still a couple]]></description><category></category></item><item><title><![CDATA[Mutex与Semaphore 第二部分 互斥锁]]></title><link>https://blog.csdn.net/fall221/article/details/50488944</link><guid>https://blog.csdn.net/fall221/article/details/50488944</guid><author>fall221</author><pubDate>Sat, 09 Jan 2016 18:21:52 +0800</pubDate><description><![CDATA[In Part 1 of this series we looked at the history of the binary and counting semaphore, and then went on to discuss some of the associated problem areas. In this posting I aim to show how a different R]]></description><category></category></item><item><title><![CDATA[Mutex与Semaphore 第一部分：Semephore]]></title><link>https://blog.csdn.net/fall221/article/details/50488177</link><guid>https://blog.csdn.net/fall221/article/details/50488177</guid><author>fall221</author><pubDate>Sat, 09 Jan 2016 16:51:25 +0800</pubDate><description><![CDATA[Mutex与SemaphoreIt never ceases to amaze me how often I see postings in newsgroups, etc. asking the difference between a semaphore and a mutex. Probably what baffles me more is that over 90% of the time]]></description><category></category></item><item><title><![CDATA[内核抢占]]></title><link>https://blog.csdn.net/fall221/article/details/50451494</link><guid>https://blog.csdn.net/fall221/article/details/50451494</guid><author>fall221</author><pubDate>Sun, 03 Jan 2016 16:52:34 +0800</pubDate><description><![CDATA[这里有两个概念，内核抢占与用户态抢占。什么是内核抢占？就是指程序执行系统调用的时候（也就是执行于内核态的时候）被其他内核线程抢占走了。有2种情况是不会也不应该被抢占的： 
1. 内核正在执行中断处理函数 
2. 内核处于临界区。正在执行自旋锁。除了以上情况以外，就可能被抢占了。如何知道当前是否为抢占系统vim /boot/config-3.10.0-123.9.3.el7.x86_64  
查看相应]]></description><category></category></item><item><title><![CDATA[字符串的左右移动]]></title><link>https://blog.csdn.net/fall221/article/details/49497861</link><guid>https://blog.csdn.net/fall221/article/details/49497861</guid><author>fall221</author><pubDate>Thu, 29 Oct 2015 22:29:05 +0800</pubDate><description><![CDATA[给定一个字符串，这个字符串为*号和26个字母。现在需要把字符串的*号移动到左侧，字母移动到右侧，字母顺序不变。


*号和字母，其实可以用一个一元函数来泛华bool func(char ch)。
3个做法：
1）空间复杂度O(n)。就是开辟一个一样长度的数组，剩下的事情就是遍历，判断，移动。从两端同时开始移动。
2）
假设func(ch)=true的放左边，fun*ch)=false]]></description><category></category></item><item><title><![CDATA[【字符串】变位词]]></title><link>https://blog.csdn.net/fall221/article/details/49406869</link><guid>https://blog.csdn.net/fall221/article/details/49406869</guid><author>fall221</author><pubDate>Sun, 25 Oct 2015 21:34:45 +0800</pubDate><description><![CDATA[给定一本英语单词词典，请找出所有的变位词集。所谓的变位词是指，组成各个单词的字母完全相同，只是字母排列的顺序不同。
如果只是给出一个词，要在库里查询它的变位词，那么遍历一次库，两个单词比较的时候，开辟char a[256]的空间记录每个字符出现的次数即可。
现在要讲库中每一个单词都归类到某个变位词集中，没法用char a[256]来空间换时间了。


如果内存放得下
第一步
遍历库，]]></description><category></category></item><item><title><![CDATA[【字符串】单词翻转]]></title><link>https://blog.csdn.net/fall221/article/details/49405195</link><guid>https://blog.csdn.net/fall221/article/details/49405195</guid><author>fall221</author><pubDate>Sun, 25 Oct 2015 18:33:22 +0800</pubDate><description><![CDATA[输入一个英文句子，翻转句子中单词的顺序，要求单词内字符的顺序不变，句子中单词以空格隔开。标点符号视为字母。如输入"I am a student."，应输出"student. a am I".显然，先将整个字符串翻转，再翻转以空格隔开的各个小区间即可。


这里需要用空格将字符串分成多个小区间，这种需求在split等函数中也有。
上代码：
#include 
#include // 翻转p]]></description><category></category></item><item><title><![CDATA[【运维】pssh简介]]></title><link>https://blog.csdn.net/fall221/article/details/48665897</link><guid>https://blog.csdn.net/fall221/article/details/48665897</guid><author>fall221</author><pubDate>Wed, 23 Sep 2015 00:21:58 +0800</pubDate><description><![CDATA[openssh是一个安全登录的工具，执行的命令为ssh your_hostname，然后输入密码，就可以登录远端机器了。或者登录后执行一个命令立即返回：ssh your_hostname echo 1。很多时候需要在很多机器上执行同一命令，这固然可以写个shell的for循环来完成，但这是串行的执行，pssh等工具可以并行执行，当命令很耗时的时候，相对于串行执行的优势就很明显了。其他类似的工具还有]]></description><category></category></item><item><title><![CDATA[【nginx】基本数据结构]]></title><link>https://blog.csdn.net/fall221/article/details/48305089</link><guid>https://blog.csdn.net/fall221/article/details/48305089</guid><author>fall221</author><pubDate>Wed, 09 Sep 2015 01:43:45 +0800</pubDate><description><![CDATA[首先，是整数类型： 
src/core/ngx_config.htypedef intptr_t        ngx_int_t;
typedef uintptr_t       ngx_uint_t;
typedef intptr_t        ngx_flag_t;即整数、无符号整数和bool。intptr_t 等三种类型定义如下： 
/usr/local/include/stdint.h]]></description><category></category></item><item><title><![CDATA[以太网的几种标准]]></title><link>https://blog.csdn.net/fall221/article/details/47861335</link><guid>https://blog.csdn.net/fall221/article/details/47861335</guid><author>fall221</author><pubDate>Sat, 22 Aug 2015 17:37:16 +0800</pubDate><description><![CDATA[http://zhidao.baidu.com/question/66256103.html?qbl=relate_question_0&word=%CA%FD%BE%DD%C1%B4%C2%B7%B2%E3%20%B3%A4%B6%C8%CF%DE%D6%C6&optimi=4




##################################################]]></description><category></category></item><item><title><![CDATA[【转】wireshark使用过程无法抓取前序和FCS或出现IP报头校验和错误--原因]]></title><link>https://blog.csdn.net/fall221/article/details/47861311</link><guid>https://blog.csdn.net/fall221/article/details/47861311</guid><author>fall221</author><pubDate>Sat, 22 Aug 2015 17:34:11 +0800</pubDate><description><![CDATA[转自： http://blog.sina.com.cn/s/blog_5e8ca2db0100vopc.html


大家好，我是Mr.w
今天解决wireshark的2个问题：
1.为什么wireshark抓不到前序和FCS
2.为什么wireshark的IP报头会出错



1.为什么wireshark抓不到帧尾的FCS
 4字节和以太网V2的前序8字节



]]></description><category></category></item><item><title><![CDATA[【好文mark】少翻故纸堆，少看文学书]]></title><link>https://blog.csdn.net/fall221/article/details/46870063</link><guid>https://blog.csdn.net/fall221/article/details/46870063</guid><author>fall221</author><pubDate>Tue, 14 Jul 2015 00:09:46 +0800</pubDate><description><![CDATA[转自水木：
http://www.newsmth.net/nForum/#!article/ShiDa/50201

现在微博微信朋友圈到处都有人转发劝读书的文章，这当然是好事。但是推荐的书单里，大都有两大类书，经典和文学。这些书目多少反映了推荐者本人的知识背景和喜好。比如，现在一些40岁的人推荐的东西大都是他们当年上大学流行的东西。比起50岁以上的人推荐的东西要新一些，但是我觉得仍然不够。]]></description><category></category></item><item><title><![CDATA[财务计算]]></title><link>https://blog.csdn.net/fall221/article/details/46629077</link><guid>https://blog.csdn.net/fall221/article/details/46629077</guid><author>fall221</author><pubDate>Thu, 25 Jun 2015 00:08:54 +0800</pubDate><description><![CDATA[注意：实际计算利息都是以月利息来算的，名义年利率=月利率*12


假设贷款12000，12期，每期月底还钱。那么，不同的年利息下，每期应该还多少？






等效年利息

每月还钱



0

￥-1,000.00



0.005

￥-1,002.71



0.01

￥-1,005.42



0.015

￥-1]]></description><category></category></item></channel></rss>