[google-appengine] Resizing Image with Stretching

2009-07-04 Thread Joel Odom
I'm using the Image class to work with an image. When I call image.resize(width = new_width, height = new_height), it seems to honor either height or width, but not both. That is, the method maintains the original aspect ratio without stretching. Is there a way to stretch an image? Thanks. --

[google-appengine] My logs are starting to bite into my storage quota. Can I reclaim this space?

2008-11-15 Thread Joel Odom
In my testing this morning, I've generated quite a few messages in my logs. I see that these apparently count toward my storage quota. Is there any way to reclaim this space? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[google-appengine] Re: Dashboard - Logs - How to clear them? - What is the Date-Time reference?

2008-11-15 Thread Joel Odom
Is this still the fact? I'd bet my house that logs count against quota because this AM I was at about 0.5 MB of disk usage. I created *lots* of log messages and ended up around 1.1 MB used with only a few new data store entities. On Sep 23, 12:47 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrot

[google-appengine] Re: My logs are starting to bite into my storage quota. Can I reclaim this space?

2008-11-15 Thread Joel Odom
Thanks, Alexander. I don't exactly know what's up. I'd bet my house that logs count against quota because this AM I was at about 0.5 MB of disk usage. I created *lots* of log messages and ended up around 1.1 MB used with only a few new data store entities. On Sat, Nov 15, 2008 at 5:27 PM, Alexande

[google-appengine] Re: My logs are starting to bite into my storage quota. Can I reclaim this space?

2008-11-15 Thread Joel Odom
Yes, this is entirely possible. I did a lot of creating and deleting because I was doing load testing. Will that space be reclaimed? On Sat, Nov 15, 2008 at 5:45 PM, Alexander Kojevnikov < [EMAIL PROTECTED]> wrote: > > > Thanks, Alexander. I don't exactly know what's up. I'd bet my house that

[google-appengine] Re: Is Memcache really needed?

2008-11-17 Thread Joel Odom
One cool application of memcache: I have an RPC application that hits remote functions maybe once every few seconds per user. Part of my security scheme involves matching user ids to session keys. Hitting the data store for this on every call eats resources, but memcache brings a lot more efficie

[google-appengine] Global Variables / Caching Question

2008-11-20 Thread Joel Odom
Forgive me if this is a FAQ, but I did a little searching and did not find an answer. According to http://code.google.com/appengine/docs/python/appcaching.html, GAE caches global variables in imported modules between requests. I've got a global dictionary in a module that I'm sharing between reque

[google-appengine] Re: Hardly anything stored in appengine - already 10 MB gone?

2008-11-20 Thread Joel Odom
Your not hallucinating. I've seen the same kind of problem. Apparently there is a known issue where space is sometimes not reclaimed after you delete a data store entity. If you've been creating and deleting a lot of entities, this one may be hitting you. On Wed, Nov 19, 2008 at 5:07 PM, jago

[google-appengine] Re: SDK 1.1.6 Released

2008-11-21 Thread Joel Odom
When will it appear on the download page? Thanks. On Fri, Nov 21, 2008 at 1:27 PM, Marce (Google) <[EMAIL PROTECTED]> wrote: > > Today we released the 1.1.7 SDK in order to fix the following issue > that occurred in 1.1.6: > http://code.google.com/p/googleappengine/issues/detail?id=877 > > -Mar

[google-appengine] Re: What is a proper way to cache values on "per request" basis?

2008-12-01 Thread Joel Odom
Try getting rid of the memcache in favor of a hard-coded value (for testing purposes only). If you're still getting high CPU usage, then the problem is not with your use of memcache. You can also use global variables to cache values, as long as you're careful. On Mon, Dec 1, 2008 at 2:28 PM, Sh

[google-appengine] Re: Money sum formating

2008-12-24 Thread Joel Odom
Here's a little function I wrote that you may have: def formatAsDollars(amount): dollars = int(amount) cents = amount - dollars i = 0 reverseDollarPlaces = [] for p in str(dollars)[::-1]: if i % 3 == 0 and i: reverseDollarPlaces.append(',') reverseDollarPlaces.append(p)

[google-appengine] Django Replace Filter

2009-01-04 Thread Joel Odom
Is there a simple way to do a replace with Django? (I want to replace all underscores in a string with spaces.) I can't find a built-in filter to do a simple replace, but it seems like an obvious filter that I must be missing. Thanks! -- http://giscoder.blogspot.com/ --~--~-~--~~-

[google-appengine] Re: Beginner Question - About using App Engine

2009-01-09 Thread Joel Odom
This article got me started using AJAX and JSON. Works great. http://code.google.com/appengine/articles/rpc.html On Thu, Jan 8, 2009 at 7:08 PM, Faber Fedor wrote: > > > On Thu, Jan 8, 2009 at 5:56 PM, mscwd01 wrote: > >> >> >> In short, i'd like to use App Engine to return xml responses to

[google-appengine] Re: Cant start my helloworld sample

2009-01-21 Thread Joel Odom
Read the error message closely. You misspelled python. On Wed, Jan 21, 2009 at 11:44 AM, ahYeop wrote: > > Hi all, > > I follow the Hello World guide but still have problem to start Apps > Engine. Here is the error: > > C:\Program Files\Google\google_appengine>dev_appserver.py helloworld/ > ER

[google-appengine] Re: pricing / additional app slots

2009-02-04 Thread Joel Odom
The Google App Engine customer service folks read this group. If you really need more apps or quota, you may ask them directly. I think they generally grant more apps as long as they can see that you're not abusing the service. On Tue, Feb 3, 2009 at 8:48 PM, David Wilson wrote: > > 2009/2/4