自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (1)
  • 收藏
  • 关注

原创 C# wpf 工程中如何配置GRPC的调试log

首先,保证wpf功能安装了grpc相关的package并且grpc接口能正常使用。这里的"GRPC_TRACE"可以配置不同的值“api”、“all”等等,参见。运行程序,就可以在console中看的GRPC相关的调试log了。工程右键属性-》应用程序选项卡-》输出类型选“控制台应用程序”

2024-04-18 15:57:07 146

原创 No module named “Crypto” 的大坑

至于这个 pycryptdome 是干嘛用的呢?我在 pypi.org 没有找到它。在本地site-packages 目录里也没有安装实际内容。可能是因为pip改了清华源,在清华源仓库里有这么个空package。明明安装了 pycryptodome,为什么还报错 No module named “Crypto” 呢?可能你装的是 pycryptdome,不是 pycrypt。

2023-05-10 11:07:31 493

原创 windows平台下的python的multiprocessing、ProcessPoolExecutor操作需要在if __name__ == ‘__main__‘代码块中进行

python 多进程相关操作在Linux平台可以正常运行,但在windows平台上不能按预想的方式运行

2023-03-03 16:14:19 268

原创 python中int、bytes、bytearray之间的转换

【代码】python中int、bytes、bytearray之间的转换。

2023-02-20 16:10:10 964

原创 Python eventlet模块处理超时,捕获超时异常

eventlet 处理超时

2023-01-31 15:51:43 417

原创 python中十六进制字符串(hex string)转byte方法

python中 16进制字符串(hex string) 转 byte

2023-01-11 10:45:22 3412

原创 python ThreadPoolExecutor 异常捕获

python ThreadPoolExecutor 异常捕获

2022-12-01 17:06:08 1158

原创 pyinstaller打包的exe出现ImportError: DLL load failed while importing _fblas: 找不到指定的模块

ImportError: DLL load failed while importing _fblas: 找不到指定的模块

2022-10-27 14:58:58 981

原创 如何指定Cython打包输出so文件的目录

指定Cython打包输出目录

2022-10-17 13:57:23 696

原创 sqlalchemy中如何映射mysql中的bit(1)类型

mysql中的bit(1)类型字段不能映射为Boolean

2022-10-17 09:18:09 459

原创 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 7141

原创 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 8066 2

原创 Qt中通过shape()自定义QGraphicsItem的选择框

主要针对QGraphicsPath等线形Item的选择框自定义链接: https://stackoverflow.com/questions/42215622/qt-selection-of-qgraphics-shaped-item.

2021-07-07 17:17:26 850

原创 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 3387 1

原创 如何在QGraphicsView的边框上制作标尺

转自链接: https://stackoverflow.com/questions/56588152/how-to-make-a-ruler-on-the-border-of-a-qgraphicsview

2021-03-15 14:16:15 870

原创 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.csdn.net/weixin_28927079/article/details/97262243https://blog.csdn.net..

2021-01-20 17:38:00 994 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 3352 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 1335

原创 style2paints V3 本地服务部署

style2paints V3 本地服务部署style2paints 是啥style2paints V3 本地服务部署style2paints 是啥style2paints是一个开源的给线稿上色的项目。目前项目组租不起服务器,所以V4 线上版本失效,V3版可以在本地部署。希望大家去GitHub上募捐。style2paints V3 本地服务部署安装Anaconda 安装完了最好修改下...

2019-05-17 17:49:20 2162

ETSI欧洲DVB-T标准(2012-4版)

2012版欧洲DVB-T标准,来自ETSI官方网站 Title:Frame structure channel coding and modulation for a second generation digital terrestrial television broadcasting system &#40;DVB-T2&#41;

2012-07-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除