certificate chain trust of

house_of_snake:一条高版本Glibc IO调用链

house_of_snake:一条高版本Glibc IO调用链 本文首发于[看雪论坛],仅在个人博客记录 前言 之前听说glibc2.37删除了_IO_obstack_jumps这个vtable。但是在源码里还看到obstack结构体存在,那么glibc2.37真的不能再调用_IO_obstack_ ......
house_of_snake 版本 house Glibc snake

TabError: inconsistent use of tabs and spaces in indentation

python 报错 TabError:缩进中不一致地使用制表符和空格 解决方法该bug的原因是,各行存在不同的缩进空格,未统一化。只需将出错的代码行及其前边的所有行,全选中,统一还原靠左边,然后再统一执行缩进快捷键即可! ......

[ARC127D] Sum of Min of Xor 题解

先把 $i$ 对 $j$ 的约束去掉。没有 $\min$ 的情况是 trival 的,发现瓶颈在于如何比较两个数之间的大小。 可以发现,对两个二进制数,我们本质上是想要找到它们第一个不同的位置。于是考虑从最高位开始,将 $(a_i,b_i)$ 按最高位分组为 $(0,0),(0,1),(1,0),( ......
题解 127D of ARC 127

Cannot read properties of undefined (reading 'offsetWidth') 报错的解决

今天在运行后台系统时突然发现报以上错误,百思不得其解,因为最近并没有修改过该页面。 源代码如下: 最开始以为是不是用法改了,查询并尝试了许久,并没有什么用,同时发现出现一个css找不到的报错: 猜测是否引用element plus样式版本文件不对。因为昨天有吧node_module删了,更新了新的依 ......

[Javascript] Improve performance of Array.reduce

Compare two code snippet const people = [ {id: 1,name: 'John', age: 45}, {id: 2,name: "Op", age: 32}, {id: 3, name: "Wade",age: 39 } ] // option 1 con ......
performance Javascript Improve reduce Array

Code: 43, e.displayText() = DB::Exception: Invalid types of arguments 2 and 3 of if (version 20.8.3.18 (official build))错误

Mysql当ifnull()和sum()联合使用时不会出现问题,如以下sql查询语句: select ifnull(sum(`sales_total`),0) sales_total, ifnull(sum(`order_count`),0) order_count, ifnull(sum(`avg ......

现代计算机图形学——P1-2. Review of Linear Algebra

(自用笔记) P1. (虚假的P1)计算机图形学、其研究内容及其相关领域与学科 P1. (真正的P1)Overview of Computer Graphics P2. Review of Linear Algebra P1 计算机图形学——是研究怎样用计算机输入、生成(处理)、存储、显示、输出图形 ......
图形 Algebra 计算机 Linear Review

multiple definition of `MainWindow::MainWindow(QWidget*)

qt刚建好工程运行的时候没问题,后面写了一点东西之后,再运行就发现出现MainWindow重复,我不理解。 解决方法:删除重复的引用。 再重新构建一下就好了。 ......
MainWindow definition multiple QWidget of

Server Error `defineOptions()` in <script setup> cannot reference locally declared variables (COMPONENT_NAME) because it will be hoisted outside of the setup() function.

这个错误提示是因为在<script setup>标签中使用了defineOptions()函数,并且该函数中引用了一个本地声明的变量(比如COMPONENT_NAME)。由于<script setup>中的代码会被自动包装在setup()函数内部执行,而defineOptions()函数会被提升到s ......

Python调用TensorFlow时出现:FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated

百度了很多说是numpy版本过高,将numpy版本降低即可,我降低为1.16.2 但是会碰到pip uninstall numpy卸载不掉的问题 我一直忽视了是在conda创建的虚拟环境acc中运行的这个代码, 进入cmd pip uninstall时没注意是在base环境下,还是在自己创建的虚拟环 ......

container_of宏

在 C 语言中,container_of 是一个宏定义,可以通过指向结构体中的成员来获取该结构体的地址。它的定义如下: #define container_of(ptr, type, member) \ ((type *)((char *)(ptr) - offsetof(type, member) ......
container_of container of

case of

函数参数的模式是case of表达式的一种语法替代。这两段代码做同样的事情,并且是可以互换的,如下 head' :: [a] -> a head' [] = error "empty list~" head' (x : _) = x head' :: [a] -> a head' xs = case ......
case of

Assignment to property of function parameter 'XXX' no-param-reassign 记录

在react项目中写了一个工具方法将两个数组数据进行整合,用了双重for循环,但是在提交代码时报了eslint的no-param-reassign 结果效果是有了,但是报lint错误,图片中已是解决后的代码,主要是因为防止我们这个参数造成属性覆盖,如图我使用的是Object.assign方法将我们的 ......

解决ORA-04031:unable to allocate 56bytes of shared memory

登录PL/SQL Developer出现ORA-04031错误。 解决方式: 用oracle账号登录linux服务器 进入sqlplus sqlplus / as sysdba 查看sga大小 show parameter sga; 扩大sga空间 alter system set sga_max_ ......
allocate unable memory shared 04031

k8s部署x509-certificate-exporter

[root@hybxvuca01 monitoring]# cat x509-certificate-exporter.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: x509-certificate-exporter namespa ......

devicemapper: usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.

centos7下docker排坑之WARNING: devicemapper: usage of loopback devices is strongly discouraged docker 安装完成之后,docker info命令下的WARING 首先有两种规避手段,一种是调整devicemap ......

bootstrap5 .jqurey报错Cannot read properties of null (reading 'show')

// to enable tooltips with the default configuration $('[data-bs-toggle="tooltip"]').tooltip() // to initialize tooltips with given configuration $('[ ......

被ST-Link【The content of ST-Link is corrupt】【Communication error with ST-Link】折磨是我的宿命

直接跳转【4】看解决方法,祝大家都顺利解决 【1】我的尝试 【2】我的错误情况 【3】我无用的努力 【尝试1:点击setting之后的第一个debug页面里面的port要改成sw,不然下载不成功】,其实这样只是比较节约端口而已,当然一般还是都选择【SW】 【尝试2:output里记得把 create ......
ST-Link Link Communication 宿命 ST

[LeetCode] 1339. Maximum Product of Splitted Binary Tree 分裂二叉树的最大乘积

Given the root of a binary tree, split the binary tree into two subtrees by removing one edge such that the product of the sums of the subtrees is max ......
乘积 LeetCode Splitted Maximum Product

[LeetCode] 2405. Optimal Partition of String

Given a string s, partition the string into one or more substrings such that the characters in each substring are unique. That is, no letter appears i ......
Partition LeetCode Optimal String 2405

cpp: Sorting a List of Objects with Custom Comparator or Lambda Function

PigInfo.h #ifndef PIGINFO_H #define PIGINFO_H #include <iostream> #include<string.h> #include<math.h> using namespace std; /* 实体类 https://learn.micros ......
Comparator Function Sorting Objects Custom

Error resolving template [date], template might not exist or might not be accessible by any of the configured Template Resolvers

这种情况要不就是你想加载页面 @RequestMapping("/welcome1.html")public String welcome1(){ return "/welcome1";} 但写错了 改正: @RequestMapping("/welcome1.html")public String ......

Count Of Range Sum

Count Of Range Sum 题目: 求数组arr的子数组累加和在range [low, high]范围(闭区间)的个数 方法一:归并排序 // 思路与转换:累加和 => 前缀和数组sum, // i > j, 若sum[i] - sum[j] in [low, high], 则arr中[j ......
Count Range Sum Of

vue项目内存溢出,JavaScript heap out of memory

第一种方式: 参考地址:https://blog.csdn.net/wj197927/article/details/124323835 第二种方式: 修改NODE_OPTIONS NodeJS启动的应用,内存使用是有上限的;默认为4GB(不同机器环境可能会有不同)。NodeJS应用使用的内存上限, ......
JavaScript 内存 项目 memory heap

required a bean of type 'org.springframework.web.client.RestTemplate' that could not be found.

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2023-04-04 14:54:30.963 ERROR 49212 [ ......

The role of local toxicity testing in evaluating new drugs

Local toxicity test is an integral part of toxicology research, which is designed to study the toxic reactions caused by local (via eyes, ears, mouth,... ......
evaluating toxicity testing local drugs

3.Utilization of discoverer processes over 75%

zabbix server 在开启Discovery功能后,zabbix web页面报警提示:“Zabbix server :Ulitization of discoverer processes over 75%”。 原因: 每个discovery任务占用一个discovery进程,但是zabbi ......
Utilization discoverer processes over 75%

A Theory of Usable Information Under Computational Constraints

Xu Y., Zhao S., Song J., Stewart R. and Ermon S. A theory of usable information under computational constraints. International Conference on Learning ......

【论文翻译】LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS

LORA: LOW-RANK ADAPTATION OF LARGE LANGUAGE MODELS 论文地址:https://arxiv.org/pdf/2106.09685.pdf 代码地址:https://github.com/microsoft/LoRA 摘要 自然语言处理的一个重要范式包 ......

Micro-Estimates of Wealth for all Low 数据搜集

Micro-Estimates of Wealth for all Low- and Middle-Income Countries 1. The first test uses data from 15 LMICs that have collected and published census ......