Re: Odd msg received from list

2013-11-14 Thread Joost Molenaar
On Thu, Nov 14, 2013 at 2:53 PM, Verde Denim tdl...@gmail.com wrote: Has anyone else received a message like this? I did too. It seems to me that Gmail's spam filter might have been overly enthusiastic, but the only way to find out is to look at the bounces that the list software received.

Re: How to streamingly read text file and display whenever updated text

2013-10-05 Thread Joost Molenaar
A bit of googling found me this: http://www.linux-support.com/cms/implementation-of-tail-in-python/ import time import sys def tail_f(file): interval = 1.0 while True: where = file.tell() line = file.readline() if not line: time.sleep(interval) file.seek(where)

Re: extraction tool using CRF++

2013-10-01 Thread Joost Molenaar
Hi Ron, In the python/ subdirectory of the CRF++ source package there's a README with instructions on how to use the CRFPP python module. HTH, Joost On Tue, Oct 1, 2013 at 4:24 PM, Vlastimil Brom vlastimil.b...@gmail.com wrote: 2013/10/1 cerr ron.egg...@gmail.com: Hi, I want to write an

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Joost Molenaar
Look, i want this to stop. Open your own thread and discuss this if you like. This is a thread i opened for a specific question and all i see its irrelevant answers. Hi Ferrous, The problem is not in your Python code. You can debug it from the command line by typing the 'echo ... | mailx'

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Joost Molenaar
Since the From address is random, it most likely doesn't exist, which could be reason for Google's smtp server to reject the message or to deliver it to spam. Also, the reverse DNS for 84.200.17.58 does not resolve to secure.superhost.gr, which could also be reason to reject the message. On Sun,

Re: Python TUI that will work on DOS/Windows and Unix/Linux

2013-09-10 Thread Joost Molenaar
Have you looked at Blessings? I never tried it, but the API seems much cleaner than Curses. https://pypi.python.org/pypi/blessings/ -- Joost Molenaar -- https://mail.python.org/mailman/listinfo/python-list

Splitting large packages with distutils

2012-10-30 Thread Joost Molenaar
to accurately specify and install the dependencies between projects without running ever more risk of clashing with a top-level module name. But I'm open to the suggestion that my idea is totally misguided. :-) Salutation, Joost Molenaar [1] http://svn.python.org/projects/sandbox/trunk/setuptools/doc

Re: utcnow

2012-09-16 Thread Joost Molenaar
Time zones! So much fun. Looks like you're dealing with UTC offsets yourself, which gets messy as soon as you start thinking about DST. The good news is that there's a timezone database on most systems, which you should almost definitely use. Take a look at python-dateutil (pip install

Re: optparse/argparse for cgi/wsgi?

2010-12-14 Thread Joost Molenaar
Many people have. :-) In the context of WSGI you're basically talking about routing middleware, which solves the problem: given a request, which application should be called to construct a response? In my case, it turned out as simple as a list of (regex, resource) tuples, where regex is a

Re: optparse/argparse for cgi/wsgi?

2010-12-14 Thread Joost Molenaar
To aid your googling, the problem is also commonly called 'Dispatching' instead of 'Routing'. Joost On 14 December 2010 12:19, Joost Molenaar j.j.molen...@gmail.com wrote: Many people have. :-) In the context of WSGI you're basically talking about routing middleware, which solves

Descriptors and decorators

2010-10-25 Thread Joost Molenaar
that without needing a 'self' parameter. Is this in fact the easiest way to explain it? Joost Molenaar -- http://mail.python.org/mailman/listinfo/python-list

Re: Descriptors and decorators

2010-10-25 Thread Joost Molenaar
On 25 October 2010 15:20, bruno.desthuilli...@gmail.com bruno.desthuilli...@gmail.com wrote: So, your decorator is applied to a function, and wraps it into a Decorator object. Or more exactly, the function is defined, then the Decorator class is called so a new Decorator object is instanciated

Re: how to scrutch a dict()

2010-10-21 Thread Joost Molenaar
Using a 2.7/3.x dictionary comprehension, since you don't seem to mind creating a new dictionary: def _scrunched(d):     return { key: value for (key, value) in d.items() if value is not None } Joost On 21 October 2010 06:32, Phlip phlip2...@gmail.com wrote: Not Hyp: def _scrunch(**dict):  

Re: if the else short form

2010-09-29 Thread Joost Molenaar
Hi Nico, it's converting fill==True to an int, thereby choosing the string False, or True, by indexing into the tuple. Try this in an interpreter: ['a','b'][False] 'a' ['a','b'][True] 'b' int(False) 0  int(True) 1 Joost On 29 September 2010 12:42, Tracubik affdfsdfds...@b.com wrote: Hi

Re: FM synthesis using Numpy

2007-08-16 Thread Joost Molenaar
Thanks/bedankt Bas for the educative reply. I think I got misleaded by Max/MSP's tutorial[1], because MSP seems to automatically adjust the phase when you combine two oscillators in the way that I did. Joost [1] page 112 of http://www.cycling74.com/download/MSP45TutorialsAndTopics.pdf --

FM synthesis using Numpy

2007-08-14 Thread Joost Molenaar
- the problem is not related to Numpy, because the effect also happens in pure-Python implementations of my bug As you can see, I'm at a loss and am even trying incorrect bugfixes. Any help would be very welcome. Thanks for your time, Joost Molenaar [I left out a writewavheader function to aid brevity