kehuadong

07 2024 档案

十万个为什么 [ubuntu] 32位运行库
摘要:sudo apt install gcc-multilib 阅读全文

posted @ 2024-07-30 01:45 kehuadong 阅读(4) 评论(0) 推荐(0) 编辑

十万个为什么 [wsl] 配置
摘要:.wslconfig [wsl2] memory = 4GB processors = 4 指定用户登录 wsl -u khd 或者 登陆后修改 sudo vim /etc/wsl.conf [user] default = khd 然后wsl --shutdown重启 阅读全文

posted @ 2024-07-30 01:42 kehuadong 阅读(11) 评论(0) 推荐(0) 编辑

[十万个为什么] 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 阅读(32) 评论(0) 推荐(0) 编辑

[十万个为什么] linux 以 16进制打印串口数据
摘要:stty -F /dev/ttyS0 115200cat /dev/ttyS0 | hexdump -C 阅读全文

posted @ 2024-07-29 16:53 kehuadong 阅读(6) 评论(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 阅读(5) 评论(0) 推荐(0) 编辑

[十万个为什么] [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 阅读(265) 评论(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) 编辑

[十万个为什么] [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 阅读(10) 评论(0) 推荐(0) 编辑

[十万个为什么] [lua] [sproto]
摘要:1. 类型/协议定义 转 lua_table 2. lua_table 转 { type = {}, proto = {} } 阅读全文

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

[十万个为什么] [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 阅读(15) 评论(0) 推荐(0) 编辑

[十万个为什么] [lua] [lpeg]
摘要:LPeg - 解析 Lua 的表达式语法 (puc-rio.br) 阅读全文

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

[十万个为什么] ubuntu下32位lua
摘要:编译和链接选项-m32 apt install gcc-mutllib apt install lib32readline-dev 阅读全文

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

[十万个为什么] 添加lua交互
摘要:#include "util_lua.h" // 调试 // static int traceback(lua_State* L) { const char* msg = lua_tostring(L, 1); if (msg == NULL) { if (luaL_callmeta(L, 1, " 阅读全文

posted @ 2024-07-16 15:28 kehuadong 阅读(3) 评论(0) 推荐(0) 编辑

[十万个为什么] ppm图片转png图片
摘要:#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" str 阅读全文

posted @ 2024-07-07 12:16 kehuadong 阅读(14) 评论(0) 推荐(0) 编辑

[十万个为什么][lua] luaL_setfuncs 添加cclouse到table的过程
摘要:注意: 是 luaL_setfuncs添加cclouse才有复制upval 如果只是lua_pushcclosure, 会吃掉upval, 然后f放在吃掉upval之后的top 阅读全文

posted @ 2024-07-05 09:29 kehuadong 阅读(10) 评论(0) 推荐(0) 编辑

[十万个为什么] mingw头文件路径
摘要:MinGW中的头文件路径_mingwin32编译指定头文件-CSDN博客 阅读全文

posted @ 2024-07-04 20:35 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

[十万个为什么] vim练习
摘要:IDEA + Vim,竟可以这么牛逼!!_vim_模式_Idea (sohu.com) 阅读全文

posted @ 2024-07-04 19:54 kehuadong 阅读(4) 评论(0) 推荐(0) 编辑

[十万个为什么] 如何做一个目录网页
摘要:如何做一个左侧目录,右侧内容的网页 <html> <head> <style> #dir { float: left; width: 200px; border: solid 1px #ccc; } #content { width: 800px; border: solid 1px #0c0; } 阅读全文

posted @ 2024-07-03 20:19 kehuadong 阅读(15) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示