摘要: 博客工具 docsify 一个好看的模板 https://github.com/BNDong/Cnblogs Theme SimpleMemory 图床工具PicGo https://github.com/Molunerfinn/PicGo cdn https://blog.csdn.net/qq_ 阅读全文
posted @ 2020-03-12 21:45 zongzi10010 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Mark 阅读全文
posted @ 2020-03-12 15:19 zongzi10010 阅读(547) 评论(0) 推荐(0) 编辑
摘要: LuaBridge使用 目的 把已有的C++的动态库导出给lua脚本使用 Lua编译 我们的lua需要编译动态库供以后的CPP的动态库使用,需要添加一个编译选项 add_definitions(-DLUA_USE_DLOPEN) 源码的文件分为三种 lua.c 执行文件 luac.c , Lua编译 阅读全文
posted @ 2023-03-10 16:34 zongzi10010 阅读(293) 评论(0) 推荐(0) 编辑
摘要: dlopen重复打开的一些问题 源码地址: https://gitee.com/layty/test-dlopen 如果打开多个动态库(软连接的),会共享内存吗? 结论: 会 如果动态库更新了,不close,直接open,会更新吗? 结论: 不会,要先close,再open即可 动态库源码如下 #i 阅读全文
posted @ 2022-06-27 14:12 zongzi10010 阅读(1371) 评论(0) 推荐(0) 编辑
摘要: CPP和Net交互实践 引入 NET调用C++,使用CLR的方式,可以有以下两种 CPP纯粹的动态库 + CLR包装的动态库 + NET程序 CLR动态库(包含了业务逻辑代码) + NET程序 关于如果包含库 快速验证 如果你想快速验证CLR/CLI/C++的混合编程,可以新建一个CLR的控制台程序 阅读全文
posted @ 2022-06-17 13:09 zongzi10010 阅读(113) 评论(0) 推荐(0) 编辑
摘要: CPP和Net交互语法速览 本文通过一些demo来记录常用的参数交互,请记住 ^ 托管给NET处理内存 % 我是引用,比如在传递 byte[] 的时候, String^ 是C#的 string 是c++的 一份教材 http://www.functionx.com/cppcli/Lesson10.h 阅读全文
posted @ 2022-06-17 13:09 zongzi10010 阅读(123) 评论(0) 推荐(0) 编辑
摘要: CPP和NET交互 关键词 C++/CLI 托管调用C++ C++调用C# C++要添加CLR支持(公共语言运行支持),然后添加引用即可 https://www.jianshu.com/p/6e956c44eace/ C#调用C++(导出语法) 后续章节都是描述这个 导出 extern"C" __d 阅读全文
posted @ 2022-06-17 13:08 zongzi10010 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 读写文件的简单封装 class FileClassWrap { private: std::string file_path_; FILE* fp_; public: FileClassWrap(const std::string &filePath,const char* mode) : file 阅读全文
posted @ 2022-06-02 10:01 zongzi10010 阅读(59) 评论(0) 推荐(0) 编辑
摘要: fseek写文件 FAQ 从串口或者网络接收文件,文件分包带序号,一开始用ab+的形式,发现如果中间丢失了一包数据之后,fseek不会跳过这个区域,直接在尾巴追加,遂仔细翻看APUE,以及编写测试代码 API相关 FILE *fopen(const char *restrict pathname, 阅读全文
posted @ 2022-06-01 13:55 zongzi10010 阅读(147) 评论(0) 推荐(0) 编辑
摘要: bcd处理小源码 #include <string> #include <stdint.h> void BCD2ASC(unsigned char *asc, const unsigned char *bcd, int len) { static unsigned char bcd2ascii[16 阅读全文
posted @ 2021-10-20 19:44 zongzi10010 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 重载函数的时候会重定义? char * a="aaaaa"; char * const a =“aaa”; a is a point to char a is a const point to char 在函数中, fun (a) 我们都取得的a指向的地址 ,但是是无法获得a本身的地址的 也就是说传 阅读全文
posted @ 2021-05-16 16:47 zongzi10010 阅读(71) 评论(0) 推荐(0) 编辑
摘要: usb虚拟网卡与串口 依赖的驱动模块 # usb cp /work/code/kernel_gitee/kernel_imx/fs/configfs/configfs.ko ./fixShell/so/ cp /work/code/kernel_gitee/kernel_imx/drivers/us 阅读全文
posted @ 2021-04-22 14:02 zongzi10010 阅读(975) 评论(0) 推荐(0) 编辑
摘要: usb虚拟网卡与串口 依赖的驱动模块 # usb cp /work/code/kernel_gitee/kernel_imx/fs/configfs/configfs.ko ./fixShell/so/ cp /work/code/kernel_gitee/kernel_imx/drivers/us 阅读全文
posted @ 2021-04-19 13:18 zongzi10010 阅读(2265) 评论(0) 推荐(0) 编辑
摘要: ethtool交叉编译使用 最近公司的产品出现网卡不断重启,即不断up/dowm,换了一个交换机或者电脑直连是可以的,大部分的交换机是不行的. 搜索资料后查询网卡与交换机不兼容,尝试强制固定速率,发现工具ethtool 交叉编译下载 https://sourceforge.net/projects/ 阅读全文
posted @ 2021-02-20 11:47 zongzi10010 阅读(324) 评论(0) 推荐(0) 编辑
摘要: #include <sys/mman.h> #include <stdio.h> #include<string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdint.h> #inclu 阅读全文
posted @ 2020-10-22 14:33 zongzi10010 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 头文件 #include <functional> 实现 // 实现一个通用的apdu准备的函数,通过调用p方法来实现协议的wrap和发送 // 方法 p 来将 apdu 打包为[head][apdu][tail] // 这里我们想让 protocolUse 是一个函数指针 template<typ 阅读全文
posted @ 2020-10-15 20:46 zongzi10010 阅读(122) 评论(0) 推荐(0) 编辑
摘要: http://com0com.sourceforge.net/ 阅读全文
posted @ 2020-10-13 09:07 zongzi10010 阅读(630) 评论(0) 推荐(0) 编辑
摘要: cmake 修改 option(WITH_TOOLS "Build utility tools" YES ) option(WITH_TESTS "Build tests" NO ) option(WITHOUT_PNG "Disable PNG support" YES) #1.屏蔽PNG opt 阅读全文
posted @ 2020-10-09 21:36 zongzi10010 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 使用命令 `tar -h` 选项直接复制原来的文件,而不是使用链接 阅读全文
posted @ 2020-09-15 13:19 zongzi10010 阅读(311) 评论(0) 推荐(0) 编辑
摘要: # 我的VsCode插件列表 - 打开终端,位置切换到当前文件下,两个类似的插件, [1](https://marketplace.visualstudio.com/items?itemName=Tyriar.vscode-terminal-here) | (2 国人写的)[https://mark 阅读全文
posted @ 2020-05-26 11:44 zongzi10010 阅读(201) 评论(0) 推荐(0) 编辑
摘要: ctrl+z, 返回 fg 阅读全文
posted @ 2020-05-22 22:05 zongzi10010 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 如果要调试标准库,最好安装 ``` sudo apt-get install libstdc++6-8-dbg ``` 阅读全文
posted @ 2020-05-19 21:00 zongzi10010 阅读(158) 评论(0) 推荐(0) 编辑
摘要: cppPrimer学习19th 19.3 19.4 19.5 19.6 19.8 19.9 19.10 Tudo 嵌套类 联合体 内部类 阅读全文
posted @ 2020-05-03 15:09 zongzi10010 阅读(353) 评论(0) 推荐(0) 编辑
摘要: cppPrimer学习18th 18.1 18.2 18.3 18.4 18.5 18.10 18.11 18.13 18.14 18.15 18.16 18.17 18.21 18.22 18.23 18.24 18.25 18.26 18.27 18.28 18.29 代码 18.30 阅读全文
posted @ 2020-05-03 15:08 zongzi10010 阅读(247) 评论(0) 推荐(0) 编辑
摘要: cppPrimer学习17th [TOC] 17.1 17.2 17.3 17.9 17.10 17.12 17.13 17.31 阅读全文
posted @ 2020-05-03 14:58 zongzi10010 阅读(232) 评论(0) 推荐(0) 编辑
摘要: cppPrimer学习15th [TOC] TODO 父类中的静态成员,子类按照public应该公用? 15.1 15.2 15.3 15.10 15.11 15.15 15.16 15.23 15.23.2 15.38 15.39 15.40 15.41 15.42.b 15.42.c 阅读全文
posted @ 2020-05-03 14:57 zongzi10010 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 通用代码工具 "代码分享(ubuntu)" | "各种语言API在线查询 devdocs.io" | "GDB在线指令速查" C++文档资料 "API快速查询 cppreference.com " 在线代码编辑调试 "在线GDB" GNU系列工具 阅读全文
posted @ 2020-04-23 20:20 zongzi10010 阅读(410) 评论(0) 推荐(2) 编辑
摘要: cppPrimer学习16th [TOC] TODO 16.1 16.2 16.8 16.12 16.19 16.20 16.21 16.26 16.27 16.28 16.31 cpp // 16.31 如果我们将DebugDelete 与 unique_ptr 一起使用,解释编译器将删除器处理为 阅读全文
posted @ 2020-04-23 19:49 zongzi10010 阅读(180) 评论(0) 推荐(0) 编辑
摘要: nfs内网穿透失败记录 修改nfs的固定端口 重启服务 端口查看 端口映射 | | 31 | 6 | | tcp | 32049 | 0.0.0.0:2049 | | open | open | online | | | | | | | | | | | | | | | | | 32 | 6 | | 阅读全文
posted @ 2020-04-18 10:09 zongzi10010 阅读(1275) 评论(0) 推荐(0) 编辑
摘要: 开坑unp[unix 网络环境编程]学习 Github "我的学习记录以及代码" "原书代码" unp[unix 网络环境编程]学习 vscode环境搭建 1. vscode 下载安装 ,f5打开调试配置,或者按照我的文件直接覆盖就行 2. 参考 的两个文件,其中 不用修改 3. 如果想自己每次重新 阅读全文
posted @ 2020-04-17 22:34 zongzi10010 阅读(259) 评论(0) 推荐(0) 编辑
摘要: cppPrimer学习14th [TOC] 从章节14.8开始看 14.1 14.2 14.24 14.25 14.29 14.33 14.34 14.35 14.36 14.41 14.42 14.43 14.53 StrBlob StrBlobPtr Strvec String 阅读全文
posted @ 2020-04-11 15:16 zongzi10010 阅读(108) 评论(0) 推荐(0) 编辑
摘要: cppPrimer学习14th [TOC] 从章节14.8开始看 14.1 14.2 14.24 14.25 14.29 14.33 14.34 14.35 14.36 14.41 14.42 14.43 14.53 StrBlob StrBlobPtr Strvec String 阅读全文
posted @ 2020-04-11 14:51 zongzi10010 阅读(144) 评论(0) 推荐(0) 编辑
摘要: cppPrimer学习13th [TOC] TODO 13.42 13.1 拷贝构造函数是什么? 什么时候使用它? 拷贝构造函数是 第一个参数是自身的引用类型,且其他参数有默认值 class A { A(const &A); }; 1. 在使用=,右侧会调用拷贝初始化,编译器把等号右侧的初始值拷贝到 阅读全文
posted @ 2020-04-11 14:50 zongzi10010 阅读(142) 评论(0) 推荐(0) 编辑
摘要: SSH端口转发 [TOC] 参考文档 "精美图片来自B站" | "IBM上的完整实践" 以及 "对他的整理" | "使用MOBAXTERM的实践" 概述 1. 远程端口转发,使用 R参数,内网穿透 2. 动态端口转发,使用 D参数,用作代理上网 3. 本地端口转发,使用 L参数,是动态端口转发的阉割 阅读全文
posted @ 2020-03-21 16:05 zongzi10010 阅读(481) 评论(0) 推荐(0) 编辑
摘要: PicGo图床软件使用 概述 "Github" | "文档" 阿里云购买 1. 创建bucket,包年购买也不贵 2. 设置权限为公共读 3. 添加用户的授权 "链接" ,我这里是直接设置了访问控制RAM,后来看到直接在这里设置Bucket权限应该更方便 4. 添加RAM访问控制用户,这里会得到一串 阅读全文
posted @ 2020-03-21 16:04 zongzi10010 阅读(355) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-03-16 18:38 zongzi10010 阅读(0) 评论(0) 推荐(0) 编辑
摘要: nohup 命令 参数 & nohup no hang up 的缩写,就是不挂断的意思 忽略SIGHUP信号 shell中断 会话 关闭会话的时候发出SIGHUP信号,我们使用nohup 可以忽略这个 信号 进程组 多个集合 进程 阅读全文
posted @ 2020-03-16 11:51 zongzi10010 阅读(213) 评论(0) 推荐(0) 编辑
摘要: zeal配合Vscode使用 [TOC] 使用 1. 使用安装版的zeal,全部安装,并且运行 ,我一开始没使用这个命令,总是提示找不到应用程序 2. 运行vscode,安装 ,选择文字使用快捷键 ,不选择文字使用 ,这个时候会自动唤出zeal,并没有在vscode另开一个tab,有点小遗憾 3. 阅读全文
posted @ 2020-03-14 14:26 zongzi10010 阅读(906) 评论(0) 推荐(1) 编辑
摘要: 在线 在线API查询 https://devdocs.io/ 非官方的zeal文档订阅地址 http://zealusercontributions.herokuapp.com 阅读全文
posted @ 2020-03-14 13:56 zongzi10010 阅读(149) 评论(0) 推荐(0) 编辑
摘要: title: cppPrimer学习8th date: 2020/3/10 20:37:05 toc: true 8.1 8.2 8.4 8.5 8.11 8.12 8.14 阅读全文
posted @ 2020-03-14 10:20 zongzi10010 阅读(157) 评论(0) 推荐(0) 编辑
摘要: title: cppPrimer学习12th date: 2020/2/25 18:47:37 toc: true cppPrimer学习12th [TOC] 12.1 12.2 12.5 12.6 12.7 12.8 12.9 12.10 12.11 12.12 12.13 12.14 12.15 阅读全文
posted @ 2020-03-14 10:18 zongzi10010 阅读(281) 评论(0) 推荐(0) 编辑