solution family sets of

SpringBoot报错:Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers

springboot项目正常启动,但是在访问页面的时候报错,错误信息如下: Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.​ ......

Linux系列---【The authenticity of host 'node01 (192.168.1.200)' can't be established.】

#报错信息 我在设置免密登录的时候报了下面的错 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub" The authenticity of host 'node01 (192.16 ......
authenticity established 39 Linux host

CF(2E) Keshi in Search of AmShZ (图论,最短路,建边权值变形)

思路: 关键是操作2的性质: 随机找->找一个路径最长的点 操作1,阻止建边顾名思义, 发现和最短路很想, 从n到每一个点的权值嘛 改变权值更新方式, 边的权值为: val[i]+前面那个点是第几大的, (这里每一个出度的点都要算) ->满足题目要求 然后 这个第几大,利用出度来优化, 更新一个后就 ......
Search AmShZ Keshi CF 2E

npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues

npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the ......

解决报错Cause: java.lang.StringIndexOutOfBoundsException: String index out of range: 609

Cause: java.lang.StringIndexOutOfBoundsException: String index out of range: 609 这个原因是由于Mybatis 插入数据报错: org.mybatis.spring.MyBatisSystemException: nes ......

Unable to start the daemon process . This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used.

创建springboot项目的时候报这个错 是因为你选择了Gradle环境 但是你本地没有这个Gradle环境 选择maven环境就可以了 ......

【题解】[SDOI/SXOI2022] 小 N 的独立集(dp of dp)

题目分析: 就借助这个题稍微说一下 $dp$ 套 $dp$。 对于 $dp$ 套 $dp$ 其解决的问题是:若给定某一具体情况则答案十分好求,现要求对于所有的情况的答案进行统计。 这类问题我们一般称解决这个具体情况的 $dp$ 为内层 $dp$,而对于所有情况进行统计的 $dp$ 为外层 $dp$。 ......
题解 SDOI 2022 SXOI of

java reflection exception--can not access a member of class XXX with modifiers "private"

If you try to visit the value of an object's private field using reflection, such as Field#get or Field#set, you should call Field#setAccessible ahead... ......
quot reflection exception modifiers private

两步解决“新必应 Bing” 的 “Sorry, looks like your network settings are preventing access to this feature”

bing 突然出现提示,怎么办:Sorry, looks like your network settings are preventing access to this feature 两步解决: 1. 安装 ModHeader 扩展插件: https://chrome.google.com/we ......
preventing settings feature network access

注入了一个记录日志的接口,启动微服务工程的时候报错了:No qualifying bean of type 'com.cscecnf.common.log.SysOprLogDao'

【问题描述】 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'monitorAreaServiceImpl': Injection of resour ......

「 solution set」 春日纪行

因为是春天到来时写的题,所以就叫春日纪行啦。 但是这首歌我有点想不起来调子的说。 会省选前陆陆续续地更完的 P5284 [十二省联考 2019] 字符串问题 首先,我们考虑暴力建图。 我们考虑对所有的 $A$ 类串连向自己的 $B$ 类串。然后所有的 $B$ 类串都连向别的 $A$ 类串满足是他的前 ......
纪行 solution set

Redis 有序集合(sorted set)

Redis 有序集合(sorted set) Redis 有序集合和集合一样也是 string 类型元素的集合,且不允许重复的成员。 不同的是每个元素都会关联一个 double 类型的分数。redis 正是通过分数来为集合中的成员进行从小到大的排序。 有序集合的成员是唯一的,但分数(score)却可 ......
sorted Redis set

Memory Barrier 内存屏障 和 OUT OF ORDER EXECUTION OOOE OOE 乱序执行 幻读 脏读

问题 开发过程中,同一系统上,两个进程,使用了共享内存方式通信。为了追求性能,一个进程是生产者,一个进程是消费者;一个负责写,一个负责读,没有锁。写入完成后,再更新写的标识;读取数据并操作完成后,再更新读取标识,理论上没有问题,但是服务器上运行起来后,会读取到无意义的内容。 读取数据很大或者无效数据 ......
屏障 EXECUTION 内存 Barrier Memory

rocketmq 报错ERROR: Please set the JAVA_HOME variable in your environment, We need java(x64)! !!

以下命令全部按顺序执行 unlink /usr/bin/javacunlink /usr/bin/jarunlink /bin/java ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/bin/javac /usr ......

C#|get set

对于 C# 来说,类里面的属性有专门的 get 和 set 关键字,在给得到某个属性或者给某个属性赋值的时候提供了很多方便,但是,C# 这种机制在无形当中隐藏了一个含义,那就是 get 和 set 变成了一个函数,而用户可以自由地给这些函数添加逻辑,应用举例如下: 有两个person类: publi ......
get set

Redis 集合(Set)

Redis 集合(Set) Redis 的 Set 是 String 类型的无序集合。集合成员是唯一的,这就意味着集合中不能出现重复的数据。 集合对象的编码可以是 intset 或者 hashtable。 Redis 中集合是通过哈希表实现的,所以添加,删除,查找的复杂度都是 O(1)。 集合中最大 ......
Redis Set

mysql报错 1140 - In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'a.user_name'; this is incompatible with sql_mode=only_full_group_by

表结构如下: CREATE TABLE `user` ( `id` bigint NOT NULL, `user_name` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `create_time` datetime ......

dict和set

Python中内置了字典:dict全称dictionary,在其它语言中也称为map,使用键-值 (key-value)存储,具有极快的查找速度 。 这种key-value存储方式,在放进去的时候,必须根据key算出value的存放位置,这样,取的时候才能根据key直接拿到value。 把数据放入d ......
dict set

pytest踩坑--运行报错DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3 ,and in 3.9 it will stop working

问题现象: 使用pytest运行用例时,用例执行完毕总会提示以下警告 警告意思:弃用警告:从collections中导入ABCs已被弃用,并在python3.9中将停止工作,可使用collections.abc代替它进行使用 但我代码中并未使用这个库,也没有导入这个库。就很纳闷 解决: 百度了一下解 ......

npm i报错---Cannot read properties of null (reading ‘pickAlgorithm‘)

现象 在导入Vue项目使用 ' npm i ' 安装node_moduels的时候,终端出现错误如下: 解决 1、在终端输入: npm cache clear --force npm cache clear --force 2、重新运行 npm i 命令 npm i ......
pickAlgorithm properties reading Cannot read

ARC141D Non-divisible Set

ARC141D Non-divisible Set 这题还是比较有启发性的。 经典的偏序关系下最长反链,第一反应是转化为最小链覆盖,但是在很多以整数的整除关系为背景的题目中这个做法不是最好的。 洛谷的题意翻译中少给了一个信息:值域为 $[1,2M]$。这个条件看上去就应该和选 $M$ 个数的限制结合 ......
Non-divisible divisible 141D ARC 141

Paper Reading: Interpretable Rule Discovery Through Bilevel Optimization of Split-Rules of Nonlinear Decision Trees

对于可解释的分类器本文限制为用简单的数学术语表示,使用非线性决策树(NLDT)将分类器表示为简单数学规则的集合。树的每个非叶结节点表示一个非线性数学规则,将给定条件节点中的数据集划分为两个不重叠的子集。通过限制每个条件节点上的分裂规则结构和决策树深度,保证了分类器的可解释性。在给定条件节点上的非线性... ......

url patterns to acccess views of app in Django

问题 The difference between the following url patterns in main project of Django?from testinclude import views as subViewssub=[path("sub/",subViews.usei ......
patterns acccess Django views url

Python之禅, 作者Tim Peters(The Zen of Python, by Tim Peters)

The Zen of Python, by Tim Peters Beautiful is better than ugly. 美丽的比丑陋的好。 Explicit is better than implicit. 明确的比隐含的好。 Simple is better than complex. 简 ......
Python Peters Tim 作者 The

集合内的最小异或对(使用set)

牛客 最小异或对 求数组集合内的最小异或对 结论: 一个集合内的最小异或对,一定是排序后的两个向量相邻元素。秩序记录其相邻元素的异或值即可。 一个set存储元素值,另一个元素存储异或值。 增加元素时,删除该元素前驱和后继异或,增加上该元素和前驱后继的异或 //#include<bits/srdc++ ......
set

「 solution set」 AGC037

A 一看是橙色的,跳了。 B RGB Balls 一个显而易见的贪心是考虑加进来一个颜色,如果能正好和剩下的组成一组,那么就一定让他们组成一组。留着的话前面剩下的能造成的极差一定更大。而如果组不成一个,也尽可能让他当第二个。实在加不进去了再让他当第一个。 这样我们实时维护一下 R,G,B,RB,RG ......
solution set AGC 037

org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column 'classification' from result set. Cause: java.sql.SQLException: Invalid value for getInt()

问题:mybatis查询的时候,始终报这个错。我看了字段,应该是ClickNumber是Integer,为什么会报classification的问题。我试了几种方式,但是还是有这个问题。 包括使用resultMap来进行返回。 晚上看了很多方法,包括Druid版本啊,参数名不一致啊,lombok注解 ......

[LeetCode] 2316. Count Unreachable Pairs of Nodes in an Undirected Graph

You are given an integer n. There is an undirected graph with n nodes, numbered from 0 to n - 1. You are given a 2D integer array edges where edges[i] ......
Unreachable Undirected LeetCode Count Graph

Caused by: java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1).

一、问题背景 在xml配置中自定义了sql语句 二、报错截图如下 三、我的项目配置如下 四、分析问题 五、问题原因 在xml中自定义sql语句时,里面不能有注释过得sql 六、解决方式 https://thinkingcao.blog.csdn.net/article/details/1038159 ......