Visualizing a wav file?

2007-07-11 Thread kaens
Hey everyone, I've done a good bit of google searching, and have found quite a few different libraries available for sound processing. I was wondering if anyone with more experience would like to say which one(s) they would use for displaying the waveform of a .wav file in real-time, or at least

Re: Visualizing a wav file?

2007-07-11 Thread kaens
On 7/11/07, Wim Vogelaar [EMAIL PROTECTED] wrote: Perhaps you can use parts/routines of Audacity. See: http://en.wikipedia.org/wiki/Audacity Wim Vogelaar, http://home.wanadoo.nl/w.h.vogelaar/ -- http://mail.python.org/mailman/listinfo/python-list I'm aware of audacity. Correct me if I'm

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-26 Thread kaens
. A live CD might make that less of an issue, though it would still be a pain if you had to keep using it as a workaround for days while waiting for a mailing list or usenet response explaining what the f*#! bad zixflob in fuzzwangle.rc, aborting meant and how to fix it, especially as a

Re: Python Info.

2007-06-26 Thread kaens
It was like being slapped with the mid-90s On 6/26/07, Stefan Behnel [EMAIL PROTECTED] wrote: Brandon wrote: Check it out: www.BrandonsMansion.com Why? Stefan -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: can't start Apache on Mac OS X--no listening sockets available?

2007-06-26 Thread kaens
On 6/26/07, 7stud [EMAIL PROTECTED] wrote: Ok. If I try to start Personal Web Sharing while Apache is running, it says Web Sharing starting up..., but it never does. Then if I close the window and restart my imac, my imac boots up with Personal Web Sharing turned on. I still can't figure

Re: Looking for an interpreter that does not request internet access

2007-06-25 Thread kaens
On 6/25/07, James Alan Farrell [EMAIL PROTECTED] wrote: Hello, I recently installed new anti-virus software and was surprised the next time I brought up IDLE, that it was accessing the internet. I dislike software accessing the internet without telling me about it, especially because of my

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread kaens
On 6/21/07, Stephen R Laniel [EMAIL PROTECTED] wrote: On Thu, Jun 21, 2007 at 10:11:57AM -0400, Stephen R Laniel wrote: Use another language is not a technical answer. Python could not adopt static typing without substantially changing the language and destroying what everyone loves about

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-20 Thread kaens
On 6/20/07, Diez B. Roggisch [EMAIL PROTECTED] wrote: That is exactly the problem - there is no some more static typing. There is static typing - or not. You can't have it just a bit. Couldn't a language be made so that if you declared a variable like, say: string foo = I'm a string it would

Re: The Modernization of Emacs

2007-06-20 Thread kaens
On 6/20/07, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 20 Jun 2007 19:33:29 -0300, alguien escribió: Speaking of which, vi is a piece of wombat do. ;-) Would you all please stop posting (and crossposting) about something that is mostly off topic for 80% of the groups involved? Or

Re: for ... else ?

2007-06-12 Thread kaens
On 6/12/07, Nis Jørgensen [EMAIL PROTECTED] wrote: exhuma.twn skrev: for number in range(10,100): for divisor in range(2,number): if number % divisor == 0: break else: print number, Oh my. Would it not be an idea to rename this else into

Re: Are there any python jobs worked at home from the internet?

2007-06-11 Thread kaens
On 6/9/07, Gabriel Genellina [EMAIL PROTECTED] wrote: En Sat, 09 Jun 2007 22:53:08 -0300, boyeestudio [EMAIL PROTECTED] escribió: Are there any python jobs worked at home from the internet? I want to find a part time job. Please give a clue to this for me. I know of

Re: MySQL InterfaceError

2007-06-07 Thread kaens
On 6/7/07, Joe [EMAIL PROTECTED] wrote: Huh the only thing I can find on InterfaceError is Errors related to the database interface and not the database itself. You might be able to get some info from connection.info() . . . Yeah, I wish there was more documentation about this type of

Re: Running a process every N days

2007-06-07 Thread kaens
On 6/7/07, David Bear [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: What's the best way to run either an entire python process or a python thread every N days. I'm running Python 2.4.3 on Fedora Core 5 Linux. My code consists of a test and measurement system that runs 24/7 in a

Re: Beginning Python

2007-06-06 Thread kaens
On 6/5/07, abhiee [EMAIL PROTECTED] wrote: Hello , I have just begun learning python...and I'm loving it...Just wanted to ask you that how much time would it take me to learn python completely and which languages should i learn alongwith python to be a good professional programmer?...Now i

Re: MySQL InterfaceError

2007-06-06 Thread kaens
On 6/5/07, Joe [EMAIL PROTECTED] wrote: File build/bdist.linux-i686/egg/MySQLdb/cursors.py, line 147, in execute charset = db.character_set_name() InterfaceError: (0, '') We got it working. It was caused by passing a database connection to a module: import MySQLdb

Re: int vs long

2007-06-02 Thread kaens
On 02 Jun 2007 20:18:02 -0700, Paul Rubin http://phr.cx@nospam.invalid wrote: Dan Bishop [EMAIL PROTECTED] writes: Note that recent versions of Python automatically promote the results of integer arithmetic to long if necessary, so the distinction is less relevant than it used to be. Note

Re: Help with win32 com_error exception

2007-06-02 Thread kaens
Richard, you posted it four times. Not twice. On 6/2/07, Andrew Holme [EMAIL PROTECTED] wrote: Richard Gordon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry if this is sent twice, but I didn't see it get posted the first time. I've got a fatal bug using Parente's pyTTS

Re: Examples of high-quality python code?

2007-06-01 Thread kaens
On 31 May 2007 06:58:36 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On May 31, 8:38 am, Larry Bates [EMAIL PROTECTED] wrote: kaens wrote: Hey everyone, I'm relatively new to python - I actually picked it up to see how quickly I could start building non-trivial apps

Re: Key Listeners

2007-05-30 Thread kaens
On 29 May 2007 19:14:33 -0700, Mike [EMAIL PROTECTED] wrote: Are there key listeners for Python? Either built in or third party? -- http://mail.python.org/mailman/listinfo/python-list I'm pretty sure pygame's got some, don't know about built-ins. --

Re: Key Listeners

2007-05-30 Thread kaens
On 5/30/07, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Benedict Verheyen a écrit : [EMAIL PROTECTED] schreef: On 30 mai, 04:14, Mike [EMAIL PROTECTED] wrote: Are there key listeners for Python? Either built in or third party? What is a key listener ? (snip) In google, the first

Re: Off Topic: What is the good book to learn Python ?

2007-05-30 Thread kaens
On 30 May 2007 11:25:22 -0700, Katie Tam [EMAIL PROTECTED] wrote: I am new to this filed and begin to learn this langague. Can you tell me the good books to start with ? Katie Tam Network administrator http://www.linkwaves.com/main.asp http://www.linkwaves.com --

Examples of high-quality python code?

2007-05-30 Thread kaens
Hey everyone, I'm relatively new to python - I actually picked it up to see how quickly I could start building non-trivial apps with it. Needless to say, I was quite pleased. Anyhow, I'm looking to expand my understanding of python, and I feel that one of the best ways to do that is looking at

Re: Off Topic: What is the good book to learn Python ?

2007-05-30 Thread kaens
On 30 May 2007 17:28:39 -0700, Aahz [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], kaens [EMAIL PROTECTED] wrote: I would also recommend to stay away from any for dummies or in x (hours/days) books. They can be decent introductory material, but unless you are really really new

Re: updates in sqlite3 do not work

2007-05-29 Thread kaens
On 5/29/07, Stefan Sonnenberg-Carstens [EMAIL PROTECTED] wrote: Did you try a commit() ? SQLite3 works in autocommit mode by default, so it would help to see your code. On Mi, 30.05.2007, 00:30, Chris Fonnesbeck wrote: I have a script set up to perform UPDATE commands on an sqlite

Re: conditionally creating functions within a class?

2007-05-26 Thread kaens
On 5/26/07, Steve Holden [EMAIL PROTECTED] wrote: I have taken the liberty of copying this back to the list, since other people may have stringer opinions than I on your approach. Frankly, I wouldn't worry about the expense of declaring two classes. If you need SQL-handling and XML-handling

conditionally creating functions within a class?

2007-05-25 Thread kaens
So, I have a class that has to retrieve some data from either xml or an sql database. This isn't a problem, but I was thinking hey, it would be cool if I could just not define the functions for say xml if I'm using sql, so I did some fiddling around with the interpreter. First, I try

Re: conditionally creating functions within a class?

2007-05-25 Thread kaens
On 5/25/07, kaens [EMAIL PROTECTED] wrote: then I try doing this within a function: meant within a class here, whoops. -- http://mail.python.org/mailman/listinfo/python-list

Re: Large Amount of Data

2007-05-25 Thread kaens
On 5/25/07, Jack [EMAIL PROTECTED] wrote: I need to process large amount of data. The data structure fits well in a dictionary but the amount is large - close to or more than the size of physical memory. I wonder what will happen if I try to load the data into a dictionary. Will Python use

Re: xml.parsers.expat loading xml into a dict and whitespace

2007-05-23 Thread kaens
, kaens [EMAIL PROTECTED] wrote: Hey everyone, this may be a stupid question, but I noticed the following and as I'm pretty new to using xml and python, I was wondering if I could get an explanation. Let's say I write a simple xml parser, for an xml file that just loads the content of each tag

Re: xml.parsers.expat loading xml into a dict and whitespace

2007-05-23 Thread kaens
out shortly after posting to a mailing list or forum. Happens all the time, and I swear I don't solve stuff until I ask for help. On 5/23/07, kaens [EMAIL PROTECTED] wrote: Wait. . . it's because the curTag is set to , thus it sets the whitespace after a tag to that part of the dict

Re: xml.parsers.expat loading xml into a dict and whitespace

2007-05-23 Thread kaens
[1] ElementTree is in the 2.5 standard library, but if you're stuck with an earlier python, just Google for it -- there are standalone versions I've got 2.5, and I'm not attached to expat at all. I'll check it out, thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: xml.parsers.expat loading xml into a dict and whitespace

2007-05-23 Thread kaens
, Steve. On 5/23/07, kaens [EMAIL PROTECTED] wrote: [1] ElementTree is in the 2.5 standard library, but if you're stuck with an earlier python, just Google for it -- there are standalone versions I've got 2.5, and I'm not attached to expat at all. I'll check it out, thanks. -- http

Re: OSError[Error 5]

2007-05-22 Thread kaens
Try adding a trailing slash? On 22 May 2007 03:52:23 -0700, SamG [EMAIL PROTECTED] wrote: Hi, I do this on PowerPC.. import os os.listdir('/usr/bin') And endup getting this ... OSError: [Error 5] Input/output error:/usr/bin I use python 2.4.4 (Framework edition) Could anybody help

Re: howto check does module 'asdf' exist? (is available for import)

2007-05-22 Thread kaens
I think that's there because you just wanted to check if it was available for import, implying that you didn't actually want to import it right then. On 22 May 2007 09:09:02 -0700, Paul Rubin http://phr.cx@nospam.invalid wrote: Asun Friere [EMAIL PROTECTED] writes: howto check does module

Re: questions about programming styles

2007-05-22 Thread kaens
Thanks. I think what I actually want to learn is design pattern in a looser sense, not in the computer-science-vocabulary-sense. I'm a graduate student in science, and python is my favourite programming language in daily work. I can solve most of the problems with python, but my programming

xml.parsers.expat loading xml into a dict and whitespace

2007-05-22 Thread kaens
Hey everyone, this may be a stupid question, but I noticed the following and as I'm pretty new to using xml and python, I was wondering if I could get an explanation. Let's say I write a simple xml parser, for an xml file that just loads the content of each tag into a dict (the xml file doesn't

Re: Why stay with lisp when there are python and perl?

2007-05-05 Thread kaens
Yes there is. On 5/3/07, Markus E Leypold [EMAIL PROTECTED] wrote: Xah Lee [EMAIL PROTECTED] writes: (if there is some demand, i will add a concrept, little programing No. There ain't. - M -- http://mail.python.org/mailman/listinfo/python-list --

Re: Looping over lists

2007-05-05 Thread kaens
I think the for i in range() is more readable (Maybe because I'm coming from a c-style syntax language background) - but what would the benefits of using enumerate be (other that being more . . . pythonesque?) On 5/5/07, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Fri, 4 May 2007 19:26:17

Re: Calling Exe from Python

2007-05-05 Thread kaens
I've been using subprocess.call(['name','arg1','arg2']) Works fine. On 2 May 2007 03:48:19 -0700, M Abbas [EMAIL PROTECTED] wrote: Hello Folks, This is what i am required to do. Call an executable from my python script, and when the executable is fininshed running, i should continue with my

Re: FInd files with .so extension

2007-05-03 Thread kaens
do YOU mean hit reply to all not reply? On 5/3/07, kaens [EMAIL PROTECTED] wrote: do you mean filelst.append(i)? On 5/3/07, rishi pathak [EMAIL PROTECTED] wrote: May be this would work import os grep=so dir=. lst = os.listdir(dir) filelst=[] for i in lst

Re: playing sound in mac osx

2007-05-01 Thread kaens
Is there really no cross-platform audio capability in the standard library? On 5/1/07, Diez B. Roggisch [EMAIL PROTECTED] wrote: tooru honda schrieb: Hi, I am a newbie to mac and python. Is there an easy way to play wav or mp3 sound file ? I used to use winsound module before

Re: Master's Thesis Help Needed

2007-05-01 Thread kaens
I'll check it out. I'm running kubuntu (really, should work for any linux unless you're giving out .deb files) On 29 Apr 2007 18:53:51 -0700, RobJ [EMAIL PROTECTED] wrote: Awhile ago I asked for your help in getting some ideas about setting up an on-line course to learn how to use Python web