Re: Resize image NO PIL!!

2007-06-01 Thread cbmeeks
Thanks for the suggestions.  I checked out webfaction.com and they
looked nice.  Might move from Pair over there.

I think what I am going to do is splurge and go with Amazon's EC2 ($72/
month).  But it's root level access so I can do anything.

Last night I got a Python daemon running that monitored the MySQLdb
every 10 seconds (just for testing) and it would process "thumb_jobs"
by calling PIL.

Worked nicely.

I will have to experiment with tight batch control (as in, not
processing the same pic more than once) and threading.

cbmeeks
http://www.signaldev.com



On May 30, 5:50 pm, [EMAIL PROTECTED] (Aahz) wrote:
> In article <[EMAIL PROTECTED]>,
>
> cbmeeks  <[EMAIL PROTECTED]> wrote:
>
> >My stupid host (pair.com) doesn't have PIL installed and I'm too much
> >of a stupid newbie to figure out how to get it to work with them
> >(access denied while installing it, of course).
>
> >Also, they don't have any python interface setup for GD.
>
> >Anyway, I don't know what my options are.  I'm thinking:
>
> >1) Find another host with mod_python, PIL, and other Python goodies
>
> webfaction.com -- I almost went with pair.com because they're reliable,
> but I decided to choose a provider that supports Python.
> --
> Aahz ([EMAIL PROTECTED])   <*>http://www.pythoncraft.com/
>
> "as long as we like the same operating system, things are cool." --piranha


-- 
http://mail.python.org/mailman/listinfo/python-list


Simple web apps....mod_python or framework?

2007-05-21 Thread cbmeeks
If you guys where going to do a simple web-app (as in, 4-5 tables with
99% being simple CRUD), would you use a framework (Django,
CodeIgniter, whatever...) or would you do it using maybe mod_python
and Python code?

Just curious.  I'm trying to learn Python but some of the frameworks
make CRUD super easy (not that Python is hard for that...lol)

Thanks

http://www.signaldev.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Resize image NO PIL!!

2007-05-28 Thread cbmeeks
I have created an image hosting site and when a user uploads an image,
I want a service to run on the server to create a few thumbnails while
the user does other things.

My stupid host (pair.com) doesn't have PIL installed and I'm too much
of a stupid newbie to figure out how to get it to work with them
(access denied while installing it, of course).

Also, they don't have any python interface setup for GD.

Anyway, I don't know what my options are.  I'm thinking:

1) Find another host with mod_python, PIL, and other Python goodies
2) use PHP to create the thumbnails
3) Open the images into a buffer and try to do the calculations
myself

I'm thinking I might have to go with 1.

I want the script to run as a service so I don't know how well number
2 would work and I certainly don't want number 3 (on a time-line
here).

Any suggestions?

Thanks
cbmeeks
http://www.signaldev.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Resize image NO PIL!!

2007-05-29 Thread cbmeeks
Nope.  They don't support that either.  I emailed them (again) asking
for these features or at least see if they are in the works sometime
in the future and I keep getting their standard response which is
basically "you can do it yourself if you upgrade to our $249/mo
dedicated plan".

I'd go with EC2 for $70/mo first!

Thanks

cbmeeks


On May 28, 11:12 pm, Dave Benjamin <[EMAIL PROTECTED]> wrote:
> cbmeeks wrote:
> > I have created an image hosting site and when a user uploads an image,
> > I want a service to run on the server to create a few thumbnails while
> > the user does other things.
>
> > My stupid host (pair.com) doesn't have PIL installed and I'm too much
> > of a stupid newbie to figure out how to get it to work with them
> > (access denied while installing it, of course).
>
> > Also, they don't have any python interface setup for GD.
>
> > Anyway, I don't know what my options are.  I'm thinking:
>
> > 1) Find another host with mod_python, PIL, and other Python goodies
> > 2) use PHP to create the thumbnails
> > 3) Open the images into a buffer and try to do the calculations
> > myself
>
> Have you checked to see if Imagemagick is available? You could use the
> "convert" command via os.system or something along those lines...
>
> Dave


-- 
http://mail.python.org/mailman/listinfo/python-list


Any interest in an SQS alternative???

2008-01-07 Thread cbmeeks
I'm a big fan of Amazon's SQS web services.  However, I think their
SQS is simply too expensive.  I was doing some tests in python using
SQS and created 1,513 messages in just a few minutes.  Then I looked
at my bill.  It was $0.15 not counting the S3 fee.

$0.15 seems like a lot to me for the application I was writing.  The
application was designed to create MANY MANY small messages.  SQS
allows you to store up to 256k in one message which is pretty cool.
But my app only needed to store URL's.  They were all under 64 bytes.

Granted, I assume most people take that 256k and intelligently handle
many messages in one.  For example, a photo sharing site would
probably store the ID's to maybe 10-50 pictures in one message and
another server would process those pictures as one job.

But surely, I'm not the only one out there that would rather create
10,000 messages that are very small vs 1,000 messages that are
larger?  Or am I?

So anyway, I wrote my own message passing class that works pretty
well.  It is "my" message passing system...as in, message passing for
what I need.

But maybe others need too?

I am seriously thinking of putting it live and let people play around
with it...as an experiment.

I hope this post doesn't come across as spam or "trolley" because I
will probably ask the PHP and Ruby guys too.

My goal for "myself" would be to create a system that is at least half
of what SQS charges.  I know I can't compete with the giant Amazon but
who knows...

Anyway, if anyone has any interest please let me know.  If no one
cares, then I guess I will use it all for myself.  hahaha

Feel free to email me directly too.

cbmeeks  [AT]   gmail.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Help with python shell

2008-01-16 Thread cbmeeks
I just upgraded my Python install up to version 2.5.1 (from 2.4.x)
using source code and compiling.

Everything went fine until I enter the command line mode and press any
arrow keys.

When I press UP arrow, I was getting my previous command as always but
now I get:   ^[[A

What can I do to fix this??

Thanks!

cbmeeks
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help with python shell

2008-01-16 Thread cbmeeks
On Jan 16, 1:33 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> cbmeeks schrieb:
>
> > I just upgraded my Python install up to version 2.5.1 (from 2.4.x)
> > using source code and compiling.
>
> > Everything went fine until I enter the command line mode and press any
> > arrow keys.
>
> > When I press UP arrow, I was getting my previous command as always but
> > now I get:   ^[[A
>
> > What can I do to fix this??
>
> Compiling with readline support? I guess that's missing.
>
> Diez

I tried ./configure --enable-readline   but that didn't do the trick.
ARG!!  This is annoying.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help with python shell

2008-01-16 Thread cbmeeks
On Jan 16, 2:35 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> cbmeeks schrieb:
>
>
>
> > On Jan 16, 1:33 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> >> cbmeeks schrieb:
>
> >>> I just upgraded my Python install up to version 2.5.1 (from 2.4.x)
> >>> using source code and compiling.
> >>> Everything went fine until I enter the command line mode and press any
> >>> arrow keys.
> >>> When I press UP arrow, I was getting my previous command as always but
> >>> now I get:   ^[[A
> >>> What can I do to fix this??
> >> Compiling with readline support? I guess that's missing.
>
> >> Diez
>
> > I tried ./configure --enable-readline   but that didn't do the trick.
> > ARG!!  This is annoying.
>
> You don't just need to enable it - the readline lib needs to be
> installed, including the possible devel-package (If you are under linux)
> for the headers.
>
> Diez

That worked!

I had to install readline-devel and rebuild with --enable-readline

Thanks!

cbmeeks
http://codershangout.com
-- 
http://mail.python.org/mailman/listinfo/python-list