monocarp and set the

服务器/虚拟机 关机或重启之后报:Entering emergency mode. Exit the shell to continue.

## 具体现象 ![](https://img2023.cnblogs.com/blog/1138462/202307/1138462-20230715122734672-1948661564.jpg) 多次重启之后还是不行,提示让进入紧急模式或退出 ## 排查原因 根据提示输入journalctl ......
emergency Entering continue 服务器 shell

AJAX请求,响应头有set-cookie但浏览器不能写入cookie问题解决!

# 开幕雷击:AJAX就不是干这个 ajax只有向服务器发送请求时带上cookie的功能可选。 不存在ajax向服务器get的时候带回来cookie的功能。 ![image](https://img2023.cnblogs.com/blog/2924373/202307/2924373-202307 ......
cookie set-cookie 浏览器 问题 AJAX

DockerDeskTop系列---【启动DockerDeskTop时报错:Please try shutting WSL down (wsl --shutdown) and...】

# DockerDeskTop安装完成后,无法启动 报错信息如下: > Please try shutting WSL down (wsl --shutdown) and/or rebooting your computer. If not sufficient, WSL may need to b ......

【图论】CF1508C Complete the MST

[Problem Link](https://codeforces.com/contest/1508/problem/C) 有一张 $n$ 个点的完全图,其中 $m$ 条边已经标有边权。你需要给剩下的边都标上权值,使得所有边权的异或和为 $0$,并且整张图的最小生成树边权和最小。 $n,m\le 1 ......
Complete 1508C 1508 the MST

131.Set和WeakSet结构

#### 131. Set 和 WeakSet 结构? - 1.ES6 提供了新的数据结构 Set。它类似于数组,但是成员的值都是唯一的,没有重复的值。 - 2.WeakSet 结构与 Set 类似,也是不重复的值的集合。但是 WeakSet 的成员只能是对象,而不能是其他类型的值。WeakSet ......
WeakSet 结构 131 Set

cpp class constructor initialize list and override cout

//book.h#pragma once #include <iostream> class book { public: int idx; std::uint64_t id; std::string author; std::string content; std::string comment; ......
constructor initialize override class cout

Codeforces 1495E - Qingshan and Daniel

假设 $1$ 号队伍机器人总牌数比 $2$ 号队伍多,那么显然最终 $2$ 号队伍中的牌都会走光。 如果 $1$ 号机器人属于 $1$ 号队伍那么我们暴力模拟第一轮即可。下面只讨论 $1$ 号机器人属于 $2$ 号队伍的情况。 由于我们走牌顺序一定是 $212121212\cdots 21$ 直到没 ......
Codeforces Qingshan Daniel 1495E 1495

CF1175F The Number of Subpermutations 对自己的警告--zhengjun

太久没见过启发式合并了,然后没想出做法。 首先笛卡尔树建出来。 然后直接枚举跨过 $mid$ 的长度为 $a_{mid}$ 的区间,RMQ $O(1)$ 验证即可。 发现这样的区间个数不超过左右区间大小的较小值,时间复杂度:$O(n\log n)$。 ### 代码 ```cpp #include u ......
Subpermutations zhengjun Number 1175F 1175

excel 导出 The maximum length of cell contents (text) is 32767 characters

**导出excel功能,报错。错误日志提示::The maximum length of cell contents (text) is 32767 characters** ![](https://img2023.cnblogs.com/blog/2197916/202307/2197916-20 ......
characters contents maximum length excel

mybatis-plus QueryWrapper and or 连用组成查询条件

* 我的代码片段 ``` String numberCode = (String) params.get("numberCode"); if(StringUtils.isNotBlank(numberCode)){ wrapper.and(qw -> qw.eq("number", numberCo ......

destoon列表性能优化,关于IN()与FIND_IN_SET

destoon数据达到一定之后列表打开速度就很慢,于是为了解决这个问题,进行以下办法处理。 找到/include/tag.func.php文件,找到这段代码: 原因: 区别: 1、in后面只能跟常量, find_in_set()函数可以使用常量或字段。 2、in是完全匹配,find_in_set() ......
FIND_IN_SET 性能 destoon IN FIND

【图论,网络流】CF1525F Goblins And Gnomes

[Problem Link](https://codeforces.com/problemset/problem/1525/F) 你在打怪。你有一个 $n$ 个点 $m$ 条边的 DAG,接下来会有 $k$ 波怪来袭,第 $i$ 波怪有 $i$ 个,它们会各自选择走一条路径,要求它们所选的路径点不相 ......
Goblins Gnomes 1525F 网络 1525

Solution Set - “我将它捣成美梦愿你梦里无忧”

[TOC] $$ \text{So long lives this, and this gives life to thee.} \require{\cancel} \newcommand{\op}[1]{\operatorname{#1}} \newcommand{\anc}[0]{\op{anc ......
美梦 Solution Set

CF1846D Rudolph and Christmas Tree 题解

## _Decription_ 一颗圣诞树由 $n$ 个底边为 $d$,高度为 $h$ 的等腰三角形组成,每个三角形以 $y$ 轴为对称轴,底边均平行于 $x$ 轴,三角形有可能重叠。 给出 $n,d,h$ 以及每个三角形底边与 $x$ 轴的距离,求该圣诞树的面积。 ## _Solution_ ![ ......
题解 Christmas Rudolph 1846D 1846

set去重、map

## Set去重原理 Set是Java中的一个接口,它的实现类(如HashSet. TreeSet 等)用于存储一组不重复的元素。Set 的去重原理是基于元素的hashCode0)和equals)方法。 当向Set添加元素时,首先会调用被添加元索对象的hashCode0) 方法来获取其哈希码。Set ......
set map

达梦数据库中使用find_in_set()函数

本文转载自Allyn博客(http://www.allyns.cn):http://www.allyns.cn/info/102?eqid=c1f67a7a0001c94d0000000364619de7 在日常开发过程中,我遇到了这样一个问题,我在使用数据库实现自定义流程的时候,由于审批人可以是多 ......
find_in_set 函数 数据库 数据 find

并查集(Disjoint Set)

并查集是算法竞赛中常用的一种数据结构。 其主要功能是查询**两个元素是否在同一个集合**以及**将两个集合合并**。 ### 算法思想 1. 我们将所有元素建成很多树(森林),每一棵树就是一个集合,比如下图有 $\{1, 2, 3, 4, 5, 6\}, \{7, 9, 10, 11, 12, 13 ......
Disjoint Set

【题解】CF gym 104337 G. Guess the Polynomial

statement:https://codeforces.com/gym/104337/problem/G 。 即求 $f(x)=\sum\limits_{i=0}^{p-2}a_ix^i$,其中只有不超过 $n$ 个 $a_i$ 非 $0$ 。 记: $$ \begin{aligned} A_{n ......
题解 Polynomial 104337 Guess gym

The 2019 ICPC China Shaanxi Provincial Programming Contest(2019陕西省赛)

## B. Grid with Arrows 并查集一下。 ```cpp #include "bits/stdc++.h" using namespace std; using i64 = long long; struct UnionFind { int n; vector f; UnionFin ......
2019 Programming Provincial Contest Shaanxi

Solution Set of NFLS SImulations

在 nfls 的最后一天,来记录一些似乎有意义的题吧。 没有原题(或者我忘了原题)的就简要写下题意,不放原题面了。 [TOC] ![NOI2023 模拟赛 33](https://img2023.cnblogs.com/blog/2913835/202307/2913835-202307120824 ......
SImulations Solution NFLS Set of

k8s集群node NotReady处理流程-->kubelet状态error,并伴有报错:kubelet.service has more than one ExecStart=setting,which is only allowed for Type=oneshot services.Refusing

## k8s集群node NotReady处理流程-->kubelet状态error > //20230712 集群有节点NotReady kubelet状态error,并伴有报错:```kubelet.service has more than one ExecStart=setting,whic ......
kubelet 集群 ExecStart NotReady Refusing

Shiro characteristic and attack

# Characteristic If `RememberMe=deleteMe ` at Cookie, So It is Shiro. # Shiro Key You get the key and to mix a vulnerability will get the servers shel ......
characteristic attack Shiro and

The information of Seminars Language

‘The seminar is a common way ofteaching students on university courses in the UK and it is very likely that you will experience seminars on your cours ......
information Seminars Language The of

2023-07-12 vue this.$set设置子组件内的值无效(uniapp+vue)

前言:怎么说呢,子组件内嵌套了多层对象和数组,业务逻辑也是在子组件内处理,如何修改多层嵌套的对象数组的值? vue提供了一个this.$set方法去改变对应的值,实测在uniapp打包的微信小程序中无法使用该方法,而在Android端则可以,那有没有两全其美的方法? 答案是有,在修改深层次的值时可以 ......
组件 vue uniapp 2023 this

mybatis-plus Error attempting to get column 'xxx' from result set.

报错信息: mybatis-plus Error attempting to get column 'xxx' from result set. 解决: 1、获取数据的实体类中新建了一个有参的构造方法,却没有无参构造方法,使用MyBatis-Plus内置方法进行查询时会报错。 解决办法: 新建一个无 ......

解决docker报错Job for docker.service failed because start of the service was attempted too often

转载自:https://blog.csdn.net/Along_168163/article/details/124118833 docker安装之后重新安装报错如下: Job for docker.service failed because start of the service was at ......
service docker attempted because failed

C++面试八股文:知道std::unordered_set/std::unordered_map吗?

# C++面试八股文:知道std::unordered_set/std::unordered_map吗? 某日二师兄参加XXX科技公司的C++工程师开发岗位第27面: > 面试官:知道`std::unordered_set/std::unordered_map`吗? > 二师兄:知道。两者都是C++ ......

IUP Text Format State test and enhancement

## 功能 - 测试IUP Text 控件 格式(Formating)在交互中的跟随性; - 尝试提升格式跟随性。 ## 涉及点 - Text的回调顺序关联; - 撤销(undo)操作还原到的状态——上次手动改变光标时的状态; - 输入时的状态(中文输入时涉及IME); - k_any的C; Cap ......
enhancement Format State Text test

[VLDBJ 2022]Privacy and efficiency guaranteed social subgraph matching

# Privacy and efficiency guaranteed social subgraph matching ## 动机 目标是在不影响查询处理的同时保护隐私 ## 其中的子图匹配算法PGP ![img](https://img2023.cnblogs.com/blog/2988279/ ......

The University of Queensland

The University of Queensland The University of Queensland 是一所位于澳大利亚昆士兰州布里斯班的公立研究型大学,成立于1909年,是澳大利亚八大名校之一。这所大学有 MBA 项目,属于商学院的研究生课程。如果你想了解更多关于这个学校和 MBA ......
Queensland University The of