上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: 明天就是教师节了,最近心态总是很烦躁,没做什么事情,有点混日子了。1990-2013 也23年了,对现状不太满意,寻求改变,寻求突破。从来不指望不劳而获,努力吧~不甘于平庸,不甘于碌碌无为,发光,我要突破自我,改变世界。 阅读全文
posted @ 2013-09-09 23:16 bigbigtree 阅读(143) 评论(0) 推荐(0) 编辑
摘要: error C2504:头文件包含不全今天碰到了很烦的问题,继承一个类之后,感觉头文件都包含了,可还是出现父类未定义的问题,最后发现,子类的子类在实现时,需要在cpp文件中包含所有他的父类的定义。因为每个cpp文件是单独编译的,需要知道其所有父类来确定这个类的大小和实现的细节。实例代码如下://a.hclass A{public: virtual void fun()=0;};//b.hclass B : public A{public: virtual void fun();};//b.cpp#include "a.h"void B::fun(){ std::cout&l 阅读全文
posted @ 2013-08-27 15:58 bigbigtree 阅读(1238) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.cnblogs.com/yishuiliunian/archive/2011/03/18/1988244.html上次腾讯面试,问我int和long分别几个字节,结果被鄙视了。事过N天,鼓起勇气来好好查了一下,发现学问还是蛮大的。int类型比较特殊,具体的字节数同机器字长和编译器有关。如果要保证移植性,尽量用__int16 __int32 __int64吧,或者自己typedef int INT32一下。C、C++标准中只规定了某种类型的最小字节数(防止溢出)64位指的是cpu通用寄存器的数据宽度是64位的。找到一个图数据类型名称字节数别名取值范围int*signed 阅读全文
posted @ 2013-08-22 15:22 bigbigtree 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: 最近做一些数据库调研的工作,目标是实现影像更快的入库、出库、查询,并实现并行访问等操作。将结果总结成一个mysqlImg类。关于mongodb的图像存储,参见http://www.cnblogs.com/bigbigtree/p/3242483.html关于mysql&python的问题和mysql... 阅读全文
posted @ 2013-08-11 21:16 bigbigtree 阅读(6475) 评论(0) 推荐(0) 编辑
摘要: Class cursor.MySQLCursorBuffered该类从Class cursor.MySQLCursorBuffered继承,如果需要,可以在执行完SQL语句后自动缓冲结果集合。import mysql.connectorcnx = mysql.connector.connect()# Only this particular cursor will buffer resultscnx.cursor(buffered=True)# All cursors will be buffering by defaultcnx2 = mysql.connector.connect(buff 阅读全文
posted @ 2013-08-09 13:57 bigbigtree 阅读(2170) 评论(0) 推荐(0) 编辑
摘要: Class cursor.MySQLCursor具体方法和属性如下:Constructor cursor.MySQLCursorMethod MySQLCursor.callproc(procname, args=())Method MySQLCursor.close()Method MySQLCursor.execute(operation, params=None, multi=False)Method MySQLCursor.executemany(operation, seq_params)Method MySQLCursor.fetchall()Method MySQLCursor. 阅读全文
posted @ 2013-08-09 10:06 bigbigtree 阅读(5765) 评论(0) 推荐(0) 编辑
摘要: 首先对于数据库的基本操作要有一定基础,其次了解Python的基础语法。建议先阅读MysqL中文教程http://doc.mysql.cn/mysql5/refman-5.1-zh.html-chapter/和Python基础教程。一、python连接Mysql连接MySQL的方法有多种,如MySQLdb http://sourceforge.net/projects/mysql-python/但是该项目并不支持python3。现在Mysql官方已经提供了python的连接接口Connector/Python,有安装方法和文档。Connector/Python安装地址:http://dev.my 阅读全文
posted @ 2013-08-08 20:59 bigbigtree 阅读(1707) 评论(0) 推荐(0) 编辑
摘要: 连接mysql数据库:cnx = mysql.connector.connect(user='joe', database='test') Connector/Python参数列表Argument NameDefaultDescriptionuser(username*)The user name used to authenticate with the MySQL server.password(passwd*)The password to authenticate the user with the MySQL server.database(db*)T 阅读全文
posted @ 2013-08-08 11:05 bigbigtree 阅读(529) 评论(0) 推荐(0) 编辑
摘要: BLOB是一个二进制大对象,可以容纳可变数量的数据。有4种BLOB类型:TINYBLOB、BLOB、MEDIUMBLOB和LONGBLOB。它们只是可容纳值的最大长度不同。A binary large object that can hold a variable amount of binary data. The sorting and comparison of the values for these objects is performed in case-sensitive manner.TINYBLOBA binary large object column with a max 阅读全文
posted @ 2013-08-07 21:50 bigbigtree 阅读(17495) 评论(0) 推荐(1) 编辑
摘要: 最近做一些数据库调研的工作,目标是实现影像更快的入库、出库、查询,并实现并行访问等操作。将结果总结成一个mongoImg类,也算是小结吧。 1 ''' 2 Created on 2013-8-6 3 class mongoInsert 4 @author: tree 5 ''' 6 __metacl... 阅读全文
posted @ 2013-08-07 09:59 bigbigtree 阅读(9940) 评论(6) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页