会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qcy-blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
49
下一页
2025年7月10日
分表分库-基因分片法
摘要: 用户user_id=666 (666的二进制表示为:0000 0010 1001 1010)的用户生成一个订单步骤: 使用user_id%16(假设16个库)分库,决定这行数据要插入到哪个库中 分库基因是user_id的最后4个bit,即1010 在生成order_id时,先使用一种分布式ID生成算
阅读全文
posted @ 2025-07-10 09:43 朝阳1
阅读(64)
评论(0)
推荐(0)
2025年7月9日
kubebuilder实现一个简单的管理nginx镜像的示例
摘要: config下的yml apiVersion: mygroup.my.domain/v1 kind: MyApp metadata: labels: app.kubernetes.io/name: kubebuild app.kubernetes.io/managed-by: kustomize n
阅读全文
posted @ 2025-07-09 15:21 朝阳1
阅读(8)
评论(0)
推荐(0)
Pywebview编写桌面应用入门
摘要: 官网 https://pywebview.flowrl.com/guide/ 安装 pip install pywebview 示例:写个计算器 <!-- index.html --> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <tit
阅读全文
posted @ 2025-07-09 10:01 朝阳1
阅读(87)
评论(0)
推荐(0)
2025年7月8日
GoReplay流量回放工具使用入门
摘要: 安装-linux版本,其他平台下载对应的包 wget https://github.com/buger/goreplay/releases/download/1.3.3/gor_1.3.3_x64.tar.gz tar -zxvf gor_1.3.3_x64.tar.gz mv gor /usr/b
阅读全文
posted @ 2025-07-08 18:21 朝阳1
阅读(43)
评论(0)
推荐(0)
2025年6月28日
pytest+allure生成测试报告入门
摘要: 演示如何使用 pytest + allure 生成支持中文的测试报告。 1. 安装依赖 pip install pytest pip install allure-pytest 2. 运行测试并生成 Allure 原始结果 pytest 运行后会在 allure-results 目录下生成原始测试结
阅读全文
posted @ 2025-06-28 14:38 朝阳1
阅读(97)
评论(0)
推荐(0)
2025年6月20日
doris安装入门+代码示例
摘要: 二进制下载地址 https://doris.apache.org/download 我这里下载的是apache-doris-2.1.10-bin-x64.tar.gz tar -zxvf apache-doris-2.1.10-bin-x64.tar.gz mv apache-doris-2.1.1
阅读全文
posted @ 2025-06-20 11:20 朝阳1
阅读(172)
评论(0)
推荐(0)
2025年5月30日
CondaError: Run 'conda init' before 'conda activate'
摘要: 换了新公司,装了conda之后遇到一个错,记录一下 CondaError: Run 'conda init' before 'conda activate' 使用管理员权限打开PowerShell: Win+X, 选择 Windows PowerShell(管理员) 输入 Set-Execution
阅读全文
posted @ 2025-05-30 11:37 朝阳1
阅读(561)
评论(0)
推荐(0)
2025年4月29日
go解析json,不区分json字段的大小写
摘要: 有个需求,客户端传来的json的key,可能是password也可能是Password package main import ( "encoding/json" "fmt" "strings" "github.com/mitchellh/mapstructure" ) type LiveData
阅读全文
posted @ 2025-04-29 13:25 朝阳1
阅读(30)
评论(0)
推荐(0)
2025年4月25日
go validator中文翻译
摘要: package services import ( "errors" "fmt" "github.com/go-playground/locales/zh" ut "github.com/go-playground/universal-translator" "github.com/go-playg
阅读全文
posted @ 2025-04-25 10:11 朝阳1
阅读(15)
评论(0)
推荐(0)
2025年1月16日
php根据权重自定义排序
摘要: <?php // 支付列表数组 $paymentList = [ ['name' => '支付宝', 'info' => '支持多种支付场景', 'weight' => 3], ['name' => '微信支付', 'info' => '便捷的移动支付', 'weight' => 2], ['nam
阅读全文
posted @ 2025-01-16 15:05 朝阳1
阅读(24)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
49
下一页
公告