ofs
A Template of Literature Survey For Reading Papers
Introduction Recently, I'm reading some papers and I had searched for many blogs about paper reading. To my disappointment, most of them are not organ ......
[LeetCode] 2265. Count Nodes Equal to Average of Subtree
Given the root of a binary tree, return the number of nodes where the value of the node is equal to the average of the values in its subtree. Note: Th ......
A Template of Daily Log For Recording Your Project
Daily Log 1 Author: Zhihao Li Date: November 2, 2023 Project: Robotics Stage I: Prepare the environment Records And Backups Configure Model Virtual En ......
启动nginx报错nginx: [emerg] unexpected end of file, expecting "}" in /usr/local/nginx/conf/nginx.conf:
启动nginx报错:“nginx: [emerg] unexpected end of file, expecting “}” in /usr/local/nginx/conf/nginx.conf:118”重启nginx时,报这么个错: [root@localhost conf]# /usr/lo ......
[PG] Another example of FCSA
function actual arguments and cadidates T = (193341, 23, 23) C = [(193341, 1700, 1700), (1700, 1700, 1700), (1043, 1700, 1700)] query type information ......
debian 11 安装docker-ce 出现异常 “Hash Sum mismatch Hashes of expected file”
最近接手一个新的项目,需要在内网布置一套新系统,有docker 版本的要求,原来的docker 版本过低需要进行升级,按部就班的升级docker如下 安装 # 这里是用的debian 11 # 如果安装过docker apt-get remove docker docker-engine docke ......
in org.springframework.cache.annotation.ProxyCachingConfiguration required a bean of type 'org.springframework.cache.interceptor.CacheOperationSource' that could not be found
我的项目是springboot项目,在启动过程中报错如何下 Parameter 0 of method cacheAdvisor in org.springframework.cache.annotation.ProxyCachingConfiguration required a bean of ......
[933] In ArcPy, how to get the geometry of a feature from a shapefile
In ArcPy, you can get the geometry of a feature from a shapefile using the SearchCursor or UpdateCursor and the SHAPE@ token to access the geometry of ......
[932] In ArcPy, how to get the extent of a shapefile
In ArcPy, you can get the extent of a shapefile using the Describe function and the extent property. Here's how you can do it: import arcpy # Set the ......
Sources of air pollution in China
In concrete terms, the composition of the rampant smog seen in major Chinese cities is an amalgamation of SO2, NOX, CO, O3 and particulate matter that ......
uniapp开发编写nvue报警Unhandled error during execution of render function
关键的两行报错如下: [Vue warn]: Unhandled error during execution of render function [Vue warn]: Unhandled error during execution of scheduler flush. This is li ......
Strings of Impurity
link 不懂为什么都写平衡树,明明 set 就好了啊,思路跟平衡树差不多,实现起来较为简单。 int n, m, k; int s[N]; string s1, s2; int cnt[N]; vector<int> t; set<int> p[N]; int main() { ios::sync ......
docker安装msyql5.7报错:mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
安装mysql5.7时使用 #docker拉取镜像命令 docker pull mysql:5.7 #docker安装MySQL命令 docker run -p 3306:3306 --name mysql -v /mydata/mysql/log:/var/log/mysql -v /mydata ......
【CVPR2023】Efficient and Explicit Modelling of Image Hierarchies for Image Restoration
> 论文:https://readpaper.com/paper/4728855966703960065 代码:https://github.com/ofsoundof/GRL-Image-Restoration 这个论文的代码地址叫GRL,意思是 Global, Regional, Local 的 ......
题解 ABC326E【Revenge of "The Salary of AtCoder Inc."】
根据期望的线性性,总工资的期望等于在每一个 \(i\) 处获得的工资的期望之和,而在 \(i\) 处获得的工资的期望 \(E(i)=A_i\times p(i)\),其中 \(p(i)\) 表示掷骰子掷到 \(i\) 且有效的概率。 初始 \(p(0)=1\),则只有从 \(0\sim i-1\) ......
报错分析:Value specified in CPUShares is out of range: unknown
启动容器时报错: Caused by: org.freedesktop.DBus.Error.InvalidArgs: Value specified in CPUShares is out of range: unknown 初看log不知从哪里来,既不是docker也不是容器运行时,也不是ker ......
git报错 | error: You have not concluded your merge (MERGE_HEAD exists). hint: Please, commit your changes before merging. fatal: Exiting because of unfinished merge.
git报错 error: error: You have not concluded your merge (MERGE_HEAD exists). hint: Please, commit your changes before merging. fatal: Exiting because of ......
AT_abc326_e Revenge of "The Salary of AtCoder Inc." 题解
AT_abc326_e Revenge of "The Salary of AtCoder Inc." 题解 一道简单的概率论+动态规划题目(然而我赛时没看这道题 题意 有一个长度为 \(n\) 的序列 \(A\)、一个 \(n\) 面骰子,掷若干次骰子,如果这一次掷骰子的点数小于等于上一次的点数, ......
[LeetCode] 1274. Number of Ships in a Rectangle
(This problem is an interactive problem.) Each ship is located at an integer point on the sea represented by a cartesian plane, and each integer point ......
Introduction of Deep Reinforcement Learning
Reading Notes about the book Deep Reinforcement Learning written by Aske Plaat Recently, I have been reading the book Deep Reinforcement Learning writ ......
CF1889D. Game of Stacks
啊啊啊每次补完题都感觉这题我场上应该是能想出来的啊! 考虑简化问题:若每个栈内只有一个元素,how。 此时我们发现所有栈之间构成了一个内向基环树。且环是没有用的,因为我们在环上走一圈之后仍然会回到原点。所以不妨把所有环边删除,此时每棵树的答案即为树根。 而对于原问题,同理,我们可以考虑不断找环,每找 ......
1418 -This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration
今天在mysql中创建函数的时候,报错如下: ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is ......
[LeetCode] 1358. Number of Substrings Containing All Three Characters 包含所有三种字符的子字符串数目
Given a string s consisting only of characters a, b and c. Return the number of substrings containing at least one occurrence of all these characters ......
diskraid.exe是Windows Server操作系统中自带的一个命令行工具,用于创建和管理软件RAID(Redundant Array of Independent Disks)卷。使用软件RAID卷可以在多个磁盘上分布数据,提高数据冗余性和性能
diskraid.exe是Windows Server操作系统中自带的一个命令行工具,用于创建和管理软件RAID(Redundant Array of Independent Disks)卷。使用软件RAID卷可以在多个磁盘上分布数据,提高数据冗余性和性能。 使用diskraid.exe的优点包括: ......
How to Find the Size of a DB2 Database
How to Find the Size of a DB2 Database EMBER CROOKS JUNE 19, 2012 15 COMMENTS How big is it? How much space do we need if we copy it? How big will it ......
PAT甲级:1174 Left-View of Binary Tree
题目:1174 Left-View of Binary Tree 25分 题解:层次遍历输出每一行最左边的元素。(最开始以为输出部分节点的左子树...想不到思路) using namespace std; #include <iostream> #include <vector> #include ......
Desertification of China
China is one of the countries that see the largest desertification areas with the largest population affected, and the most severe wind-sand hazards i ......
Unveiling the Dangers of Land Pollution
Unveiling the Dangers of Land Pollution Land, the very foundation of life, sustains ecosystems, supports agriculture, and provides spaces for human ha ......
Tips of C
1.减小变量的跨度和存活时间,可减小代码的复杂度。所以尽可能少使用全局变量 2.变量的赋值越明显越好! 3.准备抛弃变量时,要给它赋值一个不合理的数值。 例如,可以在删除一个指针后把它的值设为NULL。 4.函数命名尽可能采用动宾结构(尤其子函数) 5.区分类变量和全局变量。若类外部的子程序需要使用 ......
c: chain Of Responsibility
/** * @file chainOfResponsibility.h * @author your name (geovindu) * @brief chain Of Responsibility 职责链模式 * @version 0.1 * @date 2023-10-28 * IDE: VSC ......