Title: Given an integer array nums. Return true if any value appears at least twice in the array, and return false if every element is distinct. Examp[......] 继续阅读
Title: Given an integer array nums. Return true if any value appears at least twice in the array, and return false if every element is distinct. Examp[......] 继续阅读
过年假期在学习了一些领域驱动知识,这里做个汇总。 在领域驱动设计中,程序进行分层,是其重要的一部分,因此这里以分层开始,逐步了解 DDD 中的一些概念。 数据映射层 首先第一步是数据库,数据库这一部分是持久层,负责实体对象和数据库表的映射以及数据库连接配置、数据库上下文配置、ORM 配置等,数据库和[......] 继续阅读
During the New Year's holiday, I studied some domain-driven design knowledge. Here is a summary. In domain-driven design, layered architecture is an i[......] 继续阅读
Database Sharding Generally speaking, database sharding has the following methods: Hash-based sharding: Calculating the hash value based on the ident[......] 继续阅读
分库分表 一般来说,数据库分库分表,有以下做法: 按哈希分片:根据一条数据的标识计算哈希值,将其分配到特定的数据库引擎中; 按范围分片:根据一条数据的标识(一般是值),将其分配到特定的数据库引擎中; 按列表分片:根据某些字段的标识,如果符合条件则分配到特定的数据库引擎中。 分库分表的[......] 继续阅读
HammerDB is a database stress testing tool, download link: https://www.hammerdb.com/download.html HammerDB is a leading benchmark and load testing sof[......] 继续阅读
scanme.nmap.org 是要扫描的域名或 IP 地址。 package main import ( "fmt" "net" "sort" ) func main() { ports := make(chan int, 100) results :=[......]继续阅读
scanme.nmap.org is the domain or IP address to be scanned. package main import ( "fmt" "net" "sort" ) func main() {[......]继续阅读
Manjaro 更新软件、安装软件时,提示: 正在下载所需的密钥...... :: 是否导入 PGP 公钥 A85E811EB4CA2E08 ,"Caleb Maclennan <alerque@archlinux.org>"? [Y/n] y :: 是否导入 PGP 公钥 E0959F[......]继续阅读
Manjaro prompts when updating or installing software: 正在下载所需的密钥...... :: 是否导入 PGP 公钥 A85E811EB4CA2E08 ,"Caleb Maclennan <alerque@archlinux.org[......]继续阅读
为了配置 Linux 免密登录,之前找到的方法都是比较麻烦的,后面发现一种只需要两个步骤就能完成免密登录配置的方法。 假如,在 Linux A 免密登录 Linux B。 那么在 A 上生成 私钥公钥: ssh-keygen 生成后,将公钥推送到 B 中: ssh-copy-id <user[......]继续阅读
为了配置 Linux 免密登录,之前找到方法都是比较麻烦的,后面发现一种只需要两个步骤就能完成免密登录配置的方法。 假如,在 Linux A 免密登录 Linux B。 那么在 A 上生成 私钥公钥: ssh-keygen 生成后,将公钥推送到 B 中: ssh-copy-id <user&[......]继续阅读
Learning Requirements As mentioned earlier, the logical structure of data consists of linear structures and non-linear structures. The elements of a l[......] 继续阅读
学习要求 在前面提到过,数据结构的逻辑结构有线性结构和非线性结构,线性结构的元素是具有前趋和后续的 1:1 的关系。非线性结构有集合、图、树。 本篇讨论的线性表是线性结构,要求掌握线性表的定义和基本操作。 线性表的定义和基本操作 【1】线性表的定义 线性表示例: A、B、C、D ... Z 等26个[......] 继续阅读
Learning Requirements Algorithm Complexity Calculation Methods Analysis methods for time complexity and space complexity of algorithms. Algorithm Desc[......] 继续阅读
学习要求 算法复杂度计算方法 算法时间复杂度和空间复杂度的分析方法。 算法的描述和分析 【1】 数据的运算通过算法(Algorithm)描述的 算法是数据结构课程的重要内容之一。 算法是任意一个良定义的计算过程,它以一个或多个值作为输入,并产生一个或多个值作为输出。因此,算法是一系列将输入转换为输出[......] 继续阅读
Learning Requirements Concepts and Terminology The basic concepts of data structures: data, data elements, data structures, logical structure of data,[......] 继续阅读
学习要求 概念和术语 数据结构的基本概念:数据、数据元素、数据结构、数据的逻辑结构、物理结构、算法等。 基本概念和术语 【1】 数据 (Data) 是信息的载体,能够被计算机识别、存储和加工处理。 数据元素(Data Element) 是数据的基本单位,有时数据元素也称为元素、节点、顶点、记录。 数[......] 继续阅读
pfx 转换为其他类型证书的方法。 pfx 转 pem openssl pkcs12 -in ssl.pfx -nodes -out ssl.pem pem 转 cer openssl x509 -in ssl.pem -inform PEM -out ssl.der -outform[......]继续阅读