kehuadong

上一页 1 2 3 4 5 6 7 ··· 13 下一页

2024年7月29日

[十万个为什么] win11恢复win10右键菜单

摘要: 管理员运行命令:reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve 重启就恢复win10右键了 reg.exe delete "HKCU\Soft 阅读全文

posted @ 2024-07-29 22:51 kehuadong 阅读(6) 评论(0) 推荐(0) 编辑

[十万个为什么] linux 以 16进制打印串口数据

摘要: stty -F /dev/ttyS0 115200cat /dev/ttyS0 | hexdump -C 阅读全文

posted @ 2024-07-29 16:53 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

[十万个为什么] [lua] packfield

摘要: local function print_pack_field(s) local cnt = s:byte(5) for i = 1, #s do if i == 1 then io.write(" size: ") elseif i == 5 then io.write("\n cnt: ") e 阅读全文

posted @ 2024-07-29 16:21 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

2024年7月25日

[十万个为什么] [vscode] ubuntu18.04 找不到GLIBC_2.28解决方法

摘要: Ubuntu 18.04 出现GLIBC_2.28 not found的解决方法(亲测有效)_ubuntu18.04安装glibc2.28崩溃-CSDN博客 1. 添加apt源到/etc/apt/sources.list 最后面 deb http://security.debian.org/debi 阅读全文

posted @ 2024-07-25 10:55 kehuadong 阅读(5) 评论(0) 推荐(0) 编辑

[十万个为什么] [vscode] 格式化格式

摘要: {BaseOnStyle: Webkit, UseTab: Always, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, IndentCaseLabels: true, ColumnLimit: 120} 阅读全文

posted @ 2024-07-25 00:41 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

2024年7月24日

[十万个为什么] [lua] 自定义byte_buffer

摘要: #include "lprefix.h" #include "lua.h" #include "lauxlib.h" #include "lualib.h" #define BYTE_BUFFER_META_TABLE_NAME "byte_buffer*" #define GET_BYTE_BUF 阅读全文

posted @ 2024-07-24 11:52 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

2024年7月23日

[十万个为什么] [lua] [sproto]

摘要: 1. 类型/协议定义 转 lua_table 2. lua_table 转 { type = {}, proto = {} } 阅读全文

posted @ 2024-07-23 00:00 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

2024年7月22日

[十万个为什么] [lua] 打印table

摘要: local function print_r(t) local print_r_cache = {} local function sub_print_r(t, indent) if (print_r_cache[tostring(t)]) then print(indent .. "*" .. t 阅读全文

posted @ 2024-07-22 18:21 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

2024年7月21日

[十万个为什么] [lua] [lpeg]

摘要: LPeg - 解析 Lua 的表达式语法 (puc-rio.br) 阅读全文

posted @ 2024-07-21 16:39 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

[十万个为什么] ubuntu下32位lua

摘要: 编译和链接选项-m32 apt install gcc-mutllib apt install lib32readline-dev 阅读全文

posted @ 2024-07-21 16:05 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 13 下一页

导航