2023年12月29日
摘要: 使用 .NET 的代码优先 gRPC 服务和客户端 当整个系统使用 .NET 时,代码优先是一个不错的选择: 可以在 .NET 服务器和客户端之间共享 .NET 服务和数据协定类型。 无需在 .proto 文件和代码生成过程中定义协定。 不建议在具有多种语言的 polyglot 系统中使用代码优先。 阅读全文
posted @ 2023-12-29 11:02 絆τ 阅读(39) 评论(0) 推荐(0) 编辑
2023年7月28日
摘要: function formatString(str, ...args) { return str.replace(/{(\d+)}/g, function(match, index) { return typeof args[index] != 'undefined' ? args[index] : 阅读全文
posted @ 2023-07-28 17:15 絆τ 阅读(21) 评论(0) 推荐(0) 编辑
2023年1月9日
摘要: 1.将已激活的Win11家庭版升级成未激活的Win11专业版:输入密钥【BCQNW-3VWYB-4V7QD-M6R2B-7MH26】 2.将未激活的Win11专业版升级成已激活的专业版 :【C6XDT-XJK4G-7B29G-J8C3C-TKGV9】【KFRJV-V9GWP-FQCGD-P2RGV- 阅读全文
posted @ 2023-01-09 13:39 絆τ 阅读(7362) 评论(0) 推荐(1) 编辑
2022年11月9日
摘要: 联想拯救者 Y7000P 1.Win+R打开运行输入“MdSched” 重启 2.Windows PowerShell(管理员)->并运行该命令 Disable-MMAgent -mc 重启 阅读全文
posted @ 2022-11-09 14:28 絆τ 阅读(551) 评论(0) 推荐(0) 编辑
2022年10月19日
摘要: 重置自动增长 ALTER TABLE table_name AUTO_INCREMENT = 1; 删表 truncate TABLE table_name 添加字段 alter table mytable(表名) add cloumn(字段名) int(8) DEFAULT '0' COMMENT 阅读全文
posted @ 2022-10-19 14:22 絆τ 阅读(21) 评论(0) 推荐(0) 编辑
2022年4月24日
摘要: 一、单线程 public class Singleton { private static Singleton instance; int x, y; private Singleton() { } public static Singleton Instance { get { if( insta 阅读全文
posted @ 2022-04-24 08:28 絆τ 阅读(22) 评论(0) 推荐(0) 编辑
2021年12月9日
摘要: do --check seq not in sync $$ declare _r record; _i bigint; _m bigint; begin for _r in ( Select DISTINCT(constraint_column_usage.table_name) as tablen 阅读全文
posted @ 2021-12-09 11:21 絆τ 阅读(383) 评论(0) 推荐(0) 编辑
2021年11月13日
摘要: 1.docker pull postgres 2.docker run --name postgres -v /home/postgre/data:/var/lib/postgresql/data -e POSTGRES_PASSWORD={psw} -p 5432:5432 -d postgres 阅读全文
posted @ 2021-11-13 10:32 絆τ 阅读(76) 评论(0) 推荐(0) 编辑
2021年11月2日
摘要: 1.拉镜像 docker pull nginx:latest 2.创建目录 /home/nginx/html /home/nginx/conf /home/nginx/logs 3.创建配置文件文件 /home/nginx/conf/nginx.conf worker_processes 1; er 阅读全文
posted @ 2021-11-02 21:59 絆τ 阅读(39) 评论(0) 推荐(0) 编辑
摘要: USE DATATABLE GO ALTER DATABASE DATATABLE SET RECOVERY SIMPLE DBCC SHRINKFILE (DATATABLE_Log, 1) ALTER DATABASE DATATABLE SET RECOVERY FULL 阅读全文
posted @ 2021-11-02 21:09 絆τ 阅读(128) 评论(0) 推荐(0) 编辑