version requirement directory available

Candy Party (Hard Version) 题解

原题链接:CF1868B2, 简单版:CF1868B1。 题意 有 \(n\) 个人,第 \(i\) 个人手上最初有 \(a_{i}\) 颗糖。现在每个人可以把自己手中的糖选一些给不多于一个人,同时每个人也只能接受不多于一个人的糖,选出的糖的数量必须是二的次幂。问能否能让每个人最终手上的糖的数量相等 ......
题解 Version Candy Party Hard

Square-free division (easy version) 题解

题意:给定一个长度为 \(n\) 的序列,求最少能将这个序列分成多少段使得任意一段中不存在两个数的积为完全平方数。 一个小 Trick:如果两个数乘起来为平方数,可以先将每个数的平方因子除掉,然后这两个数必然相等。于是这道题被转化为了一个区间不能有相等的值,这就很典了。 设 \(pos_{a_{i} ......
题解 Square-free division version Square

Square-free division (hard version) 题解

题意:给定一个长度为 \(n\) 的序列,求最少能将这个序列分成多少段使得任意一段中不存在两个数的积为完全平方数。你还可以将其中 \(k(k \le 20)\) 个数修改为任意的值。 一个小 Trick:如果两个数乘起来为平方数,可以先将每个数的平方因子除掉,然后这两个数必然相等。于是可以先将每个 ......
题解 Square-free division version Square

k8s - error: 0/1 nodes are available: 1 node(s) had untolerated taint

Warning FailedScheduling 89s default-scheduler 0/1 nodes are available: 1 node(s) had untolerated taint {node.cloudprovider.kubernetes.io │ │ /uniniti ......
untolerated available error nodes taint

PyCharm中New Directory 和 New Python Package的区别

如题,这是一个很简单也很基础的问题,先看不同操作的结果有什么不同 结果1:项目下出现了一个空“文件夹” 结果2:项目下多了一个“Python Package”,该package下包含了一个“__init__.py”文件,该py文件是空的 如果把该py文件删掉后,package也就变成了directo ......
New Directory PyCharm Package Python

AWS - Required permissions for a node group role

Before you create worker nodes, you must create an IAM role with the following IAM policies: AmazonEKSWorkerNodePolicy AmazonEKS_CNI_Policy AmazonEC2C ......
permissions Required group node role

Windows2008R2 IIS配置证书 ERR_SSL_VERSION_OR_CIPHER_MISMATCH 错误解决方法

IIS Crypto 用这个工具很方便,也可以手动修改注册表 工具内置最佳实践,点击 Best Practices 再 Apply,然后重启服务器即可,设置前记得备份注册表。 参考:https://blog.csdn.net/a873744779/article/details/103635882h ......

[Codeforces] CF1744E1 Divisible Numbers (easy version)

CF1744E1 Divisible Numbers (easy version) 题意 给你四个数 \(a,b,c,d\),你需要找出一组 \(x,y\) 使得 \(a<x\leq c,b<y\leq d\) 并且 \(x\cdot y\) 能被 \(a\cdot b\) 整除,如果没有输出 -1 ......
Codeforces Divisible Numbers version 1744E

Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'endTime';

后端springboot项目使用getMapper接受,字段写了转换注解 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") 还报错Failed to co ......
39 property java type required

ICEE-Microchip-MPLAB X IDE-MCC Plugin + MCC Core + MHC(MCC Harmony Core) versions and compatibility

https://microchip.my.site.com/s/article/MPLAB-X-MCC-plugin--MCC-Core-and-MCC-Harmony-Core-versions-and-compatibility Aug 17, 2023•Knowledge rticle Num ......

CF1784C Monsters (hard version) 题解 线段树

题目链接:https://codeforces.com/problemset/problem/1784/C 题目大意: 你面前有 \(n\) 只怪兽,每只怪兽都有一个初始血量,你可以进行两类操作: 操作1:选择任意一个血量大于 \(0\) 的怪兽,并将它的血量降低 \(1\); 操作2:将所有存活的 ......
线段 题解 Monsters version 1784C

解决AttributeError: module 'setuptools._distutils' has no attribute 'version'

setuptools 版本过高,需要降级,降为59.5.0版本比较合适: pip install setuptools==59.5.0 参考:解决AttributeError: module ‘setuptools._distutils‘ has no attribute ‘version‘_set ......

hive Metastore 启动报错 Version information not found in metastore报错处理

修改 conf/hive-site.xml中的 hive.metastore.schema.verification 设置为false。 hive Metastore 启动报错 [main]: Metastore Thrift Server threw an exception... org.apa ......

vite 打包正式环境报错 require is not defined

本质原因是因为浏览器不识别commonJS的语法,需要通过插件做转换 解决方法: 方法1:项目代码中使用了require语法,使用这个插件便可以转换 npm i vite-plugin-commonjs -S // vite.config.js import requireTransform fro ......
require defined 环境 vite not

Seata 启动报错:[imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager : no available server to connect.

Seata 启动报错:[imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager : no available server to connect. 1. 问题 2. 解决【application.xml 和 file.conf 参数要相对应】 ......

several top diagnostic tools available for trucks

Heavy-duty scan tools have become essential for commercial truck fleet operators and maintenance technicians. These tools provide detailed information ......
diagnostic available several trucks tools

error: remote unpack failed: unable to create temporary object directory

记录一下。 远程git仓库的属主是ec2-user,我拉取代码用的是另一个用户。直接将远程仓库的属主改成我拉取代码的用户就ok。 之前用另一个用户也是可以正常pull、push的不知咋的,突然不行了。 ......
directory temporary create remote failed

Directory.Move方法的使用限制

今天在写一个小工具的时候,发现在移动文件夹的时候出现了下面的错误: System.IO.IOException:“Source and destination path must have identical roots. Move will not work across volumes.” 查了 ......
Directory 方法 Move

import引入pdfjs-dist报错Top-level await is not available、No "GlobalWorkerOptions.workerSrc"等

报错1: Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 2 overrides) nod ......

记一次 Zabbix agent is not available 问题解决

好久没折腾zabbix,最近遇到一个奇葩的问题,忽然有一台服务器报警 “Zabbix agent is not available (or nodata for 30m)”,但是查看监控数据都有,而且在不断的更新 开始分析问题、解决问题: 1、先检查了一遍配置,都没问题 2、检查了一遍server端 ......
available Zabbix 问题 agent not

ERROR: Could not find a version that satisfies the requirement basicsr== (from versions: none)

(py37_gan) C:\Users\Administrator>pip3 install basicsr==WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after ......

Control Groups version 1 (翻译 by chatgpt)

原文:https://www.kernel.org/doc/html/v6.6/admin-guide/cgroup-v1/index.html Control Groups Block IO Controller CPU Accounting Controller CPUSETS Device W ......
Control version chatgpt Groups by

pure-admin pnpm  ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE  Cannot perform a frozen installation because the version of the lockfile is incompatible with this version of pnpm

事情是这样的,用的开源pure-admin 的框架,用的是pnpm,本地环境都是可以的,但是发布到生成就报以下错误 然后看部署参数,是这样的,强制用了lock文件,本来也没问题 报错的意思是json 文件跟pnpm-lock.json 文件不匹配 但是本地看着是匹配的,随便挑选几个包版本看着也是一致 ......

vite5报错Uncaught ReferenceError: require is not defined的代替方案

const files = import.meta.glob('./*.js',{eager:true}) //会得到一个对象 注意引入路径里绝对不能带有变量,会报错 //{eager:true}是定义是否同步引入的参数,去掉会得到几个异步函数,根据自己的需求写就行了 console.log(fil ......

requirements.txt

参考Python 中的 requirement.txt Python 中的依赖 Python 需要维护项目相关的依赖包。通常我们会在项目的根目录下放置一个 requirements.txt 文件,用于记录所有依赖包和它的确切版本号。 requirements.txt 的内容长这样: alembic= ......
requirements txt

记录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

pip 导入导出模块 requirement.txt

前言全局说明 pip 导出模块名功能,是为了在其他环境安装方便而产生的。 不管是新环境部署,还给他人代码运行,这个都非常实用。 一、导出 pip freeze > requirement.txt 二、导入模块 pip install -r requirements.txt 三、导入模块,指定国内安装 ......
requirement 模块 pip txt

火狐:SSL_ERROR_UNSUPPORTED_VERSION,谷歌、EDGE: ERR_SSL_VERSION_OR_CIPHER_MISMATCH

一些老的系统,在登陆的时候会报如下错误 现象:火狐:SSL_ERROR_UNSUPPORTED_VERSION,谷歌、EDGE: ERR_SSL_VERSION_OR_CIPHER_MISMATCH 原因:就是老系统https使用的协议太老,不安全,新的浏览器版本不兼容 解决方法:chrome和ed ......

Caused by: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.【Springboot 连接 腾讯 redis 认证失败解决】

原文链接 : https://blog.csdn.net/De_Buffer/article/details/132492287 最终解决方法 虽然通过更换连接客户端为jedis解决了问题,但不符合发展趋势,lettuce已成为主流redis客户端,springboot2官方推荐,因此在这个保底方案 ......

pip 安装 mysqlclient报错ERROR: Could not build wheels for mysqlclient, which is required to install pyproject.toml-based projects

这是本地环境中没有安装C++的环境,安装好后再次运行报错: 国内网站上找了半天,试了又试,不能根本上解决问题,最后从国外的网站上找到的: 下载安装MariaDB C Connector,地址:Download MariaDB Connectors for data access & analysis ......