learniing doing by

[LeetCode] 2149. Rearrange Array Elements by Sign

You are given a 0-indexed integer array nums of even length consisting of an equal number of positive and negative integers. You should rearrange the ......
Rearrange LeetCode Elements Array 2149

"none" is not exported by the List::Util module

001、make命令报错如下: "none" is not exported by the List::Util module 002、解决方法 。 ......
quot exported module none List

.Net 5.0 程序在 Linux 环境访问 SqlServer 2008R2 莫名报错:Connection reset by peer

同样的代码,在 Windows 上运行的好好的,拿到 CentOS 7 上运行就出现报错 Connection reset by peer 的处理方法。 ......
Connection SqlServer 环境 程序 2008R2

采坑-阿里云 kex_exchange_identification: read: Connection reset by peer

自己买了台阿里的测试服务器,打开终端,输入命令 ssh root@xxx 等待输入密码。 **报错:kex_exchange_identification: read: Connection reset by peer****** 昨天刚用的,今天咋回事,然后试了试公司的服务器是可以的。然后就开始百 ......

do-while循环

do-while循环其实很简单,只在while循环的基础做了些许改变。 一般格式: do { <循环体语句> }while(<循环条件>); 下面是do-while循环的流程图: 在进入循环的时候不做判断,而是在执行完一轮循环体的代码之后,再来检查检查循环的条条件是否满足,如果满足则进行下一轮循环, ......
do-while while do

CF227A Where do I Turn? 题解

题目大意: \(A\),\(B\) 在一条直线上。\(B\),\(C\) 在一条直线上你从 \(A\) 走到了 \(B\) 去 \(C\),问现在应该是直走、左转、还是右转。 思路: 分类讨论:分别求 \(A\) 到 \(B\),\(B\) 到 \(C\) 是什么方向,然后可得 \(A\) 到 \( ......
题解 Where 227A Turn 227

BigDecimal java.lang.ArithmeticException: / by zero问题

BigDecimal bigDecimal=new BigDecimal("0.0"); BigDecimal bigDecimal1=new BigDecimal(0); //一定要用compareTo去比较被除数是否为0,不能用equals if (BigDecimal.ZERO.compare ......

Java while 和do while 循环

循环是程序中的重要流程结构之一。循环语句能够使程序代码重复执行,适用于需要重复一段代码直到满足特定条件为止的情况。 所有流行的编程语言中都有循环语句。Java 中采用的循环语句与C语言中的循环语句相似,主要有 while、do-while 和 for。 另外 Java 5 之后推出了 for-eac ......
while Java

java 开发中VO、PO、DO、DTO、BO、QO、DAO、POJO各种傻傻分不清

VO(Value Object):值对象,主要用于业务层之间的数据传递,是方法返回类型。例如,一个方法需要返回用户的信息,可以创建一个UserVO,包含用户的姓名、年龄等信息。 PO(Persistent Object):持久化对象,用于表示数据库中的一条记录,与数据库表一一对应。例如,数据库中有一 ......
java POJO DTO DAO

sql server Compute、Compute by

1、原始表 2、Compute 和 Compute By select * from A where 数量>8 compute max(数量),min(数量),avg(数量) 执行结果如下: select * from A where 数量>8 order by 类别 compute max(数量) ......
Compute server sql by

避坑,Oracle中rownum与order by的执行顺序,select 里面使用 order by, select 外面再包一层 再使用 rownum进行条数筛选

避坑,Oracle中rownum与order by的执行顺序 select 里面使用 order by, select 外面再包一层 再使用 rownum进行条数筛选 「场景分析」 今天遇到这样一个场景:在列表展示数据的时候,使用rownum进行分页,并用order by 对某些字段进行排序。 于是 ......
rownum select order 顺序 Oracle

3 ways light pollution harms the planet - and what we can do about it

Light pollution not only impacts the environment, but our health too. ·Global light pollution has increased by 49% over 25 years to 2017, new research ......
pollution planet light harms about

Why do I hear a NoiseHiss in the IEM system

# Why do I hear a Noise/Hiss in the IEM system? ``` Why do I hear a Noise/Hiss in the IEM system? The most common hiss that is referred to is caused b ......
NoiseHiss system hear Why IEM

docker: Error response from daemon: Conflict. The container name "/web" is already in use by container ......

问题:docker启动docker容器时报错docker: Error response from daemon: Conflict. The container name is already in use by container You have to remove (or rename) t ......
container quot Conflict response already

Table does not support optimize, doing recreate + analyze instead

使用情况: 当您的库中删除了大量的数据后,您可能会发现数据文件尺寸并没有减小。这是因为删除操作后在数据文件中留下碎片所致。 OPTIMIZE TABLE只对MyISAM, BDB和InnoDB表起作用。 对于BDB表,OPTIMIZE TABLE目前被映射到ANALYZE TABLE上。 对于Inn ......
optimize recreate analyze instead support

Exercise: Create a static HTML web app by using Azure Cloud Shell

https://learn.microsoft.com/en-us/training/modules/introduction-to-azure-app-service/7-create-html-web-app resourceGroup=$(az group list --query "[].{ ......
Exercise Create static Azure Cloud

自签名证书--x509: certificate signed by unknown authority

问题描述: 后端日志报错:x509: certificate signed by unknown authority 登陆pod测试: 原因: 因为自签名证书,不能识别到根证书 解决: 1.临时办法 把根证书复制到pod kubectl cp **.crt /usr/local/share/ca-c ......
certificate authority 证书 unknown signed

分区函数 Partition By 与 row_number() 的用法 & 排序rank()的用法详解(获取分组(分区)中前几条记录)

partition by关键字是分析性函数的一部分,它和聚合函数不同的地方在于它能返回一个分组中的多条记录,而聚合函数一般只有一条反映统计值的记录,partition by用于给结果集分组,如果没有指定那么它把整个结果集作为一个分组,分区函数一般与排名函数一起使用。 准备测试数据: create t ......
row_number 函数 Partition number rank

[LeetCode] 1356. Sort Integers by The Number of 1 Bits 根据数字二进制下1 的数目排序

You are given an integer array arr. Sort the integers in the array in ascending order by the number of 1's in their binary representation and in case ......
二进制 数目 LeetCode Integers 数字

Vivado生成bitstream时报错[Opt 31-67] Problem: A LUT3 cell in the design is missing a connection on input pin I1, which is used by the LUT equation

这个原因主要是因为有一个引脚没有用到,解决方法。 1、打开Schematic。 2、根据提示的模块去找,比如说我的报错。 [Opt 31-67] Problem: A LUT3 cell in the design is missing a connection on input pin I1, w ......
connection LUT bitstream the equation

[922] Implementation of zooming to selected features by Python

ref: ArcPy.mp Get Selected Features Extent ref: Python/ArcPy classes/Geometry # Set the path to your project file (.aprx) project_file = r"Map 1.3 Her ......

低代码配置式组态软件-BY组态

随着物联网、大数据等技术高速发展,我们逐步向数字化、可视化的人工智能(AI)时代的方向不断迈进。智能时代是工业 4.0 时代,我国工业领域正努力从“制造”迈向“智造”的新跨越。 什么是组态软件?组态软件,又称组态监控软件。它们处在自动控制系统监控层一级的软件平台和开发环境,使用灵活的组态方式,为用户 ......
组态 组态软件 代码 软件 BY

[921] Replace texts, copy formats, align paragraphs in a Word document by Python

The whole steps of this function are as follows: Open the Word document. Replace the text with the new text. Copy the format from the source cell to t ......
paragraphs document Replace formats Python

docker exec 报错 decoding init error from pipe caused \"read parent: connection reset by peer\""

复现方法,限制容器内pid个数 docker run --pids-limit=1000 -d centos sleep 100000 docker exec -it id bash 3.执行 for i in $(seq 1 2000); do (sleep 100&) ; done [root@ ......
quot connection decoding docker caused

解决:Exception: URL fetch failure on https://storage.googleapis.com/tensorflow/tf-keras-datasets/imdb.npz: None -- [Errno 104] Connection reset by peer

首次装载IMDB数据集时可能会出现的错误。 解决方案: 1、先将数据集单独下载下来: datasets/imdb.npz · 黄健/keras-datasets - Gitee.com 2、将其复制到 ~/.keras/dataset 目录下: cp imdb.npz ~/.keras/datase ......

Failed to stop auditd.service: Operation refused, unit auditd.service may be requested by dependency only (it is configured to refuse manual start/stop).

[root@7 ~]# systemctl stop auditd.service Failed to stop auditd.service: Operation refused, unit auditd.service may be requested by dependency only (i ......
service auditd stop dependency configured

Redission并发锁报错:IllegalMonitorStateException: attempt to unlock lock, not locked by current thread by node id

生产上突然出现一条报错 j.l.IllegalMonitorStateException: attempt to unlock lock, not locked by current thread by node id: 1411e030-3c44-48d7-9eb6-6030022ce681 th ......

浅析POJO、DTO、DO、VO、BO、PO、Entity

名词解释 领域模型中的实体类分为四种模型:VO、DTO、DO和PO,各种实体类用于不同业务层次间的交互,并会在层次内实现实体类之间的转化。新项目使用了新的框架和开发规范,特意集体讨论了DTO,DO,VO,BO,POJO,PO和Entity以及DAO、Model和View的基本概念和使用场景,为了深入 ......
Entity POJO DTO