摘要: ESP32 编译固件报错。 boot: no bootable app partitions in the partition table 参考: No bootable app partitions with external flash when booting in QIO, but will 阅读全文
posted @ 2024-08-29 12:31 沙里 阅读(332) 评论(0) 推荐(0)
摘要: 构建 idea 插件报错: A problem occurred configuring root project 'cola-tools'. > Could not resolve all files for configuration ':classpath'. > Could not reso 阅读全文
posted @ 2024-06-26 22:09 沙里 阅读(313) 评论(0) 推荐(1)
摘要: ## 延时函数点灯 ```cpp // 定义灯管脚 const uint8_t blinkPin = LED_BUILTIN; // 依靠延时函数来闪烁 void funcBlink(int second) { unsigned long millisSecond = second * 1000; 阅读全文
posted @ 2023-09-03 14:41 沙里 阅读(167) 评论(0) 推荐(0)
摘要: ## 常用命令 ### 生成站点 ```sh hugo new site 博客目录 ``` ### 创建文章 ```sh cd 博客目录 hugo new readme.md ``` 创建的文章位于 `博客目录/content/readme.md`。 ### 安装主题 ```sh cd 博客目录/t 阅读全文
posted @ 2023-06-28 00:06 沙里 阅读(40) 评论(0) 推荐(0)
摘要: # ArrayList抛java.lang.UnsupportedOperationException 我对 ArrayList 进行元素的添加和删除操作时,抛异常了。 ```java package shali.tdl.jdk.util; import org.junit.Test; import 阅读全文
posted @ 2023-06-20 23:01 沙里 阅读(21) 评论(0) 推荐(0)
摘要: # 集合之间的互转 ## 确认JDK是否支持如下集合的转换 ### Collectors ### Objects ## 参考: - [https://blog.csdn.net/winterking3/article/details/116457573](https://blog.csdn.net/ 阅读全文
posted @ 2023-05-25 21:59 沙里 阅读(232) 评论(0) 推荐(0)
摘要: # 阿里巴巴的 easyexcel 使用笔记 ## 引入 ```xml com.alibaba easyexcel 2.1.7 ``` ## 入门 ```java // 初始化 ExcelWriter excelWriter = EasyExcel.write(表格路径).withTemplate( 阅读全文
posted @ 2023-05-25 21:40 沙里 阅读(1163) 评论(0) 推荐(0)
摘要: # php中的日期时间字符串可以直接比较大小 很多朋友还不知道,一直使用 `strtotime` 转换字符串为时间戳再比较大小。 ```php $time1 = '09:00'; $time2 = '12:51'; $time3 = '22:00'; self::assertTrue($time2 阅读全文
posted @ 2023-05-24 20:04 沙里 阅读(572) 评论(0) 推荐(0)
摘要: # php实现占位符模板替换 对接过微信模板消息,或者阿里大于接口的,应该都知道,三方会给你一些模板,模板里有一些占位符,你只需要按照模板里的占位符填充参数即可。 ## demo,实现一个地址跳转系统 用户提供域名和路径参数,系统配置模板即可,用户传参即可替换。 ```php // 用户提供的参数 阅读全文
posted @ 2023-05-24 19:51 沙里 阅读(280) 评论(0) 推荐(0)
摘要: # JSON(Hutool-json)中的数据结构 我们知道 json 串的复合数据类型仅有 2 种:数组[],对象{},所以 hutool 也定义了 2 种复合类型:`cn.hutool.json.JSONArray` 和 `cn.hutool.json.JSONObject`。 ## cn.hu 阅读全文
posted @ 2023-05-24 19:38 沙里 阅读(1563) 评论(0) 推荐(0)