摘要:
记录vim使用和学习中用到的一些命令 1.设置 vim 行号 echo "set number " >> ~/.vimrc source ~/.vimrc 2.vim 跳到最后一行 在 Vim 中跳转到文件的最后一行,你可以按下 Shift + G 快捷键。这会将光标移动到文件的最后一行。如果你在正
阅读全文
posted @ 2024-04-02 16:25
He_LiangLiang
阅读(40)
推荐(0)
摘要:
https://github.com/MariaDB/mariadb-docker/tree/master AIchatOS https://chat18.aichatos.xyz/#/chat/1710920186749 MQTTManager::process() CPU消耗达到120%通常意味
阅读全文
posted @ 2024-03-20 00:56
He_LiangLiang
阅读(42)
推荐(0)
摘要:
gprof:这是一个GNU的性能分析工具,主要用于分析程序的函数调用关系,以及每个函数的运行时间等。 Valgrind:这是一个用于内存调试、内存泄漏检测以及性能分析的开源工具集。其中,Valgrind的Callgrind工具可以收集程序运行时的函数调用信息,用于性能分析。 perf:这是Linux
阅读全文
posted @ 2024-03-16 11:06
He_LiangLiang
阅读(5813)
推荐(0)
摘要:
https://zh.cppreference.com/w/ cppreference.com 是一个在线的 C++ 参考手册网站,提供了广泛的 C++ 相关信息,包括标准库、语言特性、算法、数据结构等方面的文档。该网站是 C++ 开发者的重要资源之一,它的内容通常比较全面,详细说明了 C++ 的各
阅读全文
posted @ 2024-01-25 16:55
He_LiangLiang
阅读(139)
推荐(0)
摘要:
int** copyPath =new int*[rows];for (int i = 0; i < rows; i++){ copyPath[i] = new int[cols];} for (int i = 0; i < rows; i++){ delete[] copyPath[i];}del
阅读全文
posted @ 2020-05-01 14:16
He_LiangLiang
阅读(511)
推荐(1)
摘要:
若干有用的文章,乱序版本。会经常性修改. 官方帮助文档: oracle sql 官方帮助文档 python api 官方帮助文档 python 库 pandas 模块 官方说明文档 clickhouse 快速入门 官方文档 acondak 快速开始 Getting Started with Pyth
阅读全文
posted @ 2019-11-12 20:22
He_LiangLiang
阅读(411)
推荐(1)
摘要:
收录一些优秀的专栏文章,或者解决某类知识点的文章: 动态展示算法的网站: https://www.cs.usfca.edu/~galles/visualization/Algorithms.html https://visualgo.net/zh https://algorithm-visualiz
阅读全文
posted @ 2019-11-12 20:14
He_LiangLiang
阅读(178)
推荐(0)
摘要:
第三方网站,不定期更新: 陈浩个人博客: https://coolshell.cn/ 阮一峰个人博客:http://www.ruanyifeng.com/blog/2015/02/make.html 陈硕的 muduo 源码:https://github.com/me115/muduo github
阅读全文
posted @ 2019-11-12 19:17
He_LiangLiang
阅读(256)
推荐(0)
摘要:
优秀的面试资料,不定期会更新: Leetcode上面别人整理的若干面试资料: https://github.com/huihut/interview 剑指offer:https://blog.csdn.net/mmc_maodun/article/category/9262585 牛客网的面试技巧分
阅读全文
posted @ 2019-11-12 17:44
He_LiangLiang
阅读(184)
推荐(0)
摘要:
记下若干优秀博客,方便后期检索。会不定期更新: 优秀的程序员,从使用Github开始:https://help.github.com/en/github/managing-your-work-on-github cpp参考网站 https://zh.cppreference.com/w/%E9%A6
阅读全文
posted @ 2019-11-12 17:43
He_LiangLiang
阅读(257)
推荐(0)
摘要:
收集若干算法博客地址,不定期会更新: 算法 陈浩,leetcode 的C++解法 https://github.com/haoel/leetcode 王亮,很多题目讲解的比较详细 https://leetcode.wang/ 算法专题: https://labuladong.gitbook.io/a
阅读全文
posted @ 2019-11-12 17:30
He_LiangLiang
阅读(217)
推荐(0)
摘要:
在 Visual Studio 2019 中,编译器可以选择 多字节字符集(MBCS, Multi-Byte Character Set) 或 Unicode字符集(UTF-16) 来处理字符串。为什么有这两种字符集?以及它们与不同的字符编码(如 GBK、宽字节等)的对应关系,下面我会详细解释并提供
阅读全文
posted @ 2025-04-09 07:21
He_LiangLiang
阅读(439)
推荐(0)
摘要:
visual svn server -- 服务端 https://www.visualsvn.com/server/download/ tortoise client https://tortoisesvn.net/downloads.html 问题1: 我在windows电脑上安装了 visual
阅读全文
posted @ 2025-04-08 06:35
He_LiangLiang
阅读(142)
推荐(0)
摘要:
https://learn.microsoft.com/zh-cn/powershell/module/microsoft.powershell.utility/?view=powershell-7.5 powershell 下载 https://github.com/PowerShell/Powe
阅读全文
posted @ 2025-04-08 06:21
He_LiangLiang
阅读(299)
推荐(0)
摘要:
https://blog.csdn.net/gcc110/article/details/134050511?spm=1001.2014.3001.5506 二、使用shell命令进行设置在终端直接使用命令: sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_
阅读全文
posted @ 2025-03-28 23:43
He_LiangLiang
阅读(154)
推荐(0)
摘要:
在 C++ 中,static_cast、dynamic_cast、const_cast 和 reinterpret_cast 是四种不同的类型转换运算符,它们各自有着不同的用途和特点,下面为你详细介绍: 1. static_cast 功能和用途 static_cast 是编译时类型转换运算符,用于执
阅读全文
posted @ 2025-02-23 20:19
He_LiangLiang
阅读(105)
推荐(0)
摘要:
使用 锁 + 信号量 + 队列,可以实现 线程间通信。 下面是一个 生产者,消费者的例子。 #include <iostream> #include <queue> #include <thread> #include <mutex> #include <condition_variable> #i
阅读全文
posted @ 2024-11-15 15:27
He_LiangLiang
阅读(121)
推荐(0)
摘要:
1116. 打印零与奇偶数 - 力扣(LeetCode) 结合 这个题目,【多线程】 1115. 交替打印 FooBar - He_LiangLiang - 博客园 ,来理解 条件变量 condition_variable 的用法。 以及 cv.wait(lock, [&](){ some cont
阅读全文
posted @ 2024-11-11 14:58
He_LiangLiang
阅读(56)
推荐(0)
摘要:
解法1: condition_variable + mutex class FooBar { private: int n; mutex mtx; condition_variable cv; bool foo_done = false; public: FooBar(int n) { this->
阅读全文
posted @ 2024-11-11 11:49
He_LiangLiang
阅读(25)
推荐(0)
摘要:
poco库很丰富, 这里列举了生成 guide,httpdownload 的2个方法。 下载的时候,顺便打印了当前下载进度。 #include <sstream> #include <iomanip> #include <istream> #include <ostream> #include <i
阅读全文
posted @ 2024-11-08 17:05
He_LiangLiang
阅读(82)
推荐(0)
摘要:
#include <sstream> #include <istream> #include <ostream> #include <iostream> #include <fstream> // ofstream 他们 好像很接近,他们分别 主要包含了哪些 类? 在C++标准库中,<sstream
阅读全文
posted @ 2024-11-08 16:30
He_LiangLiang
阅读(181)
推荐(0)
摘要:
message(" >>>>>shelldemo/CMakeLists.txt" ) # 收集当前目录下所有的 .cpp 文件 aux_source_directory(. DIR_SRCS) # 添加可执行文件 add_executable(shelldemo ${DIR_SRCS}) # 链接需
阅读全文
posted @ 2024-11-08 15:58
He_LiangLiang
阅读(31)
推荐(0)
摘要:
将某个目录下面的文件打包成一个压缩文件,然后拷贝到其他目录 #!/bin/bash # 获取当前时间,并格式化为 YYYYMMDD-HHMMSS timestamp=$(date +"%Y%m%d-%H%M%S") # 定义日志目录 log_dir="/log" # 定义压缩文件最终目录 tar_f
阅读全文
posted @ 2024-11-07 15:44
He_LiangLiang
阅读(21)
推荐(0)
摘要:
目录结构: ftpdemo/include/elapse.h 1 /************************************************* 2 Copyright (C), 2019-2029, Guide Tech. Co., Ltd. 3 File name: ela
阅读全文
posted @ 2024-11-07 10:35
He_LiangLiang
阅读(115)
推荐(0)
摘要:
project(ftptest) message(" cmake ${PROJECT_NAME} start") # 设置构建类型为Release # set(CMAKE_BUILD_TYPE Release) set(CMAKE_VERBOSE_MAKEFILE ON) #set(CMAKE_CX
阅读全文
posted @ 2024-11-07 10:29
He_LiangLiang
阅读(33)
推荐(0)
摘要:
docker run --privileged -d --restart=always --name xxx_video_service --net=host -v /docker/data/video/xxx:/mnt/data/xxx -v /docker/data/video/testVide
阅读全文
posted @ 2024-11-07 08:33
He_LiangLiang
阅读(25)
推荐(0)
摘要:
./demo > /mnt/udisk/heliang-log.log 2>&1 & 这行命令在Unix/Linux系统中执行了几个操作,下面是对它的详细解释: ./demo:这部分是命令的主体,表示执行当前目录下名为demo的可执行文件。./指的是当前目录,因此这个命令是在告诉系统在当前目录中查找
阅读全文
posted @ 2024-11-06 08:35
He_LiangLiang
阅读(777)
推荐(0)
摘要:
一,JDK1.8迅雷下载:32位:thunder://QUFodHRwOi8vc3cuYm9zLmJhaWR1LmNvbS9zdy1zZWFyY2gtc3Avc29mdHdhcmUvOGU4Mzk5YTlhNTYxZi9qZGstOHUxMTEtd2luZG93cy1pNTg2XzguMC4xMTE
阅读全文
posted @ 2024-11-05 08:52
He_LiangLiang
阅读(291)
推荐(0)
摘要:
http://www.winimage.com/zLibDll/minizip.html minizip https://github.com/domoticz/minizip zlib https://github.com/madler/zlib/archive/refs/tags/v1.3.1.
阅读全文
posted @ 2024-10-14 23:08
He_LiangLiang
阅读(51)
推荐(0)
摘要:
仅仅是一个示例,由 chatgpt-3.5回答: 在开发 ARM 应用并与 SQLite 进行频繁的数据库操作时,从系统架构师的角度来看,合理封装和管理 SQLite 的操作至关重要,尤其是对于嵌入式环境,性能、资源限制以及并发安全性都需要重点考虑。以下是一些建议: ### 1. **数据库操作封装
阅读全文
posted @ 2024-10-13 23:02
He_LiangLiang
阅读(55)
推荐(0)
摘要:
环境介绍: ubuntu 系统 cmake (cmake 安装) (可以手动下载源码,编译安装,也可以 使用系统最新的 cmake 安装) 一、下载源码并编译 https://github.com/sqlite/sqlite/tree/vesion-3.45.1 下载 3.45.1 的源码 sqli
阅读全文
posted @ 2024-10-13 22:50
He_LiangLiang
阅读(815)
推荐(0)