- 博客(19)
- 资源 (1)
- 收藏
- 关注
原创 C# wpf 工程中如何配置GRPC的调试log
首先,保证wpf功能安装了grpc相关的package并且grpc接口能正常使用。这里的"GRPC_TRACE"可以配置不同的值“api”、“all”等等,参见。运行程序,就可以在console中看的GRPC相关的调试log了。工程右键属性-》应用程序选项卡-》输出类型选“控制台应用程序”
2024-04-18 15:57:07
273
原创 No module named “Crypto” 的大坑
至于这个 pycryptdome 是干嘛用的呢?我在 pypi.org 没有找到它。在本地site-packages 目录里也没有安装实际内容。可能是因为pip改了清华源,在清华源仓库里有这么个空package。明明安装了 pycryptodome,为什么还报错 No module named “Crypto” 呢?可能你装的是 pycryptdome,不是 pycrypt。
2023-05-10 11:07:31
631
原创 windows平台下的python的multiprocessing、ProcessPoolExecutor操作需要在if __name__ == ‘__main__‘代码块中进行
python 多进程相关操作在Linux平台可以正常运行,但在windows平台上不能按预想的方式运行
2023-03-03 16:14:19
378
原创 pyinstaller打包的exe出现ImportError: DLL load failed while importing _fblas: 找不到指定的模块
ImportError: DLL load failed while importing _fblas: 找不到指定的模块
2022-10-27 14:58:58
1198
原创 python中用zlib解压报错zlib.error: Error -3 while decompressing: incorrect header check的原因和解决方法
形如下面的一段代码:b64_encoded_bytes = base64.b64encode(zlib.compress(b'abcde'))encoded_bytes_representation = str(b64_encoded_bytes) # this the causezlib.decompress(base64.b64decode(encoded_bytes_representation))zlib.decopress时报错zlib.error: Error -3 while d
2021-09-06 13:57:37
8393
原创 C++ string 中文乱码问题
utf-8转为gbk#include <Windows.h>#include <string>using namespace std;string UtfToGbk(string strValue){ int len = MultiByteToWideChar(CP_UTF8, 0, strValue.c_str(), -1, NULL, 0); wchar_t* wstr = new wchar_t[len+1]; memset(wstr, 0, len+1
2021-08-21 22:25:32
8501
2
原创 Qt中通过shape()自定义QGraphicsItem的选择框
主要针对QGraphicsPath等线形Item的选择框自定义链接: https://stackoverflow.com/questions/42215622/qt-selection-of-qgraphics-shaped-item.
2021-07-07 17:17:26
1029
原创 protobuf的GZIP压缩
protobuf的GZIP压缩protobuf自带压缩功能,可选的压缩算法有 GZIP 和 ZLIB序列化至iostream序列化示例:std::ofstream output("scene.art", std::ofstream::out | std::ofstream::trunc | std::ofstream::binary);OstreamOutputStream outputFileStream(&output);GzipOutputStream::Options optio
2021-04-02 14:53:15
3966
1
原创 如何在QGraphicsView的边框上制作标尺
转自链接: https://stackoverflow.com/questions/56588152/how-to-make-a-ruler-on-the-border-of-a-qgraphicsview
2021-03-15 14:16:15
1067
原创 Windows10 + Visual Studio 2015 C++ 配置gRPC开发环境和helloworld运行的注意事项
文章目录前言一、从github获取gRPC工程二、用VS编译gRPC2.1.注意配置(Debug/Release)和平台(x64/x86)选项2.2.注意运行库的配置(/MT、/MD等)三、使用gRPC静态库3.1.配置项与编译gRPC静态库时一致3.2.附加依赖项结束前言本文只记录一些注意事项,gRPC详细编译过程可参见以下文章https://blog.youkuaiyun.com/weixin_28927079/article/details/97262243https://blog.youkuaiyun.com..
2021-01-20 17:38:00
1130
1
原创 cv2.VideoCapture不能捕获rtsp视频流的问题
转自以下链接,详见以下链接:https://stackoverflow.com/questions/49668941/nonmatching-transport-in-server-reply-when-cv2-videocapture-rtsp-onvif-cameraOpenCV 3.4默认使用TCP进行RTP传输,而你的设备似乎不支持该功能(如FFmpeg所示)。OpenCV stie实...
2019-09-10 16:51:32
3582
1
原创 PyQt中QMainWindow设置QSS无效的问题
实际使用测试效果来看,直接调用QMainWindow的setStyleSheet设置QSS是无效的。需要在QMainWindow下创建一个空QWidget调用setStyleSheet设置QSS。例如(参见上图),QtDesigner创建的QMainWindow自带一个centralwidget,可以在centralwidget设置QSS,再使用setWindowFlag(QtCore.Q...
2019-08-07 15:58:07
1449
原创 style2paints V3 本地服务部署
style2paints V3 本地服务部署style2paints 是啥style2paints V3 本地服务部署style2paints 是啥style2paints是一个开源的给线稿上色的项目。目前项目组租不起服务器,所以V4 线上版本失效,V3版可以在本地部署。希望大家去GitHub上募捐。style2paints V3 本地服务部署安装Anaconda 安装完了最好修改下...
2019-05-17 17:49:20
2264
ETSI欧洲DVB-T标准(2012-4版)
2012-07-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人