monocarp and set the
Can't import the named export 'inject' from non EcmaScript module (only default export is available)
最近在开发一个electron应用,需要用到ssh功能。 经过挑选,最终使用的是node-ssh这个包。 然而,使用的过程并不顺利,执行npm run electron:serve运行出错,报错信息如下(仅截取部分): error in ./node_modules/node-ssh/lib/esm ......
Codeforces 1305G Kuroni and Antihype
考虑若 $a_u\operatorname{bitand} a_v = 0$,则连 $(u, v, a_u), (v, u, a_v)$ 两条单向边,答案即为外向森林边权和最大值。 发现这是个森林,那考虑增加一个虚点 $a_{n + 1} = 0$,这样就变成了一个树,然后能发现 $1\sim n$ ......
springcloud -stream消息驱动(去差异化 >>目前只支持rabbitmq and kafka) 此处使用rabbitmq用作实例子
生产者 核心依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-stream-rabbit</artifactId> </dependency> yml配置文件 s ......
python: generate and decode QrCode
# encoding: utf-8 #-*- coding: UTF-8 -*- # 版权所有 2023 ©涂聚文有限公司 # 许可信息查看: # 描述: # Author : geovindu,Geovin Du 涂聚文. # IDE : PyCharm 2023.1 python 311 # D ......
Solution Set - 2023 省队集训
## 2023-7-8 模拟赛 ### 铁路 (railway) Source: ROI 2017 D1T4 C 国有 $n$ 个城市与 $m$ 条铁路线,铁路均为单向,第 $i$ 号铁路线被从起点到终点的 $(s_i + 1)$ 个城市 $c_{i, 1}, c_{i, 2}, \cdots, c ......
CF455D Serega and Fun
## Problem 给定长度为 $n(1\le n\le 10^5)$ 的序列($1\le a_i\le n$),共有 $q(1\le q\le 10^5)$ 个询问,支持两种操作: `1 l r` 将区间 $[l,r]$ 依次向右移动一位,其中 $a_r$ 移动到 $a_l$。 `2 l r k ......
CF1842E Tenzing and Triangle - 线段树优化 dp -
题目链接:https://codeforces.com/contest/1842/problem/E 题解: 首先,如果两个等腰三角形相交了,那答案肯定不会更优。因此不会相交。 先考虑一个 $n^2$ 的 dp: 设 $dp_i$ 表示考虑到 $x=i$ 时的最小代价,首先可以先都加一个 $\sum ......
P6545 [CEOI2014] The Wall 总结记录--zhengjun
[link](https://www.luogu.com.cn/problem/P6545) 思维好题。 - 找到结论,即包住所有点的充要条件 两次最短路的思想确实很妙。 > 结论:找到 $(0,0)$ 到每个标记方格左上角的最短路,那么一定存在包住这些路径的最优解。 证明考虑反证,比较好证的。 # ......
【idea】今天才知道idea里面配置的maven-setting只在Idea里面有效
说来真的是惭愧: 今天才知道idea里面配置的maven-setting只在Idea里面有效。。。 背景是这样子的: 一直工作许多年,maven 配置都只是一个仓库,因为也没有配置多个库的需求。所以这个仓库也将近20多个G。(这不是重点)。 近来技术栈要升级,从JDK8升级到JDK17,并且同时两边 ......
warning: GOPATH set to GOROOT has no effect
因为配置`GOPATH`与`GOROOT`目录相同,所以报警,可以专门创建一个目录设置`GOPATH`。 `GOROOT`是下载安装go的目录,然后在环境变量`PATH`中配置好安装go目录下的bin目录,再创建一个目录配置为`GOPATH`即可 ......
[P6093 [JSOI2015] 套娃]题解-贪心+set
20230707 ~~不想做题于是随机跳题~~ [传送门](https://www.luogu.com.cn/problem/P6093 "传送门") 我们考虑每个套娃$i$套到另一个套娃$j$里面的价值 很明显可以知道,这样可以减少$b[j]* out[i]$ 为了让答案尽可能小 我们就要让每一个 ......
git出现Your branch and ‘origin/master‘ have diverged解决方法
https://blog.csdn.net/raoxiaoya/article/details/121785190 https://blog.csdn.net/d6619309/article/details/52711035 ......
vba批量合并and拆分多个Excel文件
1、拆分:一个文件按照某一列的类型,拆分成多个文件: Private Sub SplitDataByColumn() '学习代码 Dim sourceWorkbook As Workbook Dim sourceWorksheet As Worksheet Dim lastRow As Long D ......
【构造,树】【Loj】Loj6669 Nauuo and Binary Tree
2023.7.3 [Problem Link](https://loj.ac/p/6669) 交互库有一棵 $n$ 个点的二叉树,你每次可以询问两个点之间的距离,猜出这棵二叉树。$n\le 3000$,询问次数上限 $30000$。 首先给你距离一定是先把每个点的深度问出来,确定一个大致的考虑顺序。 ......
CentOS grub引导损坏 Minimal BASH-like line editing is supported.For the first word.TAB lists possible command completions.Anywhere else TAB lists possible deyice or file completions.
这是 GRUB boot loader 的命令行提示。它可能出现在以下情况中: 系统没有正确引导 启动项配置不正确 硬盘分区有问题 GRUB 配置有误等 为了解决这个问题,你需要做的是恢复 GRUB。以下是一般步骤,适用于大多数 Linux 发行版(如 Ubuntu): 启动 Live CD - 首 ......
Introduction to ORB (Oriented FAST and Rotated BRIEF)
特征匹配是许多计算机视觉问题的基础,例如物体识别、图像配准、图像检索、增强现实。在本文中,我们提出了一种基于BRIEF的非常快速的二进制描述符,称为ORB,它具有旋转不变性和抗噪性。通过实验证明,ORB的速度比SIFT快两个数量级,并且同时在许多情况下表现出色。 ......
[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 ......
FOSTER:Feature Boosting and Compression for Class-Incremental Learning论文阅读笔记
## 摘要 先前的类增量学习方法要么难以在稳定性-可塑性之间取得较好的平衡,要么会带来较大的计算/存储开销。受gradient boosting的启发,作者提出了一种新型的两阶段学习范式FOSTER,以逐步适应目标模型和先前的集合模型之间的残差,使得该模型能够自适应地学习新的类别。具体来说,作者首先 ......
TFS workspace clean for Dynamics 365 for Finance and Operations
Product: Dynamics 365 for Finance and Operations Purpose: The purpose of this blog is to explain how can we resolve the version control workspace issu ......
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 ......
Set 接口及实现类
# Set 接口及实现类 ## Set 接口基本介绍 1. 无序(添加和取出顺序不一致),没有索引 2. 不允许重复,所以最多包含一个null 3. JDK API 中Set 接口实现类  E. Split Into Two Sets
# 题解-Codeforces Round 805 (Div. 3) E. Split Into Two Sets (原题链接)[[Problem - E - Codeforces](https://codeforces.com/contest/1702/problem/E)] ## 思路 **知识 ......
Logistic Regression and its Maximum Likelihood Estimation
# 从 Linear Regression 到 Logistic Regression 给定二维样本数据集 $D = \left\{ (\vec{x}_{1}, y_{1}), (\vec{x}_{2}, y_{2}), \ldots, (\vec{x}_{n}, y_{n}) \right\}$, ......
Arduino – Turn LED ON and OFF With Button
In this Arduino tutorial I will show you how to turn an LED on and off with a push button. In fact, we’ll do 2 slightly different applications. First, ......
How To Fix the ERR_OSSL_EVP_UNSUPPORTED Error in Node.js
Fix the ERR_OSSL_EVP_UNSUPPORTED Error There are two ways to fix the ERR_OSSL_EVP_UNSUPPORTED error: Upgrade Node.js by downloading and installing the ......
CF573E Bear and Bowling
这种题目首先我们可以想一个比较蠢的 $n^2$ DP,然后观察一些性质来优化它。 那很显然我们可以设 $f_{i,j}$ 表示前 $j$ 个数选了 $i$ 个,有 $$ f_{i,j}=\max(f_{i,j-1},f_{i-1,j-1}+a_j\cdot i) $$ 写个暴力,先猜了一手凸性发现错 ......
打印机出现slide the green tab on drum unit
以兄弟MFC-7380打印机为例,相信很多使用耗材伙伴们在兄弟品牌打印机遇过这种情况:打印机屏幕出现“硒鼓!滑动硒鼓单元上的绿色滑块”字眼。 为什么会出现“硒鼓!滑动硒鼓单元上的绿色滑块”的提示?意味着要清洁鼓架上的电晕丝,按照图示来回滑动几次绿色滑块,把电晕丝上的灰尘清理掉。 (注:来回滑动几次将 ......
Solution Set - NOI级别真题选做
### [NOI2007] 社交网络 [Link](https://www.luogu.com.cn/problem/P2047)&[Submission](https://www.luogu.com.cn/record/114129998). ### [NOI2009] 管道取珠 [Link](h ......