<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[博客已迁移至 https://lxb.wiki]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/lxbwolf</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; lxbwolf]]></copyright><item><title><![CDATA[Redis笔记]]></title><link>https://blog.csdn.net/lxbwolf/article/details/81108204</link><guid>https://blog.csdn.net/lxbwolf/article/details/81108204</guid><author>lxbwolf</author><pubDate>Thu, 19 Jul 2018 01:03:11 +0800</pubDate><description><![CDATA[数据类型

Redis 支持5中数据类型

字符串(string)

Redis 中字符串是一个字节序列. Redis 中的字符串是二进制安全的, 这意味着它们的长度不由任何特殊的终止字符决定。因此，可以在一个字符串中存储高达512兆字节的任何内容 
例



redis 127.0.0.1:6379&amp;gt; SET name &quot;value&quot;
OK
redis 127.0.0.1:6379&amp;gt;...]]></description><category></category></item><item><title><![CDATA[Go 命令]]></title><link>https://blog.csdn.net/lxbwolf/article/details/81091214</link><guid>https://blog.csdn.net/lxbwolf/article/details/81091214</guid><author>lxbwolf</author><pubDate>Wed, 18 Jul 2018 01:04:13 +0800</pubDate><description><![CDATA[Go语言自带有一套完整的命令操作工具，可以通过在命令行中执行go来查看它们：

build

clean

fmt

get

install

test

tool



generate

run]]></description><category></category></item><item><title><![CDATA[GO环境变量]]></title><link>https://blog.csdn.net/lxbwolf/article/details/81091203</link><guid>https://blog.csdn.net/lxbwolf/article/details/81091203</guid><author>lxbwolf</author><pubDate>Wed, 18 Jul 2018 00:57:06 +0800</pubDate><description><![CDATA[GOROOT

，在Linux系统中一般安装在/usr/go或者/usr/local/go，这样Linux系统中的PATH变量一般都包含了这两个目录，所以就可以直接运行go命令，而Windows系统中一般默认安装在C:\go中

自定义 GO安装路径, 可修改环境变量配置文件 
export GOROOT=$HOME/go



GOPATH

go的工作目录，这个目录指定了需要从哪个地方寻找GO...]]></description><category></category></item><item><title><![CDATA[Liunx 安装bashmarks]]></title><link>https://blog.csdn.net/lxbwolf/article/details/81024785</link><guid>https://blog.csdn.net/lxbwolf/article/details/81024785</guid><author>lxbwolf</author><pubDate>Fri, 13 Jul 2018 00:34:21 +0800</pubDate><description><![CDATA[下载源码

git clone https://github.com/lxbwolf/bashmarks.git 
把bashmarks.sh复制到~/bin/

添加环境变量

在环境变量文件里, 添加 
. ~/bin/bashmarks.sh

相关命令



s &amp;lt;bookmark_name&amp;gt; - Saves the current directory as &quot;bookmark...]]></description><category></category></item><item><title><![CDATA[linux 安装thefuck]]></title><link>https://blog.csdn.net/lxbwolf/article/details/81024767</link><guid>https://blog.csdn.net/lxbwolf/article/details/81024767</guid><author>lxbwolf</author><pubDate>Fri, 13 Jul 2018 00:30:33 +0800</pubDate><description><![CDATA[下载源码

git clone https://github.com/lxbwolf/thefuck.git

配置环境变量


把thefuck/**/libexec/bin 添加进环境变量
eval $(thefuck --alias fuck)
]]></description><category></category></item><item><title><![CDATA[linux 配置samba]]></title><link>https://blog.csdn.net/lxbwolf/article/details/81024734</link><guid>https://blog.csdn.net/lxbwolf/article/details/81024734</guid><author>lxbwolf</author><pubDate>Fri, 13 Jul 2018 00:22:30 +0800</pubDate><description><![CDATA[开发机安装 samba

yum install samba samba-client samba-swat



添加账号

sampasswd -a 用户名 用户名只能为已经存在的账号



配置共享文件夹

编辑etc/samba/smb.conf, 追加内容: 



[samba_share_dir]

comment = samba_share
path = /home/lxb/sam...]]></description><category></category></item><item><title><![CDATA[nginx 配置中的 rewrite]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80715950</link><guid>https://blog.csdn.net/lxbwolf/article/details/80715950</guid><author>lxbwolf</author><pubDate>Sat, 16 Jun 2018 23:20:25 +0800</pubDate><description><![CDATA[语法


last
break 中止 rewrite, 不再继续匹配
redirect 返回临时重定向的 HTTP 状态302
permanet 返回永久重定向的 HTTP 状态301


last 和 break 的不同: 
break 是终止当前location 的 rewrite 检测, 且不再进行 location 匹配; 
last是终止当前location的rewrite检测,但会继续...]]></description><category></category></item><item><title><![CDATA[nginx 寻找index 原理]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80710906</link><guid>https://blog.csdn.net/lxbwolf/article/details/80710906</guid><author>lxbwolf</author><pubDate>Sat, 16 Jun 2018 01:26:10 +0800</pubDate><description><![CDATA[当nginx发现需要/web/echo/index.php 文件时, 就会向内核发起 IO 系统调用(因为要跟硬件打交道, 这里的硬件是指硬盘, 通常需要靠内核来操作, 而内核提供的这些功能是通过系统调用来实现的), 告诉内核, 我需要这个文件, 内核从/ 开始找到web 目录, 再在web 目录下找到echo 目录, 最后在echo 目录下找到index.php 文件, 于是把这个index.p...]]></description><category></category></item><item><title><![CDATA[nginx配置中的location]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80699681</link><guid>https://blog.csdn.net/lxbwolf/article/details/80699681</guid><author>lxbwolf</author><pubDate>Thu, 14 Jun 2018 23:25:12 +0800</pubDate><description><![CDATA[语法 
location [=|~|~*|^~] /uri/ {...} 
上下文: server

此命令随URL 不同而接受不同的结构. 
可以配置使用常规字符串和正则表达式. 若使用正则表达式, 则必须使用~*前缀(选择不区分大小写的匹配) 或~前缀(区分大小写的匹配)


= 表示uri 以某个常规字符串开头, 理解为匹配url 路径即可. nginx 不对url 做编码, 因此请求为/s...]]></description><category></category></item><item><title><![CDATA[NERDTree 使用]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80631591</link><guid>https://blog.csdn.net/lxbwolf/article/details/80631591</guid><author>lxbwolf</author><pubDate>Sat, 09 Jun 2018 11:44:35 +0800</pubDate><description><![CDATA[F3：自定义启用/隐藏目录树 
?: 快速帮助文档 
o: 打开一个目录或者打开文件，创建的是buffer，也可以用来打开书签 
go: 打开一个文件，但是光标仍然留在NERDTree，创建的是buffer 
t: 打开一个文件，创建的是Tab，对书签同样生效 
T: 打开一个文件，但是光标仍然留在NERDTree，创建的是Tab，对书签同样生效 
i: 水平分割创建文件的窗口，创建的是buffe...]]></description><category></category></item><item><title><![CDATA[HTTP协议笔记]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80517604</link><guid>https://blog.csdn.net/lxbwolf/article/details/80517604</guid><author>lxbwolf</author><pubDate>Wed, 30 May 2018 23:11:14 +0800</pubDate><description><![CDATA[HTTP协议的特点: 
1. 支持客户端/服务器模式 
2. 简单快速: 客户端向服务器请求服务时, 只需传送请求方法和路径. 请求方法常用的有GET, HEAD, POST. 每种方法规定了客户端与服务器联系的类型. 由于HTTP协议简单, 使得HTTP服务器的程序规模小, 因而通信速度很快. 
3. 灵活: HTTP 允许传输任意类型的数据对象. 正在传输的类型由Content-Type加以标...]]></description><category></category></item><item><title><![CDATA[qt同步方式发送post请求]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80403064</link><guid>https://blog.csdn.net/lxbwolf/article/details/80403064</guid><author>lxbwolf</author><pubDate>Tue, 22 May 2018 11:12:46 +0800</pubDate><description><![CDATA[不成功的方式: 
1. QNetworkReply的isFinished()函数, 通过while循环判断reply是否已经结束, 结束后再调用readAll()读取响应信息, 结果与判断isRunning() 方式结果一样, 都会进入死循环, 没有响应. 
2. QNetworkReply继承自QIODevice, 尝试调用QIODevice的waitForReadyRead()方法, 结果不阻...]]></description><category></category></item><item><title><![CDATA[Qt 程序打包]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80188744</link><guid>https://blog.csdn.net/lxbwolf/article/details/80188744</guid><author>lxbwolf</author><pubDate>Thu, 03 May 2018 23:03:01 +0800</pubDate><description><![CDATA[设置程序图标


把ico文件放到源文件目录下, 命名为”test.ico”
创建一个myico.rc 文件, 输入如下内容 
IDI_ICON1 ICON DISCARDABLE &quot;test.ico&quot;
在pro文件写入 RC_FILE = myico.rc
执行qmake, 编译


编译, 打包


选择release编译运行
将生成的exe文件放到某个路径下, 如 Desktop/Test
...]]></description><category></category></item><item><title><![CDATA[Gerrit+apache安装]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80174020</link><guid>https://blog.csdn.net/lxbwolf/article/details/80174020</guid><author>lxbwolf</author><pubDate>Wed, 02 May 2018 23:56:23 +0800</pubDate><description><![CDATA[使用gerrit自带的数据库h2, 验证方式为HTTP, SMTP 服务器未配置



git 安装

可直接从yum 源安装



gerrit 安装

先添加gerrit 用户. gerrit 从2.10开始, 换成了新版界面. 
几乎国内所有的镜像都会下载失败, 需要翻墙下载. 下载完成后, 
初始化命令为: 
java -jar gerrrit-war init -d /home/gerr...]]></description><category></category></item><item><title><![CDATA[Qt工程的几种文件]]></title><link>https://blog.csdn.net/lxbwolf/article/details/80024890</link><guid>https://blog.csdn.net/lxbwolf/article/details/80024890</guid><author>lxbwolf</author><pubDate>Fri, 20 Apr 2018 22:23:24 +0800</pubDate><description><![CDATA[*.pro

qmake的工程(project)文件 
例子:



TEMPLATE = app
CONFIG += QT
QT += core gui

TARGET = somename

SOURCES += main.cpp \
          widget.cpp
HEADERS += widget.h
FORMS += widget.ui


前三行是qmake的默认值, 都可以...]]></description><category></category></item><item><title><![CDATA[Qt UI 编码规范]]></title><link>https://blog.csdn.net/lxbwolf/article/details/79786462</link><guid>https://blog.csdn.net/lxbwolf/article/details/79786462</guid><author>lxbwolf</author><pubDate>Mon, 02 Apr 2018 11:10:49 +0800</pubDate><description><![CDATA[变量声明


每行只声明一个变量
避免使用短的/无意义的命名
当一个变量被用到时再声明

// Wrong
int a, b;
char* c, * d;

// Correct
int height;
int width;
char* nameOfOne;
char* nameOfOther;




变量命名


变量名/函数名采用驼峰命名法(lowerCaseCamel), 首字母缩写词出现...]]></description><category></category></item><item><title><![CDATA[CentOS7 升级gcc和gdb]]></title><link>https://blog.csdn.net/lxbwolf/article/details/79725096</link><guid>https://blog.csdn.net/lxbwolf/article/details/79725096</guid><author>lxbwolf</author><pubDate>Wed, 28 Mar 2018 11:30:33 +0800</pubDate><description><![CDATA[升级后版本: 
gcc-5.4.0 
gdb-7.11.1



安装开发必备环境



yum groupinstall &amp;quot;Development Tools&amp;quot;
yum install glibc-static libstdc++-static



编译安装gcc-5.4.0

gcc下载地址



tar -xvf gcc-5.4.0.tar.bz2
cd gcc-5.4.0
./contr...]]></description><category></category></item><item><title><![CDATA[ffmpeg推流报错]]></title><link>https://blog.csdn.net/lxbwolf/article/details/79712820</link><guid>https://blog.csdn.net/lxbwolf/article/details/79712820</guid><author>lxbwolf</author><pubDate>Tue, 27 Mar 2018 14:33:43 +0800</pubDate><description><![CDATA[在使用dshow设备推流时，经常会报出real time buffer too full dropping frames的错误信息，其原因在这篇文章里有写到，可以通过添加rtbufsize参数来解决，码率越高对应的rtbufsize就需要越高，但过高的rtbufsize会带来视频的延时，若要保持同步，可能就需要对音频人为增加一定的延时。而根据我的测试，即使不添加rtbufszie参数，虽然会报出错...]]></description><category></category></item><item><title><![CDATA[ffmpeg视音频同步]]></title><link>https://blog.csdn.net/lxbwolf/article/details/79712790</link><guid>https://blog.csdn.net/lxbwolf/article/details/79712790</guid><author>lxbwolf</author><pubDate>Tue, 27 Mar 2018 14:32:10 +0800</pubDate><description><![CDATA[原文地址: https://blog.csdn.net/nonmarking/article/details/50522413

对于直播流来说, 只考虑发送端的同步问题, 原理如下: 
1. 解析视音频, 讲视频流和音频流的时间戳用同样的时间基准表示 
2. 比较转换后的两个时间戳, 找出较小值, 对应发送偏慢的流 
3. 读取, 转码, 发送相应的流, 同时, 若该流的转码时间很快, 超前于w...]]></description><category></category></item><item><title><![CDATA[protocol buffer]]></title><link>https://blog.csdn.net/lxbwolf/article/details/79643258</link><guid>https://blog.csdn.net/lxbwolf/article/details/79643258</guid><author>lxbwolf</author><pubDate>Wed, 21 Mar 2018 17:36:34 +0800</pubDate><description><![CDATA[Developer Guide

.proto 文件



message Person {
  required string name = 1;
  required int32 id = 2;
  optional string email = 3;

  enum PhoneType {
    MOBILE = 0;
    HOME = 1;
    WORK = 2;
  }

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