[appengine-java] Spring AOP behaving inconsistently on Google infrastructure.

2011-11-18 Thread Marcel Overdijk
I'm using Spring AOP with

context:spring-configured /

in my applicationContext.xml to automatically inject an
ObjectifyFactory in my domain instances while doing e.g. new
Customer().

In local environment this works always without any issues so far.

However on the Google infrastructure I keep experiencing problems.
E.g. after making a new deployment it suddenly does not works anymore
(and no ObjectifyFactory is injected in the domain instances anymore).
If I then do another deployment - without changing anything - it works
again. I've experienced this a couple of times now. I even noticed
that it stopped working after a new deployment, and the following day
it started working without making a new deployment.

I always was able to workaround this, but now whatever I do I keep
getting this error, and locally it (off course) it just works.

I was wondering if other people are also experiencing this behavior
with Spring AOP?

I also feel unsure about going to production with my app...

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



[appengine-java] Re: Gql4J, gql for appengine java sdk

2011-11-18 Thread Vaclav Bartacek
Hi all,
I've been doing the same almost two years ago !
The GQL (and also extended GQL) parser is a part of DAO generator
project:
http://code.google.com/p/audao/

The documentation you can find here:
http://audao.spoledge.com/doc-gae-features.html#gqlparser
http://audao.spoledge.com/doc-gae-features.html#gqlext

Vaclav

On Nov 17, 4:22 pm, Max thebb...@gmail.com wrote:
 Hi all,

 I am actually  a bit surprised after realized that no query language is
 supported on datastore low level API directly. So I spend some time to
 migrate GQL to Java SDK and just deployed one version 
 tohttp://code.google.com/p/gql4j/

 Here is the usage

  DatastoreService? http://code.google.com/p/gql4j/w/edit/DatastoreService 
 datastore = DatastoreServiceFactory? 
 http://code.google.com/p/gql4j/w/edit/DatastoreServiceFactory.getDatastoreService();
  GqlQuery? http://code.google.com/p/gql4j/w/edit/GqlQuery gql = new 
 GqlQuery? http://code.google.com/p/gql4j/w/edit/GqlQuery(SELECT * WHERE 
 ANCESTOR IS KEY(:1, :2) LIMIT 100 OFFSET 1000, Person, Amy);
  IterableEntity result = 
 datastore.prepare(gql.query()).asIterable(gql.fetchOptions());

 Simply download jar to your project and try it! No maven repo is setup for
 this one but there is a workaround documented on project homepage.

 Any feedback is welcome!

 Cheers,
 Max

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



[appengine-java] Re: Dealing with DatastoreTimeoutException and DatastoreFailureException in a task queue

2011-11-18 Thread Edward Hartwell Goose
Turns out I've figured out the answer to my own question.

Use the little known max-concurrent-requests feature to force a 
limitation on how many requests can run at one time. This ensures that any 
requests that take a little too long are given the opportunity to finish 
before before the next job is grabbed off the task queue.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/BcRTXDYyIPAJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Apache POI

2011-11-18 Thread will
Well, the answer is : Yes, it works.

That brings another question now :

Since GAE doesn't allow us to write to the filesystem, the easiest
solution would be to send the result to the servlet.

How could I achieve that ? (as you might obviously notice, I'm a
beginner in java, started this month :) )

I guess another valid (but not optimized) solution would be to save
the result inside the blobstore then using the .serve() method to
stream the file...

Thanks

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



[appengine-java] Creating a new entity kind using the Datastore Viewer

2011-11-18 Thread Marcel Overdijk
Is it possible to create a new entity using the Datastore Viewer for a
kind that does not exists yet?

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



[appengine-java] Re: Creating a new entity kind using the Datastore Viewer

2011-11-18 Thread Max
no, at the moment you can't

and you can't add new property to existing entity

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/w8cNmjLCWZ8J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Can I upload an image to Blobstore using the admin console?

2011-11-18 Thread Max
no, at the moment you can't 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/s_9aLOndvM4J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Serializing crypto classes

2011-11-18 Thread Thales Cloud
I'm now storing the relevant data as byte[] and it appears to be working 
fine.

Thanks again for pointing me in the right direction!

Pete.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/suSwVb4ws40J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: StackOverflowError when using remote API

2011-11-18 Thread Peter Turovskij
It seems we are the only ones facing this issue...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/BDMR1e6RhzEJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Can I upload an image to Blobstore using the admin console?

2011-11-18 Thread Marcel Overdijk
OK thanks. I created feature request 
http://code.google.com/p/googleappengine/issues/detail?id=6361
Ability to upload new blobs using the admin console and display the
(ImageService) serving url.

Please star this issue if you are interested.

On Nov 18, 2:43 pm, Max thebb...@gmail.com wrote:
 no, at the moment you can't

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



[appengine-java] Re: Creating a new entity kind using the Datastore Viewer

2011-11-18 Thread Marcel Overdijk
OK thanks. I created feature request
http://code.google.com/p/googleappengine/issues/detail?id=6362Ability
to create new entity 'kinds' in the Datastore Viewer. At the moment
only entities can be created in the Datastore Viewer for existing
entity kinds.
Also the ability to add not yet existing properties to existing
entities.

Please star this issue if you are interested.
On Nov 18, 2:24 pm, Max thebb...@gmail.com wrote:
 no, at the moment you can't

 and you can't add new property to existing entity

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



Re: [appengine-java] Re: Reading a Google Doc from google app engine code

2011-11-18 Thread Amit Pandey
I did it before and I used *HWPFDocument. *However it can be read directly
(without third party lib).

Try other ways to read the string from inputStream (other than CharStreams
 api). Also try setting different possible character encoding.

Let us know if this work.

Thanks,
Amit

On Fri, Nov 18, 2011 at 8:46 AM, Vik vik@gmail.com wrote:

 hi

 plz update on this?

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Wed, Nov 16, 2011 at 7:03 PM, Vik vik@gmail.com wrote:

 No I did not used that.  Do i need that one?  I thought no. Please
 confirm.

 And it is strange if google api gives me access to get handle to the doc
 but need third party libraries to read it,


 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Mon, Nov 14, 2011 at 1:10 PM, Amit Pandey amit.s...@gmail.com wrote:

 Have you used *org.apache.poi.hwpf.HWPFDocument* API ?

 Thanks,
 Amit

 On Sat, Nov 12, 2011 at 7:04 PM, Vik vik@gmail.com wrote:

 Hie Amit

 Thanks however when i read the input stream using:
 String content = CharStreams.toString(new InputStreamReader(inStream));

 It prints all boxed characters rather plain english text. Please advise

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Fri, Nov 11, 2011 at 5:46 PM, Amit Pandey amit.s...@gmail.comwrote:

 Mistakenly send wrong code. Here is correct code.

 On Fri, Nov 11, 2011 at 5:35 PM, Amit Pandey amit.s...@gmail.comwrote:

 Hi ViK,

 I did the same before and I use *org.apache.poi.hwpf.HWPFDocument*API. 
 Following code snippet may be useful for you. Let me know if this
 works.

 for (DocumentListEntry entry : resultFeed.getEntries()) {

 String docId = entry.getDocId();
 String docType = entry.getType();
 URL exportUrl =
   new URL(https://docs.google.com/feeds/download/; +
 docType
   + s/Export?docID= + docId + exportFormat=doc);
 MediaContent mc = new MediaContent();
 mc.setUri(exportUrl.toString());
 MediaSource ms = client.getMedia(mc);
 InputStream inStream = ms.getInputStream();
 // Now read the content from input stream.
 break;

 }

 Thanks,
 Amit

 On Thu, Nov 10, 2011 at 4:09 PM, Vik vik@gmail.com wrote:

 Hie

 Thanks I went through it and could at least get the handle to the
 google text doc i needed. I am now stuck at how to read the contents.
 My code looks like:


  GoogleOAuthParameters oauthParameters = new
 GoogleOAuthParameters();
 oauthParameters.setOAuthConsumerKey(Constants.CONSUMER_KEY);
  oauthParameters.setOAuthConsumerSecret(Constants.CONSUMER_SECRET);

 oauthParameters.setOAuthToken(Constants.ACCESS_TOKEN);
  oauthParameters.setOAuthTokenSecret(Constants.ACCESS_TOKEN_SECRET);

 DocsService client = new DocsService(sakshum-YourAppName-v1);
  client.setOAuthCredentials(oauthParameters, new
 OAuthHmacSha1Signer());
 URL feedUrl = new URL(
 https://docs.google.com/feeds/default/private/full/;);
  DocumentQuery dquery = new DocumentQuery(feedUrl);
 dquery.setTitleQuery(blood_donor_verification_template_dev);
  dquery.setTitleExact(true);
 dquery.setMaxResults(10);
 DocumentListFeed resultFeed = client.getFeed(dquery,
 DocumentListFeed.class);
  System.out.println(feed size: + resultFeed.getEntries().size());
 String emailBody = ;
  for (DocumentListEntry entry : resultFeed.getEntries()) {
  System.out.println(entry.getPlainTextContent());
  emailBody = entry.getPlainTextContent();
 }

 Plz note that entry.getPlainTextContent() does not work and throws
 object not TextContent type exception

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Sun, Nov 6, 2011 at 10:24 PM, Vik vik@gmail.com wrote:

 Thanks for replying

 actually i just googled and could not really find matching to my
 needs. thanks for the pointer this should be helpful.

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Fri, Nov 4, 2011 at 12:01 AM, Ikai Lan (Google) 
 ika...@google.com wrote:

 Have you read this? What are your thoughts? What have you tried?

 http://code.google.com/apis/documents/

 Vik, your posts would be a lot more useful if you:

 1. List what you have tried
 2. Describe what didn't work
 3. Describe what it is you are trying to do

 I like the fact that you keep emails short, but I suspect other
 people on this list have tuned you out because you're just not 
 providing
 enough information when you ask for help and it's too much detective 
 work
 for people who would actually help out otherwise.

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 plus.ikailan.com | twitter.com/ikai



 On Thu, Nov 3, 2011 at 10:42 AM, Vik vik@gmail.com wrote:

  someone please help on this.

 Thankx and Regards

 Vik
 Founder
 http://www.sakshum.org
 http://blog.sakshum.org


 On Mon, Oct 31, 2011 at 7:11 PM, Vik vik@gmail.com wrote:

 Hie

 Can someone please guide on how to read a google doc from my gae
 

[appengine-java] Dashboard datastore problems?

2011-11-18 Thread Guillaume Laforge
Hi all,

I'm wondering if I'm the only one to see this but...

When I go to the dashboard, and click on datastore viewer, indexes or
statistics, I get an error message:

Server Error

A server error has occurred.

Return to Applications screen » https://appengine.google.com/

-- 
Guillaume Laforge
Groovy Project Manager
SpringSource, a division of VMware

Blog: http://glaforge.appspot.com/
Twitter: @glaforge http://twitter.com/glaforge
Google+: http://gplus.to/glaforge

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



Re: [appengine-java] Dashboard datastore problems?

2011-11-18 Thread Bruno Fuster
It's working fine here.


On Fri, Nov 18, 2011 at 12:45 PM, Guillaume Laforge glafo...@gmail.comwrote:

 Hi all,

 I'm wondering if I'm the only one to see this but...

 When I go to the dashboard, and click on datastore viewer, indexes or
 statistics, I get an error message:

 Server Error

 A server error has occurred.

 Return to Applications screen » https://appengine.google.com/

 --
 Guillaume Laforge
 Groovy Project Manager
 SpringSource, a division of VMware

 Blog: http://glaforge.appspot.com/
 Twitter: @glaforge http://twitter.com/glaforge
 Google+: http://gplus.to/glaforge

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




-- 
Bruno Fuster

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



[appengine-java] Re: Creating a new entity kind using the Datastore Viewer

2011-11-18 Thread Max
Did you search similar tickets before create one? I believe this has been 
requested for many times.

You link doesn't work :)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/ODtGwt6q9VgJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Dashboard datastore problems?

2011-11-18 Thread Guillaume Laforge
Thanks Bruno for your answer.

It actually seems to be specific to one of my apps, only (appid:
groovyconsole)

Other apps in the dashboard work and let me see the datastore related
information.

Hopefully a Google engineer will notice :-)

Guillaume

On Fri, Nov 18, 2011 at 15:57, Bruno Fuster brunofus...@gmail.com wrote:

 It's working fine here.


 On Fri, Nov 18, 2011 at 12:45 PM, Guillaume Laforge glafo...@gmail.comwrote:

 Hi all,

 I'm wondering if I'm the only one to see this but...

 When I go to the dashboard, and click on datastore viewer, indexes or
 statistics, I get an error message:

 Server Error

 A server error has occurred.

 Return to Applications screen » https://appengine.google.com/

 --
 Guillaume Laforge
 Groovy Project Manager
 SpringSource, a division of VMware

 Blog: http://glaforge.appspot.com/
 Twitter: @glaforge http://twitter.com/glaforge
 Google+: http://gplus.to/glaforge

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




 --
 Bruno Fuster

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




-- 
Guillaume Laforge
Groovy Project Manager
SpringSource, a division of VMware

Blog: http://glaforge.appspot.com/
Twitter: @glaforge http://twitter.com/glaforge
Google+: http://gplus.to/glaforge

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



[appengine-java] Re: Creating a new entity kind using the Datastore Viewer

2011-11-18 Thread Marcel Overdijk
Yes something went wrong.
This is the correct link: 
http://code.google.com/p/googleappengine/issues/detail?id=6362



On Nov 18, 4:23 pm, Max thebb...@gmail.com wrote:
 Did you search similar tickets before create one? I believe this has been
 requested for many times.

 You link doesn't work :)

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



[appengine-java] prefetchSize vs chunkSize

2011-11-18 Thread Jeff Schnitzer
Would someone explain the exact differences between prefetchSize and
chunkSize and how these interact?  The documentation doesn't really help.

I presume chunkSize is the number of items that get fetched on each RPC to
the datastore backend, equivalent to a fetch() call in python-land.  Is
prefetchSize effectively the same thing as chunkSize but only affects the
first chunk?

Why are these separate parameters?  Under what circumstances would I want
them to be different?

Thanks,
Jeff

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



[google-appengine] Large number of DeadlineExceededError messages today

2011-11-18 Thread Sarang
I am suddenly seeing a jump in DeadlineExceededError messags. Any idea what 
is going wrong? There was no change from my end as far as I can tell.

my app: mycontactidbeta

Anyone else seeing this behavior?

Sarang


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/qA3B4tKuByIJ.
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] Django Library

2011-11-18 Thread Max
Hi,
I got this error in my logs:

You are using the default Django version (0.96). The default Django version 
will change in an App Engine release in the near future. Please call 
use_library() to explicitly select a Django version. For more information see 
http://code.google.com/appengine/docs/python/tools/libraries.html#Django

My code is:
from django.utils import simplejson as json

In the documents there is written to change it like this:

import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

from google.appengine.dist import use_library
use_library('django', '1.1')



But I'm importing just a specific library.
How do I have to set it? I can't understand.

Thanks

Max


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/FTxXueui_LoJ.
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: Large number of DeadlineExceededError messages today

2011-11-18 Thread Sarang
Image supporting my claim:

http://gyazo.com/dd61191f48d22ac6e43d563aeb105674

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/NVikM0dGmGIJ.
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] Please Help! Backend restarts every few hours

2011-11-18 Thread Andrius A
I am running backend started by the task which starts a loop within a
backend to keep it running.
I am constantly seeing backend restarting recently, no exceptions visible
on the logs apart from these errors:



   1.  2011-11-18 09:36:38.480 /app/executor/master/ 500 3654275ms 0kb
   instance=0 AppEngine-Google; (+http://code.google.com/appengine)


   0.1.0.2 - - [18/Nov/2011:01:36:38 -0800] POST
/app/executor/master/ HTTP/1.1 500 0
http://0.master-executor.xxx.appspot.com/_ah/start;
AppEngine-Google; (+http://code.google.com/appengine)
master-executor.xxx.appspot.com ms=3654275 cpu_ms=5810488
api_cpu_ms=3602612 cpm_usd=100.072612 queue_name=master-executor-queue
task_name=master-executor-job-1321599921 exit_code=109 instance=0

   2.  E2011-11-18 09:36:37.596


   Connection to client lost.


   What does exit_code=109 means?


   Thanks for your help!

-- 
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: Django Library

2011-11-18 Thread Niklas Rosencrantz
I recommend switching to python 2.7 that abstracts away selecting the 
django version.
There is a blog post how to do it at blog.notdot.net
If you can't or don't want to upgrade to python 2.7 now you can add a line 
to your appengine_config.py to select which version django imports. 

I used django for filters and templates. Now I swtiched to Jinja2 but I 
still need django's translation capabilities so I didn't get out of django 
completely since I use django.util.translations however the recommendation 
is likely to not import django at all since it seems that GAE is moving 
away from django and onto selecting your own stack eg. choose a template 
engine and choose a db framework and choose a forms framework and 
it can work very well no django imports.

I hope some of this info helps.
Regards,
Niklas

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/2qKVzgTPp2AJ.
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.



Re: [google-appengine] Re: Django Library

2011-11-18 Thread Massimiliano
I'm not so skilled to do it. I'm just using appengine like an hobby. I just
want to use the code like I have. Which line I have to add and where?

2011/11/18 Niklas Rosencrantz nikla...@gmail.com

 I recommend switching to python 2.7 that abstracts away selecting the
 django version.
 There is a blog post how to do it at blog.notdot.net
 If you can't or don't want to upgrade to python 2.7 now you can add a line
 to your appengine_config.py to select which version django imports.

 I used django for filters and templates. Now I swtiched to Jinja2 but I
 still need django's translation capabilities so I didn't get out of django
 completely since I use django.util.translations however the recommendation
 is likely to not import django at all since it seems that GAE is moving
 away from django and onto selecting your own stack eg. choose a template
 engine and choose a db framework and choose a forms framework and
 it can work very well no django imports.

 I hope some of this info helps.
 Regards,
 Niklas

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/2qKVzgTPp2AJ.

 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.




-- 
How to contact me: protocol.by/Massimiliano
Sito: www.themaxbuddies.com http://goo.gl/WoxEN
Twitter: www.twitter.com/grostein
Skype: massimiliano.pietroni
Tumblr: http://grostein.tumblr.com/
Msn: massimiliano.pietr...@hotmail.it
Ti serve dropbox?https://www.dropbox.com/referrals/NTI4MzgyMjM5?src=ab_global8

-- 
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.



Re: [google-appengine] Re: Django Library

2011-11-18 Thread Niklas Rosencrantz
You can keep a file called appengine_config.py in your project directory
with this line:

webapp_django_version = '1.2'

and I think it will solve your problem. Or just wait and keep your code
compatible with current GAE SDK and you will solve the problem since sooner
or later 0.96 will be deprecated since it is old and it is over.

Regards,
Niklas

On Fri, Nov 18, 2011 at 11:59 AM, Massimiliano 
massimiliano.pietr...@gmail.com wrote:

 I'm not so skilled to do it. I'm just using appengine like an hobby. I
 just want to use the code like I have. Which line I have to add and where?

 2011/11/18 Niklas Rosencrantz nikla...@gmail.com

 I recommend switching to python 2.7 that abstracts away selecting the
 django version.
 There is a blog post how to do it at blog.notdot.net
 If you can't or don't want to upgrade to python 2.7 now you can add a
 line to your appengine_config.py to select which version django imports.

 I used django for filters and templates. Now I swtiched to Jinja2 but I
 still need django's translation capabilities so I didn't get out of django
 completely since I use django.util.translations however the recommendation
 is likely to not import django at all since it seems that GAE is moving
 away from django and onto selecting your own stack eg. choose a template
 engine and choose a db framework and choose a forms framework and
 it can work very well no django imports.

 I hope some of this info helps.
 Regards,
 Niklas

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/2qKVzgTPp2AJ.

 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.




 --
 How to contact me: protocol.by/Massimiliano
 Sito: www.themaxbuddies.com http://goo.gl/WoxEN
 Twitter: www.twitter.com/grostein
 Skype: massimiliano.pietroni
 Tumblr: http://grostein.tumblr.com/
 Msn: massimiliano.pietr...@hotmail.it
 Ti serve 
 dropbox?https://www.dropbox.com/referrals/NTI4MzgyMjM5?src=ab_global8

  --
 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.


-- 
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.



Re: [google-appengine] Re: Django Library

2011-11-18 Thread Massimiliano
Great, I'll do it! Thanks

2011/11/18 Niklas Rosencrantz nikla...@gmail.com

 You can keep a file called appengine_config.py in your project directory
 with this line:

 webapp_django_version = '1.2'

 and I think it will solve your problem. Or just wait and keep your code
 compatible with current GAE SDK and you will solve the problem since sooner
 or later 0.96 will be deprecated since it is old and it is over.

 Regards,
 Niklas


 On Fri, Nov 18, 2011 at 11:59 AM, Massimiliano 
 massimiliano.pietr...@gmail.com wrote:

 I'm not so skilled to do it. I'm just using appengine like an hobby. I
 just want to use the code like I have. Which line I have to add and where?

 2011/11/18 Niklas Rosencrantz nikla...@gmail.com

 I recommend switching to python 2.7 that abstracts away selecting the
 django version.
 There is a blog post how to do it at blog.notdot.net
 If you can't or don't want to upgrade to python 2.7 now you can add a
 line to your appengine_config.py to select which version django imports.

 I used django for filters and templates. Now I swtiched to Jinja2 but I
 still need django's translation capabilities so I didn't get out of django
 completely since I use django.util.translations however the recommendation
 is likely to not import django at all since it seems that GAE is moving
 away from django and onto selecting your own stack eg. choose a template
 engine and choose a db framework and choose a forms framework and
 it can work very well no django imports.

 I hope some of this info helps.
 Regards,
 Niklas

  --
 You received this message because you are subscribed to the Google
 Groups Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/2qKVzgTPp2AJ.

 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.




 --
 How to contact me: protocol.by/Massimiliano
 Sito: www.themaxbuddies.com http://goo.gl/WoxEN
 Twitter: www.twitter.com/grostein
 Skype: massimiliano.pietroni
 Tumblr: http://grostein.tumblr.com/
 Msn: massimiliano.pietr...@hotmail.it
 Ti serve 
 dropbox?https://www.dropbox.com/referrals/NTI4MzgyMjM5?src=ab_global8

  --
 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.


  --
 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.




-- 
How to contact me: protocol.by/Massimiliano
Sito: www.themaxbuddies.com http://goo.gl/WoxEN
Twitter: www.twitter.com/grostein
Skype: massimiliano.pietroni
Tumblr: http://grostein.tumblr.com/
Msn: massimiliano.pietr...@hotmail.it
Ti serve dropbox?https://www.dropbox.com/referrals/NTI4MzgyMjM5?src=ab_global8

-- 
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: automated deployment

2011-11-18 Thread Diego Fejgelis
Never used Jenkins, but you need to specify the --passin parameter to the 
appcfg.

Example of my alias:
alias gae_upload='appcfg.py --passin -e m...@mydomain.com 
update ${PROJ_FOLDER}  ${PASS_FILE}'

The con is that you need to have your password on a plain file. :(

Diego

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/l8A1qfPnAx0J.
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.



Re: [google-appengine] Please Help! Backend restarts every few hours

2011-11-18 Thread Eduardo Perrino
Hi,

Safely you've exceed the backend's memory.


2011/11/18 Andrius A andriu...@gmail.com

 I am running backend started by the task which starts a loop within a
 backend to keep it running.
 I am constantly seeing backend restarting recently, no exceptions visible
 on the logs apart from these errors:



1.  2011-11-18 09:36:38.480 /app/executor/master/ 500 3654275ms 0kb
instance=0 AppEngine-Google; (+http://code.google.com/appengine)

0.1.0.2 - - [18/Nov/2011:01:36:38 -0800] POST /app/executor/master/ 
 HTTP/1.1 500 0 http://0.master-executor.xxx.appspot.com/_ah/start; 
 AppEngine-Google; (+http://code.google.com/appengine) 
 master-executor.xxx.appspot.com ms=3654275 cpu_ms=5810488 
 api_cpu_ms=3602612 cpm_usd=100.072612 queue_name=master-executor-queue 
 task_name=master-executor-job-1321599921 exit_code=109 instance=0

2.  E2011-11-18 09:36:37.596


Connection to client lost.


What does exit_code=109 means?


Thanks for your help!


  --
 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.


-- 
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.



Re: [google-appengine] Re: Large difference between datastore quota detail and appstat.

2011-11-18 Thread djidjadji
Does ndb support lists in get_by_id()? This could then be executed in parallel.
You should then check with appstats on the GAE hardware if it works in parallel.

db_keys = EMail.query(EMail.Status != 'Complete').fetch(keys_only=True)
res = EMail.get_by_id( [k.id() for k in db_keys] )
list comprehensions are faster then append() calls

-- 
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] Mapnik TileStache Hosting

2011-11-18 Thread Raj
Hey,

Is it possible to host Mapnik(http://mapnik.org/   Mapnik is a Free
Toolkit for developing mapping applications) and
TileStache(http://tilestache.org/  TileStache is a Python-based server
application that can serve up map tiles based on rendered geographic
data) in Google app engine.

If Yes, should I choose the Python Environment?

-Thanks
Raj

-- 
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.



Re: [google-appengine] Please Help! Backend restarts every few hours

2011-11-18 Thread Andrius A
Are there any ways to recycle memory while running? Or does it mean I need
to run one with more memory?
On Nov 18, 2011 1:36 PM, Eduardo Perrino eduardo.perr...@gmail.com
wrote:

 Hi,

 Safely you've exceed the backend's memory.


 2011/11/18 Andrius A andriu...@gmail.com

 I am running backend started by the task which starts a loop within a
 backend to keep it running.
 I am constantly seeing backend restarting recently, no exceptions visible
 on the logs apart from these errors:



1.  2011-11-18 09:36:38.480 /app/executor/master/ 500 3654275ms 0kb
instance=0 AppEngine-Google; (+http://code.google.com/appengine)

0.1.0.2 - - [18/Nov/2011:01:36:38 -0800] POST /app/executor/master/ 
 HTTP/1.1 500 0 http://0.master-executor.xxx.appspot.com/_ah/start; 
 AppEngine-Google; (+http://code.google.com/appengine) 
 master-executor.xxx.appspot.com ms=3654275 cpu_ms=5810488 
 api_cpu_ms=3602612 cpm_usd=100.072612 queue_name=master-executor-queue 
 task_name=master-executor-job-1321599921 exit_code=109 instance=0

2.  E2011-11-18 09:36:37.596



Connection to client lost.




What does exit_code=109 means?




Thanks for your help!


  --
 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.


  --
 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.


-- 
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.



Re: [google-appengine] Please Help! Backend restarts every few hours

2011-11-18 Thread Rishi Arora
One reason might be that you don't really need all that memory, but because
you're holding references to not-needed variables, the garbage collector
can't reclaim it.  An easy way to avoid this is to break up the task
executing on the backend into multiple smaller tasks that you manage
through the use of task queues.  If you're convinced you need all that
memory, you can consider changing your backend to a higher class (B1 has
only 128MB memory, but B2, B3.. etc, allow you to use more at a higher
cost).  You could temporarily use a higher class while you figure out how
to lower your memory foot-print, either through code changes or through
breaking up tasks.

On Fri, Nov 18, 2011 at 8:42 AM, Andrius A andriu...@gmail.com wrote:

 Are there any ways to recycle memory while running? Or does it mean I need
 to run one with more memory?
 On Nov 18, 2011 1:36 PM, Eduardo Perrino eduardo.perr...@gmail.com
 wrote:

 Hi,

 Safely you've exceed the backend's memory.


 2011/11/18 Andrius A andriu...@gmail.com

 I am running backend started by the task which starts a loop within a
 backend to keep it running.
 I am constantly seeing backend restarting recently, no exceptions
 visible on the logs apart from these errors:



1.  2011-11-18 09:36:38.480 /app/executor/master/ 500 3654275ms 0kb
instance=0 AppEngine-Google; (+http://code.google.com/appengine)

0.1.0.2 - - [18/Nov/2011:01:36:38 -0800] POST /app/executor/master/ 
 HTTP/1.1 500 0 http://0.master-executor.xxx.appspot.com/_ah/start; 
 AppEngine-Google; (+http://code.google.com/appengine) 
 master-executor.xxx.appspot.com ms=3654275 cpu_ms=5810488 
 api_cpu_ms=3602612 cpm_usd=100.072612 queue_name=master-executor-queue 
 task_name=master-executor-job-1321599921 exit_code=109 instance=0

2.  E2011-11-18 09:36:37.596

Connection to client lost.


What does exit_code=109 means?


Thanks for your help!


  --
 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.


  --
 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.

  --
 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.


-- 
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: automated deployment

2011-11-18 Thread Ron
it is working for us again with no changes

and when it was happening, we did checks, and it was only happening
from that deployment machine, so it's IP was blacklisted for some
reason

but no one has said anything about automatic deployments from a single
machine is not allowed


On Nov 18, 12:37 pm, Diego Fejgelis diego...@gmail.com wrote:
 Never used Jenkins, but you need to specify the --passin parameter to the
 appcfg.

 Example of my alias:
 alias gae_upload='appcfg.py --passin -e m...@mydomain.com
 update ${PROJ_FOLDER}  ${PASS_FILE}'

 The con is that you need to have your password on a plain file. :(

 Diego

-- 
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.



Re: [google-appengine] Please Help! Backend restarts every few hours

2011-11-18 Thread Andrius A
In GAE console I see just 35-36Mbytes on average used by that backend. Does
exit_code=109 really means that it exceeded memory limit?
Where can I find those codes listed with meanings?

Thank you so far!

On 18 November 2011 14:50, Rishi Arora rishi.ar...@ship-rack.com wrote:

 One reason might be that you don't really need all that memory, but
 because you're holding references to not-needed variables, the garbage
 collector can't reclaim it.  An easy way to avoid this is to break up the
 task executing on the backend into multiple smaller tasks that you manage
 through the use of task queues.  If you're convinced you need all that
 memory, you can consider changing your backend to a higher class (B1 has
 only 128MB memory, but B2, B3.. etc, allow you to use more at a higher
 cost).  You could temporarily use a higher class while you figure out how
 to lower your memory foot-print, either through code changes or through
 breaking up tasks.


 On Fri, Nov 18, 2011 at 8:42 AM, Andrius A andriu...@gmail.com wrote:

 Are there any ways to recycle memory while running? Or does it mean I
 need to run one with more memory?
 On Nov 18, 2011 1:36 PM, Eduardo Perrino eduardo.perr...@gmail.com
 wrote:

 Hi,

 Safely you've exceed the backend's memory.


 2011/11/18 Andrius A andriu...@gmail.com

 I am running backend started by the task which starts a loop within a
 backend to keep it running.
 I am constantly seeing backend restarting recently, no exceptions
 visible on the logs apart from these errors:



1.  2011-11-18 09:36:38.480 /app/executor/master/ 500 3654275ms 0kb
instance=0 AppEngine-Google; (+http://code.google.com/appengine)

0.1.0.2 - - [18/Nov/2011:01:36:38 -0800] POST /app/executor/master/ 
 HTTP/1.1 500 0 http://0.master-executor.xxx.appspot.com/_ah/start; 
 AppEngine-Google; (+http://code.google.com/appengine) 
 master-executor.xxx.appspot.com ms=3654275 cpu_ms=5810488 
 api_cpu_ms=3602612 cpm_usd=100.072612 queue_name=master-executor-queue 
 task_name=master-executor-job-1321599921 exit_code=109 instance=0

2.  E2011-11-18 09:36:37.596


Connection to client lost.


What does exit_code=109 means?


Thanks for your help!


  --
 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.


  --
 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.

  --
 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.


  --
 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.


-- 
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: automated deployment

2011-11-18 Thread Fábio Uechi
We've been doing automated deployments for months now without problems.
We use an expect script for that.
I posted about it here:

http://fabiouechi.blogspot.com/2011/10/automating-gaes-application-deployment.html

Might come in handy

cheers
Fábio

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/ZLxNshAKTF0J.
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.



Re: [google-appengine] Google App Engine's Team Dishonesty

2011-11-18 Thread Robert Kluin
I've seen at least two or three *major* disruptions on high-replication 
apps since GAE went out of beta.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/TfkA4QPhYa0J.
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: Ancestor queries / indexes

2011-11-18 Thread someone1
From my understanding you will need to use the second version of the
query for strongly consistent look ups (or you can query by building
the key, but this is only useful when you need to get a specific
entity). Building a query such as the first one will NOT result in
strong consistency using HR.

As for the custom index question, I've no experience on this but from
what I can gather you can try:
db.Query().ancestor(org_key).filter('position', manager).fetch(1000)
The caveat with this kind of query is that if org_key is the parent
or the parent of the parent of any entity, they will be returned using
this query (assuming the entities have a position attribute equal to
manager). If your data structure won't fall into this caveat, you
can safely perform this query without the use of additional custom
indexes. Additionally, you can prefix all attributes in a specific
model with a unique identifier for that Model (such as its name:
employee_position).

However, from what I read on the SDK docs, I wouldn't expect the
second query to require a custom index, but again, I cannot speak from
experience.

I hope this helps!

On Nov 17, 12:35 pm, johnP j...@thinkwave.com wrote:
 Second try...  Wondering if anyone has an answer to these questions.
 Thanks!

 On Nov 14, 8:14 am, johnP j...@thinkwave.com wrote:







  My data currently on MS is organized into entities.
    - For example, let's say that each Organization is it's own entity
  group.

  Most of my queries are within an entity/organization.  An example of a
  typical query is:
   - Employee.all().filter('organization =', org).filter('position =',
  manager).fetch(1000)

  This same query can also be done using an ancestor query:
   - Employee.all().ancestor(org_key).filter('position =',
  manager).fetch(1000)

  The first version of the query does not require a custom index, but
  the second version does.

  My questions:
  1.  Will moving from the first version to the the second version of
  the query require adding custom indexes? Or am I missing something?
  2.  Clarification on Strong Consistency in HR:  Is it necessary to use
  the ancestor() operator, or is simply querying within an entity group
  strongly consistent?  My assumption has been that for queries that
  must be strongly consistent, it will be necessary to migrate from the
  first format to the second format (increasing the number of custom
  indexes I need to carry).  Is this assumption 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: Google App Engine's Team Dishonesty

2011-11-18 Thread Renzo Nuccitelli
 This input about System status is True. I have seen the system status
indicating problems in some days and some days later just erase that
the problem ocurred.

On 18 nov, 16:25, Robert Kluin robert.kl...@gmail.com wrote:
 I've seen at least two or three *major* disruptions on high-replication
 apps since GAE went out of beta.

-- 
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's Team Dishonesty

2011-11-18 Thread Olivier
+1 for a more honest and consistent system status

as for the issues, since we migrate to HRD, everything has run quite
smoothly for us which is nice.
Before that, it was really, really bad on MS.

-- 
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.



Re: [google-appengine] Re: Google App Engine's Team Dishonesty

2011-11-18 Thread Andrius A
*+1*
*
*
*Can somebody from Google find the respect and comment here?*
*
*
On 18 November 2011 20:00, Olivier o.mic...@gmail.com wrote:

 +1 for a more honest and consistent system status

 as for the issues, since we migrate to HRD, everything has run quite
 smoothly for us which is nice.
 Before that, it was really, really bad on MS.

 --
 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.



-- 
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's Team Dishonesty

2011-11-18 Thread Maximillian Dornseif
On 17 Nov., 15:24, trilok amit.y...@gmail.com wrote:
 Google app engine hello,
 And now for the cherry on the top, and the reason I used the word
 'dishonesty' - You remove any note of the disruption from System
 Status.

I also find the Status Page extremely frustrating. The common
deployment issues are now shown at all. Issues just disappear etc.

Frustrating and unprofessional.

--md

-- 
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: Django Library

2011-11-18 Thread Bryce Cutt
A description of the steps (with examples) can be found in the answers
here:
http://stackoverflow.com/q/4994913/98138

As Niklas mentioned things will be a lot easier with the new Python
runtime but for now the easy fix is at the link I provided.

Some things changed between Django .96 and 1.2 and you will need to
retest all your Django code, especially your templates. The one thing
I ran into (that was unexpected but easy to fix) is that Django 1.2
escapes all template variables by default so if your variable has 
in it's value it will be auto-escaped to amp; and so will all the
other standard HTML special characters. This can cause unexpected
results, especially if you are already escaping things yourself. If
you find this is an issue for a particular variable you can use the
safe Django filter (https://docs.djangoproject.com/en/1.2/ref/
templates/builtins/#safe) to indicate to Django that it should not
escape that variable's value.

Good luck.

- Bryce


On Nov 18, 1:13 am, Max massimiliano.pietr...@gmail.com wrote:
 Hi,
 I got this error in my logs:

 You are using the default Django version (0.96). The default Django version 
 will change in an App Engine release in the near future. Please call 
 use_library() to explicitly select a Django version. For more information 
 seehttp://code.google.com/appengine/docs/python/tools/libraries.html#Django

 My code is:
 from django.utils import simplejson as json

 In the documents there is written to change it like this:

 import os
 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

 from google.appengine.dist import use_library
 use_library('django', '1.1')

 But I'm importing just a specific library.
 How do I have to set it? I can't understand.

 Thanks

 Max

-- 
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] Datastore Write Operations is 16x more of other operations

2011-11-18 Thread Tom Fishman
Hi,

Our data-store operation statistics is strange, writing operation is 16x 
more than other operations ( Read and small ).

I checked with appstat, it is usually 1:1, at most 2:1. I don't know where 
this 16:1 come from?

What's the best way to investigate?

-Tom

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/g5rxROLaktAJ.
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: Datastore Write Operations is 16x more of other operations

2011-11-18 Thread Simon Knott
How many properties do you have indexed in your entities, and how many 
custom indexes do you have?

Alfred gives a good example of how writes are calculated for new and 
updated entities here 
- https://groups.google.com/d/msg/google-appengine/mjnSqQWOfqU/cgPVeHbrR8oJ

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/GZjRc2EANUoJ.
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.



RE: [google-appengine] Redirect Dead Apps?

2011-11-18 Thread Brandon Wirtz
The Guys at Google offered to Alias these for me, but I instead built an app
that does 301's   to a new URL.  I'll test it for a while before I make the
source public, but if you are in need of this app shoot me a note and I'll
share it.  After it has baked for a week, and I have done some calculations
on how many redirects you can serve with a free app.  

 

Aliasing is nice and all, but I wanted to be able to turn things off and on
when I needed or to bring back an App Name if I needed later.  If I had
built my apps correctly a long while ago this wouldn't have been an issue,
but I wasn't good about making sure that the Appspot.com url didn't appear
in search.

 

 

 

From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of Brandon Wirtz
Sent: Wednesday, November 16, 2011 1:41 PM
To: google-appengine@googlegroups.com
Subject: [google-appengine] Redirect Dead Apps?

 

Upgrades to the way some of my apps works have allowed me to do multi-tenant
better than I used to, and so I am looking to consolidate Apps.   I can do
this with 301's but that requires that I leave the apps running/enabled.

 

I guess what I'm really asking is.. Should I just put up an app that 301's
all requests to the new app.  Or is there a way Google would prefer I end
of life and forward 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.

-- 
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's Team Dishonesty

2011-11-18 Thread WallyDD
I have always wondered the same thing. One minute there is an issue, a
few days later it never happened.
Google is far from alone with such issues which is why there are
websites/services that monitor cloud status.

It may be a little unfair calling the app engine team dishonest.
Trying to change something in a large organization can be a very
unrewarding experience.

On Nov 17, 9:24 am, trilok amit.y...@gmail.com wrote:
 Google app engine hello,

 Let me first specify that I am a paying app engine user for about 1.5
 years. We, at my company, have developed an online restaurant takeout/
 delivery ordering service running completely on the appengine. We
 currently serve over 50 restaurants in my home country, and are now
 expanding abroad with restaurants in Canada, Hungary, Belgium, UK, and
 more.

 Ever since the appengine's release from production a week ago, there
 has been 3 (!!!) major disruptions - On 7th for 45 minutes, yesterday
 for 30 minutes, and right now. I understand that failures occur, but
 specifying a 99.95% and being so far from it is to me a major
 failure on the part of Google.

 To make matters worse, we, AppEngine's paying users, NEVER receive any
 explanations or descriptions of the cause of the failure, the solution
 and Google's efforts to prevent its returning occurance. Not by any
 means to compare, but EC2's team constantly admit and report ALL of
 the failures and their debriefing!

 And now for the cherry on the top, and the reason I used the word
 'dishonesty' - You remove any note of the disruption from System
 Status. For example, yesterday there was a disruption causing 40 secs
 (!!!) of latency in response. Today viewing the System Status,
 yesterday is marker with No significant issues. That to me is
 dishonesty and a clear cut lie.

 Unfortunately, our service is now so deeply connect to the AppEngine
 framework that leaving this service is currently not an option, but I
 would definitively not advise or recommend anyone to use the AppEngine
 today, and my next product will definitely not run on the AppEngine.

 Regards,

  - Yoav.

-- 
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.



Re: [google-appengine] Re: 1.6.0 is now launched

2011-11-18 Thread PK
Alfred/Alexis,

have you gotten anywhere with this issue? Is there a case opened?

I agree that what Alexis reports is indeed a very serious issue. Please 
take a look at issue 
6355http://code.google.com/p/googleappengine/issues/detail?id=6355for the way 
it manifests itself in my environment.

Thanks,
PK

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/uvLDuYTD_TYJ.
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: Redirect Dead Apps?

2011-11-18 Thread WallyDD
I get to read this at the same time as I am going through doing a
whole bunch of redirects.

Feel free to show me what you have (now or in a week) in case I need
to do some changes.

On Nov 18, 7:34 pm, Brandon Wirtz drak...@digerat.com wrote:
 The Guys at Google offered to Alias these for me, but I instead built an app
 that does 301's   to a new URL.  I'll test it for a while before I make the
 source public, but if you are in need of this app shoot me a note and I'll
 share it.  After it has baked for a week, and I have done some calculations
 on how many redirects you can serve with a free app.

 Aliasing is nice and all, but I wanted to be able to turn things off and on
 when I needed or to bring back an App Name if I needed later.  If I had
 built my apps correctly a long while ago this wouldn't have been an issue,
 but I wasn't good about making sure that the Appspot.com url didn't appear
 in search.

 From: google-appengine@googlegroups.com
 [mailto:google-appengine@googlegroups.com] On Behalf Of Brandon Wirtz
 Sent: Wednesday, November 16, 2011 1:41 PM
 To: google-appengine@googlegroups.com
 Subject: [google-appengine] Redirect Dead Apps?

 Upgrades to the way some of my apps works have allowed me to do multi-tenant
 better than I used to, and so I am looking to consolidate Apps.   I can do
 this with 301's but that requires that I leave the apps running/enabled.

 I guess what I'm really asking is.. Should I just put up an app that 301's
 all requests to the new app.  Or is there a way Google would prefer I end
 of life and forward 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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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: Redirect Dead Apps?

2011-11-18 Thread Niklas Rosencrantz
I'd like to know what the aforementioned multitenancy is. I try to achieve 
multtenancy with python with limited results since I learn that namespaces 
can only know one namespace at a time so I can't display eveything from a 
datastoreeven though it's the same app, I think. I use python and I think 
Brandon uses Java so details might not apply though practically you could 
change a name of an app just registering a new alias if you have a basic 
application setup. I think also Google wants us to make real apps rather 
than investing in clever app aliases that sells. I cared that there is no 
hyphen and no number in to name so my names got longer and still they are 
easy and I can use them (old app id is classifiedsmarket, new app id is 
montaoproject for my largest app and 2 other apps I have aliases to are 
alias cyberfaze (which used to be a M/S datastore now is an alias to the 
new app name webfaze) and similarly I have an alias blobsystem for my new 
app id wwwblob.

I'm glad the first choices weren't etched in stone and if my apps get large 
I'm going to use custom domains since that is what my project is 
multi-tentant for.

Best regards,
Nick Rosencrantz

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/8rbUfhrR1tMJ.
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.



RE: [google-appengine] Re: Redirect Dead Apps?

2011-11-18 Thread Brandon Wirtz
I'm on Python.  I tenant by domain. I don't have logins, which makes my
scenario easier.  I'll get a link up to the redirector on or around
Thanksgiving.

 

We adopted (late in the game) a naming convention of
Product-Edition-OptionalClientName   

 

We still have clients running specific apps because there is no good way for
usage based billing otherwise.  Jeff Probst's website will have $300 days on
the new billing and we'd rather Google Tracks that than us having to parse
it out of the installs for people we charge a fixed fee for.

 

 

 

From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of Niklas Rosencrantz
Sent: Friday, November 18, 2011 7:40 PM
To: google-appengine@googlegroups.com
Subject: [google-appengine] Re: Redirect Dead Apps?

 

I'd like to know what the aforementioned multitenancy is. I try to achieve
multtenancy with python with limited results since I learn that namespaces
can only know one namespace at a time so I can't display eveything from a
datastoreeven though it's the same app, I think. I use python and I think
Brandon uses Java so details might not apply though practically you could
change a name of an app just registering a new alias if you have a basic
application setup. I think also Google wants us to make real apps rather
than investing in clever app aliases that sells. I cared that there is no
hyphen and no number in to name so my names got longer and still they are
easy and I can use them (old app id is classifiedsmarket, new app id is
montaoproject for my largest app and 2 other apps I have aliases to are
alias cyberfaze (which used to be a M/S datastore now is an alias to the new
app name webfaze) and similarly I have an alias blobsystem for my new app id
wwwblob.

I'm glad the first choices weren't etched in stone and if my apps get large
I'm going to use custom domains since that is what my project is
multi-tentant for.

Best regards,
Nick Rosencrantz

-- 
You received this message because you are subscribed to the Google Groups
Google App Engine group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/8rbUfhrR1tMJ.
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.

-- 
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: Datastore Write Operations is 16x more of other operations

2011-11-18 Thread James Gilliam
The default is to indexed all properties in an Entity. You have to say
indexed = False or you will get crazy high indexed writes. IMO,
default should be False.

On Nov 18, 4:04 pm, Tom Fishman tom.fish...@dishcrunch.com wrote:
 Hi,

 Our data-store operation statistics is strange, writing operation is 16x
 more than other operations ( Read and small ).

 I checked with appstat, it is usually 1:1, at most 2:1. I don't know where
 this 16:1 come from?

 What's the best way to investigate?

 -Tom

-- 
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: Why does blobs query with -creation take so long

2011-11-18 Thread James Gilliam
I am looking up a blob in the blob store with filename and -creation
filter. Runs very slow even though there is a compound index built.

On Nov 16, 10:58 pm, Max thebb...@gmail.com wrote:
 Do you mean to query a kind in datastore with blob properties?

 How many blobs do you have per each entity and how big is the blob?

-- 
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.