摘要:
記錄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
閱讀(43)
推薦(0)
摘要:
gprof:這是一個GNU的性能分析工具,主要用于分析程序的函數調用關系,以及每個函數的運行時間等。 Valgrind:這是一個用于內存調試、內存泄漏檢測以及性能分析的開源工具集。其中,Valgrind的Callgrind工具可以收集程序運行時的函數調用信息,用于性能分析。 perf:這是Linux
閱讀全文
posted @ 2024-03-16 11:06
He_LiangLiang
閱讀(5862)
推薦(0)
摘要:
https://zh.cppreference.com/w/ cppreference.com 是一個在線的 C++ 參考手冊網站,提供了廣泛的 C++ 相關信息,包括標準庫、語言特性、算法、數據結構等方面的文檔。該網站是 C++ 開發者的重要資源之一,它的內容通常比較全面,詳細說明了 C++ 的各
閱讀全文
posted @ 2024-01-25 16:55
He_LiangLiang
閱讀(142)
推薦(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
閱讀(180)
推薦(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
閱讀(185)
推薦(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
閱讀(448)
推薦(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
閱讀(172)
推薦(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
閱讀(307)
推薦(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
閱讀(158)
推薦(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
閱讀(125)
推薦(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
閱讀(85)
推薦(0)
摘要:
#include <sstream> #include <istream> #include <ostream> #include <iostream> #include <fstream> // ofstream 他們 好像很接近,他們分別 主要包含了哪些 類? 在C++標準庫中,<sstream
閱讀全文
posted @ 2024-11-08 16:30
He_LiangLiang
閱讀(182)
推薦(0)
摘要:
message(" >>>>>shelldemo/CMakeLists.txt" ) # 收集當前目錄下所有的 .cpp 文件 aux_source_directory(. DIR_SRCS) # 添加可執行文件 add_executable(shelldemo ${DIR_SRCS}) # 鏈接需
閱讀全文
posted @ 2024-11-08 15:58
He_LiangLiang
閱讀(32)
推薦(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
閱讀(120)
推薦(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
閱讀(38)
推薦(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
閱讀(27)
推薦(0)
摘要:
./demo > /mnt/udisk/heliang-log.log 2>&1 & 這行命令在Unix/Linux系統中執行了幾個操作,下面是對它的詳細解釋: ./demo:這部分是命令的主體,表示執行當前目錄下名為demo的可執行文件。./指的是當前目錄,因此這個命令是在告訴系統在當前目錄中查找
閱讀全文
posted @ 2024-11-06 08:35
He_LiangLiang
閱讀(791)
推薦(0)
摘要:
一,JDK1.8迅雷下載:32位:thunder://QUFodHRwOi8vc3cuYm9zLmJhaWR1LmNvbS9zdy1zZWFyY2gtc3Avc29mdHdhcmUvOGU4Mzk5YTlhNTYxZi9qZGstOHUxMTEtd2luZG93cy1pNTg2XzguMC4xMTE
閱讀全文
posted @ 2024-11-05 08:52
He_LiangLiang
閱讀(309)
推薦(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
閱讀(53)
推薦(0)
摘要:
僅僅是一個示例,由 chatgpt-3.5回答: 在開發 ARM 應用并與 SQLite 進行頻繁的數據庫操作時,從系統架構師的角度來看,合理封裝和管理 SQLite 的操作至關重要,尤其是對于嵌入式環境,性能、資源限制以及并發安全性都需要重點考慮。以下是一些建議: ### 1. **數據庫操作封裝
閱讀全文
posted @ 2024-10-13 23:02
He_LiangLiang
閱讀(57)
推薦(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
閱讀(824)
推薦(0)