ones twos and
Github PR 时合并多次提交的 git commits All In One
使用场景:(一个组里的兄弟) 在一个分支里,提交多次,产生多个commit,然后提pr。 正常情况下,合并到main分支,也会带着多次pr。 期望:将分支中多个commit在合并至main时变为一个commit 解决办法: https://www.cnblogs.com/xgqfrms/p/1646 ......
Python function argument All In One
Python function argument All In One
Python 函数参数
function argument types
default arguments
keyword arguments
positional arguments
arbitrary positional ... ......
The 'Access-Control-Allow-Origin' header contains multiple values'*, *', but only one is allowed.
**报错内容** The 'Access-Control-Allow-Origin' header contains multiple values '*, http://192.168.237.131', but only one is allowed. Have the server send ......
Adafruit CircuitPython NeoPixel All In One
Adafruit CircuitPython NeoPixel All In One
Raspberry Pi & Python & WS2812B RGB LED Strip
RPi.GPIO
rpi_ws281x
from rpi_ws281x import PixelStrip, Color,... ......
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
问题现象为通过kubectl进入pods时提示在未来版本中将移除这种进入这种方式,需要使用新的命令格式进入 ```sh [root@master ~]# kubectl exec myweb-c5xq6 -it /bin/bash kubectl exec [POD] [COMMAND] is DE ......
How to use variable in Python String All In One
How to use the variable in Python String All In One
如何在 Python 字符串中使用变量
Python 字符串插值 All In One
Python 字符串中使用变量的 5 种方式 ......
How to use Vim copy line and paste line All In One
How to use Vim copy line and paste line All In One
如何使用 Vim 复制行和粘贴行
......
Codeforces 1515I - Phoenix and Diamonds(值域倍增+线段树)
首先 $c$ 很大,因此复杂度跟 $c$ 有关的项肯定只能是 $\log c$ 之类的。 类比 IOI2021 dungeons 的套路,我们**对值域进行分层**,假设 $c\in[2^{\omega-1},2^{\omega})$,考虑令重量在 $\ge 2^{\omega-1}$ 的物品为“重 ......
HDU1028 Ignatius and the Princess III
## Description  题意:给出 $n(1\le n\le 120)$,求出 $n$ 的整数划分方案数。 ## Solution 先考虑一个简单的问题:从 $1\sim n$ 的数字取出若干个数字 ......
CF101234A Hacker Cups and Balls【二分+线段树】
## Description 给一个长度为 n 的排列,对它做 m 次操作,每次对 [l, r] 区间内进行升序/降序排序。 问最后的序列处于最中心的数是多少(n为奇数)。 ## Solution 是一类没有写过的题,[参考题解](https://www.cnblogs.com/ShinaCloud ......
Difference Between Session and Entity Beans
https://docs.oracle.com/cd/E17802_01/j2ee/j2ee/1.4/docs/tutorial-update6/doc/EJBConcepts4.html You should probably use an entity bean under the follow ......
Me-and-My-Girlfriend-1
1.查看kaliIP地址 ifconfig 2.nmap命令扫描所在网络断的ip即开放端口 nmap 192.168.137.0/24 发现目标主机192.168.137.149 开放了22和80端口 3.直接访问主机地址192.168.137.149 4.只能本地访问,设置xff代理尝试登录 X- ......
How to fix Linux locale error All In One
How to fix Linux locale error All In One
如何修复 Linux 语言环境错误
fix: vim 中文乱码 bug
......
pip安装解决报错:WARNING: Running pip as the ‘root‘ user can result in broken permissions and conflicting
一、问题描述今天使用pip安装库的时候和一些模块的时候,出现了一下报错信息: 大概意思就是:提示以“root”用户身份运行 pip 可能会导致权限损坏和冲突,因此我们需要创造一个虚拟的环境区执行它 二、解决方法1、创建一个虚拟环境 (superset) [root@bigdata111 ~]# py ......
If you use STDIN or specify a URL pointing to a plain text file, the system places the contents into a file called Dockerfile, and any -f, --file option is ignored.
docker build | Docker Documentation https://docs.docker.com/engine/reference/commandline/build/ In most cases, it’s best to put each Dockerfile in an ......
How to fix the problem that Raspberry Pi cannot use the root user for SSH login All In One
How to fix the problem that Raspberry Pi cannot use the root user for SSH login All In One
如何修复树莓派无法使用 root 用户进行 SSH 登录的问题
......
Windows 配置 Hadoop and Spark
一 JDK环境配置 由于项目用的JDK17,所以单独给Hadoop配了JDK11,建议直接配置JAVA_HOME环境变量为JDK11,因为后面Spark需要用到JAVA_HOME 下载JDK11 链接:https://www.oracle.com/java/technologies/javase/j ......
翻译-Automatic detection of Long Method and God Class code smells through neural source code embeddings
# Automatic detection of Long Method and God Class code smells through neural source code embeddings 通过神经源代码嵌入自动检测 Long Method 和 God Class 代码异味 Aleksa ......
How to modify the username and password of Raspberry Pi All In One
How to modify the username and password of Raspberry Pi All In One
如何修改树莓派的用户名和密码
......
GPT-Introduction about BlueZ and it's relationship with Android
In this blog post, I will introduce you to BlueZ, a Bluetooth stack for Linux-based systems. I will also show you how to detect whether an Android dev ......
GPT-Investigation on the Implementation of Rockchip Product's Audio and Video Codec Function
## 1 Is this function of Rockchip product developed on Linux? Yes, this function of Rockchip product is developed on Linux. According to the datasheet ......
Intel Media SDK and Intel® oneAPI Video Processing Library (oneVPL)
The Intel Media Software Development Kit (Intel Media SDK) is a cross-platform application programming interface (API) for developing media applicatio ......
论文阅读 | Learn from Others and Be Yourself in Heterogeneous Federated Learning
**在异构联邦学习中博采众长做自己** 代码:https://paperswithcode.com/paper/learn-from-others-and-be-yourself-in **摘要** 联邦学习中有异质性问题和灾难性遗忘。首先,由于非I.I.D(相同独立分布)数据和异构体系结构,模型在 ......
Linux shell standard input bugs All In One
# Linux shell standard input bugs All In One ## error ❌ > `warning: file '', around line 110: table wider than line width` ```sh $ man vcgencmd > vcge ......
Efficient Correction of Single InsertionlDeletion and Multi-Substitution Errors
Efficient Correction of Single InsertionlDeletion and Multi-Substitution ErrorsG. J. Han, Y. L. Guan, K. Cai, K. S. Chan, and L. J. Kong A!JshYlc�A tw ......
real-time 3D terrain engine using C++ and directX
GAIA引擎是Greg Snook在书籍 Real-Time 3D Terrain Engines Using DirectX 9 中随书附带的一个地形引擎。该书后来又被承天一翻译成了中文版,名叫《实时地形引擎》。 参考:https://blog.csdn.net/hefengscu/article ......
expected one result (or null) to be returned by selectone(), but found: 5
以下是我的 mapper 文件的内容,是一个一对多查询。但是查询结果的 Book 映射不是一个,并且不能映射正确。 ```xml ``` 我开启了 resultMap 自动映射,所以 collection 和 resultMap 第一层都没有任何子标签。但问题就出在这里,就是因为我的主表,即 Boo ......
Linux shell command base64 All In One
Linux shell command base64 All In One
email address encryption / 邮箱地址加密
应用场景
防止爬虫爬取邮箱地址发送垃圾邮件
base64 encode & decode
......
How to use the shell command to get the version of Linux Distributions All In One
How to use the shell command to get the version of Linux Distributions All In One
如何使用 shell 命令获取 Linux 发行版的版本
hostnamectl
cat /etc/os-release
lsb_rel... ......