Re: Problems with read_eager and Telnet

2011-03-01 Thread Robi
> > My conclusion being, fgfs cannot answer back quicker than this: 20Hz. > > I suspect that is by design, so as to not interfere with the simulation > itself. Actually it's not quite like that. I talked about it in flightgear-devel mailing list; I was told FGFS default telnet polling frequency i

Re: OT: Code Examples

2011-03-01 Thread Erik de Castro Lopo
Fred Marshall wrote: > I'm interested in developing Python-based programs, including an > engineering app. ... re-writing from Fortran and C versions. One of the > objectives would to be make reasonable use of the available structure > (objects, etc.). So, I'd like to read a couple of good, s

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Dotan Cohen
On Tue, Mar 1, 2011 at 05:30, rusi wrote: >> Had there been more meta keys, it might be nice to have a symbol for >> each key on the keyboard. I personally have experimented with putting >> the symbols as regular keys and the numbers as the Shifted versions. >> It's great for programming. > > Hmmm

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Dotan Cohen
On Tue, Mar 1, 2011 at 07:04, Xah Lee wrote: > hi Russ, > > there's a programer's dvorak layout i think is bundled with linux. > > or you can do it with xmodmap on X-11 or AutoHotKey on Windows, or > within emacs... On the mac, you can use keyboardMaestro, Quickeys, or > just write a os wide confi

Re: OT: Code Examples

2011-03-01 Thread Richard Dobson
On 01/03/2011 08:43, Erik de Castro Lopo wrote: Fred Marshall wrote: I'm interested in developing Python-based programs, including an engineering app. ... re-writing from Fortran and C versions. One of the objectives would to be make reasonable use of the available structure (objects, etc.).

Re: question about numpy.polyval

2011-03-01 Thread sirvival
On 28 Feb., 17:15, Robert Kern wrote: > On 2/28/11 9:34 AM, sirvival wrote: > > > Hi, > > I have some simulated data of stellar absorption lines. > > You will want to ask numpy questions on the numpy mailing list: > >    http://www.scipy.org/Mailing_Lists > > It would be best if you could make a m

Re: OT: Code Examples

2011-03-01 Thread Paul Rubin
Erik de Castro Lopo writes: > Why Python? I really can't understand the rush of every man and > his dog to Python. Are you trolling? Anyway, try googling "evil mangler" and ask why it wasn't done in Haskell. Same idea. -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Tom Zych
Erik de Castro Lopo wrote: > Why Python? I really can't understand the rush of every man and > his dog to Python. > Its not that I'm a stick in the mud stuck with C and C++, rather > that I used Python for a number of years from 1998 to 2004 and > rejected it in favour of strict statically typed fu

Re: subclass urllib2

2011-03-01 Thread Jean-Michel Pichavant
monkeys paw wrote: I'm trying to subclass urllib2 in order to mask the version attribute. Here's what i'm using: import urllib2 class myURL(urllib2): def __init__(self): urllib2.__init__(self) self.version = 'firefox' I get this> Traceback (most recent call last): File ""

Re: how to properly pass literal strings python code to be executed using python -c

2011-03-01 Thread Jean-Michel Pichavant
jmoons wrote: I need some help figuring out how to execute this python code from python -c I am have trouble formatting python so that it will execute for another app in cmd I understand there maybe other ways to do what I am doing but I am limited by the final execution using cmd python -c so pl

Re: OT: Code Examples

2011-03-01 Thread Martin De Kauwe
On Mar 1, 3:03 am, Fred Marshall wrote: > I'm interested in developing Python-based programs, including an > engineering app. ... re-writing from Fortran and C versions.  One of the > objectives would to be make reasonable use of the available structure > (objects, etc.).  So, I'd like to read a c

Python 3.2 is excellent, but

2011-03-01 Thread jmfauth
Well, Python (as 3.2) has never reached this level of excellence, but __pycache__, no, not for me. (I feel better now, after I wrote it.) -- http://mail.python.org/mailman/listinfo/python-list

psycopg2 insertion and reading binary data to PostgreSQL database (bytea datatype)

2011-03-01 Thread romap
Hello. This is the full work version. Do yuo have: - Pyton, PostgreSQL, Psycopg2 - PostgreSQL dababase named "MyDATABASE" with table named "phonebook" - Table "phonebook" have this columns: "lastname" [TEXT datatype] and "c2image" [BYTEA datatype] - Do you have an jpeg file named "sun.jpg" on c:/

Re: Python 3.2 is excellent, but

2011-03-01 Thread Stefan Behnel
jmfauth, 01.03.2011 11:40: __pycache__, no, not for me. This has been discussed before. The 'argument' you presented is usually due to a misunderstanding of how __pycache__ works. Consider reading the PEP. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.2 is excellent, but

2011-03-01 Thread Tom Zych
jmfauth wrote: > Well, Python (as 3.2) has never reached this level of excellence, but > __pycache__, no, not for me. > > (I feel better now, after I wrote it.) Could you be more specific? :) -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.o

I cant import my function from compiled cython module.

2011-03-01 Thread Şansal Birbaş
Hi All, I needed to improve the computation speed of my numpy algorithm which works correctly with cython. So I created a .pyx file like belows and then compiled to a .pyd file successfully: ***­**

Re: OT: Code Examples

2011-03-01 Thread Nicholas Devenish
On 01/03/2011 09:24, Richard Dobson wrote: But - I am ~still~ caught out by the semantic significance of indenting. Looks OK enough on paper, but doing it interactively is another matter. I still don't fully understand this argument. With Python, I am still doing indentation almost exactly the

Re: I cant import my function from compiled cython module.

2011-03-01 Thread Stefan Behnel
Hi, note that the cython-users mailing list, where you cross-posted this, is the right place to ask. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Mark Thomas
I know someone who was involved in creating a language called A+. It was invented at Morgan Stanley where they used Sun keyboards and had access to many symbols, so the language did have set symbols, math symbols, logic symbols etc. Here's a keyboard map including the language's symbols (the red ch

Re: backwards-compatibility

2011-03-01 Thread Jason Swails
> subpackage1 imports the exceptions module from package1, and I do that > like > > this: > > > > from ..exceptions import MyException > > > > You'll have to import that using the absolute import. It would be > "from package1.exceptions import MyException". > Ah; I didn't quite see how something i

Re: question about numpy.polyval

2011-03-01 Thread sirvival
Hi, found the error I had x for coeff wrong definded. Instead of x = np.arange(num_chunk) it should be x = data_fin[::,0] Now it works. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding python : can't find encoding error

2011-03-01 Thread swapnil
On Feb 28, 4:57 pm, Mathieu CLERICI wrote: > Hi, > > I'm trying to embed python in a c++ program. > I have compiled python32.lib with msvc 2010 targetting 32bits, i link > it with my program wich is also 32bit. > I get an error when calling Py_Initialize() : "no codec search > functions registered

Re: how to properly pass literal strings python code to be executed using python -c

2011-03-01 Thread jmoons
On Feb 28, 3:14 pm, Steven D'Aprano wrote: > On Mon, 28 Feb 2011 10:59:01 -0800, jmoons wrote: > > I need some help figuring out how to execute this python code from > > python -c > > I am have trouble formatting python so that it will execute for another > > app in cmd I understand there maybe ot

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread rusi
On Mar 1, 6:01 pm, Mark Thomas wrote: > I know someone who was involved in creating a language called A+. It > was invented at Morgan Stanley where they used Sun keyboards and had > access to many symbols, so the language did have set symbols, math > symbols, logic symbols etc. Here's a keyboard m

Hello Friends

2011-03-01 Thread Ashraf Ali
It's a suprise.Do you know what the following blog is about.Just visit to know www.hotpics00.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-03-01 Thread Ashraf Ali
It's a suprise.Do you know what the following blog is about.Just visit to know www.hotpics00.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

I am not able to open IDLE in python on Vista.

2011-03-01 Thread Jayneil Dalal
This is the error message I get when I try to run Pyhon on Vista: unable to create user config directory C:\Users\Jayneil\.idlerc Check path and permissions. Exiting! So please help me out!. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Robert Kern
On 2/28/11 10:03 AM, Fred Marshall wrote: I'm interested in developing Python-based programs, including an engineering app. ... re-writing from Fortran and C versions. One of the objectives would to be make reasonable use of the available structure (objects, etc.). So, I'd like to read a couple o

Re: OT: Code Examples

2011-03-01 Thread Erik de Castro Lopo
Paul Rubin wrote: > Erik de Castro Lopo writes: > > Why Python? I really can't understand the rush of every man and > > his dog to Python. > > Are you trolling? Definitely not. As I said I used Python for a number of years and ditched it in favour of Ocaml and Haskell. The ease of development

Re: OT: Code Examples

2011-03-01 Thread Emile van Sebille
On 3/1/2011 12:43 AM Erik de Castro Lopo said... Why Python? For me? Because it's executable pseudocode Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Erik de Castro Lopo
Paul Rubin wrote: > Erik de Castro Lopo writes: > > Why Python? I really can't understand the rush of every man and > > his dog to Python. > > Are you trolling? All my responses to this thread are really mean for comp.dsp, not for comp.lang.python. Erik --

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Andrea Crotti
Jayneil Dalal writes: > This is the error message I get when I try to run Pyhon on Vista: > > unable to create user config directory > C:\Users\Jayneil\.idlerc > Check path and permissions. > Exiting! > > So please help me out!. > > Thank you. Best solution would be to avoid Windows Vista. If th

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Werner Thie
Ever tried to run it as Administrator (right click, Run as Administrator...) Werner Am 01.03.2011 17:12, schrieb Jayneil Dalal: This is the error message I get when I try to run Pyhon on Vista: unable to create user config directory C:\Users\Jayneil\.idlerc Check path and permissions. Exiting!

VipIMAGE 2011 – ECCOMAS Thematic Conference - FIRST ANNOUNCE

2011-03-01 Thread tava...@fe.up.pt
--- International ECCOMAS Thematic Conference VipIMAGE 2011 - III ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING 12-14th October 2011, O

Re: OT: Code Examples

2011-03-01 Thread geremy condra
On Tue, Mar 1, 2011 at 9:11 AM, Erik de Castro Lopo wrote: > Paul Rubin wrote: > >> Erik de Castro Lopo writes: >> > Why Python? I really can't understand the rush of every man and >> > his dog to Python. >> >> Are you trolling? > > All my responses to this thread are really mean for comp.dsp, >

Re: OT: Code Examples

2011-03-01 Thread Tom Zych
geremy condra wrote: > Ah, so you're looking for an argument. This is abuse, you want room > 12A just down the hall. They have comfy chairs there. No one expects it. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python

AES Encryption of byte array

2011-03-01 Thread Meszaros, Stacy
Hello all, I am very new to python, using it to write a test application. I need to be able to encrypt part of a byte array (up to 256 bytes where the first 7 bytes remain plain text) using AES 128 bit CBC encryption. I am using Python 2.6, can anyone recommend a toolkit or module? Thanks, Stac

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Tom Zych
Andrea Crotti wrote: > Best solution would be to avoid Windows Vista. s/Vista// There, fixed that for ya. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: AES Encryption of byte array

2011-03-01 Thread Tom Zych
On Tue, 01 Mar 2011 14:38 -0500, "Meszaros, Stacy" wrote: > I am very new to python, using it to write a test application. I need > to be able to encrypt part of a byte array (up to 256 bytes where the > first 7 bytes remain plain text) using AES 128 bit CBC encryption. I am > using Python 2.6,

Re: OT: Code Examples

2011-03-01 Thread mblume
Am Mon, 28 Feb 2011 08:03:01 -0800 schrieb Fred Marshall: > I'm interested in developing Python-based programs, including an > engineering app. ... re-writing from Fortran and C versions. One of the > objectives would to be make reasonable use of the available structure > (objects, etc.). So, I'

Did MySQL support ever make it to Python 3.x?

2011-03-01 Thread John Nagle
Is there Python 3.x support for MySQL yet? MySQLdb's page still says "Python versions 2.3-2.6 are supported.": https://sourceforge.net/projects/mysql-python/ There's PyMySQL, which is pure Python, but it's at version 0.4. There's good progress there, but it's not being used heavily yet,

Re: WxPython versus Tkinter.

2011-03-01 Thread Gregory Ewing
rantingrick wrote: All we have to do is create an abstraction API that calls wxPython until we can create OUR OWN wxPython from WxWidgets. There seems to be at least one other project around like that: http://dabodev.com/ -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Chris Jones
On Tue, Mar 01, 2011 at 12:03:02PM EST, Emile van Sebille wrote: > On 3/1/2011 12:43 AM Erik de Castro Lopo said... >> Why Python? > > For me? Because it's executable pseudocode Not for nothing, Emile.. hey.. you could end up with pseudo bugs and pseudo headaches .. cj -- http://mail.python.or

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Chris Jones
On Tue, Mar 01, 2011 at 09:46:19AM EST, rusi wrote: > On Mar 1, 6:01 pm, Mark Thomas wrote: > > I know someone who was involved in creating a language called A+. It > > was invented at Morgan Stanley where they used Sun keyboards and had > > access to many symbols, so the language did have set sy

Problem compiling Python 3.2 in 32bit on Snow Leopard

2011-03-01 Thread Gregory Ewing
Attempting to compile Python 3.2 in 32-bit mode on MacOSX 10.6.4 I get: Undefined symbols: "___moddi3", referenced from: _PyThread_acquire_lock_timed in libpython3.2m.a(thread.o) _acquire_timed in libpython3.2m.a(_threadmodule.o) "___divdi3", referenced from: _PyThread_acqui

Re: OT: Code Examples

2011-03-01 Thread Dan Stromberg
On Tue, Mar 1, 2011 at 8:51 AM, Erik de Castro Lopo wrote: > Definitely not. As I said I used Python for a number of years > and ditched it in favour of Ocaml and Haskell. > These are all 3 intriguing languages. I wish I had time to learn OCaML and Haskell, and I wish one or both of them were nea

Re: Problem compiling Python 3.2 in 32bit on Snow Leopard

2011-03-01 Thread Ned Deily
In article <8t5vunfca...@mid.individual.net>, Gregory Ewing wrote: > Attempting to compile Python 3.2 in 32-bit mode > on MacOSX 10.6.4 I get: > > Undefined symbols: >"___moddi3", referenced from: >_PyThread_acquire_lock_timed in libpython3.2m.a(thread.o) >_acquire_timed in l

Playing WAV file with Python

2011-03-01 Thread VGNU Linux
Hi All, How can I play WAV file in python without OS(like Linux/Windows/MAC) on a device ? On Google I found lot of different solution but related to OS's like winsound, ossaudiodev etc which are not useful. Thanks in advance. Regards, VGNU -- http://mail.python.org/mailman/listinfo/python-list