1 2 3 4 5 ··· 184 下一页
摘要: 如何生成严格递增的分布式id? https://mp.weixin.qq.com/s/7lj_hmPHoCxPwntW59EIOQ 翻译 搜索 复制 阅读全文
posted @ 2024-09-18 22:55 papering 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 3种情况 分组项,3类情况:1)常规,比如:按照省份分组2)时间,比如:注册时间的按照周、月分组3)数值 3-1)离散分组,同1) 3-2)区间分组 比如:屏幕宽度 3-2-1)自定义区间,比如:[0:100),[100,200) 3-2-2)系统计算区间,有多种算法,比如:求出最值,(0,min) 阅读全文
posted @ 2024-09-15 08:51 papering 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 用户界面-层级 (标头)媒体平台 日期 付费金额.总和 磁力引擎 2024-09-06 123 2024-09-07 456巨量引擎 2024-09-06 789 2024-09-07 900 用户界面-平铺 (标头)媒体平台 指标 2024-09-07 2024-09-06 巨量引擎 付费金额.总 阅读全文
posted @ 2024-09-14 11:55 papering 阅读(0) 评论(0) 推荐(0) 编辑
摘要: C:\Users\someone\.ssh config Host * ServerAliveInterval 1 使用ssh密钥对验证:首先,生成一对密钥对,包括公钥和私钥。可以使用以下命令生成密钥对:“`ssh-keygen -t rsa“` 将公钥拷贝到远程服务器上的~/.ssh/author 阅读全文
posted @ 2024-09-13 15:06 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 小结: SOLID Uncle Bob 《敏捷软件开发》 SOLID - SRPSingle Responsibility Principle 单一职责原则A class should have one, and only one, reason to change.SOLID 中最简单的原则,每个 阅读全文
posted @ 2024-09-10 12:28 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: local variable 'e' referenced before assignment 翻译 搜索 复制 阅读全文
posted @ 2024-09-06 23:38 papering 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 实践: 需求:cid0cid1cid2将cid1、cid2压缩到cid0操作:git rebase -i cid0pick cid0 msg0pick cid1 msg1pick cid2 msg2# Rebase cid0..cid2 onto cid0 (3 commands)## Comman 阅读全文
posted @ 2024-09-06 19:03 papering 阅读(2) 评论(0) 推荐(0) 编辑
摘要: B站直播的极速排障建设-全链路Trace追踪 https://mp.weixin.qq.com/s/gpPauu9gNzsJmrOfZjt5ig 翻译 搜索 复制 阅读全文
posted @ 2024-09-06 13:11 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一篇文搞定消息队列选型 https://mp.weixin.qq.com/s/hn6VWEmuTiDvxHQ9EmbjlA 翻译 搜索 复制 阅读全文
posted @ 2024-09-06 13:01 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: AI 网关零代码解决 AI 幻觉问题 https://mp.weixin.qq.com/s/xbKgl6J0WDv3ckjBKVhwIQ 翻译 搜索 复制 阅读全文
posted @ 2024-09-06 13:00 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Python 类变动的钩子方法 from typing import Listclass Field: def __init__(self, name, is_user=False): self.name = name self.is_user = is_user def __str__(self) 阅读全文
posted @ 2024-09-05 18:18 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 每个程序员都应该了解的硬件知识 https://mp.weixin.qq.com/s/Ol9J1ZWevHSjP2ZIyidK-g 翻译 搜索 复制 阅读全文
posted @ 2024-09-04 23:33 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: isort https://pycqa.github.io/isort/ isort · PyPI https://pypi.org/project/isort/ Before isort: from my_lib import Object import os from my_lib import 阅读全文
posted @ 2024-08-29 11:26 papering 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 实践: 测试用例 @dataclasses.dataclassclass TestCase: method: str path: str cid: int data: dict query_str: str resp: dict = dataclasses.field(default_factory 阅读全文
posted @ 2024-08-28 14:42 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: def defer(msg: str, subject='参数错误'): print('do ') return f'{subject}:{msg}'assert False, defer('66') Python 实现类似于Go语言中的延迟执行语句(defer)|极客笔记 https://deep 阅读全文
posted @ 2024-08-27 17:42 papering 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 小结: 1、 // FixedWindowCounter 结构体实现固定窗口计数器限流算法。// mu 用于同步访问,保证并发安全。// count 记录当前时间窗口内的请求数量。// limit 是时间窗口内允许的最大请求数量。// window 记录当前时间窗口的开始时间。// duration 阅读全文
posted @ 2024-08-27 10:18 papering 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 开发文档 | 开发者专区 - 腾讯广告 https://developers.e.qq.com/v3.0/docs/enums#api_pagination_mode 分页方式名称 描述PAGINATION_MODE_NORMAL普通翻页PAGINATION_MODE_CURSOR游标翻页 开发文档 阅读全文
posted @ 2024-08-26 18:51 papering 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 查询常见问题 | StarRocks https://docs.starrocks.io/zh/docs/faq/Sql_faq/#%E5%BD%93a%E5%9F%BA%E6%95%B0%E5%BE%88%E5%B0%8F%E6%97%B6select-b-from-tbl-order-by-a- 阅读全文
posted @ 2024-08-26 17:39 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 回放测试 | AREX https://doc.arextest.com/zh-Hans/docs/chapter3/Traffic%20Replay%20Test/ 回放测试 流量录制回放是通过录制生产环境的高保真数据,并快速地在测试环境中进行回放比对接口返回值和中间链路的验证,以减少繁杂的回归测 阅读全文
posted @ 2024-08-23 11:35 papering 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 一文详解 RocketMQ 如何利用 Raft 进行高可用保障 https://mp.weixin.qq.com/s/TT_NpT3xV9Yhmva73E85Hg 翻译 搜索 复制 阅读全文
posted @ 2024-08-23 10:18 papering 阅读(5) 评论(0) 推荐(0) 编辑
摘要: RocketMQ消息回溯实践与解析 https://mp.weixin.qq.com/s/gI303eszTbTi5hin-dw4UQ 翻译 搜索 复制 阅读全文
posted @ 2024-08-23 10:17 papering 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Go 程序如何实现优雅退出?来看看 K8s 是怎么做的——上篇 https://mp.weixin.qq.com/s/UR6Rf1ewthI8qU3A7Szfzg Go 程序如何实现优雅退出?来看看 K8s 是怎么做的——下篇 https://mp.weixin.qq.com/s/oztrz9WfC 阅读全文
posted @ 2024-08-23 10:16 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 小结: 生产者生产数据时,需要入队。消费者消费数据时,需要出队。入队时,不能覆盖没有消费的元素。出队时,不能读取没有写入的元素。因此,Disruptor 中需要维护一个入队索引(生产者数据生产到哪里,对应 AbstractSequencer 中的 cursor )和一个出队索引(所有消费者中消费进度 阅读全文
posted @ 2024-08-22 15:13 papering 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 使用 BZ2Compressor 进行增量压缩 bz2 对 bzip2 压缩算法的支持 — Python 3.11.8 文档 https://docs.python.org/zh-cn/3.11//library/bz2.html 翻译 搜索 复制 阅读全文
posted @ 2024-08-19 16:36 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 转转流量录制与回放的原理及实践 https://mp.weixin.qq.com/s/yll3QKBOWN_cZGENeQP1lw 翻译 搜索 复制 阅读全文
posted @ 2024-08-15 22:15 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 224. 基本计算器 - 力扣(LeetCode) https://leetcode.cn/problems/basic-calculator/description/ 224. Basic Calculator 困难 相关标签 相关企业 Given a string s representing 阅读全文
posted @ 2024-08-13 17:43 papering 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 小结: 1、用户属性是用户具有节点意义的属性,不建议在短时间内进行频繁修改,对于需要频繁变更的属性,建议放在事件中作为事件属性 用户识别规则 | ThinkingData https://docs.thinkingdata.cn/ta-manual/latest/installation/pre_i 阅读全文
posted @ 2024-08-13 17:04 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 深度 | API 设计最佳实践的思考 https://mp.weixin.qq.com/s/qWrSyzJ54YEw8sLCxAEKlA 深度 | API 设计最佳实践的思考 谷朴 阿里云开发者 2019年05月09日 08:10 阿里妹导读:API 是模块或者子系统之间交互的接口定义。好的系统架构 阅读全文
posted @ 2024-08-13 16:35 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: s = 'abcaabc's = s.rstrip('abc') #!/usr/bin/python# -*- coding: UTF-8 -*- random_string = 'this is good ' # 字符串末尾的空格会被删除print(random_string.rstrip()) 阅读全文
posted @ 2024-08-12 14:22 papering 阅读(5) 评论(0) 推荐(0) 编辑
摘要: s = 'ddda4534asaa'x = s.index('a', 0)x1 = s.index('a', -1)正序倒序 翻译 搜索 复制 阅读全文
posted @ 2024-08-09 16:59 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 分析查询 | StarRocks https://docs.starrocks.io/zh/docs/administration/Query_planning/#join-hint Join 优化原理 - Apache Doris https://doris.apache.org/zh-CN/do 阅读全文
posted @ 2024-08-07 15:03 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: StarRocks-Profile分析及优化指南 - 🙌🏻 技术分享 / 经验教程 - StarRocks中文社区论坛 https://forum.mirrorship.cn/t/topic/2367 翻译 搜索 复制 阅读全文
posted @ 2024-08-06 20:52 papering 阅读(10) 评论(0) 推荐(0) 编辑
摘要: dict not ok d = {'a': 34, 'b': 435}rm_k = []for k in d.keys(): if k == 'a': d.pop(k) list ok l = ['wer', 'a', 'ccc']for i in l: if i == 'a': l.remove( 阅读全文
posted @ 2024-08-02 16:31 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: case | StarRocks https://docs.starrocks.io/zh/docs/sql-reference/sql-functions/condition-functions/case_when/ 阅读全文
posted @ 2024-07-31 17:11 papering 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 如何在bash中执行 python3 manage.py runserver 0.0.0.0:8001 翻译 搜索 复制 阅读全文
posted @ 2024-07-31 10:47 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 指定列 修改 fillna df["a"] = df.loc[:, "a"].fillna('null') 重命名 列名 如何在Pandas中根据条件替换列中的值|极客教程 https://geek-docs.com/pandas/pandas-dataframe/how-to-replace-va 阅读全文
posted @ 2024-07-30 16:00 papering 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Broken pipe from 翻译 搜索 复制 阅读全文
posted @ 2024-07-30 15:30 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 轻踩一下就崩溃吗——踩内存案例分析 https://mp.weixin.qq.com/s/9OCFb2cH-H5zbaIT5VAS9w 翻译 搜索 复制 阅读全文
posted @ 2024-07-30 09:07 papering 阅读(2) 评论(0) 推荐(0) 编辑
摘要: cannot access local variable where it is not associated with a value a=1def f(): a+=1f() UnboundLocalError: cannot access local variable 'a' where it 阅读全文
posted @ 2024-07-26 11:11 papering 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 计算机\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3 默认 修改第2行,第5例的数值 00 左侧 01 顶部 02 右侧 03 底部 翻译 搜索 复制 阅读全文
posted @ 2024-07-26 10:13 papering 阅读(2) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 184 下一页