上篇博文分享了我的知识库,被好多人关注,受宠若惊。今天我把我在项目中封装的OPC自定义接口的程序分享一下。下面将会简单简单介绍下OPC DA客户端数据访问,以及搭配整个系统的运行环境。OPC(OLE for Process Control)其实就是一套标准,我对这套标准理解不多,使用过程中就把它.....
分类:
其他好文 时间:
2014-07-22 22:57:55
阅读次数:
1175
The ComboBox control is in many ways like the ListBox control, but takes up a lot less space, because the list of items is hidden when not needed. The...
分类:
其他好文 时间:
2014-07-22 22:56:32
阅读次数:
216
修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法...
分类:
数据库 时间:
2014-07-18 21:25:00
阅读次数:
331
mysql -u root -p 按回车,输入密码后提示access denied......ues password YES/NO的错误。
第一步:
这时你需要进入/etc/mysql目录下,然后sudo vim/vi debian.cnf查看里面的用户名和密码,然后使用这个文件中的用户名和密码进入mysql,假如debian.cnf中的用户名为debian-sys-maint,则:
my...
分类:
数据库 时间:
2014-07-17 10:17:45
阅读次数:
266
#!/bin/bash#forsecurityofosforipin`catip.txt`doecho-e"\033[31m##################$ip#####################\033[0m"RedhatVersion=`ssh$ip-C"cat/etc/issue"|awkNR==1‘{print$7}‘`if[${RedhatVersion}=‘5.6’]thenssh$ip-C"chattr-i/etc/login.defs&&authconfig--..
分类:
其他好文 时间:
2014-07-17 09:41:28
阅读次数:
257
#!/bin/bash#forsecurityofosforipin`catip.txt`doecho-e"\033[31m##################$ip#####################\033[0m"scpopenssl-0.9.8za.tar.gz$ip:/tmp/ssh$ip-C"tar-xzvf/tmp/openssl-0.9.8za.tar.gz-C/tmp/&&cd/tmp/openssl-0.9.8za&&./configsharedno-z..
分类:
其他好文 时间:
2014-07-17 09:18:46
阅读次数:
205
#!/bin/shservices="bluetoothcupsfirstbootgpmhiddhplipip6tablesisdnpcscdxfsxinetdyum-updatesdmessagebusabrtdabrt-oopsabrt-ccppavahi-daemonrhsmcertd"forservicein$servicesdoif[-f"/etc/init.d/$service"]thenif[$service==‘xinetd‘]thengrep-rdisable/etc/xinetd.*|se..
分类:
其他好文 时间:
2014-07-17 09:13:37
阅读次数:
197
我们用普通同步方式扫描10个端口,用协程(异步)方式扫描1000个端口,对比时间。1、同步方式代码#encoding=utf-8
#author:walker
#date:2014-07-16
#function:使用同步方式扫描10个端口
importtime,socket,sys
deftask(addr):
sock=socket.socket(socket.AF_INET,socket.SO..
分类:
其他好文 时间:
2014-07-17 09:01:22
阅读次数:
226
环境:Ubuntu12.10_x64问题:用tsql访问SQL Server>> tsql -H 192.168.88.133 -p 1433 U saError 20002 (severity 9):Adaptive Server connection failed解决:查看TDS version...
分类:
其他好文 时间:
2014-07-17 00:13:08
阅读次数:
845