开发一个plsqldev in 插件 直接用vc++6.0打开安装目录下\PlugInDoc\VC++\DemoMfc\DemoMfc.dsp工程文件,将DemoMfc.cpp的代码全部删除,替换以下代码后直接编译dll文件即可。插件特色可以根据参数quotes决定单引号的数量,一般数字型的我们不需要单引号,直接传0即可,如果是要粘贴到过程里动态sql的需要两个单引号就需要传2,代码都已经写好了,直接编译即可。
windows 通过命令增加防火墙规则 os.system(f'netsh advfirewall firewall set rule name="端口3389" new remoteip={ips}')ip.append(df.loc[idx, '地址'])input('输入任意键结束')excel必须有的字段为"地址"
oracle 查找不是纯数字的记录 select * from (select distinct translate(replace(id, '.', ''), '/1234567890', '/') col from xxx)where col is not null
python 多进程 清空僵尸进程 from multiprocessing import Processimport timedef run(): time.sleep(1) def run2(): passcnt = 0while True: #目的清空僵尸进程 prss = Process(target=run2) prss.start() prss.join() #执行批量任务,一般都是数据库一个sql查询,如果有记录就同时开启子进程执行 #以下.
linux 动态添加当前ssh客户端ip到firewalld add.sh[root@ecs-3287 ~]# cat add.sh#!/bin/baship=$(echo $SSH_CLIENT |awk '{print $1}')echo ${ip}firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="${ip}" port protocol="tcp" port="8000" accept"firewall-cmd --permanent --ad
oracle 指定月份到当前时间的所有月份排倒序 select distinct (to_char(t.dt, 'yyyymm')) months from (select rownum,trunc(to_date('201901', 'yyyymm')) + rownum - 1 dt from dualconnect by rownum < trunc(sysdate - 1, 'mm') - to_date('201901', 'yyyymm') + 2) t order by months d...
内网环境安装 wine 由于需要oracle数据库开发,客户的机器是linux,还没有外网环境,所以准备使用 wine 来启动windows客户程序 PLSQLDeveloper。准备工作:下载跟客户版本一直的安装镜像,32位和64位的都要CentOS-7-i386-DVD-1511.isoCentOS-7-x86_64-DVD-1511.iso准备配置 本地yum备份 /etc/yum.repos.d/ 目录下的repo文件,然后清空vi /etc/yum.repos.d/local.repo[l
oracle 正则提取 指定需要的值 例子 指定格式的字符串A:AAA;B:BBB;C:CCCselect regexp_substr('A:AAA;B:BBB;C:CCC','[^:.*?;]+',1,3) B, -- 取B regexp_substr('A:AAA;B:BBB;C:CCC','[^:.*?;]+',1,4) BBB --取BBB from dual;记录下,如果有更好的办法欢迎留言告诉我!...
centos6 phpstudy php5.5.10 内网环境升级到 php5.6.40 1.下载php 5.6.40 源码 并上传到内网服务器http://hk2.php.net/distributions/php-5.6.40.tar.gz2.解压源码tar -zxvf php-5.6.40.tar.gz3.设置编译参数./php -i|grep configure #通过原来的php获取原来编译参数将引号全部替换为空粘贴替换好的参数 示例如下 内网36.227./configure--prefix=/phpstudy/server/php --with-c.
linux redhat 6.2 上 安装 python3.6 验证码识别 1、根据网上教程安装 python3.62、根据http://www.dayanmei.com/how-to-install-tersseract-on-centos-6/安装tesseract 3.043、pip3 installpytesseract 提示 log.py 有问题,我就拿其它机器 python3.7的log.py替换后成功安装4、验证码识别的时候提示eng...
tesseract 3.04在centos6上安装 tesseract是一个开源的OCR文字识别工具查找相关文章:tesseracttesseract 4.0一直安装失败,后来参照网上的方法,成功安装3.04 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...