directory validhome selected the

PAT 甲级【1012 The Best Rank】

本题用java极容易超时,提交了好几次才成功 另外90 88 77 77 50,名次应该是1 2 3 3 5 ,不是1 2 3 3 4 import java.io.*; public class Main { @SuppressWarnings("unchecked") public static ......
甲级 1012 Best Rank PAT

The 2021 ICPC Asia Macau Regional Contest

\(C. Laser Trap\) 根据题意不难判断出需要极角排序,然后对于每个点寻找更小的一个 \(180\) 度的点数。即使听说是用双指针实现查找依旧没什么思路。后来看了别人的实现方法发现确实比较简单,甚至只需要维护极角就可以了。 const long double pi=acosl(-1); ......
Regional Contest Macau 2021 ICPC

The Dance After Last Dance - CSP2023 游记

波神留我看斜阳,唤起层层细浪。 高三也不过是这样,在银杏叶黄的烂漫的季节,骑车回家的路上总能望见绯红的轻云,但银杏叶下也缺不了成群结队的“高考”的速成班,手里拿着致密的复习资料,桌上凌乱的堆着书本和卷子,形成一座富士山。也有摒弃一切杂念,专心学习,于外界断绝一切联系的,宛如未出闺阁的小姑娘一般,还要 ......
Dance 游记 After 2023 Last

Data truncation: Invalid JSON text in argument 1 to function json_extract: "The document is empty." at position 0.问题解决

问题描述: json格式不规范导致的,仅使用where+json_valid清洗似乎并不足以解决问题 解决方法: select order_number,sku_code,CASE WHEN JSON_VALID(sales_price) THEN sales_price ELSE null END ......

《最新出炉》系列初窥篇-Python+Playwright自动化测试-23-处理select下拉框-下篇

1.简介 上一篇中宏哥主要讲解和分享了一下,我们常见或者传统的select下拉框的操作,但是近几年又出现了了一种新的select下拉框,其和我们传统的select下拉框完全不一样,那么我们如何使用playwright对其进行定位操作了。宏哥今天就来讲解和分享一下仅供大家参考,不喜勿喷。 2.新的se ......
下篇 Playwright Python select 23

kernel function: the difference beween cdev_add and device_create

To use a character driver, first you should register it with the system. Then you should expose it to the user space. 1. cdev_init and cdev_add functi ......

[ERROR KubeletVersion]: the kubelet version is higher than the control plane version.

kubeadm、kubelet、kubectl 一起安装时,由于疏忽写成kubelet-1.27.3.0,结果版本变成kubelet-1.28了,导致报标题中的错误 安装指定版本 yum -y install kubeadm-1.27.3-0 kubelet-1.27.3-0 kubectl-1.2 ......
version KubeletVersion the kubelet control

【踩坑】/usr/bin/ld: cannot find -lstdc++: No such file or directory

环境:win10 中的 wsl2 的 Ubuntu 1. 报错 /usr/bin/ld: cannot find -lstdc++: No such file or directory 通过 sudo apt-get install libstdc++6 解决。 2. 安装完之后依旧还是报一样的错 ......
directory cannot lstdc find file

eslint提示 xxx should be listed in the project's dependencies

有时候手动安装了一个npm包A,npm包A里面包含了npm包B,这时候如果 import xxx from 'npm包B'; eslint会报错,提示 npm包B 不在 package.json 里面 解决方法:在 eslintrc.js 增加配置 module.exports = { rules: ......
dependencies project eslint should listed

《最新出炉》系列初窥篇-Python+Playwright自动化测试-22-处理select下拉框-上篇

1.简介 在实际自动化测试过程中,我们也避免不了会遇到下拉框选择的测试,因此宏哥在这里直接分享和介绍一下,希望小伙伴或者童鞋们在以后工作中遇到可以有所帮助。今天,我们讲下playwright的下拉框怎么处理,在使用selenium定位的过程中,我们可以选择使用selenium的Select类定位操作 ......
上篇 Playwright Python select 22

Disconnected from the target VM, address: '127.0.0.1:56577', transport: 'socket' 端口占用

Disconnected from the target VM, address: '127.0.0.1:56577', transport: 'socket' 端口占用 Disconnected from the target VM, address: '127.0.0.1:56577', tra ......
39 Disconnected 端口 transport address

CF1132C Painting the Fence 题解

@目录DescriptionSolutionCode Description 有一面长为 \(n\) 的墙以及 \(q\) 个工人,第 \(i\) 个工人粉刷 \(l_i\) 到 \(r_i\) 的墙面,现在要去掉两个工人,问剩余 \(q-2\) 个工人最多能粉刷多少墙面。 Solution 注意数 ......
题解 Painting 1132C Fence 1132

pgsql create table,cpp fill psql table via the third party library pqxx

//create table t1; create table t1(id bigserial not null primary key,author varchar(40) not null,comment varchar(40) not null,content varchar(40) not ......
table library create pgsql party

CF809D Hitchhiking in the Baltic States-平衡树+DP

CF809D Hitchhiking in the Baltic States-平衡树+DP Statement 给出 \(n\) 个区间 \([l_i,r_i]\) 和 \(n\) 个未知数 \(a_1,a_2,\dots,a_n\),现在你要确定这 \(n\) 个数,使得 \(a_i\in[l_ ......
Hitchhiking Baltic States 809D 809

The ConnectionString property has not been initialized.

原因: 情况1 DbContext中没有指定连接字符串 解决: 情况2 appsettings.json 配置文件的属性没有设置为始终复制 ......

2023-10-24 Too many re-renders. React limits the number of renders to prevent an infinite loop. ==》组件在渲染过程中执行了任务导致状态更新,从而触发了无限循环

React报错: Too many re-renders. React limits the number of renders to prevent an infinite loop. 重新渲染过多。React限制渲染次数,以防止出现无限循环。 解决方案:查看你最近写的代码,比如我写了一个函数组件 ......
renders re-renders 组件 infinite 状态

[VM] The JavaScript Virtual Machine

Table of Content Introudction to VMs CPU - Understanding the Pysical Machine VMs - Arrays, Objects, functions, prototype chains DepotExplorer: collect ......
JavaScript Machine Virtual The VM

Maven打包报错问题的解决-- No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format

问题描述 在使用maven执行打包操作时,出现了这样的错误: 上面的图片是网上的图,我的图片忘记截图了; 问题解决 在我们创建的项目里面的pom.xml文件里面的dependencies标签后面,新建一个build标签, 并在build标签里面放上这句代码: <defaultGoal>compile ......
specified lifecycle specify format 问题

[925] GDA2020_MGA and change the spatial reference in ArcGIS Pro

ZONE50: 114.0 120.0 - arcpy.mp.spatialReference("GDA2020_MGA_Zone_50") ZONE51: 120.0 126.0 - arcpy.mp.spatialReference("GDA2020_MGA_Zone_51") ZONE52: ......
reference spatial ArcGIS change 2020

0017 MYSQL安装过程出现的问题mysqld: Can't create directory 'D: oft\mysql-5.7.43-winx64\data\'

问题截图: 翻译出来的结果 解决办法 1. 确保my.ini文件中的basedir与datadir的路径与自己mysql的路径一致 以上方法还不行的话,可以改成下面写法,亲测有用,原因不明 # 设置 mysql 的安装目录 basedir= D:\\soft\\mysql-5.7.43-winx64 ......
directory 39 过程 mysqld create

The 2nd Universal Cup. Stage 6: Warsaw L.Spectacle (思维)

大致题意: 给定n个玩家,每个玩家有一个战力值,安排 x (1 <= x <= n/2(向下取整))场游戏,每场游戏安排x对玩家对战,对于每一场游戏每个玩家只能参加一次对战,要求对于每x场玩家对战的两个玩家rating差的最大值尽可能小。 例如给定6个玩家战力值为10 13 14 20 100 10 ......
Spectacle Universal 思维 Warsaw Stage

el-select、el-dropdown 下拉框位置偏移

el-select、el-dropdown 下拉框位置偏移 <el-dropdown class="nav_item" :class="activeIndex == 2 ? 'active' : ''" > <span class="el-dropdown-link cursor"> 账号交易<i ......
el-dropdown el-select dropdown 位置 select

OGG-03542 Failed to connect to the database

GGSCI (dwdb01) 4> dblogin userid GOLDENGATE@cnlionrdb,password ******* 2023-10-23 17:11:26 INFO OGG-03542 Failed to connect to the database. Verify th ......
database connect Failed 03542 to

The 2018 ACM-ICPC Asia Qingdao Regional Contest, Online (The 2nd Universal Cup. Stage 1: Qingdao)

Preface 好以后我就是SUA铁粉了,每次打SUA出的题感觉都很好,全程有事情干并且中档题很多很适合我们队这种比上不足的队伍打 不过yysy这场题目偏数据结构和图论方面比较重,而数学方向则不多,刚好撞上了我们队熟悉的地方,因此最后卡着时间过了9题 而且最近CF评测机不知道咋了,这场好多题光读入用 ......
Qingdao The Universal ACM-ICPC Regional

2023ICLR_SFNet: Selective frequency network for image restoration

1. 在运行SFNet代码时,前后代码保持不变,运行两次结果发生变化, 把下面这段代码注掉就可以保持前后两次运行结果一致,不确定是否是nn.BatchNorm2d计算均值和方差导致 class dynamic_filter(nn.Module): def __init__(self, inchann ......

CF1479B1 Painting the Array I

如果两种方案末尾两数有一数相同,那么答案较大的方案不劣于答案较小的方案。答案较大的方案只需\textbf{模仿}答案较小的方案即可,在状态变成相同之前答案最多只会少 \(1\)。 所以只需要考虑末尾两数 \(a,b\) 与新进来的数 \(c\) 各不相同时该替换哪个。 假设 \(a\) 下次出现的位 ......
Painting 1479B Array 1479 the

TLS Handshake failed: tls: server selected unsupported protocol version 301

2023/10/23 21:04:55 D:/Dev/sre/gormSQLServer/main.go:20 [error] failed to initialize database, got error TLS Handshake failed: tls: server selected un ......

【译】A unit of profiling makes the allocations go away

在 Visual Studio 17.8 Preview 2 中,我们更新了单元测试分析,允许你在性能分析器中使用任何可用的工具——而不仅仅是仪表工具。有了这个更改,可以很容易地快速分析孤立的小工作单元,进行更改,然后重新度量和验证更改的影响。 ......
allocations profiling makes unit away

CF1886D Monocarp and the Set

Link 此题目可以从两个方向考虑,正着和倒着,倒着考虑比较容易,首先把所有的数放到一块,如果是'<'或者'>',就是去掉最左边或者最右边的数,这样显然只有一种可能,答案不变。 如果是'?',那么显然可以去掉中间的任意一个,所以答案就是\(\times l-2\),那么对于\(s_n-i\)位置的\ ......
Monocarp 1886D 1886 and Set

npm安装datav-vue3(一个大屏边框和装饰组件)后报错Failed to resolve entry for package "@dataview/datav-vue3". The package may have incorrect main/module/exports specified in its package.json.

原因:个人认为应该是npm上的版本比较低,因为弄好后装饰只能用到第8个,后面的都没有,查看package.json里它的版本为^0.0.0-test.1672506674342,也就是说还没有正式版,在官方的说明里也有体现 [目前还处于 Alpha 阶段,所有的 API 及 Props 都可能在后续 ......
package datav-vue datav 大屏 边框