Re: scaling problems

2008-05-20 Thread David Stanek
On Tue, May 20, 2008 at 12:03 AM, James A. Donald <[EMAIL PROTECTED]> wrote: > On Mon, 19 May 2008 21:04:28 -0400, "David Stanek" > <[EMAIL PROTECTED]> wrote: >> What is the difference if you have a process with 10 threads or 10 >> separate processes running in parallel? Apache is a good example of

Re: scaling problems

2008-05-20 Thread Duncan Booth
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Tue, 20 May 2008 10:47:50 +1000, James A. Donald wrote: > >> 2. It is not clear to me how a python web application scales. > > Ask YouTube. :-) Or look at Google appengine where unlike normal Python you really are prevented from making

Re: scaling problems

2008-05-20 Thread Nick Craig-Wood
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Tue, 20 May 2008 13:57:26 +1000, James A. Donald wrote: > > > The larger the program, the greater the likelihood of inadvertent name > > collisions creating rare and irreproducible interactions between > > different and supposedly independe

Re: scaling problems

2008-05-20 Thread Graham Dumpleton
On May 20, 2:00 pm, James A. Donald <[EMAIL PROTECTED]> wrote: > > > 2.  It is not clear to me how a python web application scales.  Python > > > is inherently single threaded, so one will need lots of python > > > processes on lots of computers, with the database software handling > > > parallel a

Re: scaling problems

2008-05-20 Thread Marc 'BlackJack' Rintsch
On Tue, 20 May 2008 10:47:50 +1000, James A. Donald wrote: > 2. It is not clear to me how a python web application scales. Ask YouTube. :-) Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: scaling problems

2008-05-20 Thread Marc 'BlackJack' Rintsch
On Tue, 20 May 2008 13:57:26 +1000, James A. Donald wrote: > The larger the program, the greater the likelihood of inadvertent name > collisions creating rare and irreproducible interactions between > different and supposedly independent parts of the program that each > work fine on their own, and

Re: scaling problems

2008-05-19 Thread Arnaud Delobelle
James A. Donald <[EMAIL PROTECTED]> writes: > Ben Finney > The larger the program, the greater the likelihood of inadvertent name > collisions creating rare and irreproducible interactions between > different and supposedly independent parts of the program that each > work fine on their own, and

Re: scaling problems

2008-05-19 Thread James A. Donald
On Mon, 19 May 2008 21:04:28 -0400, "David Stanek" <[EMAIL PROTECTED]> wrote: > What is the difference if you have a process with 10 threads or 10 > separate processes running in parallel? Apache is a good example of a > server that may be configured to use multiple processes to handle > requests.

Re: scaling problems

2008-05-19 Thread James A. Donald
> > 2. It is not clear to me how a python web application scales. Python > > is inherently single threaded, so one will need lots of python > > processes on lots of computers, with the database software handling > > parallel accesses to the same or related data. One could organize it > > as one

Re: scaling problems

2008-05-19 Thread James A. Donald
> > 1. Looks to me that python will not scale to very large programs, > > partly because of the lack of static typing, but mostly because there > > is no distinction between creating a new variable and utilizing an > > existing variable, Ben Finney > This seems quite a non sequitur. How do you s

Re: scaling problems

2008-05-19 Thread Carl Banks
On May 19, 8:47 pm, James A. Donald <[EMAIL PROTECTED]> wrote: > 1. Looks to me that python will not scale to very large programs, > partly because of the lack of static typing, but mostly because there > is no distinction between creating a new variable and utilizing an > existing variable, so th

Re: scaling problems

2008-05-19 Thread Ben Finney
James A. Donald <[EMAIL PROTECTED]> writes: > I am just getting into python, and know little about it Welcome to Python, and this forum. > and am posting to ask on what beaches the salt water crocodiles hang > out. Heh. You want to avoid them, or hang out with them? :-) > 1. Looks to me that

Re: scaling problems

2008-05-19 Thread David Stanek
On Mon, May 19, 2008 at 8:47 PM, James A. Donald <[EMAIL PROTECTED]> wrote: > I am just getting into python, and know little about it, and am > posting to ask on what beaches the salt water crocodiles hang out. > > 1. Looks to me that python will not scale to very large programs, > partly because

Re: scaling problems

2008-05-19 Thread Reid Priedhorsky
On Tue, 20 May 2008 10:47:50 +1000, James A. Donald wrote: > > 1. Looks to me that python will not scale to very large programs, > partly because of the lack of static typing, but mostly because there > is no distinction between creating a new variable and utilizing an > existing variable, so the

Re: scaling

2007-05-01 Thread Charles Sanders
Gabriel Genellina wrote: [snip] > if x elif x>maxvalue: yield top > else: yield (x-minvalue)*top/(maxvalue-minvalue) [snip] Personally, I find yield min(top,max(0,(x-minvalue)*top/(maxvalue-minvalue))) or scaled_value = (x-minvalue)*top/(maxvalue-minvalue) yiel

Re: scaling

2007-05-01 Thread Gabriel Genellina
En Tue, 01 May 2007 11:22:28 -0300, Ashok <[EMAIL PROTECTED]> escribió: > IDL language contains a function called BYTSCL to scale all values of > Array that lie in the range (Min £ x £ Max) into the range (0 £ x £ > Top). Is there a similar function available in python? > > I need this to scale th

Re: Scaling pictures

2006-12-30 Thread cyberco
cyberco wrote: > PIL is certainly a fine option, but I noticed that the scaled images > (scaled with the ANTIALIAS filter) are not as good as you can get with, > say, Photoshop. Maybe I'm just expecting too much, but I wish I could > choose a higher quality rescaling algorithm. PIL still rocks thou

Re: Scaling pictures

2006-12-29 Thread cyberco
PIL is certainly a fine option, but I noticed that the scaled images (scaled with the ANTIALIAS filter) are not as good as you can get with, say, Photoshop. Maybe I'm just expecting too much, but I wish I could choose a higher quality rescaling algorithm. PIL still rocks though. On Dec 28, 2:32 pm

Re: Scaling pictures

2006-12-29 Thread Kajsa Anka
On Thu, 28 Dec 2006 11:53:41 +0100, Kajsa Anka wrote (in article <[EMAIL PROTECTED]>): Thanks for the answers, I'll use PIL. jem -- http://mail.python.org/mailman/listinfo/python-list

Re: Scaling pictures

2006-12-28 Thread bearophileHUGS
Kajsa Anka: > I found the Python Imaging Library but before I dive into that I would like > to know if there is a better way of doing this. PIL is very fit for that. Note that it creates thumbnails already by itself, you can use that for bigger images too. Bye, bearophile -- http://mail.python.

Re: Scaling pictures

2006-12-28 Thread Ravi Teja
Kajsa Anka wrote: > I would like some advice, I'm going to build a small app that will, among > other things, scale images so that they can be published on a web site. I've > never done any image processing in python before so I would like to ask what > is the best way of doing this, I will not do

Re: Scaling pictures

2006-12-28 Thread buffi
Kajsa Anka wrote: > I would like some advice, I'm going to build a small app that will, among > other things, scale images so that they can be published on a web site. I've > never done any image processing in python before so I would like to ask what > is the best way of doing this, I will not do

Re: Scaling down (was Re: Dealing with marketing types...)

2005-06-12 Thread Aahz
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >[EMAIL PROTECTED] (Aahz) writes: >> >> So what? I think you're missing the real point of the article: using >> LAMP scales *DOWN* in a way that enterprise systems don't. Getting your >> first prototype up and running i

Re: Scaling down (was Re: Dealing with marketing types...)

2005-06-12 Thread Paul Rubin
[EMAIL PROTECTED] (Aahz) writes: > So what? I think you're missing the real point of the article: using > LAMP scales *DOWN* in a way that enterprise systems don't. Getting your > first prototype up and running is far more important than sheer > scalability, There comes a day when your first pro