自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(96)
  • 收藏
  • 关注

原创 django {“detail“:“Authentication credentials were not provided.“}

{"detail":"Authentication credentials were not provided."}

2024-08-22 17:16:14 105

原创 error: The following untracked working tree files would be overwritten by merge: static/__py

error: The following untracked working tree files would be overwritten by merge: static/__pycache__/identitfy_judge_function.cpython-310.pycPlease move or remove them before you merge.Aborting

2024-08-16 15:24:00 135

原创 fatal: The current branch master has no upstream branch.

分支没有设置与远程仓库的关联(upstream branch)。当你试图推送(push)更改到远程仓库但没有指定远程分支时,Git 不知道应该将更改推送到哪个远程分支上,因此会显示这个错误。解决这个问题的方法就是按照错误信息中的提示来操作。使用以下命令可以推送你的。这个错误信息说明你的本地 Git 仓库的。分支到远程仓库(通常命名为。

2024-08-12 15:18:07 397

原创 删除一个git项目的所有提交历史

git push -f origin master # 或 git push -f origin main。git branch -D master # 或 git branch -D main。git branch -m master # 或 git branch -m main。最后,使用强制推送将这些变更推送到远程仓库。确保你处于要操作的 Git 仓库的根目录。

2024-08-12 11:09:56 263

原创 爬虫在selenium进行登录判断

只需要先获取页面,之后将登陆cookie加入再重新登陆即可。

2024-08-03 23:52:02 88

原创 使用微信app的接口获取nickname时名字乱码

response.encoding = 'utf-8' # 设置响应内容的编码为UTF-8。使用utf-8解码即可获取正常的名字。

2024-07-20 22:52:11 121

原创 pip 国内清华源安装

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt

2024-07-17 17:25:37 221

原创 django 接口文档自动生成

django 接口文档自动生成

2024-07-17 17:12:54 616

原创 django 框架写异步接口总报错

AssertionError: Expected a Response, HttpResponse or StreamingHttpResponse to be returned from the view, but received a

2024-07-17 16:41:58 177

原创 arm操作系统的板子 怎么实现远程控制

安装适配arm操作系统的todesk 程序。

2024-07-12 18:46:40 262

原创 AssertionError: .accepted_renderer not set on Response

AssertionError: .accepted_renderer not set on Response

2024-07-12 10:36:02 136

原创 You cannot call this from an async context - use a thread or sync_to_async.djang使用异步报错解决办法

You cannot call this from an async context - use a thread or sync_to_async.djang使用异步报错解决办法

2024-07-12 10:17:43 129

原创 AttributeError: ‘WSGIRequest‘ object has no attribute ‘data‘[10/Jul/2024 16:45:32] “POST /common_ta

AttributeError: 'WSGIRequest' object has no attribute 'data'[10/Jul/2024 16:45:32] "POST /common_task/process_after_analysis_data HTTP/1.1" 500 67055

2024-07-10 16:49:13 279

原创 RuntimeError: Model class common_task.models.analysis_data_app doesn‘t declare an explicit app_label

RuntimeError: Model class common_task.models.analysis_data_app doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

2024-07-10 16:42:02 119

原创 Forbidden (CSRF cookie not set.)

Forbidden (CSRF cookie not set.)

2024-07-09 21:19:38 313

原创 地平线x3pi板子烧录linux

可以遵循以下链接下载烧录系统与linux镜像,并在新的sd卡里烧录Linux镜像系统并启动。注意烧录的镜像需要destop版本。

2024-06-28 16:24:19 158

原创 linux 修改网络配置

Linux网络配置(/etc/network/interfaces)设置网络接口主要的网络配置工作都可以通过/etc/network/interfaces文件进行,例如设置网卡IP地址(或使用dhcp)、 设置路由信息、配置IP掩蔽、设置默认路由等等。

2024-06-28 16:20:09 412

原创 .xz文件解压缩

要解压缩.xz。

2024-06-28 01:01:00 454

原创 SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]

SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]

2024-06-24 10:05:09 332

原创 使用自己的公钥访问服务器,避免频繁输入密码或密钥链接

创建公钥ssh-keygen#查看公钥#将公钥加到服务器之后就可以访问了。

2024-06-18 14:53:30 136

原创 测试端口是否开放

telnet 192.168.192.127 8011

2024-05-31 16:23:08 372

原创 RuntimeWarning: Enable tracemalloc to get the object allocation traceback

RuntimeWarning: Enable tracemalloc to get the object allocation traceback

2024-05-31 15:52:28 175

原创 撤回ctrl +z撤回操作

使用ctrl+y。

2024-05-29 14:58:42 158

原创 python队列调用示例代码

【代码】python队列调用示例代码。

2024-05-29 14:57:49 241 1

原创 linux操作系统下intel驱动 如何查询gpu使用情况

linux操作系统无法直接使用nvidia-smi查看gpu的使用情况 可以使用以下方式来使用intel的gpu查询。

2024-05-23 18:24:29 232

原创 websocket 简单service框架可以接收和传输消息

【代码】websocket 简单service框架可以接收和传输消息。

2024-05-17 17:22:12 117

原创 linux 使用intel oneapi报错报错

使用intel oneapi 2024.1.0 时经常报这个错误 因为当前 intel2024.1.0没有在使用 需要改回2024.0.0并安装适配的torch的包来运行。

2024-05-09 15:28:06 220

原创 前端video标签播放第三方外链地址报错403

前端video标签播放第三方外链地址报错403

2024-05-09 15:16:51 391

原创 linux安装PyCharm

安装完成后,你可以通过命令行启动PyCharm,或在你的应用菜单中找到它。第一次运行PyCharm时,它会让你配置一些设置,比如安装主题和插件。你还可以在启动PyCharm后配置它使用特定版本的Python解释器。PyCharm是一个流行的Python开发环境(IDE),由JetBrains提供。有两个版本:社区版(免费)和专业版(付费)。添加PPA到你的系统,更新apt索引,然后安装PyCharm。

2024-04-26 17:59:32 762 1

原创 window 系统安装Linux系统

在一台电脑上安装Linux和Windows的双系统可以让你在同一硬件上运行两种操作系统。

2024-04-26 17:52:21 343

原创 电脑安装双系统

电脑安装双系统

2024-04-26 17:50:11 1343 1

原创 向日葵远程操作ubantu系统时黑屏

向日葵远程操作ubantu系统时黑屏

2024-04-26 17:48:35 1367

原创 {‘detail‘: [{‘type‘: ‘missing‘, ‘loc‘: [‘query‘, ‘filepath‘], ‘msg‘: ‘Field required‘, ‘input‘: None

{'detail': [{'type': 'missing', 'loc': ['query', 'filepath'], 'msg': 'Field required', 'input': None, 'url': 'https://errors.pydantic.dev/2.6/v/missing'}]}

2024-04-18 17:37:55 739

原创 fatal: Need to specify how to reconcile divergent branches.

hint: You have divergent branches and need to specify how to reconcile them. hint: You can do so by running one of the following commands sometime before hint: your next pull: hint: hint: git config pull.rebase false # merge (the default strategy) hint: gi

2024-04-11 23:18:44 2862

原创 fatal: Unable to create ‘/home/ecs-user/recommendation_algorithm/.git/index.lock‘: File exists.Ano

fatal: Unable to create '/home/ecs-user/recommendation_algorithm/.git/index.lock': File exists.Another git process seems to be running in this repository, e.g.an editor opened by 'git commit'. Please make sure all processesare terminated then try again

2024-04-11 23:16:24 144

原创 starlette.websockets.WebSocketDisconnect

处理此类问题的一种方法是确保在尝试发送消息之前,连接确实是开启状态。此外,可以在服务器端添加异常处理来优雅地处理断开连接的情况。这些异常表明在尝试通过WebSocket发送消息时,连接已经关闭。这可能是因为客户端意外断开连接,或者其他原因导致连接不稳定。指示了一个异常关闭,这通常意味着连接由于未知原因被终止,可能是由于网络问题或客户端突然断开。(going away)通常表示客户端离开了,比如用户关闭了浏览器窗口。库抛出的异常,意味着WebSocket连接正常关闭。抛出的,基于上一个异常。

2024-04-10 17:47:44 605

原创 一个不用公网ip的开放本地服务器的方法

在zerotier上建立账号,新建一个netid,下载软件,对多个服务器使用同一个id进行绑定。绑定成功后在zerotier上勾选虚拟ip,分配ip后即可通信。该方法使用的是zerotier将多个ip放入一个虚拟的局域网内进行数据通信。BR_IF="br0" BR_ADDR=<桥接IP地址>安装zero tier: curl -s。NETWORK_ID=<你的网络ID>GW_ADDR=<你的主路由IP>注册 创建网络更新系统。

2024-04-10 17:43:56 223

原创 websockets.exceptions.ConnectionClosedError: no close frame received or sent

这个错误表明WebSocket连接在没有接收或发送关闭帧(close frame)的情况下被关闭了。WebSocket协议规定,连接的关闭应该是由发送关闭帧开始的,这样的机制允许双方进行干净的断开连接。当这个过程中断或不按预期发生时,就可能会看到这样的错误。这个错误可能由多种原因触发,包括网络问题、服务端或客户端的异常关闭等。# 使用WebSocket连接。# 连接结束,发送关闭帧。

2024-04-09 14:26:38 1652 1

原创 expected scalar type long but found float

在报这个错误的情况下,找到报错的路径,将target 改为target.long()就可以解决了。

2024-04-08 23:56:40 231

原创 使用k8s前配置环境

通常情况下,你需要从 Kubernetes 集群管理员那里获取连接到集群所需的凭证信息。这些信息可能包括 API 服务器地址、客户端证书、客户端密钥和认证令牌等。你可以从 Kubernetes 官方的 GitHub 仓库中获取适合你操作系统的发行版,或者使用适合你操作系统的包管理器进行安装。命令行工具进行配置。:一旦你获得了凭证信息,你可以使用。:首先,确保你已经安装了。

2024-03-08 17:58:25 378

zh行政区域空间坐标中心

zh行政区域空间坐标中心

2023-10-16

一个简单的会议纪要简易模板

会议记录

2023-02-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除