最近几天完成了BiasDAC的程序编写。调试的过程还算比较顺利,除了几个有点bt的小问题。其中一个困扰了我两三天的时间,今天上午终于将其解决。由于BiasDAC是用RS232 Serial Port通信的,延用之前的程序,使用了Delphi的SPComm控件。在之前的使用中,SPComm控件一直工作...
分类:
其他好文 时间:
2014-07-09 22:27:56
阅读次数:
177
#!/bin/bash
HOST_NAME="localhost"
PORT=3306
USERNAME="root"
PASSWORD="root"
DBNAME="test"
TABLENAME="tb_test"
today=`date +%Y-%m-%d`
#删除数据
delete_sql="delete from ${TABLENAME} whe...
分类:
数据库 时间:
2014-07-08 15:40:54
阅读次数:
325
change http port into other number
分类:
其他好文 时间:
2014-07-08 12:37:51
阅读次数:
285
以基本的学生选课为例,建立选课数据库,学生、班级、选课信息三张表,并分别对表进行插删改操作:importMySQLdb
try:
conn=MySQLdb.connect(host=‘localhost‘,user=‘root‘,passwd=‘root‘,db=‘xuanke‘,port=3306)
cur=conn.cursor()
cur.execute("CREATEDATABASExuanke")
..
分类:
数据库 时间:
2014-07-08 08:05:43
阅读次数:
479
[client]port = 3306socket = /tmp/mysql.sock[mysqld]port = 3306socket = /tmp/mysql.sockbasedir = /usr/local/mysqldatadir = /data/mysqlpid-file = /data/...
分类:
数据库 时间:
2014-07-06 16:35:55
阅读次数:
249
expect自动远程拷贝脚本,利用rsync命令,脚本内容如下:#!/usr/bin/expect --proc Usage_Exit {self} { puts "" puts "Usage: $self ip user passwd port sourcefile d...
分类:
其他好文 时间:
2014-07-06 16:24:17
阅读次数:
333
2014年第一个脚本,哈哈!!! expect实现远程主机自动执行命令脚本:#!/usr/bin/expect --if { [llength $argv] < 4 } { puts "Usage: $argv0 ip user passwd port commands timeout" exit ...
分类:
其他好文 时间:
2014-07-06 16:23:01
阅读次数:
341
accept()函数 系统调用 accept() 会有点古怪的地方的! 你能够想象发生 这种事情:有人从非常远的地方通过一个你在侦听 (listen()) 的port连接 (connect()) 到你的机器。它的连接将添?到等待接受 (accept()) 的队列 中。 你调用 accep...
分类:
其他好文 时间:
2014-07-06 14:27:49
阅读次数:
182
怎样在同一系统中启动多个 TOMCAT
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
http请求处理端口,我们在网页上输入的...
分类:
其他好文 时间:
2014-07-06 12:24:04
阅读次数:
239
以163为例的各个Mail服务器SSL协议端口号和非SSL协议端口号...
分类:
其他好文 时间:
2014-07-06 10:21:43
阅读次数:
175