[appengine-java] Re: I'm not able to deploy my new app due to InvalidClassException: local class incompatible

2010-10-05 Thread Marcel Overdijk
Thanks Don,

Clearing my browser data solved the problem.

I removed some serial versions from my classes which caused the
problem. I didn't think about the fact that this class was stored in
the session.

Cheers,
Marcel

On Oct 4, 11:15 pm, Don Schwarz schwa...@google.com wrote:
 This isn't the full stack trace so it's difficult to be sure, but do
 you store AbstractEngineResponses in an HTTP session?  If so, it seems
 that the class is no longer compatible with the version stored in your
 session.

 If so, try clearing your cookies.  This will create a new session for you.

 For the future you may want to read through:

 http://www.javapractices.com/topic/TopicAction.do?Id=45

 On Mon, Oct 4, 2010 at 3:33 PM, Marcel Overdijk



 marceloverd...@gmail.com wrote:
 http://janrain4j.appspot.com/
  javax.servlet.ServletException: java.lang.RuntimeException:
  java.io.InvalidClassException:
  com.googlecode.janrain4j.api.engage.response.AbstractEngageResponse;
  local class incompatible: stream classdesc serialVersionUID =
  -8862811237568844288, local class serialVersionUID =
  4656491432091728114
         at
  com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionH 
  andlerMap.java:
  240)
         at
  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
  152)
         at org.mortbay.jetty.Server.handle(Server.java:326)
         at 
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
  542)
         at org.mortbay.jetty.HttpConnection
  $RequestHandler.headerComplete(HttpConnection.java:923)
         at
  com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequ 
  estParser.java:
  76)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at
  com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceReques 
  t(JettyServletEngineAdapter.java:
  135)
         at
  com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
  251)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:6784)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:6782)
         at
  com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingAp 
  plicationHandler.java:
  24)
         at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
  398)
         at com.google.net.rpc.impl.Server$2.run(Server.java:852)
         at
  com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
  56)
         at
  com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpa 
  nBuilder.java:
  576)
         at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
         at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
         at
  com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.j 
  ava:
  442)
         at
  com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
  319)
         at
  com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
  290)
         at com.google.net.async.Connection.handleReadEvent(Connection.java:
  474)
         at
  com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.j 
  ava:
  831)
         at
  com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
  207)
         at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
  103)
         at
  com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
  251)
         at com.google.apphosting.runtime.JavaRuntime
  $RpcRunnable.run(JavaRuntime.java:418)
         at java.lang.Thread.run(Thread.java:636)

  What should I do?

  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://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-j...@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] Good wurfl example for mobile detection on app engine?

2010-10-05 Thread Jean-Claude Moissinac
It works
I have an application which uses WURFL
I have to put a guide online
But, in the meantime, I can confirm a fact: WURFL is  a good way to do
mobile detection in GAE

--
Jean-Claude Moissinac


On Tue, Oct 5, 2010 at 6:52 AM, Gal Dolber gal.dol...@gmail.com wrote:
 Hi, I used it long time ago, but not in appengine.
 You need to import the database and tweak a bit the java api.
 But it should work ok
 Best

 On Mon, Oct 4, 2010 at 7:16 PM, Shaun shaunc...@gmail.com wrote:

 Does any know of a good example and/or library to do WURFL mobile
 detection on App Engine or is there a better way to do it? Based on
 the users device I would like to serve a different interface

 Thanks!

 Shaun

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




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




 --
 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-j...@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-j...@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] Is DatastoreService thread safe ?

2010-10-05 Thread Maxim Veksler
Hi,

Can I do something like this:

public class LowLevelDataStore {
private static DatastoreService datastore;
 private static FetchOptions LIMIT_1 = FetchOptions.Builder.withLimit(1);
static {
 datastore = DatastoreServiceFactory.getDatastoreService(withReadPolicy(new
ReadPolicy(Consistency.EVENTUAL)));
}

public static IterableEntity getFOO(...) {
Query query... =
 new Query(...)
.addFilter(..., FilterOperator.EQUAL, ...)
 .addSort(..., SortDirection.ASCENDING);
 return datastore.prepare(query...).asIterable();
 }
}

Assuming I won't be using transactions ?
Assuming I will be using transactions?

Couldn't find any clues in the javadoc / googling does not give meaningful
results as well.


Thank you,
Maxim.

-- 
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-j...@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: Tell data store not to selected index properties on bulkupload

2010-10-05 Thread Maxim Veksler
Hi Peter,

I used bulkloader.yaml. I can't find the non indexing configuration in the
docs http://code.google.com/appengine/docs/python/tools/uploadingdata.html

http://code.google.com/appengine/docs/python/tools/uploadingdata.htmlShould
I just go back and user the deprecated method (python configuration?).

What about the existing data? Should I reupload the same entries to after I
configure no indexing to make the index go poof ?


Thank you for the help,
Maxim.

On Mon, Oct 4, 2010 at 10:03 PM, Peter Ondruska peter.ondru...@gmail.comwrote:

 Just define entity properties with indexed=False, e.g.

 class Authorization(db.Model):
  domain = db.StringProperty(required=True)
  code = db.StringProperty(required=True, indexed=False)   # 
  update = db.DateTimeProperty(required=True, auto_now_add=True)

 and then bulkload

 On Oct 4, 6:26 pm, Maxim Veksler ma...@vekslers.org wrote:
  Hello,
 
  I would like to disable indexing for properties I know I won't be using
 for
  query filtering to save storage space.
 
  I have used bulkuploader to push ~500mb of data into the datastore. These
  Entities contain lot's of properties which won't be used for filtering,
 for
  ex. CountryName
  I would like to exclude these properties from the indexing, and purge the
  existing index.
 
  Not sure about how datastore works, so I'll ask all my questions at once:
 
  Can I disable indexing for properties or does single property indexes
 always
  created without me being able to control it?
  Can tell app engine to truncate existing index and not recreate it (to
  reclaim the disk space) ?
  Can I retrospectively upload an index.yaml file (I did not had this file
  before) to delete the unneeded indexes created?
  Will this index.yaml configuration will take effect on my next bulkupload
  operation as well?
 
  Thanks for helping,
  Maxim.
 
  [1]
 http://code.google.com/appengine/docs/java/configyaml/indexconfig.html

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



-- 
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-j...@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: Is DatastoreService thread safe ?

2010-10-05 Thread Didier Durand
Hello,

See 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b

and 
http://groups.google.com/group/google-appengine-java/tree/browse_frm/month/2010-04/8de23dea7100c586

didier

On Oct 5, 2:38 pm, Maxim Veksler ma...@vekslers.org wrote:
 Hi,

 Can I do something like this:

 public class LowLevelDataStore {
 private static DatastoreService datastore;
  private static FetchOptions LIMIT_1 = FetchOptions.Builder.withLimit(1);
 static {
  datastore = DatastoreServiceFactory.getDatastoreService(withReadPolicy(new
 ReadPolicy(Consistency.EVENTUAL)));

 }

 public static IterableEntity getFOO(...) {
 Query query... =
  new Query(...)
 .addFilter(..., FilterOperator.EQUAL, ...)
  .addSort(..., SortDirection.ASCENDING);
  return datastore.prepare(query...).asIterable();
  }

 }

 Assuming I won't be using transactions ?
 Assuming I will be using transactions?

 Couldn't find any clues in the javadoc / googling does not give meaningful
 results as well.

 Thank you,
 Maxim.

-- 
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-j...@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: Is DatastoreService thread safe ?

2010-10-05 Thread Maxim Veksler
Thank you.

On Tue, Oct 5, 2010 at 3:55 PM, Didier Durand durand.did...@gmail.comwrote:

 Hello,

 See
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b

 and
 http://groups.google.com/group/google-appengine-java/tree/browse_frm/month/2010-04/8de23dea7100c586

 didier

 On Oct 5, 2:38 pm, Maxim Veksler ma...@vekslers.org wrote:
  Hi,
 
  Can I do something like this:
 
  public class LowLevelDataStore {
  private static DatastoreService datastore;
   private static FetchOptions LIMIT_1 = FetchOptions.Builder.withLimit(1);
  static {
   datastore =
 DatastoreServiceFactory.getDatastoreService(withReadPolicy(new
  ReadPolicy(Consistency.EVENTUAL)));
 
  }
 
  public static IterableEntity getFOO(...) {
  Query query... =
   new Query(...)
  .addFilter(..., FilterOperator.EQUAL, ...)
   .addSort(..., SortDirection.ASCENDING);
   return datastore.prepare(query...).asIterable();
   }
 
  }
 
  Assuming I won't be using transactions ?
  Assuming I will be using transactions?
 
  Couldn't find any clues in the javadoc / googling does not give
 meaningful
  results as well.
 
  Thank you,
  Maxim.

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



-- 
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-j...@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: Tell data store not to selected index properties on bulkupload

2010-10-05 Thread John Patterson


On 5 Oct 2010, at 19:44, Maxim Veksler wrote:


Hi Peter,

I used bulkloader.yaml. I can't find the non indexing configuration  
in the docs http://code.google.com/appengine/docs/python/tools/uploadingdata.html


Should I just go back and user the deprecated method (python  
configuration?).


What about the existing data? Should I reupload the same entries to  
after I configure no indexing to make the index go poof ?


The implicit single property indexes can only be added or removed by  
re-putting the entities replacing the existing ones.  Keep in mind  
that any property used in a composite index must also be indexed  
(single property index).  Existing composite indexes will stay in the  
datastore until you run appcfg.py vacuum_indexes.  This features is  
not available in the Java SDK appcfg.sh script. 
 


--
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-j...@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] User Personal page

2010-10-05 Thread Ikai Lan (Google)
You'll want to read  the documentation here:

http://code.google.com/appengine/docs/java/overview.html

Yes, you can use a session, but it's up to you to learn about the different
options available. A good resource for learning how to write code for App
Engine is to browse the projects on our Open Source page:

http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects

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



On Mon, Oct 4, 2010 at 9:12 AM, x_maras dinost...@gmail.com wrote:

 Hi,

 I'm new to the cloud and not an experienced developer.
 For a course I have to make a web application using the GAE and I will also
 use JAVA for it.

 I did a few tutorials but I still have questions that don't let me start
 with my project.

 In my application I want people to be able to login (I have figured out how
 to do it) and I also want to have different data presentation depending to
 each user (this I don't know how to do it)
 I have experience of php and mysql but it is my first time that I 'm
 working with Datastore.

 So I would like to know what can separate each user connected with a google
 account.
 Could I have something like the PHP session for checking if a user is
 logged in?
 How I could also make relationship in datastore objects like relating 2 sql
 tables for example.

 I would be grateful if someone could give me this information or provide me
 some links where I could find answers.

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


-- 
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-j...@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: Select query using LIKE

2010-10-05 Thread Ikai Lan (Google)
startsWith() translates to a GREATER_THAN_OR_EQUAL query underneath the
hood. BigTable allows for range scans, so this ends up being translated to
an index scan for all properties with a value = the target.

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



On Mon, Oct 4, 2010 at 2:58 PM, effpe fredpalle...@gmail.com wrote:

 This test worked for me

 Query query = pm.newQuery(Employee.class);
 query.setFilter(lastName.startsWith(lastNameParam));
 query.setOrdering(lastName, firstName, hireDate desc);
 query.declareParameters(String lastNameParam);
 ListEmployee results = (ListEmployee) query.execute(lastname);
 if (results.size()0) {
  for (Employee e : results) { //e
 }

 the .startsWith(...) was in effect the same as .matches(...) because I was
 NOT allowed to have wildchars as a prefix anyway


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


-- 
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-j...@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] Will I be able to get more apps if needed?

2010-10-05 Thread Ikai Lan (Google)
Yes. When you think you need them, please fill out the Billing Support form:

http://code.google.com/support/bin/request.py?contact_type=AppEngineBillingSupport

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



On Mon, Oct 4, 2010 at 8:52 PM, Gal Dolber gal.dol...@gmail.com wrote:



 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




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


-- 
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-j...@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: Getting a LOT of mysterious 500 responses

2010-10-05 Thread tomkarren
We have been seeing a lot of this in our app as well.  Very
frustrating.

On Oct 4, 10:40 pm, Keith Lea kei...@gmail.com wrote:
 Hi, on our tiny little web servicehttp://findbugs-cloud.appspot.com,
 we're getting a whole lot of 500 responses, with a mysterious message.
 It started a few months ago and has slowly but steadily gotten worse
 since. Since a 500 response makes our continuous build fail, it's
 getting irritating...

 Request was aborted after waiting too long to attempt to service your
 request. This may happen sporadically when the App Engine serving
 cluster is under unexpectedly high or uneven load. If you see this
 message frequently, please contact the App Engine team.

 Also irritating is that these only show up as warnings so sometimes I
 don't even notice they're happening.

 Any idea what's going on? Are we just on a bad cluster? Can we get
 moved somehow?

-- 
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-j...@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] Stranger behaviour with query using AND

2010-10-05 Thread roberto_sc
The following query:

Query jquery = em.createQuery(SELECT o FROM Player o WHERE o.name
= \Zarolho\ AND o.age = 33);

returns 1 result for me.

But doing this:
Query jquery = em.createQuery(SELECT o FROM Player o WHERE o.name = ?1
AND o.age = ?2);

jquery.setParameter(2, 33);
jquery.setParameter(1, Zarolho);

returns nothing. And more strangely:

Query jquery = em.createQuery(SELECT o FROM Player o WHERE o.age = ?2
AND o.name = ?1);

jquery.setParameter(2, 33);
jquery.setParameter(1, Zarolho);

returns the instance!

I just switch the positions for the fields and it works! Same string,
same code, only the position has changed. Please help, I'm stucked on
this for a long time.

-- 
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-j...@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] Reporting error 204

2010-10-05 Thread Domas Savickas
Hello,
I'm running application on AppEngine and I get following error message
in my log on every request:
error
A serious problem was encountered with the process that handled this
request, causing it to exit. This is likely to cause a new process to
be used for the next request to your application. If
you see this message frequently, you should contact the App Engine
team. (Error code 204)
/error
What should I do?

Domas Savickas

-- 
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-j...@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] Using OneToOne relationship

2010-10-05 Thread Cesar
Usuario.class
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Usuario {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key usuarioId;
@Persistent
private String usuario;
@Persistent
private String clave;
@Persistent
private Persona persona;
//..
}

Persona.class
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Persona {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long personaId;
@Persistent
private String nombre;
@Persistent
private String apellido;
@Persistent
private String direccion;
@Persistent
private String correo;
@Persistent
private String telefono;
@Persistent
private String foto;
@Persistent(mappedBy = persona)
private Usuario usuario;
 //...
}

When I have to save I don't Know which one go first??
That is one problem


I managed to save , First Persona then Usuario then, but when I do a
query to Usuario does not bring the Persona object is within


Please someone can help me??

-- 
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-j...@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: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-05 Thread nico
swapplace isn't a good example, it is too simple
NM

On Mon, Oct 4, 2010 at 5:19 AM, Ian Marshall ianmarshall...@gmail.comwrote:

 Mmmm: my link has been Googlised. If interested, try

  http://www.SwapPlace.co.uk

 instead.


 On Oct 4, 9:11 am, Ian Marshall ianmarshall...@gmail.com wrote:
  I disagree. I use Wicket and JDO on GAE/J; it works fine for me,
  including no serialisation problems.
 
  As a working example, I am satisfied with my Wicket/JDO/GAE/J proof-of-
  concept web application at
 
   www.SwapPlace.co.uk.
 
  I am using the lessons learnt for my commercial web site development,
  which is coming along nicely too.
 
  On Oct 3, 9:43 pm, nico nfmelen...@gmail.com wrote:
 
   Hey! don't use wicket + GAE!!! you will have lot of serialization
 problems
   and your project will FAIL! you will lose time and money!
   bug:http://code.google.com/p/googleappengine/issues/detail?id=2500
 
   Bye!
   NM

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




-- 
Nicolás Meléndez
Java Software Developer

Cell: +54 9 1157535454

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez

-- 
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-j...@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: Good wurfl example for mobile detection on app engine?

2010-10-05 Thread Shaun
Excellent thanks for the help!

On Oct 5, 1:09 am, Jean-Claude Moissinac jean-
claude.moissi...@telecom-paristech.fr wrote:
 It works
 I have an application which uses WURFL
 I have to put a guide online
 But, in the meantime, I can confirm a fact: WURFL is  a good way to do
 mobile detection in GAE

 --
 Jean-Claude Moissinac



 On Tue, Oct 5, 2010 at 6:52 AM, Gal Dolber gal.dol...@gmail.com wrote:
  Hi, I used it long time ago, but not in appengine.
  You need to import the database and tweak a bit the java api.
  But it should work ok
  Best

  On Mon, Oct 4, 2010 at 7:16 PM,Shaunshaunc...@gmail.com wrote:

  Does any know of a good example and/or library to do WURFL mobile
  detection on App Engine or is there a better way to do it? Based on
  the users device I would like to serve a different interface

  Thanks!

 Shaun

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

  --
  Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/

  --
  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-j...@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-j...@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: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-05 Thread John Patterson
Wicket works fine on GAE as long as you make sure your page instances  
do not contain non-Serializable instances - using detachable models  
follows this rule.


Here is this base class I use to set up a Wicket / Engine App

public abstract class EngineApplication extends WebApplication
{
@Override
protected void init()
{
		getResourceSettings().setResourceWatcher(new  
OnDemandModificationWatcher());

super.init();
}

protected ISessionStore newSessionStore()
{
return new HttpSessionStore(this);
}

@Override
protected WebRequest newWebRequest(HttpServletRequest servletRequest)
{
if (isDevelopmentEnvironment())
{
			((OnDemandModificationWatcher)  
getResourceSettings().getResourceWatcher(true)).start();

}
return super.newWebRequest(servletRequest);
}

public static boolean isDevelopmentEnvironment()
{   
		return  
System 
.getProperty 
(com.google.appengine.runtime.environment).equals(Development);

}

@Override
public String getConfigurationType()
{
if (isDevelopmentEnvironment())
{
return development;
}
else
{
return deployment;
}
}

}


On 6 Oct 2010, at 08:02, nico wrote:



swapplace isn't a good example, it is too simple
NM

On Mon, Oct 4, 2010 at 5:19 AM, Ian Marshall  
ianmarshall...@gmail.com wrote:

Mmmm: my link has been Googlised. If interested, try

 http://www.SwapPlace.co.uk

instead.


On Oct 4, 9:11 am, Ian Marshall ianmarshall...@gmail.com wrote:
 I disagree. I use Wicket and JDO on GAE/J; it works fine for me,
 including no serialisation problems.

 As a working example, I am satisfied with my Wicket/JDO/GAE/J  
proof-of-

 concept web application at

  www.SwapPlace.co.uk.

 I am using the lessons learnt for my commercial web site  
development,

 which is coming along nicely too.

 On Oct 3, 9:43 pm, nico nfmelen...@gmail.com wrote:

  Hey! don't use wicket + GAE!!! you will have lot of  
serialization problems

  and your project will FAIL! you will lose time and money!
  bug:http://code.google.com/p/googleappengine/issues/detail?id=2500

  Bye!
  NM

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





--
Nicolás Meléndez
Java Software Developer

Cell: +54 9 1157535454

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for   
housing, sale, services, local community, curses,jobs, and events -  
GAE/J + Wicket + YUI)


1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J  
+ Applets + Wicket)


2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez

--
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-j...@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] Severe latency errors again

2010-10-05 Thread David
Today I've gotten a recent spike in many requests timing out taking
longer than 30 seconds trying to update a single entity in the data
store.  I only have a single index on two properties that aren't
related to that entity being updated.  This is starting to really be
frustrating for my users and I.  I have a paid app engine account and
a number of issues reported that just seem to be ignored (3721 is the
one about latency and errors).  Support seems to almost zero with app
engine and there doesn't appear to be a phone number that I can call
that I could find.  My application id is word-play.appspot.com.  Can
anyone help?

Thanks,
David

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



[google-appengine] Application-Specific Indexes

2010-10-05 Thread rvjcallanan
Hi all,

I have an unusual data retrieval requirement which cannot be fulfilled
by the built-in indexing mechanism of the GAE (or any other Cloud
platform for that matter). This got me thinking about managing my own
index tables and just using barebones GAE indexing for retrieving
individual entities from the Datastore by key. The new Mapper API
offers distinct possibilities.

Yes, I realise that this almost sounds like an App Engine within an
App Engine but please humour me a little:

Outside of framework integration issues, my main concerns are cost and
performance:

1. Will my indexing-related CPU cycles have a similar cost overhead to
using the GAE's built-in indexing?
2. What about record retrieval (e.g. thousands of items), cursors, etc?
3. How do I maintain index consistency, transaction control, etc.

I suppose these questions can be distilled down to one:

Sitting higher up the stack, is my code at a serious disadvantage
compared to the GAE internals when it comes to indexing control?

...and as an afterthought, might it be a good idea in general for
applications to have this level of control over their indexes? I'm
thinking of the many problems which frequently crop up with GAE indexes
which are of course part of a massive indexing super-structure
encompassing all apps?

TIA

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



[google-appengine] Re: Googlegroup authorization

2010-10-05 Thread raya
 google docs, google calendar, google wave can share information
within a google group, they do it somehow...

On Oct 4, 8:06 pm, raya raya.shmak...@gmail.com wrote:
 I've checked Users Python API and as I understand a user is a single
 google user. Is there a solution how to authorize any user from
 specified google group ?

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



[google-appengine] Re: Severe latency errors again

2010-10-05 Thread Raymond C.
Same issue for my apps as well.

On Oct 5, 2:17 pm, David s2kd...@gmail.com wrote:
 Today I've gotten a recent spike in many requests timing out taking
 longer than 30 seconds trying to update a single entity in the data
 store.  I only have a single index on two properties that aren't
 related to that entity being updated.  This is starting to really be
 frustrating for my users and I.  I have a paid app engine account and
 a number of issues reported that just seem to be ignored (3721 is the
 one about latency and errors).  Support seems to almost zero with app
 engine and there doesn't appear to be a phone number that I can call
 that I could find.  My application id is word-play.appspot.com.  Can
 anyone help?

 Thanks,
 David

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



Re: [google-appengine] Application-Specific Indexes

2010-10-05 Thread Robert Kluin
You need to provide some more specifics about your unmet requirements
and proposed indexing scheme to get useful answers.

But, in general, yes.  You can develop your own indexing on top of
GAE.  Looks at the Building Complex Apps on App Engine IO talk, Brett
suggested a pattern (RelationIndex) that uses App Engines indexing to
provide a special type of index useful for solving certain problems.
There are a number of other patterns commonly used too.


Robert





On Tue, Oct 5, 2010 at 06:45, rvjcallanan vincent.calla...@gmail.com wrote:
 Hi all,

 I have an unusual data retrieval requirement which cannot be fulfilled by
 the built-in indexing mechanism of the GAE (or any other Cloud platform for
 that matter). This got me thinking about managing my own index tables and
 just using barebones GAE indexing for retrieving individual entities from
 the Datastore by key. The new Mapper API offers distinct possibilities.

 Yes, I realise that this almost sounds like an App Engine within an App
 Engine but please humour me a little:

 Outside of framework integration issues, my main concerns are cost and
 performance:

 1. Will my indexing-related CPU cycles have a similar cost overhead to using
 the GAE's built-in indexing?
 2. What about record retrieval (e.g. thousands of items), cursors, etc?
 3. How do I maintain index consistency, transaction control, etc.

 I suppose these questions can be distilled down to one:

 Sitting higher up the stack, is my code at a serious disadvantage compared
 to the GAE internals when it comes to indexing control?

 ...and as an afterthought, might it be a good idea in general for
 applications to have this level of control over their indexes? I'm thinking
 of the many problems which frequently crop up with GAE indexes which are of
 course part of a massive indexing super-structure encompassing all apps?

 TIA

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


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



Re: [google-appengine] Re: Googlegroup authorization

2010-10-05 Thread Robert Kluin
Then there is at least one possible solution: share something with the
group.  If you can access what ever you shared they are probably a
group member.

I am not sure it is the best solution, but it is one possibility
depending on your use case.



Robert






On Tue, Oct 5, 2010 at 07:07, raya raya.shmak...@gmail.com wrote:
  google docs, google calendar, google wave can share information
 within a google group, they do it somehow...

 On Oct 4, 8:06 pm, raya raya.shmak...@gmail.com wrote:
 I've checked Users Python API and as I understand a user is a single
 google user. Is there a solution how to authorize any user from
 specified google group ?

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



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



[google-appengine] Google Apps account login

2010-10-05 Thread David
I'm having an issue with users not being able to authenticate with GAE
using a Google Apps account.  Regular Google account users can access
it fine.  How do I make it so it supports Google Apps logins in
addition?  Do I need to use the Federated Login stuff in GAE?  It is
currently not set to Federated because that makes it so neither Google
Apps nor Google accounts work. Can anyone help me out?

Thanks,
David

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



Re: [google-appengine] Re: Updating multiple entities (in different entity groups) with transaction

2010-10-05 Thread Prashant
Thanks a lot Tim. This is exactly what i wanted :)

-- 
Prashant
www.claymus.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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Latency spikes and aborted requests in the last 24 hours

2010-10-05 Thread John Gardner
I just saw a series of deadline exceeded errors.

Our app is cxiongame.  I was essentially the only user on the
system, but I was creating a number of TaskQueue jobs.  I assume the
failures were due to spin up time on additional instances to handle
the task queues.

It would be nice if there was a mechanism to inform AppEngine that
instances are up, so rather than hitting a DeadlineExceeded the task
could just delay a little longer.

On Sep 23, 10:19 am, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:
 Hey guys,

 We've been tracking latency spikes and intermittent batches of aborted
 requests over the last 24 hour period. There were at least 3 periods of
 spikes yesterday:

 ~1100 Pacific (moderate, brief period of high)
 ~1300 Pacific (small)
 ~1530 Pacific (small)

 Community reports seem to indicate that these are related to loading
 requests. If you are being affected, can you report your environment,
 language and if these times correlate with your experiences in this thread?
 Are there periods that this particular report did not cover? Please provide
 measurements, times and application IDs.

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

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



Re: [google-appengine] Application-Specific Indexes

2010-10-05 Thread Eli Jones
Well.. seems like the only way to tell the costs is to build out a prototype
to test.

The cost will mostly depend on how well you build this system.. (and not
really on some theoretical lower limit on cpu cost).

As Robert suggests, your indexes will probably need to be like the Relation
Index that Brett Slatkin mentions in (he starts discussing that concept
around 16 minutes in):

http://www.youtube.com/watch?v=AgaL6NGpkB8

http://www.youtube.com/watch?v=AgaL6NGpkB8All the extra hard stuff like
consistency and transactions.. well.. I can't imagine it being worth the
effort to figure all of those hard problems out.. unless this is just a
theoretical exercise.

If this is for practical reasons, explain more particulars of the problem..
maybe there is a way around you needing to build your own custom indexes on
top of GAE and then dealing with transactions and consistency across all of
these custom indexes.  (Granted, I can see one rolling their own full text
search methods using custom indexing like this.  But, in that case you could
pretty much relax any transaction or consistency requirements.)

On Tue, Oct 5, 2010 at 6:45 AM, rvjcallanan vincent.calla...@gmail.comwrote:

 Hi all,

 I have an unusual data retrieval requirement which cannot be fulfilled by
 the built-in indexing mechanism of the GAE (or any other Cloud platform for
 that matter). This got me thinking about managing my own index tables and
 just using barebones GAE indexing for retrieving individual entities from
 the Datastore by key. The new Mapper API offers distinct possibilities.

 Yes, I realise that this almost sounds like an App Engine within an App
 Engine but please humour me a little:

 Outside of framework integration issues, my main concerns are cost and
 performance:

 1. Will my indexing-related CPU cycles have a similar cost overhead to
 using the GAE's built-in indexing?
 2. What about record retrieval (e.g. thousands of items), cursors, etc?
 3. How do I maintain index consistency, transaction control, etc.

 I suppose these questions can be distilled down to one:

 Sitting higher up the stack, is my code at a serious disadvantage compared
 to the GAE internals when it comes to indexing control?

 ...and as an afterthought, might it be a good idea in general for
 applications to have this level of control over their indexes? I'm thinking
 of the many problems which frequently crop up with GAE indexes which are of
 course part of a massive indexing super-structure encompassing all apps?

 TIA

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



[google-appengine] Re: Exceeded soft memory limit

2010-10-05 Thread sahid
up

On Oct 3, 10:06 pm, sahid sahid.ferdja...@gmail.com wrote:
 Hello,

 I have a little problem with my application,
 i have a lot of Exceeded soft memory limit exception.

 But i know why.
 My application is a daiting website. All users has a possibility to
 make a search with many criteria
 So i have a model with a lot of criteria, i use the filter system of
 the datastore to get a part of the result (like gender, and
 has_picture, country)
 but with the result (limited has 200 and ordered by last_presence) i
 use python to filter it.

 I have many exceptions, but i dont know how i can do better...
 Already, the result is limited to 200 and it's really small, i need
 about 500.

 Exceeded soft memory limit with 299.676 MB after servicing 8724
 requests total
 Exceeded soft memory limit with 299.145 MB after servicing 1182
 requests total
 Exceeded soft memory limit with 206.145 MB after servicing 636
 requests total
 Exceeded soft memory limit with 299.145 MB after servicing 371
 requests total
 Exceeded soft memory limit with 287.895 MB after servicing 2843
 requests total
 Exceeded soft memory limit with 299.594 MB after servicing 7138
 requests total

 APPID: devel-inchallah

 Cordialy,
 Sahid

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



[google-appengine] Re: Request was aborted after waiting too long to attempt to service your request.

2010-10-05 Thread sahid
up

On Oct 4, 10:51 am, sahid sahid.ferdja...@gmail.com wrote:
 Hello,

 I have see my warning log and i have a multiple of

 
 Request was aborted after waiting too long to attempt to service your
 request.
 This may happen sporadically when the App Engine serving cluster is
 under unexpectedly high or uneven load.
 If you see this message frequently, please contact the App Engine
 team.
 

 This exception comes from different paths.
 So i contact the App Engin team...

 APPID: devel-inchallah

 Cordialy,
 Sahid

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



[google-appengine] Getting Python to Read Dashboard Metrics

2010-10-05 Thread jdownie
I'd like to build into my application different behaviour when it
hits, say 80% of the daily quote for CPU. Is that possible? The only
api call I could see was one that allowed me to measure the load of
each individual query.

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



[google-appengine] How to query areas in a virtual map. The map center is 0,0. The map i sbased on pixels, so I dont need float numbers

2010-10-05 Thread Flex Social Network
How to query areas in a virtual map.
The map center is 0,0.
The map i sbased on pixels, so I dont need float numbers

if need any other info just ask. It's based on python.

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



Re: [google-appengine] Request log retention: are they archived at Google?

2010-10-05 Thread Ikai Lan (Google)
For all intents and purposes, think of the logs as a queue that will push
out older entries once a limit is exceeded. No, we are not archiving these
anyway, so preserve them if you need the data.

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



On Mon, Oct 4, 2010 at 1:45 PM, Gavin Andresen gavinandre...@gmail.comwrote:

 I'm writing a privacy policy for a new App Engine app that I'm
 developing, and would like to say something specific about how long
 Google retains logs linking IP addresses to requests that are routed
 to my application.

 A while ago in another thread Jeff S said:

 The admin console has a fixed amount of space set aside for your
 logs...

 Does Google archive request logs, or (I hope!) are they gone forever
 unless I actively download and archive them myself?

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



Re: [google-appengine] Unable to upload app - was working the other day

2010-10-05 Thread Ikai Lan (Google)
Have you changed any settings recently in your Google Apps domain
administrative console? We've heard reports about this causing issues for
some users.

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



On Mon, Oct 4, 2010 at 11:31 AM, Peter Bell pe...@myshopus.com wrote:

 I have an app - available at app.myshopus.com. The app name is
 myshopus, deployment worked fine on Friday. Today when I try to
 appcfg.sh update war it asks for email and password (as it should).
 I type them in (checking for caps lock, etc - they are correct) and it
 asks for them again. I do this three times and then it gives me a

 com.google.appengine.tools.admin.ServerConnection
 $ClientLoginException: Unknown
 Unable to update app: Unknown
 Please see the logs [/var/folders/Yh/Yhnhi3+QFV4IJTTQK9q4bE+++TI/-Tmp-/
 appcfg5952276576316662153.log] for further information.

 The log gives me the following stack trace. Looks like I'm getting a
 403 forbidden response for URL:
 https://www.google.com/accounts/ClientLogin

 The same credentials worked on Friday . . . I know that I got some
 strange issues where I set up Google apps for domains for this domain
 and it was telling me that pe...@myshopus.com was already in use so I
 couldn't use it as part of the domain, but with some futzing around
 last week I was able to convince Google that pe...@myshopus.com was
 indeed part of the apps for domains for myshopus.com and it allowed me
 to use those credentials to log in and assign the app to that domain.

 Any thoughts on how to fix this or what's going on? Stack trace below.

 Any input appreciated!

 Best Wishes,
 Peter


 Unable to update:
 com.google.appengine.tools.admin.ServerConnection
 $ClientLoginException: Unknown
at

 com.google.appengine.tools.admin.ServerConnection.getAuthToken(ServerConnection.java:
 296)
at

 com.google.appengine.tools.admin.ServerConnection.authenticate(ServerConnection.java:
 222)
at

 com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
 151)
at

 com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
 82)
at

 com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
 582)
at

 com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:
 400)
at

 com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:
 112)
at
 com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
 56)
at com.google.appengine.tools.admin.AppCfg
 $UpdateAction.execute(AppCfg.java:547)
at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:138)
at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:61)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:57)
 Caused by: java.io.IOException: Server returned HTTP response code:
 403 for URL: https://www.google.com/accounts/ClientLogin
at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown
 Source)
at

 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
 27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at sun.net.www.protocol.http.HttpURLConnection
 $6.run(HttpURLConnection.java:1368)
at java.security.AccessController.doPrivileged(Native Method)
at

 sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:
 1362)
at

 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
 1016)
at

 sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:
 234)
at

 com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java:
 346)
at

 com.google.appengine.tools.admin.ServerConnection.getAuthToken(ServerConnection.java:
 254)
... 11 more
 Caused by: java.io.IOException: Server returned HTTP response code:
 403 for URL: https://www.google.com/accounts/ClientLogin
at

 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
 1313)
at

 sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:
 2226)
at

 sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFieldKey(HttpsURLConnectionImpl.java:
 287)
at

 com.google.appengine.tools.util.ClientCookieManager.readCookies(ClientCookieManager.java:
 123)
at

 com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java:
 344)
... 12 more

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 

Re: [google-appengine] Re: Memcache capacity

2010-10-05 Thread Ikai Lan (Google)
You can read our program policies here:

http://code.google.com/appengine/program_policies.html

There is a list of the type of content you can and cannot store on our
servers.

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



On Mon, Oct 4, 2010 at 9:38 PM, SivaTumma sivatu...@gmail.com wrote:

 Ikai,

 Can We build applications those serve religions or Porn on appengine ?

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



[google-appengine] Requesting help with appstats

2010-10-05 Thread Kangesh Gunaseelan
I am stumped on this issue for some reason..
I have vanilla appstats configuration to web.xml and deployed properly but
the request to appname.appspot.com/appstats/ reports a server error:
Error: Server ErrorThe server encountered an error and could not complete
your request.

If the problem persists, please
reporthttp://code.google.com/appengine/community.html your
problem and mention this error message and the query that caused it.
Web.xml contains the exact stock configuration from app engine documentation
added to web.xml...i.e. appstats filter, appstats servlet, and the security
contraint (from
http://code.google.com/appengine/docs/java/tools/appstats.html)..all added
to web.xml and redeployed.  I tried with and without the security constraint
but I get the same error.

On a related note, I also tried enabling Appstats short cut in admin-console
per one of the blog postings and I get an error not found - What does /stats
map to though? Where is that specified?

admin-console

  page name=Appstats url=/stats /

/admin-console
Can someone help please?

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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Exceeded soft memory limit

2010-10-05 Thread Robert Kluin
Are you using global variables to cache stuff at the module level or
something similar?



Robert






On Tue, Oct 5, 2010 at 13:25, sahid sahid.ferdja...@gmail.com wrote:
 up

 On Oct 3, 10:06 pm, sahid sahid.ferdja...@gmail.com wrote:
 Hello,

 I have a little problem with my application,
 i have a lot of Exceeded soft memory limit exception.

 But i know why.
 My application is a daiting website. All users has a possibility to
 make a search with many criteria
 So i have a model with a lot of criteria, i use the filter system of
 the datastore to get a part of the result (like gender, and
 has_picture, country)
 but with the result (limited has 200 and ordered by last_presence) i
 use python to filter it.

 I have many exceptions, but i dont know how i can do better...
 Already, the result is limited to 200 and it's really small, i need
 about 500.

 Exceeded soft memory limit with 299.676 MB after servicing 8724
 requests total
 Exceeded soft memory limit with 299.145 MB after servicing 1182
 requests total
 Exceeded soft memory limit with 206.145 MB after servicing 636
 requests total
 Exceeded soft memory limit with 299.145 MB after servicing 371
 requests total
 Exceeded soft memory limit with 287.895 MB after servicing 2843
 requests total
 Exceeded soft memory limit with 299.594 MB after servicing 7138
 requests total

 APPID: devel-inchallah

 Cordialy,
 Sahid

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



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



Re: [google-appengine] Google Apps account login

2010-10-05 Thread Robert Kluin
Yes, you will need to use the federated login (OpenID) stuff.

The long-and-short of it is that you pass the federated_identity
parameter to users.create_login_url.  You'll need to setup a page for
users to tell you what goes in federated_identity somehow, perhaps by
clicking a google logo or entering an apps domain.

For Google accounts:
  users.create_login_url(federated_identity='google.com/accounts/o8/id')
  or
  users.create_login_url(federated_identity='gmail.com')

For an Apps account:
  
users.create_login_url(federated_identity='google.com/accounts/o8/site-xrds?hd=yourappsdomain.com')



There is a little info here:
  http://code.google.com/appengine/docs/python/users/overview.html

And Wesley has a nice article about it here:
  http://code.google.com/appengine/articles/openid.html

Some info on Google Apps domains and OpenID:
  
http://groups.google.com/group/google-federated-login-api/web/openid-discovery-for-hosted-domains?pli=1


Robert






On Tue, Oct 5, 2010 at 11:21, David s2kd...@gmail.com wrote:
 I'm having an issue with users not being able to authenticate with GAE
 using a Google Apps account.  Regular Google account users can access
 it fine.  How do I make it so it supports Google Apps logins in
 addition?  Do I need to use the Federated Login stuff in GAE?  It is
 currently not set to Federated because that makes it so neither Google
 Apps nor Google accounts work. Can anyone help me out?

 Thanks,
 David

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



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



Re: [google-appengine] How to query areas in a virtual map. The map center is 0,0. The map i sbased on pixels, so I dont need float numbers

2010-10-05 Thread Robert Kluin
Is the virtual map bounded in some way?  I guess the map is on a
Cartesian plane?  What will be the density of objects on the map?
One per pixel?  One million per pixel?



You might want to check out the approach taken in geomodel.  The basic
ideal is that each object has a set of points stored with it.  Each
set of points has less precision than the previous set of points.
Using that type of approach it is possible to identify a small set
of objects that _might_ be within some radius of a particular point.
http://code.google.com/p/geomodel/


Robert




On Tue, Oct 5, 2010 at 10:54, Flex Social Network
webdesignpo...@gmail.com wrote:
 How to query areas in a virtual map.
 The map center is 0,0.
 The map i sbased on pixels, so I dont need float numbers

 if need any other info just ask. It's based on python.

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



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



[google-appengine] cannot log into dashboard

2010-10-05 Thread Ron
Hello

Having problems signing into a new account I opened today.  When I try
to log into an app i get kicked into the start page each time, the one
that asks you to create an application.  I mange two other accounts
and they are working fine.  I don't know if it is something to do with
it being the same email I use to manage the google apps domain.

It worked for a while earlier on.  I was able to create the app and
install the application, even linked it to the domain.  It now works
on www.audiogo.co.uk.  But I now can no longer go into the console or
the dashboard.

Any ideas?

Thanks
Ron

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



[google-appengine] Re: developer permissions

2010-10-05 Thread Kenneth
If he's clicking on the link in the email directly he's probably
missing the last equal sign in the url.  Have him copy and paste the
url into the browser instead of clicking on the link.  Stupid outlook.


On Oct 4, 10:48 pm, Tim Romanowski tim.romanow...@gmail.com wrote:
 I have invited a user to my app. when he clicks on the link in the
 invitation, and after he logs in with his google account he gets a
 error saying that he is unauthorized to view the application.

 I have added and removed him multiple times and resent the invitation.
 Is there any other way to reset the permissions for him?

 Thank you

 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Newbie datastore question

2010-10-05 Thread Geoff Parkhurst
Hi all,

I've got this model:

class User(db.Model):
GoogleAccount = db.UserProperty()
LastLogin=db.DateTimeProperty(auto_now=True)

but am having trouble getting a single instance based on
users.get_current_user()

If I do:

test=db.GqlQuery(SELECT * FROM User WHERE GoogleAccount =
:1,users.get_current_user())

...I end up with a list of entities (well, a list with only one item)
and have to do a for something in test loop.

I'm sure I'm missing something... Can someone point me in the right direction?

Many thanks
Geoff

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



[google-appengine] Re: Requesting help with appstats

2010-10-05 Thread Kangesh Gunaseelan
I updated

admin-console

page name=Appstats url=/appstats/stats /

/admin-console

but I am still seeing error.  Error logs have this warning:


Authentication for the Google Apps domain mydomain.com can only be
performed when requests are served from a subdomain of that domain or
it has been approved through the Google Apps Control Panel. See
http://code.google.com/appengine/articles/auth.html

I use a regular google account-based login to deploy the app and
access the dashboard.  I had previously enabled ad...@mydomain.com
(which happens to be a Google Apps domain) to also be able to deploy
the app.  Is authentication the issue here as the error log points to
an authentication?

By the way, I removed ad...@mydomain.com from Application Settings (so
the only account has permissions to deploy is a regular google
account) but Google Apps is still the only authentication option
listed.

Google support team, can you please help here?

Thanks!



On Tue, Oct 5, 2010 at 11:35 AM, Kangesh Gunaseelan kang...@gmail.comwrote:

 I am stumped on this issue for some reason..
 I have vanilla appstats configuration to web.xml and deployed properly but
 the request to appname.appspot.com/appstats/ reports a server error:
 Error: Server ErrorThe server encountered an error and could not complete
 your request.

 If the problem persists, please 
 reporthttp://code.google.com/appengine/community.html your
 problem and mention this error message and the query that caused it.
 Web.xml contains the exact stock configuration from app engine
 documentation added to web.xml...i.e. appstats filter, appstats servlet, and
 the security contraint (from
 http://code.google.com/appengine/docs/java/tools/appstats.html)..all added
 to web.xml and redeployed.  I tried with and without the security constraint
 but I get the same error.

 On a related note, I also tried enabling Appstats short cut in
 admin-console per one of the blog postings and I get an error not found -
 What does /stats map to though? Where is that specified?

 admin-console

   page name=Appstats url=/stats /

 /admin-console
 Can someone help please?

 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] app engine dashboard two step verification

2010-10-05 Thread Kenneth
Very excited about this: 
http://googleenterprise.blogspot.com/2010/09/more-secure-cloud-for-millions-of.html

Will it be coming to app engine, especially for signing into the
dashboard?  Nothing freaks me out more than the idea of someone
breaking into my dashboard account.  I've got a crazy long password
but 2 step would be great.

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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Requesting help with appstats

2010-10-05 Thread Kangesh Gunaseelan
Confirmed that this is to do with how authentication is set.
I was able to get appstats working on development server instance as well as
a production instance.  Production instance is similarly configured to beta
instance (the problematic one that I had couple posts on) but Google
Accounts login shows up when I try to access /appstats/stats/ and I am able
to see appstats for the production and development instance.

One additional request besides getting the beta instance fixed...
What kind of overhead does appstats introduce? Do you recommend turning it
on in production?

I would really like beta instance to be fixed. Google support team - my beta
app name is chitterbeta.

Thanks much!


On Tue, Oct 5, 2010 at 2:12 PM, Kangesh Gunaseelan kang...@gmail.comwrote:

 I updated

 admin-console

   page name=Appstats url=/appstats/stats /

 /admin-console

 but I am still seeing error.  Error logs have this warning:


 Authentication for the Google Apps domain mydomain.com can only be performed 
 when requests are served from a subdomain of that domain or it has been 
 approved through the Google Apps Control Panel. See 
 http://code.google.com/appengine/articles/auth.html

 I use a regular google account-based login to deploy the app and access the 
 dashboard.  I had previously enabled ad...@mydomain.com (which happens to be 
 a Google Apps domain) to also be able to deploy the app.  Is authentication 
 the issue here as the error log points to an authentication?

 By the way, I removed ad...@mydomain.com from Application Settings (so the 
 only account has permissions to deploy is a regular google account) but 
 Google Apps is still the only authentication option listed.

 Google support team, can you please help here?

 Thanks!



 On Tue, Oct 5, 2010 at 11:35 AM, Kangesh Gunaseelan kang...@gmail.comwrote:

 I am stumped on this issue for some reason..
 I have vanilla appstats configuration to web.xml and deployed properly but
 the request to appname.appspot.com/appstats/ reports a server error:
 Error: Server ErrorThe server encountered an error and could not complete
 your request.

 If the problem persists, please 
 reporthttp://code.google.com/appengine/community.html your
 problem and mention this error message and the query that caused it.
 Web.xml contains the exact stock configuration from app engine
 documentation added to web.xml...i.e. appstats filter, appstats servlet, and
 the security contraint (from
 http://code.google.com/appengine/docs/java/tools/appstats.html)..alladded to 
 web.xml and redeployed.  I tried with and without the security
 constraint but I get the same error.

 On a related note, I also tried enabling Appstats short cut in
 admin-console per one of the blog postings and I get an error not found -
 What does /stats map to though? Where is that specified?

 admin-console

   page name=Appstats url=/stats /

 /admin-console
 Can someone help please?

 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Newbie datastore question

2010-10-05 Thread Robert Kluin
Are you saying that your query works, but it is returning a list
instead of a single instance?

If maybe this is what you want?

user = User.all().filter('GoogleAccount', users.get_current_user()).get()
if not user:
# make a new user or something
pass



Robert






On Tue, Oct 5, 2010 at 17:09, Geoff Parkhurst geoff.parkhu...@gmail.com wrote:
 Hi all,

 I've got this model:

 class User(db.Model):
    GoogleAccount = db.UserProperty()
    LastLogin=db.DateTimeProperty(auto_now=True)

 but am having trouble getting a single instance based on
 users.get_current_user()

 If I do:

 test=db.GqlQuery(SELECT * FROM User WHERE GoogleAccount =
 :1,users.get_current_user())

 ...I end up with a list of entities (well, a list with only one item)
 and have to do a for something in test loop.

 I'm sure I'm missing something... Can someone point me in the right direction?

 Many thanks
 Geoff

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



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



Re: [google-appengine] Re: Requesting help with appstats

2010-10-05 Thread Robert Kluin
Appstats estimates its own overhead, it is one of the ms estimates.
It is generally pretty low (a few ms), but if you are running a high
performance or high QPS site I would probably not leave it on in
production.


Robert





On Tue, Oct 5, 2010 at 17:28, Kangesh Gunaseelan kang...@gmail.com wrote:
 Confirmed that this is to do with how authentication is set.
 I was able to get appstats working on development server instance as well as
 a production instance.  Production instance is similarly configured to beta
 instance (the problematic one that I had couple posts on) but Google
 Accounts login shows up when I try to access /appstats/stats/ and I am able
 to see appstats for the production and development instance.
 One additional request besides getting the beta instance fixed...
 What kind of overhead does appstats introduce? Do you recommend turning it
 on in production?
 I would really like beta instance to be fixed. Google support team - my beta
 app name is chitterbeta.
 Thanks much!

 On Tue, Oct 5, 2010 at 2:12 PM, Kangesh Gunaseelan kang...@gmail.com
 wrote:

 I updated

 admin-console

  page name=Appstats url=/appstats/stats /


 /admin-console

 but I am still seeing error.  Error logs have this warning:

 Authentication for the Google Apps domain mydomain.com can only be
 performed when requests are served from a subdomain of that domain or it has
 been approved through the Google Apps Control Panel. See
 http://code.google.com/appengine/articles/auth.html

 I use a regular google account-based login to deploy the app and access
 the dashboard.  I had previously enabled ad...@mydomain.com (which happens
 to be a Google Apps domain) to also be able to deploy the app.  Is
 authentication the issue here as the error log points to an authentication?

 By the way, I removed ad...@mydomain.com from Application Settings (so the
 only account has permissions to deploy is a regular google account) but
 Google Apps is still the only authentication option listed.

 Google support team, can you please help here?

 Thanks!

 On Tue, Oct 5, 2010 at 11:35 AM, Kangesh Gunaseelan kang...@gmail.com
 wrote:

 I am stumped on this issue for some reason..
 I have vanilla appstats configuration to web.xml and deployed properly
 but the request to appname.appspot.com/appstats/ reports a server error:

 Error: Server Error

 The server encountered an error and could not complete your request.

 If the problem persists, please report your problem and mention this
 error message and the query that caused it.

 Web.xml contains the exact stock configuration from app engine
 documentation added to web.xml...i.e. appstats filter, appstats servlet, and
 the security contraint (from
 http://code.google.com/appengine/docs/java/tools/appstats.html)..all added
 to web.xml and redeployed.  I tried with and without the security constraint
 but I get the same error.
 On a related note, I also tried enabling Appstats short cut in
 admin-console per one of the blog postings and I get an error not found -
 What does /stats map to though? Where is that specified?

 admin-console

   page name=Appstats url=/stats /

 /admin-console

 Can someone help please?
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


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



Re: [google-appengine] Unable to upload app - was working the other day

2010-10-05 Thread Peter Bell
I approved the process to upgrade to the new version (not the paid version).
Any idea what I might be able to do to fix this?

Any thoughts appreciated!

Best Wishes,
Peter

On Tue, Oct 5, 2010 at 2:09 PM, Ikai Lan (Google)
ikai.l+gro...@google.comikai.l%2bgro...@google.com
 wrote:

 Have you changed any settings recently in your Google Apps domain
 administrative console? We've heard reports about this causing issues for
 some users.

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



 On Mon, Oct 4, 2010 at 11:31 AM, Peter Bell pe...@myshopus.com wrote:

 I have an app - available at app.myshopus.com. The app name is
 myshopus, deployment worked fine on Friday. Today when I try to
 appcfg.sh update war it asks for email and password (as it should).
 I type them in (checking for caps lock, etc - they are correct) and it
 asks for them again. I do this three times and then it gives me a

 com.google.appengine.tools.admin.ServerConnection
 $ClientLoginException: Unknown
 Unable to update app: Unknown
 Please see the logs [/var/folders/Yh/Yhnhi3+QFV4IJTTQK9q4bE+++TI/-Tmp-/
 appcfg5952276576316662153.log] for further information.

 The log gives me the following stack trace. Looks like I'm getting a
 403 forbidden response for URL:
 https://www.google.com/accounts/ClientLogin

 The same credentials worked on Friday . . . I know that I got some
 strange issues where I set up Google apps for domains for this domain
 and it was telling me that pe...@myshopus.com was already in use so I
 couldn't use it as part of the domain, but with some futzing around
 last week I was able to convince Google that pe...@myshopus.com was
 indeed part of the apps for domains for myshopus.com and it allowed me
 to use those credentials to log in and assign the app to that domain.

 Any thoughts on how to fix this or what's going on? Stack trace below.

 Any input appreciated!

 Best Wishes,
 Peter


 Unable to update:
 com.google.appengine.tools.admin.ServerConnection
 $ClientLoginException: Unknown
at

 com.google.appengine.tools.admin.ServerConnection.getAuthToken(ServerConnection.java:
 296)
at

 com.google.appengine.tools.admin.ServerConnection.authenticate(ServerConnection.java:
 222)
at

 com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
 151)
at

 com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
 82)
at

 com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
 582)
at

 com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:
 400)
at

 com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:
 112)
at
 com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
 56)
at com.google.appengine.tools.admin.AppCfg
 $UpdateAction.execute(AppCfg.java:547)
at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:138)
at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:61)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:57)
 Caused by: java.io.IOException: Server returned HTTP response code:
 403 for URL: https://www.google.com/accounts/ClientLogin
at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown
 Source)
at

 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
 27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at sun.net.www.protocol.http.HttpURLConnection
 $6.run(HttpURLConnection.java:1368)
at java.security.AccessController.doPrivileged(Native Method)
at

 sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:
 1362)
at

 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
 1016)
at

 sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:
 234)
at

 com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java:
 346)
at

 com.google.appengine.tools.admin.ServerConnection.getAuthToken(ServerConnection.java:
 254)
... 11 more
 Caused by: java.io.IOException: Server returned HTTP response code:
 403 for URL: https://www.google.com/accounts/ClientLogin
at

 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
 1313)
at

 sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:
 2226)
at

 sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFieldKey(HttpsURLConnectionImpl.java:
 287)
at

 com.google.appengine.tools.util.ClientCookieManager.readCookies(ClientCookieManager.java:
 123)
at

 

[google-appengine] Still getting errors sending mail

2010-10-05 Thread Jamie H
Just moments ago I sent 21 emails, and received 4 of the following
error:

10-05 02:32PM 26.045

The API call mail.Send() took too long to respond and was cancelled.
...
DeadlineExceededError: The API call mail.Send() took too long to
respond and was cancelled.

Now, I have learned over time so I send all emails via a task, so,
eventually all emails were sent, but can somebody from Google comment
on this error?  I have seen some discussion in the group about it but
never seen any resolution.  It seems like I didn't get it very often,
say, a month ago

app-id: moto-tmobile

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



Re: [google-appengine] Re: Request was aborted after waiting too long to attempt to service your request.

2010-10-05 Thread andy stevko
Hello Sahid,
You might want to read/star this issue
http://code.google.com/p/googleappengine/issues/detail?id=2396q=waiting%20too%20longcolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component
--Stevko

On Tue, Oct 5, 2010 at 10:26 AM, sahid sahid.ferdja...@gmail.com wrote:

 up

 On Oct 4, 10:51 am, sahid sahid.ferdja...@gmail.com wrote:
  Hello,
 
  I have see my warning log and i have a multiple of
 
  
  Request was aborted after waiting too long to attempt to service your
  request.
  This may happen sporadically when the App Engine serving cluster is
  under unexpectedly high or uneven load.
  If you see this message frequently, please contact the App Engine
  team.
  
 
  This exception comes from different paths.
  So i contact the App Engin team...
 
  APPID: devel-inchallah
 
  Cordialy,
  Sahid

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



[google-appengine] Re: Still getting errors sending mail

2010-10-05 Thread Jamie H
Sorry to reply to my own message, but I wanted to add that I am about
to start an email campaign for a client, so it is very important that
my emails are successfully sent... if not, and invitations are not
delivered, nobody will show up for several events around the country,
and alot of people will be very upset and embarassed to say the
least... I have seen another poster on the group mention that recently
his emails were not delivered, with no exceptions thrown... I was
really hoping to get some response, say.. yes there is an issue, you
can do x y and z to avoid it, or, yes the mail api should be
functioning properly

On Oct 5, 4:55 pm, Jamie H ja...@mhztech.com wrote:
 Just moments ago I sent 21 emails, and received 4 of the following
 error:

 10-05 02:32PM 26.045

 The API call mail.Send() took too long to respond and was cancelled.
 ...
 DeadlineExceededError: The API call mail.Send() took too long to
 respond and was cancelled.

 Now, I have learned over time so I send all emails via a task, so,
 eventually all emails were sent, but can somebody from Google comment
 on this error?  I have seen some discussion in the group about it but
 never seen any resolution.  It seems like I didn't get it very often,
 say, a month ago

 app-id: moto-tmobile

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



Re: [google-appengine] Newbie datastore question

2010-10-05 Thread Geoff Parkhurst
On 5 October 2010 22:30, Robert Kluin robert.kl...@gmail.com wrote:
 Are you saying that your query works, but it is returning a list
 instead of a single instance?

 If maybe this is what you want?

    user = User.all().filter('GoogleAccount', users.get_current_user()).get()
    if not user:
        # make a new user or something
        pass

Many thanks Robert - works a treat.
Regards,
Geoff

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



Re: [google-appengine] Re: developer permissions

2010-10-05 Thread Tim Romanowski

 Thanks All,

the latest andoid_push.jar seems to be installing the AMCP !

All is well

Thanks Again

Tim

-- Sent from payphone


On 10/5/10 2:08 PM, Kenneth wrote:

If he's clicking on the link in the email directly he's probably
missing the last equal sign in the url.  Have him copy and paste the
url into the browser instead of clicking on the link.  Stupid outlook.


On Oct 4, 10:48 pm, Tim Romanowskitim.romanow...@gmail.com  wrote:

I have invited a user to my app. when he clicks on the link in the
invitation, and after he logs in with his google account he gets a
error saying that he is unauthorized to view the application.

I have added and removed him multiple times and resent the invitation.
Is there any other way to reset the permissions for him?

Thank you

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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: app engine dashboard two step verification

2010-10-05 Thread Peter Ondruska
If you have Google Apps and GAE with it go to 
http://appengine.google.com/a/youdomain
and it will use two factor authentication. For regula Google accounts
you need to wait until Google allow 2FA for all.

On Oct 5, 11:21 pm, Kenneth goo...@kmacleod.ie wrote:
 Very excited about 
 this:http://googleenterprise.blogspot.com/2010/09/more-secure-cloud-for-mi...

 Will it be coming to app engine, especially for signing into the
 dashboard?  Nothing freaks me out more than the idea of someone
 breaking into my dashboard account.  I've got a crazy long password
 but 2 step would be great.

 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] fast bounding-box geo queries?

2010-10-05 Thread Josh Haberman
I was looking at GeoModel, which has nice functionality for bounding-
box geo queries:
http://code.google.com/apis/maps/articles/geospatial.html
http://code.google.com/p/geomodel/

Unfortunately, the demo application is quite slow.  Queries often take
2-4 seconds to return ~10 results.
http://geomodel-demo.appspot.com
http://geomodel-demo.appspot.com/speedtest

I also see an open bug filed against GeoModel that proximity queries
are slow:
http://code.google.com/p/geomodel/issues/detail?id=20

Any ideas why this is slow?  Glancing at the source, I notice it uses
IN queries (eg. location_geocells IN list of cells) -- perhaps
this is less efficient than range queries?  But still, 2-4 seconds
seems excessive to return 10 results.

Hopefully the next gen queries which will apparently support space-
filling curves will provide better performance for queries like these?
http://www.youtube.com/watch?v=ofhEyDBpngM

Josh

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



[google-appengine] Picasa Web Uploader and Google App Engine

2010-10-05 Thread LA_
Hello,
is there any working example of photos uploading from Picasa to GAE
(written on python)?
Something similiar to 
http://code.google.com/intl/ru-RU/apis/picasa/docs/samples/picasa-upload-sample.zip,
create.php file there.

Thank you.

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



[google-appengine] Prerelease SDK 1.3.8 is out!

2010-10-05 Thread Ikai Lan (Google)
Hey everyone,

Prerelease SDK 1.3.8 is out for early evaluation. Note that many features
that require server side changes will not be available in production, so for
all intents and purposes these new features will only work locally. You can
download the SDKs here:

http://code.google.com/p/googleappengine/downloads/list

1.3.8 Release Notes


Python
---
- The developer who uploaded an app version can download that version's code
  using the appcfg.py download_app command. You can use this to download
both
  Python and Java application code.
- Builtin app.yaml handlers are available for common application functions,
  such as appstats.
- The Admin Console now provides tools to delete all entities in the
datastore
  or all entities of a given type. This is available only if enabled using
the
  datastore_admin builtin. Deleting entities will count against application
  quota.
- You can run task queue tasks immediately from the Admin Console.
- You can now specify the quality of JPEG images via the Image API's
  execute_transforms function. Available in production only.
- Support for login of multiple Google accounts within an app, and longer
login
  sessions. For more information see:
http://www.google.com/support/accounts/bin/answer.py?answer=181599
- In queue.yaml, the maximum allowed bucket size is now 100.
- Precompilation is now enabled by default. To disable, use the
  --no_precompilation flag when updating your app.
- BlobInfo now has an open() method that returns a BlobReader.
- BlobReader now accepts a BlobInfo.
- Removed limits on zigzag merge-join queries. Therefore the error The
built-in
  indices are not efficient enough for this query and your data. Please add
a
  composite index for this query. will no longer be thrown in many cases,
  enabling more types of exploratory queries without indexes.
- Fixed an issue with task queue tasks not running on the dev_appserver when
  using Python 2.6.
- Fixed an issue on the dev_appserver where auto task running wasn't working
for
  BulkAdd.
- Fixed an issue reserving App Ids by owners of similarly-named mails
accounts
  containing periods, multiple cases, and googlemail.com address.
http://code.google.com/p/googleappengine/issues/detail?id=1196
- Fixed an issue with OpenId over SSL.
http://code.google.com/p/googleappengine/issues/detail?id=3393
- Fixed an issue on the development server where PNGs were being returned as
  JPEGs.
http://code.google.com/p/googleappengine/issues/detail?id=3661

Java

- You can run task queue tasks immediately from the admin console.
- Added an OutputSettings class to the Images API to specify the JPEG
encoding
  quality when running in production.
- Support for login of multiple Google accounts within an app, and longer
login
  sessions. For more information see:
http://www.google.com/support/accounts/bin/answer.py?answer=181599
- In queue.xml, the maximum allowed bucket size is now 100.
- Removed limits on zigzag merge-join queries. Therefore the error The
built-in
  indices are not efficient enough for this query and your data. Please add
a
  composite index for this query. will no longer be thrown in many cases,
  enabling more types of exploratory queries without indexes.
- The whitelist has been updated to include java.net.InetAddress and some
  interfaces and abstract classes in javax.xml.soap, including
  javax.xml.soap.SOAPMessage.
- Fixed an issue reserving App Ids by owners of emails containing periods,
  multiple cases, and googlemail.com address.
http://code.google.com/p/googleappengine/issues/detail?id=1196
- Fixed an issue where TaskOptions had no public getters, making testing
  impossible.
http://code.google.com/p/googleappengine/issues/detail?id=3243
- Fixed an issue with OpenId over SSL.
http://code.google.com/p/googleappengine/issues/detail?id=3393
- Fixed an issue on the development server where PNGs were being returned as
  JPEGs.
http://code.google.com/p/googleappengine/issues/detail?id=3661



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

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



[google-appengine] Composite Image ignoring transparency

2010-10-05 Thread pok
I'm trying to create a composite image, but it seems like it is
ignoring any alpha channels and transparency. I looked through the
forums, some people say their is a bug in the dev sdk, so I tried it on
google server too, similar results.

I've uploading the images and results in this post. The code basically
uses the bg.png (the white is transparent) as background and overlays
test.png (the white is transparent) over it, the results from the local
dev server (local.png) is wrong, uploading the app to google app
engine, the result is different, but is also wrong (remote.png). Is
this a bug or is there something wrong with my code below?

[code]

public class CreateImageServlet extends HttpServlet {

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
doOutput(req, resp);
}

private void doOutput(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
ImagesService service = ImagesServiceFactory.getImagesService();

Image bg = ImagesServiceFactory.makeImage(getImage(bg.png));
Image over = ImagesServiceFactory.makeImage(getImage(test.png));

ListComposite composites = new ArrayListComposite();
composites.add(ImagesServiceFactory.makeComposite(bg, 0, 0, 1,
Anchor.TOP_LEFT));
composites.add(ImagesServiceFactory.makeComposite(over, 0, 0, 1,
Anchor.TOP_LEFT));
Image image = service.composite(composites, bg.getWidth(),
bg.getHeight(), 0, OutputEncoding.PNG);

resp.setContentType(image/png);
resp.getOutputStream().write(image.getImageData());
}


private byte[] getImage(String resource) throws IOException {
InputStream is = getClass().getResourceAsStream(resource);
try {
ByteArrayOutputStream os = new ByteArrayOutputStream(1024*6);
byte[] buf = new byte[1024];
int read;

while ( (read=is.read(buf)) != -1 ) {
os.write(buf, 0, read);
}

return os.toByteArray();
} finally {
is.close();
}
}

}

[/code]

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

attachment: bg.pngattachment: test.pngattachment: local.pngattachment: remote.png

[google-appengine] Re: Prerelease SDK 1.3.8 is out!

2010-10-05 Thread gops
Biggest YAY!! is https for openid. YEYE!!

On Oct 5, 8:28 pm, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:
 Hey everyone,

 Prerelease SDK 1.3.8 is out for early evaluation. Note that many features
 that require server side changes will not be available in production, so for
 all intents and purposes these new features will only work locally. You can
 download the SDKs here:

 http://code.google.com/p/googleappengine/downloads/list

 1.3.8 Release Notes
 

 Python
 ---
 - The developer who uploaded an app version can download that version's code
   using the appcfg.py download_app command. You can use this to download
 both
   Python and Java application code.
 - Builtin app.yaml handlers are available for common application functions,
   such as appstats.
 - The Admin Console now provides tools to delete all entities in the
 datastore
   or all entities of a given type. This is available only if enabled using
 the
   datastore_admin builtin. Deleting entities will count against application
   quota.
 - You can run task queue tasks immediately from the Admin Console.
 - You can now specify the quality of JPEG images via the Image API's
   execute_transforms function. Available in production only.
 - Support for login of multiple Google accounts within an app, and longer
 login
   sessions. For more information see:
    http://www.google.com/support/accounts/bin/answer.py?answer=181599
 - In queue.yaml, the maximum allowed bucket size is now 100.
 - Precompilation is now enabled by default. To disable, use the
   --no_precompilation flag when updating your app.
 - BlobInfo now has an open() method that returns a BlobReader.
 - BlobReader now accepts a BlobInfo.
 - Removed limits on zigzag merge-join queries. Therefore the error The
 built-in
   indices are not efficient enough for this query and your data. Please add
 a
   composite index for this query. will no longer be thrown in many cases,
   enabling more types of exploratory queries without indexes.
 - Fixed an issue with task queue tasks not running on the dev_appserver when
   using Python 2.6.
 - Fixed an issue on the dev_appserver where auto task running wasn't working
 for
   BulkAdd.
 - Fixed an issue reserving App Ids by owners of similarly-named mails
 accounts
   containing periods, multiple cases, and googlemail.com address.
    http://code.google.com/p/googleappengine/issues/detail?id=1196
 - Fixed an issue with OpenId over SSL.
    http://code.google.com/p/googleappengine/issues/detail?id=3393
 - Fixed an issue on the development server where PNGs were being returned as
   JPEGs.
    http://code.google.com/p/googleappengine/issues/detail?id=3661

 Java
 
 - You can run task queue tasks immediately from the admin console.
 - Added an OutputSettings class to the Images API to specify the JPEG
 encoding
   quality when running in production.
 - Support for login of multiple Google accounts within an app, and longer
 login
   sessions. For more information see:
    http://www.google.com/support/accounts/bin/answer.py?answer=181599
 - In queue.xml, the maximum allowed bucket size is now 100.
 - Removed limits on zigzag merge-join queries. Therefore the error The
 built-in
   indices are not efficient enough for this query and your data. Please add
 a
   composite index for this query. will no longer be thrown in many cases,
   enabling more types of exploratory queries without indexes.
 - The whitelist has been updated to include java.net.InetAddress and some
   interfaces and abstract classes in javax.xml.soap, including
   javax.xml.soap.SOAPMessage.
 - Fixed an issue reserving App Ids by owners of emails containing periods,
   multiple cases, and googlemail.com address.
    http://code.google.com/p/googleappengine/issues/detail?id=1196
 - Fixed an issue where TaskOptions had no public getters, making testing
   impossible.
    http://code.google.com/p/googleappengine/issues/detail?id=3243
 - Fixed an issue with OpenId over SSL.
    http://code.google.com/p/googleappengine/issues/detail?id=3393
 - Fixed an issue on the development server where PNGs were being returned as
   JPEGs.
    http://code.google.com/p/googleappengine/issues/detail?id=3661

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

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



[google-appengine] Re: Prerelease SDK 1.3.8 is out!

2010-10-05 Thread gops
one more thing ::

http://code.google.com/p/googleappengine/source/browse/trunk/python/VERSION

why google code still hase 1.3.5 version ? instead of 1.3.8 ?

On Oct 6, 7:56 am, gops patelgo...@gmail.com wrote:
 Biggest YAY!! is https for openid. YEYE!!

 On Oct 5, 8:28 pm, Ikai Lan (Google) ikai.l+gro...@google.com
 wrote:

  Hey everyone,

  Prerelease SDK 1.3.8 is out for early evaluation. Note that many features
  that require server side changes will not be available in production, so for
  all intents and purposes these new features will only work locally. You can
  download the SDKs here:

 http://code.google.com/p/googleappengine/downloads/list

  1.3.8 Release Notes
  

  Python
  ---
  - The developer who uploaded an app version can download that version's code
    using the appcfg.py download_app command. You can use this to download
  both
    Python and Java application code.
  - Builtin app.yaml handlers are available for common application functions,
    such as appstats.
  - The Admin Console now provides tools to delete all entities in the
  datastore
    or all entities of a given type. This is available only if enabled using
  the
    datastore_admin builtin. Deleting entities will count against application
    quota.
  - You can run task queue tasks immediately from the Admin Console.
  - You can now specify the quality of JPEG images via the Image API's
    execute_transforms function. Available in production only.
  - Support for login of multiple Google accounts within an app, and longer
  login
    sessions. For more information see:
     http://www.google.com/support/accounts/bin/answer.py?answer=181599
  - In queue.yaml, the maximum allowed bucket size is now 100.
  - Precompilation is now enabled by default. To disable, use the
    --no_precompilation flag when updating your app.
  - BlobInfo now has an open() method that returns a BlobReader.
  - BlobReader now accepts a BlobInfo.
  - Removed limits on zigzag merge-join queries. Therefore the error The
  built-in
    indices are not efficient enough for this query and your data. Please add
  a
    composite index for this query. will no longer be thrown in many cases,
    enabling more types of exploratory queries without indexes.
  - Fixed an issue with task queue tasks not running on the dev_appserver when
    using Python 2.6.
  - Fixed an issue on the dev_appserver where auto task running wasn't working
  for
    BulkAdd.
  - Fixed an issue reserving App Ids by owners of similarly-named mails
  accounts
    containing periods, multiple cases, and googlemail.com address.
     http://code.google.com/p/googleappengine/issues/detail?id=1196
  - Fixed an issue with OpenId over SSL.
     http://code.google.com/p/googleappengine/issues/detail?id=3393
  - Fixed an issue on the development server where PNGs were being returned as
    JPEGs.
     http://code.google.com/p/googleappengine/issues/detail?id=3661

  Java
  
  - You can run task queue tasks immediately from the admin console.
  - Added an OutputSettings class to the Images API to specify the JPEG
  encoding
    quality when running in production.
  - Support for login of multiple Google accounts within an app, and longer
  login
    sessions. For more information see:
     http://www.google.com/support/accounts/bin/answer.py?answer=181599
  - In queue.xml, the maximum allowed bucket size is now 100.
  - Removed limits on zigzag merge-join queries. Therefore the error The
  built-in
    indices are not efficient enough for this query and your data. Please add
  a
    composite index for this query. will no longer be thrown in many cases,
    enabling more types of exploratory queries without indexes.
  - The whitelist has been updated to include java.net.InetAddress and some
    interfaces and abstract classes in javax.xml.soap, including
    javax.xml.soap.SOAPMessage.
  - Fixed an issue reserving App Ids by owners of emails containing periods,
    multiple cases, and googlemail.com address.
     http://code.google.com/p/googleappengine/issues/detail?id=1196
  - Fixed an issue where TaskOptions had no public getters, making testing
    impossible.
     http://code.google.com/p/googleappengine/issues/detail?id=3243
  - Fixed an issue with OpenId over SSL.
     http://code.google.com/p/googleappengine/issues/detail?id=3393
  - Fixed an issue on the development server where PNGs were being returned as
    JPEGs.
     http://code.google.com/p/googleappengine/issues/detail?id=3661

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

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.

Re: [google-appengine] Prerelease SDK 1.3.8 is out!

2010-10-05 Thread Peter Petrov
On Wed, Oct 6, 2010 at 3:28 AM, Ikai Lan (Google)
ikai.l+gro...@google.comikai.l%2bgro...@google.com
 wrote:

 - Fixed an issue with task queue tasks not running on the dev_appserver
 when
   using Python 2.6.


Does this mean that Python 2.6 is now (more or less) supported for the
dev_appserver? Are there any significant issues remaining when not using
Python 2.5? I'm asking because it's quite a pain having to setup an old
Python version on modern Linux distros.

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



[google-appengine] Re: fast bounding-box geo queries?

2010-10-05 Thread Niklasro


On Oct 5, 9:48 pm, Josh Haberman jhaber...@gmail.com wrote:
 I was looking at GeoModel, which has nice functionality for bounding-
 box geo 
 queries:http://code.google.com/apis/maps/articles/geospatial.htmlhttp://code.google.com/p/geomodel/

 Unfortunately, the demo application is quite slow.  Queries often take
 2-4 seconds to return ~10 
 results.http://geomodel-demo.appspot.comhttp://geomodel-demo.appspot.com/speedtest

 I also see an open bug filed against GeoModel that proximity queries
 are slow:http://code.google.com/p/geomodel/issues/detail?id=20

 Any ideas why this is slow?  Glancing at the source, I notice it uses
 IN queries (eg. location_geocells IN list of cells) -- perhaps
 this is less efficient than range queries?  But still, 2-4 seconds
 seems excessive to return 10 results.

 Hopefully the next gen queries which will apparently support space-
 filling curves will provide better performance for queries like 
 these?http://www.youtube.com/watch?v=ofhEyDBpngM

 Josh

Why is it slow? I use it and yes it's slow since making several
queries for one match. You could try do it with your own algorithm. I
try match points inside a polygon for arbitrary geography matches.
When slow we usually have 2 alternatives
a) faster platform
b) make fewer calls and fewer objects
You may benchmark my code matching stuff in Sao Paulo by long / lat:
http://www.montao.com.br/li?lat=-23.33lon=-46.38
Sincerely,
Niklas

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