<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Brasy的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/github_40044758</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; github_40044758]]></copyright><item><title><![CDATA[PDF文档合并]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/118030405</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/118030405</guid><author>github_40044758</author><pubDate>Fri, 18 Jun 2021 17:28:01 +0800</pubDate><description><![CDATA[pdf文档合并
最近申请材料，需要进行pdf文档合并，网上找了个软件，免费下载，付费使用…
想使用work打开pdf再work合并。结果使用work打开pdf，一堆错乱的东西。pdf是图片，到了work里是被解析出文字，pdf文档失真了。这个只适合文字类的转化，不适合带有图片的。
充分发挥程序员的作用，写一个pdl合并的脚本，这才是我们程序员的修养，哈哈。
想着python是如此强大，还能有什么做不出来的呢。于是网上搜索python实现pdl合并。
找到realpython网站，一个python好用好学的网]]></description><category></category></item><item><title><![CDATA[gmock: function has no default action set, and its return type has no default value set…]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/111932846</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/111932846</guid><author>github_40044758</author><pubDate>Tue, 29 Dec 2020 17:05:01 +0800</pubDate><description><![CDATA[Issue

分析：getAll()被多次调用，每次调用后，返回值不一样，不能分开写每次调用写一个EXPECT_CALL，也不能使用repeatedly，需要按照调用顺序，每次调用分别返回。
如下code，跑UT不行，提示上面的failure.

解决：UT gmock的时候，每次expect返回值不同，需要使用WillOnce分别写，但是要格式对齐。这样才能满足

UT很有用，也很重要，慢慢来

...]]></description><category></category></item><item><title><![CDATA[undefined reference to `boost::gregorian::greg_month::as_short_string() const‘]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/111931133</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/111931133</guid><author>github_40044758</author><pubDate>Tue, 29 Dec 2020 16:58:07 +0800</pubDate><description><![CDATA[Issue:
cmake --coverage cmake/cMakeLists/… 使用cmake做UT的coverage，找不到定义
/boost/date_time/date_formatting.hpp:45: undefined reference to boost::gregorian::greg_month::as_short_string() const' /boost/date_time/date_formatting.hpp:50: undefined reference to boos]]></description><category></category></item><item><title><![CDATA[wireshark过滤http包]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/111290919</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/111290919</guid><author>github_40044758</author><pubDate>Wed, 16 Dec 2020 17:20:58 +0800</pubDate><description><![CDATA[Wireshark filter: Protocol = “HTTP” 显示过滤http数据包

List item

利用wireshark 工具内置的filter
直接点击"Filter", 打开"display Filter"对话框，选择"HTTP"，然后点击"Expression"，使用工具已经识别到的那些过滤条件表达式。

2. http 关键词过滤

只访问某指定域名：http.host==“域名”
访问包含了指定字符串的 ： http.[host] contains “内容”
只显示Refer]]></description><category></category></item><item><title><![CDATA[SVN | SVN conflict：local edit, incoming delete upon merge； local add, incoming add upon merge]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/108377893</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/108377893</guid><author>github_40044758</author><pubDate>Thu, 03 Sep 2020 10:51:25 +0800</pubDate><description><![CDATA[代码被svn revert出来后，重新merge回来，重新提交。
重新merge回来，不要忘记最后一个点，表示当前dir。
svn merge --ignore-ancestry -c123456 . 

重新merge回来后，会出现各种conflict，resolve the tree conflict committing your working dir。因此需要解决冲突，不然无法提交。出现如下的冲突：
&gt;   local edit, incoming delete upon merge
&gt]]></description><category></category></item><item><title><![CDATA[Git push: error: insufficient permission for adding an object to repository database ./objects]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/107952791</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/107952791</guid><author>github_40044758</author><pubDate>Wed, 12 Aug 2020 11:24:55 +0800</pubDate><description><![CDATA[[brasy@host5 trunk]$ git push origin myBranch 
Counting objects: 108, done. 
Delta compression using up to 48 threads. 
Compressing objects: 100% (86/86), done. 
Writing objects: 100% (93/93), 8.57 KiB, done. 
Total 93 (delta 67), reused 0 (delta 0)
**erro]]></description><category></category></item><item><title><![CDATA[Git | Git和SVN 双版本管理工具，共同管一套代码]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/107232514</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/107232514</guid><author>github_40044758</author><pubDate>Thu, 09 Jul 2020 17:02:32 +0800</pubDate><description><![CDATA[原因：svn的代码，需要git工作方式

工作内部使用的版本管理工具是SVN，有新的项目开发有需要使用Git。

为了安全，不能借助外面的公共Git平台。也没有多余可以使用的服务器用于搭建自己的GitLab。

方法：Git和SVN 双版本管理工具

考虑使用Git和SVN 双版本管理工具，共同管一套代码。

Git 用于管理团队内部开发新项目。便于组内代码review和交流，记录每日工作信息。

SVN是司内代码管理工具，用于同步之前的代码，编译和最终提交。





1. 由一个人Brasy，使用自己.]]></description><category></category></item><item><title><![CDATA[python 实践 | 拼接路径的时候用的。在Wind10 系统上，os默认会添加‘\’符号，那么怎么添加‘/’呢？]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/107231800</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/107231800</guid><author>github_40044758</author><pubDate>Thu, 09 Jul 2020 16:39:22 +0800</pubDate><description><![CDATA[问题：Python调用os.path 进行路径拼接，在Wind10 系统上，拼接的字符串之间，os默认会添加‘\’符号，那么怎么添加‘/’呢？


import os

url="https://home/myrepo"

file="myfile/readme.txt"

os.path.join(url,file).strip()

输出：https://home/myrepo\myfile/readme.txt


分析解决：

Python，import os，使用os.path.join拼接...]]></description><category></category></item><item><title><![CDATA[python 实践 | 使用subprocess，与子进程交互，卡死，直到子进程dump掉]]></title><link>https://blog.youkuaiyun.com/github_40044758/article/details/107231086</link><guid>https://blog.youkuaiyun.com/github_40044758/article/details/107231086</guid><author>github_40044758</author><pubDate>Thu, 09 Jul 2020 16:19:29 +0800</pubDate><description><![CDATA[python基本语法，早就熟悉了。可是没有实践，语法就只是语法，并不能真正的掌握这个语言。有空就写一写。 **svn统计工具的python版本** 最为第一个实践吧

问题1：subprocess创建进程和交互，使用communicate，与子进程交互，卡死，直到子进程dump掉？


cmd = "svn info --no-auth-cache --non-interactive --username='%s' --password='%s' %s" %(name,pwd,url)

p = subpr]]></description><category></category></item></channel></rss>