1411g no game life

NO_HZ: 降低调度时钟中断 【ChatGPT】

https://www.kernel.org/doc/html/v6.6/timers/no_hz.html 降低调度时钟中断 本文描述了 Kconfig 选项和引导参数,可以减少调度时钟中断的次数,从而提高能效并减少操作系统的抖动。减少操作系统的抖动对于某些类型的计算密集型高性能计算(HPC)应用 ......
时钟 ChatGPT NO_HZ NO HZ

测试类注入Bean失败,Could not autowire, No bean of 'XxxService' type found

Spring Boot 2.2 是第一个正式支持 JUnit 5 的版本。 因此在写测试类的时候,JUnit4和JUnit5是有一点区别的。JUnit4需要需要两个注解 @SpringBootTest @Runwith(SpringRunner.class) Junit5的测试类则只需要一个注解 @ ......
XxxService autowire Could found Bean

Vue报错:error Mixed spaces and tabs no-mixed-spaces-and-tabs

Vue报错:error Mixed spaces and tabs no-mixed-spaces-and-tabs 一、解释 在开发过程中使用了ESLint,用来规范代码风格。ESLint是语法检查工具,缺点是对所写代码要求过于严格。这里是因为空格的使用导致的。 二、报错可能出现的地方 我第一次出 ......

Confluence7.4.6突然爆事务隔离级别问题-解决方案-MySQL session isolation level 'REPEATABLE-READ' is no longer supported.

MySQL session isolation level 'REPEATABLE-READ' is no longer supported. Session isolation level must be 'READ-COMMITTED'. See http://confluence.atlass ......

Linux学习35- python3.9出现ModuleNotFoundError: No module named '_ctypes'的解决

遇到问题 pip 安装第三方库的时候报错ModuleNotFoundError: No module named '_ctypes' File "/usr/local/python3/lib/python3.9/ctypes/__init__.py", line 7, in <module> fro ......

奇偶game

证明一下边带权做法的充分性 我们考虑异或和 对一个01序列,我们做一个异或前缀和,设为\(sum_n\),那么\(a_i=sum_i\enspace xor\enspace sum_{i-1}\) 对任何时刻的没有产生矛盾的并查集森林,我们随便给每个森林的根节点赋值一个0或1,那么其他所有节点的值也 ......
奇偶 game

记录issue:iptables (legacy): Couldn't load match `comment':No such file or directory\n\nTry `

用nerdctl起容器碰到如下issue: FATA[0001] failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error d ......
directory iptables comment Couldn legacy

No.1

\(f(x)\) 定义域在 \((0,+\infty)\) ,\(f(1)=1 + e\),满足 \(x_2>x_1>0\) 时 \(x_2f(x_1)-x_1f(x_2)>x_2 e^{x_1} - x_1 e^{x_2}\),求 \(f(\ln x)>x+\ln x\) 的解集。 \[x_2(f ......
No

CF1838C No Prime Differences 题解

题意: 思路: 构造: $ n $ 行 $ m $ 列,先填奇数行,每行填 $ m $ 个,第 $ 2i - 1 $ 行依次填入 $ (i - 1) \cdot m + 1 $ , $ (i - 1) \cdot m + 2 $ , $ ... $ , $ i \cdot m - 1 $ , $ i ......
题解 Differences 1838C Prime 1838

解决pre -commit hook failed (add --no-verify)的问题

由于对 sourcetree 的 husky 预推送,Git 推送失败 解决办法: 使用 Sourcetree 的绕过提交钩子设置(在提交消息字段右上角的菜单中) ......
no-verify commit failed verify 问题

Redis报错:(error) DENIED Redis is running in protected mode because protected mode is enabled and no password is set for the default user

一、报错内容 (error) DENIED Redis is running in protected mode because protected mode is enabled and no password is set for the default user. In this mode c ......
protected Redis mode is password

ModuleNotFoundError: No module named '_pytest.resultlog'

新环境运行Python时报错 ModuleNotFoundError: No module named '_pytest.resultlog' 上网查,看到解决方法 https://www.cnblogs.com/QiKa/p/14457269.html 解决办法:①升级pytest-rerunfa ......

交叉编译提示ModuleNotFoundError: No module named 'packaging'

如果你的目标环境中的python是通过交叉编译自行生成的,可能会遇到这个提示 在你已经完成python的交叉编译后,你就需要crossenv,然后完成对应库的适配 #Make crossenv pip install crossenv python3 -m crossenv --without-pi ......

docker-compose运行的容器 curl No route to host

# 信任docker0 网卡firewall-cmd --permanent --zone=trusted --change-interface=docker0 && firewall-cmd --reload docker network inspect csrpmed_default#找出默认网 ......
docker-compose 容器 compose docker route

Linux“No space left on device”系统磁盘空间不足问题排查处理

Linux“No space left on device”系统磁盘空间不足问题排查处理 目录Linux“No space left on device”系统磁盘空间不足问题排查处理1 问题2 排查和处理2.1 第一次排查处理2.2 第二次排查处理 1 问题 今天项目测试环境自动发版失败,确认日志发 ......
磁盘 device 问题 系统 Linux

centos 8 Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist

查询后发现问题的原因是Centos8于2021年年底停止了服务,我们在使用yum源安装时候,出现下面错误“错误:Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs ......

I found no \bibdata command---while reading file main.aux

报错: I found no \bibdata command while reading file main.aux I couldn't open file name `main.aux' 使用vscode 原因是文章使用的是biblatex而不是natbib,所以要用biber而不是bibte ......
bibdata command reading found while

No valid Maven installation found

点击 Maven 的 clean 确报错:Error running 'vs-file-backend-util [clean]': No valid Maven installation found. Either set the home directory in the configurati ......
installation Maven valid found No

games101-2 透视深度插值矫正与抗锯齿分析

透视深度插值矫正与抗锯齿分析 深度插值的差错原因 透视深度插值公式推导 games101中的错误 msaa与ssaa简要定义 games101中ssaa的实现 games101中msaa的实现 深度插值的差错原因 当投影的图形与投影的平面不平行时,这时进行透视投影,从上图中可以看出,投影平面上的线段 ......
锯齿 深度 games 101

ICPC2022Hangzhou C No Bug No Game 题解

Link ICPC2022Hangzhou C No Bug No Game Question 给定 \(n\) 个物品和上限 \(k\),要求最大化分数,物品的选择顺序可以任意 第 \(i\) 个物品一行 \(p_i\) 代表个数,后面 \(p_i\) 个 \(w_j\) 代表容量,定义 \(su ......
题解 Hangzhou ICPC 2022 Game

matplotlib报错:AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'?

使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 plt.rcParams['axe ......

Games101 Asignment01

编写代码构建模型视图变换矩阵 Eigen::Matrix4f get_model_matrix(float rotation_angle) { Eigen::Matrix4f model = Eigen::Matrix4f::Identity(); // TODO: Implement this f ......
Asignment Games 101 01

ICPC2022Hangzhou D Money Game 题解

思维 Link ICPC2022Hangzhou D Money Game Question \(n\) 个人围成一圈,初始每个人有 \(a_i\) 元,每轮第 \(i\) 个人给第 \((i+1)\%N\) 个人自己一半的钱,问第 \(2022^{1024}\) 轮后每个人的钱 Solution ......
题解 Hangzhou Money ICPC 2022

A. Flipping Game

A. Flipping Game 本质上是让我们找出一段区间内\(0\)的个数大于\(1\)的个数的最多的区间,且必须进行一次操作,所以可以考虑区间\(dp\),或者最小子序列和 1 最小子序列和 \[\begin{aligned} dp_i是以a_i结尾的最小子序列和 \\ dp_i=\min(d ......
Flipping Game

Codeforces Round 912 (Div. 2) E - Geo Game

考虑什么时候会改变答案的奇偶,显然可以根据\(x \oplus y\)的奇偶性分组,在组内进行跳跃不会改变,只有当组间跳跃的时候才会改变。 打表观察先手什么时候必胜,其中:\(u\)是当前获胜目标为奇/偶(1/0),\(v\)是位于哪一组,\(a,b\)代表两组还剩多少,\(st\)代表当前答案的奇 ......
Codeforces Round Game 912 Div

No Silver Bullet

"No Silver Bullet" 是一个著名的软件工程论文,由Fred Brooks在1986年发表。这篇论文的全名是《No Silver Bullet — Essence and Accidents of Software Engineering》(没有银弹——软件工程的本质与偶然性)。这篇论 ......
Bullet Silver No

ubuntu编译软件报错:fatal error: libnet.h: No such file or directory

参考: https://blog.csdn.net/wuyou1995/article/details/104742326/ 解决方法: sudo apt-get install libnet1-dev ......
directory ubuntu libnet fatal error

axios(ajax)发送请求响应码200,但获取不到数据,无法加载响应数据: No datafound for resource with givenidentifier问题解决参考

问题截图: 没有响应数据 控制台报错 其实是由于浏览器的跨域资源共享(CORS)策略导致,前后端跨域请求是不行的。什么是域,看页面的url,比如https://www.baidu.com/下的网页都是属于baidu.com这个域。如果你是和我一样是从本地文件打开html的方式来调试ajax,那么一定 ......

mysql 启动报错【Error while setting value ‘NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES‘ to ‘sql_mode‘】解决

报错如下: 原因:mysql配置文件my.ini里的 sql_mode 配置项参数中逗号后面有空格 解决步骤: 打开my.ini文件, 找到sql_mode配置项删除空格,保存 ......

nmap: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory解决方法

nmap: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory解决方法 nmap运行报错解决方法 在centos7里面直接安装lib ......
shared file directory libraries loading