a regex question

2019-10-25 Thread Maggie Q Roth
Hello There are two primary types of lines in the log: 60.191.38.xx/ 42.120.161.xx /archives/1005 I know how to write regex to match each line, but don't get the good result with one regex to match both lines. Can you help? Thanks, Maggie -- https://mail.python.org/ma

graphics with python

2019-10-24 Thread Maggie Q Roth
Hello Can you show me the correct way to programming with graphics? I want to take some action detection, for instance, recognize dancing etc. Thanks, Maggie -- https://mail.python.org/mailman/listinfo/python-list

paypal wholesale world cup 2010 football jersey

2010-10-22 Thread maggie
paypal wholesale world cup 2010 football jersey England www.supertrade06.com paypal wholesale world cup 2010 football jersey France www.supertrade06.com paypal wholesale world cup 2010 football jersey New Zealand paypal wholesale world cup 2010 football jersey Portugal www.supertrade06.com payp

Reading in a file

2010-04-12 Thread Maggie
hello, i have a basic script i need to implement. i need below code to read in a file and perform operation is it designed to do: #!/usr/bin/python import sys feed = sys.stdin.readlines() for temp in feed: line = temp.split() if len(line) == 3: if (line[0] == "xmax" or line[0] == "xmi

Re: Plotting wav file

2009-09-21 Thread Maggie
On Sep 21, 3:07 pm, "Rami Chowdhury" wrote: > On Mon, 21 Sep 2009 11:58:30 -0700, Maggie wrote: > > What would be the best way to plot a small .wav file in python? If > > there are any tutorials or sample code, I would really appreciate it! > > I'm sorry, w

Plotting wav file

2009-09-21 Thread Maggie
What would be the best way to plot a small .wav file in python? If there are any tutorials or sample code, I would really appreciate it! -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with cumulative sum

2009-09-08 Thread Maggie
On Sep 8, 4:17 pm, MRAB wrote: > Maggie wrote: > > On Sep 8, 3:29 pm, Maggie wrote: > >> Building on the code that I posted in one of the previous posts.. I > >> need to find a cumulative sum of the file of the times in the test > >> file: > > >> h

Re: Help with cumulative sum

2009-09-08 Thread Maggie
gt; If you can come up with the summifier function, you're all set.  I gotta > say, though, this smells like homework. > > Cheers, > Cliff > > On Tue, 2009-09-08 at 12:29 -0700, Maggie wrote: > > Building on the code that I posted in one of the previous posts.. I >

Re: Help with cumulative sum

2009-09-08 Thread Maggie
On Sep 8, 3:49 pm, Maggie wrote: > On Sep 8, 3:29 pm, Maggie wrote: > > > > > Building on the code that I posted in one of the previous posts.. I > > need to find a cumulative sum of the file of the times in the test > > file: > > > here is the code i hav

Re: Help with cumulative sum

2009-09-08 Thread Maggie
On Sep 8, 3:29 pm, Maggie wrote: > Building on the code that I posted in one of the previous posts.. I > need to find a cumulative sum of the file of the times in the test > file: > > here is the code i have: > > #!/usr/bin/python > > import os.path > >

Help with cumulative sum

2009-09-08 Thread Maggie
Building on the code that I posted in one of the previous posts.. I need to find a cumulative sum of the file of the times in the test file: here is the code i have: #!/usr/bin/python import os.path #name of output file filename = "OUTPUT.txt" #open the file test = open ("test.txt", "rU") #re

Re: Output file formatting/loop problems -- HELP?

2009-09-08 Thread Maggie
On Sep 8, 12:35 pm, MRAB wrote: > Maggie wrote: > > On Sep 8, 11:39 am, MRAB wrote: > >> Maggie wrote: > >>> My code is supposed to enumerate each line of file (1, 2, 3...) and > >>> write the new version into the output file -- > >>> #

Re: Output file formatting/loop problems -- HELP?

2009-09-08 Thread Maggie
On Sep 8, 11:39 am, MRAB wrote: > Maggie wrote: > > My code is supposed to enumerate each line of file (1, 2, 3...) and > > write the new version into the output file -- > > > #!/usr/bin/python > > > import os.path > > import csv > > impor

Output file formatting/loop problems -- HELP?

2009-09-08 Thread Maggie
My code is supposed to enumerate each line of file (1, 2, 3...) and write the new version into the output file -- #!/usr/bin/python import os.path import csv import sys #name of output file filename = "OUTPUT.txt" #open the file test = open ("test.txt", "r") #read in all the data into a list

Re: beginner's python help

2009-09-06 Thread Maggie
On Sep 6, 4:19 am, Chris Rebert wrote: > On Sun, Sep 6, 2009 at 1:10 AM, Maggie wrote: > > On Sep 6, 3:58 am, Chris Rebert wrote: > >> On Sun, Sep 6, 2009 at 12:54 AM, hrishy wrote: > >> > Hi > > >> > sum = 0 > >> >  for item in

Re: beginner's python help

2009-09-06 Thread Maggie
On Sep 6, 3:58 am, Chris Rebert wrote: > On Sun, Sep 6, 2009 at 12:54 AM, hrishy wrote: > > Hi > > > sum = 0 > >  for item in readData: > >     try: > >         sum += int(item) > >     except ValueError: > >         print "Oops!  That was no valid number. Instead it was:", item > > > So you mean

beginner's python help

2009-09-06 Thread Maggie
code practice: test = open ("test.txt", "r") readData = test.readlines() #set up a sum sum = 0; for item in readData: sum += int(item) print sum test file looks something like this: 34 23 124 432 12 when i am trying to compile this it gives me the error: invalid literal for int() with b

Re: Running Sum script

2009-09-04 Thread Maggie
On Sep 4, 4:37 pm, Tobiah wrote: > > in the terminal i get a very strange "permission denied" error that might > > not have anything to do with the code. I checked permissions for the file > > and they are set to "read and write" so, again, I am really not sure what > > going wrong. > > Try: > >

Raw data extraction question

2009-08-26 Thread Maggie
i have event timing stretch of code i need to alter. here is code below: -- # we start each run with one full silent trial # creating a "stub" with the duration of a full block # less the discarded acquisitions stub = block_dur - (distax * tr) feed = sys.stdin.readlines() sess = -1 for