自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 docker: Error response from daemon: could not select device driver ““ with capabilities: [[gpu]].

这个错误表明 NVIDIA Container Runtime 没有正确配置。

2025-02-10 16:22:02 273

原创 Ubuntu系统docker非root用户部署并调整默认存储位置

如果要让非 root 用户(app 用户)管理 Docker 目录,需要做一些额外配置。使用 userns-remap 会影响一些需要特权访问的容器。您要我详细解释某个步骤吗?或者需要帮助排查可能遇到的问题?如果之前有运行的容器和镜像,在更改存储位置后需要重新拉取。

2025-02-10 15:54:19 165

原创 el-table合并单元格

【代码】el-table合并单元格。

2023-10-26 08:49:13 104 1

原创 Java中数据默认值的问题

Java中数据默认值的问题java中对象的默认值为null,基础数据类型默认值为0。发现这一问题的缘由为:从derby中抽取null数值,转化为double类型时,自动转换为0;而转化为Double对象时,仍保留null。double类型是无法兼容null的。...

2022-04-06 11:15:02 1473

原创 C++ vector:一边使用iterator,一边erase会发生什么

今天看到了一段代码,觉得很神奇就仔细探究了一下,原代码如下:#include <cstdlib>#include <iostream>#include <vector>template<typename T>void f(std::vector<T> & v, const T & d) { typename std::vector<T>::iterator it = v.begin(); while

2021-10-19 13:53:38 304

原创 C++实现python string.split() 函数的基本功能

C++实现python string.split() 函数的基本功能#include <vector>#include <string>typedef std::vector<std::string> str_arr;str_arr str_split(std::string str, std::string pattern) { std::string::size_type pos; str_arr result; str += pa

2021-10-17 04:38:16 1212

原创 anaconda安装python3.5环境

现在anaconda默认安装python 3.8,然而在运行以前代码的时候发现无法支持tensorflow 2.2之前的版本,导致在运行包含keras和tklearn等与tensorflow相关的库的代码时出现错误,故想要多安装一个python 3.5的环境来跑之前的代码。在prompt中输入:>> md python35>> cd python35>> conda create -n python35 python=3.5 anaconda创建完环境后,使用

2020-11-20 15:34:43 4110

空空如也

空空如也

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

TA关注的人

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