
python
君宝bob
这个作者很懒,什么都没留下…
展开
-
ubuntu linux查询服务器公网ip和所属运营商
【代码】ubuntu linux查询服务器公网ip和所属运营商。原创 2024-08-19 14:54:08 · 300 阅读 · 0 评论 -
selelium自动浏览网页并提取cookie等数据登录 相关资料列表
要点:firefox浏览器登录,代码中增加options.profile 关于firefox profile。原创 2024-08-09 17:12:29 · 166 阅读 · 0 评论 -
ubuntu安装ffmpeg——cuda gpu加速版
亲自验证:以下方案可行。记录并分享。转载 2024-07-16 15:05:06 · 279 阅读 · 0 评论 -
重启服务器后,由于内核自动升级,显卡无法使用,卸载不彻底,重装失败,安装日志报如下问题
代码】重启服务器后,由于内核自动升级,显卡无法使用,卸载不彻底,重装失败,安装日志报如下问题。原创 2022-07-21 11:41:18 · 711 阅读 · 0 评论 -
TypeError: Object of type ndarray is not JSON serializable ndarray
TypeError: Object of type ndarray is not JSON serializable ndarray转载 2022-07-18 21:55:42 · 2408 阅读 · 0 评论 -
python 获得文件名、文件后缀、文件全名、文件上级文件夹名称、所在目录。
获得文件名、文件后缀、文件全名、文件上级文件夹名称、文件所在目录。原创 2022-07-01 15:51:39 · 1620 阅读 · 0 评论 -
python float及科学记数法-自娱自乐记录下
some python code.浮点数有个截断精度问题,显示多位后会有变化。用round四舍五入能回避截断精度问题科学记数法原创 2022-06-27 16:19:01 · 423 阅读 · 0 评论 -
cuda pytorch cuda版本管理 unbuntu
基本环境:ubuntu 18.04cuda版本管理这篇说的比较通透:https://www.cnblogs.com/yhjoker/p/10972795.html1 结论:使用nivida-cuda 安装多版本cuda最省心,随心切换,基础齐全。2 pytorch基本使用,切换到pytorch自带的cuda环境也可以,后续管理比较麻烦。3 归根结底,掌握了cuda版本管理技能,怎么都可以cuda版本管理#### 3.1 #### 3.2 #### 3.3 cuda环境卸载ubu原创 2021-12-27 10:21:33 · 669 阅读 · 0 评论 -
nvidia jetson nano /nx / AGX xavier网络配置 固定ip
网络上有三种方法,比较了下,这种方法改动最小:能够实现固定IP 且DNS能够生效(否则无法打开网页)首先看下当前网络情况:有network-managercd /etc/networklscat interfacescd interfaces.dlscat /etc/init.d/networkingcat /etc/init.d/network-manager查看到以上文件,所以和ubuntu网络配置方法基本一致咯。配置方法::~~~~~~~~~~~~~~~cd /etc/netw原创 2021-10-22 20:39:21 · 4541 阅读 · 0 评论 -
docker 中安装cuda.pytorch,torchvision 实现yolov4 GPU过程摘要
ubuntu linux docker 中安装cuda.pytorch,torchvision 实现yolov4、kafka项目在docker中正常运行一、基础:方案一、直接从ubuntu:latest image为基础,支持界面显示、并挂载GPU、cuda资源、项目文件目录生成容器docker run -itd --gpus all --name test -e NVIDIA_DRIVER_CAPABILITYS=compute,utility -e NVIDIA_VISIBLE_DEVICES原创 2021-10-22 11:39:36 · 369 阅读 · 0 评论 -
NVidia 3060/1650S 独显笔记本 HDMI外接屏幕有输出,笔记本屏幕无输出/ubuntu 更改显卡驱动后无法进入图形界面的处理方法 以及禁止内核自动更新
这里写自定义目录标题NVidia 3060/1650S 独显笔记本 HDMI外接屏幕有输出,笔记本屏幕无输出结论关于操作系统 deepin20 ukyrin ubuntu功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入NV原创 2021-08-06 17:23:49 · 1317 阅读 · 0 评论 -
ubuntu18.04利用docker安装NVIDIA驱动、cuda、cudnn、tensorflow、torch等深度学习环境
ubuntu18.04利用docker安装NVIDIA驱动、cuda、cudnn、tensorflow、torch等深度学习环境https://blog.youkuaiyun.com/Zjhao666/article/details/106588865#t0转载 2021-06-30 17:04:56 · 390 阅读 · 0 评论 -
ubuntu 服务器无网络,服务器通过USB使用手机USB共享流量
背景:将到外地调试服务器部署应用,该服务器可能没有外网,需连接网络下载驱动和安装相关包。既然手机USB共享网络可以在window上使用,那么在linux下是否可行呢?验证了下,ubuntu 桌面版可以和windows一样的体验,可以的!!ubuntu/centos server版本也有办法可以。一、 ubuntu桌面版 方法:直接PC通过USB连接手机,然后手机上打开USB网络共享,接着把PC端现有的wifi、有线网络都关掉,然后例如 ping www.163.com 验证是否可以上网,我原创 2021-06-24 15:56:15 · 7964 阅读 · 1 评论 -
服务器源码编译opencv4.5--云话验证
环境安装说明一、编译 opencv 4.5.0 和 opencv_contrib 支持cuda下载源码包1、下载opencv4.5.0和opencv-contrib4.5.0的源码包 opencv4.5.0:https://github.com/opencv/opencv/releases opencv-contrib4.5.0:https://github.com/opencv/opencv_contrib/releases2、解压opencv4.5.0与opencv-contri原创 2021-05-31 16:14:23 · 221 阅读 · 1 评论 -
python turtle pen画图
python turtle pen画图#SquareSpiral1.pyimport turtlet = turtle.Pen()turtle.bgcolor("black")my_name=turtle.textinput("输入想重复显示的元素","比如你的代号?")colors=["red","yellow","purple","blue"]for x in range(300): t.pencolor(colors[x%4]) t.penup() t.for原创 2021-05-08 15:01:01 · 1810 阅读 · 0 评论 -
python turtle 绘图 正方形,放松时玩玩
python turtle 绘图from turtle import *for i in range(1000): forward(2*i) left(91)原创 2021-05-08 14:44:38 · 340 阅读 · 0 评论 -
用python 画了个图 三角形,挺解压的。
用python 画了个图,挺解压的。from turtle import *for i in range(1000): forward(5*i) left(121)原创 2021-05-08 14:41:24 · 371 阅读 · 0 评论 -
Permissions 0777 for ‘/home/***/.ssh/id_rsa‘ are too open.
问题:ssh-add@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Permissions 0777 for ‘/home/***/.ssh/id_rsa’ are too open.It is原创 2021-04-07 17:55:19 · 1955 阅读 · 0 评论 -
QObject::moveToThread: Current thread (xx) is not the object‘s thread (xx).Cannot move to target
##异常: QObject::moveToThread: Current thread (xx) is not the object’s thread (xx).Cannot move to target根源:opencv要指定版本!!!opencv 版本过高导致,试下这个: pip install opencv-python==4.1.0.25原来是4.4,之前没有问题,conda安装matplotlib顺带安装了pyqt和qt,之后就显示这样的报错。我尝试卸载 matplotlib之后,4.4原创 2021-03-18 17:49:21 · 2763 阅读 · 0 评论