上一页 1 2 3 4 5 6 ··· 34 下一页

2023年6月16日

nohup >/dev/null 2>&1 & 的含义

摘要: https://www.jianshu.com/p/b88acf451efe 阅读全文

posted @ 2023-06-16 12:47 cag2050 阅读(40) 评论(0) 推荐(0)

2023年5月22日

kubernetes集群初始化kubeadm启动失败==apiserver-advertise-address参数应该写内网地址

摘要: https://blog.csdn.net/qq_15764477/article/details/124297422 阅读全文

posted @ 2023-05-22 17:33 cag2050 阅读(60) 评论(0) 推荐(0)

Ubuntu 20.04 服务器版,部署K8s报错及解决

摘要: ### 执行kubeadm init命令时,报错:The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled) > https://zhuanlan.zhi 阅读全文

posted @ 2023-05-22 10:45 cag2050 阅读(228) 评论(0) 推荐(0)

2023年4月11日

当赋值给video标签的srcObject属性的mediaStream里面,只有音频轨道时,会自动变成audio标签

摘要: 当赋值给video标签的srcObject属性的mediaStream里面,只有音频轨道时,会自动变成audio标签 let mediaElement = document.getElementById("mediaElement_xxx") mediaElement.srcObject = med 阅读全文

posted @ 2023-04-11 11:21 cag2050 阅读(486) 评论(0) 推荐(0)

2023年3月29日

ESNext中,父类和子类的构造函数constructor中都声明了:this.log = log4javascript.getLogger(),会报错:Exception: Converting circular structure to JSON

摘要: ESNext中,父类和子类的构造函数constructor中都声明了:this.log = log4javascript.getLogger(),会报错:Exception: Converting circular structure to JSON 阅读全文

posted @ 2023-03-29 10:48 cag2050 阅读(35) 评论(0) 推荐(0)

2023年2月22日

MediaStream的addTrack()方法添加MediaStreamTrack,需要重新协商;如果后端不支持重新协商,可以用RTCRtpSender.replaceTrack()方法避免重新协商。

摘要: MediaStream的addTrack()方法添加MediaStreamTrack,需要重新协商; 如果后端不支持重新协商,可以用RTCRtpSender.replaceTrack()方法避免重新协商;没有通过RTCPeerConnection.addTrack()生成过RTCRtpSender, 阅读全文

posted @ 2023-02-22 19:28 cag2050 阅读(113) 评论(0) 推荐(0)

2023年2月7日

ElementUI中el-upload文件上传后,编辑时文件回显及重新提交思路

摘要: 文件回显 后端返回文件名和文件路径 重新提交 后端返回的文件名和文件路径,仅用于展示 新建一个ref为editUpload的el-upload组件,用户没有更换文件(this.$refs.editUpload.uploadFiles.length 0)时,使用FormData方式提交(没有文件内容, 阅读全文

posted @ 2023-02-07 11:49 cag2050 阅读(8239) 评论(0) 推荐(0)

2023年2月4日

在macOS系统中编译FFmpeg(静态编译)

摘要: 官方文档:https://trac.ffmpeg.org/wiki/CompilationGuide/macOS 步骤: git clone https://git.ffmpeg.org/ffmpeg.git ./configure --disable-x86asm【静态编译,默认编译成静态库;运行 阅读全文

posted @ 2023-02-04 17:36 cag2050 阅读(348) 评论(0) 推荐(0)

2023年2月2日

在Linux系统运行时查找动态库的顺序

摘要: 在Linux系统运行时查找动态库的顺序如下。 按照可执行文件指定的路径:链接时gcc可以加入链接参数“-Wl,-rpath”指定动态库搜索路径,一般很少这样用。 /usr/lib、/lib和/usr/local/lib路径:/usr/lib目录下有很多动态库。 在LD_LIBRARY_PATH环境变 阅读全文

posted @ 2023-02-02 17:01 cag2050 阅读(417) 评论(0) 推荐(0)

2023年1月31日

在CentOS系统中编译FFmpeg

摘要: 官方文档:https://trac.ffmpeg.org/wiki/CompilationGuide/Centos 说明: 先安装NASM,再安装libx264(libx264依赖NASM);NASM编译后二进制文件所在的目录,要加入PATH,否则libx264编译是会找不到安装的这个新NASM。 阅读全文

posted @ 2023-01-31 10:00 cag2050 阅读(41) 评论(0) 推荐(0)

2023年1月11日

复制Grafana的Dashboard模板步骤

摘要: 进入Dashboard列表页面:http://your_ip:3000/dashboards 点击要复制模板的Dashboard,进入Dashboard详情页 点击右上角的【Dashboard settings】(齿轮图标),点击设置页面 点击设置页面中的【JSON Model】,复制所有JSON内 阅读全文

posted @ 2023-01-11 19:42 cag2050 阅读(3470) 评论(0) 推荐(0)

2023年1月6日

Kibana 报错及解决

摘要: 启动kibana报错:{"type":"log","@timestamp":"2023-01-06T07:47:04Z","tags":["error","elasticsearch","data"],"pid":17565,"message":"[search_phase_execution_ex 阅读全文

posted @ 2023-01-06 16:06 cag2050 阅读(531) 评论(0) 推荐(0)

2023年1月4日

Promise 知识点

摘要: 中断调用链: 在 then 或 catch 的最后一行返回一个永远 pending 的 Promise:return new Promise(() => {}) 阅读全文

posted @ 2023-01-04 19:49 cag2050 阅读(24) 评论(0) 推荐(0)

2022年12月30日

PostgreSQL 知识点

摘要: select查询语句(此处表名audioBitrate包含大写,要用双引号括起来):select * from prom_data."audioBitrate" 阅读全文

posted @ 2022-12-30 17:17 cag2050 阅读(28) 评论(0) 推荐(0)

2022年12月27日

Jinja 知识点

摘要: jinja2是一个纯Python开发的模板引擎。从发音上大家也可以猜出,它是一个日系的名称,它的名字是日语庙宇的意思,因庙宇的英文temple与模板的英文template发音相近,所以起了这个名字。在很早之前有一个jinja的Python包的,但是在版本2当中,jinja单独发布了一个jinja2的 阅读全文

posted @ 2022-12-27 15:15 cag2050 阅读(135) 评论(0) 推荐(0)

模板引擎Jinja资料

摘要: 模板引擎Jinja资料 | 说明 | github | https://github.com/pallets/jinja 官方网站 | https://jinja.palletsprojects.com/ 阅读全文

posted @ 2022-12-27 15:11 cag2050 阅读(61) 评论(0) 推荐(0)

2022年12月23日

github 的 SSH keys 过期解决

摘要: 以 SSH 方式 git clone 在 github 上的仓库时,报错: $ git clone git@github.com:cag2050/counter-app.git Cloning into 'counter-app'... ssh: connect to host github.com 阅读全文

posted @ 2022-12-23 10:47 cag2050 阅读(820) 评论(0) 推荐(0)

2022年12月22日

JetBrains 公司系列编辑器,通用设置

摘要: 设置硬换行的字符数:Preferences... => Editor => Code Style => General => Hard wrap at: ,取消选中【Wrap on typing】,或者设置值为足够宽的300,这样就不会频繁换行。 阅读全文

posted @ 2022-12-22 17:48 cag2050 阅读(120) 评论(0) 推荐(0)

2022年12月5日

Grafana 报错及解决

摘要: 报错:使用默认admin/admin登录,报错:401 (Unauthorized) 解决:./bin/grafana-cli admin reset-admin-password NEW_PASSWORD 阅读全文

posted @ 2022-12-05 18:29 cag2050 阅读(1734) 评论(0) 推荐(0)

2022年12月3日

Docker Compose 知识点

摘要: docker-compose.yml 中文件格式版本 version 配置项值,与 Docker Engine 兼容性:https://docs.docker.com/compose/compose-file/compose-versioning/#compatibility-matrix Plea 阅读全文

posted @ 2022-12-03 21:33 cag2050 阅读(37) 评论(0) 推荐(0)

2022年12月2日

在 Mac 下,实现与服务器进行便捷的文件上传和下载操作

摘要: 出处:https://github.com/aikuyun/iterm2-zmodem 阅读全文

posted @ 2022-12-02 15:25 cag2050 阅读(67) 评论(0) 推荐(0)

2022年11月23日

Ansible 知识点

摘要: Ansible 2.5 and above work with Python 3. https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html ansible-core Version、Cont 阅读全文

posted @ 2022-11-23 21:08 cag2050 阅读(407) 评论(0) 推荐(0)

Ansible 资料

摘要: Ansible 资料 | 说明 | 书籍《奔跑吧Ansible(第2版):探索自动化配置与部署捷径》代码仓库 | https://github.com/ansiblebook/ansiblebook Ansible 官方文档 | https://docs.ansible.com/ansible/la 阅读全文

posted @ 2022-11-23 21:06 cag2050 阅读(50) 评论(0) 推荐(0)

2022年10月19日

前端配置后端接口的https地址,必须要使用域名

摘要: 大部分SSL证书,只能使用域名进行申请。 没用使用域名时,vue前端项目报错:net::ERR_CERT_COMMON_NAME_INVALID,go后端项目报错: 2022/10/19 16:33:34 http: TLS handshake error from 111.204.179.70:5 阅读全文

posted @ 2022-10-19 19:32 cag2050 阅读(1091) 评论(0) 推荐(0)

2022年10月15日

PostgreSQL 报错及解决

摘要: 启动PostgreSQL时:/your_postgresql_install_path/postgresql/bin/pg_ctl -D /your_postgresql_install_path/postgresql/data -l /your_postgresql_install_path/po 阅读全文

posted @ 2022-10-15 19:41 cag2050 阅读(371) 评论(0) 推荐(0)

2022年10月10日

etcd 报错及解决

摘要: go build 时报错:go: go.etcd.io/bbolt@v1.3.5 used for two different module paths (github.com/coreos/bbolt and go.etcd.io/bbolt) 报错时 go.mod 配置: replace ( g 阅读全文

posted @ 2022-10-10 19:18 cag2050 阅读(259) 评论(0) 推荐(0)

2022年9月29日

filebeat 知识点

摘要: 资料 | 说明 | nohup ./filebeat -e & | 启动 filebeat ./filebeat test config -v | 检查 filebeat.yml 文件的格式 filebeat的nohup进程自动停止的问题【推荐使用:第二种解决办法】 | https://www.cn 阅读全文

posted @ 2022-09-29 17:09 cag2050 阅读(38) 评论(0) 推荐(0)

filebeat 直连 elasticsearch 利用 pipeline processor 提取 message 中的字段

摘要: 要求: 从message中提取event字段 从message中提取streamId字段 从message中提取time字段 将提取出的time字段的值,格式为时间戳类型,并保存到ts字段 实现步骤: 打开kibana网址:http://your_ip:5601/app/dev_tools#/con 阅读全文

posted @ 2022-09-29 14:54 cag2050 阅读(369) 评论(0) 推荐(0)

2022年9月4日

《程序员的自我修养 : 链接、装载与库》

摘要: 资料 | 说明 | Examples from the book 程序員的自我修養 | https://github.com/miaoski/xiuyang 阅读全文

posted @ 2022-09-04 22:21 cag2050 阅读(62) 评论(0) 推荐(0)

2022年9月3日

cgo 知识点

摘要: cgo 知识点 | 说明 | 可以通过go build -x -v输出带有cgo代码的Go源文件的构建细节。| https://weread.qq.com/web/reader/b8f32d2072895edbb8fbb04k65b326f026965b9eea6e6e1 CGO中的${SRCDIR 阅读全文

posted @ 2022-09-03 13:52 cag2050 阅读(246) 评论(2) 推荐(0)

2022年8月5日

Go 知识点(摘抄书籍内容)

摘要: Go 知识点 | 网址 | 【因为 T850 类型的指针实现了Robot 接口,所以能够作为Boot的参数;即:因为指针实现了接口,所以接口参数可以传入指针】接口也是一种类型,可作为参数传递给函数,因此可编写可重用于多个接口实现的函数。这个函数将接口Robot的实现作为参数,并返回调用方法Power 阅读全文

posted @ 2022-08-05 09:38 cag2050 阅读(38) 评论(0) 推荐(0)

2022年7月21日

解决 Safari 13.1.2 中,el-table 列错位问题

摘要: el-table-column 加上属性:show-overflow-tooltip。 阅读全文

posted @ 2022-07-21 15:50 cag2050 阅读(470) 评论(0) 推荐(0)

2022年7月19日

https://github.com/bilibili/flv.js 项目本地调试步骤

摘要: https://github.com/bilibili/flv.js 项目本地调试步骤: 原理:npm run dev 时,会监控src文件夹下的修改,编译到dist里。 安装包:npm install 本地运行:npm run dev 在浏览器中打开html页面:demo/index.html 修 阅读全文

posted @ 2022-07-19 16:06 cag2050 阅读(370) 评论(0) 推荐(0)

C++ 相关库

摘要: C++ 相关库 | 说明 | RapidJSON | https://github.com/Tencent/rapidjson 阅读全文

posted @ 2022-07-19 10:21 cag2050 阅读(33) 评论(0) 推荐(0)

2022年7月18日

C++ 知识点(摘抄书籍内容)

摘要: 知识点 | 说明 | 所谓的引用就是给变量取一个别名,使一块内存空间可以通过几个变量名来访问。声明引用类型的变量需要在变量名前加上符号&,并且必须指定初值,即被引用的变量。C++引入引用的主要目的是将引用作为函数的参数。左值和右值都是针对表达式而言的,左值是指表达式结束后依然存在的持久对象,在内存有 阅读全文

posted @ 2022-07-18 20:12 cag2050 阅读(54) 评论(0) 推荐(0)

2022年7月16日

SPA 知识

摘要: SPA 知识: 后端保存用户登录的状态,如果用户登录过期,再请求接口时,后端接口返回标识用户登录过期的code码,前端跳转到登陆页。 阅读全文

posted @ 2022-07-16 16:57 cag2050 阅读(47) 评论(0) 推荐(0)

2022年7月3日

macOS 安装 Homebrew 报错:Failed to connect to raw.githubusercontent.com port 443: Connection refused

摘要: 参考:https://blog.csdn.net/txl910514/article/details/105880125 此时:ping raw.githubusercontent.com 是不通的 查询 raw.githubusercontent.com 的真实IP:https://ipaddre 阅读全文

posted @ 2022-07-03 23:36 cag2050 阅读(388) 评论(0) 推荐(0)

2022年7月2日

GitHub 无法重置密码,提示:That address is either invalid, not a verified primary email or is not associated with a personal user account. Organization billing emails are only for notifications

摘要: 问题: GitHub 无法重置密码,提示:That address is either invalid, not a verified primary email or is not associated with a personal user account. Organization bill 阅读全文

posted @ 2022-07-02 23:37 cag2050 阅读(12119) 评论(0) 推荐(0)

CMake 学习资料

摘要: CMake 学习资料 | 说明 | 官方文档 | https://cmake.org/cmake/help/latest/ 官方文档-搜索页面 | https://cmake.org/cmake/help/latest/search.html?q= 书籍《CMake Cookbook》| https 阅读全文

posted @ 2022-07-02 12:07 cag2050 阅读(158) 评论(0) 推荐(0)

2022年6月18日

element-ui 在同一个方法中,触发了多个 message 组件提示信息时,会出现消息重叠的问题

摘要: 解决方案1:将方法定义为 async 异步函数,然后使用 await 等待执行。 async checkLogin () { if (this.username '') { await this.$message.warning('请输入用户名') } if (this.password '') { 阅读全文

posted @ 2022-06-18 14:15 cag2050 阅读(1589) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 34 下一页

导航