[google-appengine] Re: Maximum number of versions

2010-06-23 Thread iceanfire
You didn't properly read his question. He said he had less than 10
versions so the limitation shouldn't apply here. Anyways, I had
the same problem, I currently have 7 versions (after deleting two) and
I still get that error.

On May 27, 3:26 pm, Aurelian aurelian.vacar...@googlemail.com wrote:
 it's quite normal, because the maximum number of applications is 10..

 i keep only 8 versions, and always delete the oldest.

 ciao..

 On May 27, 6:42 pm, Jairo Vasquez jairo.vasq...@gmail.com wrote:



  Hi,

  This error is very common.

  Error 403: --- begin server output ---

  Too Many Versions (403)
  The application already has the maximum number of versions.
  --- end server output ---

  And I only have 9 versions right now. Usually I have less versions than that
  and sometimes the error appear.

  [image: icon.gif] Jairo Vasquez
  *        Paymentez Lead Developer*
        O +1.786.975.2339 x 213
        M +57.311.303.8417
        Medellín, Colombia

   icon.gif
   1KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] weird sorting error with inequality filters

2009-08-21 Thread iceanfire

I'm getting the following error:

BadArgumentError: First ordering property must be the same as
inequality filter property, if specified for this query; received
distance, expected cost

when i run the following code:

search_query.filter(cost , min_price)
search_query.filter(cost , max_price)
search_query.order(distance)


Did anyone know about this? Its not in the docs (atleast from what
i've read)...please tell me there's a way around this weird
restriction! I can't really think of a way to restructure my app cause
the inequality filter is basically a necessity at this point  i'd
love to be able to sort my results by something other than cost...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: weird sorting error with inequality filters

2009-08-21 Thread iceanfire

Hi philippe,

I did try the code you provided but that doesn't really work--all it
does is rank the results in the order of cost. Infact, the result that
is furthest away, ends up coming in first place, with the rest
randomly scattered.

Any other ideas?

-thanks

On Aug 21, 5:43 am, Philippe philippe.cr...@gmail.com wrote:
 here :http://code.google.com/appengine/docs/python/datastore/queriesandinde...
 check :  Properties In Inequality Filters Must Be Sorted Before Other
 Sort Orders 

 I think that you should do
 search_query.filter(cost , min_price)
 search_query.filter(cost , max_price)
 search_query.order(cost)
 search_query.order(distance)

 On Aug 21, 10:58 am, iceanfire iceanf...@gmail.com wrote:

  I'm getting the following error:

  BadArgumentError: First ordering property must be the same as
  inequality filter property, if specified for this query; received
  distance, expected cost

  when i run the following code:

  search_query.filter(cost , min_price)
  search_query.filter(cost , max_price)
  search_query.order(distance)

  Did anyone know about this? Its not in the docs (atleast from what
  i've read)...please tell me there's a way around this weird
  restriction! I can't really think of a way to restructure my app cause
  the inequality filter is basically a necessity at this point  i'd
  love to be able to sort my results by something other than cost...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: UnicodeEncodeError when using bulkupload to download from datastore

2009-08-02 Thread iceanfire

the name is: description

On Aug 1, 8:58 pm, Holger w...@arcor.de wrote:
 What's the name of your 'TextProperty' field?

  I tracked this error down to a 'TextProperty' Field in the datastore.

 If this name should contain strange letters (ÄÜÖ etc) try changing the
 name.

 ---
 Re Datastore upload: That's an important question - would be
 interested in an answer too.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] UnicodeEncodeError when using bulkupload to download from datastore

2009-08-01 Thread iceanfire

I'm getting the following error when I download from the datastore:

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
position 265: ordinal not in range(128)

I tracked this error down to a 'TextProperty' Field in the datastore.
Any idea how I should deal with this?

Also, I had a quick question about using the bulkupload.py tool.
Initially, I had wanted to use it to backup the datastore--incase
(during my experimentation) I accidentally messed up anything.
However, now that I think about it, it'll be almost impossible to do
this if my datastore structure uses reference properties right?
Because deleting a table and then re-uploading it would change all the
keys etc... Any way around this?


thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] testing application error handling

2009-04-18 Thread iceanfire

According to the google maps team, we have to expect atleast some
[small] amounts of datastore errors.

Is there anyway to get the SDK to throw these errors, so I can better
test how my application responds when a specific query is denied (i.e
make sure the right code kicks in and handles the error?)

Or, a broader question: how do you ensure that your application can
recover from errors?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] 500 error for static files today April 12 5:23am

2009-04-12 Thread iceanfire

Hi there,

I've been encountering this problem @ around 5:23am Central Time.

Two of my static files for my page (a .css and a .js) seem to
consistently give a 500 error. The .css file sometimes loads (30% of
the time) as I refresh.

I wasn't sure where else to report this. I know its kinda early in the
morning, but I got kinda worried, since my entire app could break if
the server can't consistently serve a .js file!

I've checked the down-time group and the dashboard system status.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Can I query to find out the children entities of a Parent entity?

2009-03-19 Thread iceanfire

wow, I am incredibly stupid. I didn't import the db.Model subclass..
that explains everything. Thanks alot Andy!

Also, for anyone else coming across this thread:

use childTable.all().ancestor(parent_key) to query an entity to find
its parents (instead of querying the parent table for children)

On Mar 18, 11:44 pm, Andy Freeman ana...@earthlink.net wrote:
 Did you import the definitions of your db.Model subclasses?  If you
 didn't import the definitions of your db.Model subclasses, there's no
 way for the runtime to build an instance.

 db.Model definitions are NOT stored in the datastore.

 On Mar 18, 8:21 pm, iceanfire iceanf...@gmail.com wrote:



  anyone?

  On Mar 16, 1:09 pm, iceanfire iceanf...@gmail.com wrote:

   Also, now when I ran the following code in the console:
   

   from google.appengine.ext import db

   key_of_specific_Thumb_entity = agdhcHRydXNochALEgpJbWFnZVRodW1iGEUM
   ==key grabbed from datastore for thumbnail (which is a parent of the
   Bin/Large Image)

   db.get(db.Key(key_of_specific_Thumb_entity))

   I get this error:
   

   Traceback (most recent call last):
     File C:\Program Files\Google\google_appengine\google\appengine\ext
   \admin\__init__.py, line 194, in post
       exec(compiled_code, globals())
     File string, line 5, in module
     File C:\Program Files\Google\google_appengine\google\appengine\ext
   \db\__init__.py, line 1053, in get
       cls1 = class_for_kind(entity.kind())
     File C:\Program Files\Google\google_appengine\google\appengine\ext
   \db\__init__.py, line 217, in class_for_kind
       raise KindError('No implementation for kind \'%s\'' % kind)
   KindError: No implementation for kind 'ImageThumb'

   I'm guessing it has something to do with it being a parent or
   something!?

   On Mar 16, 1:03 pm, iceanfire iceanf...@gmail.com wrote:

Hi,

I'm having a bit of trouble understanding how to use parents/children
properties within transactions.

I have divided up my Thumbnails and the actual Large Image into
two separate models to save processing power, but when I upload, I
want to make sure that both entities are updated--therefore I have to
use transactions.

Short version (incase the answer is something simple):
==
Can I query to find out the children entities of a Parent entity?

Long Version:
===
Key fact - thumbnails is connected to the Large Image (bin) via the
column bin_id

The code in Exhibit 1 doesn't work because I get the 'error
ImageThumb must have a complete key before it can be used as a
parent'. So I tried to:
1.  .put() ImageThumb
2. assign it as a parent
3. .put() Bin (the large image)
4. get the ID from step 3
5. insert the id in the ImageThumb and .put() it again.

I got the error:  you can't put an entity more than once in appengine!

So my last resort was to just get rid of binID and do steps 1-3. This
works! But now i'm stuck as to getting the Large Image (child) for a
specific thumbnail(parent).

Code Exhibit 1
==
def uploadImages(self):
                        thumb_db = ImageThumb()
                        thumb = images.resize(image_data,
150,150,images.JPEG)
                        thumb_db.thumb = db.Blob(thumb)

                        bin_db = ImageBin(parent=thumb_db)
                        bin_db.image = image_data
                        bin_put=bin_db.put()
                        bin_id = bin_put.id()

                        thumb_db.binId = bin_id === need binId so
that thumbnail is linked to actual image (so I can use get by id
class)

                        thumb_db.type= Picture
                        thumb_put = thumb_db.put()
                        thumb_id = thumb_put.id()- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Store information when people log into appengine..?

2009-03-19 Thread iceanfire

hey richard,

I haven't tried this out, but here's an idea:

For your login link use:
=
real_destination = link_to_current_page
statistics_dest = link_to_statistics_page+?
real_destination=+real_destination
create_login_url(statistics_dest)

Then run your script to get ip and other information and update to
database
===
see this question: 
http://groups.google.com/group/google-appengine/browse_thread/thread/3f79c80e68fd372a?hl=en#

finally go to the real_destination

self.redirect(self.request.get('real_destination'))


I'm new to python/appengine myself, so the above pseudo code is just a
guess on my part.

On Mar 19, 1:55 pm, richardcur...@googlemail.com
richardcur...@googlemail.com wrote:
 For statistical reasons I would like to store the time and IP/Email of
 people logging in at the time of login. How do I do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Can I query to find out the children entities of a Parent entity?

2009-03-18 Thread iceanfire

anyone?

On Mar 16, 1:09 pm, iceanfire iceanf...@gmail.com wrote:
 Also, now when I ran the following code in the console:
 

 from google.appengine.ext import db

 key_of_specific_Thumb_entity = agdhcHRydXNochALEgpJbWFnZVRodW1iGEUM
 ==key grabbed from datastore for thumbnail (which is a parent of the
 Bin/Large Image)

 db.get(db.Key(key_of_specific_Thumb_entity))

 I get this error:
 

 Traceback (most recent call last):
   File C:\Program Files\Google\google_appengine\google\appengine\ext
 \admin\__init__.py, line 194, in post
     exec(compiled_code, globals())
   File string, line 5, in module
   File C:\Program Files\Google\google_appengine\google\appengine\ext
 \db\__init__.py, line 1053, in get
     cls1 = class_for_kind(entity.kind())
   File C:\Program Files\Google\google_appengine\google\appengine\ext
 \db\__init__.py, line 217, in class_for_kind
     raise KindError('No implementation for kind \'%s\'' % kind)
 KindError: No implementation for kind 'ImageThumb'

 I'm guessing it has something to do with it being a parent or
 something!?

 On Mar 16, 1:03 pm, iceanfire iceanf...@gmail.com wrote:



  Hi,

  I'm having a bit of trouble understanding how to use parents/children
  properties within transactions.

  I have divided up my Thumbnails and the actual Large Image into
  two separate models to save processing power, but when I upload, I
  want to make sure that both entities are updated--therefore I have to
  use transactions.

  Short version (incase the answer is something simple):
  ==
  Can I query to find out the children entities of a Parent entity?

  Long Version:
  ===
  Key fact - thumbnails is connected to the Large Image (bin) via the
  column bin_id

  The code in Exhibit 1 doesn't work because I get the 'error
  ImageThumb must have a complete key before it can be used as a
  parent'. So I tried to:
  1.  .put() ImageThumb
  2. assign it as a parent
  3. .put() Bin (the large image)
  4. get the ID from step 3
  5. insert the id in the ImageThumb and .put() it again.

  I got the error:  you can't put an entity more than once in appengine!

  So my last resort was to just get rid of binID and do steps 1-3. This
  works! But now i'm stuck as to getting the Large Image (child) for a
  specific thumbnail(parent).

  Code Exhibit 1
  ==
  def uploadImages(self):
                          thumb_db = ImageThumb()
                          thumb = images.resize(image_data,
  150,150,images.JPEG)
                          thumb_db.thumb = db.Blob(thumb)

                          bin_db = ImageBin(parent=thumb_db)
                          bin_db.image = image_data
                          bin_put=bin_db.put()
                          bin_id = bin_put.id()

                          thumb_db.binId = bin_id === need binId so
  that thumbnail is linked to actual image (so I can use get by id
  class)

                          thumb_db.type= Picture
                          thumb_put = thumb_db.put()
                          thumb_id = thumb_put.id()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Is there a way to get the Clients screen size with Appengine?

2009-03-17 Thread iceanfire

 var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
  } else if( document.documentElement 
( document.documentElement.clientWidth ||
document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
  } else if( document.body  ( document.body.clientWidth ||
document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
  }

On Mar 17, 6:53 pm, jago java.j...@gmail.com wrote:
 I am a total Javascript agnostic. I guess you do not have some example
 Python/Javascript code?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Can I query to find out the children entities of a Parent entity?

2009-03-16 Thread iceanfire

Hi,

I'm having a bit of trouble understanding how to use parents/children
properties within transactions.

I have divided up my Thumbnails and the actual Large Image into
two separate models to save processing power, but when I upload, I
want to make sure that both entities are updated--therefore I have to
use transactions.

Short version (incase the answer is something simple):
==
Can I query to find out the children entities of a Parent entity?

Long Version:
===
Key fact - thumbnails is connected to the Large Image (bin) via the
column bin_id

The code in Exhibit 1 doesn't work because I get the 'error
ImageThumb must have a complete key before it can be used as a
parent'. So I tried to:
1.  .put() ImageThumb
2. assign it as a parent
3. .put() Bin (the large image)
4. get the ID from step 3
5. insert the id in the ImageThumb and .put() it again.

I got the error:  you can't put an entity more than once in appengine!

So my last resort was to just get rid of binID and do steps 1-3. This
works! But now i'm stuck as to getting the Large Image (child) for a
specific thumbnail(parent).

Code Exhibit 1
==
def uploadImages(self):
thumb_db = ImageThumb()
thumb = images.resize(image_data,
150,150,images.JPEG)
thumb_db.thumb = db.Blob(thumb)

bin_db = ImageBin(parent=thumb_db)
bin_db.image = image_data
bin_put=bin_db.put()
bin_id = bin_put.id()

thumb_db.binId = bin_id === need binId so
that thumbnail is linked to actual image (so I can use get by id
class)

thumb_db.type= Picture
thumb_put = thumb_db.put()
thumb_id = thumb_put.id()


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Can I query to find out the children entities of a Parent entity?

2009-03-16 Thread iceanfire

Also, now when I ran the following code in the console:


from google.appengine.ext import db

key_of_specific_Thumb_entity = agdhcHRydXNochALEgpJbWFnZVRodW1iGEUM
==key grabbed from datastore for thumbnail (which is a parent of the
Bin/Large Image)

db.get(db.Key(key_of_specific_Thumb_entity))


I get this error:


Traceback (most recent call last):
  File C:\Program Files\Google\google_appengine\google\appengine\ext
\admin\__init__.py, line 194, in post
exec(compiled_code, globals())
  File string, line 5, in module
  File C:\Program Files\Google\google_appengine\google\appengine\ext
\db\__init__.py, line 1053, in get
cls1 = class_for_kind(entity.kind())
  File C:\Program Files\Google\google_appengine\google\appengine\ext
\db\__init__.py, line 217, in class_for_kind
raise KindError('No implementation for kind \'%s\'' % kind)
KindError: No implementation for kind 'ImageThumb'


I'm guessing it has something to do with it being a parent or
something!?

On Mar 16, 1:03 pm, iceanfire iceanf...@gmail.com wrote:
 Hi,

 I'm having a bit of trouble understanding how to use parents/children
 properties within transactions.

 I have divided up my Thumbnails and the actual Large Image into
 two separate models to save processing power, but when I upload, I
 want to make sure that both entities are updated--therefore I have to
 use transactions.

 Short version (incase the answer is something simple):
 ==
 Can I query to find out the children entities of a Parent entity?

 Long Version:
 ===
 Key fact - thumbnails is connected to the Large Image (bin) via the
 column bin_id

 The code in Exhibit 1 doesn't work because I get the 'error
 ImageThumb must have a complete key before it can be used as a
 parent'. So I tried to:
 1.  .put() ImageThumb
 2. assign it as a parent
 3. .put() Bin (the large image)
 4. get the ID from step 3
 5. insert the id in the ImageThumb and .put() it again.

 I got the error:  you can't put an entity more than once in appengine!

 So my last resort was to just get rid of binID and do steps 1-3. This
 works! But now i'm stuck as to getting the Large Image (child) for a
 specific thumbnail(parent).

 Code Exhibit 1
 ==
 def uploadImages(self):
                         thumb_db = ImageThumb()
                         thumb = images.resize(image_data,
 150,150,images.JPEG)
                         thumb_db.thumb = db.Blob(thumb)

                         bin_db = ImageBin(parent=thumb_db)
                         bin_db.image = image_data
                         bin_put=bin_db.put()
                         bin_id = bin_put.id()

                         thumb_db.binId = bin_id === need binId so
 that thumbnail is linked to actual image (so I can use get by id
 class)

                         thumb_db.type= Picture
                         thumb_put = thumb_db.put()
                         thumb_id = thumb_put.id()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: New Limits for Several App Engine Operations

2009-02-13 Thread iceanfire

WOW! Thanks!

On Feb 13, 4:13 pm, Marce (Google) ma...@google.com wrote:
 For those of you who haven't already heard, we're very excited
 yesterday to have announced that we've raised limits on several App
 Engine operations:

     * No more High CPU Requests! App Engine Apps were once allowed
 no more than 2 CPU-intensive requests per minute. We've made some
 adjustments to the way we handle requests, and have eliminated this
 limitation altogether. To learn more about how this works and the
 implications for your app, see our documentation.
     * Response deadline raised to 30 seconds. The amount of time an
 App Engine app can take to respond to an incoming request has been
 raised from 10 to 30 seconds! There are limits on the number of
 simultaneous active requests an application can process at any given
 moment--see our docs to learn more.
     * Size limits on code files, static files, and requests/responses
 raised to 10MB! App Engine apps can now receive requests and send
 responses of up to 10MB in size, and users can upload 10MB code and
 static files as well. Note that API requests (e.g. memcache.set(),
 db.put()) are still limited to 1MB in size.

 These changes were inspired and driven by a great deal of developer
 feedback, and we're not done! Please let us know what you'd like to
 see next on App Engine .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: What is Data Storage Limit in GAE DataStore

2009-01-16 Thread iceanfire

According to the roadmap: http://code.google.com/appengine/docs/roadmap.html

Google is coming out with : Service for storing and serving large
files that might be useful to you depending on the size of the
pictures you're uploading.

Also, they will at some point start the billing system, which will
allow you to buy additional quota at a cost.

On Jan 15, 2:32 pm, anand innu.an...@gmail.com wrote:
 Thanks all for such a quick reply!

 On Jan 15, 12:42 pm, Qian Qiao qian.q...@gmail.com wrote:

  On Fri, Jan 16, 2009 at 03:34, anand innu.an...@gmail.com wrote:

   How much data can I store in GAE datastore per application? I have a
   requirement to store a large volume of data (a lot of pics) in
   datastore. Is there any limit?

   Thanks for your help.

   Regards,
   Anand

  The storage quota is 500MB, you can do 2,500,000 datastore API calls per 
  day.[1]

  They do allow you to apply for extra quota.[2]

  HTH.

  -- Joe

  1.http://code.google.com/appengine/articles/quotas.html
  2.http://code.google.com/support/bin/request.py?contact_type=AppEngineC...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Can we do it in GAE

2009-01-16 Thread iceanfire

http://groups.google.com/group/google-appengine/browse_thread/thread/b5f599a1e43c0a26/d4434084f0344550?lnk=gstq=geocoding#d4434084f0344550

On Jan 14, 1:44 am, Jonk joni.kah...@gmail.com wrote:
 On 14 tammi, 09:32, arnie parvez...@rediffmail.com wrote:

  Is it possible to convert a physical location [such as address of a
  company] into co-ordinates [Latitude and Longitude]. I have seen this

 http://code.google.com/apis/maps/documentation/services.html#Geocoding

     j
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Still having trouble with high-cpu warnings for thumbnails.

2008-10-08 Thread iceanfire

I just wanted to follow up on this discussion to (shamefacedly) point
out what was causing this problem: imports.

I had copied and pasted some code earlier, which I had later deleted
to slim down my code. What I had forgotten to do was: remove the
imports for that piece of code. Once I had removed them, I noticed a
great improvement in performance.

Ever since I removed that piece of code + changed debug to false and
removed the profiler code, I haven't had any cpu warnings for that
particular piece of code.

So the lesson here is: If you're having trouble reducing your CPU
warnings, try looking at imports and make sure that you only call the
essential ones.



On Oct 1, 2:24 am, iceanfire [EMAIL PROTECTED] wrote:
 I will try removing the debug stuff, maybe that is what's causing this
 problem. I'll let you know if this helps.

 Thanks.

 On Sep 29, 6:44 am, Sylvain [EMAIL PROTECTED] wrote:

  Hi,

  memcache can decrease the average, that's all.
  memcache is really good, but it can't be the answer for everything.

  Else, I think with this CPU/Warning, there is no good solution. Now,
  I'm just waiting for higher quota (free or not).

  Did you remove all DEBUG flag (webapp, django render option,...)
  because it uses a lot of CPU.
  The profiler code uses a lot of CPU too.

  Regards

  On 29 sep, 12:57, Arun Shanker Prasad [EMAIL PROTECTED]
  wrote:

   Hi Barry,

   I know that the memcache is free, but it will push out stuff if the
   memory usage is high, I already have much bigger query result cached
   in the memcache, I want to keep them there as long as possible. :)

   Thanks,
   Arun Shanker Prasad.

   On Sep 29, 3:44 pm, Barry Hunter [EMAIL PROTECTED]
   wrote:

On Mon, Sep 29, 2008 at 11:18 AM, Arun Shanker Prasad

[EMAIL PROTECTED] wrote:

 My app is also causing the same problems, I have used etags to set the
 response to 302 if cached, I've tried everything short of memcache, I
 have many images, I don't think that is a viable solution for me.

Why not? memcache is 'free', doesn't seem to be any reason NOT to use 
it?

memcache is already designed to keep 'hot' items in the cache - so it
will automatically discard little used images (or what ever you
store).

You should I would of thought be looking to cache everything possible.

 Any suggestions are welcome.

 On Sep 29, 2:10 am, iceanfire [EMAIL PROTECTED] wrote:
 Thanks for the suggestions. I see the need for Cacheing to reduce the
 load, but I don't understand why the current request is causing high-
 cpu warnings (2 times the average cpu request). At this rate, if a 
 few
 first time users use my application  try to open images that haven't
 been memcached (etc..).. then my application will crash.

 My main question is: why is this request causing a high cpu warning,
 and no one has been able to answer that. For a request that only
 takes  0.020 CPU seconds (according to profiler), appengine sends
 out a warning stating that 2463mcycles have been used.

 So my question is: how do I completely stop high-cpu warnings for a
 request that shouldn't be causing them in the first place?

 I understand that there are ways I can mitigate the problem..but i'd
 like to get to the root if possible.

 thanks!

 On Sep 25, 9:26 am, Bryan A. Pendleton [EMAIL PROTECTED] wrote:

      -So are textProperties more efficient than StringProperties
  because
      they're not indexed?

      You'd have to find the talk from Google IO to be sure. I 
  believe
  it
      was the one about scalability, in the QA section. But yes, 
  that is
  my
      understanding.

  As I understand it, every field that's not a TextProperty or a
  BlobProperty are implicitly indexed (this is how all = conditions 
  are
  dealt with in queries). So, whenever you write such an object, it 
  will
  take longer (because of the index updates).

  Another way of thinking about it, is that if you never need to 
  query
  on a single value, make it a TextProperty or BlobProperty, if
  possible.

      -Wouldn't adding etag--while increasing efficiency if I have 
  the
  same
      users loading the sameimageagain and again--actually decrease
      efficiency for users who are opening up an thumbnail for the 
  first
      time? In that situation,  I'd have another column for etags in 
  my
      datastore being requested w/ every query.

      Yes, you absolutely should generate the etag when you save the
      thumbnail, and save it in the model itself.Cachingit separately
  is
      however still desirable as you can then avoid pulling the rest 
  of
  the
      data into memory if it's not needed, or you can opt to not 
  cache
  the
      rest of the data at all, instead onlycachingthe etag

[google-appengine] Re: Still having trouble with high-cpu warnings for thumbnails.

2008-10-01 Thread iceanfire

I will try removing the debug stuff, maybe that is what's causing this
problem. I'll let you know if this helps.

Thanks.

On Sep 29, 6:44 am, Sylvain [EMAIL PROTECTED] wrote:
 Hi,

 memcache can decrease the average, that's all.
 memcache is really good, but it can't be the answer for everything.

 Else, I think with this CPU/Warning, there is no good solution. Now,
 I'm just waiting for higher quota (free or not).

 Did you remove all DEBUG flag (webapp, django render option,...)
 because it uses a lot of CPU.
 The profiler code uses a lot of CPU too.

 Regards

 On 29 sep, 12:57, Arun Shanker Prasad [EMAIL PROTECTED]
 wrote:

  Hi Barry,

  I know that the memcache is free, but it will push out stuff if the
  memory usage is high, I already have much bigger query result cached
  in the memcache, I want to keep them there as long as possible. :)

  Thanks,
  Arun Shanker Prasad.

  On Sep 29, 3:44 pm, Barry Hunter [EMAIL PROTECTED]
  wrote:

   On Mon, Sep 29, 2008 at 11:18 AM, Arun Shanker Prasad

   [EMAIL PROTECTED] wrote:

My app is also causing the same problems, I have used etags to set the
response to 302 if cached, I've tried everything short of memcache, I
have many images, I don't think that is a viable solution for me.

   Why not? memcache is 'free', doesn't seem to be any reason NOT to use it?

   memcache is already designed to keep 'hot' items in the cache - so it
   will automatically discard little used images (or what ever you
   store).

   You should I would of thought be looking to cache everything possible.

Any suggestions are welcome.

On Sep 29, 2:10 am, iceanfire [EMAIL PROTECTED] wrote:
Thanks for the suggestions. I see the need for Cacheing to reduce the
load, but I don't understand why the current request is causing high-
cpu warnings (2 times the average cpu request). At this rate, if a few
first time users use my application  try to open images that haven't
been memcached (etc..).. then my application will crash.

My main question is: why is this request causing a high cpu warning,
and no one has been able to answer that. For a request that only
takes  0.020 CPU seconds (according to profiler), appengine sends
out a warning stating that 2463mcycles have been used.

So my question is: how do I completely stop high-cpu warnings for a
request that shouldn't be causing them in the first place?

I understand that there are ways I can mitigate the problem..but i'd
like to get to the root if possible.

thanks!

On Sep 25, 9:26 am, Bryan A. Pendleton [EMAIL PROTECTED] wrote:

     -So are textProperties more efficient than StringProperties
 because
     they're not indexed?

     You'd have to find the talk from Google IO to be sure. I believe
 it
     was the one about scalability, in the QA section. But yes, that 
 is
 my
     understanding.

 As I understand it, every field that's not a TextProperty or a
 BlobProperty are implicitly indexed (this is how all = conditions are
 dealt with in queries). So, whenever you write such an object, it 
 will
 take longer (because of the index updates).

 Another way of thinking about it, is that if you never need to query
 on a single value, make it a TextProperty or BlobProperty, if
 possible.

     -Wouldn't adding etag--while increasing efficiency if I have the
 same
     users loading the sameimageagain and again--actually decrease
     efficiency for users who are opening up an thumbnail for the 
 first
     time? In that situation,  I'd have another column for etags in my
     datastore being requested w/ every query.

     Yes, you absolutely should generate the etag when you save the
     thumbnail, and save it in the model itself.Cachingit separately
 is
     however still desirable as you can then avoid pulling the rest of
 the
     data into memory if it's not needed, or you can opt to not cache
 the
     rest of the data at all, instead onlycachingthe etag, to be more
     cache friendly.

 A quick and easy hack for this is to generate the etag before 
 creating
 the Thumbnail model instance - and use that etag as the named key.
 Then, you can do lookup andcachingbased on the etag alone, where
 that makes sense. Unless you have some specific meaning in your ID
 already, this should simplify the how to deal with etags question
 quite a bit.

   --
   Barry

   -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Still having trouble with high-cpu warnings for thumbnails.

2008-09-28 Thread iceanfire

Thanks for the suggestions. I see the need for Cacheing to reduce the
load, but I don't understand why the current request is causing high-
cpu warnings (2 times the average cpu request). At this rate, if a few
first time users use my application  try to open images that haven't
been memcached (etc..).. then my application will crash.

My main question is: why is this request causing a high cpu warning,
and no one has been able to answer that. For a request that only
takes  0.020 CPU seconds (according to profiler), appengine sends
out a warning stating that 2463mcycles have been used.

So my question is: how do I completely stop high-cpu warnings for a
request that shouldn't be causing them in the first place?

I understand that there are ways I can mitigate the problem..but i'd
like to get to the root if possible.

thanks!

On Sep 25, 9:26 am, Bryan A. Pendleton [EMAIL PROTECTED] wrote:
     -So are textProperties more efficient than StringProperties
 because
     they're not indexed?

     You'd have to find the talk from Google IO to be sure. I believe
 it
     was the one about scalability, in the QA section. But yes, that is
 my
     understanding.

 As I understand it, every field that's not a TextProperty or a
 BlobProperty are implicitly indexed (this is how all = conditions are
 dealt with in queries). So, whenever you write such an object, it will
 take longer (because of the index updates).

 Another way of thinking about it, is that if you never need to query
 on a single value, make it a TextProperty or BlobProperty, if
 possible.

     -Wouldn't adding etag--while increasing efficiency if I have the
 same
     users loading the same image again and again--actually decrease
     efficiency for users who are opening up an thumbnail for the first
     time? In that situation,  I'd have another column for etags in my
     datastore being requested w/ every query.

     Yes, you absolutely should generate the etag when you save the
     thumbnail, and save it in the model itself. Caching it separately
 is
     however still desirable as you can then avoid pulling the rest of
 the
     data into memory if it's not needed, or you can opt to not cache
 the
     rest of the data at all, instead only caching the etag, to be more
     cache friendly.

 A quick and easy hack for this is to generate the etag before creating
 the Thumbnail model instance - and use that etag as the named key.
 Then, you can do lookup and caching based on the etag alone, where
 that makes sense. Unless you have some specific meaning in your ID
 already, this should simplify the how to deal with etags question
 quite a bit.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Log errors that don't make sense to me

2008-09-28 Thread iceanfire

I can't really help you with this issue. but I just wanted to say:
Your app is amazing.

On Sep 27, 8:56 pm, Daniel [EMAIL PROTECTED] wrote:
 I've recently connected my appengine powered game to facebook.  I have
 appengine serving up the facebook pages and I'm getting some errors in
 the logs that really don't look like errors to me.. looks more like a
 log of a transaction to facebook.  Any ideas why this would be
 considered an error?  Makes it hard to spot real errors since these
 are taking over my logs:

 (I've put XXX in place of some of the id's)

 #
 09-27 10:36AM 59.769 /fb/?
 auth_token=ec4e556b4a12e9d1175XXX082841installed=1 200 434ms
 23mcycles 4kb
 See details

 69.63.176.88 - - [27/09/2008:10:37:00 -0700] POST /fb/?
 auth_token=ec4e556b4a12e9d1175XXX082841installed=1 HTTP/1.1 200 4668
 - -

 #
 D 09-27 10:36AM 59.773

 GotPost:POST /fb/?auth_token=ec4e556b4a12e9d1175XXX082841installed=1

 #
 E 09-27 10:37AM 00.200

 Accept: */*

 #
 E 09-27 10:37AM 00.200

 Content-Length: 1149

 #
 E 09-27 10:37AM 00.200

 Content-Length: 1149

 #
 E 09-27 10:37AM 00.200

 Content-Type: application/x-www-form-urlencoded

 #
 E 09-27 10:37AM 00.200

 Content-Type: application/x-www-form-urlencoded

 #
 E 09-27 10:37AM 00.200

 Cookie:

 #
 E 09-27 10:37AM 00.200

 Host:www.guessasketch.com

 #
 E 09-27 10:37AM 00.200

 Pragma: no-cache

 #
 E 09-27 10:37AM 00.200

 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
 1.9.0.2) Gecko/2008091620 Firefox/3.0.2,gzip(gfe),gzip(gfe)

 #
 E 09-27 10:37AM 00.200

 X-Fb-User-Remote-Addr: 91.111.26.224

 #
 E 09-27 10:37AM 00.200

 #
 E 09-27 10:37AM 00.200

 fb_sig_in_canvas=1fb_sig_request_method=GETfb_sig_friends=5193X1046%2C52X536228%2CX42425600%2C5458X3876fb_sig_position_fix=1fb_sig_locale=en_USfb_sig_in_new_facebook=1fb_sig_time=1222537019.5219fb_sig_added=1fb_sig_profile_update_time=1222463399fb_sig_user=613441318fb_sig_session_key=b356d1a9f51eXXXd-686449918fb_sig_expires=1222623419fb_sig_api_key=a2c4XXX6976607dfb_sig=188ee14XXX0a0ed949c531
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Django forms, what to do when all the data isn't present

2008-09-25 Thread iceanfire

No problem.
Take a look at this as well: 
http://code.google.com/appengine/articles/djangoforms.html

On Sep 25, 2:08 am, Peter [EMAIL PROTECTED] wrote:
 That looks solid.  I'll give it a go

 Thanks for helping a newbie!
 Pete

 On Sep 25, 6:04 am, iceanfire [EMAIL PROTECTED] wrote:

  I'm no Django expert, but here's what I do.
  Use 'exclude' to exclude stuff:
  class Message Form(djangoforms.ModelForm):
      class Meta:
          model = Message
          exclude = ['by', 'chat']

  Then under the post method of the class that receives the submitted
  data add:

  data = RealgroupForm(data=self.request.POST)
      if data.is_valid():
          entity = data.save(commit=False)
          entity.by = users.get_current_user()
          entity.chat = .. you get the idea
          entity.put()
          self.redirect('/message?message=sent)
       else:
           self.redirect...data invalid

  On Sep 24, 4:59 pm, Peter [EMAIL PROTECTED] wrote:

   Hi folks,
     I'm trying to write a basic chat application.

     my models currently look like

   ***
   # models.py

   from google.appengine.ext import db

   class Chat(db.Model):
       name = db.StringProperty

   class User(db.Model):
       name = db.StringProperty()
       ip = db.StringProperty()

   class Message(db.Model):
       chat = db.ReferenceProperty(Chat, required=True,
   collection_name='chat')
       by = db.ReferenceProperty(User, required=True,
   collection_name='by')
       date = db.DateTimeProperty(auto_now_add=True)
       message = db.StringProperty(multiline=True)

   from google.appengine.ext.db import djangoforms
   #from django import newforms as forms

   class MessageForm(djangoforms.ModelForm):
       class Meta:
           model = Message

   ***

     What I want is to have the message itself submitted via the form,
   but to populate the 'by' and 'chat' parameters.

     I figure the form will submit some sort of chatId and userId.  I'll
   need to map those across to User and Chat models.  Add them to the
   Message model, and then I'm ready to save.

     How should I go about this?

   Cheers,
   Peter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] non-unique ids in same model?

2008-08-31 Thread iceanfire

Hey,

I've got Model_C which is the child of Model_P. In this case, there
are about 200 Model_P entities with each one having one child. When I
took a look at data viewer, I noticed that all Model_C entities had an
id of 1. Is this something that only occurs for parent/child
relationships? Or should I not rely on IDs to be unique within a Model
that doesn't have parents?

-Hadi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---