Re: Modeling life on Earth –- an object-oriented (Python?) challenge

2013-07-30 Thread David Hutto
further feedback on my idea and possibly reach other > interested developers. > > Kindly contact me if you have any interest in the idea and time to devote > it, as it is becoming a funded project. > > Kind regards, thanks for any hint, and apologies for the many inaccuracies, >

Executing Python Scripts on Mac using Python Launcher

2012-06-25 Thread David Thomas
Hello, This is my first post so go easy on me. I am just beginning to program using Python on Mac. When I try to execute a file using Python Launcher my code seems to cause an error in terminal, when I execute the exact same piece of code and run it in windows it seems to execute as exactly in

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
w how I can open such a file using 10.7. Thanks http://www.freeimagehosting.net/ilbqt http://www.freeimagehosting.net/r5ars On Monday, June 25, 2012 8:49:07 PM UTC+1, Benjamin Kaplan wrote: > On Mon, Jun 25, 2012 at 11:19 AM, David Thomas wrote: > > Hello, > > This is my first post

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
On Tuesday, June 26, 2012 6:37:42 PM UTC+1, Dave Angel wrote: > On 06/26/2012 01:19 PM, David Thomas wrote: > > I have installed Python 2.7.3 from Python.org also in Terminal it states > > that I have 2.7.3. > > How can I execute the script from Terminal? I've tried t

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread David Thomas
On Monday, June 25, 2012 7:19:54 PM UTC+1, David Thomas wrote: > Hello, > This is my first post so go easy on me. I am just beginning to program using > Python on Mac. When I try to execute a file using Python Launcher my code > seems to cause an error in terminal, when I execu

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-27 Thread David Thomas
On Tuesday, June 26, 2012 10:48:22 PM UTC+1, Hans Mulder wrote: > On 26/06/12 22:41:59, Dave Angel wrote: > > On 06/26/2012 03:16 PM, Hans Mulder wrote: > >> > >> > >> Python is an executable, and is > >> typically located in a "bin" directory. To find out where > >> it is, type > >> > >> ty

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-27 Thread David Thomas
Thank you ever so much raw_input works fine. Do you think I should stick with Python 2 before I go to 3? I have a text book which is using 3 but I've been using an online tutorial which has been helping me lots, which uses version 2. I found by just typing python then having a space and dragging

Recommend decent Computer Science books

2012-06-27 Thread David Thomas
Hi I know that this is a group about Python. But I am just wondering if anybody can recommend any introductory/good books on Conputer Science. Kind regards -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommend decent Computer Science books

2012-06-28 Thread David Thomas
Thanks everyone for the feedback really appreciate it especially the above post cheers -- http://mail.python.org/mailman/listinfo/python-list

Following syntax error in Mac OX10.7 Terminal

2012-06-28 Thread David Thomas
Hi, I have the following error regarding a loop tutorial found on http://www.sthurlow.com/python/lesson04/ >>> a=0 >>> while a<10: ... a=a+1 File "", line 2 a=a+1 ^ IndentationError: expected an indented block When I run Python IDE it seems to work fine. The following code is: a=0 w

Re: Following syntax error in Mac OX10.7 Terminal

2012-06-28 Thread David Thomas
Thank you very much I didn't realise that the indentation was important. The IDE indents automatically whilst terminal doesn't. Thanks for pointing it out. -- http://mail.python.org/mailman/listinfo/python-list

Re: Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread David Thomas
On Thursday, June 28, 2012 6:30:42 PM UTC+1, Sergi Pasoev wrote: > You just have to consider that indentation matters in Python, so you > have to type the code in Python interpreter as you have written it > below, that is, press Tab before each line when you are inside the > 'while (or any other li

Re: Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread David Thomas
On Friday, June 29, 2012 4:21:56 PM UTC+1, MRAB wrote: > On 29/06/2012 16:13, David Thomas wrote: > > On Thursday, June 28, 2012 6:30:42 PM UTC+1, Sergi Pasoev wrote: > >> You just have to consider that indentation matters in Python, so you > >> have to type the code i

Re: Python Interview Questions

2012-07-10 Thread David Robinow
On Tue, Jul 10, 2012 at 1:02 PM, Ethan Furman wrote: ... > > Reminds me of a job posting a few years ago where the prospective employer > wanted three plus years experience in some language, and that language had > only been created a year and a half before. I saw several of those when Java was n

Re: logging time format millisecond precision decimalsign

2012-07-20 Thread David Bolen
Y-%m-%d %H:%M:%S') should work. This uses the same date format as the default, but without ms, though of course you could also opt to make any other date format you prefer. -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting a list of strings into a list of integers?

2012-07-22 Thread David Robinow
On Sun, Jul 22, 2012 at 12:20 PM, Jan Riechers wrote: > On 22.07.2012 18:39, Alister wrote: >> looks like a classic list comprehension to me and can be achieved in a >> single line >> MODUS_LIST=[int(x) for x in options.modus_list] > Hi, > > I am not sure why everyone is using the for-iterator opt

Python and OSX 10.8

2012-08-09 Thread David Thomas
Im looking to upgrade my Mac to 10.8 and I'm worried if Python and IDLE may not run on it. When I try to run this command in Terminal: python -m idlelib.idle I can not launch IDLE which comes bundled on Mac. On Lion it's been fine but I've tried it on my friend's copy of Mountain Lion and it wil

Re: Filter versus comprehension (was Re: something about split()???)

2012-08-25 Thread David Robinow
On Fri, Aug 24, 2012 at 3:03 PM, Walter Hurry wrote: > On Fri, 24 Aug 2012 14:29:00 -0400, Dennis Lee Bieber wrote: > >> It appears to be a change Google made in the last month or two... My >> hypothesis is that they are replacing hard EOL found in inbound NNTP >> with an HTML , and then on outgoi

python docs search for 'print'

2012-09-04 Thread David Hoese
A friend made me aware of this: When a python beginner (2.x) quick searches for "print" on docs.python.org, the print function doesn't even come up in the top 20 results. The print statement isn't even listed as far as I can tell. Is there something that can be done about this to make it easi

python docs search for 'print'

2012-09-06 Thread David Hoese
On 9/5/12 3:03 PM, Grant Edwards wrote: On 2012-09-05, Dave Angel wrote: >On 09/05/2012 01:47 PM, Grant Edwards wrote: > >>Making the site's "search" box use Google or somesuch is probably the >>simplest solution. I'm not enough of a web guy to know how to do >>that, but I do know that some si

Looking for download link for ArcPY

2012-09-08 Thread David Shi
Hi, All, Can anyone send me the link for downloading ArcPY? I came across it before, but can not find it anymore. Regards. David-- http://mail.python.org/mailman/listinfo/python-list

Re: python CAD libraries?

2012-09-10 Thread David Hutto
Might have posted that too many times, I don't use the google groups that much. > > Best Regards, > > David Hutto > > CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 108, Issue 98

2012-09-12 Thread David Shi
Hi, Where do I find ArcPy.py? It seems that the link disappeared. Regards. David-- http://mail.python.org/mailman/listinfo/python-list

'indent'ing Python in windows bat

2012-09-17 Thread David Smith
Hello, I'm essentially a newbie in Python. My problem in searching the archives is not knowing what words to use to ask. I'm converting windows bat files little by little to Python 3 as I find time and learn Python. The most efficient method for some lines is to call Python like: python -c "i

Re: 'indent'ing Python in windows bat

2012-09-18 Thread David Smith
Thank you all. Roy Smith gets the most thanks, though he didn't answer my general question -- he showed me how to look at that specific structure differently. Terry Reedy might get thanks for her idea if I can ever figure the correct escape sequences that will make both windows and the Python i

Re: Re: 'indent'ing Python in windows bat

2012-09-19 Thread David Smith
On 2012-09-19 05:22, Thomas Rachel wrote: Am 18.09.2012 15:03 schrieb David Smith: I COULD break down each batch file and write dozens of mini python scripts to be called. I already have a few, too. Efficiency? Speed is bad, but these are bat files, after all. The cost of trying to work with a

Re: Re: 'indent'ing Python in windows bat

2012-09-19 Thread David Smith
On 2012-09-19 14:18, Terry Reedy wrote: stating correctly that it works for exec(). My mistake. I fancied you were talking shell, not python. I now see that Python 3 has exec() as a built-in. python -c "exec('print(\"hi\")\nif 0:\n print(\"hi\")\nelif 1:\n print(\"hi2\")')" worked right of

Re: How to apply the user's HTML environment in a Python programme?

2012-09-21 Thread David Smith
On 2012-09-21 08:57, BobAalsma wrote: This text can be behind a username/password, but for several reasons, I don't want to know those. So I would like to set up a situation where the user logs in (if/when appropriate), points out the URL to my programme and my programme would then be able to

Re: Stop feeding the trolls (Was: which a is used?)

2012-09-25 Thread David Robinow
On Tue, Sep 25, 2012 at 9:53 AM, D'Arcy Cain wrote: > ... > Now if only people would stop feeding the troll, those of us who have > already *plonked* him can stop seeing his ramblings in the responses. I'm hating myself for jumping in to this nonsense, but ... +1 -- http://mail.python.org/mailma

EOL for Python 3.2?

2012-09-29 Thread David Dillard
With the release of Python 3.3.0 does that mean the 3.2.x line is now end of life? I've looked for some sort of end of life policy on python.org, but was unable to find one. -- http://mail.python.org/mailman/listinfo/python-list

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-01 Thread David Robinow
On Sun, Sep 30, 2012 at 11:55 PM, Dave Angel wrote: >> The problem with that is that one has to already being using 3.3 to >> use this facility. I was hoping for a solution which was backwards >> compatible with Python 2.x. >>... >> That does not solve the problem for Python 2.x distributions. > I

How can I hide my stack frames in a TestCase subclass?

2012-10-04 Thread David Banks
I want to add a custom assert method to a TestCase subclass. I tried to copy my implementation from the unittest module so that it would match the behaviour of the regular TestCase as closely as possible. (I would prefer to just delegate to self.assertEqual() but this causes even more backtrace n

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread David Robinow
On Wed, Oct 17, 2012 at 1:07 PM, Ian Kelly wrote: > "return len(w) != len(w_decomposed)" is all you need. Thanks for helping, but I already knew that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Aggressive language on python-list

2012-10-17 Thread David Hutto
On Thu, Oct 18, 2012 at 1:29 AM, Steven D'Aprano wrote: > David, > > While I acknowledge and appreciate your efforts to be less aggressive on > this list, I think you have crossed a line by forwarding the contents of > an obviously personal email containing CLEARLY PRIVATE M

Re: Aggressive language on python-list

2012-10-17 Thread David Hutto
that I mind: People much wiser than we have expressed that war is > the most horrible thing in the universe and David is by his own > admission a war-damaged individual. > > If Steven chooses to engage him thats his call > If Alex chooses to fight with him thats his > I am

Re: A desperate lunge for on-topic-ness

2012-10-20 Thread David Robinow
On Sat, Oct 20, 2012 at 3:10 PM, Dennis Lee Bieber wrote: > On Sat, 20 Oct 2012 14:18:47 + (UTC), Grant Edwards > declaimed the following in > gmane.comp.python.general: > >> >> True, but nobody prints source code out on paper do they? >> >> Seriously -- I can't remember the last time I print

Re: Fast forward-backward (write-read)

2012-10-23 Thread David Hutto
and back to a dict_one = {0 : [0.100], 1 : [1.99]} and the iterate through the loop, and call the first or second in the dict's var list for frontwards , or backwards calls. But there might be faster implementations, depending on other function's usage of certain lower level

Re: Fast forward-backward (write-read)

2012-10-23 Thread David Hutto
file. Use: forward = ["%i = %s" % (i,chr(i)) for i in range(33,126)] backward = ["%i = %s" % (i,chr(i)) for i in range(126,32,-1)] print forward,backward -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast forward-backward (write-read)

2012-10-23 Thread David Hutto
ed what i had, and accidentally wrote the wrong function. > > > > -- > Best Regards, > David Hutto > CEO: http://www.hitwebdevelopment.com -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast forward-backward (write-read)

2012-10-23 Thread David Hutto
t;\n\n", "****\n\n", backward, "\n" -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast forward-backward (write-read)

2012-10-23 Thread David Hutto
On Tue, Oct 23, 2012 at 6:53 PM, Steven D'Aprano wrote: > On Tue, 23 Oct 2012 17:50:55 -0400, David Hutto wrote: > >> On Tue, Oct 23, 2012 at 10:31 AM, Virgil Stokes wrote: >>> I am working with some rather large data files (>100GB) > [...] >>> Finally,

Re: Fast forward-backward (write-read)

2012-10-23 Thread David Hutto
On Tue, Oct 23, 2012 at 7:35 PM, emile wrote: > On 10/23/2012 04:19 PM, David Hutto wrote: >> >> Whether this is fast enough, or not, I don't know: > > > well, the OP's original post started with > "I am working with some rather large data files (>

Re: Fast forward-backward (write-read)

2012-10-23 Thread David Hutto
quot;\ import numpy numpy.array([[ 1., 0., 0.], [ 0., 1., 2.]]) """ u = """\ list_count = 0 an_array = [] for i in range(0,10): if list_count > 3: break if i % 3 != 0: an_array.append(i)

Re: Split single file into multiple files based on patterns

2012-10-23 Thread David Hutto
ore to #keep all files, even if the have the first base number. count = 0 for file_data in turn_text_to_txt: #open the file for writing in 'w' mode so it creates the file, and #adds in the appropriate data, including the extra count i#nteger just in case there are files with the same n

Re: turn list of letters into an array of integers

2012-10-23 Thread David Hutto
ng to: x = seq.split('\n ') array_list = [ ] next_3_d_array = [] range_of_seq = len(seq) for num in range(0,range_of_seq): if num % 3 != 0: next_3_d_array.append(num) if num % 3 == 0: array_list.append(next_3_d_array) next_3_d_array = [ ] -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: The pty module, reading from a pty, and Python 2/3

2012-10-23 Thread David Hutto
) >>> print("Could not spawn") >>> sys.exit(1) >>> >>> child_pty = os.fdopen(fd) >>> return child_pty.read() >>> >>> >>> if __name__ == "__main__": >>> print(get_text("my-pty-test.py")) >>> >>> >>> The read error I get is >>> >>> Traceback (most recent call last): >>> File "my-pty-test.py", line 28, in >>> print(get_text("my-pty-test.py")) >>> File "my-pty-test.py", line 24, in get_text >>> return child_pty.read() >>> IOError: [Errno 5] Input/output error at first glance, you have the file open for writing('w'), not reading('r'), but may not be that. I'll check if I get a few minutes. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: The pty module, reading from a pty, and Python 2/3

2012-10-23 Thread David Hutto
it(1) child_pty = os.fdopen(fd) #you have to input into read, how many characters you want read in. if you place a random integer in, it will read to that integer within the file return child_pty.read(statinfo.st_size) if __name__ == "__main__": print(get_te

Re: The pty module, reading from a pty, and Python 2/3

2012-10-23 Thread David Hutto
n read below, where you return the value #you have to input into read, how many characters you want read in with statinfo.st_size statinfo = os.stat(filename) return child_pty.read(statinfo.st_size) if __name__ == "__main__": print(get_text("my-pty-test.py&q

Re: The pty module, reading from a pty, and Python 2/3

2012-10-23 Thread David Hutto
in other words, the last two lines of your function should be: statinfo = os.stat(filename) return child_pty.read(statinfo.st_size) -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast forward-backward (write-read)

2012-10-24 Thread David Hutto
On Wed, Oct 24, 2012 at 3:05 AM, Virgil Stokes wrote: > On 24-Oct-2012 00:36, David Hutto wrote: >>> >>> Don't forget to use timeit for an average OS utilization. >>> >>> I'd suggest two list comprehensions for now, until I've reviewed it s

Re: Fast forward-backward (write-read)

2012-10-24 Thread David Hutto
brecht.github.com >> >> >> >> > Yes, I can still remember such quotes --- thanks for jogging my memory, > Demian :-) This is only on equipment designed by others, otherwise, you could engineer the hardware yourself to perfom just certain functions for you(RISC

Re: Split single file into multiple files based on patterns

2012-10-24 Thread David Hutto
work for you? > > If so, I see that your expectation was correct. > > > > -- > Steven Some learn better with a full example, better than any small challenge that can be thrown in at certain times. I think it should be a little of both, especially if you (an algorithmitist for the OP)only

Re: Listen for changes in variable (alsaaudio.Mixer(x, x).getvolume(x)

2012-10-24 Thread David Hutto
ess to certain CL apps. Once you've found a way to access the CL apps with python(I use subprocess.call usually, I think, but there's popen, etc.) then use man alsamixer, or man aplayer, or man arecorder. in the shell on your linux distro. Then throw in a little tkinter, or a windowing

Re: Listen for changes in variable (alsaaudio.Mixer(x, x).getvolume(x)

2012-10-24 Thread David Hutto
it has to be close to > instantaneous. > You might have to go to c++(ctypes function call), like I'm going to have to for a oscilloscope(using arecord probably, or other options), and use in line assembly to push straight from/to the register. I haven't had a good look at python&#

Re: can we append a list with another list in Python ?

2012-10-25 Thread David Hutto
; for i in list_2: ... list_1.append(i) ... >>> list_1 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] or would another example help you out more? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: can we append a list with another list in Python ?

2012-10-25 Thread David Hutto
will simply concatenate the list like >> > [1,2,3,4,5,6] .. I dont want this actaully... >> > >> >> >> >> No, it won't. Try it to see > > > Ok but it should be clist + = [alist, blist ] >> >> >> >> -- Also, t

Re: can we append a list with another list in Python ?

2012-10-25 Thread David Hutto
_1.append(i) >> ... >> >>> list_1 >> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] >> >> >> or would another example help you out more? > > > No but really sorry this is what I DONT WANT... > > The output I want to have is : > > [ [0, 1, 2,

Re: can we append a list with another list in Python ?

2012-10-25 Thread David Hutto
Also, >>> list_1 = [i for i in range(0,5)] >>> list_2 = [i for i in range(5,11)] >>> list_0 = [list_1,list_2] >>> list_0 [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9, 10]] -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: can we append a list with another list in Python ?

2012-10-25 Thread David Hutto
On Thu, Oct 25, 2012 at 5:58 AM, inshu chauhan wrote: > Yes Dave ..You are right and my problem is solved now.. Thanx to all... > > > On Thu, Oct 25, 2012 at 11:55 AM, David Hutto > wrote: >> >> On Thu, Oct 25, 2012 at 5:51 AM, inshu chauhan >> wrote: >&

Re: can we append a list with another list in Python ?

2012-10-25 Thread David Hutto
On Thu, Oct 25, 2012 at 6:12 AM, inshu chauhan wrote: > > > On Thu, Oct 25, 2012 at 12:04 PM, David Hutto > wrote: >> >> On Thu, Oct 25, 2012 at 5:58 AM, inshu chauhan >> wrote: >> > Yes Dave ..You are right and my problem is solved now.. Thanx to all...

Re: Question about long-running web scripts

2012-10-25 Thread David Hutto
impact on an average user's experience. > As long as too many of them don't try to do that at the same time. > Exactly where the line is drawn will depend on your particular hosting > solution, your assumed traffic, and your users' expectations as to > responsiveness. > > TJG > -- > http://mail.python.org/mailman/listinfo/python-list -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Quickie - Regexp for a string not at the beginning of the line

2012-10-25 Thread David Hutto
function, and return the output from awk. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast forward-backward (write-read)

2012-10-28 Thread David Hutto
> Data files have some sort of parsing, unless it's one huge dict, or > list, so there has to be an average size to the parse. > Not meaning the dict, or list isn't parsed, but that the file should be have parsable areas. -- Best Regards, David Hutto CEO: http://www.hi

Re: I need help installing pypng in Python 3.3

2012-10-29 Thread David Robinow
On Mon, Oct 29, 2012 at 8:23 AM, wrote: > Hello all, > > I am very new to python. I am currently porting a little project of mine from > java to python and I need to be able to construct and write png images. I > naturally turned myself toward pypng to accomplish this. > > I learned from the ne

Re: SSH Connection with Python

2012-10-29 Thread David Robinow
On Sun, Oct 28, 2012 at 4:09 PM, Gelonida N wrote: > The only thing I'm concerned about paramiko is, that I don't see any > activity on the paramiko site and that one library it depends on is not > available is windows binary package for newer versions of python. > I don't understand why this is

Web application for drawing directed graphs from the output of Python's cProfile

2012-11-04 Thread David Wong
I recently built startgraphi.com. It's a web application that draws directed graphs of running times and function calls from the output of Python's cProfile. It also creates a sortable table of running times and function calls. I hope someone finds it useful. -- http://mail.python.org/mailman/

Re: Migrate from Access 2010 / VBA

2012-11-22 Thread David Hutto
t; Keith Translate function for function to the new language(return values), then adapt the GUI to represent the new functions on event activity via widgets. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Migrate from Access 2010 / VBA

2012-11-27 Thread David Bolen
the above process the remaining uses just don't bother or interfere with me that much. If they ever do I'll replicate those remaining bits of functionality elsewhere. -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: Exponential arrival distribution in Python

2012-11-28 Thread David Hutto
rithmic, scale where: for i in range(0,4) print "%i = %i" % (i * 10 **i) -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Exponential arrival distribution in Python

2012-11-28 Thread David Hutto
I mean this one: for i in range(0,4): print "%i = %i" % (i * 10 **i) -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: mini browser with python

2012-12-05 Thread David Hutto
I think this is the snippe that you want: david@david-desktop:~$ python Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import urlliib >>>

Re: Plz Suggest... How can i install the pure python package py-bidi in WIndows.

2012-12-22 Thread David Robinow
On Sat, Dec 22, 2012 at 9:10 AM, Arsalan Khan wrote: > I tried installing but it gives error.. > Can anyone guide the procedure of configuring/Installing a python package in > windows ??? What did you do to try to install? What error(s) did you get? Where can I find this package if I want to h

Re: Mixxx DJ app and Python

2013-01-29 Thread David Hutto
re is any DJ app that could be driven by pygame.midi? > > Any idea appreciated. > Sorry to fail to be more specific. I'd just go with a command line app that triggered a .wav file at certain points using time.sleep(x) Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Mixxx DJ app and Python

2013-01-29 Thread David Hutto
On Tue, Jan 29, 2013 at 11:06 AM, David Hutto wrote: > On Mon, Jan 28, 2013 at 10:10 AM, wrote: >> >> Hi guys, >> >> I am thinking of driving a DJ application from Python. >> I am running Linux and I found the Mixxx app. >> Does anyone know if there are

Re: Mixxx DJ app and Python

2013-01-29 Thread David Hutto
bout to do is take the mic, get the soundtrack/beat to the song going, and then plug it into audacity for further modification, or you can roll your own. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Mixxx DJ app and Python

2013-01-29 Thread David Hutto
On Tue, Jan 29, 2013 at 11:16 AM, David Hutto wrote: >>>> Does anyone know if there are python bindings, or if this is possible at >>>> all? >>>> or does anyone have experience with another software that does the same DJ >>>> thing? >>

Re: Mixxx DJ app and Python

2013-01-29 Thread David Hutto
On Tue, Jan 29, 2013 at 11:18 AM, wrote: > On Tuesday, January 29, 2013 4:13:09 PM UTC, David Hutto wrote: > [..] >> >> >> or does anyone have experience with another software that does the same >> >> DJ thing? >> >> >> >> >&

Re: Mixxx DJ app and Python

2013-01-29 Thread David Hutto
ard computer that ran a python client. > > So you used a digital buffer region for your wave forms? How did you handle the rest of the data; allocate memory, or delete if the data became too lengthy? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.or

Re: Mixxx DJ app and Python

2013-01-29 Thread David Hutto
> Thanks David. > It seems that the code is in C++ so I should write Python wrappers myself, Or ctypes. which could be interesting, but given the time frame I have is just not possible, Pity :-( > However I was not going to transmit sounds, but just commands to mix the > sounds that

Re: Ways to apply while learning....

2013-01-29 Thread David Hutto
subrocess, but many ahve their preference. (I know there is a long way to develop something for the desktop) Do you mean command line app, or with a GUI? > > Thank you. > ps: I am coming from vb6 paradigm. > -- > http://mail.python.org/mailman/listinfo/python-list -- Best Regards, Davi

Questions regarding the daemon module.

2012-01-28 Thread David Lambert
I was looking for a simple way to daemonize a Python process, and found: http://www.python.org/dev/peps/pep-3143/ I used easy_install to add this package (I thought), but when I attempted to use the example in the above link, I got the error: AttributeError: 'module' object has no attribute

Re: add two strings

2012-01-30 Thread David Lambert
On 01/30/2012 07:02 AM, contro opinion wrote: >>> s1='\x45' >>> s2='\xe4' >>> s1+s2 'E\xe4' >>> print s1+s2 E why s1+s2 not = '\x45\xe4'?? It is, but '\x45' is ASCII 'E', and '\xe4' is not a printable character: >>> print '\x45' E >>> print '\xe4' >>> Try printing s1 and s2 separately i

Re: Numeric root-finding in Python

2012-02-20 Thread David Monaghan
On Sun, 12 Feb 2012 10:20:17 -0500, inq1ltd wrote: > > >I don't know the first thing about this math problem however, > >if I were to code this I might try ; > > except ZeroDivisionError: > assert w = -1 > >rather than; > > except ZeroDivisionError: > assert w == -1 Why? DM

Looking for a simple, generic Python module to provide a secure web service

2012-02-29 Thread David Shi
We are looking for a very simple, generic Python module to provide a secure web service.   Ideally, it can be put onto the computer and make it available via IIS.   Off we go.   Your help will be gratefully received.   Regards.   David-- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 102, Issue 64

2012-03-13 Thread David Shi
much in the market and popularity. Can we do a new tidal wave to win a reasonable portion of the development market? Send me materials to davidg...@yahoo.co.uk I will give it a go on behalf of the Python community. Regards. David From: "python

Re: errors building python 2.7.3

2012-03-28 Thread David Robinow
On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko wrote: > I've tried to build Python 2.7.3rc2 on cygwin and got the following errors: > > $ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ > ./configure I haven't tried 2.7.3 yet, so I'll describe my experience with 2.7.2 I use /us

Re: errors building python 2.7.3

2012-03-29 Thread David Robinow
On Thu, Mar 29, 2012 at 6:55 AM, Alexey Luchko wrote: > On 28.03.2012 18:42, David Robinow wrote: >> On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko  wrote: >>> I've tried to build Python 2.7.3rc2 on cygwin and got the following >>> errors: >>> >>>

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-03-31 Thread David Robinow
On Sat, Mar 31, 2012 at 4:13 PM, Tim Rowe wrote: > I know 10 languages. But I'm not telling you what base that number is :) The fact that you know there are bases other than 10 puts you in the top half of the candidates already! -- http://mail.python.org/mailman/listinfo/python-list

AddNamedItem throws exception

2012-04-02 Thread David Manns
to match that in use at one of our customers who is now stuck being unable to run his scripts. Any clues or suggestions would be gratefully received. David -- http://mail.python.org/mailman/listinfo/python-list

Re: f python?

2012-04-08 Thread David Canzi
em is still harder than writing portable code for operating systems that all used '/' as their separator would have been. If you added up the cost of all the extra work that people have done as a result of Microsoft's decision to use '\' as the file name separator, it

Re: f python?

2012-04-08 Thread David Robinow
On Sun, Apr 8, 2012 at 6:55 PM, Dennis Lee Bieber wrote: >        The main reason, as I recall, for the command line using \ for file > paths is that it inherited / as command OPTION prefix from CP/M; MS-DOS > being a 32-bit work-alike for CP/M in the first generation. I also thought it was becau

Re: Emacs Lisp vs Perl: Validate Local File Links

2012-04-13 Thread David Lam
Xah Lee #1 mailing list troll =D On Fri, Apr 13, 2012 at 10:35 AM, Xah Lee wrote: > 〈Emacs Lisp vs Perl: Validate Local File Links〉 > http://xahlee.org/emacs/elisp_vs_perl_validate_links.html > > a comparison of 2 scripts. > > lots code, so i won't paste plain text version here. > > i have so

Re: Python Gotcha's?

2012-04-15 Thread David Robinow
On Sun, Apr 15, 2012 at 4:01 PM, Bryan wrote: > On Windows the file extension determines what executable opens the > file. Running both Python 2 and Python 3 on Windows is painful where > it doesn't need to be. I'd like to encourage my users to check out > Python 3, but installing it on Windows wi

Looking for proven Python code for Line Simplication such as Douglas-Peucker

2012-05-08 Thread David Shi
Dear All, I am looking for  proven Python code for Line Simplication such as Douglas-Peucker. Regards. David -- http://mail.python.org/mailman/listinfo/python-list

IDL Books On Sale

2012-05-09 Thread David Fanning
ay be your last chance! I have a few of Ronn Kling's books left and enough Traditional IDL Graphics books to make the bonfire at the 4th of July picnic more than spectacular. No more need for these once IDL 8.2 comes out, I guess. ;-) Cheers, David -- David Fanning, Ph.D. Fanning Soft

Re: IDL Books On Sale

2012-05-09 Thread David Fanning
David Fanning writes: > > Folks, > > My wife says that as long as I'm retired, she wants the > bedroom back, so I've put all my books I have in storage > there on sale! > > I only have four copies left of IDL Programming Techniques, > 2nd Edition, and I

Re: IDL Books On Sale

2012-05-09 Thread David Fanning
David Fanning writes: > Whoops! A link might be good, I guess. I've been gone so > long I've forgotten how to do this: > >http://www.idlcoyote.com/store Whoops! Sorry again. I just realized I was posting this to my NEW newsgroup. How embarrassing... :-( David -

How to call and execute C code in Python?

2012-05-13 Thread David Shi
Can anyone tell me how to call and exectute C code in Python? Regards. David From: "python-list-requ...@python.org" To: python-list@python.org Sent: Friday, 11 May 2012, 5:35 Subject: Python-list Digest, Vol 104, Issue 57 - Forward

How to call and execute C code in Python?

2012-05-15 Thread David Shi
, as the integrating language. Can anyone send publications/instructions to davidg...@yahoo.co.uk? All the best to everyone! Regards. David From: "python-list-requ...@python.org" To: python-list@python.org Sent: Sunday, 13 May 2012, 19:14 Subje

Pan/Zoom Line Plot in Coyote Graphics

2012-05-17 Thread David Fanning
o if you want nice looking file output, you will have to install ImageMagick and GhostScript (for PDF output). I figure most Coyote Library users will have these installed by now. If not, there is no hope for them anyway. :-) Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting,

<    1   2   3   4   5   6   7   8   9   10   >