[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread ego008
use zipserve
from google.appengine.ext import zipserve

2009/8/13 edvakf taka.atsu...@googlemail.com


 I found the part of the code where gzip file was magically unzipped.

 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/api/urlfetch_stub.py
 =
if http_response.getheader('content-encoding') == 'gzip':
  gzip_stream = StringIO.StringIO(http_response_data)
  gzip_file = gzip.GzipFile(fileobj=gzip_stream)
  http_response_data = gzip_file.read()
response.set_content(http_response_data[:MAX_RESPONSE_SIZE])
 =

 I wonder it's a good behavior. The downloaded data is less than 1MB,
 but since the unzipped data is more than that, it's truncated.

 I believe truncation should occur only when the downloaded data is
 more than 1MB.
 What does everyone think?
  



-- 
gae-django-cms (GD-cms)
a multi-user CMS running on GAE
sample http://www.19tm.cn/ or http://cmsdome.appspot.com/
projects http://code.google.com/p/gae-django-cms/

--~--~-~--~~~---~--~~
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: Problem with Verify Your Account by SMS

2009-08-13 Thread Nick Johnson (Google)

Hi,

If you are having trouble with SMS verification, or want an additional
account activated, please fill out the following form:

http://appengine.google.com/waitlist/sms_issues

(This is from the following FAQ
http://code.google.com/appengine/kb/sms.html#error )

Once you fill out this form, you should receive access within a day or two.

Happy coding,

Nick Johnson



On Sun, Jul 26, 2009 at 5:08 AM, maroxebachir...@gmail.com wrote:

 Hi i have the same problem, can you activat my account pls?

 




-- 
Nick Johnson, Developer Programs Engineer, 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: Possible problem with Datastore

2009-08-13 Thread Jyoti Shete-Javadekar
Hi Ankur,
The logic seems fine to me. Could you please have a counter for fetched
entries outside the try block to check if #fetched and #processed are same?

Thanks,

On Wed, Aug 12, 2009 at 10:46 PM, Ankur ankj...@gmail.com wrote:



 Hello All,

 I am facing some weird problem while doing some processing through
 AppEngine's RemoteAPI. Here is the scenario:

 * I have more 600k entries in a table in datastore. I am using a
 sharded counter which gave me this count information.
 * I am trying to iterate over ALL entries in my datastore using the
 code snippet given below.
 * What's happening is that this code is not reading ALL 600k entries
 from the datastore. The loop finishes after 125k iterations! It should
 have processed all 600k entries. But, the loop is finishing early. I
 think the issue is with '__key__' field of AppEngine's Datastore.

 Can any help me in debugging this problem?

 Thanks,
 Ankur



 
 def download_data(my_datastore_table):
KIND = my_datastore_table
batchsize = 200
cnt = 0
num = 0

results = KIND.all().order('__key__').fetch(batchsize)
while results:
num_fetched = len(results)
last_key = results[-1].key()
try:
doSomethingWithResultsresults)
cnt = cnt + num_fetched
print %s records processed % cnt
except:
traceback.print_exc()

results = KIND.all().filter('__key__ ', last_key).order
 ('__key__').fetch(batchsize)
 

 



-- 
-Jyoti
www.videonym.com

--~--~-~--~~~---~--~~
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: google-app-engine-django

2009-08-13 Thread ego008
Concern the project too

2009/8/12 Ian Lewis ianmle...@gmail.com


 Andy,

 I believe the project's goal was to support django 1.0 on appengine
 but since 1.0 is now available there isn't much point to continuing
 the project. I think that the appengine folks plan to have django
 available on appengine without using google-app-engine-django

 Ian

 On Wed, Aug 12, 2009 at 7:31 PM, Andya...@robotlovesyou.com wrote:
 
  Hello
 
  Does anyone know what the current status of the google-app-engine-
  django project at http://code.google.com/p/google-app-engine-django/
 
  All the downloads have been deprecated for a few weeks now, though it
  is possible to get more recent releases from subversion.
 
  Thanks
 
  Andy
  
 



 --
 ===
 株式会社ビープラウド  イアン・ルイス
 〒150-0012
 東京都渋谷区広尾1-11-2アイオス広尾ビル604
 email: ianmle...@beproud.jp
 TEL:03-5795-2707
 FAX:03-5795-2708
 http://www.beproud.jp/
 ===

 



-- 
gae-django-cms (GD-cms)
a multi-user CMS running on GAE
sample http://www.19tm.cn/ or http://cmsdome.appspot.com/
projects http://code.google.com/p/gae-django-cms/

--~--~-~--~~~---~--~~
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: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread Nick Johnson (Google)

Hi edvakf,

On Wed, Aug 12, 2009 at 11:19 PM, edvakftaka.atsu...@googlemail.com wrote:

 I found the part of the code where gzip file was magically unzipped.

 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/api/urlfetch_stub.py
 =
        if http_response.getheader('content-encoding') == 'gzip':
          gzip_stream = StringIO.StringIO(http_response_data)
          gzip_file = gzip.GzipFile(fileobj=gzip_stream)
          http_response_data = gzip_file.read()
        response.set_content(http_response_data[:MAX_RESPONSE_SIZE])
 =

urlfetch_stub is only used in the dev_appserver - this code does not
run in production.

Nevertheless, this is the correct behaviour if the server you're
contacting is setting the Content-Encoding header. This header
specifies that the content is not a gzip file, but is merely being
transmitted gzip-encoded. To send a .gz file, the content-encoding
header should be omitted, but the content-type header should be set to
application/x-gzip.

-Nick Johnson


 I wonder it's a good behavior. The downloaded data is less than 1MB,
 but since the unzipped data is more than that, it's truncated.

 I believe truncation should occur only when the downloaded data is
 more than 1MB.
 What does everyone think?
 




-- 
Nick Johnson, Developer Programs Engineer, 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: Cannot get to my dashboard

2009-08-13 Thread Nick Johnson (Google)

On Thu, Aug 13, 2009 at 1:55 AM, Joshua Smithjesm...@kaon.com wrote:

 Since help is not forthcoming (!) I created a new account in my google
 apps world, and invited that account to join.

My apologies for the delayed reply. I only work 8 hours a day, and
during much of the period you were posting, I was asleep.


 For a bunch of my apps, that worked.  I can see the apps and I can
 update them, as long as I use that new account.

 However, for three of my apps, I get this error when I try to accept
 the invitation:

 Unknown User
 A supplied user email does not exist in the application's
 authorization domain.

 WHAT DOES THAT MEAN?

Presumably you have set those apps to use Google Apps for
authentication instead of Google accounts. Thus, you can't add an
administrator outside your own domain. Can you verify if you are able
to make updates to those apps using your existing account?

-Nick Johnson


 




-- 
Nick Johnson, Developer Programs Engineer, 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: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread edvakf

Thank you, Nick.

 the content-encoding header should be omitted

That's how I ended up doing in the end.

I have another question. If the .gz file was fetched with Content-
Encoding: gzip, is the URL Fetch Quota counted by the gzipped
filesize, or expanded (original) filesize?

edvakf
--~--~-~--~~~---~--~~
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: Building index stucked

2009-08-13 Thread Nick Johnson (Google)

Hi Trong Dinh,

You should now be able to upload your indexes again.

-Nick Johnson

On Thu, Aug 13, 2009 at 4:49 AM, Trong Dinhnse...@gmail.com wrote:

 Thank you very much Nick.

 I have vacuumed my indexes and have none configured now in the admin
 console. Yet I am unable to update with new index configuration
 (Server 500 errors). I vaguely suspect this has something to do with
 my total index count is set at the limit. Can you or someone @GAE
 please have a look at this issue for me? Thanks.

 On 12 Tháng Tám, 16:36, Nick Johnson (Google)
 nick.john...@google.com wrote:
 Hi Trong Dinh,

 You should be able to vacuum your indexes now.

 -Nick Johnson





 On Tue, Aug 11, 2009 at 9:04 AM, Trong Dinhnse...@gmail.com wrote:

  My app id is vietnamix by the way.

  On 10 Tháng Tám, 22:04, Nick Johnson (Google)
  nick.john...@google.com wrote:
  Hi Bryan,

  I've reset your indexes again.

  We are working on improving theindexbuilding system to the point
  where this will no longer be an issue.

  -Nick Johnson

  On Mon, Aug 10, 2009 at 3:29 PM, Bryan Pendletonbpendle...@gmail.com 
  wrote:
   It was cleared, but now I seem to have re-introduced the problem as a 
   result
   of a poor re-shuffle of myindex.yaml file.
   Is there a reason that either:
   1) More reporting than Error is not provided?
   2) Users can't be offered a self-help un-stick, perhaps limited to 
   trying
   1x/hour or something? Or am I doing something so wrong that it should 
   never
   happen and, thus, stick the indexes?
   --
   Bryan A. P. Pendleton

   On Mon, Aug 10, 2009 at 9:27 AM, Nick Johnson (Google)
   nick.john...@google.com wrote:

   Hi Bryan,

   Please try vacuuming and rebuilding your indexes now.

   -Nick Johnson

   On Sat, Aug 8, 2009 at 6:29 PM, Bryan Pendletonbpendle...@gmail.com
   wrote:
My indexes are stuck, on application aquarium-bp. Oneindexis in
error,
the rest are building. When I attempt to vacuum with a
no-indexes-defined
   index.yaml file, I'm offered the opportunity to delete each, in turn.
If I only choose yes for the Errorindex, I get the Deleting 
selected
   indexdefinitions., but theindexnever disappears (and remains
Error).
If I say yes to delete any other indexes, I'm given the somewhat 
more
confusing 2009-08-08 13:20:20,689 WARNING appcfg.py:704 Anindexwas
not
deleted. Most likely this is because it no longer exists. message, 
and
still nothing changes.
I have a fairly small amount of data in my Datastore, but this broken
application state is making it impossible for me to continue
development/deployment of my app, which is now (further) behind
schedule.
Could someone from the AppEngine team take a look and maybe knock my
indexes
loose?
--
Bryan A. P. Pendleton
Graduate Student, Carnegie Mellon Human Computer Interaction 
Institute
Ph: (877) geek-1-bp

On Thu, Jun 4, 2009 at 1:40 PM, Nick Johnson (Google)
nick.john...@google.com wrote:

Hi,

I've reset your indexes to 'error' state. You can now vacuum and
recreate
them if you wish.

-Nick Johnson

On Wed, Jun 3, 2009 at 10:07 PM, mmiy...@gmail.com 
mmiy...@gmail.com
wrote:

Hi,
I've got a problem while building a newindexfor my applicaiton.
   index.yaml is correctly uploaded but its status is stacked in
Building for a week. Something must be wrong.
I've tried vaccuming theindexby appcfg.py but failed... I need some
help. My application ID is codepasture-rest.
Thanks.

   --
   Nick Johnson, Developer Programs Engineer, App Engine

  --
  Nick Johnson, Developer Programs Engineer, App Engine

 --
 Nick Johnson, Developer Programs Engineer, App Engine
 




-- 
Nick Johnson, Developer Programs Engineer, 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: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread Nick Johnson (Google)

On Thu, Aug 13, 2009 at 10:58 AM, edvakftaka.atsu...@googlemail.com wrote:

 Thank you, Nick.

 the content-encoding header should be omitted

 That's how I ended up doing in the end.

 I have another question. If the .gz file was fetched with Content-
 Encoding: gzip, is the URL Fetch Quota counted by the gzipped
 filesize, or expanded (original) filesize?

You'd have to try it out to get a definitive answer, but I believe it
will only count compressed bytes. If it counts the uncompressed size,
please file this as a bug.

-Nick Johnson


 edvakf
 




-- 
Nick Johnson, Developer Programs Engineer, 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: Sluggish Request Latency

2009-08-13 Thread Martyn

Hi Jeff,

Yes, I think it is down to network topology.  I have been pointed at
the Java get latency figures that I had not realised were accessible
before.

I have put together a test set of interactions, and I was surprised to
discover that when I measured the latency using javascript it is
typically 160 - 200ms (far better than the 1 second I claimed in my
original post).  This certainly enforces what you say about perceived
user experience. Of course the user delay will be a little more due to
browser refresh, but I was clearly way out in my subjective
estimation.

I get ~150ms on an appspot.com ping, so this completely explains the
delays (I have also asked a few UK friends to ping appspot and they
see similar figures).

Interestingly this is pretty much what I get when I ping google.com
(but mail.google.com is very quick at 20ms).

I'll post a link to the test app in a bit.

- Martyn


On Aug 12, 7:26 pm, Jeff S (Google) j...@google.com wrote:
 Hi Martyn,

 The network topology between you and the App Engine server could also be a
 factor in this latency, so I might start by checking there. I'm also
 wondering how frequently you are making these requests. We're certainly
 interested in doing what we can to reduce overall latency, we've generally
 found that user perceived latency has a big impact and, to the user, it
 really doesn't matter which part of the experience is slow and they don't
 always have a way of knowing.

 Cheers,

 Jeff

 On Tue, Aug 11, 2009 at 2:08 AM, Martyn martyn.cutc...@googlemail.comwrote:





  I experience round-trip latency from a browser of around one second.
  (My request log indicates  25ms for many requests in the application)

  Is this explainable/expected/considered acceptable?  It would
  certainly make as you type updates as per the Wave demos hard to
  emulate!

  I am using Java, so maybe this is not such a problem for python apps
  and is related to routing to the JVM, I don't know.

  Should I be able to plan for significantly reduced request latency in
  the near future?

  - Martyn
--~--~-~--~~~---~--~~
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] All Read Please: Geographical Request Latency

2009-08-13 Thread Martyn

Hi there,

I am investigating request latency for AppEngine after experiencing
significantly lower performance then reported in the Java status
results.

This appears to be due to network topology, but I thought it would be
useful to get results from several locations worldwide.

To that end I have created a simple version of an app I am working on,
that provides request timings.  I would really appreciate it if people
could take a minute, try the link out and report back on the results.

Here is the link: http://performance.latest.pet-software.appspot.com

many thanks in advance

- Martyn

--~--~-~--~~~---~--~~
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: All Read Please: Geographical Request Latency

2009-08-13 Thread Martyn

I'll start off by reporting that:

In South-East England I am seeing typical latency reported at ~170ms,
but generally ranging between 160ms and 220ms


On Aug 13, 11:44 am, Martyn martyn.cutc...@googlemail.com wrote:
 Hi there,

 I am investigating request latency for AppEngine after experiencing
 significantly lower performance then reported in the Java status
 results.

 This appears to be due to network topology, but I thought it would be
 useful to get results from several locations worldwide.

 To that end I have created a simple version of an app I am working on,
 that provides request timings.  I would really appreciate it if people
 could take a minute, try the link out and report back on the results.

 Here is the link:http://performance.latest.pet-software.appspot.com

 many thanks in advance

 - Martyn
--~--~-~--~~~---~--~~
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: Memcache - how much space?

2009-08-13 Thread ego008
240M

2009/8/11 Jeff S (Google) j...@google.com

 Hi Taylor,

 The overall memcache size limit is not set in stone so we usually don't
 give a hard number as whatever I say might soon be out of date. I recommend
 using as you need it because if your app goes over it's allotment, then the
 less-used data is evicted.

 Thank you,

 Jeff



 On Thu, Aug 6, 2009 at 1:57 PM, taylorbarstow taylorbars...@gmail.comwrote:


 Hi all,

 I assume that each application has an upper limit on how much cache
 space it is allowed to occupy.  Does anyone know if this is correct?
 And if so, what is the limit on cache space?

 I'm sorry if this is covered elsewhere -- I have looked extensively
 but haven't found anything.

 Many thanks,
 Taylor




 



-- 
gae-django-cms (GD-cms)
a multi-user CMS running on GAE
sample http://www.19tm.cn/ or http://cmsdome.appspot.com/
projects http://code.google.com/p/gae-django-cms/

--~--~-~--~~~---~--~~
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] Code not refreshed

2009-08-13 Thread OkaMthembo
Hi guys and gals,

I am doing the introductory app-engine tutorial on Ubuntu 9.04 (using
Eclipse Ganymede + Pydev).
I have a problem where, if i change the Hello World message to anything
else, the old text still appears on the page.
I have tried restarting the server, and even after a complete reboot my new
text is not shown in place of Hello World.
What could it be? It can't be caching, could it?

I would appreciate any ideas..

-- 
Lloyd Dube

--~--~-~--~~~---~--~~
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: google-app-engine-django

2009-08-13 Thread Andy

Hello Ian

The google-app-engine-django project does rather more than simply
making the django-1.0 libraries available under GAE, which is what the
1.2.3 update did, it also allows you to use many other features of
django such as application structure, development utilities
(manage.py), django's memcached based caching and a whole bunch of
other good stuff.

Andy

On Aug 12, 12:29 pm, Ian Lewis ianmle...@gmail.com wrote:
 Andy,

 I believe the project's goal was to support django 1.0 on appengine
 but since 1.0 is now available there isn't much point to continuing
 the project. I think that the appengine folks plan to have django
 available on appengine without using google-app-engine-django

 Ian

 On Wed, Aug 12, 2009 at 7:31 PM, Andya...@robotlovesyou.com wrote:

  Hello

  Does anyone know what the current status of the google-app-engine-
  django project athttp://code.google.com/p/google-app-engine-django/

  All the downloads have been deprecated for a few weeks now, though it
  is possible to get more recent releases from subversion.

  Thanks

  Andy

 --
 ===
 株式会社ビープラウド  イアン・ルイス
 〒150-0012
 東京都渋谷区広尾1-11-2アイオス広尾ビル604
 email: ianmle...@beproud.jp
 TEL:03-5795-2707
 FAX:03-5795-2708http://www.beproud.jp/
 ===
--~--~-~--~~~---~--~~
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] Cannot view logs: A server error occurred. Please contact the administrator.

2009-08-13 Thread Jason Smith

I cannot view the logs for one of my app versions.  I receive the
following message (taken from HTTPFox) when I try to view at the Debug
level:

---

(Status-Line)   HTTP/1.1 500 Internal Server Error
Content-Typetext/plain
Content-Encodinggzip
DateThu, 13 Aug 2009 12:51:08 GMT
Server  Google Frontend
Cache-Control   private, x-gzip-ok=
Content-Length  74

A server error occurred.  Please contact the administrator.

---

What is the meaning of this?  The app version is used for running a
recursive taskqueue sequence to migrate data, so possibly there is a
high log volume--I don't know what constitutes high volume.  If I view
at the Error level, or if I specify to return only ten rows, things
work fine.

I am concerned because I do not want this happing on my default app
version.

Thoughts?  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] Re: google-app-engine-django

2009-08-13 Thread Holger

 it also allows you to use many other features of
 django such as application structure, development utilities
 (manage.py), django's memcached based caching and a whole bunch of
 other good stuff.

Such features are available live even for Django 1.1
http://aep-sample.appspot.com/

After coding this AppenginePatch project its author is involved
in the development of a native Django port for cloud computing
inclusive Appengine
http://groups.google.com/group/django-developers/browse_thread/thread/410b69006addf41?pli=1
Developpers intersted in paticipating are welcome.





--~--~-~--~~~---~--~~
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: All Read Please: Geographical Request Latency

2009-08-13 Thread Joshua Smith

Near Boston: low 84ms, high 400ms, median around 95ms.

--~--~-~--~~~---~--~~
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: Cannot get to my dashboard

2009-08-13 Thread Joshua Smith

Sleep?  They let you sleep at google?  That's not what I heard!  :)

Can you explain this comment?

 Presumably you have set those apps to use Google Apps for
 authentication instead of Google accounts.

Where is that set?

Up until now, we've been using Google Accounts for authentication.
What I was trying to do (but having endless problems with) was use a
mix.  Is that possible?  Or do we have to use just one mechanism or
the other?

--~--~-~--~~~---~--~~
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: Cannot get to my dashboard

2009-08-13 Thread Nick Johnson (Google)

On Thu, Aug 13, 2009 at 2:51 PM, Joshua Smithjesm...@kaon.com wrote:

 Sleep?  They let you sleep at google?  That's not what I heard!  :)

 Can you explain this comment?

When you create an app, you can choose if you want only accounts on a
specific domain to be open to all Google accounts, or specific to a
single domain. If you chose the latter, you won't be able to add
admins from other domains (such as gmail).

Can you supply a list of App IDs that you're having trouble with?


 Presumably you have set those apps to use Google Apps for
 authentication instead of Google accounts.

 Where is that set?

 Up until now, we've been using Google Accounts for authentication.
 What I was trying to do (but having endless problems with) was use a
 mix.  Is that possible?  Or do we have to use just one mechanism or
 the other?

A mix of Google Accounts and what? If you mean that you want an app to
authenticate both Google Accounts and Apps accounts, no, that's not
possible currently. You can accept only Google Accounts and then
require people to sign up for a Google Account (they can use their
Apps email address for this), or you can use an external
authentication mechanism like OpenID, which Apps now acts as a
provider for.

-Nick Johnson


 




-- 
Nick Johnson, Developer Programs Engineer, 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: Cannot get to my dashboard

2009-08-13 Thread Joshua Smith

Aha!  http://code.google.com/appengine/articles/auth.html

If I read this correctly, it means that if I want to accept random
google accounts into my app (which I DO), then I cannot manage it from
a Google Apps login.

That's really weird.  You guys should fix that.  I mean, if I use your
service for email, then I can't use that email address to manage a
publically-accessable app?  Doesn't that strike you as weird?

Anyway, I think what I need to do is create a vanilla google account,
invite that account to develop, and then use that one from now on.  Is
that correct?

--~--~-~--~~~---~--~~
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: Code not refreshed

2009-08-13 Thread Wooble

I'd check that dev_appserver isn't loading a different copy of the app
then the one you're modifying.  Changing the python file should result
in the changes occurring immediately.  Clearing your browser's cache
couldn't hurt, of course, but I can't imagine the page wouldn't get
reloaded after you've rebooting your machine unless your browser is
being really dumb.

On Aug 13, 7:48 am, OkaMthembo zebr...@gmail.com wrote:
 Hi guys and gals,

 I am doing the introductory app-engine tutorial on Ubuntu 9.04 (using
 Eclipse Ganymede + Pydev).
 I have a problem where, if i change the Hello World message to anything
 else, the old text still appears on the page.
 I have tried restarting the server, and even after a complete reboot my new
 text is not shown in place of Hello World.
 What could it be? It can't be caching, could it?

 I would appreciate any ideas..

 --
 Lloyd Dube
--~--~-~--~~~---~--~~
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: Cannot get to my dashboard

2009-08-13 Thread Nick Johnson (Google)

On Thu, Aug 13, 2009 at 3:02 PM, Joshua Smithjesm...@kaon.com wrote:

 Aha!  http://code.google.com/appengine/articles/auth.html

 If I read this correctly, it means that if I want to accept random
 google accounts into my app (which I DO), then I cannot manage it from
 a Google Apps login.

If you create a Google Account for your Apps address, it's usually
possible to administer your app in this manner. There are bugs with
the process, though, which is why that document doesn't recommend it.


 That's really weird.  You guys should fix that.  I mean, if I use your
 service for email, then I can't use that email address to manage a
 publically-accessable app?  Doesn't that strike you as weird?

We are working actively on making the whole process smoother. Sorry
you ran into this rather awkward bug!


 Anyway, I think what I need to do is create a vanilla google account,
 invite that account to develop, and then use that one from now on.  Is
 that correct?

That's definitely the most reliable approach.

-Nick Johnson


 




-- 
Nick Johnson, Developer Programs Engineer, 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: All Read Please: Geographical Request Latency

2009-08-13 Thread Koen Bok

Amsterdam: ~150ms low: 130ms, high 240ms

On Aug 13, 3:53 pm, Joshua Smith jesm...@kaon.com wrote:
 Near Boston: low 84ms, high 400ms, median around 95ms.
--~--~-~--~~~---~--~~
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: Cannot get to my dashboard

2009-08-13 Thread Joshua Smith

I'm all set now.  Creating a brand new gmail account and using that
for administration (and billing) is working for me.

I can tell you from experience that using an apps account that is also
a google account is NOT the way to go.  The bugs with the process
are completely crippling.

In case you are interested, another monkey wrench in my case was that
there was another administrator on the account, which was a proper
google account and also a *nickname* of my google apps account.  I
think this created a whole 'nother layer of bugs.  Deleting that
account from the three apps that threw the applications'
authorization domain error made them behave like the rest of the
apps.

--~--~-~--~~~---~--~~
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: Memcache - how much space?

2009-08-13 Thread ted stockwell

Hi Jeff,

A question
Can I assume that the memcache size limit will increase as the number
of servers running my application increases?



On Aug 10, 5:53 pm, Jeff S (Google) j...@google.com wrote:

 The overall memcache size limit is not set in stone so we usually don't give
 a hard number as whatever I say might soon be out of date. I recommend using
 as you need it because if your app goes over it's allotment, then the
 less-used data is evicted.



--~--~-~--~~~---~--~~
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: Number of Entities in DataStore

2009-08-13 Thread ajacks504

thanks for the responses guys.  I think i'm getting the hang of things
here...

 2- i dont know how to grab the decimated data in a way that wont be
 computationaly expensive

You could add a property that you set randomly to a number between 0
and 9. Fetching every record where that property equals (for example)
0 will get you 1/10 the records.

That might work well, maybe instead of random i can age them 0-9 as i
post them, then select only records with age = 4?

what i really want is something that grabs every nth record
efficiently so that i can adjust the timebase on the display chart and
get only enough evenly decimated samples from the DB to display
based on the timebase.

small skips for today only, larger for days, larger for months...
just like you guys do for the google.finance stock displays...

thanks again for the replys...

On Aug 12, 7:18 pm, sboire sebastien.boirelavi...@gmail.com wrote:
 True indeed it will timeout if you try to do them all in the same
 request. The trick is to return the last entry info of the bunch of
 1000 records as part of the request response and then query another
 time for the next 1000. Still, as you mention., there is a huge
 bandwidth and CPU hit to do so. So in practice that may not be a good
 solution for counting, more for iterating a whole database.Using
 key_only option in your query may significantly increases the
 performance of the query, allowing you to do several 1000 chunk in
 one request, better, but still inefficient for counting unless the
 datasets stays within few thousands.

 Sebastien

 On Aug 12, 2:12 pm, Neal Walters nwalt...@sprynet.com wrote:

  Sboire,
    There is an offset parm on the fetch, so yes, you can get 1000
  records at a time in a loop.
  I believe however this is discouraged because it will eat up your CPU
  quota, and potentially you could hit other limits and quotas.  Imagine
  if you had 5 million records.  Reading 1000 at a time would take 5000
  calls.  Even on a MySQL database with PHP for example, you would
  probably hit the various CPU limits per task reading so many records
  in one round-trip from the client to the server.

  Neal Walters
--~--~-~--~~~---~--~~
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: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread edvakf

Hi Nick,

I ran a little test, and it seems to me that the URL Fetch Quota is
counting the expanded text size.

I put a file on my server http://atsushi-takayama.com/siteinfo/
foo.gz, which is a text file of exactly 1MB gzipped down to 180KB,
which is served with the header;
Content-Length: 185931
Content-Type: text/plain
Content-Encoding: x-gzip


Then I run uploaded this,
==
class Test(webapp.RequestHandler):
def get(self):
for i in range(1):
raw_data = urlfetch.fetch('http://atsushi-takayama.com/
siteinfo/foo.gz').content
logging.debug('number :' + str(i) + ', text length : ' +
str(len(raw_data)))
==
and open the test URL.

Now from what I observe at my dashboard, every time I hit the test
URL, the Incoming Bandwidth increases by 0.01 (of 1.00 GBytes) which
is around 10MB.
http://img.f.hatena.ne.jp/images/fotolife/e/edvakf/20090814/20090814002414.png
So I think it's counting 1MB*10 times (not 180KB*10 times).

If you could tell me where I can file this as a bug, it'd be
appreciated.

edvakf
--~--~-~--~~~---~--~~
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: Number of Entities in DataStore

2009-08-13 Thread Nick Johnson (Google)
On Thu, Aug 13, 2009 at 4:26 PM, ajacks504 adam.p.jack...@gmail.com wrote:


 thanks for the responses guys.  I think i'm getting the hang of things
 here...

  2- i dont know how to grab the decimated data in a way that wont be
  computationaly expensive

 You could add a property that you set randomly to a number between 0
 and 9. Fetching every record where that property equals (for example)
 0 will get you 1/10 the records.

 That might work well, maybe instead of random i can age them 0-9 as i
 post them, then select only records with age = 4?


Maintaining a sequential, distributed counter is tricky. If you need exact
numbering, you'd be better kicking off a regular task that numbers existing
entities that don't yet have numbers.


 what i really want is something that grabs every nth record
 efficiently so that i can adjust the timebase on the display chart and
 get only enough evenly decimated samples from the DB to display
 based on the timebase.


Perhaps the best way to do this would be a set of boolean values indicating
if this entry was logged in the first second of the minute, the first minute
of the hour, and so forth. Then you can fetch the first entity of any
interval that you've catered for.




 small skips for today only, larger for days, larger for months...
 just like you guys do for the google.finance stock displays...

 thanks again for the replys...

 On Aug 12, 7:18 pm, sboire sebastien.boirelavi...@gmail.com wrote:
  True indeed it will timeout if you try to do them all in the same
  request. The trick is to return the last entry info of the bunch of
  1000 records as part of the request response and then query another
  time for the next 1000. Still, as you mention., there is a huge
  bandwidth and CPU hit to do so. So in practice that may not be a good
  solution for counting, more for iterating a whole database.Using
  key_only option in your query may significantly increases the
  performance of the query, allowing you to do several 1000 chunk in
  one request, better, but still inefficient for counting unless the
  datasets stays within few thousands.
 
  Sebastien
 
  On Aug 12, 2:12 pm, Neal Walters nwalt...@sprynet.com wrote:
 
   Sboire,
 There is an offset parm on the fetch, so yes, you can get 1000
   records at a time in a loop.
   I believe however this is discouraged because it will eat up your CPU
   quota, and potentially you could hit other limits and quotas.  Imagine
   if you had 5 million records.  Reading 1000 at a time would take 5000
   calls.  Even on a MySQL database with PHP for example, you would
   probably hit the various CPU limits per task reading so many records
   in one round-trip from the client to the server.
 
   Neal Walters
 



-- 
Nick Johnson, Developer Programs Engineer, 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: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread Nick Johnson (Google)
Hi edvakf,
Please do file this as a bug, including the test and evidence you gathered
below.

-Nick Johnson

On Thu, Aug 13, 2009 at 4:30 PM, edvakf taka.atsu...@googlemail.com wrote:


 Hi Nick,

 I ran a little test, and it seems to me that the URL Fetch Quota is
 counting the expanded text size.

 I put a file on my server http://atsushi-takayama.com/siteinfo/
 foo.gz, which is a text file of exactly 1MB gzipped down to 180KB,
 which is served with the header;
 Content-Length: 185931
 Content-Type: text/plain
 Content-Encoding: x-gzip


 Then I run uploaded this,
 ==
 class Test(webapp.RequestHandler):
def get(self):
 for i in range(1):
raw_data = urlfetch.fetch('http://atsushi-takayama.com/
 siteinfo/foo.gz').content
logging.debug('number :' + str(i) + ', text length : ' +
 str(len(raw_data)))
 ==
 and open the test URL.

 Now from what I observe at my dashboard, every time I hit the test
 URL, the Incoming Bandwidth increases by 0.01 (of 1.00 GBytes) which
 is around 10MB.

 http://img.f.hatena.ne.jp/images/fotolife/e/edvakf/20090814/20090814002414.png
 So I think it's counting 1MB*10 times (not 180KB*10 times).

 If you could tell me where I can file this as a bug, it'd be
 appreciated.

 edvakf
 



-- 
Nick Johnson, Developer Programs Engineer, 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: google-app-engine-django

2009-08-13 Thread Andy

Hi Holger, I'm aware of the appengine patch project. It's a very
impressive bit of work but it comes with a whole bunch of extra's
included (such as the media generator).
I like google-app-engine-django for it's simplicity, which is why I am
asking about the status of the project.

Andy

On Aug 13, 2:34 pm, Holger w...@arcor.de wrote:
  it also allows you to use many other features of
  django such as application structure, development utilities
  (manage.py), django's memcached based caching and a whole bunch of
  other good stuff.

 Such features are available live even for Django 
 1.1http://aep-sample.appspot.com/

 After coding this AppenginePatch project its author is involved
 in the development of a native Django port for cloud computing
 inclusive 
 Appenginehttp://groups.google.com/group/django-developers/browse_thread/thread...
 Developpers intersted in paticipating are welcome.
--~--~-~--~~~---~--~~
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: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread edvakf

Correction

The code is this. range(10) instead of range(1)
==
class Test(webapp.RequestHandler):
def get(self):
for i in range(10):
raw_data = urlfetch.fetch('http://atsushi-takayama.com/
siteinfo/foo.gz').content
logging.debug('number :' + str(i) + ', text length : ' +
str(len(raw_data)))
==

It looks on the dashboard like this.
http://img.f.hatena.ne.jp/images/fotolife/e/edvakf/20090814/20090814003218.png

edvakf
--~--~-~--~~~---~--~~
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: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread edvakf

This issue is now reported.

http://code.google.com/p/googleappengine/issues/detail?id=1975

edvakf
--~--~-~--~~~---~--~~
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: All Read Please: Geographical Request Latency

2009-08-13 Thread bFlood

Somerset, NJ: low 80ms, high 340ms, median around 90ms.

On Aug 13, 10:53 am, Koen Bok k...@madebysofa.com wrote:
 Amsterdam: ~150ms low: 130ms, high 240ms

 On Aug 13, 3:53 pm, Joshua Smith jesm...@kaon.com wrote:



  Near Boston: low 84ms, high 400ms, median around 95ms.
--~--~-~--~~~---~--~~
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: Cannot view logs: A server error occurred. Please contact the administrator.

2009-08-13 Thread Jason Smith

For the record, Nick contacted me (thanks, Nick!) and discovered the
problem quickly.

My app version was logging very verbosely.  The log viewer app was
unable to handle the log volume at 20 logs per screen.  (10 works
fine.)  So it was timing out much the same way that an App Engine app
times out on large volume.

Reducing my log verbosity will solve the problem, and Nick said the
team is working on better server-side handling of this situation.

On Aug 13, 7:54 pm, Jason Smith j...@proven-corporation.com wrote:
 I cannot view the logs for one of my app versions.  I receive the
 following message (taken from HTTPFox) when I try to view at the Debug
 level:

 ---

 (Status-Line)   HTTP/1.1 500 Internal Server Error
 Content-Type    text/plain
 Content-Encoding        gzip
 Date    Thu, 13 Aug 2009 12:51:08 GMT
 Server  Google Frontend
 Cache-Control   private, x-gzip-ok=
 Content-Length  74

 A server error occurred.  Please contact the administrator.

 ---

 What is the meaning of this?  The app version is used for running a
 recursive taskqueue sequence to migrate data, so possibly there is a
 high log volume--I don't know what constitutes high volume.  If I view
 at the Error level, or if I specify to return only ten rows, things
 work fine.

 I am concerned because I do not want this happing on my default app
 version.

 Thoughts?  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] Re: Sharing an app between different Google apps domains

2009-08-13 Thread Elias Torres

On Aug 10, 4:30 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 On Mon, Aug 10, 2009 at 9:02 AM, Sudhirsudhi...@gmail.com wrote:

  Heres the background - I'm developing an app, lets say accounting
  software, that I'd like to sell to organizations using Google Apps.

  How do I manage deployments? If I just create one app, it is possible
  for all my clients to import it into their dashboard and use it like
  their own app?

 Yes, though currently their users will have to have Google accounts
 (you can create a Google account for any email address by going 
 tohttps://www.google.com/accounts/NewAccount) in order to sign in, since
 you can only set your app to work with Google accounts or one specific
 domain's accounts. Alternately, you can work around this limitation by
 using OpenID, but this is rather cumbersome.



  I don't want to create, maintain and update a separate app for each
  and every one of my customers... how can I share the app with my
  client domains keeping a separate datastore and auth setup for each of
  them?

 If you're using the approach outlined above, you'll need to enforce
 separation in your datastore yourself - for example, by restricting
 records based on the Host header the site is accessed through, and/or
 the hostname of the user who's logged in. One way to do this is with
 Hooks:http://code.google.com/appengine/articles/hooks.html


If I'm using my own registration/authentication can I just point any
domain (naked or dressed) to my appspot app and the Host header will
always be there?

-Elias

 -Nick Johnson



  Sudhir

 --
 Nick Johnson, Developer Programs Engineer, 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] Massive datastore batch put, how to?

2009-08-13 Thread Stakka

I'am working on an browser based accounting app which has a feature to
import ledger transactions through file uploads. I'am currently only
running on the local dev server, but from what I've read datastore
puts -- even batch -- is very slow and CPU (quota) intensive when
deployed live.

How do I overcome this problem if the user uploads a large file with
thousands transaction?

I've seen solutions where you batch put entities in chunks of 500.
That only works if you run a custom upload tool on your computer, not
from a browser since the request is limited to 30 seconds. Am I forced
to use the Task Queue? But where do I store the raw uploaded file or
the preferably parsed interim transaction entities when the task isn't
executing?

Funny App Engine has a 10 megabyte request (file upload) size limit
when storing 10 megabyte worth of entities seems to be so hard.

--~--~-~--~~~---~--~~
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] Index not updating

2009-08-13 Thread eddyd

I have an index - (refId, seqno). Then changed the name of the field:
from  refId  to  refid- from upper case to lower case.

The index does not change and I am getting

com.google.appengine.api.datastore.DatastoreNeedIndexException

Is there a way to remove the old index? Or to speed up the creation of
the new one?



--~--~-~--~~~---~--~~
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] Index not updating

2009-08-13 Thread eddyd

the application - flexiview - has an index - (refId, seqno).
I changed the name of the first field:

from   refId   to   refid   -   from upper case I to lower case i

the index does not change and I am getting an exception:

com.google.appengine.api.datastore.DatastoreNeedIndexException

What can I do to get the index changed?

If this makes any difference - I am using JPA.

And I tried to use appcfg.sh update_indexes without any effect. I
don't see in my war directory any of (the datastore-indexes.xml and
generated/datastore-indexes-auto.xml files).

--~--~-~--~~~---~--~~
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] urlfetch sservice is in trouble ?

2009-08-13 Thread olivier+appeng...@deckmyn.org

Howdy all,

Just to notify we have a failure (80-100% error rate) on urlfetch
service since few hours :

http://code.google.com/status/appengine/detail/urlfetch/2009/08/13#ae-trust-detail-urlfetch-internal-search-error_rate

There has been a fix yesterday, but fire came back :)

Have a nice day,

Olivier.

--~--~-~--~~~---~--~~
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] How to handle a file upload containing thousands of entities?

2009-08-13 Thread Stakka

I'am working on an browser based accounting app which has a feature to
import ledger transactions through file uploads. Currently it's only
running on the local dev server, but from what I've read datastore
puts -- even batch -- is very slow and CPU (quota) intensive when
deployed live.

So, how do I overcome this problem when a user uploads a file with
thousands of transactions?

I've seen solutions where you batch put entities in chunks of 500.
That only works if you run a custom upload tool on your computer, not
from a browser since the request is limited to 30 seconds. Am I forced
to use the Task Queue? If so, where do I store the raw uploaded file
or preferably the parsed interim transaction entities when the task
isn't executing?

It's funny that App Engine has a 10 megabytes request (file upload)
size limit when storing 10 megabytes worth of entities is such a
hazzle.

--~--~-~--~~~---~--~~
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: Compilation failure for method with custom object param

2009-08-13 Thread thepopeofantelope

I was able to get this to work by moving my pojo to the client folder
and adding detachable = false to the PersistenceCapable annontation.
@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable = false)

This is a simple app and provides what I need.


On Aug 4, 1:01 pm, Albert Attard albertatt...@gmail.com wrote:
 Hi:
 You cannot access server classes from your client. You can access client
 classes from your server.

 What you have to do is start using transfer objects. Here's an 
 article:http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObje...

 Let me know if you need more help.
 Albert Attard

 Joan Crawfordhttp://www.brainyquote.com/quotes/authors/j/joan_crawford.html
 - I, Joan Crawford, I believe in the dollar. Everything I earn, I
 spend.

 2009/8/4 thepopeofantelope markp...@gmail.com





  I created the following class and want to use it between the client
  and server. I get this GWT compile error on the Service class:

  Compiling module com.test.GWTTEst
    Refreshing module from source
       Validating newly compiled units
          Removing units with errors
             [ERROR] Errors in 'file:/C:/GWTTEst/src/com/test/client/
  RecipeServiceAsync.java'
                [ERROR] Line 7: No source code is available for type
  com.test.server.Recipe; did you forget to inherit a required module?
             [ERROR] Errors in 'file:/C:/GWTTEst/src/com/test/client/
  RecipeService.java'
                [ERROR] Line 9: No source code is available for type
  com.test.server.Recipe; did you forget to inherit a required module?

  ===

  package com.test.client;

  import com.google.gwt.user.client.rpc.RemoteService;
  import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
  import com.test.server.Recipe;

  @RemoteServiceRelativePath(recipe)
  public interface RecipeService extends RemoteService {
   public void addStock(Recipe symbol) throws NotLoggedInException;
   public void removeStock(String symbol) throws NotLoggedInException;
   public String[] getStocks() throws NotLoggedInException;
  }

  ==

  package com.test.server;

  import java.io.Serializable;
  import java.util.Date;

  import javax.jdo.annotations.IdGeneratorStrategy;
  import javax.jdo.annotations.IdentityType;
  import javax.jdo.annotations.PersistenceCapable;
  import javax.jdo.annotations.Persistent;
  import javax.jdo.annotations.PrimaryKey;

  import com.google.appengine.api.users.User;
  import com.google.gwt.user.client.rpc.IsSerializable;

  @PersistenceCapable(identityType = IdentityType.APPLICATION)
  public class Recipe implements IsSerializable {

        �...@primarykey
        �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
         private Long id;
        �...@persistent
         private User user;
        �...@persistent
         private String name;
        �...@persistent
         private String category;
        �...@persistent
         private String cuisine;
        �...@persistent
         private String occasion;
        �...@persistent
         private String ingredients;
        �...@persistent
         private String directions;
        �...@persistent
         private Date created;

         public Recipe() {

         }

         public Recipe(User user, String symbol) {
                 this();
                 this.user = user;
         }

         public User getUser() {
                 return user;
         }

         public void setUser(User user) {
                 this.user = user;
         }

         public String getName() {
                 return name;
         }

         public void setName(String name) {
                 this.name = name;
         }

         public String getCuisine() {
                 return cuisine;
         }

         public void setCuisine(String cuisine) {
                 this.cuisine = cuisine;
         }

         public String getIngredients() {
                 return ingredients;
         }

         public void setIngredients(String ingredients) {
                 this.ingredients = ingredients;
         }

         public String getDirections() {
                 return directions;
         }

         public void setDirections(String directions) {
                 this.directions = directions;
         }

         public String getOccasion() {
                 return occasion;
         }

         public void setOccasion(String occasion) {
                 this.occasion = occasion;
         }

         public String getCategory() {
                 return category;
         }

         public void setCategory(String category) {
                 this.category = category;
         }

         public Date getCreated() {
                 return created;
         }

  }
--~--~-~--~~~---~--~~
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] Re: Massive datastore batch put, how to?

2009-08-13 Thread Nick Johnson (Google)

Hi Stakka,

My suggestion would be to do something like this:
- Split the uploaded file into 'jobs'. One job per 500k might be about
right; it depends on your processing overhead. In any case, the job
needs to be less than 1MB.
- Insert the jobs into the datastore.
- Add a task queue job for each job.
- Have the task queue job process its part of the total data.

-Nick Johnson

On Wed, Aug 12, 2009 at 10:36 PM, Stakkahenrik.lindqv...@gmail.com wrote:

 I'am working on an browser based accounting app which has a feature to
 import ledger transactions through file uploads. I'am currently only
 running on the local dev server, but from what I've read datastore
 puts -- even batch -- is very slow and CPU (quota) intensive when
 deployed live.

 How do I overcome this problem if the user uploads a large file with
 thousands transaction?

 I've seen solutions where you batch put entities in chunks of 500.
 That only works if you run a custom upload tool on your computer, not
 from a browser since the request is limited to 30 seconds. Am I forced
 to use the Task Queue? But where do I store the raw uploaded file or
 the preferably parsed interim transaction entities when the task isn't
 executing?

 Funny App Engine has a 10 megabyte request (file upload) size limit
 when storing 10 megabyte worth of entities seems to be so hard.

 




-- 
Nick Johnson, Developer Programs Engineer, 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: google-app-engine-django

2009-08-13 Thread Holger

Hi Andy,

you are right, appenginepatch has got a lot of additional features.

If you don't need them, simply switch them off, as explained in the
manual:

'The Media Generator is pre-configured ...  You can disable it by
removing mediautils from your INSTALLED_APPS. '
http://code.google.com/p/app-engine-patch/wiki/MediaGenerator

Holger

--~--~-~--~~~---~--~~
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: DownloadError: ApplicationError: 5

2009-08-13 Thread Jeff S (Google)
For a question about performance improvements in the Google Spreadsheets
API, I think the best place is the Google Docs APIs group:

http://groups.google.com/group/Google-Docs-Data-APIs

You might also want to file an issue in the bug and feature request list for
Google Data APIs:

http://code.google.com/p/gdata-issues/issues/list

Cheers,

Jeff

On Wed, Aug 12, 2009 at 10:06 PM, condor takayuki.a...@gmail.com wrote:


 Hi, Jeff.

 I hope that the execution time of Spreadsheet API become short as good
 as indicating a row_id.
 When I indicate the follow parameter.

 row_query = gdata.spreadsheet.service.ListQuery()
 row_query.start_index = str(1)
 row_query.max_results = str(1)

 Please tell me that you can resolve the issue.


 On 7月30日, 午後2:06, condor takayuki.a...@gmail.com wrote:
  Hi, Jeff.
 
  Thank you for your answer.
 
  
 http://spreadsheets.google.com/feeds/list/{key}/{worksheetId}/private/full/{rowId}http://spreadsheets.google.com/feeds/list/%7Bkey%7D/%7BworksheetId%7D/private/full/%7BrowId%7D
 
  When I tried indicating a row_id, It was success in a little seconds.
 
  And, I tried indicating the parameter sq for small feed size, then
  It was success too.
 
  On 7月30日, 午前8:42, Jeff S (Google) j...@google.com wrote:
 
   Hicondor,
 
   The maximum deadline for urlfetch is 10 seconds and it might be
 possible
   that the spreadsheets API is taking longer than that to reply even if
 the
   expected feed size is small. Have you tried to fetch just a single row
 entry
   (instead of a feed query)
 
  
 http://spreadsheets.google.com/feeds/list/{key}/{worksheetId}/private/full/{rowId}http://spreadsheets.google.com/feeds/list/%7Bkey%7D/%7BworksheetId%7D/private/full/%7BrowId%7D
 
   Please let me know how it goes. Receiving timeouts from these APIs is
   frustrating and I'd like to be able to work through this issue with the
   Spreadsheets API.
 
   Thank you,
 
   Jeff
 
   On Tue, Jul 28, 2009 at 8:11 PM,condortakayuki.a...@gmail.com wrote:
 
Hi,
I have a same situation too.
 
When I requested a spreadsheet API by the method
gdata.spreadsheets.service.GetListFeed of python client liblary
 2.0.1,
It's occured the DownLoadError ApplicationError 5.
 
File /base/python_lib/versions/1/google/appengine/api/urlfetch.py,
line 241, in fetch
   return rpc.get_result()
 File /base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py, line 442, in get_result
   return self.__get_result_hook(self)
 File /base/python_lib/versions/1/google/appengine/api/urlfetch.py,
line 331, in _get_fetch_result
   raise DownloadError(str(err))
DownloadError: ApplicationError: 5
 
I think the reason is not timeout, since the same error occured even
if I set the deadline parameter.
(This problem is solved  by the parameter on the SDK.)
 
   return HttpResponse(urlfetch.Fetch(url=str(url), payload=data_str,
 method=method, headers=all_headers, follow_redirects=False,
deadline=60))
 
↑ gdata.alt.appengine.py # 145
 
The spreadsheets has many rows.
But I am sure the download size is not large, because it's set the
following parameter.
 
 row_query = gdata.spreadsheet.service.ListQuery()
 row_query.start_index = str(1)
 row_query.max_results = str(1)
 
Please tell me the reason of  this error on GAE.
 


--~--~-~--~~~---~--~~
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: urlfetch sservice is in trouble ?

2009-08-13 Thread Jeff S (Google)
Hi Olivier,

Thanks for the report. Has your app experienced an elevated urlfetch error
rate? The issue shown on the status site is not indicative of behavior for
all urlfetch requests, but in this case only to Google.com from a monitoring
app. You'll note that there are no errors reported for the other site that
we check as part of our monitoring: AWS S3.

Thank you,

Jeff

On Thu, Aug 13, 2009 at 2:23 AM,
olivier+appeng...@deckmyn.orgolivier%2bappeng...@deckmyn.org
olivier.deck...@biopredictive.com wrote:


 Howdy all,

 Just to notify we have a failure (80-100% error rate) on urlfetch
 service since few hours :


 http://code.google.com/status/appengine/detail/urlfetch/2009/08/13#ae-trust-detail-urlfetch-internal-search-error_rate

 There has been a fix yesterday, but fire came back :)

 Have a nice day,

 Olivier.

 


--~--~-~--~~~---~--~~
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] Detecting addition of a property to a Model

2009-08-13 Thread Joshua Smith

I have a model which I have lots of instances of.

I've recently added a property to this model.

So now I'm holding an instance of this model, and I want to know if
this is one of the new ones with the new property, or one of the
legacy ones.

If I just write:

if inst.newProp:

that will throw an exception.

Is there a clean way to say if this property exists in this instance
without resorting to try/except?

-Joshua

--~--~-~--~~~---~--~~
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: Number of Entities in DataStore

2009-08-13 Thread ajacks504

Perhaps the best way to do this would be a set of boolean values
indicating
if this entry was logged in the first second of the minute, the first
minute
of the hour, and so forth. Then you can fetch the first entity of any
interval that you've catered for.

I like it...

my update rate isnt going to be crazy, im going to have my router poll
it in a python script and upload data only once every 30 seconds or
so.  thats...

2,888 / day
20,160 / week
80,640 / month
967,680 / year

i really only want 30 second resolution on the last week or so of
data...  maybe i can use your task queue idea and roll up data in
increasingly larger chunks based on how old it is.

thanks again.

On Aug 13, 10:30 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 On Thu, Aug 13, 2009 at 4:26 PM, ajacks504 adam.p.jack...@gmail.com wrote:

  thanks for the responses guys.  I think i'm getting the hang of things
  here...

   2- i dont know how to grab the decimated data in a way that wont be
   computationaly expensive

  You could add a property that you set randomly to a number between 0
  and 9. Fetching every record where that property equals (for example)
  0 will get you 1/10 the records.

  That might work well, maybe instead of random i can age them 0-9 as i
  post them, then select only records with age = 4?

 Maintaining a sequential, distributed counter is tricky. If you need exact
 numbering, you'd be better kicking off a regular task that numbers existing
 entities that don't yet have numbers.

  what i really want is something that grabs every nth record
  efficiently so that i can adjust the timebase on the display chart and
  get only enough evenly decimated samples from the DB to display
  based on the timebase.

 Perhaps the best way to do this would be a set of boolean values indicating
 if this entry was logged in the first second of the minute, the first minute
 of the hour, and so forth. Then you can fetch the first entity of any
 interval that you've catered for.





  small skips for today only, larger for days, larger for months...
  just like you guys do for the google.finance stock displays...

  thanks again for the replys...

  On Aug 12, 7:18 pm, sboire sebastien.boirelavi...@gmail.com wrote:
   True indeed it will timeout if you try to do them all in the same
   request. The trick is to return the last entry info of the bunch of
   1000 records as part of the request response and then query another
   time for the next 1000. Still, as you mention., there is a huge
   bandwidth and CPU hit to do so. So in practice that may not be a good
   solution for counting, more for iterating a whole database.Using
   key_only option in your query may significantly increases the
   performance of the query, allowing you to do several 1000 chunk in
   one request, better, but still inefficient for counting unless the
   datasets stays within few thousands.

   Sebastien

   On Aug 12, 2:12 pm, Neal Walters nwalt...@sprynet.com wrote:

Sboire,
  There is an offset parm on the fetch, so yes, you can get 1000
records at a time in a loop.
I believe however this is discouraged because it will eat up your CPU
quota, and potentially you could hit other limits and quotas.  Imagine
if you had 5 million records.  Reading 1000 at a time would take 5000
calls.  Even on a MySQL database with PHP for example, you would
probably hit the various CPU limits per task reading so many records
in one round-trip from the client to the server.

Neal Walters

 --
 Nick Johnson, Developer Programs Engineer, 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] What is the Erratic App Behavior 18 quota?

2009-08-13 Thread Jason Smith

After deploying a new version of an app as the default about 6 hours
ago, I see a new row in the dashboard summary:

Erratic App Behavior 18 | 2096 of 9223372036854775808 | !

And the yellow (!) sign says This resource is currently experiencing
a short-term quota limit

I am not sure if it's related, but I feel like the requests/sec have
flattened out a little bit.  Usually over 6 hours they will oscillate
between 25 and 50 requests/sec but it looks a bit flat.

So, what the heck is Erratic App Behavior 18?  My new version includes
more memcache usage.
--~--~-~--~~~---~--~~
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: Detecting addition of a property to a Model

2009-08-13 Thread djidjadji

probably not, from the Python 2.5 manual

--
hasattr( object, name)

The arguments are an object and a string. The result is True if the
string is the name of one of the object's attributes, False if not.
(This is implemented by calling getattr(object, name) and seeing
whether it raises an exception or not.)
--

2009/8/13 Joshua Smith jesm...@kaon.com:

 I have a model which I have lots of instances of.

 I've recently added a property to this model.

 So now I'm holding an instance of this model, and I want to know if
 this is one of the new ones with the new property, or one of the
 legacy ones.

 If I just write:

 if inst.newProp:

 that will throw an exception.

 Is there a clean way to say if this property exists in this instance
 without resorting to try/except?

 -Joshua

 


--~--~-~--~~~---~--~~
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: All Read Please: Geographical Request Latency

2009-08-13 Thread Martyn

Ouch!

On Aug 13, 8:58 pm, Jarek Zgoda jarek.zg...@gmail.com wrote:
 Warsaw, Poland here. Typical ~240ms, ranging from 210ms to 740ms (!).

 On 13 Sie, 12:44, Martyn martyn.cutc...@googlemail.com wrote:



  Hi there,

  I am investigating request latency for AppEngine after experiencing
  significantly lower performance then reported in the Java status
  results.

  This appears to be due to network topology, but I thought it would be
  useful to get results from several locations worldwide.

  To that end I have created a simple version of an app I am working on,
  that provides request timings.  I would really appreciate it if people
  could take a minute, try the link out and report back on the results.

  Here is the link:http://performance.latest.pet-software.appspot.com

  many thanks in advance

  - Martyn
--~--~-~--~~~---~--~~
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] PagerQuery - generate bookmark from entity

2009-08-13 Thread Jairo Vasquez Moreno
Hi,

Im using this efficient pager:

http://appengine-cookbook.appspot.com/recipe/efficient-paging-for-any-query-and-any-model/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tylwELEgtSZWNpcGVJbmRleCI8YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZ3c1NDRU5oZEdWbmIzSjVJZ2xFWVhSaGMzUnZjbVVNDAsSBlJlY2lwZSI-YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZ3c1NDRU5oZEdWbmIzSjVJZ2xFWVhSaGMzUnZjbVVNNDIM

But I have a problem,

I need to fetch results and start from one particular object (not from
results beginning), so I need to generate the bookmark for a particular
object, I tried it but its not working when I set and ordering ... Im
generating bookmark in this way:

query = PagerQuery(Photo)
bookmark = encode_bookmark(query._get_bookmark_values(photo))
prev, photos, next = query.fetch(1, bookmark)

but when I order the query it is giving me an empty list

query = PagerQuery(Photo).order(-date)

Does anyone can help me??

-- 
Jairo Vasquez Moreno

--~--~-~--~~~---~--~~
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: All Read Please: Geographical Request Latency

2009-08-13 Thread Takashi Matsuo

Tokyo Japan: 220ms ~ 300ms

-- 
Takashi Matsuo



On Thu, Aug 13, 2009 at 7:44 PM, Martynmartyn.cutc...@googlemail.com wrote:

 Hi there,

 I am investigating request latency for AppEngine after experiencing
 significantly lower performance then reported in the Java status
 results.

 This appears to be due to network topology, but I thought it would be
 useful to get results from several locations worldwide.

 To that end I have created a simple version of an app I am working on,
 that provides request timings.  I would really appreciate it if people
 could take a minute, try the link out and report back on the results.

 Here is the link: http://performance.latest.pet-software.appspot.com

 many thanks in advance

 - Martyn

 


--~--~-~--~~~---~--~~
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] How to expand the User Class?

2009-08-13 Thread Evie

I'm trying to attach profile information to users. How is this
typically done?  Is there any way to add a reference to a profile
model from the User Class?

--~--~-~--~~~---~--~~
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] Cell phone number? Are you kidding me?

2009-08-13 Thread James Watkins

I have never registered for a GAE account, nor have I tried until
today. And yet the site tells me that either too many messages have
been sent, or my number has already been used on another account.

But don't carriers reuse cell numbers? I mean, isn't it *possible*
that my number was used by its previous owner to setup a GAE account?
Heck, I'll confirm with a credit card if they want. This is just plain
weird and frustrating. Please google, help me!

--~--~-~--~~~---~--~~
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: How to handle a file upload containing thousands of entities?

2009-08-13 Thread Stakka

Sorry for the dup posting, 1st post screening took ages.

http://groups.google.com/group/google-appengine/browse_thread/thread/b11a07e4a71566b6#
--~--~-~--~~~---~--~~
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: How to expand the User Class?

2009-08-13 Thread Evie

I should note that I'm using the python version of GAE.

On Aug 13, 1:10 pm, Evie egil...@gmail.com wrote:
 I'm trying to attach profile information to users. How is this
 typically done?  Is there any way to add a reference to a profile
 model from the User Class?
--~--~-~--~~~---~--~~
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: All Read Please: Geographical Request Latency

2009-08-13 Thread Scott

Melbourne, Australia:

low: 352ms, high 375ms, average approx 360ms
--~--~-~--~~~---~--~~
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] Noob Question

2009-08-13 Thread Jim Culver

Hi Guys,

I am new to GAE and Java and I am getting an exception which I don't
understand.  The exception is java.lang.ClassCastException:
java.security.AccessControlException cannot be cast to
javax.servlet.ServletException.  I don't get this in the error when
running from eclipse, the error only occurs when the app is deployed.

My JSP is as below, it simply reads a sitemap.xml doc and writes out
the content.


%@ page language=java %
%@ page import=org.w3c.dom.* %
%@ page import=javax.xml.parsers.DocumentBuilder %
%@ page import=javax.xml.parsers.DocumentBuilderFactory %
%
DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
DocumentBuilder db =dbf.newDocumentBuilder();
Document doc=db.parse(sitemap.xml);
NodeList nl = doc.getElementsByTagName(loc);
%
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
meta http-equiv=content-type content=text/html; charset=UTF-8
titlesitemap/title
script type=text/javascript language=javascript
src=pawplumbergwt16v2/pawplumbergwt16v2.nocache.js/script
/head

body
%

for(int i=0;inl.getLength();i++)
{
Element nameElements=(Element)nl.item(i);
String strUrl=nameElements.getChildNodes().item(0).getNodeValue();

if (strUrl.endsWith(/) == false) {
String strFile=strUrl.substring(strUrl.lastIndexOf(/) + 1,
strUrl.lastIndexOf(.));
out.println(a href=\ + strUrl + \ + strFile +/a);
}
}

%

/body
/html

FULL EXCEPTION BELOW

/sitemap.jsp
java.lang.ClassCastException: java.security.AccessControlException
cannot be cast to javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:754)
at org.apache.jsp.sitemap_jsp._jspService(sitemap_jsp.java:84)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:237)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:139)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4823)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4821)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
at com.google.net.rpc.impl.Server$2.run(Server.java:820)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:775)
at com.google.net.rpc.impl.Server.processRequest(Server.java:348)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:436)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
428)
at 

[google-appengine] Re: What is the Erratic App Behavior 18 quota?

2009-08-13 Thread Jeff S (Google)
Hi Jason,

What is the app Id where you are seeing this?

Thank you,

Jeff

On Thu, Aug 13, 2009 at 1:12 PM, Jason Smith j...@proven-corporation.comwrote:


 After deploying a new version of an app as the default about 6 hours
 ago, I see a new row in the dashboard summary:

Erratic App Behavior 18 | 2096 of 9223372036854775808 | !

 And the yellow (!) sign says This resource is currently experiencing
 a short-term quota limit

 I am not sure if it's related, but I feel like the requests/sec have
 flattened out a little bit.  Usually over 6 hours they will oscillate
 between 25 and 50 requests/sec but it looks a bit flat.

 So, what the heck is Erratic App Behavior 18?  My new version includes
 more memcache usage.
 


--~--~-~--~~~---~--~~
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: Maximum rate of e-mail recipients

2009-08-13 Thread Jeff S (Google)
Hi Evaldas,

Yes your understanding is correct. You may be able to go over 8 recipients
per minute for a short burst, but that is the sustained limit. However, if
you enable billing you should be able to send at a higher rate.

Happy coding,

Jeff

On Fri, Aug 7, 2009 at 8:38 AM, Evaldas Taroza tar...@gmail.com wrote:


 I am reading the quatas of appengine for email:
 http://code.google.com/appengine/docs/quotas.html#Mail.

 I can send 1 an email to 8 recipients per minute. Does it mean that
 when I send an email to 10 recipients at once I will get the
 OverQuotaError? Or will this email go to all recipients but at the
 speed of 8 recipients per minute?

 Evaldas

 


--~--~-~--~~~---~--~~
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: All Read Please: Geographical Request Latency

2009-08-13 Thread dom.eav

Phnom Penh, Cambodia: typical latency is 500ms. Very consistent, 487ms
~ 536ms.

On Aug 13, 5:44 pm, Martyn martyn.cutc...@googlemail.com wrote:
 Hi there,

 I am investigating request latency for AppEngine after experiencing
 significantly lower performance then reported in the Java status
 results.

 This appears to be due to network topology, but I thought it would be
 useful to get results from several locations worldwide.

 To that end I have created a simple version of an app I am working on,
 that provides request timings.  I would really appreciate it if people
 could take a minute, try the link out and report back on the results.

 Here is the link:http://performance.latest.pet-software.appspot.com

 many thanks in advance

 - Martyn
--~--~-~--~~~---~--~~
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: All Read Please: Geographical Request Latency

2009-08-13 Thread Rodrigo Moraes

São Paulo, Brazil - average 210ms

-- rodrigo

--~--~-~--~~~---~--~~
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] Major update to appengine based www.chartle.net web service!

2009-08-13 Thread Dieter Krachtus

Over at www.chartle.net we added many new features, improvements bug
fixes and feature-like bugs ;)

just to name a few:

# many GUI and usability improvements
# consistent user interaction for different visualizations
# import data from Excel/OpenOffice
# copy/paste data into your Excel/OpenOffice spreadsheet
# privacy: you can publish Chartles to your own private gallery,
public gallery, or both.
# embed once, edit later: Chartles you own have to be embedded only
once. You can later edit and re-publish already embedded Chartles
inline - making those changes immediately visible in your website.
# support for Table and all new visualization features. Complete
overhaul for the OrgChart tool.
# client runs now also on Safari and Opera (before only: Windows/
Linux/
OSX/etc., IE5,6,7,8, FF3+, Chrome)
. . .

We need better context sensitive assistance for users while creating
Chartles and tutorials, tutorials, tutorials.

Cheers,
Dieter
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---