Re: keyboard "interrupt"

2008-03-19 Thread Hans Georg Krauthäuser
d)=Carbon.Evt.GetNextEvent(0x0008) [1] # # The message (msg) contains the ASCII char which is # extracted with the 0x00FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what,msg,w

Re: Speaking Text

2008-03-19 Thread Hans Georg Krauthäuser
> > says 'hello'. > > Is there something similar in Windows and/or Linux? > (If it's there in Linux presumably it only works if there > happens to be a speech engine available...) > > David C. Ullrich In Windows -> pyTTS http://www.mindtrove.info/articles/p

Re: FIR filtering

2006-03-15 Thread Hans Georg Krauthaeuser
LabWINC wrote: > Hi all, > i'm looking for a module to implement a digital FIR filter! > Can anyone help me? > > Thanks, > > Vincent > gnuradio? Hans Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: FIR filtering

2006-03-15 Thread Hans Georg Krauthaeuser
LabWINC wrote: > What's gnuradio? > http://www.gnu.org/software/gnuradio/ It's a c++ lib with a python wrapper. BTW, thats the first hit in google ... Hans Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: FIR filtering

2006-03-15 Thread Hans Georg Krauthaeuser
LabWINC wrote: > I can't understand how gnuradio can help me... > I find scipy is the only way to implement a good FIR. Well, then do it with scipy... gnuradio has a module for FIR. I never used it. I just wanted to share that information. Hans Georg -- http://mail.python.org/mailm

Re: How to determine if a line of python code is a continuation of the line above it

2006-04-09 Thread Hans Georg Krauthaeuser
== '__main__': a=0 b="test" c=42 cmd=func(a) print cmd cmd=func(a, b, c) print cmd output: cmd=func(a) cmd=func(a, b, c) Regards Hans Georg -- http://mail.python.org/mailman/listinfo/python-list

DCT transform (API)? (scipy or otherwise)

2009-12-10 Thread Hans Georg Schaathun
I am looking for a 2-D DCT transform function for use in python. Does anyone have any good pointers? I see that one is promised in scipy 0.8.0, but I cannot find any details on how close that is to being released. I am not sure if running bleeding-edge scipy would solve my problem; I should hav

Re: best vi / emacs python features

2009-10-21 Thread Hans Georg Schaathun
On Wed, 07 Oct 2009 18:44:03 +0200, Jean-Michel Pichavant wrote: : When opposing vi to emacs, there's is no possibility you get : constructive and objective answer, because basically, what can do with : one, you can also do it with the other. You seem rather negative. I could not see any

PIL Image.fromarray( ... , mode="1" )

2009-10-31 Thread Hans Georg Schaathun
wrong? What is the right/best way to save/convert two-tone images? I have not managed to find proper documentation for the Image.fromarray() method; the docstring seems to be empty )-: TIA :-- Hans Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: About one class/function per module

2009-11-12 Thread Hans-Peter Jansen
On Tuesday 03 November 2009, 12:52:20 Diez B. Roggisch wrote: > Peng Yu wrote: > > On Mon, Nov 2, 2009 at 9:39 PM, alex23 wrote: > >> Peng Yu wrote: > >>> I don't think that this is a problem that can not be overcome. A > >>> simple solution might be to associate a unique identifier to each > >>>

Re: PyQt Installation Problem on Windows

2010-11-26 Thread Hans-Peter Jansen
On Wednesday 24 November 2010, 23:03:14 Saul Spatz wrote: > Hi, > > I've been trying to install PyQt on Windows XP Pro so that I can try > out eric ide. I used the binary windows installer for PyQt. I can > run eric as administrator, but not with my ordinary user account. By > running eric.bat w

Re: remote control firefox with python

2010-11-30 Thread Hans-Peter Jansen
On Sunday 28 November 2010, 16:22:33 News123 wrote: > Hi, > > > I wondered whether there is a simpe way to > 'remote' control fire fox with python. > > > With remote controlling I mean: > - enter a url in the title bar and click on it > - create a new tab > - enter another url click on it > - save

Re: while True or while 1

2010-12-14 Thread Hans-Peter Jansen
On Tuesday 14 December 2010, 10:19:04 Gregory Ewing wrote: > Steven D'Aprano wrote: > while True: > > > > ... print "Looping" > > ... True = 0 > > Just remember that if you use that inside a function, you'll > have to initialise True to True before... er, wait a moment, > that won't wor

Re: while True or while 1

2010-12-15 Thread Hans-Peter Jansen
On Tuesday 14 December 2010, 21:38:47 Arnaud Delobelle wrote: > Christian Heimes writes: > [...] > > > Tres Seavers once told me a joke like this: > > > >True = not not "Who's at the door?" # say it out loud! > > > > This was back in the old days of Zope 2.5 and Python 2.1, which > > didn't ha

Re: default argument in method

2010-12-15 Thread Hans-Peter Jansen
On Monday 13 December 2010, 18:14:27 Godson Gera wrote: > On Sun, Dec 12, 2010 at 5:05 PM, ernest wrote: > > Hi, > > > > I'd like to have a reference to an instance attribute as > > default argument in a method. It doesn't work because > > "self" is not defined at the time the method signature is

Re: default argument in method

2010-12-15 Thread Hans-Peter Jansen
On Thursday 16 December 2010, 00:56:31 Steven D'Aprano wrote: > On Wed, 15 Dec 2010 21:10:05 +0100, Hans-Peter Jansen wrote: > > Since this is a major pitfall, it might be worth mentioning, that > > mutable default arguments are generally a bad idea, as the default > > ar

Re: Read / Write OpenOffice SpreadSheet ?

2010-12-17 Thread Hans-Peter Jansen
On Friday 17 December 2010, 02:07:07 Torsten Mohr wrote: > Hi, > > i search for a possibility to access OpenOffoce SpreadSheets from > Python with a reasonably new version of Python. > > Can anybody point me to a package that can do this? http://ooopy.sourceforge.net/ Pete -- http://mail.python.

Re: GUI Tools for Python 3.1

2010-12-26 Thread Hans-Peter Jansen
On Friday 24 December 2010, 03:58:15 Randy Given wrote: > Lots of stuff for 2.6 and 2.7 -- what GUI tools are there for 3.1? PyQt4 of course. http://www.riverbankcomputing.com Pete -- http://mail.python.org/mailman/listinfo/python-list

floating point woes

2011-02-15 Thread Hans-Peter Jansen
Hi, while I usually cope with the woes of floating point issues, this is one, that I didn't expect: >>> round(2.385, 2) 2.3799 Doesn't the docs say, it's rounded up for this case? Values are rounded to the closest multiple of 10 to the power minus n; if two multiples are equally

Re: floating point woes

2011-02-15 Thread Hans-Peter Jansen
On Wednesday 16 February 2011, 01:06:08 Benjamin Kaplan wrote: > On Tue, Feb 15, 2011 at 6:49 PM, Hans-Peter Jansen wrote: > > Hi, > > > > while I usually cope with the woes of floating point issues, this > > is > > > > one, that I didn't expect: >

Re: floating point woes

2011-02-15 Thread Hans-Peter Jansen
On Wednesday 16 February 2011, 01:24:59 Chris Rebert wrote: > On Tue, Feb 15, 2011 at 4:09 PM, Chris Rebert wrote: > > On Tue, Feb 15, 2011 at 3:49 PM, Hans-Peter Jansen wrote: > >> Hi, > >> > >> while I usually cope with the woes of floating point issues

Plotting in batch with no display

2010-06-04 Thread Hans Georg Schaathun
Admittedly not the strongest reason, but yet an important one, for switching from Matlab to python/numpy/scipy/matplotlib, is that Matlab is very cumbersome to run in batch. Now I discover that some of the matplotlib.pyplot functions (incl. plot and contour) insist on opening an X11 window (just

Re: Plotting in batch with no display

2010-06-05 Thread Hans Georg Schaathun
On Fri, 04 Jun 2010 22:27:33 -, exar...@twistedmatrix.com wrote: : It's possible to plot with matplotlib without a display. I'm not : surprised you didn't figure out how, though, it's not all that obvious. Thank you very much. That's a good start. Do you know of any good documentatio

Re: Plotting in batch with no display

2010-06-07 Thread Hans Georg Schaathun
On Sat, 5 Jun 2010 16:10:01 + (UTC), Tim Harig wrote: : On 2010-06-05, Hans Georg Schaathun wrote: : > Raster graphics is not good enough, I will need a backend which : > does vector graphics and pdf output. AFAICS from the FAQ at : > sourceforge, agg only supports raster and pn

Colour TIFF support (PIL or otherwise)

2010-06-13 Thread Hans Georg Schaathun
Does anyone know how to handle TIFF images in Python? The pylab support uses PIL, and using either pylab or PIL directly, it messes up the colour scheme. It may look as if it loads CMY believing that it is RGB, but I am not absolutely sure. I have no problem handling Microsoft BMP colour images

i18n for applications and modules

2010-06-18 Thread Hans-Joachim Widmaier
aven't found this way yet. I'd like to know how others cope with these problems. Maybe I'm just missing the obviuos. -- Hans-Joachim Widmaier -- http://mail.python.org/mailman/listinfo/python-list

Re: segfault with small pyqt script

2010-08-15 Thread Hans-Peter Jansen
On Thursday 12 August 2010, 01:07:25 Gelonida wrote: > Hi Guys, > I'm desperate. I'm having a real application, which fails rather often > when finishing it. I'm not sure, whether any serious problem could be > hidden behind it > > The script is a pyqt script, which segfaults most of the time on my

Re: segfault with small pyqt script

2010-08-17 Thread Hans-Peter Jansen
On Monday 16 August 2010, 09:22:27 Gelonida wrote: > Hi Hans-Peter, > > > It seems, that my other posts did not get through. > > On 08/15/2010 11:17 PM, Hans-Peter Jansen wrote: > > For a starter, tell us the versions of python-sip, and python-qt4 or > > however the

Instatiable Pseudo-Random Number Generator

2009-09-10 Thread Hans Georg Schaathun
I wonder if someone knows of an API with the features I need... random.Random and numpy.random each have only half of it... My application includes an object to hold a pseudo-randomly generated matrix too large to be kept in memory. Hence I try to store only the seed, and generate the numbers on

Re: Instatiable Pseudo-Random Number Generator

2009-09-10 Thread Hans Georg Schaathun
On Thu, 10 Sep 2009 02:53:33 -0700 (PDT), sturlamolden wrote: : On 10 Sep, 10:50, Hans Georg Schaathun wrote: : : > Can anyone recommend a PRNG which supported multiple instances : > with independent states, and that also can return numpy.array (or : > something similar) ef

Re: PyQt imageViewer does not working properly...

2010-10-05 Thread Hans-Peter Jansen
On Tuesday 05 October 2010, 00:29:04 Polimeno wrote: > Hello guys, > > I have been looking throughout the web for some PyQt Image Viewer : > > http://nullege.com/codes/show/src%40pyformex-0.8.2%40pyformex%40gui%40ima >geViewer.py/78/PyQt4.QtGui.QImage# > > > Unfortunately, everytime I input any kin

C++ vs. Python Was: Re: help!!!

2010-10-06 Thread Hans-Peter Jansen
On Wednesday 06 October 2010, 06:28:51 Dennis Lee Bieber wrote: > On Tue, 05 Oct 2010 23:54:00 -0400, > > declaimed the following in gmane.comp.python.general: > > plz can u convert this cpp file into python i need that badly as soon > > as possible... I am new to python. I just wanna learn it

ANN: automated daily snapshot builds for PyQt and friend on openSUSE build service

2010-10-14 Thread Hans-Peter Jansen
[Sorry for cross posting] Hi PyQtnistas, I proudly announce the availability of automated builds of the most current PyQt and related packages including snapshots on openSUSEs build service for openSUSE 11.1, 11.2 and 11.3, here: https://build.opensuse.org/project/monitor?project=home%3Afrispe

Re: Python changes

2010-10-29 Thread Hans-Peter Jansen
On Thursday 28 October 2010, 21:23:03 Craig McRoberts wrote: > Oh, I like to browse brick-and-mortar enough. But it's been forever > since I've bought something there. If you can get your hands on a copy of Mark Summerfield's Programming in Python3, check it out. He really raised the accustomed q

Re: http error 301 for urlopen

2010-11-10 Thread Hans-Peter Jansen
On Tuesday 09 November 2010, 03:10:24 Lawrence D'Oliveiro wrote: > In message <4cd7987e$0$1674$742ec...@news.sonic.net>, John Nagle wrote: > >It's the New York Times' paywall. They're trying to set a > > cookie, and will redirect the URL until you store and return the > > cookie. > > And if t

Re: ANN: PyQt v4.8.1 Released

2010-11-10 Thread Hans-Peter Jansen
Am Monday 08 November 2010 02:26:51 schrieb Robert Kern: > On 2010-11-07 18:53 , Lawrence D'Oliveiro wrote: > > In message, Robert > > Kern > > > > wrote: > >> Everyone here knew exactly what he meant. > > > > But if you don’t banana the right tomato, everybody could be grapefruit, > > right? > > >

keyrings.cryptfile released on github

2017-03-09 Thread Hans-Peter Jansen
Hi, since the PyCrypto ML is dead, I'm looking for advise/feedback from some cryptography aware people. I've released a keyring companion package today: https://github.com/frispete/keyrings.cryptfile Its primary purpose is a decent encrypted file backend for python keyrings. As such, it

Re: keyrings.cryptfile released on github

2017-03-10 Thread Hans-Peter Jansen
On Donnerstag, 9. März 2017 23:09:09 ng0 wrote: > Hans-Peter Jansen transcribed 3.8K bytes: > > Hi, > > > > since the PyCrypto ML is dead, I'm looking for advise/feedback from some > > cryptography aware people. > > > > I've released a keyring co

Re: keyrings.cryptfile released on github

2017-03-13 Thread Hans-Peter Jansen
On Freitag, 10. März 2017 13:31:41 Paul Rubin wrote: > Hans-Peter Jansen writes: > > [1] http://web.cs.ucdavis.edu/~rogaway/ocb/license.htm > > Oh that's interesting, he's expanded the free licenses. Still though, > while OCB is very clever and it was important as t

Re: keyrings.cryptfile released on github

2017-03-13 Thread Hans-Peter Jansen
On Dienstag, 14. März 2017 00:33:34 Hans-Peter Jansen wrote: > > I plan to add authenticated service and username support via associated data > as well (that protects against tampering with these values). Done. > Cheers, > Pete -- https://mail.python.org/mailman/listinfo/python-list

Wichtig für Maximus

2017-05-15 Thread Hans-Georg Joepgen
https://www.heise.de/newsticker/meldung/WannaCry-Microsoft-liefert-Sicherheits-Patches-fuer-veraltete-Windows-Versionen-3713417.html -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6