love in

Linux $PS1 and zsh All In One

Linux $PS1 and zsh All In One macOS 自定义命令行提示符 ......
Linux All PS1 One and

MongoDB and mongoose All In One

MongoDB and mongoose All In One Node.js ......
mongoose MongoDB All and One

Docker - ERROR: failed to solve: golang:latest: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

Dockerfile: FROM golang:latest WORKDIR /app ADD . . RUN go get RUN go build -o app . CMD ["/app/app"] zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ docker build ......

All-in-One(二):硬件直通

# 简介 硬件直通简单来说就是让虚拟机直接使用物理机的硬件资源,例如网卡、显卡等。 # 配置 ## 手动启用 IOMMU 打开 PVE 的 shell 执行以下命令: ```shell # 编辑grub文件 nano /etc/default/grub # 修改GRUB_CMDLINE_LINUX_ ......
All-in-One 硬件 All One in

All-in-One(三):Openwrt

# 简介 **OpenWrt **是适用于嵌入式设备的一个 Linux 发行版。相对原厂固件而言,OpenWr t不是一个单一、静态的固件,而是提供了一个可添加软件包的可写的文件系统。这使用户可以自由的选择应用程序和配置,而不必受设备提供商的限制,并且可以使用一些适合某方面应用的软件包来定制你的设备 ......
All-in-One Openwrt All One in

All-in-One(一):PVE

# 简介 **Proxmox Virtual Environment**(简称:**Proxmox VE**、**PVE**),是一个开源的服务器虚拟化环境 Linux 发行版。Proxmox VE 基于 Debian,使用基于 Ubuntu 的定制内核,包含安装程序、网页控制台和命令行工具,并且向 ......
All-in-One All One PVE in

All-in-One(五):Ipv6暴露公网

# 简介 **网际协议第6版**(英语:**I**nternet **P**rotocol **v**ersion **6**,缩写:**IPv6**)是网际协议的最新版本,用作互联网的协议。用它来取代 IPv4 主要是为了解决IPv4地址枯竭问题,同时它也在其他方面对于 IPv4 有许多改进。 # ......
All-in-One Ipv6 All One Ipv

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/ ......
install command Linux login users

GBLUP-RR in BGLR

来自Paulino Pérez-Rodríguez和José Crossa两位GS领域大佬的报告。 从GBLUP到RRBLUP,再到BRR理论 使用经典数据集CIMMYT wheat 599 BGLR示例 ......
GBLUP-RR GBLUP BGLR RR in

String Rearrangement in Phantom

先考虑一个 \(O(nq)\) 的暴力,令 \(s_{1}=S[l_{1},r_{1}],s_{2}=S[l_{2},r_{2}]\),令 \(t=\operatorname{rev}(s_{2})\),则我们仅需求 \(s_{1}=A+B+C,t=\operatorname{rev}(A)+B+\ ......
Rearrangement Phantom String in

'main' attribute cannot be used in a module that contains top-level code 问题解决

核心是@main 注解在main.swift 文件中,可以重新命名下 参考资料 https://stackoverflow.com/questions/73431031/swift-cli-app-main-attribute-cannot-be-used-in-a-module-that-cont ......
attribute top-level contains cannot module

Fallible point in C/C++

Operator[] The performance of [] in C and C++ is different. e.g., when you excute A[index] If A is a object, it will call the operator[] If A is a poi ......
Fallible point in

Ubuntu20.04 ping Temporary failure in name resolution问题

解决步骤 vi /etc/systemd/resolved.conf 将DNS的注释取消掉并改成8.8.8.8即可 参考:https://blog.csdn.net/weixin_43354181/article/details/105352203 ......
resolution Temporary failure Ubuntu 问题

执行docker compose up -d报错 unknown shorthand flag: 'd' in -d

执行docker compose up -d报错 unknown shorthand flag: 'd' in -d /usr/libexec/docker/cli-plugins/目录下没有docker-compose或者有docker-compose但执行docker help显示 Invali ......
shorthand compose unknown docker 39

Top 6 BMW Diagnostic Tools to Master in 2023

In the ever-evolving automotive industry, the importance of diagnostic software cannot be overstated. Specifically, for BMW vehicles, diagnostic tools ......
Diagnostic Master Tools 2023 Top

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:需要一元表达... ......
installed command whether script server

LINQ SelectMany Method in C#

1.例子一: static void SelectMany() { //方式一:Query Syntax Console.WriteLine("方式一:Query Syntax"); List<string> nameList = new List<string>() { "Kate", "Hann ......
SelectMany Method LINQ in

[IJCAI 2023]Preventing Attacks in Interbank Credit Rating with Selective-aware Graph Neural Network

[IJCAI 2023]Preventing Attacks in Interbank Credit Rating with Selective-aware Graph Neural Network 问题 文章研究的是对银行间信用评价的攻击的预防。点是银行,边是银行间的借贷关系。 攻击方式有特征攻击 ......

[885] How to generate automated tables in Word document with Python

ref: How to Generate Automated Word Documents with Python ref: docxtpl快速上手使用,数据填入以及循环写入表格 Creating a Template Before you can proceed, you must first c ......
automated generate document Python tables

currently, chromedriver 114.0.5735.90 is recommended for chrome 114.*, so it is advised to delete the driver in PATH and retry

报错原因是驱动和浏览器不匹配 解决办法 1.下载低版本的谷歌浏览器 本次使用的是114 下载地址: https://downzen.com/en/windows/google-chrome/download/11405735199/ 2.下载谷歌浏览器的插件 https://registry.npm ......

A closer look at Ownership in Rust

So you want to learn Rust and keep hearing about the concept of Ownership and Borrowing, but can’t fully wrap your head around what it is. Ownership i ......
Ownership closer Rust look at

Learn Git in 30 days—— 第 23 天:修正 commit 过的版本历史记录 Part 5

写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 我们上一篇文章谈到的 Rebase 是用来将现有的两个分支进行「重新指定基础版本」,执行 Rebase 之后,也 ......
版本 commit 历史 Learn days

启动hive报错:Cannot create directory /tmp/hive. Name node is in safe mod

在使用:start-all.sh 命令启动完hadoop之后再启动metastore服务使用 /export/server/hive/bin/hive --service metastore 启动远程连接服务再输入命令 /export/server/hive/bin/hive 启动hive 但是无法 ......
hive directory Cannot create Name

CF671D Roads in Yusland

1D8 ya。 设 \(f_{u,i}\) 表示覆盖了 \(u\) 子树并且向上覆盖到了深度为 \(i\) 的最小代价。 考虑合并儿子 \(v\): \[f'_{u,i}\gets \min\left(f_{u,i}+\min\limits_{j=1}^nf_{v,j},f_{v,i}+\min\l ......
Yusland Roads 671D 671 CF

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 ......
the variable command string script

ELT in ByteHouse 实践与展望

更多技术交流、求职机会,欢迎关注字节跳动数据平台微信公众号,回复【1】进入官方交流群 谈到数据仓库, 一定离不开使用Extract-Transform-Load (ETL)或 Extract-Load-Transform (ELT)。 将来源不同、格式各异的数据提取到数据仓库中,并进行处理加工。 传 ......
ByteHouse ELT in

FIND_IN_SET() INSTR()

FIND_IN_SET(str,strlist) 函数功能 查找str在strlist中的位置 注意事项 find_in_set()函数是精确匹配 多个空格也会匹配不上 INSTR(源字符串,目标字符串) 函数功能 字符查找函数。 获取子串第一次出现的索引,如果没有找到,则返回0(从1开始)。 相较 ......
FIND_IN_SET INSTR FIND SET IN

Learn Git in 30 days——第 22 天:修正 commit 过的版本历史记录 Part 4 (Rebase)

写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 我们之前已经讲了三种不同的修正版本的方法,严格上来说 git revert 与 git cherry-pick  ......
版本 commit Rebase 历史 Learn

[880] Calculate Field in ArcGIS Pro (with python code)

Firstly, we should define a function. def IsFlood(join_count): if join_count > 0: return "Yes" else: return "No" Secondly, we should call this functio ......
Calculate ArcGIS python Field code

Learn Git in 30 days——第 21 天:修正 commit 过的版本历史记录 Part 3

写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 在版本控制过程中,还有个常见的状況,那就是当你在一个分支中开发了一段时间,但后来决定整个分支都不要了,不过当中却 ......
版本 commit 历史 Learn days