摘要: 方案1: 修改控制台编码 需要修改代码 Console.OutputEncoding = Encoding.UTF8; 方案2:windows系统设置中启用Beta版的UTF-8语言支持 无需修改代码 打开控制面板--时钟和区域-区域-管理-更改系统区域设置-勾选 Beta版 需重启系统生效 阅读全文
posted @ 2025-06-09 11:26 turingguo 阅读(2) 评论(0) 推荐(0)
摘要: ChatUI是达摩院阿里小蜜孵化的对话式界面组件,能够促进快速搭建机器人对话界面。 首先使用npm安装microsoft/fetch-event-source 然后导入fetchEventSource, EventStreamContentType import { fetchEventSource 阅读全文
posted @ 2025-05-19 10:08 turingguo 阅读(87) 评论(0) 推荐(0)
摘要: GDAL使用 使用gdal.netcore来读取和生成栅格文件。 优点:自带gdal运行时相关文件,不用额外再安装gdal库 缺点:导致发布的文件变大很多,比如Win+Linux的运行时加起来就超过了400M,所以最好是按需加载对应的运行时。比如DEBUG是运行在win的,就添加MaxRev.Gda 阅读全文
posted @ 2024-11-15 18:06 turingguo 阅读(66) 评论(0) 推荐(0)
摘要: 安装Net.Codecrete.QrCodeGenerator dotnet add Net.Codecrete.QrCodeGenerator var qr = QrCode.EncodeText("https://baidu.com", QrCode.Ecc.Medium); var bytes 阅读全文
posted @ 2024-11-14 14:47 turingguo 阅读(120) 评论(0) 推荐(0)
摘要: 修改nginx模板让出80 443端口 群晖DSM内置nginx占用了80 443端口用来跳转到5000和5001, 要让出80和443就需要进入/usr/syno/share/nginx目录,修改DSM.mustache server.mustache WWWService.mustache三个文 阅读全文
posted @ 2024-08-04 11:28 turingguo 阅读(1623) 评论(0) 推荐(0)
摘要: new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase, //驼峰命名规则 Encoder = JavaScriptEncoder.Create( UnicodeRanges.BasicLatin,/ 阅读全文
posted @ 2024-07-26 18:02 turingguo 阅读(112) 评论(0) 推荐(0)
摘要: 1、定义DelegatingHandler public class LoggingHandler : DelegatingHandler { private readonly ILogger<LoggingHandler> _logger; public LoggingHandler(ILogge 阅读全文
posted @ 2024-07-26 17:32 turingguo 阅读(204) 评论(0) 推荐(0)
摘要: 删除入站规则 执行sudo iptables -L INPUT --line-numbers 查看iptables入站规则列表 找到目标为DROP的行,备注中有drop connection requests to k8s cluster from external source字样, 执行sudo 阅读全文
posted @ 2024-01-09 14:54 turingguo 阅读(407) 评论(0) 推荐(0)
摘要: 一、安装OpenObserve和Otel-collector 使用docker-compose 安装 记得替换下USER_MAIL xxx@xx.com和PASSWORD xxx 这里解释下为啥要用named volume来映射openobserve的data目录,因为目前版本(0.7.2)在win 阅读全文
posted @ 2024-01-03 15:54 turingguo 阅读(820) 评论(0) 推荐(1)
摘要: 系统环境 wsl debian11 目标环境 arm64 musl 即 aarch64-linux-musl (小爱音箱pro的系统就是基于openwrt,对应的平台就是这个) 步骤 安装target rustup target install aarch64-unknown-linux-musl 阅读全文
posted @ 2023-05-16 21:58 turingguo 阅读(1253) 评论(0) 推荐(0)