- 浏览: 100507 次
- 性别:
- 来自: HK
最新评论
-
Mr.小裤裤:
谢谢,
我生日过的很快乐,
o(∩_∩)o...
system badimageformatexception and its partial solution
文章列表
1: go to www.htcdev.com & follow instructions of unlock bootloader..
2: go to http://bbs.gfan.com/android-4448713-1-1.html and check details.
do "fastboot flash recovery recovery.img"
and copy ICE_ROOT_CN.zip to sdcard. and run it in recovery mode.
I attached two files h ...
caution: version match problem. if the target is 32bit we need to modify
cygwincompiler.py in /your_py_path/lib/disutils/cygwincompiler.py
find class Mingw32CCompiler and its __init__
we have:
self.set_executables(compiler='gcc -m32 -O -Wall',
compil ...
prerequisities:
1: apt-get install build-essential
1: apt-get install libreadline-dev
2: apt-get install zlib1g-dev
4: sudo make install
5: done
it is so easy comparing with oracle installation.
(def a 12)
(binding [a 13] a)
fails on clojure 1.4 or later (I guess)
instead we need to do:
(def ^:dynamic a 12)
when doing installation postgis on windows 7 manually, You may encounter a problem when
"create extension postgis" is operated.
pg may complain some errors about insecure usage of backslash quote in client programming
a simple solution is :
find out postgis-2.0.x on your_ ...
on ubuntu
prerequisities:
1 build-essential
2 autoconf
3 libtool
4 gettext
5 gcc-mingw32
download the latest source package.
and run
./build-mingw32.sh -d /usr/i586-mingw32msvc -m i586-mingw32msvc
done.
compiling mono on windows is painful. The easiest way is to com ...
link: http://paulbourke.net/geometry/insidepoly/
here is the python code snippet:
def point_inside_polygon(cls, lon,lat, coors):
n = len(coors)
inside = False
p1x,p1y = coors[0]
for i in xrange(n+1):
p2x,p2y = coors[i % n]
if lat & ...
pypy-1.9 昨天已经发布,据称性能又有所提高。
于是我特地用一个东西来测试一下:
就是bson的 encode效率
pymongo的bson自带一个用c写的扩展用于speed up速度。
在我的t400, win7下测试。大约一秒钟可以encode 10万的数据。
用pypy-1.9速度能达到多少呢? 同样的bson without c_extension。
速度大约为每秒9万。
某种程度上说,pypy-jit的效率已经逼近用c写的代码。而用c写代码让py来加速 就算现在用上cython也是比不上直接上python来得方便。
...
Json.net supports Bson however JValue convert every integer value to int64 bit..
In bson. int32 need 4 bytes and int64 need 8 bytes...so there is a room to improve it.
find JValue.cs
add a new constructor
public JValue(int value)
: this(value, JTokenType.Integer)
{ } ...
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 ...
prerequisites:
1: postgresql
2: vs
steps:
1: run
python setup.py build build_ext --pg-config x:/pgsql/bin/pg_config.exe
2: make sure following dlls are on the path:
libpq.dll
libeay32.dll
ssleay32.dll
libintl-8.dll
libiconv-2.dll
done..
caution: make sure the ...
build python 2.7.3 first...the default python version is 2.4.3...out of support..
1: steps of python 2.7.3 building
: build sqlite3 first..
we omit Tkinter building here due to we don't need this module.
run ./configure CFLAGS="-fPIC" --prefix=/usr/local ..
sudo make insta ...
I reported a bug on last weekend...This bug can be easily reproduced by sending continuous small chunks data. If we use pb or amp and send any data whose size can't fit the buffer (128K),
iocp reactor will raise a ERROR_IO_PENDING. and close the connection immediately. It looks like many writ ...
Pb (stands for Perspective broker), a built-in rpc lib of twisted has been used widely.
Pb supports py built-in types directly like: int, list, dict ...
complex object need extra effort to be transferred on wire.
Pb serialization sucks...if arugments are complex...like following:
...
this tutorial is not necessary due to apt-get install can install Ice 3.4.2 easily (at least for Ubuntu 11.10)
the easiest way:
sudo apt-get install zeroc-ice34....and wait...
update on 04/2012
usig apt-get to install zeroc-ice34 may cause a weird problem about recycling references.. ...