postgres count 数组 与 json
-- count https://www.modb.pro/db/33446 -- 统计预估值 SELECT reltuples::bigint FROM pg_catalog.pg_class WHERE relname = 'tablename'; -- 要用 * 会有优化 SELECT COUNT(*) FROM tabl…
2024-7-08 17:42
|
495
|
|
50 字
|
3 分钟
一些 .NET 新建项目模板库
ConsoleAppFramework https://github.com/Cysharp/ConsoleAppFramework # 这里使用了注入与 zlogger var app = ConsoleApp.Create() .ConfigureServices(it => it.AddSingleton<DownloadComm…
2024-7-06 16:37
|
604
|
|
336 字
|
7 分钟
调用扣子
#load "AppLib" #load "seqlog" // 使用了 Betalgo.OpenAI // 使用了 coze2openai 将coze调用转为 openai api 调用 async Task Main(string[] args) { var app = this.CreateApp(ar…
2024-6-16 1:45
|
1,137
|
|
71 字
|
4 分钟
windows Android 子系统授权失败处理
开始 -> 运行 'wsa://com.android.settings', 搜索 usb 设置,重新 打开、关闭 开发人员模式或 usb 调试, 再次进行授权。
2024-3-17 10:02
|
891
|
|
45 字
|
几秒读完
测试未公开类及方法
测试未公开类及方法 测试未公开类方法 I # 在待测试项目代码文件中加入, IoxMcpServer.Test 为测试项目 using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("IoxMcpServer.Test")] 测试未公开类方法 II #…
2024-3-05 10:23
|
511
|
|
114 字
|
2 分钟
seq 日志系统
# 设置 # 这里使用了 Microsoft.Extensions.Logging var data = new Dictionary<string, string?>(); data["Seq:ServerUrl"] = "http://xxxxx:xxx"; // api 地址 (注:与 ui…
2024-3-02 17:54
|
530
|
|
53 字
|
2 分钟
使用 powershell 设置 linux 机器免密登录
> type ~\.ssh\id_rsa.pub | ssh root@10.168.10.144 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
2024-1-16 10:49
|
681
|
|
1 字
|
几秒读完
adb 列出用户当前运行用户 ID
# 返回当前用户 id .\adb.exe shell am get-current-user .\adb.exe shell cmd activity get-current-user # alternative command .\adb.exe shell 'dumpsys activity | grep mCurrentUser&…
2023-12-23 21:49
|
1,034
|
|
31 字
|
1 分钟内
Android 开启副屏操作流程
开启开发者模式 使用命令开启副屏 ./adb.exe shell settings put global overlay_display_devices 1920x1080/180 多个副屏的话 .\adb.exe shell "settings put global overlay_display_devices '1920x…
2023-12-23 19:57
|
902
|
|
420 字
|
2 分钟