原创 QVector 排序
常用的排序函數如下 對於一個有着兩層嵌套Qmap的來進行三個維度的排序 QMap<QString, QMap<QString, QVector<COrder>>> &mapOrder;最開始使用了sort進行Qvector的排
原创 reagent/buffer的git失效
git://github.com/reagent/buffer.git 地址失效,使用代替地址可下載 git clone https://gitclone.com/github.com/reagent/buffer.git
原创 記錄 Could NOT find GTest (missing: GTEST_LIBRARY GTEST_MAIN_LIBRARY) 解決方法
https://blog.csdn.net/numberors/article/details/109765131 sudo apt-get install libgtest-dev sudo apt-get install c
原创 uriparser包安裝時問題解決
Make Error at /usr/local/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find Dox
原创 warning: null character(s) ignored [enabled by default]
vscode下文件默認存爲了UTF-16格式,而linux編譯g++使用UTF-8來讀,這就造成了很多NULL Bytes,所以會報警。 使用notepad將編碼格式轉換成utf-8即可
原创 錯誤:/bin/sh: 1: protoc: not found(轉)
錯誤:/bin/sh: 1: protoc: not found 使用muduo源碼中的腳本build.sh進行到一半報錯,解決辦法: sudo apt-get install protobuf-compiler
原创 ubuntu 16.04安裝時報錯
iftqt5_la-moc__TQTcpServer.Tpo -c src/thrift/qt/moc__TQTcpServer.cpp -fPIC -DPIC -o src/thrift/qt/.libs/libthriftqt5_la
原创 重啓USB
/* usbreset -- send a USB port reset to a USB device */ /* * Copyright (c) 2014, JSK Robotics Lab, Inc. * Copyright
原创 斷言與忽略斷言
c和c++中使用assert()函數來實現斷言。 eg: #include <stdio.h> #include <assert.h> int main() { int x = 7; x = 9; assert(x==7
原创 出現 undefined reference to `cv::String::deallocate()'的解決方法
編譯時 加上 pkg-config --cflags --libs opencv 選項
原创 about of string
char ToUpper(char c){ return (ch >= 'a' && ch <= 'z') ? (ch - 'a' + 'A') : ch;}char ToLower(char c){ return (ch >=
原创 esp32: A stack overflow in task spam_task has been detected.
A stack overflow in task spam_task has been detected. 錯誤改正方法: 將數組移到函數外部,作爲全局變量。
原创 FreeRTOS之任務優先級的分配
摘自: https://zhuanlan.zhihu.com/p/104612162 優先級任務的分配方案: 1)IRQ任務 IRQ任務指通過中斷服務程序進行觸發的任務,此類任務應該設置爲所有任務裏面優先級最高的。 2)高優先級後臺任務
原创 WireShark中802.11幀的類型、子類型對照表(轉)
https://blog.csdn.net/qq_43804080/article/details/105676067 幀類型/子類型 過濾器語法Management frame wlan.fc.type == 0Control f