Re: [Tutor] Filling orders FIFO

2011-07-16 Thread Izz ad-Din Ruhulessin
Why are you doing it at the low level? Have you consideren using a framework like Django for example? 2011/7/16 Steven D'Aprano > Charles John wrote: > >> Hi I am new to python and was wondering what the best way to create an >> order(bid and offer) queue, then match a bid and offer so that if >

[Tutor] Program to Predict Chemical Properties and Reactions

2011-07-16 Thread B G
I was just wondering how feasible it would be to build something like the following: Brief background, in chemistry, the ionization energy is defined as the energy required to remove an electron from an atom. The ionization energies of different elements follow general trends (ie moving left to ri

Re: [Tutor] Program to Predict Chemical Properties and Reactions

2011-07-16 Thread Emile van Sebille
On 7/16/2011 9:24 AM B G said... I was just wondering how feasible it would be to build something like the following: Brief background, in chemistry, the ionization energy is defined as the energy required to remove an electron from an atom. The ionization energies of different elements follow g

[Tutor] what is 'doubleword alignment'?

2011-07-16 Thread Albert-Jan Roskam
Hello, What is 'doubleword alignment'? It is used in the following sentence: "Fill up the buffer with the correctly encoded numeric and string values, taking care of blank padding and doubleword alignment." I know that the buffer is comprised of variables of 8-bytes, or multiples thereof, eac

Re: [Tutor] what is 'doubleword alignment'?

2011-07-16 Thread Albert-Jan Roskam
Got it already, I think. The word boundary of one chunk of information (in my case 8 bytes) is aligned in the computer's memory such that the boundary's address is a power of two. But correct me if I'm wrong ;-) Cheers!! Albert-Jan ~~~

Re: [Tutor] Program to Predict Chemical Properties and Reactions

2011-07-16 Thread B G
Thanks, Emile-- although I'm not sure I was completely clear about my objective. What I really meant is that is there a way (via machine learning) to give the computer a list of rules and exceptions, and then have it predict based on these rules the ionization energy. Ultimately I'm pretty interest

Re: [Tutor] what is 'doubleword alignment'?

2011-07-16 Thread Alan Gauld
Albert-Jan Roskam wrote: Got it already, I think. The word boundary of one chunk of information > in my case 8 bytes) is aligned in the computer's memory > such that the boundary's address is a power of two. Yes, you are right. It means that the storage of your data should always be aligned wi

Re: [Tutor] what is 'doubleword alignment'?

2011-07-16 Thread Dave Angel
--- On Sat, 7/16/11, Albert-Jan Roskam wrote: From: Albert-Jan Roskam Subject: [Tutor] what is 'doubleword alignment'? To: "Python Mailing List" Date: Saturday, July 16, 2011, 8:23 PM Hello, What is 'doubleword alignment'? It is used in the following sentence: "Fill up the buffer with the c

Re: [Tutor] Program to Predict Chemical Properties and Reactions

2011-07-16 Thread Dave Angel
On 07/16/2011 05:32 PM, B G wrote: Thanks, Emile-- although I'm not sure I was completely clear about my objective. What I really meant is that is there a way (via machine learning) to give the computer a list of rules and exceptions, and then have it predict based on these rules the ionization e

Re: [Tutor] what is 'doubleword alignment'?

2011-07-16 Thread Alan Gauld
Dave Angel wrote: --- On Sat, 7/16/11, Albert-Jan Roskam wrote: (in my case 8 bytes) is aligned in the computer's memory such that the boundary's address is a power of two. Not quite. Doubleword alignment is alignment on an 8byte boundary. The address of such a boundary will be a multiple

Re: [Tutor] Program to Predict Chemical Properties and Reactions

2011-07-16 Thread Christopher King
Actually maybe not, depending on the complexity of the pattern, but it would be difficult. You would have to know how much it decreases for every time you go down or to the right. If its more complex than that, you may have to program each rule in, not just enter them in a prompt. I'm assuming none

Re: [Tutor] Program to Predict Chemical Properties and Reactions

2011-07-16 Thread Dave Angel
On 07/16/2011 07:21 PM, Christopher King wrote: Actually maybe not, depending on the complexity of the pattern, but it would be difficult. You would have to know how much it decreases for every time you go down or to the right. If its more complex than that, you may have to program each rule in,

[Tutor] how to add directory to python search list

2011-07-16 Thread Surya P.K. Kasturi
OS : Ubuntu Linux Python Version : 2.6.4 I have some third party modules to be installed in my computer. So, I want to add the module directory to python search list. I used : *>>> import sys* *>>> sys.path.append('directory address')* * * this could do my work but as soon as I close the termina

Re: [Tutor] how to add directory to python search list

2011-07-16 Thread Alan Gauld
Surya P.K. Kasturi wrote: OS : Ubuntu Linux Python Version : 2.6.4 I have some third party modules to be installed in my computer. So, I want to add the module directory to python search list. I used : *>>> import sys* *>>> sys.path.append('directory address')* * * this could do my work but as

Re: [Tutor] how to add directory to python search list

2011-07-16 Thread Surya P.K. Kasturi
Mr. Gauld can you tell me in detail how to do this. I am new to linux. On Sat, Jul 16, 2011 at 11:48 AM, Alan Gauld wrote: > Surya P.K. Kasturi wrote: > >> OS : Ubuntu Linux >> Python Version : 2.6.4 >> >> I have some third party modules to be installed in my computer. >> So, I want to add the m