摘要: 一、判断一个路径是否存在 os.path.exists(path) 如果路径存在则返回True,否则返回False. 二、目录 1、判断路径是否为目录 os.path.isdir(path) 如果为已存在目录则返回True,否则返回False. 2、判断目录是否为空 判断目录是否为空前需确保path 阅读全文
posted @ 2020-03-17 11:25 michaelchengjl 阅读(239) 评论(0) 推荐(0) 编辑
摘要: from: http://hi.baidu.com/hermitinhistory/blog/item/ce64d5fb6b23b71b6d22eb95.html 查看当前操作系统内核信息 uname a Linux redcat 2.6.31 20 generic 58 Ubuntu SMP Fr 阅读全文
posted @ 2020-03-16 15:44 michaelchengjl 阅读(6602) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 磁盘满了处理方法: 1. 如果是虚拟机安装ubuntu,直接给虚拟机安装ubuntu 系统所在的盘符动态分配一点磁盘容量,就可以了。 2. 如果不是虚拟机安装ubuntu,那么有两个办法: 第一:物理磁盘扩容。(插入新硬盘,mount 新硬盘) 第二:删掉不用的大文件 一、确定是不是真 阅读全文
posted @ 2020-03-10 21:36 michaelchengjl 阅读(12196) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 zsh 和一些依赖 sudo apt update sudo apt install -y zsh python-pygments autojump 2.下载推荐配置文件 3. 在家目录解压 cd ~ tar xvf ~/Downloads/zsh.tar.gz 4.启动 zsh。这个过 阅读全文
posted @ 2020-03-07 19:11 michaelchengjl 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 1、What's tmux tmux 是一个终端复用器: 可以激活多个终端或窗口, 在每个终端都可以单独访问,每一个终端都可以访问,运行和控制各自的程序.tmux类似于screen,可以关闭窗口将程序放在后台运行,需要的时候再重新连接。 2、How to install tmux 如果你创建的是wo 阅读全文
posted @ 2020-03-07 19:02 michaelchengjl 阅读(5292) 评论(0) 推荐(0) 编辑
摘要: Linux 定时执行shell 脚本 crontab 可以在指定的时间执行一个shell脚本以及执行一系列 Linux 命令。 定时执行shell脚本 简单给出执行 shell 脚本的步骤。 首先是编写一个测试脚本--test.sh # 创建脚本 $ vim test.sh # 在脚本中做写入文件操 阅读全文
posted @ 2020-02-24 17:42 michaelchengjl 阅读(2300) 评论(0) 推荐(0) 编辑
摘要: 转的文章 https://blog.csdn.net/jkwwwwwwwwww/article/details/51338230 https://blog.csdn.net/Jkwwwwwwwwww/article/details/51338909 阅读全文
posted @ 2020-01-13 15:40 michaelchengjl 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 环境 ubuntu主机环境:Window10 下装VMWare下装的 ubuntu18.04LTS x64 IP 192.168.10.119 Window10下配置192.168.10该网段 开发板:T02,ip:192.168.10.11 1. 在ubuntu下安装NFS服务 apt-get i 阅读全文
posted @ 2020-01-08 20:44 michaelchengjl 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 通过该命令查看那个进程占用该device 然后 最后就可以umount /mnt 了 阅读全文
posted @ 2019-12-31 20:53 michaelchengjl 阅读(988) 评论(0) 推荐(0) 编辑
摘要: 进入CV 领域,视频图像的成像,最前端的camera,camera的sensor 以及影响成像质量的光源,噪声等因素是绕不开的问题。 那么今天就从成像的光源说起。 标准光源(Standard Light Sources)是指模拟各种环境光线下的人造光源,让生产工厂或实验室非现场也能获得与这些特定环境 阅读全文
posted @ 2019-12-15 15:10 michaelchengjl 阅读(2170) 评论(0) 推荐(0) 编辑