- 浏览: 95793 次
- 性别:
- 来自: HK
文章分类
最新评论
-
Mr.小裤裤:
谢谢,
我生日过的很快乐,
o(∩_∩)o...
system badimageformatexception and its partial solution
ampoule use name pipe to communicate among processes. There is a limit about 4096 bytes
on windows. We can't send any data which has a length over 4000. hacking the twisted codes can solve this problem.
1: open twisted/internet/_pollingfile.py
search FULL_BUFFER_SIZE.. the default value is 4096..change it to a bigger one...like 64*1024.
save it
2: open twisted/internet/_dumbwin32proc.py
move the cursor to line: 136..we can find some assignments like:
self.hStdoutR, hStdoutW = win32pipe.CreatePipe(sAttrs, 0)
self.hStderrR, hStderrW = win32pipe.CreatePipe(sAttrs, 0)
hStdinR, self.hStdinW = win32pipe.CreatePipe(sAttrs, 0)
replace them by:
self.hStdoutR, hStdoutW = win32pipe.CreatePipe(sAttrs, _pollingfile.FULL_BUFFER_SIZE)
self.hStderrR, hStderrW = win32pipe.CreatePipe(sAttrs, _pollingfile.FULL_BUFFER_SIZE)
hStdinR, self.hStdinW = win32pipe.CreatePipe(sAttrs, _pollingfile.FULL_BUFFER_SIZE)
save the file...all done
now...ampoule can send some 60K chunks.
发表评论
-
static building lxml
2014-08-13 19:15 756well it is not really straig ... -
build pyrun/python from source
2014-08-01 19:39 537quite easy on ubuntu. 1: ... -
build apsw manually
2014-01-06 01:22 504download sqlite sources and co ... -
python, vs 2010 & manifest problem
2013-11-02 13:33 583It looks like python com ... -
numpy 1.7.0 fails with cx_freeze 4.3.1
2013-02-24 16:13 823It is a work around: find ... -
build psycopg2 on windows with mingw64
2013-01-03 20:36 929caution: version match problem. ... -
Determining if a point lies on the interior of a polygon
2012-09-25 02:23 651link: http://paulbourke.net/geo ... -
pypy的一个测试
2012-06-09 16:15 1570pypy-1.9 昨天已经发布,据称性能又有所提高。 ... -
a naive way to use dictcursor of psycopg2 with twisted adbapi
2012-05-03 03:14 1114make a new file called fakedb.p ... -
build psycopg2 on windows with vs
2012-05-02 02:16 829prerequisites: 1: postgresq ... -
twisted iocp reactor is still buggy---it was fixed on 23/10/2012
2012-03-19 14:53 1204I reported a bug on last wee ... -
One way to speed up Pb invoke.
2012-03-14 21:31 806Pb (stands for Perspecti ... -
which one is thread safe?
2011-09-21 12:31 875quote: It's not so much tha ... -
cython的另类用途
2011-08-04 02:30 1511都知道py虽然方便但是却有个不是问题的问题:就是发布时的二进制 ... -
instructions for installing some python's pkgs on ubuntu
2011-07-23 00:54 749make sure python-dev, gcc and o ... -
a tedious way to build the latest pytables
2011-07-17 03:33 684pyTables is a great product. It ... -
再谈twisted
2011-06-29 17:03 1395现在我手头用的是11.0。 很好。没什么很大的问题,原来的版本 ... -
cython的效果
2011-06-29 00:29 765我有个用py写的 crc-ccitt的验证程序(实现效率并不高 ... -
the simplest way to use vs 2010 with python
2011-06-03 15:48 632edit py/Lib/distutils/msvc9comp ... -
speeding up python
2011-06-03 15:36 840python确实是十分慢的语 ...
相关推荐
Hence, it becomes possible for the attacker to issue a command to all the nodes, that target a single node (for example, all nodes in the botnet might be commanded by the attacker to send a TCP SYN ...
Task orientated, and in bite-size chunks, it shows how to: Create reports, newspapers, cards and booklets Calculate and manage your financial matters Perfect your presentations and slide shows Email...
设定固定范围的数据大小,采用TDMS查看部分数据
stored in 'chunks'. Chunks are the same size as NAND pages. Each page is marked with file id and chunk number. These marking 'tags' are stored in the OOB (or 'spare') region of the flash. The chunk ...
Dmitry Bondarenko say that some servers do not send the msg size after the RETR command, so he fix that issuing a LIST n command first (work nicely).- Added the property CC (Carbon Copy) to the ...
This engaging and refreshingly different guide breaks down the skills into clear step-by-step chunks and explains the theory using brief easy-to-understand language. Rather than bamboozling readers ...
This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re ...
will send that data in chunks of roughly the size you specify. ; Turning on this setting and managing its maximum buffer size can yield some ; interesting side-effects depending on your application ...
缓冲块 将缓冲区拆分为块 安装 npm install buffer-chunks ... var list = chunks ( new Buffer ( 'aaaaazzzzzbbbbb' ) , 5 ) ; // -> [ < Buffer> , < Buffer> , < Buffer> ] 执照 麻省理工学院
It has been discovered that some organisms are genetically different, not so much at the sequence level, but in the order in which large similar chunks of their DNA appear in their respective ...
傳輸大檔案 Sending Files in Chunks with MTOM Web Services and .NET 2.0
If you feel you need to send me a screen shot, please send it in GIF or PNG format. If you mail a bug report to me, please include the words "Drag Drop" in the subject of your email. --------------...
文件内容读入chunks比较简单的方法是一个一个字符读取但速度很慢
data problems the MapReduce way, by breaking a big problem into chunks and creating small-scale solutions that can be flung across thousands upon thousands of nodes to analyze large data volumes in a ...
As data flows in (for example from a slow download), they can write it in small chunks at a time. DIZipWriter outputs all data to the archive straight away, with no need for temporary storage: It ...
Learn how to easily handle huge amounts of data without any loss in efficiency or speed. This book will teach you all that and beyond, in a hands-on learn-by-doing manner. Make yourself an expert ...
// writes all Buffer 'data' chunks to blah-000.txt, blah-001.txt, etc // uses sprintf syntax for pattern var bfs = bufferFileStream ( '/tmp/blah-d.txt' ) ; bfs . write ( 'hello' ) ; // creates a text ...
Despite the increase of high-profile hacks, record-breaking data leaks, and ransomware attacks, many organizations don’t have the budget to establish or outsource an information security (InfoSec) ...
用法chunks = extract(data) 将原始图像文件data作为Uint8Array或Node.js Buffer ,并返回一个大块数组。 每个块都有一个名称和数据缓冲区: [ { name : 'IHDR' , data : Uint8Array ( [ ... ] ) } , { name : 'IDAT...
aria2 requests chunks more than piece size to reduce the request overhead. It also supports pipelined requests with piece size. BitTorrent Local Peer Discovery Rename/change the directory structure...