Stay Hungry,Stay Foolish!

06 2024 档案

摘要:A - A Healthy Breakfast https://atcoder.jp/contests/abc360/tasks/abc360_a https://atcoder.jp/contests/abc360/submissions/55049596 int main() { string 阅读全文
posted @ 2024-06-30 22:12 lightsong 阅读(70) 评论(0) 推荐(0) 编辑
摘要:How Do Kubernetes and Docker Create IP Addresses?! https://dustinspecker.com/posts/how-do-kubernetes-and-docker-create-ip-addresses/ iptables: How Doc 阅读全文
posted @ 2024-06-28 22:36 lightsong 阅读(10) 评论(0) 推荐(0) 编辑
摘要:内部负载均衡和 VIP IPVS IPVS, which stands for IP Virtual Server, is a high-performance load balancing technology designed for Linux systems. It operates at 阅读全文
posted @ 2024-06-28 21:35 lightsong 阅读(14) 评论(0) 推荐(0) 编辑
摘要:实验 基于此代码,部署两个web容器, 一个gateway容器。 https://github.com/fanqingsong/microservice-demo song@song-VirtualBox:~/workspace/microservice-demo$ docker network i 阅读全文
posted @ 2024-06-28 20:53 lightsong 阅读(22) 评论(0) 推荐(0) 编辑
摘要:docker-compose scale 配置 https://github.com/docker/compose/issues/5586 version: '2.2' services: template: image: tutum/hello-world scale: 2 version: "3 阅读全文
posted @ 2024-06-28 19:49 lightsong 阅读(13) 评论(0) 推荐(0) 编辑
摘要:microservice-demo https://github.com/fanqingsong/microservice-demo docker-compose.yml version: '2' services: gateway: build: traefik command: --logLev 阅读全文
posted @ 2024-06-28 15:34 lightsong 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Setup SSL using .PFX file on nginx/apache2 https://xy2z.io/posts/2020-pfx-certificates-nginx-apache2/ A complete guide to using a PFX certificate on y 阅读全文
posted @ 2024-06-25 23:29 lightsong 阅读(76) 评论(0) 推荐(0) 编辑
摘要:microservices-with-fastapi https://github.com/fanqingsong/microservices-with-fastapi Microservices, API Gateway, Authentication with FastAPI, non-bloc 阅读全文
posted @ 2024-06-24 21:45 lightsong 阅读(47) 评论(0) 推荐(0) 编辑
摘要:问题 使用docker compose启动的容器组,容器间不能通信。 LLM问答解决 使用docker-compose启动的一组应用,但是容器间网络ping不通,为啥? 答 当使用docker-compose启动的一组应用出现容器间网络ping不通的情况时,可能的原因和解决方法可以归纳如下: 网络配 阅读全文
posted @ 2024-06-24 08:51 lightsong 阅读(11) 评论(0) 推荐(0) 编辑
摘要:C - Tile Distance 2 https://atcoder.jp/contests/abc359/tasks/abc359_c 思路 在x方向上,让s<t 然后 如果s在tile的左边,移动到右边, 如果t在tile的右边,移动到左边, 计算x 和 y方便的必走的steps, y方向上容 阅读全文
posted @ 2024-06-23 22:50 lightsong 阅读(19) 评论(0) 推荐(0) 编辑
摘要:还能使用的 https://segmentfault.com/q/1010000044951309 发现一些还能用的 sudo vim /etc/docker/daemon.json 写入 { "registry-mirrors": [ "https://ustc-edu-cn.mirror.ali 阅读全文
posted @ 2024-06-22 23:31 lightsong 阅读(135) 评论(0) 推荐(0) 编辑
摘要:docker-fastapi-celery https://github.com/fanqingsong/docker-fastapi-celery 设置了https证书,可以运行查看效果。 Run on local machine Install docker and docker-compose 阅读全文
posted @ 2024-06-18 23:34 lightsong 阅读(62) 评论(0) 推荐(0) 编辑
摘要:E - Alphabet Tiles https://atcoder.jp/contests/abc358/tasks/abc358_e 思路 dp[i][j] 前i项组成j长度字符串的 方案总数。 状态转移为: dp[i-1][j] * combination[j+l][l] > dp[i][j+ 阅读全文
posted @ 2024-06-17 23:40 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
摘要:D - Souvenirs https://atcoder.jp/contests/abc358/tasks/abc358_d 思路 贪心算法。 把a数组和b数组从小到大排序。 遍历b数组的每一个元素bi, 在a数组中找到第一个大于等于bi元素,累加值。 Code https://atcoder.j 阅读全文
posted @ 2024-06-17 13:27 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
摘要:B - Ticket Counter https://atcoder.jp/contests/abc358/tasks/abc358_b 思路 第i个完成的时刻,done[i] 跟第i-1完成时间done[i-1]有关系, 第i个的开始时刻t[i] 大于 done[i-1], done[i] = t 阅读全文
posted @ 2024-06-16 22:51 lightsong 阅读(13) 评论(0) 推荐(0) 编辑
摘要:C - Popcorn https://atcoder.jp/contests/abc358/tasks/abc358_c 思路1 -- 枚举法 遍历stands的所有组合, 对于每一种组合,判断是否满足全部的flavors, 满足则更新最小stands记录, stands所有组合: 0 s1 s2 阅读全文
posted @ 2024-06-16 11:50 lightsong 阅读(72) 评论(0) 推荐(0) 编辑
摘要:Podman https://podman.io/ The best free & open source container tools Manage containers, pods, and images with Podman. Seamlessly work with containers 阅读全文
posted @ 2024-06-14 22:40 lightsong 阅读(21) 评论(0) 推荐(0) 编辑
摘要:Open WebUI https://docs.openwebui.com/ ollama UI的独立演进版本。 不负责模型的部署。 可以对接 ollama后台 和 openai 接口。 Open WebUI is an extensible, feature-rich, and user-frie 阅读全文
posted @ 2024-06-13 08:51 lightsong 阅读(245) 评论(0) 推荐(0) 编辑
摘要:E - Reachability in Functional Graph https://atcoder.jp/contests/abc357/tasks/abc357_e 思路 概念: 基环树-内生树。 https://www.cnblogs.com/Dfkuaid-210/p/14696378. 阅读全文
posted @ 2024-06-11 10:05 lightsong 阅读(60) 评论(0) 推荐(0) 编辑
摘要:A successful Git branching model https://nvie.com/posts/a-successful-git-branching-model/ The main branches Supporting branches Feature branches Relea 阅读全文
posted @ 2024-06-09 23:45 lightsong 阅读(4) 评论(0) 推荐(0) 编辑
摘要:D - Masked Popcount https://atcoder.jp/contests/abc356/tasks/abc356_d 思路 对于m的所有为1的bit位置,统计 0 ~ n 中所有对应对bit位置中1的个数, 如何统计呢? 观察如下bit位表: 从右向左第一位 循环节为 0 1 阅读全文
posted @ 2024-06-09 14:16 lightsong 阅读(13) 评论(0) 推荐(0) 编辑
摘要:D - 88888888 https://atcoder.jp/contests/abc357/tasks/abc357_d 思路 Code https://atcoder.jp/contests/abc357/submissions/54384091 LL n; LL base = 9982443 阅读全文
posted @ 2024-06-08 23:04 lightsong 阅读(68) 评论(0) 推荐(0) 编辑
摘要:C - Sierpinski carpet https://atcoder.jp/contests/abc357/tasks/abc357_c 思路 开辟cells作为标记结果, dfs递归调用对#进行标记。 Code https://atcoder.jp/contests/abc357/submi 阅读全文
posted @ 2024-06-08 22:56 lightsong 阅读(49) 评论(0) 推荐(0) 编辑
摘要:C - Keys https://atcoder.jp/contests/abc356/tasks/abc356_c 思路 对于样例1中的两种情况,可以推知如下推论: (1)1 2为real keys (2)1 3 为real keys, (3)上面两个不能同为真。 所以,上述可能得真钥匙组合为(1 阅读全文
posted @ 2024-06-06 00:28 lightsong 阅读(22) 评论(0) 推荐(0) 编辑

千山鸟飞绝,万径人踪灭
点击右上角即可分享
微信分享提示