monocarp and set 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 ......
CodeForces1741G-Kirill and Company题解
# $\large\text{CodeForces1741G-Kirill and Company题解}$ ## [题面传送门(有翻译(由黄巨佬提供))](Https://Vjudge.Net/Problem/Codeforces-1741g#Author=Huangqixuan) ## 思路 ## ......
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 ......
1.变量and输入输出
## 一、变量 概念:变量的本质是一个装东西的盒子,只能存放一个值,且区分大小写。 ### 1.变量命名规则 变量的名字由:字母、数字、下划线 组成,并且不能以数子开头 ```python _a=5 a_1=6 ``` ### 2.变量的定义 格式:变量名 = 值 = 赋值符号,== 等于 ```p ......
[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 ......
[论文理解] HACK: Learning a Parametric Head and Neck Model for High-fidelity Animation
# HACK: Learning a Parametric Head and Neck Model for High-fidelity Animation 上科大发布的头和脖子精细建模的参数化模型HACK。 ## 纹理转化 由于HACK没有开源纹理基,我将FLAME开源的纹理基迁移到了HACK上,代 ......
elasticsearch创建索引带mappings和settings
## 一、通过kabana控制台创建 我们在kabana控制台创建一个record_feature_tag的索引,对应的mapping配置如下 ```js PUT /record_feature_tag { "mappings": { "properties" : { "_class" : { "t ......
[LeetCode][121]best-time-to-buy-and-sell-stock
# Content You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a s ......
Custom ASAN_OPTIONS set without abort_on_error=1
background: when i want to run AFL . I met this issue. and either set export ASAN_OPTIONS=abort_on_error=0 nor export ASAN_OPTIONS=abort_on_error=1 do ......
MAUI 本地数据sqlite 报错 : Cannot update Settings: it has no PK
原因是没有设置主键,需要标记主键 [PrimaryKey] public class Settings { [PrimaryKey] public string Key { get; set; } public string Value { get; set; } } ......
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”的解决办法 ......
unordered_set 的初始化方法
unordered_set是一个哈希表的实现,因此初始化其实就是给它分配一定的空间,并且指定哈希表中每个元素的存储方式。 unordered_set的初始化方式有以下几种: 无参构造函数 std::unordered_set<int> mySet; 默认情况下,unordered_set会分配一定的 ......
2023-08-22 SAS数据集与Excel文件之间的批量转换 Batch File Exchange between SAS and Excel
参考资料:[Batch File Exchange between SAS and Excel - the Magic of Call Execute](https://support.sas.com/resources/papers/proceedings19/3114-2019.pdf) 我们经 ......
CF776D The Door Problem
## 思路 我们已经得知每盏灯的初始状态和哪两个开关控制它。 首先分类讨论: 如果最开始这盏灯是开着的,那么这两个开关应该做出同样的操作,即要么全按,要么全不按。 如果最开始这盏灯是关着的,那么这两个开关应该做出不同的操作,即一个按一个不按。 转化一个思路,就变成了有 $m$ 个数,其中有 $n$ ......
P9574 「TAOI-2」Break Through the Barrier
## 思路 首先我们可以肯定的是,无论如何变化,答案最多比原序列的连续 $T$ 的个数多 $2$。 理由很简单,对于 $...BT...TB...$,最好的可能就是前后两个 $B$ 可以变成 $T$,因为只可能是 $BTTB$ 变成 $TBBT$,所以变了以后再外面就一定是 $B$ 了,且无法再变。 ......
P9559 [SDCPC2023] D-Fast and Fat
## 思路 直接做比较难,考虑二分答案,所以我们需要想出一种时间复杂度还行的方法检查答案是否合格。 假设目前二分的答案是 $x$,那么速度低于 $x$ 必然需要别人背。 那么,自然而然地想到将所有人分成两部分,那么速度低于 $x$ 中的所有人应当优先满足较重的,如果优先满足较轻的,就可能导致较重的无 ......
CF1485C Floor and Mod 题解
## 题面 给定 $x, y$,求 $$\sum\limits_{a = 1}^{x} \sum\limits_{b = 1}^{y} \left[\left\lfloor\dfrac{a}{b}\right\rfloor = a \bmod b\right]$$ ($1 \le x, y \le ......
Mixture-of-Domain-Adapters: Decoupling and Injecting Domain Knowledge to Pre-trained Language Mod...
### 1. Abstract 经过预训练的语言模型(PLM)表现出在通用领域理解文本的出色能力,同时在特定领域中表现不佳。**尽管在大型领域特定语料库上继续预训练是有效的,但调整领域上的所有参数是昂贵的**。在本文中,我们研究了是否可以通过只调整几个参数来有效地调整PLM。具体来说,我们将Tran ......
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 ......
allowedOrigins cannot contain the special value "*"
Spring Boot的版本高于 2.4以后 ,原来的配置已经不适合目前的版本 将代码中的`allowedOrigins`改为`allowedOriginPatterns` ```java @Configuration public class WebConfig implements WebMvc ......
E2. Erase and Extend (Hard Version)
题意:给你一个字符串s,请你找到所有的特殊字符串,满足它既是s的前缀,又是s的后缀,并输出它在s中出现的次数。 做法:对于第一步,我们只需要先做出kmp,考虑kmp中ne数组的意义,不就是求border吗,那么我们一直去求最后一个字符串字母的border,然后就能把所有的既是前缀又是后缀的字符串求出 ......
门面设计模式(Facade Pattern) and Encapsulation—— Structure Class
如果只看代码,应该可以说是一种最简单的代码结构,不就封装吗!这玩意谁不会! 还是看它背后所蕴含的思想吧,看了之后发现背后的思想也很简单。 - -。 # Think Encapsulation: 在物理世界中,从古代的`弹药`到`子弹`的发展其实就是对弹药的`封装`,因此大大提高了装弹效率。经过演化, ......
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$ ......
Paper Reading: PCTBagging: From inner ensembles to ensembles. A trade-off between discriminating capacity and interpretability
针对 CTC 分类性能较差和 Bagging 的可解释性较差的问题,本文提出了一种结合 CTC 和 Bagging 的算法 PCTBagging。首先构建一棵不完整的 CTC,CTC 的规模由超参数合并比来确定,接着使用 Bagging 完成后续的树结构的生成。将 PCTBagging 的结果与 B... ......
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 ......
本地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即可~ ......
论文解读(KD-UDA)《Joint Progressive Knowledge Distillation and Unsupervised Domain Adaptation》
Note:[ wechat:Y466551 | 可加勿骚扰,付费咨询 ] 论文信息 论文标题:Joint Progressive Knowledge Distillation and Unsupervised Domain Adaptation论文作者:Yanping Fu, Yun Liu论文来源 ......
[CF1790F] Timofey and Black-White Tree 题解
# [CF1790F] Timofey and Black-White Tree 题解 ## 题目描述 ZYH 有一棵 $n$ 个节点的树,最初 $c_0$ 号节点是黑色,其余均为白色。 给定操作序列 $c_1,c_2,\cdots,c_{n-1}$,第 $i$ 次操作表示将 $c_i$ 号节点染黑 ......