打赏
1 2 3 4 5 ··· 54 下一页
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-02-10 10:54 苍山落暮 阅读(14) 评论(0) 推荐(0) 编辑
摘要: gdb调试golang程序exit退出 (1.)编译程序 go build -gcflags "all=-N -l" -o myapp -N:关闭优化,保证 gdb 更容易解析代码。 -l:禁用内联优化,确保 gdb 能正确显示调用栈。 (2.)gdb加载程序 gdb ./myapp (3.)在 s 阅读全文
posted @ 2025-02-08 11:41 苍山落暮 阅读(5) 评论(0) 推荐(0) 编辑
摘要: RTP结构 + + RTP Header Version (2 bits) + + + + Marker (1 bit) + + + + Timestamp (32 bits) + + SSRC (32 bits) + + CSRC (0 to 15 entries, 32 bits each, o 阅读全文
posted @ 2025-02-07 18:12 苍山落暮 阅读(12) 评论(0) 推荐(0) 编辑
摘要: linux cpu内存监控 (1.)使用python脚本实现,启动后访问http://localhost:8000/即可查看cpu和内存使用情况 import psutil import os import xlwt import xlrd import time from pyecharts.ch 阅读全文
posted @ 2025-01-15 18:13 苍山落暮 阅读(5) 评论(0) 推荐(0) 编辑
摘要: live555环境搭建 (1.)二进制文件下载 http://www.live555.com/mediaServer/ (2.)源码下载安装 https://github.com/rgaufman/live555 # 编译 ./genMakefiles linux-64bit make -j4 (3 阅读全文
posted @ 2024-11-20 21:30 苍山落暮 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ### yum离线安装包下载 方法一:yumdownloader 如果只想通过 yum 下载软件的软件包,但是不需要进行安装的话,可以使用 yumdownloader 命令; yumdownloader 命令在软件包 yum-utils 里面。 ``` # yum install yum-utils 阅读全文
posted @ 2023-09-01 15:10 苍山落暮 阅读(699) 评论(0) 推荐(0) 编辑
摘要: ### 动态创建类 (1.)使用反射创建类 ``` import `reflect` var typeRegistry = make(map[string]reflect.Type) func RegisterType(elem interface{}) { t := reflect.TypeOf( 阅读全文
posted @ 2023-06-27 08:44 苍山落暮 阅读(87) 评论(0) 推荐(0) 编辑
摘要: ### dlv调试实践 案例一:通过dlv debug进行源码调试 (1.)新建main.go,并执行go mod init ``` package main import ( "fmt" ) func main() { nums := make([]int, 5) for i := 0; i ma 阅读全文
posted @ 2023-06-10 16:55 苍山落暮 阅读(165) 评论(0) 推荐(0) 编辑
摘要: ### go work使用 (1.)初始化工作空间 ``` go work init [moddirs] ``` 说明: moddirs是Go Module所在的本地目录。如果有多个Go Module,就用空格分开。如果go work init后面没有参数,会创建一个空的workspace。 执行g 阅读全文
posted @ 2023-06-10 16:54 苍山落暮 阅读(1770) 评论(0) 推荐(0) 编辑
摘要: ### v4l2使用 (1.)安装 ``` # ubuntu sudo apt install v4l-utils # centos sudo dnf install v4l-utils # rpm sudo rpm -i v4l-utils-1.16.7-4.el8.x86_64.rpm ``` 阅读全文
posted @ 2023-06-10 16:53 苍山落暮 阅读(1230) 评论(0) 推荐(0) 编辑
摘要: ### 大华海康摄像头地址 #### 海康地址 ``` rtsp://[username]:[password]@[ip]:[port]/[codec]/[channel]/[subtype]/av_stream 说明: username: 用户名。例如admin。 password: 密码。例如1 阅读全文
posted @ 2023-06-10 16:51 苍山落暮 阅读(304) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 54 下一页