desertification china of
KubeCon China 2023 | 拥抱开源,华为云原生华彩绽放
2023 年度云原生全球旗舰盛会 KubeCon + CloudNativeCon + Open Source Summit China 近日在上海跨国采购会展中心隆重召开。 ......
typescript: Chain of Responsibility Pattern
/** * Chain of Responsibility Pattern 责任链是一种行为设计模式, 允许你将请求沿着处理者链进行发送, 直至其中一个处理者对其进行处理。 * file: Chaints.ts * The Handler interface declares a method fo ......
[LeetCode] 2282. Number of People That Can Be Seen in a Grid_Medium tag: stack.
You are given an m x n 0-indexed 2D array of positive integers heights where heights[i][j] is the height of the person standing at position (i, j). A ......
[LeetCode] 1944. Number of Visible People in a Queue_Hard tag: stack
There are n people standing in a queue, and they numbered from 0 to n - 1 in left to right order. You are given an array heights of distinct integers ......
【论文笔记】A theory of learning from different domains
防盗 https://www.cnblogs.com/setdong/p/17756127.html domain adaptation 领域理论方向的重要论文. 这篇笔记主要是推导文章中的定理, 还有分析定理的直观解释. 笔记中的章节号与论文中的保持一致. 1. Introduction doma ......
Basic concepts of complex number
目录虚数的引入复数和虚数的关系Example - 分辨一个数判断两个复数是否相等的条件共轭复数复数的几何意义、复平面的认识求复数的模 虚数的引入 假设有一个数,可以叫它狗逼数,但是不太好听,改成高大上一点,叫成虚数吧! 对它的定义如下: 虚数=i \(i^2\) = -1 这样搞有什么好处吗? 假设 ......
[CF1158F]Density of subarrays
F - Density of subarrays 屲,平衡复杂度题 首先考虑如何求一个序列的密度 从最左端开始,找到需序列\(A[1...n]\)的最小段\(A[1...a_1]\),使其包含\(1\sim c\)的所有颜色,然后又以\(a_1+1\)为起点,找下一个最短的包含\(1\sim c\) ......
CF915F Imbalance Value of a Tree
原题 翻译 首先观察式子: \[\sum_{i=1}^{n} \sum_{j=i}^{n} \max\{ i,j \} - \min\{i,j\} = \frac{ \sum_{i=1}^{n} \sum_{j=1}^{n} \max\{i,j\} - \min\{i,j\} }{2} = \fra ......
[902] Get the current file's directory of CMD batch scripts
In a batch file, you can use the %~dp0 special variable to get the directory of the currently executing batch file. Here's how you can do it: @echo of ......
[901] Reuse variables of CMD batch scripts
In a batch file, you can reuse a variable to generate different file paths by concatenating the variable with other strings or variables. Here's an ex ......
[900] Print an empty line of CMD batch scripts
Use the echo. command to print an empty line. @echo off echo This is a line of text echo. echo This is a new line of text This will produce the output ......
[898] Convert the data type of a DataFrame column
In Pandas, you can convert the data type of a DataFrame column to a string data type using the .astype() method. Here's how to do it: import pandas as ......
[895] Sort the rows of a DataFrame
In Pandas, the sort_values() method is used to sort the rows of a DataFrame by one or more columns. This method allows you to specify which column(s) ......
引用axios时出现问题——Cannot read properties of undefined (reading 'get') TypeError: Cannot read properties of undefined (reading 'get')
问题描述 我就是按照特别正常的操作进行引用,但是就一直显示axios的get未定义; 问题解决 本来我是使用的this.$axios.get,引用的全局变量, 然后直接改成这样(在该vue界面定义的import,没有使用全局变量): 就能解决这个问题啦! ......
np.expand_dims: AxisError: axis 4 is out of bounds for array of dimension 4
np.expand_dims axis = 0时,[]加在最外面 axis = 1时,给每一行都加[] axis = 2时,给每一个元素都加[] x_train = np.expand_dims(X, axis=4) AxisError Traceback (most recent call las ......
vue显示echarts报错——echarts未在vue界面中定义init——TypeError: Cannot read property ‘init‘ of undefined
问题描述 本来按照网上的教程说是想要定义一个全局变量,就不需要在每个需要用到echarts组件的vue页面里面重新定义了, 直接使用就行,然后就报错了; 问题解决 我觉得应该是我的全局变量定义错误了,但是吧,我就直接改成在该vue页面定义了它,然后再使用: 就没有再使用到那个全局变量,直接这样就通过 ......
AES key — encoded in the machine readable zone of a European ePassport
AES key — encoded in the machine readable zone of a European ePassport 题目地址 AES key — encoded in the machine readable zone of a European ePassport 解题过 ......
D. Effects of Anti Pimples
D. Effects of Anti Pimples 对于样例一: 14出现2次 9出现1次 19出现12次 规律: 1.我们发现1与后面的组合的最大值等于数列的最大值,次数是2^(n-1),这是巧合吗? 2.往下递推,我们可知2与后面的组合为2的倍数的最大值,次数为2^(n-2),... 3.因此 ......
Install docker on CentOS _base China
yum remove docker // 卸载docker yum install -y yum-utils // 扩展和增强 yum 包管理器 # 配置docker安装源 yum-config-manager --add-repo https://download.docker.com/linux ......
D. Sum of XOR Functions
D. Sum of XOR Functions You are given an array $a$ of length $n$ consisting of non-negative integers. You have to calculate the value of $\sum_{l=1}^{ ......
CF1877D Effects of Anti Pimples
计算每个数作为最大值的贡献,计算每个数作为最大值的次数。 每个数作为最大值时的贡献显然是 \(a_i\times cnt_i\),\(cnt_i\) 为 \(a_i\) 在多少种染色方案中作为最大值出现,我们主要来对每个数求 \(cnt_i\)。 我们对于从 \(1\) 到 \(n\) 枚举元素,求 ......
D. Effects of Anti Pimples
D. Effects of Anti Pimples Chaneka has an array $[a_1,a_2,\ldots,a_n]$. Initially, all elements are white. Chaneka will choose one or more different i ......
rdlc报表打印预览时异常 An error occurred during local report processing. The definition of the report 'xxxxxxxxxxxxxxxxxxxx' is invalid
1. rdlc报表打印预览时会出现如下异常: 2. 解决办法: 安装sqlsysclrtypesfor2012.msi并且重启电脑; ......
Solution of 牛客集训提高组第三场2023B 摆渡车
\(\text{Description}\) 有 \(n\) 个乘客要依次经过检票口等待摆渡车,其中第 \(i\) 个人的重量为 \(a_i\),摆渡车载重为 \(M\)。 当乘客 \(i\) 通过检票口时摆渡车来了则他能优先登上摆渡车。 剩下的 \(1 \sim i - 1\) 则尽可能多上人到摆 ......
recursion is detected during loading of “cv2” binary extensions
报错如下 importError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation. 使用版本 linux 需要使用无头版本 4.7.0.72 pyth ......
cannot read properties of undefined (reading 'substring')
{{ dataList.startTime.substring(0, 10) } 先给要用substring的字符串赋空值 dataList: { startTime: '' //赋值为空 } ......
ORA-12012 Error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_<NN> in 12.2 Database
1 错误 2023-10-08T13:11:12.127171+08:00 Errors in file /oracle/diag/rdbms/arch/ARCH2/trace/ARCH2_j000_305066.trc: ORA-12012: error on auto execute of jo ......
引入echarts时报错 “TypeError: Cannot read properties of undefined (reading ‘init‘)“的解决方案
用import * as echarts from 'echarts' 替换 import echarts from 'echarts',便可以有效解决 ......
CF963D Frequency of String
Frequency of String 莪怺逺禧歡仳特噻特。 记每次询问中的字符串为 \(t_i\)。约定字符串下标从 \(1\) 开始。 发现 \(\sum |t_i|\) 与 \(|s|\) 和 \(q\) 同阶,考虑使用 bitset 进行字符串匹配。 我们对于每一种字符 \(c\) 开一个 ......