shadow the dog and
javascript: The Best Guided Tour Plugin
Best Tour Plugins To Guide Visitors Through Your Apphttps://yonkov.github.io/post/display-shepherd-only-once/https://www.jqueryscript.net/blog/best-gu ......
Cannot initiate the connection to cn.archive.ubuntu.com:80 (2403:2c80:5::6). - connect (101: Network is unreachable)
版本:ubuntu 22.04 Cannot initiate the connection to cn.archive.ubuntu.com:80 (2403:2c80:5::6). - connect (101: Network is unreachable) 嗯,被墙了。找到 /etc/apt ......
The 2021 China Collegiate Programming Contest (Harbin) JBEID
The 2021 China Collegiate Programming Contest (Harbin) JBEID J. Local Minimum 模拟 题意:一个数当且仅当它是当前列最小值同时也是当且行的最小值它才算入贡献。 思路:直接\(for\),预处理出每一行每一列的最小值,然后去\ ......
Little Victor and Set 题解
Little Victor and Set 题目大意 在 \([l,r]\) 中选不超过 \(k\) 个相异的数使得异或和最小,输出方案。 思路分析 分类讨论: 当 \(k=1\) 时: 显然选 \(l\) 是最优的。 当 \(r-l+1\le 10\) 时: 直接 \(O(n2^n)\) 暴力枚举 ......
OpenGL with GLFW GLAD and CMAKE
0. 前言 首先,无论是在youtube还是网站上,许多OpenGL的环境配置都是在VS studio里配置的,个人比较喜欢使用VS code,以及Cmake. 下文给出了一个Cmake版本关于 GLFW GLAD 的编译环境。 另外,感谢分享知识的人。 具体的代码已放入 github 中, 代码地 ......
org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java
项目场景:项目中执行clean,再执行install时报错,错误如下 org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class ......
selenium 报错 element not interactable: [object HTMLDivElement] has no size and location
selenium 自动化识别验证码x,y坐标 命令move_to_element_with_offset 报错:element not interactable: [object HTMLDivElement] has no size and location 由于>4.0是以中心点偏移,4.0是左 ......
nuxt 项目 certificate has expired 或 nuxt unable to verify the first certificate
plugins/axios.js const https = require('https') export default function ({ $axios}){ $axios.create({ httpsAgent: new https.Agent({ rejectUnauthorized: ......
How to print a string with a variable by using the echo command in the shell script All In One
How to print a string with a variable by using the echo command in the shell script All In One
Node.js & nvm
......
使用 sudo apt-get update 命令时出现 Certificate verification failed: The certificate is NOT trusted.
命令: sudo apt-get update 问题:Certificate verification failed: The certificate is NOT trusted. Try installing ca-certificates. 忽略:1 https://professional- ......
Docker - Install and Uninstall
Install: 1. Set up Docker's Apt repository. # Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo ......
Choosing Between .NET and .NET Framework for Docker Containers
There are two supported frameworks for building server-side containerized Docker applications with .NET: .NET Framework and .NET 7. They share many .N ......
[CF1819D] Misha and Apples
Misha and Apples 只能做做评分虚高的题了,头痛浪费了一节晚自习。 但是为什么机房的同学们都觉得2500~2800算水题呢? 最终的答案一定是 \([S_1,S_x]\) 被清空,\([S_{x+1},S_n]\) 被全部放入集合。 若 \(\exists i\in[x+1,n],k_ ......
ST: USB Host and Device
ST: USB Host and Device USB Devices实现 可实现用一个USB接口实现多个USB设备,如 HID+MSC; HID+CDC; HID+CDC+MSC等等 使用HAL库及USB库,以HID+MSC为例 一、增加端点 增加端点,同时修改FIFO配置大小,STM32 USB ......
springBoot 启动报错: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
原因 其实这个异常在SpringBoot中是一个比较常见的异常,一般是因为SpringBoot自动配置时,检测到我们添加了MySQL、Oracle、Mybatis等和数据库相关的依赖包,结果我们的配置文件中却没有添加数据库相关的配置,比如: spring: datasource: driver-cl ......
CF1677D Tokitsukaze and Permutations
好玩题。 对于一个排列 \(p\),进行 \(k\) 轮冒泡,记 \(v_i = \sum_{j < i} [p_j < p_i]\),给定 \(v_i\),部分值不确定,求合法的 \(p\) 的个数。 \(p\) 由 \(v\) 唯一确定。 考虑一个个加数字进去,每次可以判断加入数字与前面数字的相 ......
CF1869C Fill in the Matrix
Link 首先想一下,如果又一列的 \(MEX\) 是 \(n\) 会有什么样的要求?需要这一样有 \(0~n-1\) 的所有数字并且没有\(n\) 当我们知道这一点以后问题就很好解决了. 我们应该构造数列的时候,满足第一行的\(MEX\)为 \(0\) ,第 \(i\) 行的 \(MEX\) 为\ ......
The 2023 ICPC Asia Regionals Online Contest (1)
Preface 这场打的还行,因为学长们都没发挥好被我们队偷了,但感觉发挥的也一般 前期开题顺序有点问题导致罚时很高,不过中期写题还是很顺的基本都是一遍过 只不过在3h的时候过完F到达8题后就开始坐牢了,虽然这场有两个字符串但徐神把H想复杂了,B可以说前面的建SAM和反串的AC自动机都想到了,也转化 ......
nginx启动报错:(1113: No mapping for the Unicode character exists in the target multi-byte code page)
转自:https://blog.csdn.net/qq_19309473/article/details/96477863 使用windows版本的nginx启动时遇到:(1113: No mapping for the Unicode character exists in the target ......
The Second
前端开发工程师学习路线 前言:就业形势严峻,但稳扎稳打的知识终会带来不一样的结果。前端开发工程师未来发展将会更加迅速,有互联网的地方,就必然存在着着前端,而为了最终的用户体验,前端也在不断优化进步。目前较为流行的前端开发在移动端应用较为广泛,希望我能通过不断的学习,最终能够独立进行PC端、移动端、小 ......
Ubuntu22.04运行Splash Docker镜像报错,cloud not load the Qt platform xcb in even though it was found
Ubuntu 22.04 运行Splash Docker镜像报错,cloud not load the Qt platform xcb in even though it was found
重新执行同样的语句,即恢复正常。 ......
Road To Reality(The roots of science)
Road To Reality(The roots of science) The Good, the True, and the Beautiful ......
ScannerException: while scanning for the next token found character ‘@‘ 问题
1.今天运行程序,突然报错,显示 ScannerException: while scanning for the next token found character ‘@‘ 问题,上网搜索,有好多原因,最简单的解决方法是刷新maven,后来就好使了。其他原因可参考博客:ScannerExcept ......
Roads in the North POJ - 2631 - 树的直径/树形dp
题意:给出一棵无向树,求树的直径,即树上两点之间的最长距离 分析:两种解法 解法1:先任取一个点,找到距离该点最远的点u,再找到距离u最远的点v,那么u和v之间的路径就是一条直径。 证明:只要找到了树的直径的一个端点,再从该点找到最远点就一定是直径的另一个端点。所以只需要证明第一次找到的最远点u就是 ......
Day_and_Night
Day_and_Night 题目源码 from Crypto.Util.number import * def pad(msg): # PKCS#1 v1.5 print(f'{2048 // 8 - len(msg) = }') # 189个字节附近, 也就是约等于 189 * 8 = 1512 ......
《The 13th Shandong ICPC Provincial Collegiate Programming Contest》 vp
简介 挂个 Link 先。 队伍配置:ddl,beiwen 和我 先%%%主力 ddl+关键先生 beiwen,我属于小躺一把。 赛时 放个结果 ......
CF 1867 E1. Salyg1n and Array (simple version)
Link 简单版本的结论还是很容易猜到的。 首先很容易想到的第一步就是尽可能地不覆盖地取尽可能多地区间,最后剩下了一小块。 然后在接着原来的指针一个一个地往右问,直到不能问了为止。 为什么这样是正确的呢?首先,在这样一步一步地往右查询的过程中,我们会发现总是前$k-1个数加上后面的一个数。 然后题面 ......
The 2023 ICPC Asia Regionals Online Contest (1) ADI
The 2023 ICPC Asia Regionals Online Contest (1) A Qualifiers Ranking Rules 思路:按位次为第一关键字,场次为第二关键字排序即可。 // AC one more times // nndbk #include <bits/std ......
Alice and Hairdresser题解
Alice and Hairdresser 第一眼线段树,第二眼好像可以直接用数组模拟。 当一根头发长于 $l$,它再长多长其实都一样,所以不用开 long long。 如果一根新的头发长到比 $l$ 长,那可以分成以下几种情况: 如果它左侧和右侧只有一个元素大于 $l$ ,那答案不变。 如果左侧和 ......