Stay Hungry,Stay Foolish!

上一页 1 2 3 4 5 6 7 8 ··· 24 下一页
摘要: C - Many Replacement https://atcoder.jp/contests/abc342/tasks/abc342_c 思路 根据q组字符转换动作,找出每个字符最终将变成的字符。 初始化字母转换表: 映射前 -> 映射后 a -> a b -> b...... z -> z 对 阅读全文
posted @ 2024-02-25 11:45 lightsong 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 手动和客户端git命令方法 https://www.cnblogs.com/wucaiyun1/p/10955876.html gerrit set-reviewers - Add or remove reviewers to a change 登录gerrit server,使用命令对特定的cha 阅读全文
posted @ 2024-02-21 15:42 lightsong 阅读(30) 评论(0) 推荐(0) 编辑
摘要: A simple search engine demo. https://github.com/bobbyz3g/Chihiro 一个基于elasticsearch的全栈应用demo。 使用scrapy爬取数据,输入elasticsearch, 使用Django作为web搜索界面, 调用elasti 阅读全文
posted @ 2024-02-20 00:07 lightsong 阅读(3) 评论(0) 推荐(0) 编辑
摘要: background virtualbox中使用ubuntu, 过段时间,就会出现桌面丢失的现象, 伴随着网络不通 solution 网络不通: https://askubuntu.com/questions/336354/virtualbox-suddenly-doesnt-connect-to- 阅读全文
posted @ 2024-02-05 08:53 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
摘要: concept https://www.cicd.sh/2022/05/01/using-gitflow-in-cicd/ https://juejin.cn/post/6978300325086101518?share_token=9FB3D1CD-6482-4B45-A02F-A374967CD 阅读全文
posted @ 2024-01-31 16:42 lightsong 阅读(3) 评论(0) 推荐(0) 编辑
摘要: no new changes https://gerrit-documentation.storage.googleapis.com/Documentation/2.16.4/error-no-new-changes.html With this error message Gerrit rejec 阅读全文
posted @ 2024-01-30 14:37 lightsong 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Special and magic references https://vlab.noaa.gov/code-review/Documentation/access-control.html#references The reference namespaces used in git are g 阅读全文
posted @ 2024-01-29 23:32 lightsong 阅读(22) 评论(0) 推荐(0) 编辑
摘要: P1886 滑动窗口 /【模板】单调队列 https://www.luogu.com.cn/problem/P1886 思路 https://zhuanlan.zhihu.com/p/346354943 Code https://www.luogu.com.cn/record/143623041 L 阅读全文
posted @ 2024-01-21 11:48 lightsong 阅读(5) 评论(0) 推荐(0) 编辑
摘要: D - Pyramid https://atcoder.jp/contests/abc336/tasks/abc336_d 思路 https://blog.csdn.net/m0_63925226/article/details/135594715 https://www.cnblogs.com/z 阅读全文
posted @ 2024-01-17 22:10 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
摘要: python client https://docs.influxdata.com/influxdb/v2/api-guide/tutorials/python/#authenticate-with-an-influxdb-api-token Follow this step-by-step tut 阅读全文
posted @ 2024-01-14 17:32 lightsong 阅读(34) 评论(0) 推荐(0) 编辑
摘要: sklearn.preprocessing + keras sklearn 的数据预处理 可以对业务数据进行规范化, 和规范化后的数据还原, 经常跟其他的模型配合使用。 例如如下情况: https://github.com/influxdata/influxdb-client-python/blob 阅读全文
posted @ 2024-01-14 17:13 lightsong 阅读(7) 评论(0) 推荐(0) 编辑
摘要: ubuntu系统上安装不同python版本 https://www.bandwagonhost.net/7309.html 比如安装 Python 3.7: sudo apt install python3.7 或者安装 Python 3.6: sudo apt install python3.6 阅读全文
posted @ 2024-01-14 16:41 lightsong 阅读(14) 评论(0) 推荐(0) 编辑
摘要: E - Christmas Color Grid 1 https://atcoder.jp/contests/abc334/tasks/abc334_e 思路 https://www.cnblogs.com/Lanly/p/17923753.html Code https://atcoder.jp/ 阅读全文
posted @ 2024-01-13 10:56 lightsong 阅读(4) 评论(0) 推荐(0) 编辑
摘要: C - Loong Tracking 题目传送门 https://atcoder.jp/contests/abc335/tasks/abc335_c 思路 贪吃蛇,头部不断更新, 原来的头部会变成颈部,颈部变成胸膛,..., 原来的尾部删除。 采用双端队列, 头部 根据 头部做更新 尾部删除。 Co 阅读全文
posted @ 2024-01-07 17:55 lightsong 阅读(27) 评论(0) 推荐(0) 编辑
摘要: FastAPI + Celery https://derlin.github.io/introduction-to-fastapi-and-celery/03-celery/ What is Celery¶ From their documentation: Task queues are used 阅读全文
posted @ 2024-01-04 21:01 lightsong 阅读(239) 评论(0) 推荐(0) 编辑
摘要: InfluxDB https://www.influxdata.com/ 时间序列数据库。 Real-time insights from any time series data with a single, purpose-built database. Run at any scale in 阅读全文
posted @ 2023-12-31 13:06 lightsong 阅读(7) 评论(0) 推荐(0) 编辑
摘要: D - Reindeer and Sleigh https://atcoder.jp/contests/abc334/tasks/abc334_d 思路 将所有雪橇的耗费的鹿数量,进行排序 然后对排序数组做前缀和, 在前缀和数组中,利用upper_bound做二分查找。 Code https://a 阅读全文
posted @ 2023-12-31 09:56 lightsong 阅读(4) 评论(0) 推荐(0) 编辑
摘要: B - Christmas Trees https://atcoder.jp/contests/abc334/tasks/abc334_b 思路 对于起始种树点A 在 [L, R]区间的位置情况,三种 A < L A> R A>=L, A<=R Code https://atcoder.jp/con 阅读全文
posted @ 2023-12-30 19:06 lightsong 阅读(11) 评论(0) 推荐(0) 编辑
摘要: C - Socks 2 https://atcoder.jp/contests/abc334/tasks/abc334_c 思路 前后缀方法: https://zhuanlan.zhihu.com/p/673837822 其中给出了证明: 1. 对于成对的袜子参不参与凑对匹配,不影响总的色差 2. 阅读全文
posted @ 2023-12-30 19:00 lightsong 阅读(11) 评论(0) 推荐(0) 编辑
摘要: PromQL https://prometheus.io/docs/prometheus/latest/querying/basics/ Cheat sheet and Online https://promlabs.com/promql-cheat-sheet/ https://demo.prom 阅读全文
posted @ 2023-12-23 23:21 lightsong 阅读(7) 评论(0) 推荐(0) 编辑
摘要: SQLAlchemy scoped_session 本身 session 不是线程安全的。 https://docs.sqlalchemy.org/en/14/orm/contextual.html The object is the scoped_session object, and it re 阅读全文
posted @ 2023-12-22 10:59 lightsong 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Prometheus Python client library. http://prometheus.github.io/client_python/ Example https://pbrissaud.github.io/suivi-bourse/ 用户场景没有价值,此项目以全栈的视角实现了自定 阅读全文
posted @ 2023-12-19 23:17 lightsong 阅读(31) 评论(0) 推荐(0) 编辑
摘要: D - Erase Leaves https://atcoder.jp/contests/abc333/tasks/abc333_d 思路 把这个图看成一棵树, 1作为树根, 统计 1树根关联的 子节点作为根的子树的总节点数, 去除 子树中总节点数最大子的 子树, 其它子树的总节点 记做贡献, 最后 阅读全文
posted @ 2023-12-16 22:26 lightsong 阅读(41) 评论(0) 推荐(0) 编辑
摘要: C - Repunit Trio https://atcoder.jp/contests/abc333/tasks/abc333_c 思路 N=333时候, repunit最长12位, 三重遍历 repunit 做和记录到vector中 最后对vector进行排序,取n值。 Code https:/ 阅读全文
posted @ 2023-12-16 22:19 lightsong 阅读(34) 评论(0) 推荐(0) 编辑
摘要: Jenkins-prometheus https://github.com/fanqingsong/Jenkins-prometheus/tree/master 1.Set up Jenkins, prometheus, grafana docker run -d --name jenkins -p 阅读全文
posted @ 2023-12-15 23:54 lightsong 阅读(45) 评论(0) 推荐(0) 编辑
摘要: redis-om-python https://github.com/redis/redis-om-python Redis OM Python makes it easy to model Redis data in your Python applications. Why Redis OM? 阅读全文
posted @ 2023-12-11 23:00 lightsong 阅读(46) 评论(0) 推荐(0) 编辑
摘要: abc.abstractmethod + property https://stackoverflow.com/questions/14671095/abc-abstractmethod-property import abc class FooBase(metaclass=abc.ABCMeta) 阅读全文
posted @ 2023-12-11 22:25 lightsong 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Dependency injection framework https://python-dependency-injector.ets-labs.org/index.html Dependency Injector is a dependency injection framework for 阅读全文
posted @ 2023-12-10 18:32 lightsong 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Using Redis with FastAPI https://developer.redis.com/develop/python/fastapi/ https://github.com/fanqingsong/fastapi-redis-tutorial FastAPI is a Python 阅读全文
posted @ 2023-12-06 22:46 lightsong 阅读(45) 评论(0) 推荐(0) 编辑
摘要: B - Buy One Carton of Milk https://atcoder.jp/contests/abc331/tasks/abc331_b 思路 dfs递归搜索, 按照依此按照三种策略: 6个一打 - cost S 8个一打 - cost M 12个一打 - cost L 递归到叶子节 阅读全文
posted @ 2023-12-04 22:21 lightsong 阅读(40) 评论(0) 推荐(0) 编辑
摘要: C - Sum of Numbers Greater Than Me https://atcoder.jp/contests/abc331/tasks/abc331_c 思路 由于 值 可以是重复的, 需要记录每出现的值 对应的位置 , 记录在 map<int, vector<int>> valpo 阅读全文
posted @ 2023-12-04 22:15 lightsong 阅读(5) 评论(0) 推荐(0) 编辑
摘要: E - Set Meal https://atcoder.jp/contests/abc331/tasks/abc331_e 思路 定义 vector<int> v[100005]; 对于 c d 对进行group操作, 得到每个ai dish 对应不可能的 bj dish的cost值的集合 对b 阅读全文
posted @ 2023-12-04 22:07 lightsong 阅读(11) 评论(0) 推荐(0) 编辑
摘要: fastapi-admin https://fastapi-admin-docs.long2ice.io/ 使用 TortoiseORM项目可以使用此库做admin管理。 fastapi-admin is a fast admin dashboard based on FastAPI and Tor 阅读全文
posted @ 2023-12-02 11:21 lightsong 阅读(175) 评论(0) 推荐(0) 编辑
摘要: forward proxy & reverse proxy https://zhuanlan.zhihu.com/p/163948996 https://netnut.io/forward-proxy-server/ Definition of a Forward Proxy Server One 阅读全文
posted @ 2023-11-29 22:30 lightsong 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ELK monitor Jenkins jobs https://github.com/fanqingsong/jenkins-elk-docker 监控每一个jenkins jobs build日志, 全部容器化配置, jenkins容器产生日志文件 filebeat容器监控日志文件 logsta 阅读全文
posted @ 2023-11-22 00:02 lightsong 阅读(28) 评论(0) 推荐(0) 编辑
摘要: D - Good Tuple Problem https://atcoder.jp/contests/abc327/tasks/abc327_d 思路 - dfs染色判断 https://www.zhihu.com/question/292465499 判断二分图 的常见方法是染色法:用两种颜色,对 阅读全文
posted @ 2023-11-10 09:34 lightsong 阅读(31) 评论(1) 推荐(1) 编辑
摘要: D - ABC Puzzle https://atcoder.jp/contests/abc326/tasks/abc326_d Sample Input 1 Copy 5 ABCBC ACAAB Sample Output 1 Copy Yes AC..B .BA.C C.BA. BA.C. .. 阅读全文
posted @ 2023-11-08 21:22 lightsong 阅读(29) 评论(0) 推荐(0) 编辑
摘要: Store config in the environment https://12factor.net/config The twelve-factor app stores config in environment variables (often shortened to env vars 阅读全文
posted @ 2023-11-04 23:37 lightsong 阅读(91) 评论(0) 推荐(0) 编辑
摘要: uvicorn https://www.uvicorn.org/settings/ 此ASGI为开发者模式提供了,代码更改,自动加载功能。 此功能如何实现? 依赖两个库: watchfiles importlib Development¶ --reload - Enable auto-reload. 阅读全文
posted @ 2023-10-29 22:57 lightsong 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Strawberry https://fastapi.tiangolo.com/zh/how-to/graphql/ GraphQL with Strawberry¶ If you need or want to work with GraphQL, Strawberry is the recomm 阅读全文
posted @ 2023-10-24 23:19 lightsong 阅读(52) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页
Life Is Short, We Need Ship To Travel