腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
腾讯云架构师技术同盟
文章/答案/技术大牛
搜索
搜索
关闭
发布
首页
学习
活动
专区
工具
TVP
腾讯云架构师技术同盟
返回腾讯云官网
菠萝上市没有
偶尔学点东西
专栏成员
举报
36
文章
62552
阅读量
15
订阅数
订阅专栏
申请加入专栏
全部文章(36)
rust(13)
gui(5)
python(4)
linux(4)
java(2)
打包(2)
qt(1)
ide(1)
git(1)
神经网络(1)
opencv(1)
tcp/ip(1)
数据结构(1)
云数据仓库 ClickHouse(1)
auto(1)
cmd(1)
conda(1)
cv2(1)
debian(1)
grpc(1)
microsoft(1)
netty(1)
pip(1)
png(1)
port(1)
stream(1)
tcp(1)
virtual(1)
virtualbox(1)
服务端(1)
客户端(1)
前端工程化(1)
调试工具(1)
推送(1)
搜索文章
搜索
搜索
关闭
libp2p之mdns简单使用
rust
由于github老被墙,原来使用github备份/同步文档效率太低了, 打算写一个局域网内多端文件自动同步的小工具。其中有个环节需要结点之间能自动发现局域网其他结点。所以打算使用mdns现实服务自动发现的功能。
8菠萝
2023-09-28
591
0
libev中解析DNS
linux
8菠萝
2023-09-04
360
0
简单解析DNS
linux
g++-8 reslove_dns.cpp -o dns_query -lcares结果:
8菠萝
2023-08-24
254
0
setsockopt
linux
当使用 setsockopt 函数设置套接字选项时,你需要指定特定的选项名称和相应的值。以下是一些常用的选项名称和对应的枚举值功能列表:
8菠萝
2023-08-23
172
0
简单Web Demo项目搭建
前端工程化
最近用svg.js 做一些图形展示的demo, 在vscode下搭个web的编码环境,支持语法补全和实时预览。
8菠萝
2023-04-11
1K
0
Debian10 安装Python3.9
python
1. 下载pythonwget https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz2. 安装依赖apt-get install libffi-dev #其余看make时候报错3. 编译./configure --enable-optimizationsmake -j 2make altinstall4. 删除原python版本sudo apt-get remove --purge python2*sudo apt-get autoremov
8菠萝
2023-03-25
1.2K
0
使用CV2 识别CheckBox勾选符号
python
opencv
cv2
pip
png
安装cv2 pip install opencv-python 选择匹配模板 temp.png 图片 3. 使用cv2匹配 import cv2 import numpy as np from matplotlib import pyplot as plt # 待匹配 img = cv2.imread('1.png', 0) # 匹配模板 template = cv2.imread('temp.png', 0) h, w = template.shape res = cv2.matchTemp
8菠萝
2023-03-17
909
0
Linux多网卡设置优先级
linux
物联设备有两张sim卡,一张内网卡,一张外网卡。日常流量优先走外网卡,特定地址优先走内网卡。
8菠萝
2023-03-07
6.1K
0
VitualBox配置串口
debian
port
virtual
virtualbox
调试工具
环境VirtualBox 版本6.1PC window10虚拟机 Debian 10配置使用Virtual Serial Port Derive 生成虚拟串口(从COM10, 开始)端口模式选择主机管道路径地址配置 \\. \COM10图片测试打开调试工具虚拟机 echo hello > /dev/ttyS0PC 接受消息图片
8菠萝
2022-11-16
1.4K
0
libuv 同时读写文件
// libuv实现边写边读#include <stdio.h>#include <spdlog/spdlog.h>#include <uv.h>typedef struct { char buffer[1024]; uv_buf_t buf; uv_fs_t open_read_fs; uv_fs_t open_write_fs; uv_fs_t read_fs; uv_fs_t write_fs; size_t offset = 0;} read2write_
8菠萝
2022-11-14
812
0
libuv 写文件
#include <stdio.h>#include <spdlog/spdlog.h>#include <string>#include <uv.h>typedef struct { std::string data; char buffer[10]; uv_file open_file_no; size_t wirte_index;} write_context;void on_write_cb(uv_fs_t *req){ auto data = (write_cont
8菠萝
2022-11-14
3.3K
0
libuv 读文件
#include <stdio.h>#include <spdlog/spdlog.h>#include <uv.h>#include <string>uv_loop_t *loop;uv_fs_t open_fs;uv_buf_t uv_buf;static char buffer[1024];std::string result;void on_read_cb(uv_fs_t *req){ uv_fs_req_cleanup(req); if (req->result < 0) {
8菠萝
2022-11-14
1.4K
0
vcvarsall.bat 系统找不到指定的路径
qt
auto
cmd
conda
microsoft
后发现MiniConda3 会在注册表注册一个钩子劫持cmd(用于激活conda env)导致环境异常
8菠萝
2022-09-06
3K
0
Centos 升级GCC版本
yum -y install centos-release-sclyum -y install devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutilsscl enable devtoolset-11 bash source /opt/rh/devtoolset-11/enable
8菠萝
2022-08-31
4.8K
0
Centos8 安装Vim
打包
git
python
ide
--with-python3-config-dir=/usr/lib64/python3.6/config
8菠萝
2022-08-30
1.2K
0
CMake 简单例子
打包
背景简单CMake 父子项目+链接外部库例子+QT父工程CMakeList.txtcmake_minimum_required(VERSION 3.12)project(zd_cmake)#set(ZDPOWER_PATH "D://test") # 设置环境变量#include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/zdpower.cmake) # 包含其他cmake文件# 使用add_subdirectory 添加子工程add_subdirectory(zdstorelib
8菠萝
2022-07-07
747
0
Netty 服务转发Tcp请求
netty
tcp
背景使用Netty转发Tcp请求。例子import io.netty.bootstrap.Bootstrap; import io.netty.bootstrap.ServerBootstrap; import io.netty.buffer.ByteBuf; import io.netty.channel.*; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChannel;
8菠萝
2022-06-29
2.6K
0
Java GRPC 双向通信
grpc
stream
服务端
客户端
推送
背景使用grpc的stream流模式,让服务器具备推送消息的能力。例子简单例子,实现双向通信proto 文件使用stream 关键字message CommandMessage { required int32 type = 1; optional string data = 2;}service CommandStreamService { rpc CommandDispatch(stream CommandMessage) returns (stream CommandMessage){}}
8菠萝
2022-06-21
1.3K
0
Win11 wsl2 固定IP方案
tcp/ip
win11 上通过wsl2安装了Ubuntu,想其他电脑通过ssh登入Linux,但每次电脑重启,wsl的IP会变,网上找了个脚本,可以固定wsl的IP。
8菠萝
2022-06-19
3.7K
0
Rust 中使用protouf序列化、反序列化
rust
目的在Rust中读取其他系统(C++)生产的Protouf格式的数据文件。rust 1.58tonicprostCargo.toml[dependencies]tonic = "0.7.2"prost = "0.10"[build-dependencies]tonic-build = {version="0.7.2", features=["prost", "compression"]}project tree├── Cargo.lock├── Cargo.toml├── build.rs├── proto
8菠萝
2022-06-12
2K
0
点击加载更多
社区活动
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·干货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档