What is a DPU?

数据处理单元(Data processing unit,DPU)是一种可编程电子电路,它具有数据处理以及硬件加速功能,数据处理单元主要用于数据中心内的数据计算处理。一个DPU通常含有一个中央处理器 、 网卡和可编程数据硬件加速引擎,因此DPU可以像中央处理器那样处理数据的同时还可以处理网络封包。CPU v GPU v DPU: What Makes a DPU Different? A DPU is a new class of programmable processor that combines three key elements. A DPU…

Windows下 PyAutoGUI

PyAutoGUI 通过Python scripts自动控制鼠标和键盘的一系列操作来控制其它程序,已达到自动化(测试)目的。安装方式,Windows上,可以使用py.exe 运行最新版本的Python:py -m pip install pyautogui如果安装了多个版本的Python,需要指明版本号,如Python 3.8:py -3.8 -m pip install pyautogui按键精灵实践,import pyautogui,timeprint(pyautogui.position())while True:pyautogui.moveTo…

Pyinstaller 打包Python 成exe

安装:pip install pyinstaller如果安装慢,可引用清华源:# 清华源pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple/cmd 切换到 python 文件的目录,执行命令:pyinstaller -F -w -i python.ico watermark.py在dist 文件夹下,可以找到打包好的exe 文件详细参数在上面的打包命令中,用到了好几个参数:-F,-W,-i,这些参数的含义如下面的表格:参数 用法-F 生成结果是一个 exe …

Bludit的nginx配置

伪静态,nginx里添加如下配置即可,可避免安装后/admin 出现404的状况location / {try_files $uri $uri/ /index.php?$args;}location ^~ /bl-content/tmp/ { deny all; }location ^~ /bl-content/pages/ { deny all; }location ^~ /bl-content/databases/ { deny all; }

python 替换 excel 特定内容

本文介绍使用python语言,借助openyxl库来实现操作excel(xlsx)文件,实现替换特定内容的需求。目前实现了3个小功能: 全字匹配替换(mode1);(如:全字匹配 yocichen, 替换成为 yociXchen) 部分字符匹配替换(mode2);(如:thisisyociblog,替换成为 thisisyocichenblog) 全字匹配填充(mode3);(如:yoci,替换成为yoci: a foolish),用于在字符后面添加字符 源码:import openpyxlimport reimport tracebackchange…

速查小能手cheat.sh

写代码经常需要搜索一些命令、函数或者编程语言语法的问题,都可以通过其快速搜索而得到示例,小能手呀。终端,使用 curl 即可启动:curl cheat.shcurl cht.sh比如UNIX/Linux 命令:curl cheat.sh/tarcurl cht.sh/curlcurl https://cheat.sh/rsynccurl https://cht.sh/tr模糊查找,比如想查看如何建立快照,可使用~Keyword 的形式来查询:curl cht.sh/~snapshot各种语言:curl cht.sh/go/Pointerscurl ch…

Win11 官方ISO 文件哈希值

建议Win11 直接从下面链接下载哈,当然也可以采用其它下载点。 https://www.microsoft.com/zh-cn/software-download/windows11如果您想验证下载数据的完整性和真实性,请按照以下步骤操作: 下载所需产品 ISO 文件,并按照安装指南进行操作。 开启 Windows PowerShell。如果您需要查找操作系统中 PowerShell 的位置,请单击此处查看帮助。 在 PowerShell 中,使用 Get-FileHash cmdlet 计算您下载的 ISO 文件的哈希值。例如: Get-Fi…

WSL2下 Debian10 docker启动失败解决

win10利用WSL2安装docker,curl -fsSL https://get.docker.com -o get-docker.shsudo sh get-docker.shservice docker start安装后,发现以下错误,grep: /etc/fstab: No such file or directory[FAIL] Docker is not running ... failed!对于/etc/fstab,直接用touch创建即可touch /etc/fstab对于后者,可以用下面的解决update-alternatives …