cur =
self.conn.cursor(MySQLdb.cursors.DictCursor)加上MySQLdb.cursors.DictCursor可以返回字典结构{列名:值}class
MYSQL(): def __init__(self,host,user,pwd,db): ...
分类:
数据库 时间:
2014-05-16 19:18:34
阅读次数:
419
1. 创建一个空白的项目,在其中创建Host – Windows Console
Application,Client – Windows forms Application和DataExchangeWorkflows – Activity
Library这三个项目。创建后应该结构类似于下图:2. ...
分类:
其他好文 时间:
2014-05-16 19:13:25
阅读次数:
895
Image帮助类的output方法中,在下面的代码header("Content-type:
image/" . $type);前增加代码:ob_end_clean();
分类:
Web程序 时间:
2014-05-16 07:01:32
阅读次数:
308
imagecreatetruecolor(宽,高);
图片宽高imagecolorallocate(图片,红,绿,蓝)
调用(三原色)生成颜色的方法,是生成背景颜色imagestring(图片,字体大小,字所在的x轴,字所在的y轴,要显示的验证码,字体颜色)header
要把...
分类:
Web程序 时间:
2014-05-15 15:59:13
阅读次数:
432
FAAC1.28的下载地址:http://www.audiocoding.com/downloads.html
如何编译:
1../configure --host=arm-hisiv100nptl-linux --prefix=/home/ssy/lib
2.make
3.make install
优化
在不修改源码的情况下,faac的内存占用非常高,每路音频在13M左右。如果多路音...
分类:
系统相关 时间:
2014-05-15 06:47:02
阅读次数:
904
用域名获取IP地址或者用IP获取域名
#include
#include
#include
int main(int argc,char **aggv)
{
struct hostent *host;
char hostname[]="www.163.com";
char hostname2[]="www.baidu.com";
s...
分类:
系统相关 时间:
2014-05-15 06:15:07
阅读次数:
406
ocm02库与GC安装与配置
安装顺序:ocmdb02库(host:ocm02)
1.安装ocmdb02库 作用:存放历史数据,用于历史分析 --后续安装oms,oms需要一个容器来存放各个agent推送来的信息,ocmdb02就是这个容器。
2.配置oracle用户环境变量
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOM...
分类:
其他好文 时间:
2014-05-15 05:52:11
阅读次数:
238
在php开发中遇到两个问题
(1)Cannot send session
cache limiter
解决方式 找到 php.ini 修改php.ini中的 session.auto_start = 0 为 session.auto_start
= 1
(2)Cannot modify header information
解决方式 找...
分类:
Web程序 时间:
2014-05-14 14:28:55
阅读次数:
396
ORACLE RMAN备份及还原
RMAN可以进行增量备份:数据库,表空间,数据文件
只有使用过的block可以被备份成backup set
表空间与数据文件对应关系:dba_data_files / v$datafile_header
在noarchivelog模式下,可以使用RMAN备份read-only和offline的表空间
O...
分类:
数据库 时间:
2014-05-13 16:18:47
阅读次数:
556
安装opencv2.0
解压OpenCV-2.0.0.tar.bz2
tar xvf OpenCV-2.0.0.tar.bz2
配置
./configure --host=arm-linux --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --wi...
分类:
系统相关 时间:
2014-05-13 14:51:36
阅读次数:
402