摘要:
Differences between SysVinit, Upstart and Systemd https://www.computernetworkingnotes.com/linux-tutorials/differences-between-sysvinit-upstart-and-sys
阅读全文
posted @ 2023-06-15 23:23
lightsong
阅读(72)
推荐(0)
摘要:
What is /Dev/Null in Linux? https://www.geeksforgeeks.org/what-is-dev-null-in-linux/ 所有物理设备对应的文件,放在dev目录下。 What is /dev? In the Linux file system, eve
阅读全文
posted @ 2023-06-15 20:36
lightsong
阅读(44)
推荐(0)
摘要:
itertools.groupby https://docs.python.org/3/library/itertools.html#itertools.groupby 此工具需要注意, 连续分组和输入顺序。 Make an iterator that returns consecutive key
阅读全文
posted @ 2023-06-14 23:50
lightsong
阅读(93)
推荐(1)
摘要:
How to Clear Logs of Running Docker Containers https://www.howtogeek.com/devops/how-to-clear-logs-of-running-docker-containers/ Understanding the Prob
阅读全文
posted @ 2023-06-12 10:30
lightsong
阅读(296)
推荐(0)
摘要:
Using Jenkins CI/CD for your NodeJS app https://blog.harveydelaney.com/jenkins-build-test-deploy-node-app/ Jenkinsfile https://github.com/internetarch
阅读全文
posted @ 2023-06-04 22:14
lightsong
阅读(40)
推荐(0)
摘要:
引子 https://github.com/fanqingsong/fastapi-react-postgres-keycloak-sso docker compose 配置文件定义了若干service version: "3" services: nginx: image: nginx:1.17
阅读全文
posted @ 2023-05-16 21:53
lightsong
阅读(78)
推荐(0)
摘要:
Assign permission to user through role and group https://www.keycloak.org/docs/latest/server_admin/#assigning-permissions-using-roles-and-groups Code:
阅读全文
posted @ 2023-05-16 10:53
lightsong
阅读(147)
推荐(0)
摘要:
fastapi-react-postgres-keycloak-sso https://github.com/fanqingsong/fastapi-react-postgres-keycloak-sso version: "3" services: nginx: image: nginx:1.17
阅读全文
posted @ 2023-05-14 20:55
lightsong
阅读(173)
推荐(0)
摘要:
fastapi-keycloak-angular-sso https://github.com/fanqingsong/fastapi-keycloak-angular-sso Keycloak likes to speak SSL, so this sandbox application uses
阅读全文
posted @ 2023-05-11 00:11
lightsong
阅读(195)
推荐(0)
摘要:
dockerfile from as https://juejin.cn/s/dockerfile%20from%20as Demo https://github.com/andreaskring/fastapi-keycloak-angular 分离构建镜像和运行镜像 FROM node:curr
阅读全文
posted @ 2023-05-09 10:00
lightsong
阅读(131)
推荐(0)
摘要:
Keycloak: Requesting Token with Password Grant https://www.appsdeveloperblog.com/keycloak-requesting-token-with-password-grant/ In this tutorial, you
阅读全文
posted @ 2023-05-08 23:30
lightsong
阅读(238)
推荐(0)
摘要:
Keycloak: Authorization Code Grant Example https://www.appsdeveloperblog.com/keycloak-authorization-code-grant-example/ 适合web应用 In this tutorial, you
阅读全文
posted @ 2023-05-08 23:25
lightsong
阅读(667)
推荐(0)
摘要:
jwt https://jwt.io/ JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties. JWT.IO allows
阅读全文
posted @ 2023-05-07 23:51
lightsong
阅读(23)
推荐(0)
摘要:
How to mount a shared folder in VirtualBox https://www.pragmaticlinux.com/2021/02/how-to-mount-a-shared-folder-in-virtualbox/ Background VirtualBox co
阅读全文
posted @ 2023-05-07 21:23
lightsong
阅读(55)
推荐(0)
摘要:
#C. 加工制作模型 【问题描述】 由苏州市科学技术协会创办的公益性质的青少年科学工作室,旨在通过参与、实践、体验的过程培养青少年的动手能力及创新意识。今年的夏令营安排了一个让营员动手实践的活动项目,要求利用该工作室提供的锯床和材料在辅导老师的指导下加工制作出各种不同的模型。 活动时两名营员组成一小
阅读全文
posted @ 2023-04-20 10:05
lightsong
阅读(102)
推荐(0)
摘要:
awesome-compose https://github.com/docker/awesome-compose 对于各种类型的应用,如何使用docker-compose工具封装成可部署应用 docker社区给了封装例子, 在应用本身之外, 需要部署这开发的主要包括两部分: docker file
阅读全文
posted @ 2023-04-20 09:10
lightsong
阅读(73)
推荐(0)
摘要:
#A. 选夏令营旗手 【问题描述】 一年一度的江苏省“信息与未来”小学生夏令营活动又开始了。与每年一样,组织者又设计安排了许多有趣的活动,其中第一项依然是挑选本次夏令营的旗手!由于这是一个非常具有荣誉感的角色,所以报名参加夏令营旗手角逐的营员仍然非常多,营委会于是规定: 将N个人排成一排,编号1~N
阅读全文
posted @ 2023-04-18 22:53
lightsong
阅读(133)
推荐(0)
摘要:
D - Built? https://atcoder.jp/contests/arc076/tasks/arc076_b 思路 https://www.cnblogs.com/siuginhung/p/7751301.html https://www.geeksforgeeks.org/kruska
阅读全文
posted @ 2023-04-17 15:37
lightsong
阅读(22)
推荐(0)
摘要:
C - Cards Query Problem https://atcoder.jp/contests/abc298/tasks/abc298_c 思路 在card入box的过程中, 需要两重统计: 记录box接纳card, 记录此card被box接纳。 Code https://atcoder.j
阅读全文
posted @ 2023-04-16 16:52
lightsong
阅读(30)
推荐(0)
摘要:
B - Coloring Matrix https://atcoder.jp/contests/abc298/tasks/abc298_b 思路 判断A矩阵是否满足条件, 不符合,对A矩阵逆时针旋转, 旋转后对A矩阵继续判断, 直到满足条件,或者A矩阵复位。 Code #include <ioman
阅读全文
posted @ 2023-04-16 16:47
lightsong
阅读(41)
推荐(0)
摘要:
D - Writing a Numeral https://atcoder.jp/contests/abc298/tasks/abc298_d 思路 双端队列, 保证执行插入和删除动作的同时, 动态计算 结果。 模运算 https://www.cnblogs.com/wlw-x/p/11735614
阅读全文
posted @ 2023-04-15 23:45
lightsong
阅读(87)
推荐(0)
摘要:
D. Connected Components https://www.codeforces.com/contest/292/problem/D 思路 由于需要删除任意 连续段的 连接线, 引入前缀和 连续段的左右两边都需要, 所以引入两个前缀和。 https://blog.csdn.net/qq_
阅读全文
posted @ 2023-04-15 11:32
lightsong
阅读(32)
推荐(0)
摘要:
B. Two Sets https://codeforces.com/problemset/problem/468/B 思路 对于每个元素,计算其集合归属性, 但是要注意的是, x, a-x 如果都存在, 并不意味着他们只能出现在A集合中 特殊情况下, 也可以出现的B集合 b-x x a-x b-(
阅读全文
posted @ 2023-04-14 17:03
lightsong
阅读(26)
推荐(0)
摘要:
E - Kth Takoyaki Set https://atcoder.jp/contests/abc297/tasks/abc297_e 思路 使用优先队列,从0 开始, 对所有可能的扩展,计算累加和, 添加到队列, 每次从队列取出最小值,直到取出第k个。 Code #include <ioma
阅读全文
posted @ 2023-04-09 22:13
lightsong
阅读(84)
推荐(0)
摘要:
D - Count Subtractions https://atcoder.jp/contests/abc297/tasks/abc297_d 思路 按照题目给的逻辑会超时。 需要使用 除法来优化算法。 Code #include <iomanip> #include <bits/stdc++.h
阅读全文
posted @ 2023-04-09 22:09
lightsong
阅读(36)
推荐(0)
摘要:
E - Transition Game https://atcoder.jp/contests/abc296/tasks/abc296_e 思路 Code https://atcoder.jp/contests/abc296/submissions/40262511 #include <bits/s
阅读全文
posted @ 2023-04-03 22:11
lightsong
阅读(36)
推荐(0)
摘要:
C - Gap Existence https://atcoder.jp/contests/abc296/tasks/abc296_c 思路 非常规比对。 对于每个元素, 计算其 + x 和 -x 情况, 计算之后的值,如果也在当前列表中, 则满足要求。 Code https://atcoder.j
阅读全文
posted @ 2023-04-02 22:29
lightsong
阅读(48)
推荐(0)
摘要:
D - M<=ab https://atcoder.jp/contests/abc296/tasks/abc296_d 思路 a 和 b 的范围都是 1 到 n, a 和 b 在大小关系上是对称的, 我们只考虑 a < b 的情况, 同时 a 也可以 等于 b 所以我们考虑 a <= b 情况 又
阅读全文
posted @ 2023-04-02 22:24
lightsong
阅读(134)
推荐(0)
摘要:
D - Bank https://atcoder.jp/contests/abc294/tasks/abc294_d 思路 准备一个优先队列wait,用于所有取钱者的排队,按照ID从小到大排队; 准备一个集合called,用于存储所有已经被叫到号的取钱者; 每次teller叫号后,将叫到号的取钱者放
阅读全文
posted @ 2023-03-27 21:48
lightsong
阅读(41)
推荐(0)
摘要:
E - Geometric Progression https://atcoder.jp/contests/abc293/tasks/abc293_e 思路 根据矩阵递推式 找出转移矩阵的幂形式。 利用矩阵快速幂计算。 Code https://atcoder.jp/contests/abc293/
阅读全文
posted @ 2023-03-22 22:02
lightsong
阅读(57)
推荐(0)
摘要:
C - Merge Sequences https://atcoder.jp/contests/abc294/tasks/abc294_c 思路 归并排序思想。 Code https://atcoder.jp/contests/abc294/submissions/39930476 #include
阅读全文
posted @ 2023-03-21 22:07
lightsong
阅读(28)
推荐(0)
摘要:
D - Tying Rope https://atcoder.jp/contests/abc293/tasks/abc293_d 思路 /* one rope model: one end color -- rope number -- another end color short form: c
阅读全文
posted @ 2023-03-16 21:11
lightsong
阅读(33)
推荐(0)
摘要:
C - Make Takahashi Happy https://atcoder.jp/contests/abc293/tasks/abc293_c 思路 回溯遍历算法, dfs从1,1位置开始遍历,把所有可能分支都跑遍, 统计总的数目。 Code https://atcoder.jp/contes
阅读全文
posted @ 2023-03-13 09:30
lightsong
阅读(58)
推荐(0)
摘要:
A. Plant https://codeforces.com/contest/185/problem/A 思路 发现状态转移矩阵M 目标状态-上三角 目标状态-下三角 源状态-上三角 3 1 源状态-下三角 1 3 初始状态为向量V 初始状态-上三角 1 初始状态-下三角 0 过第一年V的转变为
阅读全文
posted @ 2023-03-13 09:20
lightsong
阅读(43)
推荐(0)
摘要:
P1551 亲戚 https://www.luogu.com.cn/problem/P1551 思路 并查集统计亲戚集合。 Code https://www.luogu.com.cn/record/104070571 #include <iomanip> #include <bits/stdc++.
阅读全文
posted @ 2023-03-08 22:27
lightsong
阅读(35)
推荐(0)
摘要:
E - Transitivity https://atcoder.jp/contests/abc292/tasks/abc292_e 思路 https://blog.csdn.net/a1845613403/article/details/129343684 记录每个点的入节点集合, 和 出节点集合
阅读全文
posted @ 2023-03-08 22:23
lightsong
阅读(35)
推荐(0)
摘要:
Sorting It All Out http://poj.org/problem?id=1094 思路 每加入一条边需要进行一次拓扑排序,如果拓扑排序发现有环,或者排序唯一那么就可以直接输出结果,如果所有的边输入完成还不是上述两种情况,那就输出不能判断。 这里的重点在于如何判断拓扑排序的唯一性 判
阅读全文
posted @ 2023-03-06 00:33
lightsong
阅读(59)
推荐(0)
摘要:
D - Redistribution https://atcoder.jp/contests/abc178/tasks/abc178_d 思路 设f[i]:表示用3~i数凑出和为i的方案数 f[i]=f[i-3]+f[i-4]+f[i-5]+…+f[i-i] https://blog.csdn.ne
阅读全文
posted @ 2023-03-05 22:35
lightsong
阅读(23)
推荐(0)
摘要:
1009. K-based Numbers https://acm.timus.ru/problem.aspx?space=1&num=1009 思路 典型dp问题 对于n位k位底的数, 求不存在连续0出现的数目。 设f(i) 为 i位,最后一位为不为0的数目 设g(i)为i位,最后一位为0的数目
阅读全文
posted @ 2023-03-05 22:30
lightsong
阅读(26)
推荐(0)
摘要:
D - Unicyclic Components https://atcoder.jp/contests/abc292/tasks/abc292_d 思路 并查集,统计连通子图, 并记录edges 数 和 vertices数。 CANKAO: https://blog.csdn.net/karry_
阅读全文
posted @ 2023-03-04 22:38
lightsong
阅读(57)
推荐(0)