synonyms reading of
《Generative Agents: Interactive Simulacra of Human Behavior》论文学习
一、论文基本思想 Figure 1: Generative agents create believable simulacra of human behavior for interactive applications. In this work, we demonstrate generati ......
创建LVM报错:Can't initialize physical volume "/dev/sdb1" of volume group "myvg" without -ff
问题: 在使用fdisk /dev/sdb 删除原有LVM分区,在接着创建LVM新分区/dev/sdb1。完毕保存之后。 执行pvcreate /dev/sdb1出现报错 Can't initialize physical volume "/dev/sdb1" of volume group "my ......
XXI Opencup, Grand Prix of Korea
[TOC] ## XXI Opencup, Grand Prix of Korea OpenCup强度这么大吗( ### A 根据 Hall 定理, 把 $a$ 从大到小排序对于 $\forall x \in [1, n]$ 如果有 $\sum_{i = 1} ^ xa_i \leq \sum_{i ......
记一次扯dan的错误feign.FeignException$NotFound: status 404 reading UserFeign#findByPage()
feign.FeignException$NotFound: status 404 reading UserFeign#findByPage() at feign.FeignException.clientErrorStatus(FeignException.java:165) ~[feign-co ......
CF500C New Year Book Reading 题解
这一题是一道比较复杂的贪心(~~对于本蒟蒻来说~~) 假如两本书 $a$ 和 $b$,先看 $a$ 再看 $b$,那么我们开始的时候就把 $a$ 放在上面。 这样的话,我们看 $a$ 时就不需要搬动 $b$,看 $b$ 的时候会搬动 $a$。 而一开始如果把放在上面,看 $a$ 的时候需要搬动 $b ......
nth-of-type nth-child和一点正则
nth-of-type: 会找到类名为span-50的标签,你这里的span-50的标签是div,就会拿父级里面的所有div去算奇数偶数的 let res = '123456789'.replace(/(?!^)(?=(\d{4})+$)/g, ','); 用于给数字加分割逗号 ......
麒麟V10服务器安装MySQL报错file /etc/my.cnf from install of mysql-community-server-8.0.33-1.el7.x86_64 conflicts with file from package mariadb-common-3:10.3.9-9.p02.ky10.x86_64
1.问题描述 具体地说,"/etc/my.cnf" 文件与 "mysql-community-server-8.0.33-1.el7.x86_64" 包中的文件发生冲突,并与 "mariadb-common-3:10.3.9-9.p02.ky10.x86_64" 包中的文件相冲突。 这种冲突是由于系 ......
Linux内核的container_of宏
# 简介 container_of宏是内核的常用宏, 通常用于通过结构体成员指针来获取结构体指针. 该宏依赖的一个基本原则是结构体在虚拟内存中是连续存储的. 还有铭记就是它是一个编译期就已经计算好的宏. ## 为什么要有container_of 根据内核考古学, container_of首次出现在L ......
[LeetCode] 2024. Maximize the Confusion of an Exam
A teacher is writing a test with n true/false questions, with 'T' denoting true and 'F' denoting false. He wants to confuse the students by maximizing ......
python: using pdfplumber Lib read pdf file
from openpyxl import Workbook from openpyxl.styles import PatternFill,Side,Border import pdfplumber l=[] def visitDir(path): if not os.path.isdir(path ......
this version of the Java Runtime only recognizes class file versions up to 55.0
问题: 运行SpringBoot demo时报错: this version of the Java Runtime only recognizes class file versions up to 55.0 at 原因: 编译版本和运行版本不一致,具体原因是编译版本高于运行版本,SpringBo ......
CF1834E MEX of LCM
[也许更好的阅读体验](https://blog.csdn.net/Morning_Glory_JR/article/details/131583841?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22% ......
Paper Reading: A three-way decision ensemble method for imbalanced data oversampling
针对 SMOTE 的缺点,本文提出了一种基于建设性覆盖算法(CCA)的三向决策抽样方法(CTD)。CTD 首先使用 CCA 构造不平衡数据的覆盖,然后选择少数样本的覆盖并根据覆盖的密度划分为三个区域。最后根据覆盖分布规律得到相应的阈值 α 和 β,选择关键样本进行SMOTE过采样。考虑到 CCA 随... ......
java:bufferedinputstream.read下标越界
read(byte[] b, int off, int len)方法例子的实现:https://cloud.tencent.com/developer/article/1915925 byte是字节的意思,一个字节等于多少个bit(位) 总是把byte和bit搞混,可能它们长得太像了吧。。 byte ......
报错 Cannot construct instance of `java.time.LocalDate` LocalDateTime
原因:报错的原因就是导入了JacksonObjectMapper对象映射器,导致不知道怎么将LocalDateTime转换成Json类型的数据了,在没有导入使用JacksonObjectMapper的时候是不会报错的。 解决方式:指定LocalDateTime类型的数据如何进行序列化就好了,给实体类 ......
ad_update、ad_read、多级缓存、缓存击穿相关问题
一、为什么 ad_update / ad_read 请求不交给后端代码? 1. tomcat 并发量不够(默认 250 / 2500) Nginx(5W) 2. lua 脚本,特点执行速度快 二、多级缓存的优点 1. 可以防止单级缓存的击穿问题。 2. 提升效率,因为本地缓存不需要网络资源传输的。 ......
[LeetCode] 2178. Maximum Split of Positive Even Integers
You are given an integer finalSum. Split it into a sum of a maximum number of unique positive even integers. For example, given finalSum = 12, the fol ......
ARC107F Sum of Abs
# ARC107F Sum of Abs **[题目传送门——洛谷](https://www.luogu.com.cn/problem/AT_arc107_f)** **[题目传送门——AtCoder](https://atcoder.jp/contests/arc107/tasks/arc107_ ......
Illegal mix of collations
原因: 创建表的时候未设置COLLATE 临时解决: ```sql CONVERT(rr.operator_id USING utf8) COLLATE utf8_unicode_ci = CONVERT(pw.id USING utf8) COLLATE utf8_unicode_ci ``` 参 ......
Lord Of The Root: 1.0.1实战
##**前言** Description:我创建这台机器是为了帮助其他人学习一些基本的CTF黑客策略和一些工具。我瞄准了这台机器,使其在难度上与我在OSCP上破解的机器非常相似。 这是一个引导到根计算机将不需要任何来宾交互。 有两种设计的权限提升方法。 ##**靶机环境** kali 192.168 ......
Nacivate 连接远程mysql时 报错 Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0
出现这种报错 首先要检查 第一:查看mysql的配置文件 /etc/my.cnf ,根据服务器的不同 以及安装的mysql版本 有的是配置文件 /etc/mysql/conf.d/50.server.conf step 1: 注释bind-address = 127.0.0.1这句step 2: 找 ......
echarts 在使用dataZoom时报错,Cannot read properties of undefined (reading 'type')
今天我再vue中使用柱状图拖动时,一直报错Cannot read properties of undefined (reading 'type')。 原因如下,我使用了myChart 来接收数据,当myChart使用的是vue的ref或者reactive来命名的变量,如果这样子命名就会报上述错误。 ......
Cannot create a component of type 'ahb_mst_burst_incr' because it is not registered with the factory
运行VCS仿真报错: Cannot create a component of type 'ahb_mst_burst_incr' because it is not registered with the factory 但是我在test class中已经注册了,为什么还报错呢? 报错就说明没有找 ......
基于词袋(Bag of Words)和SVM的图片分类
[toc] # 摘要 虽然现在已经是深度学习的时代了,传统的机器学习方法日渐甚微,不过有些算法还是有着旺盛的生命力,比如SIFT、SVM,在一些深度学习算法中也能看到它们的影子。这些人工设计的经典特征和分类器可以让我们感受到那个时代计算机视觉的魅力。互联网上,需要处理识别的图像越来越多,为此图像分类 ......
Paper Reading: Model-Based Synthetic Sampling for Imbalanced Data
针对不平衡数据问题,本文提出了一种基于模型的综合抽样(MBS)方法,从一个新的角度对少数类实例进行过采样。MBS 是一种过采样算法,目标是生成能够捕捉少数类训练样本特征之间关系的合成样本,同时保持数据样本的可变性。首先利用回归模型捕获少数类样本的特征趋势,接着通过对可用特征值进行采样生成临时数据样本... ......
IDEA:MAVEN:先:An illegal reflective access operation has occurred 后:Cannot access defaults field of Properties
maven打包发现出现以下警告,但是可以运行 通过在 VM选项中添加 --illegal-access=deny --add-opens java.base/java.lang=ALL-UNNAMED 不再出现刚才提示。 之后出现 Cannot access defaults field of Pr ......
当使用POI打开Excel文件遇到out of memory时该如何处理?
> 摘要:本文由葡萄城技术团队于博客园原创并首发。转载请注明出处:[葡萄城官网](https://www.grapecity.com.cn/),葡萄城为开发者提供专业的开发工具、解决方案和服务,赋能开发者。 当我们开发处理Excel文件时,Apache POI 是许多人首选的工具。但是,随着需求的增 ......
AtCoder Regular Contest 163 D Sum of SCC
[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc163_d "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc163/tasks/arc163_d "AtCoder 传送门") 怎么连这种相对传统 ......
python中文件读取read、指针位置tell、移动指针seek函数
001、文件对象read读入文件 >>> in_file = open("a.txt", "r") >>> in_file.read() ## 'abcd\nefgh\ni\n' 002、文件对象tell 返回指针再文件中的位置 >>> in_file = open("a.txt", "r") ## ......
【转】python踩坑(FileNotFoundError: Could not find module '此处省略了一些路径win_amd64.dll' (or one of its dependencies). Try using the full path with constructor syntax.)
1、报错 (FileNotFoundError: Could not find module '此处省略了一些路径\site-packages\scipy\.libs\libbanded5x.GL5FZ7Y77HIKQFNMZKUOMV5GID6YMX2V.gfortran-win_amd64.dl ......