Re: mp3 file length in time

2006-09-17 Thread Tim Heaney
"Jay" <[EMAIL PROTECTED]> writes: > Paul Rubin wrote: >> "Jay" <[EMAIL PROTECTED]> writes: >> > In python, I know there are a couple of modules for getting id3 info, >> > but what about the length of an mp3 file in time? Is there a way to >> > aquire that info? Most of my MP3s don't have id3 tags

Re: matplotlib: TypeError: a float is required

2006-09-17 Thread Tim Heaney
Andi Clemens <[EMAIL PROTECTED]> writes: > > THATS IT! Thanks! > But why are all the examples wrong? Maybe they changed the API? I think it's a bug. You should report it. Looking at http://matplotlib.sourceforge.net/faq.html#BUGREPORT it seems you can use either the mailing list or sourceforge

Re: matplotlib: TypeError: a float is required

2006-09-17 Thread Tim Heaney
Andi Clemens <[EMAIL PROTECTED]> writes: > > everytime I try to plot a bar with matplotlib I get the following > error message: > Traceback (most recent call last): > File "bar_stacked.py", line 13, in ? > p1 = bar(ind, menMeans, width, color='r', yerr=womenStd) > File "/usr/lib/python2.4

Re: pasting numpy array into bigger array

2006-07-26 Thread Tim Heaney
"TG" <[EMAIL PROTECTED]> writes: > > let's say I have : > > from numpy import * > x = identity(5) > y = zeros((7,7)) > > I want to paste x into y, starting at coordinates (1,1) in order to > change y to something like this : > > 0 0 0 0 0 0 0 > 0 1 0 0 0 0 0 > 0 0 1 0 0 0 0 > 0 0 0 1 0 0 0 > 0 0 0

Re: Need a compelling argument to use Django instead of Rails

2006-07-24 Thread Tim Heaney
"Ray" <[EMAIL PROTECTED]> writes: > > Can you help me with my argument? Well, there is this study suggesting Django outperforms Ruby on Rails http://wiki.rubyonrails.com/rails/pages/Framework+Performance > Meanwhile I think I'll give RoR a try as well. Good idea. I think Ruby on Rails is ter

Re: I need some help

2006-07-11 Thread Tim Heaney
"dammix" <[EMAIL PROTECTED]> writes: > > I'm completely a newbye, I've started studying python since 3 weeks and > now I need to write a small program that reads the id3 tags from the > mp3 contained inside a cd, and then print them into a simple text file, > I hope it's possible to do this, and I

Re: Using SQLite3 with python 2.5 beta

2006-06-22 Thread Tim Heaney
Harold Shore <[EMAIL PROTECTED]> writes: > From the release notes I read that > > "If you're compiling the Python source yourself, note that > the source tree doesn't include the SQLite code, only the > wrapper module. You'll need to have the SQLite libraries > and headers installed before comp

Re: graphs and charts

2006-05-23 Thread Tim Heaney
Grant Edwards <[EMAIL PROTECTED]> writes: > > On 2006-05-23, Yaron Butterfield <[EMAIL PROTECTED]> wrote: > >> What's the best way to on-the-fly graphs and charts using Python? Or is >> Python not really the best way to do this? > > I like Gnuplot-py, but I've been a Gnuplot for 15+ years, so > I

Re: How to get computer name

2006-04-29 Thread Tim Heaney
"pitarda" <[EMAIL PROTECTED]> writes: > How do I get the computer name in python? You can use the os module to get it from your environment. >>> import os >>> os.getenv('HOSTNAME') 'calvin.watterson' Depending on your operating system, the environment variable you need might have a differ

Re: Aproximative string matching

2005-11-21 Thread Tim Heaney
"javuchi" <[EMAIL PROTECTED]> writes: > I'm searching for a library which makes aproximative string matching, > for example, searching in a dictionary the word "motorcycle", but > returns similar strings like "motorcicle". > > Is there such a library? I kind of like the one at http://www.pers

Re: Quote-aware string splitting

2005-04-25 Thread Tim Heaney
"J. W. McCall" <[EMAIL PROTECTED]> writes: > > I need to split a string as per string.strip(), but with a > modification: I want it to recognize quoted strings and return them as > one list item, regardless of any whitespace within the quoted string. > > For example, given the string: > > 'spam "th

Re: Native widgets for Python

2005-01-17 Thread Tim Heaney
Stephen Thorne <[EMAIL PROTECTED]> writes: > > there's someone writing 'dabo', which is apparently "wxpython but > more python". It looks like dabo uses, not replaces, wxPython http://dabodev.com/about -- http://mail.python.org/mailman/listinfo/python-list