safa

分享观点与知识

0
推荐
1102
阅读

tailf 错误提示 inotify resources exhausted

检查cat /proc/sys/fs/inotify/max_user_watches 8192解决:加一句sudo vi /etc/sysctl.conf fs.inotify.max_user_watches = 524288生效sudo sysctl -p --system

发表了文章 • 2019-08-19 10:33 • 0 条评论

0
推荐
1269
阅读

CentOS7安装nginx

nginx安装centOS默认不提供nginx,添加CentOS EPEL仓库 sudo yum install -y epel-release sudo yum install -y nginxnginx启动 停止 重启 查看状态sudo systemctl start nginx sudo systemctl stop nginx sudo systemctl reload nginx sudo systemctl status nginx # 查看状态或sudo nginx -s start sudo nginx -s relo...

发表了文章 • 2019-08-14 14:02 • 0 条评论

1
推荐
1241
阅读

excel 命令

当前列号column() 变 列名=IF(COLUMN()>26,(LEFT(ADDRESS(ROW(),COLUMN(),4),2)),(LEFT(ADDRESS(ROW(),COLUMN(),4))))B1列名变列号2=COLUMN(B1)indirect(B2) 引用:B2中内容作为地址,指向的单元格的内容 indirect("B2") 引用:B2中内容

发表了文章 • 2019-08-08 13:48 • 0 条评论

0
推荐
1316
阅读

python + cx_oracle 向oracle 表中插数据

一条条插数据import cx_Oracle import numpy as np conn = cx_Oracle.connect('user/passwd@host/instance') c = conn.cursor() x = np.arange(9).reshape((3,3)) # ndarray z=x.tolist() # ndarray to list b=[[v] for v in z] for i in range(10): c.execute('insert into sales_table (X1,X2) values(:1,:2)'...

发表了文章 • 2019-08-06 11:43 • 0 条评论

0
推荐
1187
阅读

sudo自动输入密码

1. 管道上一条命令的stdout,作为下一条命令的stdin:echo pwd123 | sudo -S rm test2.  << 和 EOF<< 结合 EOF ,后续输入作为子命令或子Shell的输入,直到遇到EOF为止,并返回到主Shell,这里把要输入的密码夹在<< 和 EOF当中,作为命令的输入sudo -S rm test << pwd123 EOF3. 参数 ...

发表了文章 • 2019-07-19 10:40 • 0 条评论

0
推荐
1245
阅读

pyenv + python 2.7.12 + cx_oracle + instantclient_11_2

1. pyenv + python 2.7.12 环境2. 安装 cx_Oracle python -m pip install cx_Oracle --upgrade 参考https://cx-oracle.readthedocs.io/en/latest/installation.html#id103. 下载安装instantclient_11_2http://download.oracle.com/otn/linux/instantclient/11204/instantclient-basic-linux.x64-11.2.0.4.0.zi...

发表了文章 • 2019-07-17 10:37 • 0 条评论

0
推荐
1945
阅读

tv检测商业

1. 卸载,清注册表2. 改无线网卡macHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}新建值Network Address添加12个字符:262626262626注意第二个字符必须使用2, 6, A或E,否则不成功!改以太网卡mac打开网络和共享中心/更改适配器设置/本地连接属性/配置/高级/本地管...

发表了文章 • 2019-07-10 22:56 • 0 条评论

0
推荐
967
阅读

PE-TL10安装adb interface驱动

PE-TL10 有两个驱动安装不成功,安装华为手机助手,驱动自动装好,再卸载华为手机助手 安装 python-3.7.3-amd64.exe

发表了文章 • 2019-07-10 22:51 • 0 条评论

0
推荐
2281
阅读

conda安装提示错误 Ubuntu CondaHTTPError: HTTP 000 CONNECTION FAILED for url

添加镜像解决conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set s...

发表了文章 • 2019-06-26 17:33 • 0 条评论

0
推荐
6694
阅读

卸载cuda8.0,重装nvidia显卡驱动,安装cuda10.1和cudnn

卸载 cuda (cudnn也删除)CUDA和cuDNN关系CUDA是NVIDIA的通用并行计算架构,cuDNN是深度神经网络GPU加速库,是CUDA的扩展计算库,它的插入式设计,即只要把cuDNN文件复制到CUDA的对应文件夹里,不会对CUDA造成其他影响。# 用 runfile 方式安装的删除方法: sudo /usr/local/cuda-8.0/bin/uninstall_cuda_8.0.pl# 用 ...

发表了文章 • 2019-06-26 16:18 • 0 条评论

0
推荐
1431
阅读

Create a conda virtual environment and activate it

下载 Anaconda,官网https://www.continuum.io/downloads打不开,使用国内镜像wget http://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.1-Linux-x86_64.sh安装Anacondacd # 默认装在 ~/anaconda3,这样不同用户不干涉 bash Anaconda3-5.3.1-Linux-x86_64.shlicense 答yes 写入.bashrc 答no 安装...

发表了文章 • 2019-06-25 16:42 • 0 条评论

0
推荐
1152
阅读

python import 上级目录

https://blog.csdn.net/songbinxu/article/details/80289489

发表了文章 • 2019-06-19 11:37 • 0 条评论

0
推荐
1511
阅读

ImportError: No module named _tkinter 错误解决

问题:跑MASK RCNN代码出错 https://github.com/CharlesShang/FastMaskRCNNpython download_and_convert_data.py  错误提示:If this fails your Python may not be configured for Tk  ImportError: No module named _tkinter环境:Ubuntu: 16.04pyenv + virutalenv+Python: 3.6.5尝试解决过程:1....

发表了文章 • 2019-06-12 18:00 • 0 条评论

0
推荐
1968
阅读

ls列出目录下大量文件时,报错 /bin/ls: Argument list too long

命令 ls *; cp *; rm *; cat * 等会出现”Argument list too long”错误,因为试图传递太多参数用find命令统计mb目录下jpg文件的个数 ls ./mb/*.jpg | wc -l 会报错 改用 find ./mb -name *.jpg | wc -l

发表了文章 • 2019-03-18 11:31 • 0 条评论

0
推荐
1660
阅读

crontab创建任务却无法自动执行,而手动执行没有问题

1. 手动执行任务,是在当前shell下,程序当然能找到环境变量2. 系统自动执行任务调度时,不会加载任何环境变量,因此,需在crontab文件中指定任务运行所需的所有环境变量,系统执行任务调度时就没问题。例如:30 08 * * * /test/spark_submit.sh sale.py报错:"cx_Oracle.DatabaseError": Error while trying to retriev...

发表了文章 • 2019-02-19 12:56 • 0 条评论