dependent requiring packages versions

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

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

archlinux开机出现错误Dependency failed for /home. Dependency failed for Local File System Time outwaiting for device /dev/disk/...

错误如下 Dependency failed for /home. Dependency failed for Local File System Time outwaiting for device /dev/disk/... 应该是文件系统表不正确了,导致访问文件系统失败。 使用救援盘挂载分区 ......
Dependency failed for outwaiting archlinux

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

Docker Compose: depends_on

depends_on depends_on expresses startup and shutdown dependencies between services. Short syntax The short syntax variant only specifies service names ......
depends_on Compose depends Docker on

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

Python 如何修改并存储 json文件内容 - json package 使用

直接上代码:import jsondef json_load(json_file): with open(json_file, 'r') as fh: content = json.load(fh) return content fh.close()def json_save(json_file, ......
json package 文件 内容 Python

【异常】File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!

From: https://www.cnblogs.com/duanxianyouyang/p/14679926.html File encoding has not been set, using platform encoding UTF-8, i.e. build is platform de ......
encoding platform dependent build using

dgl AttributeError: Can't get attribute 'DGLGraph' on <module 'dgl.heterograph' from '/home/user/anaconda3/envs/mymodel/lib/python3.7/site-packages/dgl/heterograph.py'>

由于服务器重装了系统,因此cuda版本和ubuntu系统版本也换了,不得不重装系统,导致以前可以正常运行的代码出了各种故障(注:现在的ubuntu版本是18.04,cuda版本是11.3) AttributeError: Can't get attribute 'DGLGraph' on <modu ......

React Native package.json 控制App的版本号

原文:https://blog.csdn.net/gu1920948999/article/details/117984844 package.json "version": "1.0.0", android配置 android/app/build.gradle import groovy.json ......
package 版本 Native React json

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 ......

Dependency injection framework -- Decoupled packages example (multiple containers) -- ADD DIP IMPROVEMENT

Dependency injection framework https://python-dependency-injector.ets-labs.org/index.html Dependency Injector is a dependency injection framework for ......

真机调试 Flutter 报错:Lookup failed: title in @getters in MyHomePage in package:flutter_demo02/main.dart

发生缘由 学习 Flutter 更改 lib 目录下面的 main.dart 文件之后真机调试运行 flutter run 报错: 1 # 小组件库异常 2 ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞══════════════════════════════ ......
flutter_demo MyHomePage in Flutter getters

requirements.txt

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

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官方推荐,因此在这个保底方案 ......

Combined Annotation-Dependent Depletion (CADD)

The resulting CADD scores are expressed as a measure of deleteriousness (selection pressure bias) for single‐nucleotide variants (SNVs) and small inde ......