solution family sets of
[888] How to get the directory of the current Python file
To get the directory of the current Python file, you can use the os.path module in combination with the __file__ attribute. Here's how you can do it: ......
requests 响应头部转json时报错TypeError: Object of type CaseInsensitiveDict is not JSON serializable
前言 requests 响应头部在转json时,想格式化输出,结果报错TypeError: Object of type CaseInsensitiveDict is not JSON serializable 报错详情 示例代码 import requests import json # 上海悠悠 ......
ORA-04030: out of process memory when trying to allocate 27760032 bytes (qmxuParseXobWi,qmxsaxAllocMemInternal)
1.alter日志 2023-09-24T19:59:02.474578+08:00LOGMINER: Begin mining logfile for session -2147289087 thread 1 sequence 2185, +DATA/DB/ONLINELOG/redo05a.lo ......
C++踩坑--set与重载<
set与重载< set是有序容器,在定义容器的时候必须要指定 key 的比较函数。只不过这个函数通常是默认的 less,表示小于关系,不用特意写出来: template< class Key, // 模板参数是key类型,即元素类型 class Compare = std::less<Key> // ......
Uncaught TypeError: Cannot read properties of undefined (reading 'form')问题的解决
问题描述 使用vue3执行数据添加操作时,发现了这个错误,使用测试按钮拿文本框数据,一直报错拿不到: 问题解决 原来是vue2在执行这个操作时: 里面放this.form; 而vue3在执行这个操作时, 里面放的却是:form ......
the solution of Mining Your Own Business
the description of problem (我看的是 PDF 里面的原题所以这里描述会和题目不一样,但是大意一致) 给定一个未必连通的无向图,问最少在几个点设置出口,可以保证任意一个点坍塌后,工人们仍然可以从出口逃生,同时问设置最少出口的方案数量。 thoughts & solution ......
1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column
博客园 首页 新随笔 联系 管理 订阅 随笔- 111 文章- 1 评论- 3 阅读- 17万 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'i ......
ES报错:[parent] Data too large, data for [<http_request>] would be larger than limit of XXXX
ES报错:[parent] Data too large, data for [<http_request>] would be larger than limit of XXXX 当es这个错误的时候 :[parent] Data too large, data for [<http_reques ......
Consider using `allow_partial_search_results` setting to by
Elasticsearch data node 重啟導致 sharding 找不到家 今天遇到單位同仁重啟 Elasticsearch data node 後發現 Cluster 狀態變成 Red 的狀況,這篇記錄遇到這個問題時該怎麼處理 會遇到這個問題通常是「遺失的 Data node」大於「in ......
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
MySQL有any_value(field)函数,他主要的作用就是抑制ONLY_FULL_GROUP_BY值被拒绝 官方有介绍,地址:https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_any-v ......
[LeetCode] 1353. Maximum Number of Events That Can Be Attended 最多可以参加的会议数目
You are given an array of events where events[i] = [startDayi, endDayi]. Every event i starts at startDayi and ends at endDayi. You can attend an even ......
Python 的 POC(Proof of Concept,概念验证)
Python 的 POC(Proof of Concept,概念验证) requests 当涉及到编写 Python 的 POC(Proof of Concept,概念验证)时,你可以按照以下步骤进行: 确认目标:明确你要验证的漏洞或要探测的系统。 寻找漏洞或系统的相关信息:查找关于该漏洞或系统的文 ......
gym100702D Log Set
gym100702D Log Set 版本 T0。 学背包不做 Log Set,就像打二游不玩某二字开放世界游戏,追星不追理塘王丁真珍珠,玩泣系旮旯不玩克拉纳的,只能度过一个相对失败的人生。 Problem 有一个大小为 \(m(m \le 60)\) 的多重集 \(S\),它的所有子集(包括空集) ......
## Could not find a working installation of Boost.
001、问题 002、解决方法 (base) [root@pc1 MaSuRCA-3.3.1]# yum -y install boost boost-devel (base) [root@pc1 MaSuRCA-3.3.1]# yum -y install gcc-c++.x86_64 gperf ......
solution-at-abc321-c
题意 将所有每位满足递减的整数排序,问第 \(k\) 大的是多少,不包括 \(0\)。 思路 我们发现最大的满足要求的整数是 \(9876543210\) ,只有 \(1e10\) 的大小,\(k\) 只有不到 \(3000\) 的大小,可以从小到大枚举所有的数,从 T1 粘来判断函数打一个表就解决 ......
1.单列集合(接口 Collection,List,Set)
单列集合(接口 Collection,List,Set) 单列集合体系结构: 特点: 1.List系列集合: 添加的元素是有序、可重复、有索引; 2.Set系列集合: 添加的元素是无序、不重复、无索引; 3.有序为存入和取出都是一样的顺序,非内部里的顺序; Collection 概念: Collec ......
题解 CF1257G【Divisor Set】
problem 我们说一个集合 \(D\) 是一个好的集合,当不存在集合中的两个不同元素 \(a,b\) 使得 \(a\) 是 \(b\) 的约数。 给定一个超大整数的素数表示形式 \(N = \prod_{i=1}^n{p_i}\),要求从它的所有因子中选择尽可能多的元素组成一个好的集合。 问这个 ......
Determinant of $A+Bz$
// created on 23.09.22 目录Determinant of \(A+Bz\) Determinant of \(A+Bz\) You are given two \(n\times n\) matrices \(A\) and \(B\) . For each \(k=0,1,\ ......
解决:sass-loader@6.0.6 requires a peer of node-sass@^4.0.0 but none is installed. You must install peer dependencies yourself.
参考:https://blog.csdn.net/hancoder/article/details/113821646 去https://github.com/sass/npnode-sass 或者 https://github.com/sass/node-sass/releases 都可以看到no ......
Uncaught TypeError: Cannot read properties of undefined (reading 'type') from echarts
DON'T use ref or reactive to wrap the echarts instance. Use a common variable or shallowRef to avoid the deep watch for echarts instance. 不要使用 ref 或 r ......
MySQL 出现 String Index out of range: x 的原因
前言 调试代码时遇到一个很奇怪的问题, 对于一个很简单的 sql, 执行时会时不时的报异常 String Index out of range: x SQL: select * from test where area = 10 但直接把 SQL 丢 SQL 工具里跑又没什么问题, 百度了一圈都没找 ......
Competition Set - 数学相关
CF645F Link&Submission. 利用 \(\sum\limits_{d|n}\varphi(\frac{n}{d})=n\),只要对每个数 \(x\),求出 \(cnt_x\) 表示 \(x\) 的倍数数目,然后 \(\sum\limits_{x}\varphi(x)C_{cnt_x ......
Solution -「HDU」Ridiculous Netizens
Desc. 给定一棵 \(N\) 个节点无根树,找出满足以下条件的集合 \(S\) 的数量: \(S \subseteq \{1,\dots,n\}\); \(S\) 的导出子图联通; \(\displaystyle\prod_{v \in S} a_v \leqslant M\)。 Sol. 点分 ......
使用Object.defineProperty() 定义对象属性时,如已设置 set 或 get, 就不能设置 writable 和 value 中的任何一个了。TypeError: Invalid property descriptor. Cannot both specify accessors and a value or writable attribute, #<Object>
使用Object.defineProperty() 定义对象属性时,如已设置 set 或 get, 就不能设置 writable 和 value 中的任何一个了,不然会报如下错误。 TypeError: Invalid property descriptor. Cannot both specify ......
. Temporal table join currently only supports 'FOR SYSTEM_TIME AS OF' left table's time attribute field
org.apache.flink.table.api.ValidationException: SQL validation failed. Temporal table join currently only supports 'FOR SYSTEM_TIME AS OF' left table' ......
Exam DP-300: Administering Microsoft Azure SQL Solutions 微软Azure SQL Solutions管理员考试DP-300 (汉化)
作为该考试的考生,您应具备构建数据库解决方案方面的主题专业知识,这些解决方案旨在支持使用数据库构建的多种工作负载: 企业内部 SQL Server Azure SQL 服务 您是一名数据库管理员,负责管理使用 SQL Server 和 Azure SQL 服务构建的内部部署和云数据库。 作为 Azu ......
font-family样式支持多个属性
font-family样式支持多个属性: 在CSS中,可以通过在属性值中使用逗号分隔来指定多个字体族名称。 浏览器会按照所指定的顺序逐个检查字体族名称,直到找到一个可用的字体为止。 如果找不到可用字体,则会使用浏览器的默认字体。以下是一个示例: font-family: Arial, Helveti ......
A piece of cake
1. A piece of cake(易事情)2. Break a leg(祝好运)3. Don't count your chickens before they hatch(不要过早乐观)4. Don't put all your eggs in one basket(不要孤注一掷)5. Eve ......
题解 ARC141D【Non-divisible Set】
这个题不是网络流。 problem 我们说一个集合 \(D\) 是一个好的集合,当不存在集合中的两个不同元素 \(a,b\) 使得 \(a\) 是 \(b\) 的约数。 给定 \(N\) 个整数的一个集合 \(S\),值域均落在 \([1, 2*M]\) 内。 对 \(S\) 中的每个元素 \(A_ ......