Re: [Tutor] Checking for file completion.

2012-02-21 Thread Tony Pelletier
>> >> def getReport(service, reportId): >>        reportIds = service.client.factory.create('ArrayOfstring') >>        reportIds.string.append(reportId) >> >>        try: >>                result = service.client.service.ReportQueryById(reportIds, >> 'True') >>                if result.Report[0].Re

Re: [Tutor] Checking for file completion.

2012-02-21 Thread Tony Pelletier
> Please post your message again, as a text message rather than an html one. >  Reading non-trivial python code that's lost all its indentation is > impossible.  You've done it before, but that case was simple enough to not > matter much. > > > > -- > > DaveA > Sorry about that. I actually though

Re: [Tutor] Trouble with encoding/decoding a file

2012-02-06 Thread Tony Pelletier
On Mon, Feb 6, 2012 at 1:13 PM, Alan Gauld wrote: > On 06/02/12 15:11, Tony Pelletier wrote: > >> Hi, >> >> I've been tasked with getting the encoded value using a SOAP call and >> then writing the file out. I first used the interpreter to do so like >>

[Tutor] Trouble with encoding/decoding a file

2012-02-06 Thread Tony Pelletier
Hi, I've been tasked with getting the encoded value using a SOAP call and then writing the file out. I first used the interpreter to do so like such: import base64 encoded = 'super long encoded string' data = base64.b64decode(encoded) outfile = open('test.xls', 'w') outfile.write(data) outfile.

Re: [Tutor] Facebook apps with python

2012-01-19 Thread Tony Pelletier
On Wed, Jan 18, 2012 at 8:34 AM, karthik s wrote: > Well, my question is simple.. > How do I create facebook apps with python. I have couple of interesting/ > funky programs and want to make them as apps. > So, > 1. What all things I should know for writing facebook apps. > 2. I read that we shoul

[Tutor] Handling a Unicode Return using Pyodbc

2011-11-14 Thread Tony Pelletier
Good Afternoon, I'm writing a program that is essentially connecting to MS SQL Server and dumping all the contents of the tables to separate csv's. I'm almost complete, but now I'm running into a Unicode issue and I'm not sure how to resolve it. I have a ridiculous amount of tables but I managed

Re: [Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Tony Pelletier
FYI, my windows laptop is actually much more capable than my linux laptop. Linux is an IBM Thinkpad T61 Windows is an Alienware M11x R2( i7 with 4gb of ram) Thanks again. Tony On Fri, Oct 14, 2011 at 7:01 PM, Steven D'Aprano wrote: > Tony Pelletier wrote: > > So, my question is. Wh

[Tutor] Windows vs Linux processing speed.

2011-10-14 Thread Tony Pelletier
Hi, I have a question regarding the speed of my program on linux in comparison to windows. I'm using geopy and contacting Google for geocodes for records in a csv I created. Like such: try: reader = csv.reader(open(filename, "r")) for row in reader: if row: # Checki