kehuadong

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

2024年8月10日

十万个为什么 [cmake]] cmake二三事

摘要: # if else if (条件) # 做一些事 elseif(条件) # 做一些事 endif() # 判断是否Release编译类型 if (CMAKE_BUILD_TYPE STREQUAL "Release") endif() # 头文件目录 include_directories( # 各 阅读全文

posted @ 2024-08-10 01:58 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

2024年8月9日

十万个为什么 [算法] [加密解密] xxtea加密解密

摘要: // 翻转双字 // static inline uint32_t reverse_4bytes(uint32_t v) { return (v>>24&0xFF) | (v>>8&0xFF00) | (v<<8&0xFF0000) | (v<<24&0xFF000000); } // xxtea加 阅读全文

posted @ 2024-08-09 10:17 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

2024年8月7日

十万个为什么 [CMake] Windows MinGW Cmake

摘要: vscode 里面配置选项 cmake_minimum_required(VERSION 3.0.0) project(idatalink VERSION 0.1.0) if (CMAKE_BUILD_TYPE STREQUAL "Release") set(CMAKE_C_FLAGS "-Wall 阅读全文

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

2024年8月5日

十万个为什么 [网络] 查看局域网的各个主机ip

摘要: arp -a 阅读全文

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

十万个为什么 [串口] Windows 串口读写

摘要: #include <Windows.h> #include <stdint.h> #include <stdio.h> // class serial_t { public: ~serial_t() { close(); } bool is_open() { return m_handle != I 阅读全文

posted @ 2024-08-05 18:35 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

十万个为什么 [Windows] 获取串口号

摘要: #include <Windows.h> #include <SetupAPI.h> // -lsetupapi #include <devguid.h> // -luuid #include <stdint.h> #include <stdio.h> #include <map> #include 阅读全文

posted @ 2024-08-05 16:58 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

2024年8月2日

十万个为什么 [php] Ubuntu Apache2开启php错误打印

摘要: 在Ubuntu下php的缺省设置是不显示错误信息的,如果程序出错会显示“无法处理此请求的错误提示”,这在开发环境下非常不方便。 其实我们只要编辑下apache的配置文件就好 1、我的apache 配置文件目录是/etc/apache2/apache2.conf sudo vim /etc/apach 阅读全文

posted @ 2024-08-02 11:46 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

2024年8月1日

十万个为什么 [php] 绿色安装

摘要: 1. 下载php源码 axel -n 3 https://www.php.net/distributions/php-8.3.9.tar.xz 2. 配置源码 ./configure --prefix=/root/green/php-8.3.9 --enable-cli --enable-cgi - 阅读全文

posted @ 2024-08-01 13:36 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

2024年7月30日

十万个为什么 [ubuntu] 32位运行库

摘要: sudo apt install gcc-multilib 阅读全文

posted @ 2024-07-30 01:45 kehuadong 阅读(1) 评论(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 阅读(3) 评论(0) 推荐(0) 编辑

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

导航