bricks wall add the

The database operation was expected to affect 1 row(s), but actually affected 0 row(s); 解决乐观并发

# [The database operation was expected to affect 1 row(s), but actually affected 0 row(s); 解决乐观并发](https://www.raokun.top/archives/thedatabaseoperatio ......
operation row database actually affected

7月6日 Add bricks in the wall

# Add bricks in the wall ``` C++ #include #include using namespace std; int main() { int n = 0; // 测试用例数量 int t = 9; // 行数 cin >> n; while (n--) { int ......
bricks wall Add the in

[React Typescript] Updating the Global Namespace for an Additional Attribute

I want to add a common attribute to dom element globally: <> <div testId="123" /> <audio testId="123" /> <video testId="123" /> <a testId="123" /> <ab ......

mysql导入sql文件“Index column size too large. The maximum column size is 767 bytes.”

问题分析 由于 MySQL 的 InnoDB 引擎表索引字段长度的限制为 767 字节,因此对于多字节字符集的大字段或者多字段组合,创建索引时会出现该问题。 说明 注:以 utf8mb4 字符集字符串类型字段为例。utf8mb4 是 4 字节字符集,默认支持的索引字段最大长度是 191 字符(767 ......
column size maximum 文件 mysql

IDEA修改SpringBoot多模块项目设置提示“Module A must not contain source root B. The root already belongs to module B”的解决办法

“Module A must not contain source root B/java/src/. The root already belongs to module B”的解决办法 ......
root SpringBoot 模块 contain already

CF776D The Door Problem

## 思路 我们已经得知每盏灯的初始状态和哪两个开关控制它。 首先分类讨论: 如果最开始这盏灯是开着的,那么这两个开关应该做出同样的操作,即要么全按,要么全不按。 如果最开始这盏灯是关着的,那么这两个开关应该做出不同的操作,即一个按一个不按。 转化一个思路,就变成了有 $m$ 个数,其中有 $n$ ......
Problem 776D Door 776 The

P9574 「TAOI-2」Break Through the Barrier

## 思路 首先我们可以肯定的是,无论如何变化,答案最多比原序列的连续 $T$ 的个数多 $2$。 理由很简单,对于 $...BT...TB...$,最好的可能就是前后两个 $B$ 可以变成 $T$,因为只可能是 $BTTB$ 变成 $TBBT$,所以变了以后再外面就一定是 $B$ 了,且无法再变。 ......
Barrier Through P9574 Break 9574

Oracle script to check the database growth

1、Oracle script to check the database growth SET LINESIZE 200 SET PAGESIZE 200 COL "Database Size" FORMAT a13 COL "Used Space" FORMAT a11 COL "Used in ......
database Oracle script growth check

allowedOrigins cannot contain the special value "*"

Spring Boot的版本高于 2.4以后 ,原来的配置已经不适合目前的版本 将代码中的`allowedOrigins`改为`allowedOriginPatterns` ```java @Configuration public class WebConfig implements WebMvc ......
quot allowedOrigins contain special cannot

The 2022 ICPC Asia Regionals Online Contest (I)CDH

# **The 2022 ICPC Asia Regionals Online Contest (I)** ## **C Delete the Tree** 题意:想要删掉一棵树,你可以做以下两种操作: 1. 删除:删除一个点以及和它连的边 2. 收缩:选择一个点$x$它直接连有$2$个点$u,v$ ......
Regionals Contest Online 2022 ICPC

The 2022 ICPC Asia Regionals Online Contest (II)ABEFJ

# The 2022 ICPC Asia Regionals Online Contest (II) ## **A Yet Another Remainder** **题意:**给你一个正整数$x$,但是这个数被隐藏起来了。你问了电脑$min(100,n)$个问题,第$i$轮,的第$j$个问题:$O ......
Regionals Contest Online ABEFJ 2022

本地nacos启动报错: Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better!

编辑startup.cmd文件 将模式从cluster改为standalone 插入一行指定你的JAVA_HOME路径set JAVA_HOME="C:\dev_files\jdk17" 然后启动nacos即可~ ......
environment JAVA_HOME variable Please better

Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range

在使用浏览器内置API btoa() 编码base64时: 报错Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range 报错信息解释: ......
39 characters contains execute encoded

The 2023 ICPC China Shaanxi Provincial Programming Contest

链接:[https://qoj.ac/contest/1290](https://qoj.ac/contest/1290) ## A 表达式板子。 $O(|s|)$。 ```cpp #include "bits/stdc++.h" using namespace std; using i64 = l ......
Programming Provincial Contest Shaanxi China

CCPC 2023 网络赛 J. Find the gap 另(不可行)解

### 题面 $n$ 个三维点 $(x_i,y_i,z_i)$,求两个距离最近的平行平面夹住所有点。输出距离。精度 $10^{-9}$。 $1\le n\le 50, 1\le x_i,y_i,z_i\le 10^4$。 ### 原题可行解 两种 case: - 答案平面平行于一个三点定平面; - ......
网络 CCPC 2023 Find the

Google classic interview questions, throwing eggs the least number of times All In One

Google classic interview questions, throwing eggs the least number of times All In One 谷歌经典面试题, 扔鸡蛋最少次数 你在一栋 100 层的大楼里工作,你得到 2 个相同的鸡蛋。 你需要计算出鸡蛋可以掉落到最高... ......
interview questions throwing classic Google

「TAOI-2」Break Through the Barrier 题解

前言:比赛前去做牙齿矫正,回来晚了 10 分钟……做比赛的运气全用在了一路绿灯上了(无语)。第二题切了两个半小时。决定写篇题解来抒发一下再记得~~愤怒~~愉悦之情。 AC 的想法很简单,就是表示出每一串连续的 $\texttt{T}$,其长度分别为 $l_1 \lim l_m$。明显的,对于任何一个 ......
题解 Barrier Through Break TAOI

Number of Beautiful Integers in the Range

Number of Beautiful Integers in the Range You are given positive integers low, high, and k. A number is beautiful if it meets both of the following co ......
Beautiful Integers Number Range the

a build cache key that uniquely defines the task’s outputs based on its inputs

Build Cache https://docs.gradle.org/current/userguide/build_cache.html The Gradle build cache is a cache mechanism that aims to save time by reusing o ......
uniquely defines outputs inputs build

Gym103687D The Profiteer:回滚莫队信息双指针可以做到线性对数

## 标题写得好 所谓的回滚莫队信息意思是,设信息保存在两个大小分别为 $a, b$ 的结构上,将这两个信息进行合并得到大小为 $a + b$ 的信息需要的时间为 $\Omega(\min\{a, b\}\cdot f(n))$;而给定一个大小为 $1$ 的信息,可以在 $\mathrm O(f(n ......
对数 线性 指针 Profiteer 103687D

k8s推送代码至gitlab报错error: RPC failed; result=22, HTTP code = 413 fatal: The remote end hung up unexpectedly

``` # git push -u origin main Username for 'http://gitlab.wjl.net': root Password for 'http://root@gitlab.wjl.net': Counting objects: 1032, done. Delt ......
unexpectedly 代码 gitlab failed result

20230818 CHAPTER 6 Functions and the Stack 函数和栈

x31 arm SP寄存器 16byte对齐 调用函数,必须保存当前位置以便函数调用完成后返回,the link register (LR) which is X30, branch with link (BL) bl 与b 类似,不同的是 bl 在跳转前把下一条指令的地址保存在LR寄存器中,这样b ......
函数 Functions 20230818 CHAPTER Stack

20230818 CHAPTER 5 Thanks for the Memories arm64汇编内存使用

.data 段的内存引用实例 十进制数不要以0开头,否则会被认为是8进制数 一个数前面可以加-负号或者~取反符号; 申请一个内存块; 重复! 转义字符! 内存对齐 The offset from the PC has 19 bits in the instruction, which gives a ......
20230818 Memories 内存 CHAPTER Thanks

The 2022 ICPC Asia Regionals Online Contest (II) EJFB

# [The 2022 ICPC Asia Regionals Online Contest (II)](https://pintia.cn/market/item/1571156622976593920) ## E An Interesting Sequence 232323232323 3232 ......
Regionals Contest Online 2022 ICPC

容器化部署nacos 1.4.6报错caused: The specified key byte array is 0 bits which is not secure enough for any JWT

### nacos2.0+ 与nacos 1.x区别 nacos在2.0+版本开始使用grpc与客户端通信,并且通过非8848端口通信 主要是有两个端口 | 端口 | 与主端口的偏移量 | 描述 | | | | | | 9848 | 1000 | 客户端gRPC请求服务端端口,用于客户端向服务端发起 ......
容器 specified caused enough secure

解决小程序报错 getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json

一、unipp项目 打开uniapp项目的配置文件manifest.json,选择“源码视图”。 /* 小程序特有相关 */ "mp-weixin": { "appid": "你的开发者id", "setting": { "urlCheck": true, "es6": true, "postcss ......

带你读论文丨S&P21 Survivalism: Living-Off-The-Land 经典离地攻击

这篇文章属于系统分析类的文章,通过详细的实验分析了离地攻击(Living-Off-The-Land)的威胁性和流行度,包括APT攻击中的利用及示例代码论证。 ......

UVA10684 The jackpot 题解

[题目链接](https://www.luogu.com.cn/problem/UVA10684) ## 思路 一道简单模拟题。 用循环模拟每次的处理。对于每次输入的数 $N$,先判断 $N$ 的值,如果为 $0$,直接结束程序,避免死循环。否则就依次输入每次赢或输的钱数,再进行集中判断,获取连胜获 ......
题解 jackpot 10684 UVA The

UVA10678 The Grazing Cow 题解

[题目链接](https://www.luogu.com.cn/problem/UVA10678) ## 思路 一道简单模拟题。 经过模拟,我们不难发现,牛的活动轨迹是一个椭圆。根据椭圆形面积公式得到 $S = \pi a b$。其中,牛可以到的最左边或最右边时 $a = \frac{l}{2}$, ......
题解 Grazing 10678 UVA The