摘要: 正在设置 aic8800d80fdrvpackage (0.0.3) ...udev donedevice not existcp fw donex86_64make -C /lib/modules/6.5.0-26-generic/build M=/usr/src/AIC8800/drivers/ 阅读全文
posted @ 2024-03-27 11:50 levylaw 阅读(146) 评论(0) 推荐(0) 编辑
摘要: EventSourceResponse 是来源于 sse-starlette 库的一个类,它主要用于构建Server-Sent Events (SSE)响应。Server-Sent Events 是一种允许服务器向浏览器发送实时更新的技术,常用于实现实时推送通知、股票报价更新、聊天应用等场景。 在 阅读全文
posted @ 2024-03-22 15:35 levylaw 阅读(490) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 安装 pg15, 添加源 echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list wget --quiet -O - https://w 阅读全文
posted @ 2024-03-18 14:26 levylaw 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 参考BiliBili 于仕琪老师 avoid-memory-copy-in-opencv class CV_EXPORTS Mat { public: // some members int rows, cols; //pointer to data uchar* data; //size_t st 阅读全文
posted @ 2022-08-12 22:56 levylaw 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: 静态对象的声明及初始化不是赋值 声明(并缺省初始化)后再赋值 #include <iostream> #include <string> void fun(std::string input) { static int x; // 声明(及缺省初始化),因为声明为静态对象,所以只执行一次 x = 3 阅读全文
posted @ 2022-08-12 10:02 levylaw 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1.函数类型推导 #include <iostream> bool MyComp(int val1, int val2) { return val1 > val2; } int main() { decltype(MyComp) fun2; fun2 = MyComp; } error: non-o 阅读全文
posted @ 2022-07-24 12:15 levylaw 阅读(158) 评论(0) 推荐(0) 编辑
摘要: iostream: 输入流 cin; c 指代 character 输出流 cout, cerr(立即刷新缓冲区), clog(缓冲区满后刷新) 命名空间 访问方式 namespace NameSpace1 { void fun() { } } namespace NameSpace2 { void 阅读全文
posted @ 2022-06-24 11:13 levylaw 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/qq_24537165/article/details/90137317 环境:win10 vs2015 c++ opencv3.4.0 截图: 解决方式(不要怀疑下面写错了,是正确的): 第一步: 下载压缩包,并解压; 第二步: 32位的msv 阅读全文
posted @ 2022-05-26 18:49 levylaw 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 生成并编辑c_cpp_properties.json 命令窗口输入:>C/C++: Edit Configurations(JSON),就会自动生成该文件 在includePath中加上需要include的文件夹: "includePath": [ "/usr/include", "/usr/loc 阅读全文
posted @ 2022-05-25 19:23 levylaw 阅读(206) 评论(0) 推荐(0) 编辑
摘要: wsl无法创建文件与修改文件 sudo chown -R username /home/your_folder/ 请将用户名换成你的用户名 且目录换成你想要操作的目录 阅读全文
posted @ 2022-05-25 18:54 levylaw 阅读(297) 评论(0) 推荐(0) 编辑