Re: Graph Dates and Values

2009-03-10 Thread brianrpsgt1
On Mar 10, 9:44 am, "Gabriel Genellina" wrote: > En Tue, 10 Mar 2009 13:32:10 -0200, brianrpsgt1   > escribió: > > > > > > > On Mar 10, 7:40 am, "Gabriel Genellina" > > wrote: > >> En Tue, 10 Mar 2009 05:08:41 -0200, brianrpsgt1   &

Re: Graph Dates and Values

2009-03-10 Thread brianrpsgt1
On Mar 10, 7:40 am, "Gabriel Genellina" wrote: > En Tue, 10 Mar 2009 05:08:41 -0200, brianrpsgt1   > escribió: > > > I am trying to plot dates and values on a graph using matplotlib. > > Below is the code.  I can run this and it works great, until I get to

Graph Dates and Values

2009-03-10 Thread brianrpsgt1
I am trying to plot dates and values on a graph using matplotlib. Below is the code. I can run this and it works great, until I get to about 2000 rows from the DB. Things really start to slow down. I have successfully plotted up to 5000 rows from the DB, but it is very slow. I am attempting to

count secton of data in list

2009-02-20 Thread brianrpsgt1
I have a list of three columns of data. I run the following code: def step1(val): for d1r in data1_row: if d1r[1] >= val: switch = 0 data2_row = d1r[0],d1r[1],d1r[2],switch print d1r[0],d1r[1],d1r[2],switch else: switch = 1

Re: Break large file down into multiple files

2009-02-12 Thread brianrpsgt1
On Feb 12, 11:02 pm, "Gabriel Genellina" wrote: > En Fri, 13 Feb 2009 04:44:54 -0200, brianrpsgt1   > escribió: > > > New to python I have a large file that I need to break upinto > > multiple smallerfiles. I need to break the large fileintosections > >

Break large file down into multiple files

2009-02-12 Thread brianrpsgt1
New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. I am familiar with opening and writing files, however, I am struggling with creating

Insert data into MySQL from HTML Form using .psp script

2008-11-08 Thread brianrpsgt1
I am attempting to insert data from a HTML form using a .psp script. I can not find how to link the data that is inserted into the form to the variables in the .psp script to then insert into the MySQL Insert statement. I am familiar with PHP, where you would write $_POST(['field']), however I can

IDLE stopped working

2008-10-26 Thread brianrpsgt1
OSX 10.5.5 Python 2.5.1 I started up IDLE today and the bottom of the window was off of the screen. I could not find a way to resize it. I closed all apps and rebooted. After rebooting, IDLE will not start. Below is the Traceback: Traceback (most recent call last): File "/Library/Frameworks

IDLE stopped working

2008-10-26 Thread brianrpsgt1
Using OS X 10.5.5 Python 2.5.1 IDLE was working, then all of a sudden, the window size went off of the screen could not resize it. I closed IDLE and rebooted and now IDLE will not start. Below is the Traceback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/V

Re: Read data from Serial Command

2008-10-10 Thread brianrpsgt1
That did it! The fix was the '\r' Thanks for the assistance Dennis and Grant! Dennis Lee Bieber wrote: > On Fri, 10 Oct 2008 15:40:08 -0700 (PDT), brianrpsgt1 > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > Again, what is weird is that

Re: Read data from Serial Command

2008-10-10 Thread brianrpsgt1
Again, what is weird is that all works fine in Hyperterminal, but not with the Python script. brianrpsgt1 wrote: > Gave that a shot what is happening is that the script is > hanging. Does that mean that the write function is not making it > through, thus there is nothing

Re: Read data from Serial Command

2008-10-10 Thread brianrpsgt1
Gave that a shot what is happening is that the script is hanging. Does that mean that the write function is not making it through, thus there is nothing to return? Grant Edwards wrote: > On 2008-10-10, brianrpsgt1 <[EMAIL PROTECTED]> wrote: > > Thanks for the message >

Re: Read data from Serial Command

2008-10-10 Thread brianrpsgt1
the s.isOpen() function. Also able to successfully connect in Hypterterminal with the same configuration settings. Grant Edwards wrote: > On 2008-10-10, brianrpsgt1 <[EMAIL PROTECTED]> wrote: > > I am new to scripting. I am trying to read the settings from a serial > > dev

Read data from Serial Command

2008-10-10 Thread brianrpsgt1
I am new to scripting. I am trying to read the settings from a serial device using Python. I have been able to successfully connect to the device and change baud rate settings, ect... with PySerial. I am trying to send a command to the serial device and capture the returned info, however, it is

Problems downloading and installing win32api

2008-09-08 Thread brianrpsgt1
I have attempted downloading and installing several different version of the win32api from Source Forge, however, each time I try to install I get the following error message: "Only part of a ReadProcessMemory or WriteProcessMemory request was completed" This occurred with the following files: py

pythonweb and Leopard

2008-03-24 Thread brianrpsgt1
I am trying to create a simple web application that is written in python, using apache and mysql. It appears as though the python web modules have been installed, however, whenever I try to run a python script, it only displays the code in the browser. It is like the python code is not getting pr

Re: Compile Cheetah Template on Windows

2007-11-28 Thread brianrpsgt1
close() db.close() total_results = len(pocmonitors) nameSpace = {'title': 'First Cheetah Example', 'pocmonitors': pocmonitors, 'total_results': total_results} output = Template(file='C:\Python25\Lib\site-packages\PSN \SafetyNet.tmpl', searchList=

Compile Cheetah Template on Windows

2007-11-24 Thread brianrpsgt1
Newbie here I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows Laptop, running WinXP, Python 2.5 and the latest version of Cheetah. I have two questions: 1. How and w