hong kong programming the

The user specified as a definer (‘skip-grants user‘@‘skip-grants host‘) does not exist

该问题是由于导出数据库或备份数据库引起的函数所有者发生变化 解决办法 复制源函数创建语句 删除DEFINER 重新创建 ......
skip-grants grants user skip specified

ubuntu 20 permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/con ......
permission connect ubuntu denied Docker

The first attempt of a MnZn

Prove: If $a > 0$,then $\forall x\in \mathbb R, a(\mathrm e^x+a)-x> 2\ln a+\dfrac32$ Proof: Let $f(x) = a(\mathrm e^x+a)-x$, then $f'(x) = a\mathrm e^ ......
attempt first MnZn The of

Backtrader - Sell/Buy signal labels are missing in the plotting

1.0 Missing Sell/Buy signal labels 2.0 Solution cerebro = bt.Cerebro(stdstats=True, cheat_on_open=True) stdstats=True,用回預設的stdstats就能顯示Sell/Buy signal ......
Backtrader plotting missing signal labels

解决使用yarn安装依赖出现“The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0". Got "17.9.0"”的问题

# 1、问题描述 某天在使用`yarn`安装依赖的时候,突然出现如下错误导致安装依赖终止: **The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0 ......
quot incompatible Expected version engine

Vue2项目开发时遇到:<template v-for> key should be placed on the <template> tag

问题缘由: Vue2和Vue3中,对待template中存在v-for行为的组件正好相反 Vue2中key必须写在子元素中,Vue3中key必须写在template中,不然会报错 使用volar插件,使用Vue3语法检测代码,导致错误 解决方案: 1、禁用volar 2、貌似可以修改配置项,但尚未尝 ......
template 项目开发 项目 should placed

上传文件异常:The temporary upload location [/tmp/tomcat.xxxxxxx/work/Tomcat/localhost/ROOT] is not valid

一个长久没更新过的spring boot项目突然间文件上传错误,异常信息如下,此原因主要问题是tomcat默认的临时目录没了,项目运行的服务器每隔一段时间会清除 /tmp 临时目录,项目每次启动都会创建临时目录,经常重启的项目不会有此问题。 解决方案: 1. 重启项目,每隔一段时间重启,可以跟 /t ......
temporary localhost location xxxxxxx 文件

Codeforces 1801D The way home

看到 `shortest paths` 来做的。 首先有一个贪心的策略,对于当前点 $u$ 若不能直接往后走则肯定是选择经过的点中 $w_i$ 最大的加。 很好理解,证明就不需要了。 所以可以定义状态 $f_{u, mx}$ 为 $u$ 点最大能加的值为 $h_{mx}$ 的最优状态,$h$ 是 $ ......
Codeforces 1801D 1801 home The

网关服务Kong、Konga搭建记录

安装 使用docker-compose安装是最方便的 在/opt/目录下创建kong文件夹,然后创建一个docker-compose.yml文件并编辑 cd /opt mkdir kong cd kong vi docker-compose.yml 在docker-compose.yml添加如下配置 ......
网关 Konga Kong

Codeforces 1588F - Jumping Through the Array

显然无法用 polylog 的数据结构维护,序列分块也不行,考虑询问分块。每 $B$ 个询问处理一次。 将这个询问中 $2,3$ 操作涉及到的点设为“关键点”,那么容易发现,环上每一段以关键点结尾的链在这块操作的过程中始终保持不变,也就是说我们可以把它们缩在一起。 先预处理出每个块的增量对每组询问的 ......
Codeforces Jumping Through 1588F Array

Running Additional Programs at Boot Time (开机启动)

https://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-boot-init-shutdown-run-boot.html The /etc/rc.d/rc.local script is executed by the init  ......
Additional Programs Running Boot Time

HTTP Basic Authentication>> 401>> Using the browser’s native login prompt

https://docs.oracle.com/cd/E27515_01/common/tutorials/authn_http_basic.html http://blog.stevensanderson.com/2008/08/25/using-the-browsers-native-login ......
gt Authentication browser native prompt

The Epsilon-Delta Definition of a Limit

by courtesy of the author: [APEX Calculus I/II/III ](http://www.apexcalculus.com/about) University of North Dakota Adapted from APEX Calculus by Grego ......
Epsilon-Delta Definition Epsilon Delta Limit

【HarmonyOS】关于 Caused by java.lang.IllegalStateException The specified...

【问题描述】 线上收到大量手机的崩溃异常,以华为手机为主,崩溃如下 1.Caused by: java.lang.IllegalStateException: The specified message queue synchronization barrier token has not been ......

P2973 [USACO10HOL] Driving Out the Piggies G 臭气弹

[题目链接](https://www.luogu.com.cn/problem/P2973 "题目链接") 题目: 奶牛们建立了一个随机化的臭气炸弹来驱逐猪猡。猪猡的文明包含1到N (2 using namespace std; const int maxn=350; const int eps=1 ......
臭气 Driving Piggies P2973 USACO

cpp test write content speed to ssd and usual disk respectively 1M,10M,100M rows data,the fact has illustrated the write speed of ssd is 4-5 times faster than usual disk

#include <chrono> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <thread> #include <uuid/uuid. ......
speed write usual disk respectively

git add 时报错 warning: in the working copy of 'package-lock.json', LF will...

来源:https://blog.csdn.net/qq_43842093/article/details/128471953 问题: 执行 git add . 时报错: 原因: 换行符的问题, Windows下换行符和Unix下的换行符不一样,git会自动转换。 解决办法: 执行如下命令: git ......
package-lock 时报 warning package working

Some details for the Shell which I think is important

拼接字符串, 在定义好变量之后, 输出时候的拼接, 注意无意输出一些空格 。 比如: #!/bin/bash a1="China" a2="${a1}, Japan and Korean are the three important countries in east asia. \n" a3=" ......
important details Shell which think

Programming: elimination array duplicate

JavaScript 1. splice let arr = [1, 2, 3, 5, 6, 4, 3, 2, 1, 1, 2, 3, 4, 5] for(let i = 0; i < arr.length - 1; ++i) { for(let j = i + 1; j < arr.length; ......
Programming elimination duplicate array

Apr 2021-Lucid Dreaming for Experience Replay: Refreshing Past States with the Current Policy

本文提出了用于经验回放的清醒梦(LiDER),一个概念上的新框架,允许通过利用智能体的当前策略来刷新回放体验。 ......

Programming: Sort

JavaScript let arr = [8, 4, 3, 2, 6, 7, 1, 5, 9] function quickSort(arr) { console.log(arr) if(arr.length <= 1) return arr let midIndex = parseInt(arr ......
Programming Sort

[刷题笔记] ybt1250:The Castle

[Problem](http://ybt.ssoier.cn:8088/problem_show.php?pid=1250) ### Solution 显然bfs,只不过扩散的时候需要判断墙 那么如何判断墙呢?题目只给出了每个方块墙方向的和 原来的思路是可以暴力,很复杂但是可做,代码就不给了。 后来 ......
笔记 Castle 1250 ybt The

「解题报告」CF768G The Winds of Winter

真的不难,为啥是 3300\*。还是模拟赛 T3,很气啊,为什么不先看这个题。 首先贪心很容易发现一定是将当前子树大小最大的那棵树的某个子树移动到最小的那个树内。那么我们记移动的这个子树的大小为 $x$,所有树中最小的树大小为 $a$,最大的为 $c$,次大的为 $b$,那么我们就是在最小化 $\m ......
报告 Winter Winds 768G 768

2023-06-03 Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

运行一个py文件,问题定位到: html=self.get_html(url) soup=BeautifulSoup(html,'lxml') 解决方案:打开cmd,运行下面代码: pip install lxml 等待安装成功,再次运行py文件就不会报这个错了。 ......
requested you features builder install

P1545 [USACO04DEC] Dividing the Path G 题解

丢一发好理解又好写的线段树优化dp。 [题目传送门](https://www.luogu.com.cn/problem/P1545 "题目传送门") ### 简要题意 给定一个长为 $l$ 的线段,求出尽量少的不相交区间覆盖整段线段,要求题目给的所有子区间只被 $1$ 个区间覆盖。 ### 分析 显 ......
题解 Dividing P1545 USACO 1545

首次进入Mysql修改密码报“The MySQL server is running with the --skip-grant-tables option so it cannot execute”--九五小庞

第一次安装完mysql,修改默认密码的时候,报“The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement”。 先刷新mysql然后再重新修改密码即可。 mys ......

[LeetCode] 2101. Detonate the Maximum Bombs

You are given a list of bombs. The range of a bomb is defined as the area where its effect can be felt. This area is in the shape of a circle with the ......
LeetCode Detonate Maximum Bombs 2101

How to fix the for...in loop errors in Python All In One

How to fix the for...in loop errors in Python All In One Python 3 TypeError: string indices must be integers ......
errors Python in loop How

1819B - The Butcher (思维)

大意:有一个大矩形,每次可以横着切或者竖着切,给你n个小矩形,问你原来的大矩形的宽高 思路:可以发现,最多有两种可能,找到所给矩形的宽和高的最大值,模拟check() 知识点:LL H=*max_element(a.begin(), a.end());数组最大值 ve.emplace_back(H, ......
思维 Butcher 1819B 1819 The

The 'Access-Control-Allow-Origin' header contains multiple values'*, *', but only one is allowed.

**报错内容** The 'Access-Control-Allow-Origin' header contains multiple values '*, http://192.168.237.131', but only one is allowed. Have the server send ......