错题bug all one
[ARC135C] XOR to All 题解
include <bits/stdc++.h> typedef long long valueType; typedef std::vector ValueVector; constexpr valueType MAXB = 31; int main() { std::ios::sync_with_ ......
Snapshot appears to have been created more than one day into the future!
Snapshot appears to have been created more than one day into the future! Raspberry PI 4b上安装freebsd13.2 aarch系统后,使用ssh链接,输入portsnap fetch extract命令,提示: ......
Web3.js All In One
Web3.js All In One Web3 Web3.js A JavaScript library for building on Ethereum Comprehensive. Everything you need to start interacting with the Ethereu ......
How to add a string that contains whitespace to array in shell script All In One
How to add a string that contains whitespace to array in shell script All In One
......
图像二值化后相减的bug
图像二值化后是uint8类型. 不能直接做减法. 因为2个uint8 减完还是uint8. 没有符号. 解法: astype提升即可. dangqian=dangqian.astype(int) tmpmuban=tmpmuban.astype(int) aaaa=np.abs(tmpmuban-d ......
Docker|--E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
错误 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them ......
日常Bug排查-读从库没有原子性?
日常Bug排查系列都是一些简单Bug排查。问题虽小,但经常遇到,了解这些问题,会让我们少走点弯路,提升效率。说不定有些问题你遇到过哦:) Bug现场 业务开发同学突然问了笔者一个问题,从库读会不会没有原子性?我下意识的反应怎么可能,只要是遵守MySQL主从Replication协议的原子性至少是能够 ......
Go - ERROR: fatal error: all goroutines are asleep - deadlock!
main.go: package main import "fmt" func main() { ch := make(chan int) ch <- 1 a := <-ch fmt.Println(a) } Got error: zzh@ZZHPC:/zdata/MyPrograms/Go/tes ......
Congratulations to Google on its 25th birthday All In One
Congratulations to Google on its 25th birthday All In One
祝贺 Google 25 周岁生日 All In One
......
How to get the original size of an image using JavaScript All In One
How to get the original size of an image using JavaScript All In One
如何使用 JavaScript 获取一个图片像的原始大小
naturalWidth & naturalHeight
aspect ratio / 纵横比
......
How to fix TypeScript error: expression of type can't be used to index type All In One
How to fix TypeScript error: expression of type can't be used to index type All In One
type guard
......
[论文阅读] Anomaly detection via reverse distillation from one-class embedding
Anomaly detection via reverse distillation from one-class embedding Introduction 在知识蒸馏(KD)中,知识是在教师-学生(T-S)对中传递的。在无监督异常检测的背景下,由于学生在训练过程中只接触到正常样本,所以当查询是 ......
Linux shell script if condition control flow methods All In One
Linux shell script if condition control flow methods All In One
if...then...fi / if...then...else..fi / if...then...elif...then...fi
......
修改sudoer ALL=(ALL) ALL什么意思
linuxtechi ALL=(ALL) ALL 上述命令中: linuxtechi 表示用户名 第一个 ALL 指示允许从任何终端、机器访问 sudo 第二个 (ALL) 指示 sudo 命令被允许以任何用户身份执行 第三个 ALL 表示所有命令都可以作为 root 执行 ......
Tesla Bot All In One
Tesla Bot All In One
特斯拉机器人
创建一个通用、双足、自主人形机器人,能够执行不安全、重复或无聊的任务。
......
Linux $PS1 and zsh All In One
Linux $PS1 and zsh All In One
macOS 自定义命令行提示符
......
MongoDB and mongoose All In One
MongoDB and mongoose All In One
Node.js
......
All-in-One(二):硬件直通
# 简介 硬件直通简单来说就是让虚拟机直接使用物理机的硬件资源,例如网卡、显卡等。 # 配置 ## 手动启用 IOMMU 打开 PVE 的 shell 执行以下命令: ```shell # 编辑grub文件 nano /etc/default/grub # 修改GRUB_CMDLINE_LINUX_ ......
All-in-One(三):Openwrt
# 简介 **OpenWrt **是适用于嵌入式设备的一个 Linux 发行版。相对原厂固件而言,OpenWr t不是一个单一、静态的固件,而是提供了一个可添加软件包的可写的文件系统。这使用户可以自由的选择应用程序和配置,而不必受设备提供商的限制,并且可以使用一些适合某方面应用的软件包来定制你的设备 ......
All-in-One(一):PVE
# 简介 **Proxmox Virtual Environment**(简称:**Proxmox VE**、**PVE**),是一个开源的服务器虚拟化环境 Linux 发行版。Proxmox VE 基于 Debian,使用基于 Ubuntu 的定制内核,包含安装程序、网页控制台和命令行工具,并且向 ......
All-in-One(五):Ipv6暴露公网
# 简介 **网际协议第6版**(英语:**I**nternet **P**rotocol **v**ersion **6**,缩写:**IPv6**)是网际协议的最新版本,用作互联网的协议。用它来取代 IPv4 主要是为了解决IPv4地址枯竭问题,同时它也在其他方面对于 IPv4 有许多改进。 # ......
How to install a command once for all login users in Linux All In One
How to install a command once for all login users in Linux All In One
/etc/profile & /etc/profile.d/
......
avdevice_register_all()解析备忘
以下解析基于fmpeg-6.0。 void avdevice_register_all(void) { avpriv_register_devices(outdev_list, indev_list); }从上面可以看出来,avdevice_register_all()通过avpriv_regist ......
How to use a shell script to check whether a command had been installed in the Linux server All In One
How to use a shell script to check whether a command had been installed in the Linux server All In One
shell script error [: :需要整数表达式 / [: -eq:需要一元表达... ......
自定义实现promise.all
Promise.all是一个在JavaScript中常见的函数,用于处理一个Promise数组。当数组中的所有Promise都完成时,Promise.all将返回一个新的Promise,该Promise将解析为包含所有输入Promise解析值的数组。如果任何一个Promise失败,返回的Promis ......
How to print a string with a variable by using the echo command in the shell script All In One
How to print a string with a variable by using the echo command in the shell script All In One
Node.js & nvm
......
fastjson bug: parseObject 死循环
版本: com.alibaba:fastjson:1.2.83 描述: 反序列化时,会陷入死循环 JSON:[""] 引起bug代码: List<Map<String, Object>> map = JSON.parseObject("[\"\"]", new TypeReference<List< ......
XML Schema All In One
XML Schema All In One
XSD
An XML Schema describes the structure of an XML document.
The XML Schema language is also referred to as XML Schema Definiti... ......