solution p9194 the of

gerrit 反向代理从 apache 换成 nginx 之后项目页报错“The page you requested was not found, or you do not have permission to view this page”

每次配置 gerrit 需要用反向代理来实现auth_basic_user_file,以前用apache 进行配置,但不喜欢 apache 要换成 nginx,结果换成 nginx 之后,登录后打开project页报错“The page you requested was not found, or ......
page permission not you requested

Multi Fabrics/Admin - How to add the second controller to end device.

Hardware Required • Raspberry Pi 4• 2 x Silabs Thunderboard Sense 2 (TBS2 -- BRD4166A)• A Ubuntu Linux development environment or a Virtual Machine us ......
controller Fabrics second device Multi

kettle从入门到精通 第二十三课 kettle carte 错误(java.lang.OutOfMemoryError: GC overhead limit exceeded,Could not emit buffer due to lack of requests,java heap space)分析

1、Could not emit buffer due to lack of requests(无法发出缓冲区,因为请求不足。) 原因有两点:1)消费者处理数据能力较弱,如表输出步骤。2)消费者没有处理数据,如传递的数据中有字段type=1的数据,这种情况没有处理。 解放方案:针对 1)采用多线程处 ......

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 103 Current browser version is 106.0.5239.0

pyhon 调selenium报: selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chro ......

The 2022 ICPC Asia Hangzhou Regional Contest

A. Modulo Ruins the Legend 首先题目要求的是$(\sum (a_i + s + i \times d))% m $的最小值 等价于求\((\sum a_i + n\times s + \frac{n(n+1)}{2} \times d) \%m\)的最小值 令\(sum = ......
Hangzhou Regional Contest 2022 ICPC

Mysql定时备份 Using a password on the command line interface can be insecure

最近运维过程中需要备份Mysql数据库,网上找bat脚本执行发现提示不能直接在脚本里放密码,Using a password on the command line interface can be insecure,应该是高级的mysql数据库的安全策略。 首先建一个bat文件 --default ......
备份 interface password insecure command

C. Removal of Unattractive Pairs

原题链接 不知道这个思想叫什么,应该叫结果思想 导论 如果存在一个最长的字符串,我又没有可能把他消掉? 答案是,只要其他字符的长度大于等于最长字符串的长度,就一定能把他消掉。 所以我们不考虑字符串是怎么消除的,直接看结果。 原因解释如下 1.该最长字符串一定和其他字符相连,则消除操作显然。 2.如果 ......
Unattractive Removal Pairs of

神经网络入门篇:深度学习和大脑的关联性(What does this have to do with the brain?)

深度学习和大脑的关联性 开始讲故事(手动狗头) 深度学习和大脑有什么关联性吗? 关联不大。 那么为什么会说深度学习和大脑相关呢? 当你在实现一个神经网络的时候,那些公式是你在做的东西,你会做前向传播、反向传播、梯度下降法,其实很难表述这些公式具体做了什么,深度学习像大脑这样的类比其实是过度简化了我们 ......
关联性 神经网络 深度 大脑 神经

delphi 提示 Access violation at address 014CA924 in module 'EBD.exe'. Read of address 0D1A0000排查

通过类似 Access violation at address 014CA924 in module 'EBD.exe'. Read of address 0D1A0000 提示查看代码出错的行。 1、开启map project -> options -> Linker -> Map file 选 ......
address violation 0D1A0000 delphi Access

[LeetCode] 1688. Count of Matches in Tournament

You are given an integer n, the number of teams in a tournament that has strange rules: If the current number of teams is even, each team gets paired ......
Tournament LeetCode Matches Count 1688

The IDE is running low on memory

WebStorm 内存不足 提示:The IDE is running low on memory and this might affect performance. Please consider increasing the heap size. 翻译:IDE 内存不足,这可能会影响性能。请考 ......
running memory The IDE low

CF1824B1 LuoTianyi and the Floating Islands (Easy Version) 题解

题意: 思路: 由于 $ k ∈ [1,3] $ ,分类讨论: 当 $ k = 1 $ 时,有人结点自身即为好结点,每种情况的期望为 $ \frac{1}{n} $ , $ n $ 种情况的期望和为 $ 1 $ 。最终答案即为 $ 1 $ 。 当 $ k = 2 $ 时,$ 2 $ 个有人结点之间的 ......
题解 LuoTianyi Floating Islands Version

Installing the NVIDIA Container Toolkit 容器配置GPU

网上的帖子都比较旧了,这是最新官方地址: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html 注意:除了安装,还有配置,不是说安装上就完事 都弄好之后,就可以docke ......
容器 Installing Container Toolkit NVIDIA

Go - two bcrypt hashes of the same password are NOT equal

package main import ( "fmt" "golang.org/x/crypto/bcrypt" ) func main() { password := "abcdef" hashedPassword1, _ := bcrypt.GenerateFromPassword([]byte ......
password bcrypt hashes equal same

Solution Set #2

本来是周末更,但是去了 CTT,源码在学校电脑里,于是鸽了两天。 9 AGC062D Walk Around Neighborhood 不会判无解,什么水平。 把 \(D_i\) 排序,容易发现如果 \(D_n>\sum_{i<n}D_i\) 的话那么一定无解。否则,前面的数能走到的所有点到原点的曼 ......
Solution Set

Solution Set 2023.12.5

[AHOI2009] 最小割 首先考虑如何处理可行边,对于边 \(\left(u, v\right)\),其为可行边与同时满足下列两个条件互为充要条件: \(c_f(u, v) = 0\) 在 \(G_f\) 中不存在路径 \(u \rightarrow v\) 首先可以发现若存在 \(G_f\) ......
Solution 2023 Set 12

uva101The Blocks Problem

原题链接The Blocks Problem - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 一道模拟题。(水题) 但模拟过程很有意思,怎么样才能用最短的代码完成所有操作,使代码更简洁是很考验技术的。 #include<bits/stdc++.h> using namespace ......
Problem Blocks uva 101 The

TypeError: Cannot read properties of undefined (reading 'tapPromise')

TypeError: Cannot read properties of undefined (reading 'tapPromise') 这个是当前的webpack版本不合适 尝试给devDependencies添加一个特定的webpack版本然后执行安装在启动就好了 devDependencie ......

uva12096集合栈计算机 The SetStack Computer

洛谷链接集合栈计算机 The SetStack Computer - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 一道典型的以栈为背景的数据结构题。题目简单但是程序却并不简单(个人观点)。普及组的难度有点低了感觉。 个人认为这道题目可以帮助自己熟悉或者说更好的掌握STL的使用以及妙 ......
SetStack Computer 计算机 12096 uva

ansible 报错 "changed": false, "msg": "Failed to connect to the host

报错: "changed": false, "msg": "Failed to connect to the host via ssh: root@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)." ......
quot ansible changed connect Failed

The 2023 ICPC Asia Hong Kong Regional Programming Contest (AEFHKL)

在考试周打比赛就像在刀尖上跳舞,在赌桌上下筹码 我只希望专业课它别挂 不然搞钱吃饭就麻烦了 A.TreeScript 学弟写的,阅读理解题,读对了就是简单树dp #include<bits/stdc++.h> using namespace std; const int N=2e5; int n,f ......
Programming Regional Contest AEFHKL 2023

B - Buy One Carton of Milk

B - Buy One Carton of Milk https://atcoder.jp/contests/abc331/tasks/abc331_b 思路 dfs递归搜索, 按照依此按照三种策略: 6个一打 - cost S 8个一打 - cost M 12个一打 - cost L 递归到叶子节 ......
Carton Milk Buy One of

C - Sum of Numbers Greater Than Me

C - Sum of Numbers Greater Than Me https://atcoder.jp/contests/abc331/tasks/abc331_c 思路 由于 值 可以是重复的, 需要记录每出现的值 对应的位置 , 记录在 map<int, vector<int>> valpo ......
Numbers Greater Than Sum Me

The 13th Shandong ICPC Provincial Collegiate Programming Contest

A. Orders 按照订单的结束时间排序,然后遍历一遍即可 #include<bits/stdc++.h> using namespace std; #define int long long using pii = pair<int, int>; using i32 = int32_t; voi ......

Theory Of Computation

LN1 Alphabets and Strings An alphabet is a set of symbols String: a sequence of symbols from some alphabet Language: a set of strings Unary numbers al ......
Computation Theory Of

关于list index out of range的问题(未写完)

在编写李巍老师讲解的python的示例程序时,遇到了list index out of range的问题 其问题为 试图访问列表中不存在的索引 在循环中使用无效索引 使用 range() 函数时指定超出列表中索引的范围 def main(): baseurl = 'https://movie.dou ......
问题 index range list out

Solution Set 2023.12.4

来衡实了,感觉良好。 [NOIP2023] 三值逻辑 一直以为是写假了,结果是写挂了,没有判自环的同时 \(u, v\) 输入反了。 考虑对于每个变量的每个版本均开一个节点,那么赋值关系可以用有向边表示,可以发现最终得到的一定是若干外向基环树和若干外向树组成的图。且被 \(\tt{T,F,U}\) ......
Solution 2023 Set 12

2023ICCV_Feature Modulation Transformer: Cross-Refinement of Global Representation via High-Frequency Prior for Image Super-Resolution

一. Motivation 1. transformer的工作主要集中在设计transformer块以获得全局信息,而忽略了合并高频先验的潜力 2. 关于频率对性能的影响的详细分析有限(Additionally, there is limited detailed analysis of the i ......

关于函数宏offset_of 和 container_of的学习

#define offset_of(type, member) ((unsigned int)&((type*)0)->member) #define container_of(ptr, type, member) ((type *)((char *)(ptr) - offset_of(type, ......