[appengine-java] deploy app but no effect

2011-01-21 Thread senderj
I've been working on my app for a while. Everytime I redeploy the app
from Eclipse to GAE, I can immediately check the result by calling my
servlet. But this seems not the case recently. Even after a day or
two, my servlet is still the old version. The last few lines of the
deployment log showed:

Closing update: new version is ready to start serving.
Uploading index definitions.
Uploading cron jobs.
Deployment completed successfully

The admin log showed the time of update was before the log time of the
servlet execution. But the browser result showed that only the old
version of the servlet was run. What's wrong?

-- 
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] Making Http connection via an unauthenticated proxy

2011-01-21 Thread Michael Kankkonen
Hi,

I haven't test this yet but this might work

URL u = new URL(http, proxy, -1(port number), your url)

br,
-michael

2011/1/21 culov cul...@gmail.com

 I 'm getting 620 error response codes back from the google maps
 geocoding api if i send the request directly from my app engine
 servlet, so i have no choice but to use a proxy to receive a
 successful response.  I set up a proxy server, and ive tested it from
 several computers.  Now, all I want to do is make a url request from
 my GAE servlet through my proxy.

 I've tried every possible solution out there and none of them work

 -java.net.Proxy isnt supported in the app engine runtime...
 -setting properties as follows:

 Properties props = System.getProperties();
 props.put(http.proxyHost, proxyhostname);
 props.put(http.proxyPort, proxyhostport);

 didnt do anything.

 What is the easiest way to send an http GET via a proxy in app engine?

 --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
*We Create Solutions for Web and Mobile World*

email:  michael.kankko...@vnetcon.org
gsm:   +358 40 824 35 03
web:www.vnetcon.org

-- 
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] Making Http connection via an unauthenticated proxy

2011-01-21 Thread culov
I 'm getting 620 error response codes back from the google maps
geocoding api if i send the request directly from my app engine
servlet, so i have no choice but to use a proxy to receive a
successful response.  I set up a proxy server, and ive tested it from
several computers.  Now, all I want to do is make a url request from
my GAE servlet through my proxy.

I've tried every possible solution out there and none of them work

-java.net.Proxy isnt supported in the app engine runtime...
-setting properties as follows:

Properties props = System.getProperties();
props.put(http.proxyHost, proxyhostname);
props.put(http.proxyPort, proxyhostport);

didnt do anything.

What is the easiest way to send an http GET via a proxy in app engine?

-- 
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: deploy app but no effect

2011-01-21 Thread Didier Durand
Hi,

You should check Administration  Versions on the App Engine console:
how many versions of your app does gae know ? Did you not create a
version of the application by mistake and have left the old one as
default ? (you'll see that in the console)

That would explain what you currently see.

Let us know

regards

didier

On Jan 21, 9:47 am, senderj send...@hotmail.com wrote:
 I've been working on my app for a while. Everytime I redeploy the app
 from Eclipse to GAE, I can immediately check the result by calling my
 servlet. But this seems not the case recently. Even after a day or
 two, my servlet is still the old version. The last few lines of the
 deployment log showed:

 Closing update: new version is ready to start serving.
 Uploading index definitions.
 Uploading cron jobs.
 Deployment completed successfully

 The admin log showed the time of update was before the log time of the
 servlet execution. But the browser result showed that only the old
 version of the servlet was run. What's wrong?

-- 
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: How to simulate transactional behaviour for two root entites?

2011-01-21 Thread Didier Durand
Hi,

Before answering your question, once-only semantics is not fully
guaranteed by gae tasks: Task names do not provide an absolute
guarantee of once-only semantics. In rare cases, multiple calls to
create a task of the same name may succeed. It's also possible in
exceptional cases for a task to run more than once even if it was only
created once. If you need a guarantee of once-only semantics, use the
datastore.If a task is created successfully, it will eventually be
deleted (at least seven days after the task successfully
executes) (Source: 
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Worker_URLs_and_Task_Names)


For that reason, you have to write your tasks in an idempotent way:
i.e doing n times is identical to doing 1 time. (for example,
incrementing or adding are NOT idempotent)

So, be careful in the way you write your update task.

Second, about your question, tasks within transactions are guaranteed:
You can enqueue a task as part of a datastore transaction, such that
the task is only enqueued—and guaranteed to be enqueued—if the
transaction is committed successfully. Source:
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Tasks_Within_Transactions,

The frequency to retry will decrease exponentially if it fails and
fails again,

You can then monitor your queues via the admin console to fix those
extreme cases that would mostly be symptoms of bugs.

regards

didier

On Jan 21, 11:39 am, ss.require ss.requ...@gmail.com wrote:
 Thanks. Could you specify this question, because it is not completely
 clear.

 If I add a task in a queue, is it guaranteed by GAE that the task will
 be retried infinite times unless the task is successfully finished
 once? In other words can there be situations when some serious issues
 with GAE occur and the task remains undone forever?

-- 
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] Generate files for download dynamically?

2011-01-21 Thread carl
I'm writing an application in GWT/GAE that needs to be able to import/export 
data from/to custom files. Import is no problem but how do I go about 
generating a custom file for download?

I understand that GAE does not support File and instead uses Blobs and that 
it is possible to download a file generated from that Blob. However, I can 
not find a way to generate Blobs other than to upload static files. Is this 
correct? I would like to be able to write to a Blob via a stream. Or is 
there an other way?

Carl

-- 
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: How to simulate transactional behaviour for two root entites?

2011-01-21 Thread ss.require

I am agreed with you about these things. But in documentation I didn't
find anything that says that all needed task retries are guaranteed.

---Second, about your question, tasks within transactions are
guaranteed:
--You can enqueue a task as part of a datastore transaction,
such that
-the task is only enqueued—and guaranteed to be enqueued—if
the
-transaction is committed successfully. Source:
-http://-ode.google.com/appengine/docs/java/taskqueue/
overview.html#Ta...,

That says that tasks are guaranteed to be enqueued but that doesn't
say that tasks are guaranteed to be done after they have been
enqueued. E.g. Task failes 100 times and there is not a retry attempt
for 101 time - task is undone forever.
Please, correct me if i am wrong!

-- 
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: anyone having issues with getServingUrl(blobkey) today?

2011-01-21 Thread Vinny
Just an FYI, this is working again for me today. Not sure what changed.
--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://www.xaymaca-studios.com/



On Thu, Jan 20, 2011 at 2:33 PM, Vinny xaym...@gmail.com wrote:
 I keep getting an
 java.lang.IllegalArgumentException: Unknown error.
 when trying to use:
 http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/images/ImagesService.html#getServingUrl(com.google.appengine.api.blobstore.BlobKey)

 I am feeding getServingUrl() a legitimate blobkey and it's string
 representation  even works when I append it to a static google url
 like :
 http://lh3.ggpht.com/myBlobKeyString

 sample of my code and the actual key is in the ticket below.

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

 just wanted to see if I was the only one.


 --
 biz: http://www.linkedin.com/in/vincentstoessel/
 personal: http://www.xaymaca-studios.com/


-- 
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: Generate files for download dynamically?

2011-01-21 Thread Didier Durand
Hi,

You have 2 distinguish between 2 types of blobs:

- Blob as an object managed by the Blobstore: up 2 to gigabytes. See
http://code.google.com/appengine/docs/java/blobstore/overview.html

- Blob as a Java type used by app engine: up to 1 megabyte. See
http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types

If you generate your data on GAE and want to store them, you have to
generate and store them as a linkrd list of Blobs (the java type) that
you manage by yourself. So, you can then have N x 1 Mb with no limit
on N.

You will face a problem though: an interactive request cannot last
more than 30s as of now, so if your file is huge, you may not be able
to download all of its blobs in 30s.

Then, you would need to write to the blobstore, which is not possible
directly: you have to use the trick described here:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/2bea1295a3f542de/854ea95dcd986dab.
And, once again you should not do this in an interactive request by in
a task that you queued because then the processing limit is raised to
10 min.

So, to summarize, you should try to: generate your file into blobs if
needed in a 1st task and then in a second task, concatenate this list
of small 1 mb blobs to a large blob object into the blobstore which
will then be downlaodable as any other after you fetch the url imposed
by the blobstore.

To be honest, I never did this mechanism in full length at once: i use
all the parts in various occasion. So, I guess that you can put them
one after the other to reach you goal.

Of course, something more straight would be nice.  I look forward to
seeing a much simpler proposal than this one.

regards

didier

On Jan 21, 4:32 pm, c...@rahmstrom.com wrote:
 I'm writing an application in GWT/GAE that needs to be able to import/export
 data from/to custom files. Import is no problem but how do I go about
 generating a custom file for download?

 I understand that GAE does not support File and instead uses Blobs and that
 it is possible to download a file generated from that Blob. However, I can
 not find a way to generate Blobs other than to upload static files. Is this
 correct? I would like to be able to write to a Blob via a stream. Or is
 there an other way?

 Carl

-- 
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: How to simulate transactional behaviour for two root entites?

2011-01-21 Thread Didier Durand
Hi,

For me, guaranteed to be enqueued means guaranteed to be be executed
as long as needed (until success) as gaej is protected against too
frequent retries by the exponential backoff.

I don't find what you ask for in the docs: limit or no limit at all.
So, I guess that we now need to turn to Googler to see what they
say...

I'll watch their answer too.

regards

didier

On Jan 21, 4:43 pm, ss.require ss.requ...@gmail.com wrote:
 I am agreed with you about these things. But in documentation I didn't
 find anything that says that all needed task retries are guaranteed.

 ---Second, about your question, tasks within transactions are
 guaranteed:
 --You can enqueue a task as part of a datastore transaction,
 such that
 -the task is only enqueued—and guaranteed to be enqueued—if
 the
 -transaction is committed successfully. Source:
 -http://-ode.google.com/appengine/docs/java/taskqueue/
 overview.html#Ta...,

 That says that tasks are guaranteed to be enqueued but that doesn't
 say that tasks are guaranteed to be done after they have been
 enqueued. E.g. Task failes 100 times and there is not a retry attempt
 for 101 time - task is undone forever.
 Please, correct me if i am wrong!

-- 
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] I need to do a cron without 30 sec limit

2011-01-21 Thread Mayumi Liyanage
Hi, I need to iterate over all the entities in the Datastore and send
out emails once a day asynchronously to the actual app.
Usual way to do this would be to invoke a Servlet using cron which
would iterate over all the entities to send emails out. However, our
data is growing at the rapid rate and sooner or later we will have a
issue with 30 sec limit problem.
What would be the best way to do this operation using app engine
without worrying about 30 sec limit?

Can we do above using the Mapper API? If so how can we invoke a mapper
from the servlet?

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] Re: I need to do a cron without 30 sec limit

2011-01-21 Thread mgenov
For sure Mapper API is a really good choice. Another option would be using 
Task Queue API and datastore cursors. Both options will solve your problem. 

-- 
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: I need to do a cron without 30 sec limit

2011-01-21 Thread ss.require
I also have a similar task.
Please, could you clarify in more details how to use Task Queue API
and datastore cursors? it is also good that task execution's limit is
10 minute now.

On 21 Січ, 20:03, mge...@gmail.com wrote:
 For sure Mapper API is a really good choice. Another option would be using
 Task Queue API and datastore cursors. Both options will solve your problem.

-- 
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: Generate files for download dynamically?

2011-01-21 Thread Carl Rahmström
Thanks for shedding some light on the issue. I will give it a try.
Carl

On 21 jan 2011, at 17:19, Didier Durand durand.did...@gmail.com wrote:

 Hi,

 You have 2 distinguish between 2 types of blobs:

 - Blob as an object managed by the Blobstore: up 2 to gigabytes. See
 http://code.google.com/appengine/docs/java/blobstore/overview.html

 - Blob as a Java type used by app engine: up to 1 megabyte. See
 http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types

 If you generate your data on GAE and want to store them, you have to
 generate and store them as a linkrd list of Blobs (the java type) that
 you manage by yourself. So, you can then have N x 1 Mb with no limit
 on N.

 You will face a problem though: an interactive request cannot last
 more than 30s as of now, so if your file is huge, you may not be able
 to download all of its blobs in 30s.

 Then, you would need to write to the blobstore, which is not possible
 directly: you have to use the trick described here:
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/2bea1295a3f542de/854ea95dcd986dab.
 And, once again you should not do this in an interactive request by in
 a task that you queued because then the processing limit is raised to
 10 min.

 So, to summarize, you should try to: generate your file into blobs if
 needed in a 1st task and then in a second task, concatenate this list
 of small 1 mb blobs to a large blob object into the blobstore which
 will then be downlaodable as any other after you fetch the url imposed
 by the blobstore.

 To be honest, I never did this mechanism in full length at once: i use
 all the parts in various occasion. So, I guess that you can put them
 one after the other to reach you goal.

 Of course, something more straight would be nice.  I look forward to
 seeing a much simpler proposal than this one.

 regards

 didier

 On Jan 21, 4:32 pm, c...@rahmstrom.com wrote:
 I'm writing an application in GWT/GAE that needs to be able to import/export
 data from/to custom files. Import is no problem but how do I go about
 generating a custom file for download?

 I understand that GAE does not support File and instead uses Blobs and that
 it is possible to download a file generated from that Blob. However, I can
 not find a way to generate Blobs other than to upload static files. Is this
 correct? I would like to be able to write to a Blob via a stream. Or is
 there an other way?

 Carl

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


-- 
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: Struggling w/datastore relationship

2011-01-21 Thread WillSpecht
from http://code.google.com/appengine/docs/java/datastore/queries.html

It looks like the syntax is

Query q = new Query(TAG.class);
q.addFilter(urlId == urlParam);
q.addFilter(userId == userParam);

On Jan 21, 4:13 pm, WillSpecht willspe...@gmail.com wrote:
 The first syntax should be:

 query.setFilter(urlId == urlParam);
 query.setFilter(userId == userParam);

 On Jan 21, 12:36 am, WillSpecht willspe...@gmail.com wrote:

  So you want to be able to find all URL's saved by a User that have a
  certain Tag? Or, all the Users that have Tagged Tech to a URL? Or,
  all the Tags given a URL by a certain User?

  This can be done with our Model.  It's actually what the second part
  of the video in the link is about.

  Merge Join

  All you need to do is add a second filter.

  not sure if the syntax is:

  query.setFilter(urlId == urlParam);

  or

  query.setFilter(urlId == urlParam  userId == userParam);

  This query would return all the Tags that a specific User put on a
  specific URL.

  I hope this is what you were looking for.

  On Jan 20, 5:39 pm, Benjamin Carlson bencarl...@gmail.com wrote:

   I just came across this document:

  http://www.scribd.com/doc/24330945/No-Relation-The-Mixed-Blessings-of...

   It helps, but doesn't completely answer my question. It would appear that
   what I'm wanting to do is an EAV (entities/attributes/values) type
   relationship, however, I'm still not clear on how to do so in GAE/J and
   still be able to query how I need to.

   As for adding a list to each of User and Tag, it doesn't keep the
   relationship between the User, Tag AND URL... just two of the three...
   that's what's causing me heartburn here... :) Or, perhaps it does, and I'm
   too relationally-minded to see it?

   Thanks!

   -Ben

-- 
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: Amazon widget not showing on PC's

2011-01-21 Thread jp
Dear WillSpecht, this forum is for people to discuss issues with
Google App Engine for Java.  Please take your totally unrelated issue
elsewhere.

-- 
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: aggregating tasks and executing them at once? (task queues?)

2011-01-21 Thread Didier Durand
Hi Ivan,

I heavily use the online developer's guide.

on you matter, you should read all the articles in this serie
http://code.google.com/appengine/articles/datastore/overview.html

I also deeply recommend the book Programming Google App Engine by D.
Sanderson: most detailed description of datastore that I know of.

Also, check out labs.google.com/papers/bigtable-osdi06.pdf

regards

didier

On Jan 21, 6:38 pm, Ivan ivdelc...@gmail.com wrote:
 Hi Didier,

 Thanks for the reply.

 Interesting answer, I don't know the intrinsics of the datastore, but
 commons sense at least suggests that with a batch put you save the
 individual round trips. Plus you save latency when responding to
 users, you just enqueue the operation and return.

 Regarding contention - in my case the news items belong to different
 entity groups, so contention should not increase. But you're right on
 that one... in case of entity group contention, it would be a problem.

 By the way what is your source - google blog, video, book? This would
 be very useful info, I have only found very scarce information
 regarding that topic.

 Thanks,
 Ivan

 On Jan 20, 6:39 pm, Didier Durand durand.did...@gmail.com wrote:

  Hi,

  I don't see how you will save: puts are unitary actions - they can
  not be optimized like queries for big sets of data. By using a task,
  you will add the cost of saving / starting / running a task to the
  cost of your put operation that you will do anyway.

  In addition, you may even generate more contentions on the datastore
  servers if your puts go all to the same server. So, more cpus,
  additional contention exceptions to handle, etc...

  Really, if you puts are spread, I would try to let them so.

  Spread writes are usually simpler to handle than concentrated ones.

  Did I miss something ?

  regards
  didier

  On Jan 20, 12:18 pm, Ivan ivdelc...@gmail.com wrote:

   Hi guys,

   What is the best way to batch time-non-critical datastore operations?
   The use case is the following:

   In my app users can perform certain actions, which result in news
   items being generated: 0 - 4 per action, depending on the action.
   Currently I put them immediately to the datastore in a batch put. What
   would be much more optimal is to somehow batch them in groups
   (although they were created in totally different contexts, probably
   gae instances as well) and persist them as soon as group size  X or
   time elapsed since group was created  Y mins. My impression is that
   task queues are a good candidate but at the moment they rather serve
   to split a big task into smaller ones rather than vice versa. Any
   suggestions on how to optimize the above problem?

   Cheers,
   Ivan



-- 
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] Re: high replication datastore consistency

2011-01-21 Thread Matija
Insert or update can't be strong or eventual consistent. Consistency is 
related to read operation and if every subsequent read will get same last 
inserted/updated values immediately (strong consistency read) 
or eventually (eventual consistency read).

An entity insert with a parent key won't help you with your application 
problem. It will simply insert entity to same entity group tree. But they 
have enabled us in high replication datastore to read entities (within same 
entity group = parent key usage) with key (or in ancestor query) in strong 
consistent way and they achieved that trough some behind paxos, consensus 
and transactional log 'magic' that you can't replicate in any way to get 
strong standard multiple entity groups query read.

Let's say you insert two entities with same parent key and now they are in 
same entity group. If you now query these entities, only with some standard 
filters, you can't read them in strong consistent way because, query planer 
uses index table and they can be different across different datacenter. But 
if you know parent key (parent entity, etc), you can query these entities 
with ancestor query and read them in strong consistent way. Reason that you 
can use ancestor query is because this kind of query is almost same as 
get_by_key query that can use transactional log magic.

Problem with entity groups are that they have low update per second 
performance and you can very easily get contention problems if you try to 
build large ancestor trees.

Matija

-- 
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: related to tal repeat

2011-01-21 Thread Tim Hoffman
Hi

This isn't an appengine related question and you will probably find that not 
many python appengine people actually use zpt.
(I do use zpt though ;-)

 Not exactly sure what your asking for, but my guess is your trying to add a 
name attribute to each input type=checkbox tag, 
in which case you would use input type=checkbox tal:attributes=name 
listitem  tal:content=listiutem


Rgds

Tim

On Friday, January 21, 2011 12:46:55 PM UTC+8, smita wrote:

 I develop web application by using Python,Zope Page 
 Template,googleappengine .I create check box using tal repeat 
 statement that repeat the  item contains in list. This list item is 
 given as value of check box. 

 Issue is to give name to checkbox  other than list itam. 
 How can I give different name to that all checkbox. 

 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] Data sent/received to apis quota

2011-01-21 Thread Felippe Bueno
Hi Guys,

For the second time, I'm having problems with the Data Received from API
(memcache).
I decreases my reports data (which is recorded on memcache), but I needed to
increase again (more 4 bytes).

Now I'm reaching the quota limit again.

I thought to use shard counter on datastore, but the problem would persist,
because datastore also has this quota limit.
When using tasks queues, I have other problem. The queues increases faster
than decreases. I mean, tasks queues are not consumed.

Sugestions ?

Thank you guys, very much.

Felippe

-- 
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 Cursors in Crawlable links

2011-01-21 Thread Michael Weinberg
I hope anyone can share his experience or thoughts about the use of
datastore cursors in URLs that are to be crawled by search engines.

Scenario: I have a page with news items in reverse chronological order
(most recent on top). The data for the page is obtained by a query and
the current cursor is also returned and embedded in the Next Page
link. So when the user clicks Next Page, the cursor is passed back
to the server and the query returns the next X results and so on.

Now my question is whether this design where the cursors are embedded
in the page URL plays nicely with Search Engines that would remember
the link and the content in the page. If a user hits a URL from a
search engine that contains the cursor as a parameter, possibly months
later - would the querycursor still return the same content?
(assuming entries are not removed from the datastore, but newer
stories are constantly added to the top of query).

Anyone sees any issues with this approach?

Thanks,
Michael

-- 
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] Billing and Google checkout with Google Apps account

2011-01-21 Thread Erick Fleming
PK,

I just switched my billing admin to my Google Apps account two days ago, if
that's what you are referring to.

On Thu, Jan 20, 2011 at 5:15 PM, PK p...@gae123.com wrote:

 I read in the site that Google checkout is only possible with a
 regular individual Google account. I just migrated my Google Apps
 domain, among other improvements I now see that it allows many
 services including Google Checkout.

 So I am wondering is the stated restriction still in place for even
 for accounts in migrated Google Apps Domains?

 Thanks,
 PK

 --
 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.comgoogle-appengine%2bunsubscr...@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] Google app engine cron job failed

2011-01-21 Thread Anurag
I have added a cron job to google appengine e.g. /mysite/
my_summation_task which does some calcualtions but anyway doesn't
matter. In the google appengine Cron Jobs page show it as 'Failed' @
11:29 AM, though I have no clue why it is showing failed. Logs show a
request for /mysite/my_summation_task around that time and it has no
errors.

What is more mysterious is that I can ran that URL (/mysite/
my_summation_task) manually and have the desired effect.

So i wondering

What could be wrong
Where I can see what is wrong, logs doesn't have any info

Other Details: Cron URL doesn't need any authentication, cron job is
on the latest app version I have and it is the default version. i am
using python runtime.

-- 
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] Redirect To Google AppEngine when my server down

2011-01-21 Thread Ivan Kristianto
Hi All,
i know this questions may sound stupid. But i wondering if there is a
way to redirect my website to google appengine when the server down.
This is my scenario: I'm using Google AppEngine to host my static
files, and i own a blog which is host on a VPS. But sometimes the VPS
down for more than 6 hours without notice. So i come with this idea,
how about if i host the down for maintenance page on appengine, and
when my server is down, it will redirect to something like this:
maintenance.somedomain.com which is host on appengine. So my visitors
know what is going on.

If any of you know how to do this, please help me. I really appreciate
all your time and effort. Thanks.

Best Regards

Ivan

-- 
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] Channel API - issues we are facing with our app, is it ready for production?

2011-01-21 Thread Yasser
Hi,

We are facing a few issues with the channel API.  May be Moishe or
others can answer with some experience can answer.

1.  We pre-create the channel/token by appending the page_id to the
user_id before serving the page.  We memcache this token for a TTL of
2 hours.  When the channel is closed, we request the token again from
the server, at which point the memcache is also updated with the new
token.

On the page itself the javascript client uses the token to open the
channel using:

var channel = new goog.appengine.Channel(token);

If i access the web app after several hours and access my page, this
call is relatively fast (few ms).  However on every subsequent
request, it takes ages (several minutes) for the response.  The
browsers status bar shows:

Waiting for talkgadget.google.com

(which btw makes me think that the underlying technology under the
channel api is google talk, xmpp)

Even if i refresh the page immediately, the same thing happens (i.e.
it goes in a wait state for a long time).  I have also tried doing
this with other apps (for example the online paint app that someone
created to demonstrate channel api).

My question is,  if a channel has been opened by a client web page and
another client webpage tries to open the same channel, what happens?
There currently seems to be no way to avoid this because the user
might want to navigate to some other section of the website and then
come back to the page where the channel is open.

2) My second question is:  Is there a way for a user to be logged on
to two different browsers and receive updates from the server to the
same page?  I have thought of some ways of accomplishing this e.g.
appending the browser properties in the request to create the token
but they all sound like hacks rather than actual solutions.

3)  FInally, perhaps the above scenarios are there because the api is
not ready for production use?  In that case should we do nothing and
wait for these issues to resolve?

Thanks,
Yasser

-- 
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] problems with JDO

2011-01-21 Thread hrbaer
Hi all,

I'm getting in touch for the first time with JDO and even though I
read the docs regarding this topic (http://code.google.com/intl/de-DE/
appengine/docs/java/datastore/jdo/) I still face a few problems. Maybe
someone can help me out?!

At the moment I'm working on my local machine (not in the cloud!). But
what I already read about that the eclipse google app engine plugin
provides me apart from the web server a local database (in fact I can
validate this because since I try to save/read data from my local
database I have a new folder on my local machine within my war/WEB-INF
file called appengine-generated).

This is my lastest very easy approach:

DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
datastore.put( erzeugeEntity( getModelObject() ) );
try {
  Entity entity = datastore.get( KeyFactory.createKey( Vorname,
Marc ) );
}
catch (EntityNotFoundException e) {
   System.out.println( nix da );
}

Query q = new Query( select from Antwort );
int countEntities = datastore.prepare( q ).countEntities();

--

private Entity erzeugeEntity( ValueMap values ) {

Entity retval = new Entity( Antwort );
retval.setProperty( VORNAME, (String) values.get( VORNAME ) );
return retval;

}

Neither the get via KEY nor the Query returned any entities. Can
someone assist me solving this problem.

Thanks in advance.

-- 
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: Uploading alternate version not updating

2011-01-21 Thread Manny
Hi Inspirado,

Did you find the solution to this issue? I am having the exact same
issue and am clueless what to do?

-Manny

On Jan 7, 5:53 pm, InspiradoGames inspiradoga...@gmail.com wrote:
 Hi,

 I've been making changes to the CSS of our app for the last few days.
 Everything has been updating fine until today. Now App Engine is only
 serving older revisions of the version I'm updating.

 I've tried with SDK 1.4.0 and 1.4.1, with and without --no_precompilation.
 I've also tried reducing the expiration time in app.yaml for static files
 with no success. I finally tried to delete the version entirely and upload
 my latest code, but even that didn't work. I'd be surprised if it's a
 browser cache issue, since I've asked several people to try it and Adobe's
 BrowserLab gives the same results. I've tried the URL with and without the
 latest revision (minor version?) included. Is there an issue with updating
 alternate versions starting sometime today, or am I missing something silly?

 Thanks!

 ~Owen

 App-ID: gardenmind-beta
 Version: 2-dev

-- 
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 most recent version of Django that was successfully ported to GAE?

2011-01-21 Thread Grig Gheorghiu
Curious what people have managed to port to GAE in terms of recent
Django versionsand of course some pointers on how they did it ;-)

Thanks,

Grig

-- 
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] How get link text

2011-01-21 Thread zong
lia href=/dir/*Tshirts*Tshirts/a/li

application = webapp.WSGIApplication(
 [('/dir/(\w*)', *your handler*)],
 debug=True)

In Handler:

tshirts = self.request.get('Tshirts')
items = Item.gql('where type=:1', tshirts)

*;)*


On Fri, Jan 21, 2011 at 1:02 AM, Zeynel azeyn...@gmail.com wrote:

 lia href=/dirTshirts/a/li




-- 
++
格物,致知;正心,诚意。
My Profile= http://about.me/zong/bio

-- 
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 do a batch operation without 30 sec time limit

2011-01-21 Thread Mayumi Liyanage
Hi, I need to iterate over all the entities in the Datastore and send
out emails once a day asynchronously to the actual app.
Usual way to do this would be to invoke a Servlet using cron which
would iterate over all the entities to send emails out. However, our
data is growing at the rapid rate and sooner or later we will have a
issue with 30 sec limit problem.
What would be the best way to do this operation using app engine
without worrying about 30 sec limit?

Can we do above using the Mapper API? If so how can we invoke a mapper
from the servlet?

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.



Re: [google-appengine] How to do a batch operation without 30 sec time limit

2011-01-21 Thread Ross M Karchner
Cron jobs and tasks can now take up to 10 minutes
http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes

On Fri, Jan 21, 2011 at 12:57 PM, Mayumi Liyanage 
mayumi.liyan...@coldwin.com wrote:

 Hi, I need to iterate over all the entities in the Datastore and send
 out emails once a day asynchronously to the actual app.
 Usual way to do this would be to invoke a Servlet using cron which
 would iterate over all the entities to send emails out. However, our
 data is growing at the rapid rate and sooner or later we will have a
 issue with 30 sec limit problem.
 What would be the best way to do this operation using app engine
 without worrying about 30 sec limit?

 Can we do above using the Mapper API? If so how can we invoke a mapper
 from the servlet?

 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.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




-- 
Ross M Karchner
http://eventgrinder.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.



Re: [google-appengine] Redirect To Google AppEngine when my server down

2011-01-21 Thread Barry Hunter
Not directly or robustly.

If your application know it was having trouble, say the PHP (or what every
language you use!) was running, but it was unable to connect to database to
fetch content. Then it could serve a redirect.

But in that case the php application could just serve the 'oops, we are
down' message directly.

However if the whole VPS was down - ie not serving traffic - then there is
nothing to serve the redirect. Visitors still get a dead end.

... so the answer then would be to put a proxy in front of your site, that
if vps was down, serve content from appengine.

... But that leads to another solution - make AppEngine your proxy! It
should be quite easily to implement. And if AppEngine gets no response from
your server, it can just serve the error message directly.

(You can even make the proxy caching - to save bandwidth on your VPS)


(there are alternative solutions, such as having an external monitoring
site, monitor if your VPS is healthly, and if not change the dns records -
such as moveing traffic to a server that serves a redirect to appengine. But
personally I dont beleive they are a good way,because dns often gets cached
in more places than expect. It can work if you maintain it right, but it can
get quite high maintenance)




On 21 January 2011 02:47, Ivan Kristianto i...@ivankristianto.com wrote:

 Hi All,
 i know this questions may sound stupid. But i wondering if there is a
 way to redirect my website to google appengine when the server down.
 This is my scenario: I'm using Google AppEngine to host my static
 files, and i own a blog which is host on a VPS. But sometimes the VPS
 down for more than 6 hours without notice. So i come with this idea,
 how about if i host the down for maintenance page on appengine, and
 when my server is down, it will redirect to something like this:
 maintenance.somedomain.com which is host on appengine. So my visitors
 know what is going on.

 If any of you know how to do this, please help me. I really appreciate
 all your time and effort. Thanks.

 Best Regards

 Ivan

 --
 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.comgoogle-appengine%2bunsubscr...@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] WYSIWYG JavaScript text editor

2011-01-21 Thread Iron Mountain Foundry
Has anyone successfully installed a WYSIWYG text editor (like TinyMCE)
on App Engine?  Do you have instructions?

I am currently using Python/Django, so any help would be appreciated.

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.



Re: [google-appengine] WYSIWYG JavaScript text editor

2011-01-21 Thread Brian Davenport
I have on my app.  I simply made a static dir and droped unziped copy of
tiny mce in it.
Then in the app where I wanted the editor I simply included from its example
pages,

*Brian Davenport*

On Fri, Jan 21, 2011 at 14:36, Iron Mountain Foundry 
brentwashbu...@gmail.com wrote:

 Has anyone successfully installed a WYSIWYG text editor (like TinyMCE)
 on App Engine?  Do you have instructions?

 I am currently using Python/Django, so any help would be appreciated.

 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.comgoogle-appengine%2bunsubscr...@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] Redirect To Google AppEngine when my server down

2011-01-21 Thread Brandon Wirtz
 

http://www.google.com/enterprise/marketplace/viewListing?productListingId=77
71+15478775636094085578

 

This would be part of the solution.   What you would do is on your Host Site
you would use 302's when performance hit a certain load, or when a single
URL crossed a certain amount of traffic.

 

But you'd only 302 if the useragent didn't match the Google Fetch.   That
way users would 302 to appengine, but the Reverse Caching Proxy would handle
the request.

 

Or you can just put CDN in a box in front of your site, and run off it.
This works well, and is extremely elastic.

 

Lastly, you can use a solution like this and only serve parts of the site,
like images, JS, and CSS from it, which takes load off of your server.

 

Sorry if this is spam it seemed pretty relevant for the task described.

 

From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of Barry Hunter
Sent: Friday, January 21, 2011 10:56 AM
To: google-appengine@googlegroups.com
Subject: Re: [google-appengine] Redirect To Google AppEngine when my server
down

 

Not directly or robustly. 

 

If your application know it was having trouble, say the PHP (or what every
language you use!) was running, but it was unable to connect to database to
fetch content. Then it could serve a redirect. 

 

But in that case the php application could just serve the 'oops, we are
down' message directly. 

 

However if the whole VPS was down - ie not serving traffic - then there is
nothing to serve the redirect. Visitors still get a dead end.

 

... so the answer then would be to put a proxy in front of your site, that
if vps was down, serve content from appengine. 

 

... But that leads to another solution - make AppEngine your proxy! It
should be quite easily to implement. And if AppEngine gets no response from
your server, it can just serve the error message directly. 

 

(You can even make the proxy caching - to save bandwidth on your VPS) 

 

 

(there are alternative solutions, such as having an external monitoring
site, monitor if your VPS is healthly, and if not change the dns records -
such as moveing traffic to a server that serves a redirect to appengine. But
personally I dont beleive they are a good way,because dns often gets cached
in more places than expect. It can work if you maintain it right, but it can
get quite high maintenance) 

 

 

 

On 21 January 2011 02:47, Ivan Kristianto i...@ivankristianto.com wrote:

Hi All,
i know this questions may sound stupid. But i wondering if there is a
way to redirect my website to google appengine when the server down.
This is my scenario: I'm using Google AppEngine to host my static
files, and i own a blog which is host on a VPS. But sometimes the VPS
down for more than 6 hours without notice. So i come with this idea,
how about if i host the down for maintenance page on appengine, and
when my server is down, it will redirect to something like this:
maintenance.somedomain.com which is host on appengine. So my visitors
know what is going on.

If any of you know how to do this, please help me. I really appreciate
all your time and effort. Thanks.

Best Regards

Ivan

--
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
mailto:google-appengine%2bunsubscr...@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: How to do a batch operation without 30 sec time limit

2011-01-21 Thread Jay
Is it the fetch that is taking too long or the sending of the emails?

I cases where the jobs really do get too big (but see Ross' note), the
typical approach is to batch up the job and use task queues. For
example, you might have your task catch DeadlineExceeded (or whatever
Exception that is) and smartly put the remaining 'emails' list on
another new task.

On Jan 21, 12:10 pm, Ross M Karchner rosskarch...@gmail.com wrote:
 Cron jobs and tasks can now take up to 10 
 minuteshttp://code.google.com/p/googleappengine/wiki/SdkReleaseNotes

 On Fri, Jan 21, 2011 at 12:57 PM, Mayumi Liyanage 



 mayumi.liyan...@coldwin.com wrote:
  Hi, I need to iterate over all the entities in the Datastore and send
  out emails once a day asynchronously to the actual app.
  Usual way to do this would be to invoke a Servlet using cron which
  would iterate over all the entities to send emails out. However, our
  data is growing at the rapid rate and sooner or later we will have a
  issue with 30 sec limit problem.
  What would be the best way to do this operation using app engine
  without worrying about 30 sec limit?

  Can we do above using the Mapper API? If so how can we invoke a mapper
  from the servlet?

  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.comgoogle-appengine%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Ross M Karchnerhttp://eventgrinder.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: What is the most recent version of Django that was successfully ported to GAE?

2011-01-21 Thread Jay
Djano-nonrel can use 1.2. Are you familiar with that project? If not,
check it out. It works like a hose - and you can use Django models if
you want to.

On Jan 20, 5:53 pm, Grig Gheorghiu grig.gheorg...@gmail.com wrote:
 Curious what people have managed to port to GAE in terms of recent
 Django versionsand of course some pointers on how they did it ;-)

 Thanks,

 Grig

-- 
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] Set utf-8 charset for mails?

2011-01-21 Thread pdknsk
I've noticed mails are send with the following encoding.

Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Content-Transfer-Encoding: base64

To be honest I'm not very familiar with charsets, so ISO-8859-1 may be
sufficient, but I've been wondering if charset can be set?

-- 
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: IRC Office hours January 19th, 2011 transcript

2011-01-21 Thread nickmilon
Very useful this posting of IRC Trancripts - to people like me who are
not able to attend coz  different time zones or many other reasons.
So please keep posting those.


On Jan 21, 12:34 am, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:
 Hey guys, below is the transcript for January 19th, 2011 office hours. I
 wanted to thank Robert Kluin and Mike Wesner for helping out!

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blogger:http://googleappengine.blogspot.com
 Reddit:http://www.reddit.com/r/appengine
 Twitter:http://twitter.com/app_engine

 

 Status #appengineX
 [Google App Enginehttp://code.google.com/appengine/| App Engine news and
 articleshttp://reddit.com/r/appengine| Developer chat 1st Weds 7PM PST,
 3rd Weds 9AM PST]
 [09:11] mbw oh, ok... robertk you are off the hook.. he just came back
 [09:11] == Nickname is already in use: ikai_google
 [09:11] ikai_google_ ugh
 [09:12] mbw ikai_google_:  I nominated robertk to run the office hours
 when you left
 [09:12] robertk starship, when you see the timeouts and instances with
 0qps does your average latency go way up too?
 [09:12] ikai_google_ who says OS X never crashes
 [09:12] King946 is there any sort of etiquette when it comes to asking
 questions in here?
 [09:12] starship Apple
 [09:12] ikai_google_ anyway I'm logged into webchat with a personal
 computer, couldn't identify as myself
 [09:12] mbw King946: what is your question?
 [09:12] == slynch_google [~sly...@67.218.109.28] has joined #appengine
 [09:12] robertk ikai_google_: ha ha, steve j said flash causes 9x% of osx
 crashes, right?
 [09:12] mbw hey now... lets not get into flash bashing
 [09:12] robertk oh yeah, sorry mbw  :P
 [09:12] mbw poorly written flash, yes
 [09:13] ikai_google_ yeah I've used OS X enough to know macs crash, and
 they crash hard. I can't even boot up my work laptop right now
 [09:13] starship Another question for you: I know different requests get
 handled at different datacenters(not sure if that is the right term) how
 does this effect different Instances
 [09:13] == wesley_google [d8ef2d04@gateway/web/freenode/ip.216.239.45.4] has
 joined #appengine
 [09:14] robertk damn ikai_google_, i thought i did a lot of harry stuff to
 my macs (especially when i was doing a lot of C work), but i've never truely
 _killed_ one ;)
 [09:14] mbw hi wesley_google
 [09:15] matija_j _google: What is meaning of throttle_cold=1,
 throttle_cold=2 and throttle_cold=4 in request log ?
 [09:15] robertk ^^  would also like that answered  :)
 [09:17] robertk googlers, starship asked why we see instances with 0qps, i
 sometimes see over 50% with 0qps
 [09:17] King946 mbw: I'm looking for an easy way to delete my datastore...
  I was trying to overwrite an old GAE app with a new one, and it seems to be
 creating errors as i explained in the 
 forum...http://code.google.com/appengine/forum/python-forum.html?place=topic%...
 someone suggested that I delete my old datastores, and I tried doing
 that in the dashboard, but it doesn't seem to delete e
 [09:19] mbw King946: have you tried using the new builtins
 datastore_admin: on option?
 [09:19] mbw King946: it would allow you to wipe your datastore
 [09:19] robertk how much data do you have King946?
 [09:19] == matija_j [~mat...@93-137-5-186.adsl.net.t-com.hr] has quit [Ping
 timeout: 240 seconds]
 [09:20] == matija_j [~mat...@93-137-28-93.adsl.net.t-com.hr] has joined
 #appengine
 [09:20] == dac_ [~...@74-115-199-33.eng.wind.ca] has joined #appengine
 [09:20] mbw King946: your groups post leads me to believe you are having
 code issues though, not datastore... are you just trying to deploy a new
 version or trying to wipe data?
 [09:20] ikai_google_ starship: 0 qps instances happen when those instances
 don't get requests. they should eventually be terminated
 [09:20] ristoh hey, I wanted to ask about the changes in time limit for
 urlfetch, can my tasks now request external resources within a 10 minute
 time limit? or did I misunderstand the release?
 [09:21] ikai_google_ starship: do you see patterns of relatively spiky
 requests or is it steady?
 [09:21] == xenru [~xe...@91.196.94.100] has joined #appengine
 [09:21] ikai_google_ ristoh: yes, you should have a 10 minute time limit
 [09:21] ikai_google_ ristoh but you have to do it in a task queue or cron
 job because those requests have 10 minute deadlines
 [09:21] robertk do you have to  explicitly specifiy the higher deadline?
 [09:21] ristoh ikai_google: but it can be for an external resource? ( in
 my case twitter API )
 [09:21] King946 mbw: i was trying to overwrite an old app with a
 completely different new app
 [09:22] mbw King946: all you have to do is deploy with the same version,
 and that should take care of it
 [09:22] mbw King946: or you could change the version, deploy a new one,
 and delete the old version to get a fresh set of logs going
 [09:22] ikai_google_ ristoh: it should be yes
 [09:22] ikai_google_ ristoh: but I don't 

[google-appengine] Re: Billing and Google checkout with Google Apps account

2011-01-21 Thread PK
Erick,

your experience sounds promising, thanks for replying.

At the bottom of the Take billing ownership page it states:

Note: Google Apps accounts may not be used with Checkout; you will
need to use a normal Google account (or a Gmail account). Learn More

I am wondering whether this is a stale old note or it is still a case.
I would like to switch billing to my organization's account but before
I do that I want to make sure I do not break anything.

PK

On Jan 20, 4:00 pm, Erick Fleming er...@sudogs.com wrote:
 PK,

 I just switched my billing admin to my Google Apps account two days ago, if
 that's what you are referring to.







 On Thu, Jan 20, 2011 at 5:15 PM, PK p...@gae123.com wrote:
  I read in the site that Google checkout is only possible with a
  regular individual Google account. I just migrated my Google Apps
  domain, among other improvements I now see that it allows many
  services including Google Checkout.

  So I am wondering is the stated restriction still in place for even
  for accounts in migrated Google Apps Domains?

  Thanks,
  PK

  --
  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.comgoogle-appengine%2Bunsubscrib 
  e...@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: Billing and Google checkout with Google Apps account

2011-01-21 Thread Barry Hunter
Sounds like a old stale note. App Accounts have mostly become normal Google
Accounts now.

On 21 January 2011 22:12, PK p...@gae123.com wrote:

 Erick,

 your experience sounds promising, thanks for replying.

 At the bottom of the Take billing ownership page it states:

 Note: Google Apps accounts may not be used with Checkout; you will
 need to use a normal Google account (or a Gmail account). Learn More

 I am wondering whether this is a stale old note or it is still a case.
 I would like to switch billing to my organization's account but before
 I do that I want to make sure I do not break anything.

 PK

 On Jan 20, 4:00 pm, Erick Fleming er...@sudogs.com wrote:
  PK,
 
  I just switched my billing admin to my Google Apps account two days ago,
 if
  that's what you are referring to.
 
 
 
 
 
 
 
  On Thu, Jan 20, 2011 at 5:15 PM, PK p...@gae123.com wrote:
   I read in the site that Google checkout is only possible with a
   regular individual Google account. I just migrated my Google Apps
   domain, among other improvements I now see that it allows many
   services including Google Checkout.
 
   So I am wondering is the stated restriction still in place for even
   for accounts in migrated Google Apps Domains?
 
   Thanks,
   PK
 
   --
   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.comgoogle-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib
 e...@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.comgoogle-appengine%2bunsubscr...@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] Supporting users who are logged in with multiple Google accounts

2011-01-21 Thread PK
I see that a few of the Google services now support users who are
logged in with multiple accounts and allow the user to switch from one
account to the other without signing in and out.

Unless I am missing something, this does not seem possible with the
currently supported User and OAuth APIs. Are there any plans for
enhancing the APIs to support this? Should I open an enhancement
request or is there one already open?

Thanks,
PK
www.gae123.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: Splitting an app into apps

2011-01-21 Thread Tim Hoffman
Hi

I don't really see any advantage gained by splitting the application, and 
only complications.  Remember each app is isolated from each other and so if 
you admin interface is trying to manage data in another app you will have to 
build a seperate remote interface for them to communicate and you will have 
to secure that 
admin path.  There is also no advantage from a scalability front.

So one would have to ask why would you consider splitting at all?

 Rgds

Tim

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