- 浏览: 96098 次
- 性别:
- 来自: HK
文章分类
最新评论
-
Mr.小裤裤:
谢谢,
我生日过的很快乐,
o(∩_∩)o...
system badimageformatexception and its partial solution
make a new file called fakedb.py
and copy some contents from psycopg1.py from psycopg2 package
class connection(_2connection):
"""psycopg 1.1.x connection."""
def cursor(self):
"""cursor() -> new psycopg 1.1.x compatible cursor object"""
return _2connection.cursor(self, cursor_factory=psycopg2.extras.DictCursor)
def autocommit(self, on_off=1):
"""autocommit(on_off=1) -> switch autocommit on (1) or off (0)"""
if on_off > 0:
self.set_isolation_level(_ext.ISOLATION_LEVEL_AUTOCOMMIT)
else:
self.set_isolation_level(_ext.ISOLATION_LEVEL_READ_COMMITTED)
the point is to specify cursor_factory as DictCursor..
now use this file with adbapi like
adbapi.ConnectionPool("fakedb", database="test",host='localhost',\
port=9000,user='mathgl')
发表评论
-
static building lxml
2014-08-13 19:15 759well it is not really straig ... -
build pyrun/python from source
2014-08-01 19:39 539quite easy on ubuntu. 1: ... -
build apsw manually
2014-01-06 01:22 507download sqlite sources and co ... -
python, vs 2010 & manifest problem
2013-11-02 13:33 588It looks like python com ... -
numpy 1.7.0 fails with cx_freeze 4.3.1
2013-02-24 16:13 826It is a work around: find ... -
build psycopg2 on windows with mingw64
2013-01-03 20:36 932caution: version match problem. ... -
Determining if a point lies on the interior of a polygon
2012-09-25 02:23 653link: http://paulbourke.net/geo ... -
pypy的一个测试
2012-06-09 16:15 1575pypy-1.9 昨天已经发布,据称性能又有所提高。 ... -
build psycopg2 on windows with vs
2012-05-02 02:16 832prerequisites: 1: postgresq ... -
twisted iocp reactor is still buggy---it was fixed on 23/10/2012
2012-03-19 14:53 1210I reported a bug on last wee ... -
One way to speed up Pb invoke.
2012-03-14 21:31 810Pb (stands for Perspecti ... -
change buffer size in order to send chunks data in ampoule
2011-12-03 16:08 763ampoule use name pipe to commun ... -
which one is thread safe?
2011-09-21 12:31 875quote: It's not so much tha ... -
cython的另类用途
2011-08-04 02:30 1515都知道py虽然方便但是却有个不是问题的问题:就是发布时的二进制 ... -
instructions for installing some python's pkgs on ubuntu
2011-07-23 00:54 755make sure python-dev, gcc and o ... -
a tedious way to build the latest pytables
2011-07-17 03:33 688pyTables is a great product. It ... -
再谈twisted
2011-06-29 17:03 1399现在我手头用的是11.0。 很好。没什么很大的问题,原来的版本 ... -
cython的效果
2011-06-29 00:29 769我有个用py写的 crc-ccitt的验证程序(实现效率并不高 ... -
the simplest way to use vs 2010 with python
2011-06-03 15:48 636edit py/Lib/distutils/msvc9comp ... -
speeding up python
2011-06-03 15:36 843python确实是十分慢的语 ...
相关推荐
This book teaches you to design and develop data mining applications using a variety of datasets, starting with basic classification and affinity analysis. Next, we move on to more complex data types ...
It offers you a useful way of interpreting the data that's specific to this book, but that can also be applied to any other data. Table of Contents Chapter 1: Setting GNU R for Predictive Analytics ...
Data science libraries, frameworks, modules, and toolkits are great for doing data science, but they’re also a good way to dive into the discipline without actually understanding data science....
By the end of this book, you will master all required concepts of scikit-learn to build efficient models at work to carry out advanced tasks with the practical approach. What you will learn Review ...
Data science libraries, frameworks, modules, and toolkits are great for doing data science, but they’re also a good way to dive into the discipline without actually understanding data science....
classification algorithms were used to evaluate the overall performance of the identification of “stress” states in the computer users, achieving an average accuracy of 83.16 percent, with the ...
Data science libraries, frameworks, modules, and toolkits are great for doing data science, but they’re also a good way to dive into the discipline without actually understanding data science....
YOUR PERSONAL BLUE PRINT: Through a simple to follow intuitive step by step process, you will learn how to use the most popular machine learning algorithms using R. Once you have mastered the process,...
Data science libraries, frameworks, modules, and toolkits are great for doing data science, but they’re also a good way to dive into the discipline without actually understanding data science....
This book teaches you to design and develop data mining applications using a variety of datasets, starting with basic classification and affinity analysis. Next, we move on to more complex data types ...
By the end of this book, you will master all required concepts of scikit-learn to build efficient models at work to carry out advanced tasks with the practical approach. What you will learn Review ...
This Learning Path will take you through the fundamentals of R and demonstrate how to use the language to solve a diverse range of challenges through machine learning. Accessible yet comprehensive, it...
In addition to these older and less secure methods, there are now a number of stronger EAP methods intended for integrated use with standard wireless access protocols, such that the keys generated in ...
Happily UTF-8 is designed so that it is relatively easy to count the number of unicode symbols in a string: simply count the number of octets that are in the ranges 0x00 to 0x7f (inclusive) or 0xC2 to...
Mastering Machine Learning with scikit-learn (2 ed) (True PDF + AWZ3 + codes) Table of Contents Preface 1 Chapter 1: The Fundamentals of Machine Learning 6 Defining machine learning 6 Learning from ...
A naive approach could require up to 192 comparisons for the same classification. The algorithms and representations are described, as well as descriptions of three applications in which it has been ...
Use techniques such as A*and A*mbush to empower your agents with path finding capabilities. Create a representation of the world and make agents navigate it Construct decision-making systems to make ...
With this practical guide, author Matthew Kirk shows you how to integrate and test machine learning algorithms in your code, without the academic subtext. Featuring graphs and highlighted code ...
and a section on the use of the object modelling language Alloy and its analyserforsp ecifying and exploring under-specified first-orderlogic models with respect to properties written in first-order ...
Data science libraries, frameworks, modules, and toolkits are great for doing data science, but they’re also a good way to dive into the discipline without actually understanding data science....