首页
学习
活动
专区
工具
TVP
发布

菠萝上市没有

偶尔学点东西
专栏成员
36
文章
58025
阅读量
15
订阅数
libp2p之mdns简单使用
由于github老被墙,原来使用github备份/同步文档效率太低了, 打算写一个局域网内多端文件自动同步的小工具。其中有个环节需要结点之间能自动发现局域网其他结点。所以打算使用mdns现实服务自动发现的功能。
8菠萝
2023-09-28
4780
libev中解析DNS
8菠萝
2023-09-04
2900
简单解析DNS
g++-8 reslove_dns.cpp -o dns_query -lcares结果:
8菠萝
2023-08-24
1770
setsockopt
当使用 setsockopt 函数设置套接字选项时,你需要指定特定的选项名称和相应的值。以下是一些常用的选项名称和对应的枚举值功能列表:
8菠萝
2023-08-23
1470
简单Web Demo项目搭建
最近用svg.js 做一些图形展示的demo, 在vscode下搭个web的编码环境,支持语法补全和实时预览。
8菠萝
2023-04-11
9420
Debian10 安装Python3.9
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.1K0
使用CV2 识别CheckBox勾选符号
安装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
7850
Linux多网卡设置优先级
物联设备有两张sim卡,一张内网卡,一张外网卡。日常流量优先走外网卡,特定地址优先走内网卡。
8菠萝
2023-03-07
5.6K0
VitualBox配置串口
环境VirtualBox 版本6.1PC window10虚拟机 Debian 10配置使用Virtual Serial Port Derive 生成虚拟串口(从COM10, 开始)端口模式选择主机管道路径地址配置 \\. \COM10图片测试打开调试工具虚拟机 echo hello > /dev/ttyS0PC 接受消息图片
8菠萝
2022-11-16
1.3K0
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
7820
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.3K0
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.4K0
vcvarsall.bat 系统找不到指定的路径
后发现MiniConda3 会在注册表注册一个钩子劫持cmd(用于激活conda env)导致环境异常
8菠萝
2022-09-06
2.7K0
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.6K0
Centos8 安装Vim
--with-python3-config-dir=/usr/lib64/python3.6/config
8菠萝
2022-08-30
1.1K0
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
7190
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.4K0
Java GRPC 双向通信
背景使用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.2K0
Win11 wsl2 固定IP方案
win11 上通过wsl2安装了Ubuntu,想其他电脑通过ssh登入Linux,但每次电脑重启,wsl的IP会变,网上找了个脚本,可以固定wsl的IP。
8菠萝
2022-06-19
3.5K0
Rust 中使用protouf序列化、反序列化
目的在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
1.8K0
点击加载更多
社区活动
AI代码助手快速上手训练营
鹅厂大牛带你玩转AI智能结对编程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档