ins
cnblogs 停更, 迁移到 GitHub SSR website All In One
cnblogs 停更, 迁移到 GitHub SSR website All In One
cnblogs 迁移,停更
审核 ?
......
算法 in Golang:D & C(分而治之)
# 算法 in Golang:D & C(分而治之) ### D & C 算法(策略) - Divide & Conquer - 属于递归算法的一种 - 其实它更像是一种思路、策略 ### 递归 - 递归 Recursion - 基线条件 Base Case - 递归条件 Recursive Cas ......
Linux shell command ln All In One
# Linux shell command ln All In One > 硬连接 vs 软连接 ## ln ```sh $ man ln > ./man-docs/ln.md $ cat ./man-docs/ln.md ``` ```sh LN(1) User Commands LN(1) NA ......
解决报错:fatal: in unpopulated submodule *(WSG实测,可以解决问题)
问题 今天想把两个 Git 工程合并成一个工程,尽管已经将其中一个工程的 .git 目录删除了,但是在合并提交时还是遇到了一个和子模块相关的报错,具体报错信息如下: fatal: in unpopulated submodule '*' 报错截图如下: 解决 通过报错截图的信息,我们可以知道是在执行 ......
Linux shell command cut All In One
Linux shell command cut All In One
cut 截取指定符号等号后面的字符串
cut 截取等号后面的字符串
......
Raspberry Pi command line tools vcgencmd All In One
Raspberry Pi command line tools vcgencmd All In One
vcgencmd -h
vcgencmd --help
vcgencmd version
vcgencmd commands
......
K8S in Action 读后感(概念简介)
一、K8S的用武之地 今天,大型单体应用正被逐渐拆分成小的、可独立运行的组件,我们称之为微服务。微服务彼此之间解耦,所以它们可以被独立开发、部署、升级、伸缩。这使得我们可以对每一个微服务实现快速迭代,并且迭代的速度可以和市场需求变化的速度保持一致。 但是,随着部署组件的增多和数据中心的增长,配置、管 ......
树莓派如果通过 raspi-config 关闭桌面模式 All In One
树莓派如果通过 raspi-config 关闭桌面模式 All In One
树莓派设置启动模式:切换桌面模式和命令行模式
GUI vs CLI
图形化界面 vs 命令行
......
page flow in IO flow
1. page add to bio int f2fs_submit_page_bio(struct f2fs_io_info *fio) /* Allocate a new bio */ bio = __bio_alloc(fio, 1); if (bio_add_page(bio, page, ......
How to fix the for...in loop errors in Python All In One
How to fix the for...in loop errors in Python All In One
Python 3
TypeError: string indices must be integers
......
Muesli: Combining Improvements in Policy Optimization
 **发表时间:**2021(ICML 2021) **文章要点:**这篇文章提出一个更新policy的方式,结合 ......
How to check function arguments type in Python All In One
How to check function arguments type in Python All In One
Python & argument type check
......
Python rpi_ws281x library All In One
Python rpi_ws281x library All In One
Raspberry Pi & Python & WS2812B RGB LED Strip
rpi_ws281x
from rpi_ws281x import PixelStrip, Color, was
NeoPixel
a... ......
Maximum Strictly Increasing Cells in a Matrix
Maximum Strictly Increasing Cells in a Matrix Given a 1-indexed m x n integer matrix mat, you can select any cell in the matrix as your starting cell. ......
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 ... ......
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 ......
[LeetCode] 2559. Count Vowel Strings in Ranges
You are given a 0-indexed array of strings words and a 2D array of integers queries. Each query queries[i] = [li, ri] asks us to find the number of st ......
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 种方式 ......
【python】Python报错:RecursionError: maximum recursion depth exceeded in comparison
问题描述 今天测试程序的时候报错了 RecursionError: maximum recursion depth exceeded 通过查阅资料发现原因是查询过相关文档和资料后才发现了问题原因,python的递归深度是有限制的,默认为1000。当递归深度超过1000时,就会报错。 解决方案 可以将 ......
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 复制行和粘贴行
......
adb restarting in TCP mode port: 5555
adb 连接出现以下问题:restarting in TCP mode port: 5555出现原因一是由于adb连接了多个设备,二是系统自行安装的adb,模拟器里面又自带的adb 解决办法:对于第一种我们可以查看连接设备,及其设备号,进入指定设备。对于其他命令也是一样的。输入:adb -s 设备号 ......
ceph使用ipv6部署,创建osd:unable to find any IPv4 address in networks 'x:x::0/64' interfaces
使用 **ipv6** 部署 **ceph** 多节点集群 ceph.conf 配置文件如下: ``` public_network = 2001::0/64 cluster_network = 2001::0/64 ms_bind_ipv6 = true ``` 在进行osd创建时无报错,创建好之 ......
What's New in JDK 8 & java-language-changes 9-20
8变动 https://www.oracle.com/java/technologies/javase/8-whats-new.html Lambda表达式 Lambda Expressions https://docs.oracle.com/javase/tutorial/java/javaOO/ ......
【HMS Core】【In-App Purchases】应用内支付热门FAQ合集
近期收到很多开发者关于应用内支付服务的相关问题,主要集中在以下几个方面,今天和大家分享一下,希望给大家的开发集成带来帮助。 【问题描述1】 近期,很多开发者收到关于“全面限制HTTP类型回调地址的使用”邮件通知,担心是否会对自己已上架应用产生影响 【解决方案】 如果您没有集成应用内支付,请忽略 ......
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 ......
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 登录的问题
......