exception the occurred updating
org.springframework.data.redis.RedisSystemException: Redis exception; nested exception is io.lettuce.core.RedisException: java.io.IOException: Connection reset by peer
springBoot + redis. 程序隔一段时间会莫名其妙的报Redis的错误. 报错如下: org.springframework.data.redis.RedisSystemException: Redis exception; nested exception is io.lettuce ......
The user specified as a definer (‘skip-grants user‘@‘skip-grants host‘) does not exist
该问题是由于导出数据库或备份数据库引起的函数所有者发生变化 解决办法 复制源函数创建语句 删除DEFINER 重新创建 ......
VMware Workstation 不可恢复错误: (vcpu-1) Exception 0xc0000005 (access violation) has occurred 原因探究与排错
VMware虚拟机一段时间不打开就又出现了一些小毛病,报错如下: VMware Workstation 不可恢复错误: (vcpu-1) Exception 0xc0000005 (access violation) has occurred 经过一番折腾,主要总结了一下几个排查点及修复措施: 原因 ......
使用SQL中的update更新多个字段值
使用SQL中的update更新多个字段值,set后面的条件要用逗号不能用and set后面的多个条件之间没有关联也不可以有关联,所以就不能用and了;where 条件后面 可以为and 如: update table set sex= '男', name='张三' where id = 1 ; 正确 ......
ubuntu 20 permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/con ......
Nutika 打包 docx 库 出现 docx.opc.exceptions.PackageNotFoundError: Package not found at 问题
docx.opc.exceptions.PackageNotFoundError: Package not found at # 重现 用以下命令打包exe: ```bash nuitka --standalone --show-memory --show-progress --nofollow-i ......
The first attempt of a MnZn
Prove: If $a > 0$,then $\forall x\in \mathbb R, a(\mathrm e^x+a)-x> 2\ln a+\dfrac32$ Proof: Let $f(x) = a(\mathrm e^x+a)-x$, then $f'(x) = a\mathrm e^ ......
Backtrader - Sell/Buy signal labels are missing in the plotting
1.0 Missing Sell/Buy signal labels 2.0 Solution cerebro = bt.Cerebro(stdstats=True, cheat_on_open=True) stdstats=True,用回預設的stdstats就能顯示Sell/Buy signal ......
Backtrader - numpy.core._exceptions.MemoryError: Unable to allocate 77.2 GiB for an array with shape (10368000003,) and data type float64
1.0 Error numpy.core._exceptions.MemoryError: Unable to allocate 77.2 GiB for an array with shape (10368000003,) and data type float64 錯誤提示 2.0 原因 沒有任 ......
解决使用yarn安装依赖出现“The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0". Got "17.9.0"”的问题
# 1、问题描述 某天在使用`yarn`安装依赖的时候,突然出现如下错误导致安装依赖终止: **The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0 ......
Vue2项目开发时遇到:<template v-for> key should be placed on the <template> tag
问题缘由: Vue2和Vue3中,对待template中存在v-for行为的组件正好相反 Vue2中key必须写在子元素中,Vue3中key必须写在template中,不然会报错 使用volar插件,使用Vue3语法检测代码,导致错误 解决方案: 1、禁用volar 2、貌似可以修改配置项,但尚未尝 ......
上传文件异常:The temporary upload location [/tmp/tomcat.xxxxxxx/work/Tomcat/localhost/ROOT] is not valid
一个长久没更新过的spring boot项目突然间文件上传错误,异常信息如下,此原因主要问题是tomcat默认的临时目录没了,项目运行的服务器每隔一段时间会清除 /tmp 临时目录,项目每次启动都会创建临时目录,经常重启的项目不会有此问题。 解决方案: 1. 重启项目,每隔一段时间重启,可以跟 /t ......
Codeforces 1801D The way home
看到 `shortest paths` 来做的。 首先有一个贪心的策略,对于当前点 $u$ 若不能直接往后走则肯定是选择经过的点中 $w_i$ 最大的加。 很好理解,证明就不需要了。 所以可以定义状态 $f_{u, mx}$ 为 $u$ 点最大能加的值为 $h_{mx}$ 的最优状态,$h$ 是 $ ......
Codeforces 1588F - Jumping Through the Array
显然无法用 polylog 的数据结构维护,序列分块也不行,考虑询问分块。每 $B$ 个询问处理一次。 将这个询问中 $2,3$ 操作涉及到的点设为“关键点”,那么容易发现,环上每一段以关键点结尾的链在这块操作的过程中始终保持不变,也就是说我们可以把它们缩在一起。 先预处理出每个块的增量对每组询问的 ......
mysql数据库的锁-select for update
# 乐观锁与悲观锁 乐观锁和悲观锁只是两个加锁的思路,其实现方式多种多样。以下举几个在mysql数据库中的例子。 对于一次的数据修改,我们可以大概将其分为三步: 1. 获取数据 2. 修改数据 3. 提交修改 ## 乐观锁 假设A、B两个角色对数据进行修改: - 乐观锁对数据保持一个乐观态度(大概率 ......
Could not roll back JDBC transaction; nested exception is dm.jdbc.driver.DMException: 连接尚未建立或已经关闭
Could not roll back JDBC transaction; nested exception is dm.jdbc.driver.DMException: 连接尚未建立或已经关闭 Could not roll back JDBC transaction; nested excepti ......
Postgresql,MySQL, SQL Server 的多表连接(join)update 操作
数据库更新时经常会 join 其他表做判断更新,PostgreSQL 的写法与其他关系型数据库更有不同,下面以 SQL Server, MySQL,PostgreSQL 的数据库做对比和展示。 先造数据源。 create table A(id int, city varchar(20)); crea ......
Elasticsearch专题精讲—— REST APIs —— Document APIs —— Update By Query API
REST APIs —— Document APIs —— Update By Query API https://www.elastic.co/guide/en/elasticsearch/reference/8.8/docs-update-by-query.html#docs-update-by ......
Elasticsearch专题精讲—— REST APIs —— Document APIs —— Update API
REST APIs —— Document APIs —— Update API https://www.elastic.co/guide/en/elasticsearch/reference/8.8/docs-update.html Updates a document using the spe ......
HTTP Basic Authentication>> 401>> Using the browser’s native login prompt
https://docs.oracle.com/cd/E27515_01/common/tutorials/authn_http_basic.html http://blog.stevensanderson.com/2008/08/25/using-the-browsers-native-login ......
The Epsilon-Delta Definition of a Limit
by courtesy of the author: [APEX Calculus I/II/III ](http://www.apexcalculus.com/about) University of North Dakota Adapted from APEX Calculus by Grego ......
Mybatis——Spring事务实现 select for update
Mybatis——Spring事务实现 https://www.cnblogs.com/wqff-biubiu/p/12546674.html select for update不交由spring事务管理的正确姿势 https://blog.csdn.net/shuangyueliao/articl ......
【HarmonyOS】关于 Caused by java.lang.IllegalStateException The specified...
【问题描述】 线上收到大量手机的崩溃异常,以华为手机为主,崩溃如下 1.Caused by: java.lang.IllegalStateException: The specified message queue synchronization barrier token has not been ......
P2973 [USACO10HOL] Driving Out the Piggies G 臭气弹
[题目链接](https://www.luogu.com.cn/problem/P2973 "题目链接") 题目: 奶牛们建立了一个随机化的臭气炸弹来驱逐猪猡。猪猡的文明包含1到N (2 using namespace std; const int maxn=350; const int eps=1 ......
Error系列-unexpected error occurred self signed certificate in certificate chain
## 执行yarn install 或者 其他命令遇到这个报错: error An unexpected error occurred: "https://XXX/XXX self signed certificate in certificate chain". ``` XXX cloud-ser ......
cpp test write content speed to ssd and usual disk respectively 1M,10M,100M rows data,the fact has illustrated the write speed of ssd is 4-5 times faster than usual disk
#include <chrono> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <thread> #include <uuid/uuid. ......
@Update执行多条更新语句
GPT告诉我是这样写的,结果语法错误,我在每个语句中加上分号,依然语法错误 @Update({ "UPDATE table1 SET column1 = #{value1} WHERE id = #{id};", "UPDATE table2 SET column2 = #{value2} WHER ......
git add 时报错 warning: in the working copy of 'package-lock.json', LF will...
来源:https://blog.csdn.net/qq_43842093/article/details/128471953 问题: 执行 git add . 时报错: 原因: 换行符的问题, Windows下换行符和Unix下的换行符不一样,git会自动转换。 解决办法: 执行如下命令: git ......