Re: write a 20GB file

2010-05-14 Thread Jackie Lee
lush and close merely refers to the problem that some > data may still be in the buffer at any point in time, unless you just > called close or flush. > > HTH, > Martin > -- Jackie -- http://mail.python.org/mailman/listinfo/python-list

Re: write a 20GB file

2010-05-14 Thread Jackie Lee
(-2,1) f.write(struct.pack('>h',1)) f.seek(210,1) f.seek(ns*4,1) f.close() On Fri, May 14, 2010 at 6:04 PM, Dave Angel wrote: > Jackie Lee wrote: >> >> Hello there, >> >> I have a 22 GB binary file, a want to change values of specific >

write a 20GB file

2010-05-14 Thread Jackie Lee
Hello there, I have a 22 GB binary file, a want to change values of specific positions. Because of the volume of the file, I doubt my code a efficient one: #! /usr/bin/env python #coding=utf-8 import sys import struct try: f=open(sys.argv[1],'rb+') except (IOError,Exception): print '

pause between the loops

2008-09-21 Thread Jackie Wang
Hi all, For a loop like: for i = range (0,10); can I ask python to stop for, say, 5mins, after it go through loop i=0 before it starts loop i=1? Thank you very much! Jackie -- http://mail.python.org/mailman/listinfo/python-list

Use BeautifulSoup to delete certain tag while keeping its content

2008-09-06 Thread Jackie Wang
ngeles, CA Salisbury Bank and Trust Company Lakeville, CT Thank you. Jackie -- http://mail.python.org/mailman/listinfo/python-list

Extract Information from Tables in html

2008-09-05 Thread Jackie Wang
Dear all, Here is a html code: Premier Community Bank of Southwest Florida Fort Myers, FL My question is how I can extract the strings and get the results: Premier Community Bank of Southwest Florida; Fort Myers, FL Thanks a lot Jackie -- http://mail.python.org

Automatically fill in forms on line

2008-03-31 Thread Jackie Wang
Dear all, I want to automatically complete the following task: 1. Go to http://www.ffiec.gov/Geocode/default.aspx; 2. Fill in an address in the form "Street Address:" . e.g. "1316 State Highway 102"; 3. Fill in a ZIPcode in the form "Zip Code:" . e.g. "04609"; 4. Click the bottom "search"; 5. In

automatically pdf files generating

2007-06-25 Thread Jackie Wang
files with names: 01.pdf,02.pdf,...,50.pdf. Is it possible to use Python to realized the above process? I know there is a module named "reportlab". Is there any easy command in the module to do my job? Thanks Jackie -

dealing with emf/wmf files

2007-06-24 Thread Jackie Wang
I'd like to put some emf/wmf pictures into a pdf file using 'reportlab', but the Python Imaging Library cannot recognize emf files. The wmf files are said to be 'identified only'. Therefore, the following code does not work: from reportlab.pdfgen import canvas from reportlab.lib.pagesizes import

automatical pdf generating

2007-06-24 Thread Jackie
names: 01.pdf,02.pdf,...,50.pdf. Is it possible to use Python to realized the above process? I know there is a module named "reportlab". Is there any easy command in the module to do my job? Thanks Jackie -- http://mail.python.org/mailman/listinfo/python-list

Re: Output of HTML parsing

2007-06-19 Thread Jackie
On 6 15 , 2 01 , Stefan Behnel <[EMAIL PROTECTED]> wrote: > Jackie wrote: > import lxml.etree as et > url = "http://www.economics.utoronto.ca/index.php/index/person/faculty/"; > tree = et.parse(url) > > Stefan- - > > - - Thank you. But

Output of html parsing

2007-06-16 Thread Jackie Wang
and title will be mismatched. How to program to allow that title can be empty? 2.Is there any easier way to get the data I want other than using list? 3.Should I close the opened csv file("professor.csv")? How to close it? Thanks! Jackie

Output of HTML parsing

2007-06-15 Thread Jackie
can be empty? 2.Is there any easier way to get the data I want other than using list? 3.Should I close the opened csv file("professor.csv")? How to close it? Thanks! Jackie -- http://mail.python.org/mailman/listinfo/python-list

duplicate entries

2005-09-28 Thread jackie chang
Dear Python Gurus:   I am a very new Python user, would really appreciate your help.   I used Python to write a web form for users to enter. The underlined database is Oracle. One validation needs to enforce to eliminate duplicates entries. For example: one customer ID can only be entered only on