[appengine-java] Query BlobInfo in Java?

2010-09-06 Thread Peter Liu
Hi all,

Anyone know a simple way to query BlobInfo?

Simple use case will be query the BlobInfo that has a specific file
name.

It seems there's a method to query BlobInfo for Python but I can't
find it for java.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-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: Security problem with App Engine application

2010-09-06 Thread Andy Faulkner
Thanks for your contributions guys. Had got myself a confused with the
need to use AppEngine which, as John points out, I don't need to in
this context.

Andy

On Sep 3, 9:23 am, John Patterson jdpatter...@gmail.com wrote:
 You can write a local Java application that reads data using the JDBC  
 driver and inserts it into your datastore using the RemoteDatastore  
 library:

 http://code.google.com/p/remote-datastore/

 I use this code to read local data from a CSV file and push it to  
 either my local App Engine environment for development or the  
 production environment.

 On 2 Sep 2010, at 22:28, Andy Faulkner wrote:



  Hi,

  I'm trying to develop an AppEngine application in Java, that will read
  some values from a local MSSQL database on our internal network using
  Microsoft's JDBC driver, and then insert those values into a reference
  spreadsheet in our Google Docs domain.

  I'm falling at the first hurdle!

  I have Eclipse Helios, with Version 1.3.7 of the App Engine SDK Plugin
  installed.

  So, I create a new App Engine project (HelloWorld) and when I run
  this, it works just fine.

  And then, just to get things going, I have modified the doGet method
  so that it looks like this (I'm expecting that this will extract some
  records from my database, and then print them to the HTML page) - just
  want to get things going before I really get to work.

  @SuppressWarnings(serial)
  public class VisionConnectorServlet extends HttpServlet {
     public void doGet(HttpServletRequest req, HttpServletResponse resp)
                     throws IOException {

             resp.setContentType(text/plain);

             // Declare the JDBC objects.
           Connection con = null;
           Statement stmt = null;
           ResultSet rs = null;

           try {
              // Establish the connection.
              Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver);

              SQLServerDataSource ds = new SQLServerDataSource();
              ds.setUser(DeltekVision);
              ds.setPassword(Password1);
              ds.setServerName(server02);
              ds.setPortNumber(1433);
              ds.setDatabaseName(vision2);
              con = ds.getConnection();

              String SQL = SELECT * FROM CL where status='A';
              stmt = con.createStatement();
              rs = stmt.executeQuery(SQL);

              // Iterate through the data in the result set and display
  it.
              while (rs.next()) {
                     resp.getWriter().println(Client:  + 
  rs.getString(Name));
                     resp.getWriter().println(br/);
              }
           }

           // Handle any errors that may have occurred.
           catch (Exception e) {
              e.printStackTrace();
           }
           finally {
              if (rs != null) try { rs.close(); } catch(Exception e) {}
              if (stmt != null) try { stmt.close(); } catch(Exception e)
  {}
              if (con != null) try { con.close(); } catch(Exception e) {}
              System.exit(1);
           }

     }

  When I run the application the Jetty server fires up as expected (so
  everything builds OK) but when I access the web page, kaboom:

  java.security.AccessControlException: access denied
  (java.net.SocketPermission cc:1433 connect,resolve)
     at
  java
  .security
  .AccessControlContext.checkPermission(AccessControlContext.java:
  323)
     at
  java.security.AccessController.checkPermission(AccessController.java:
  546)
     at java.lang.SecurityManager.checkPermission(SecurityManager.java:
  532)
     at com.google.appengine.tools.development.DevAppServerFactory
  $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
     at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
     at
  com
  .microsoft
  .sqlserver
  .jdbc
  .SQLServerConnectionSecurityManager
  .checkConnect(SQLServerConnection.java:
  3229)
     at
  com
  .microsoft
  .sqlserver
  .jdbc.ServerPortPlaceHolder.doSecurityCheck(FailOverInfo.java:
  144)
     at
  com
  .microsoft
  .sqlserver.jdbc.ServerPortPlaceHolder.init(FailOverInfo.java:
  135)
     at
  com
  .microsoft
  .sqlserver
  .jdbc
  .SQLServerConnection.primaryPermissionCheck(SQLServerConnection.java:
  968)
     at
  com
  .microsoft
  .sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:
  800)
     at
  com
  .microsoft
  .sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:
  700)
     at
  com
  .microsoft
  .sqlserver
  .jdbc
  .SQLServerDataSource.getConnectionInternal(SQLServerDataSource.java:
  593)
     at
  com
  .microsoft
  .sqlserver
  .jdbc.SQLServerDataSource.getConnection(SQLServerDataSource.java:
  57)
     at
  com
  .integrity
  .visionconnector
  .VisionConnectorServlet.doGet(VisionConnectorServlet.java:
  31)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
     

[appengine-java] Re: Query BlobInfo in Java?

2010-09-06 Thread Sergio Lopes
I'm using the Datastore API to query __BlobInfo__ entity directly.
In my case, for example, I can have multiple versions of the same
filename but I need to get the last one.
So:

 Query query = new Query(__BlobInfo__);
 query.addFilter(filename, FilterOperator.EQUAL, filename);
 query.addSort(creation, SortDirection.DESCENDING);

 DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
 PreparedQuery pq = datastore.prepare(query);
 ListEntity entList = pq.asList(FetchOptions.Builder.withLimit(1));

Hope that helps...


On 6 set, 05:13, Peter Liu tinyee...@gmail.com wrote:
 Hi all,

 Anyone know a simple way to query BlobInfo?

 Simple use case will be query the BlobInfo that has a specific file
 name.

 It seems there's a method to query BlobInfo for Python but I can't
 find it for java.

 Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-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] Can't flush response

2010-09-06 Thread Sergio Lopes
Hi everybody

I'm trying to use flushBuffer() of HttpServletResponse. I have some
use case here where I need to send some response to the user and later
send a little more.

But flushBuffer() doesn't seem to be working in production. Locally
everything works with the SDK, but in production the response only
shows up when the last byte is sent (not when flushBuffer is called).

Any idea?

Thanks
Sérgio

-- 
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] Spring AOP on App Engine?

2010-09-06 Thread Vikas Hazrati
Has anyone got spring aop working with GAE? I get the following issue
deploying aop on the app engine

Error creating bean with name 'entityManagerFactory': Post-processing
of the FactoryBean's object failed; nested exception is
java.lang.StackOverflowError
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
480)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)

As always the loca dev environment 1.3.7 does not give any issues and
all my aspects work fine there. I have a timesheet and financial app
which and I do not want to log the audit calls at all the places. I
have defined the relevant pointcuts and auditing should be done at
those points.

Any suggestions / solutions?

Regards | Vikas
www.inphina.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-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: Can't flush response

2010-09-06 Thread Peter Ondruska
It will not work, GAE in production will send response at once. See
http://code.google.com/appengine/docs/java/runtime.html#Responses

On Sep 6, 10:42 am, Sergio Lopes slo...@gmail.com wrote:
 Hi everybody

 I'm trying to use flushBuffer() of HttpServletResponse. I have some
 use case here where I need to send some response to the user and later
 send a little more.

 But flushBuffer() doesn't seem to be working in production. Locally
 everything works with the SDK, but in production the response only
 shows up when the last byte is sent (not when flushBuffer is called).

 Any idea?

 Thanks
 Sérgio

-- 
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: Can't flush response

2010-09-06 Thread Sergio Lopes
Too bad... thanks, Peter

On 6 set, 07:39, Peter Ondruska peter.ondru...@gmail.com wrote:
 It will not work, GAE in production will send response at once. 
 Seehttp://code.google.com/appengine/docs/java/runtime.html#Responses

 On Sep 6, 10:42 am, Sergio Lopes slo...@gmail.com wrote:



  Hi everybody

  I'm trying to use flushBuffer() of HttpServletResponse. I have some
  use case here where I need to send some response to the user and later
  send a little more.

  But flushBuffer() doesn't seem to be working in production. Locally
  everything works with the SDK, but in production the response only
  shows up when the last byte is sent (not when flushBuffer is called).

  Any idea?

  Thanks
  Sérgio

-- 
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: ClientLogin Service name required if all I want is datastore access?

2010-09-06 Thread Dan Billings
The answer is ah, which does not log in to any services

On Sep 3, 3:34 pm, Dan Billings debil...@gmail.com wrote:
 I just want to have access to the User object on the server-side, but
 I don't need access to any of the servers.

 I the service name required?  The documentation says it is, but this
 seems so basic it may be possible.

-- 
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: Query BlobInfo in Java?

2010-09-06 Thread Peter Liu
Just what I needed. Thank you.

On Sep 6, 1:38 am, Sergio Lopes slo...@gmail.com wrote:
 I'm using the Datastore API to query __BlobInfo__ entity directly.
 In my case, for example, I can have multiple versions of the same
 filename but I need to get the last one.
 So:

  Query query = new Query(__BlobInfo__);
  query.addFilter(filename, FilterOperator.EQUAL, filename);
  query.addSort(creation, SortDirection.DESCENDING);

  DatastoreService datastore =
 DatastoreServiceFactory.getDatastoreService();
  PreparedQuery pq = datastore.prepare(query);
  ListEntity entList = pq.asList(FetchOptions.Builder.withLimit(1));

 Hope that helps...

 On 6 set, 05:13, Peter Liu tinyee...@gmail.com wrote:

  Hi all,

  Anyone know a simple way to query BlobInfo?

  Simple use case will be query the BlobInfo that has a specific file
  name.

  It seems there's a method to query BlobInfo for Python but I can't
  find it for java.

  Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-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: Deleting a version of an app gives error in the admin console

2010-09-06 Thread oth
John,

I have the same issue. If you find a solution please let me know.

Thanks

On Sep 5, 4:38 pm, John demowee...@gmail.com wrote:
 AppEngine Team,

 I have a version of my app which gives me a server error whenever I
 try to delete it from the admin console:

 Server Error

 A server error has occurred.

 I can delete every other version just fine.

 Email me directly for app id / version info.

 Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-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] Google Apps problem with Google App engine Admin Console Display

2010-09-06 Thread powell...@gmail.com
Before our university, Elon, went to Google Apps for the students, the
students who had gmail accounts such as d...@gmail.com could easily
request and appengine account, create an application and then have it
displayed in the app engine admin console dashboard. If they went to
http://appengine.google.com and signed in then they were automatically
redirected to the Appengine admin console dashboard to see a list of
their applications.

This summer, the university went to Google Apps for students  and the
students have google email accounts but with a university extension.
For example, their student email is now d...@elon.edu and this uses
gmail. When a student uses this google account id of d...@elon.edu, the
student can apply for an appengine account, get the account and then
get prompted for an Application Id. The application gets successfully
created but the admin console dashboard is not displayed. If the
student goes to http://appengine.google.com and signs in as
d...@elon.edu then the student is prompted to create an application
instead of having a list of applications displayed to choose from for
display on the dashboard. The question is how does a student with a
university google docs account access the appengine admin console
dashboard when the account has a @elon.edu  university instead of
@gmail.com.

Dave

-- 
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] Spring AOP on App Engine?

2010-09-06 Thread Guillermo Schwarz
Use Dynamic Proxy instead, it works fine.

Cheers,
Guillermo.

On Mon, Sep 6, 2010 at 5:55 AM, Vikas Hazrati vhazr...@gmail.com wrote:

 Has anyone got spring aop working with GAE? I get the following issue
 deploying aop on the app engine

 Error creating bean with name 'entityManagerFactory': Post-processing
 of the FactoryBean's object failed; nested exception is
 java.lang.StackOverflowError
at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
 480)
at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
 $1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)

 As always the loca dev environment 1.3.7 does not give any issues and
 all my aspects work fine there. I have a timesheet and financial app
 which and I do not want to log the audit calls at all the places. I
 have defined the relevant pointcuts and auditing should be done at
 those points.

 Any suggestions / solutions?

 Regards | Vikas
 www.inphina.com

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-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.




-- 
Saludos cordiales,

Guillermo Schwarz
Sun Certified Enterprise Architect

-- 
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] Problem with inheritance and JDO

2010-09-06 Thread lisandrodc
Hi all,
  I've used hibernate for a while, and I'm having a bit of trouble
switching to JDO.  I have several entities that all entities will
share.  Rather than a parent table, I'd prefer these columns be
embedded directly in each entity.  As such, I've defined my abstract
entity and child entity in the classes below.  However, whenever I
try
to run my unit tests or the jetty environment, I always receive the
following error.
org.datanucleus.exceptions.NoPersistenceInformationException: The
class com.onwebconsulting.inventory.model.Part is required to be
persistable yet no Meta-Data/Annotations can be found for this class.
Please check that the Meta-Data/annotations is defined in a valid
file
location.]]
According to my Eclipse console I have 1 class that has been
Enhanced.  Any ideas what I'm doing wrong?
DataNucleus Enhancer completed with success for 1 classes. Timings :
input=268 ms, enhance=51 ms, total=319 ms. Consult the log for full
details
@Inheritance(strategy = InheritanceStrategy.NEW_TABLE)
public class Part extends Auditable{
@Persistent
private String name;
@Persistent
private String description;
@Persistent
private String partNumber;
@Persistent
private long quantity;
@Persistent
private String manuacturersPartNumber;
@Persistent
private String manufacturerName;
@Persistent
private String suppliersPartNumber;
@Persistent
private String supplierName;
@Persistent
private String supplierWebsite;
@Persistent
private float salePrice;
@Persistent
private float supplierPrice;
... Getters and Setters
}
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class Auditable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private Date createDate;
@Persistent
private Date updatedDate;
@Persistent
private long version;
public Key getId() {
return id;
}
public Date getCreateDate() {
return createDate;
}
public Date getUpdatedDate() {
return updatedDate;
}
public long getVersion(){
return version;
}

-- 
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: Query BlobInfo in Java?

2010-09-06 Thread Gladys Anne Nicdao
Hi! Are you using a billable account in appengine? I'm wondering if I can
use the blobstore service even with a free account. If not, are there other
alternatives for blobstore so that I can upload and retrieve a file? Thanks

On Tue, Sep 7, 2010 at 2:57 AM, Peter Liu tinyee...@gmail.com wrote:

 Just what I needed. Thank you.

 On Sep 6, 1:38 am, Sergio Lopes slo...@gmail.com wrote:
  I'm using the Datastore API to query __BlobInfo__ entity directly.
  In my case, for example, I can have multiple versions of the same
  filename but I need to get the last one.
  So:
 
   Query query = new Query(__BlobInfo__);
   query.addFilter(filename, FilterOperator.EQUAL, filename);
   query.addSort(creation, SortDirection.DESCENDING);
 
   DatastoreService datastore =
  DatastoreServiceFactory.getDatastoreService();
   PreparedQuery pq = datastore.prepare(query);
   ListEntity entList = pq.asList(FetchOptions.Builder.withLimit(1));
 
  Hope that helps...
 
  On 6 set, 05:13, Peter Liu tinyee...@gmail.com wrote:
 
   Hi all,
 
   Anyone know a simple way to query BlobInfo?
 
   Simple use case will be query the BlobInfo that has a specific file
   name.
 
   It seems there's a method to query BlobInfo for Python but I can't
   find it for java.
 
   Thanks!

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-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] jsonengine: a JSON storage that requires no server-side coding

2010-09-06 Thread kazunori_279
Hi all,

We have created a JSON storage engine called jsonengine:

-
http://code.google.com/p/jsonengine/

jsonengine is a simple and ultra-scalable JSON storage that works on
Google App Engine. You do not need any server-side Java/Python coding.
Just deploy a jsonengine to App Engine cloud with your appid, and you
can call the REST API from any HTTP client (JavaScript?, Flash, iPhone/
iPad/Android or etc) to get/put/search any kind of JSON documents you
want to use.
-

Any feedback are welcome!

Thanks,

Kaz

-- 
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] jsonengine: a JSON storage that requires no server-side coding

2010-09-06 Thread Gal Dolber
Had the same idea a time ago!
Looks great!

2010/9/6 kazunori_279 kazunori...@gmail.com

 Hi all,

 We have created a JSON storage engine called jsonengine:

 -
 http://code.google.com/p/jsonengine/

 jsonengine is a simple and ultra-scalable JSON storage that works on
 Google App Engine. You do not need any server-side Java/Python coding.
 Just deploy a jsonengine to App Engine cloud with your appid, and you
 can call the REST API from any HTTP client (JavaScript?, Flash, iPhone/
 iPad/Android or etc) to get/put/search any kind of JSON documents you
 want to use.
 -

 Any feedback are welcome!

 Thanks,

 Kaz

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




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



[appengine-java] app eng java plugin not compatible with helios

2010-09-06 Thread syntheticperson
I tried to install google app engine java plugin for eclipse, but it
does not appear to be compatible with the latest helios release of
eclipse.

Cannot complete the install because one or more required items could
not be found.
  Software being installed: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302)
  Missing requirement: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302) requires 'org.eclipse.platform.feature.group
[3.5.0,3.6.0)' but it could not be found

Are there any plans to upgrade google plugin for:

Eclipse Java EE IDE for Web Developers.

Version: Helios Release
Build id: 20100617-1415

?

thanks
-synthetic person

-- 
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: GWT and GAE: Uploading Files to Blobstore

2010-09-06 Thread Jayz
Hey,

I am stuck at exactly the same position. At the line -
form.setAction(url); and before getting to the servlet as pointed by
the url set in form action, I get the Java Heap Exception:
outOfMemoryError. Did you find any workarounds or solution?

~Jayz

On Aug 24, 2:50 pm, rapher heinrich.raph...@googlemail.com wrote:
 i even tried to upload very small files (~4kB), same exception ...

-- 
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] Re: how to use Fedrated Login for my google apps Engine

2010-09-06 Thread l.denardo
Can you please clarify the steps to get that kind of login working? I
can't find documentation about this.

I tried the following:

*Use an app with Google accounts API as authentication option,
accessed thru appspot.com.
Going to http://myapp.appspot.com/a/mydomain.com/ gives access to
general Google login page, which refuses Google Apps accounts.
Omitting final slash, i.e. http://myapp.appspot.com/a/mydomain.com
gives a 404.

*Use an application with Federated login as an option for
authentication, both accessed thru appspot and as a subdomain of my
domain.
Going to http://myapp.appspot.com/a/mydomain.com/ gives access to
general Google login page, which refuses Google Apps accounts, same as
before.

*Use an application restricted to my Google Apps domain accounts.
Accessing http://myapp.appspot.com/a/mydomain.com/ gives a 404 (this
is correct, since there should be no way for users outside my domain
to log in.

I can provide working URLs if this is needed.

Thanks for your advice
Regards
Lorenzo

On Sep 3, 9:12 pm, Ikai L (Google) ika...@google.com wrote:
 This doesn't actually require using federated login: your users just have to
 go to:

 http://mytaskmanager.appspot.com/a/ubob.org

 Federated login usually refers to OpenID:

 http://code.google.com/appengine/articles/openid.html



 On Thu, Sep 2, 2010 at 9:08 PM, Ehsan-ul-haq iehsa...@gmail.com wrote:
  hi

  i have create my Google Apps on Google Apps Engine (http://
  mytasksmanager.appspot.com).

  now i want to create a login interface where user can login in with
  google and google apps account

  i done my Google Account login but i need help how to login with other
  Google Apps Accounts like eh...@ubob.org

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

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/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.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: GAE And ZPT

2010-09-06 Thread Tim Hoffman
Huh

Sorry I don't understand what you are actually trying to do.

I would say the variable you are trying to compare to is not in the
page template
expression engine dictionary.  (ie the name is not accessible by the
template)

I would need to see a great deal more of the template to work out what
you are doing, plus the context parsed to the render method.

to see if  the variable is accessible just put in div
tal:content=nocall: abc tal:on-error=string: variable abc not
defined/

T

On Sep 6, 1:57 pm, mugdha mnimka...@gmail.com wrote:
 yes i done same like this but it not accept it because it can't take
 variable it wants string value or hard coded value

 On Sep 6, 10:49 am, Tim Hoffman zutes...@gmail.com wrote:







  Hi

  The the rhs can be anything/variable/attrubute in scope.
  assuming abc is a variable.

  span tal:condition=python:prox==abc

  or something like that.

  T
  On Sep 6, 12:50 pm, mugdha mnimka...@gmail.com wrote:

   span tal:condition=python:switch=='Proximity'
     span tal:repeat=prox python:proximityList
        span tal:repeat=a python:range(10)nbsp;/span
            span tal:content=python:prox /br
                span tal:condition=python:prox=='Inductive'
           span tal:repeat=induc python:Inductive
               span tal:repeat=a python:range(12)nbsp;/span
           a href=# tal:attributes=id python:induc.id
   tal:content=python:induc.id onclick=javascript:searchLink(id);/
   abr
           /span
                /span
   /span
   /span

   In the above code instead of  inductive  word i have dyanamic word
python:abc   how i can write dynamic string in the right hand side
   of the tal:condition?- Hide quoted text -

  - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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: Uploading 1100 files...

2010-09-06 Thread l.denardo
Hello,
these times are pretty usual for me (Italy) and seem to depend on the
number of files you need to compile and upload.

I just uploaded a test (nearly empty) app, no GWT, one servlet and one
page. That took about 30 seconds.

My business app has numbers like your. I work in Java.
The cloning application files usually gives 700-900 files cloned. Of
these, 100 to 300 get uploaded each time I deploy an update.

Usually, depending on my bandwidth, upload and precompilation can take
3 to 10 minutes. 3-5 more minutes usually go wasted in the will check
again in XX seconds loop.
So 9 to 15 minutes are usual times to deploy for me.

Precompilation is a time-consuming step, which is explained here:

http://code.google.com/events/io/2010/sessions/whats-hot-in-java-for-app-engine.html
(last part of the session).
For what I understood, your files are divided in 4 bulks, which are
then compiled and then uploaded to GAE in compiled form (this is also
a good explanation of why no source is downloadable...no source is
uploaded actually, for what I understand).

Hope the session video helps.

Regards
Lorenzo

On Sep 5, 9:16 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
 Uploading my GWT-application to GAE takes eons lately. For instance, it
 takes 9-10 minutes to upload 275 files.
 Are those times something I should get used to or is GAE only experiencing
 some issues?

 Judging by what Eclipse outputs when uploading only a few files (like when I
 only modify server-side stuff), it seems that each file takes separate
 request to get uploaded. Is that right?

 Regards
  J. Záruba

-- 
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: Datastore StringList or multiple rows?

2010-09-06 Thread ogterran
Thanks Robert.

On Sep 2, 10:20 am, Robert Kluin robert.kl...@gmail.com wrote:
 Hey Jon,
   Emails, users, and ip addresses (typically) look pretty different,
 mixing them is probably not a big deal;  So I suggested not creating
 separate models for emails, IPs, and users names to reduce the number
 of indexes you might need in the future.  For example, if you were
 have an 'active' property on the page that you needed to include while
 searching pages you could include that 'active' property on your
 PageIndex model too.  Then you would only need one composite index
 instead of three.  This may not matter for your application.  It also
 lets you (depending on list sizes) search based on, for instance, an
 email and an ip and GAE's internal merge-join will automatically be
 used.

   I would suggest thinking carefully about how you plan to search your
 data _and_ how you might need to maintain the data.  If you will need
 to specifically access the lists for specific types then I would
 either add the type property or maybe even use the key_name.  I have
 used both methods;  to choose between them you should consider what
 will make your most common use-cases most efficient  and lets you
 handle edge cases when needed.

   Hope that helps.

 Robert



 On Thu, Sep 2, 2010 at 03:39, ogterran jonathanh...@gmail.com wrote:
  Thanks Robert.
  The ancestor query works great. Read the documentation but i guess it
  didn't click
  I was looking for a children() like function in the parent.

  I don't think I can put it in the same search list.

  What if I add a field for type?

  class PageIndex(db.Model):
     type = db.StringProperty(required=True)
     searchlist= db.StringListProperty(required=True)

   type can be emails, ipaddresses, usernames
   searchlist can be whatever list.

   Is this better?

   Thanks
   Jon

  On Sep 1, 3:29 pm, Robert Kluin robert.kl...@gmail.com wrote:
  Hi Jon,
    1) When you build a query you can specify the ancestor.
         PageIndex.all(keys_only=True).ancestor(thepage)
       
  http://code.google.com/appengine/docs/python/datastore/queryclass.htm...

    2) I would not add multiple list properties to the same model.  I
  would also probably not make different kinds in this case.
  Personally, depending on exactly how you will need to query and
  maintain the data, I would either just put each field in the same
  search list or make a PageIndex entity for each type.

  Robert

  On Wed, Sep 1, 2010 at 02:39, ogterran jonathanh...@gmail.com wrote:
   Couple more questions
   1. If I have the parent entity, how do get all the child entities?
   2. If I have more fan out lists, so usernames is one, but now i have
   emails and ipaddresses
      is it more efficient to create different entity kinds or just add
   another list to PageIndex?
     i.e.
   class PageIndex(db.Model):
       usernames = db.StringListProperty(required=True)
       emails = db.StringListProperty(required=True)
       ipaddreses= db.StringListProperty(required=True)

   or

   class PageIndex(db.Model):
       usernames = db.StringListProperty(required=True)
   class PageEmailIndex(db.Model):
       emails = db.StringListProperty(required=True)
   class PageIpAddressIndex(db.Model):
       ipaddreses= db.StringListProperty(required=True)

   Thanks
   Jon

   On Aug 31, 11:19 pm, ogterran jonathanh...@gmail.com wrote:
   Thanks guys for all the responses.
   I checked out Brett's presentation and he talks about this exact issue
   on how to optimize using list properties

   So following the Brett's presentation, create 2 entitiy kinds.
   Page and PageIndex where Page is the parent of PageIndex (specify
   parent in PageIndex constructor)

   class Page(db.Model):
       pagekey= db.StringProperty(required=True)

   class PageIndex(db.Model):
       usernames = db.StringListProperty(required=True)

   indexes = db.GqlQuery(SELECT __key__ FROM MessageIndex 
                                      WHERE usernames = :1, username)
   keys = [k.parent() for k in indexes]
   pages = db.get(keys)

   Since we are querying by key, it is 10x faster, and no unnecessary
   serialization.
   We can fan out by adding multiple PageIndex, if reaches 5000 max.

   Is this about right?

   Thanks
   Jon

   On Aug 31, 9:34 am, Jeff Schwartz jefftschwa...@gmail.com wrote:

A list property's size is limited to 5000.

If you only want to know if a user has visited a page, you can use 
the first
model  query it returning only keys to avoid list serialization 
issues. In
addition, key only queries are very fast.

Additionally, if your Page model's key had a string name that was the
pagecode then you could even use the key to identify the page. In 
other
words, you'd be materializing the view in the key of the model. This 
would
eliminate the need to serialize the entity entirely when it is used 
for
lookup.

Writing out the entity after having updated its list 

Re: [google-appengine] Re: Uploading 1100 files...

2010-09-06 Thread Jaroslav Záruba
Hi and thanks Lorenzo

On Mon, Sep 6, 2010 at 10:23 AM, l.denardo lorenzo.dena...@gmail.comwrote:

 Hello,
 these times are pretty usual for me (Italy) and seem to depend on the
 number of files you need to compile and upload.

 I just uploaded a test (nearly empty) app, no GWT, one servlet and one
 page. That took about 30 seconds.

 My business app has numbers like your. I work in Java.
 The cloning application files usually gives 700-900 files cloned. Of
 these, 100 to 300 get uploaded each time I deploy an update.

 Usually, depending on my bandwidth, upload and precompilation can take
 3 to 10 minutes. 3-5 more minutes usually go wasted in the will check
 again in XX seconds loop.
 So 9 to 15 minutes are usual times to deploy for me.


My bandwith is 50mbps, and it took me 10 mins only to _upload_ those 250-270
files, pre-compilation, cloning etc _not included_. (Judging by what the log
shows.)

Precompilation is a time-consuming step, which is explained here:


 http://code.google.com/events/io/2010/sessions/whats-hot-in-java-for-app-engine.html
 (last part of the session).
 For what I understood, your files are divided in 4 bulks, which are
 then compiled and then uploaded to GAE in compiled form (this is also
 a good explanation of why no source is downloadable...no source is
 uploaded actually, for what I understand).


If it takes 10 min to upload 270 small files then uploading probably does
way more then what it says. I can't imagine it takes 10 min to upload that
small amount of data. (Even if it was 1MB.)

Hope the session video helps.


I can't watch it right now, unfortunately GWT is currently not my job,
rather a hobby.
I will watch it later, thanks nevertheless.

Cheers
  JZ



 Regards
 Lorenzo

 On Sep 5, 9:16 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
  Uploading my GWT-application to GAE takes eons lately. For instance, it
  takes 9-10 minutes to upload 275 files.
  Are those times something I should get used to or is GAE only
 experiencing
  some issues?
 
  Judging by what Eclipse outputs when uploading only a few files (like
 when I
  only modify server-side stuff), it seems that each file takes separate
  request to get uploaded. Is that right?
 
  Regards
   J. Záruba

 --
 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: Web Service

2010-09-06 Thread SivaTumma
@Tsolmon Narantsogt,
If you are not satisfied with whatever the above posts said, consider
this.

A Web Service is any kind of a request - response cycle over the web.
Refer to this image...
 img src=http://chart.apis.google.com/chart?
cht=p3chd=s:Uf9achs=250x100chl=January|February|March|April/
This was a web service that just reads parameters from the url (refer
to the url of this image by going to its properties), and returns a
RAW image file as a response. Thats it.

In a natural sense, any http url is a web service. All the web servers
just hold a web service code that understands the url and give a
response.

-- 
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: Web Service

2010-09-06 Thread SivaTumma
@Tsolmon Narantsogt,
If you are not satisfied with whatever the above posts said, consider
this.
A Web Service is any kind of a request - response cycle over the web.
Refer to this image...
 img src=http://chart.apis.google.com/chart?
cht=p3chd=s:Uf9achs=250x100chl=January|February|March|April/
This was a web service that just reads parameters from the url (refer
to the url of this image by going to its properties), and returns a
RAW image file as a response. Thats it.
In a natural sense, any http url is a web service. All the web
servers
just hold a web service code that understands the url and give a
response.

-- 
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] What is the most efficient way to do a large IN query in GQL?

2010-09-06 Thread johnterran
Hi

In BigTable, what is the most efficient way to do a large IN query?
My IN parameter list is typically 500 but can be 10k+
i.e.
class User(db.Model):
name = db.StringProperty(required = True)
id = db.StringProperty(required = True)

given a list of ids that can consist of 10k list, i need to retrieve
all the names
 users = db.GqlQuery(SELECT * FROM User where id IN :1,
ids)


what is the best way to do this?

Thanks
John

-- 
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] Slow Datastore queries

2010-09-06 Thread Flips
Hi,

I have a problem I cannot solve. To process tasks that are too
complicated for app engine I have a little stack implemented in
datastore. Tasks will be inserted in it and my dedicated servers are
periodically asking app engine for new tasks. It basicly works like
this: http://pastebin.com/NKt2z1PQ

The problem is that this query is getting really slow sometimes e.g.
http://i55.tinypic.com/25p643m.png

This slow query execution is not normal or is it?

Best Regards
Philip

-- 
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: Web Service

2010-09-06 Thread SivaTumma
@Tsolmon Narantsogt,

To be more specific, I believe that a python's GAE hello world program
is itself a web service.
What to return as a response to a http request is upto you. Web
services can be just a calculator or a big heroic Code that returns
some great data after processing a great code in the server.

PS: Please correct me if you feel that I may be wrong in conception of
a Web Service.

-- 
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: What is the most efficient way to do a large IN query in GQL?

2010-09-06 Thread Niklasro(.appspot)


On Sep 6, 8:51 am, johnterran johnter...@gmail.com wrote:
 Hi

 In BigTable, what is the most efficient way to do a large IN query?
 My IN parameter list is typically 500 but can be 10k+
 i.e.
 class User(db.Model):
     name = db.StringProperty(required = True)
     id = db.StringProperty(required = True)

 given a list of ids that can consist of 10k list, i need to retrieve
 all the names
  users = db.GqlQuery(SELECT * FROM User where id IN :1,
                             ids)

 what is the best way to do this?

 Thanks
 John
I propose parametrize pairs to a dictionary using Query and not GQL ie
User.All( ...+ logic
ie filter(url id, ['www.domain010703.com.','domain010703']) with IN
pairs listed as dictionary. I didn't program it but the data structure
seems adequate.
Thank you
Niklas R

-- 
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: Development server hangs when blobstore streams video

2010-09-06 Thread Niklasro(.appspot)


On Sep 3, 1:58 pm, Harry glazed...@gmail.com wrote:
 Hi,

 I'm using an open source video player for playing uploaded video files
 (via Blobstore).
 If video file is small (less than a megabyte), it serves properly.
 But when the file is larger, it crashes the development server.
 Do I need to use the BlobStore reader to break up the file and serve
 it in segments? Or what else ?
 Has anyone managed to setup streaming videos using the blobstore?

 Thanks
I can upload and somewhat stream upto 50 mb video yes( Can you?).
Which format is best: mp4, flv, 3gp or other? Here's GAE serving mp4
direct output (no template) video byi
www.koolbusiness.com/serve/AMIfv965AEZaAqKhMrfPBo3ApE3es5abthDgYJEDdlL1iwL-XyptPaQVM4If19wuhPCh_2cbjDXFXuUTVudFwebAbN125RBXSqmMakIBU7ij2OSEZRNhYQ4M9DsWCUr9Lh9GR9prJnRmQXe6J93m2_zvwLZJMEHScKJl5gt-zbyXJSlvXCygMJ4

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

2010-09-06 Thread Niklasro(.appspot)
On Sep 4, 6:26 pm, Robert Kluin robert.kl...@gmail.com wrote:
 What do you mean inheritance?  Your link is broke.

 Robert

 On Sat, Sep 4, 2010 at 12:06, lisandro lisandr...@gmail.com wrote:
  Hi!
  Someone has some code working correctly that uses inheritance?
  Example?
  Since
  in the link:

 http://code.google.com/intl/es/appengine/docs/java/datastore/relation...
  He does not say anything in the matter...

  Regards
  Lisandro
I inherit a custom request handler enabling i18n for instance to
activate, reset or delete the django language cookie. You can call it
BaseHandler or i18NHandler available by i18nhandler.googlecode.com
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.



Re: [google-appengine] App Engine for Busisness

2010-09-06 Thread Nick Johnson (Google)
Hi Ben,

On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung oom...@gmail.com wrote:

 Hi, App Engine Team:

 Our RD developers, We are very interested in App Engine for Business.

 Because we are assessing to migrate our platform to GAE platform, so
 there are some questions for you, hope you can help us to answer them.

 1) We know there are many 1MB limitation, like datastore for each
 entity, image resize, mail attachment, URL fetch, memcache value.


 Does App Engine for Business support to revoke these limitations by
 paying more costs?


We're working to increase all these limits, but when we do, it's likely to
be across the board, not just for Business customers.



 2) Does App Engine for Business support many applications to access
 ONE datastore(DB)?


No. If you can explain why you need to do this, we can probably suggest a
better alternative, though.



 3) Does App Engine for Business support request handler for more
 than 30 seconds?


This is another limitation we're working on. Please contact me off-list if
you're interested in learning more.



 4) Does App Engine for Business support socket to use?


No, all outgoing requests must be via one of our APIs, such as URLFetch.

-Nick Johnson



 Thanks in advance.

 BR,

 Ben

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




-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

-- 
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] Can't deploy a localized application due to 3000 files limit

2010-09-06 Thread burnayev
I've just tried to deploy an application of mine translated into just
4 languages and went over the 3000 files limit.

Most of the files are the permutations generated by GWT compiler so
jarring the Java class files won't help much.

Zipping the static files is a hassle and will likely hurt the
performance badly.

Is there a natural solution to this?

Kind regards,
Borys Burnayev
actioncomplete.com
GTD for Android and Web

-- 
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: image retrieval from datastore in form of thumbnail

2010-09-06 Thread Niklasro
On Sep 3, 7:02 am, mugdha mnimka...@gmail.com wrote:
 How to retrieve image from datastore so we can create thumbnail  of
 that image?
It works here get_serving_url and just append number to wanted size eg
http://lh4.ggpht.com/jQaoYIcjfo29WZH3O0SVu23IomfoCIW8sHXOaJMqYdzh3ltSFuf52wGQyWi9W0nGOmdPWeOy_SQqvvZgeqzH4YbS8vCePA=s120
and
http://lh4.ggpht.com/jQaoYIcjfo29WZH3O0SVu23IomfoCIW8sHXOaJMqYdzh3ltSFuf52wGQyWi9W0nGOmdPWeOy_SQqvvZgeqzH4YbS8vCePA
where in this case =120 makes the thumbnail via get_serving_url
Hope this clarifies
Niklas R

-- 
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: get_serving_url and DDOS attacks

2010-09-06 Thread Niklasro
On Sep 5, 8:47 am, Flips p...@script-network.com wrote:
 Hi,

 I am actually planning a new project that will heavily use the high-
 performance image serving. I actually have doubts that it is ready for
 productive usage, because we don't have any logs about it and its
 requests probably won't be reflected on the app engine dashboard. How
 are we supposed to detect DDOS attacks on image urls? Or what could we
 do if a top 500 website displays our image by using the image url on
 its site and consumes our traffic budget within minutes?

 Best Regards
 Philip
You can simulate an attack to see whether get_serving_url handles and
balances it.
Cheers
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.



[google-appengine] Re: Using OR statement in datastore

2010-09-06 Thread Niklasro
On Sep 6, 3:53 am, killer barney ajcha...@gmail.com wrote:
 I'm a dunce. how does query filters help in the OR process?

 So do I do a query with contains dog and cat?

 On Sep 5, 8:44 pm, Nate Bauernfeind nate.bauernfe...@gmail.com
 wrote:

 http://code.google.com/appengine/docs/java/datastore/queriesandindexe...

  See Query Filters. Should answer your how-to question.

  In the backend it actually does two separate queries, but in parallel (then
  does any merging/union-ing based on your entire query after retrieving the
  results). There are some google tech talks on how the datastore works which
  should give you a really good idea why it is done this way.

  On Sun, Sep 5, 2010 at 10:34 PM, killer barney ajcha...@gmail.com wrote:
   This is something I never figured out how to do.  How do you
   supplement an OR statement in datastore?

   So let's say I have a user who sells Dogs and Cats.  How do I get a
   list of all of the dogs and cats that a user sells? I thought of 2
   ways, query both tables and combine the results in the backend or
   create an additional generic table Animals that tabulates all of the
   selling action into a list and search the Animals entries for that
   user.

   I created this scenario just so you can have an idea of what I am
   looking for, but in reality, my cats table may consist of hundreds
   of users.  I'm not sure if creating a combined list property of Dog
   and Cat users is the way to go.  And doing two queries just doesn't
   seem right either.  Is there a better way to do this?
A replacement in many cases is the IN operator. Did you try it?
Regards
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.



[google-appengine] Re: Removing and installing GAE SDK for python

2010-09-06 Thread lenic
Thanks for you answer Tim,
I did upload some applications with python 2.6 but I had to move the
dev_appserver.py file into my project directory but  it worked. Then I
got this idea to remove everything and start all over with python 2.5
and now I can not se my old applications in the launcher.

So now I can create an application in the launcher but I can not
browse or stop the application and I get this error;

Traceback (most recent call last):
  File launcher\mainframe.pyc, line 336, in OnEdit
  File launcher\taskcontroller.pyc, line 257, in Edit
  File subprocess.pyc, line 594, in __init__
  File subprocess.pyc, line 816, in _execute_child
WindowsError: [Error 5] Åtkomst nekad
WARNING:root:Already running a task for D:\GAE\helloworld\txtlena2!
ERROR:root:
Cannot run project D:\GAE\helloworld\txtlena2.  Please confirm these
values in your Preferences, or take an appropriate measure to fix it
(e.g. install Python).

Do you now what I schould do, did I miss something?

/Lenic



On 3 Sep, 02:16, Tim Hoffman zutes...@gmail.com wrote:
 Hi

 I Can't help with this specific error, but

 for starters being newbie, under no circumstances use python 2.6.

 You should only use 2.5.x

 T

 On Sep 2, 3:17 pm, lenic desireel.lars...@gmail.com wrote:



  Hi, I am a newbee and I am in a real mess...:(
  I had installed
  GAE SDK in july (it was the latest version then)
  Python 2.6
  and it worked fine and I could develop appspot application.
  Then I removed GAE SDK yesterday and installed it again,..
  Now I can´t open the launcher and get this message in the log file.
  (Without open the launcher).
  Does anyone have a tip?
  Thanks/Lenic

  Traceback (most recent call last):
    File GoogleAppEngineLauncher.py, line 42, in module
    File wx\_core.pyc, line 7913, in __init__
    File wx\_core.pyc, line 7487, in _BootstrapApp
    File launcher\app.pyc, line 53, in OnInit
    File launcher\app.pyc, line 97, in _CreateModels
    File launcher\maintable.pyc, line 35, in __init__
    File launcher\maintable.pyc, line 86, in _LoadProjects
    File launcher\project.pyc, line 63, in ProjectWithConfigParser
    File launcher\project.pyc, line 260, in _LoadFromConfigParser
    File ConfigParser.pyc, line 520, in get
  ConfigParser.NoOptionError: No option 'name' in section: '9'

-- 
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] App Engine for Busisness

2010-09-06 Thread Jeff Schwartz
Hi Nick. I am very encourage by your responses to Ben, specifically
regarding increasing all these limits across the board and not just for
business customers. Can you say when Google will announce their intentions
regarding the specifics of these pending changes? It would be very
beneficial to know these prior to their availability so as to better factor
their benefits into our designs now.

Jeff

On Mon, Sep 6, 2010 at 8:30 AM, Nick Johnson (Google) 
nick.john...@google.com wrote:

 Hi Ben,

 On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung oom...@gmail.com wrote:

 Hi, App Engine Team:

 Our RD developers, We are very interested in App Engine for Business.

 Because we are assessing to migrate our platform to GAE platform, so
 there are some questions for you, hope you can help us to answer them.

 1) We know there are many 1MB limitation, like datastore for each
 entity, image resize, mail attachment, URL fetch, memcache value.


 Does App Engine for Business support to revoke these limitations by
 paying more costs?


 We're working to increase all these limits, but when we do, it's likely to
 be across the board, not just for Business customers.



 2) Does App Engine for Business support many applications to access
 ONE datastore(DB)?


 No. If you can explain why you need to do this, we can probably suggest a
 better alternative, though.



 3) Does App Engine for Business support request handler for more
 than 30 seconds?


 This is another limitation we're working on. Please contact me off-list if
 you're interested in learning more.



 4) Does App Engine for Business support socket to use?


 No, all outgoing requests must be via one of our APIs, such as URLFetch.

 -Nick Johnson



 Thanks in advance.

 BR,

 Ben

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




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd.
 :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

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




-- 
--
Jeff

-- 
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] App Engine for Busisness

2010-09-06 Thread Nick Johnson (Google)
Hi Jeff,

I can enable 10 minute timeouts for offline requests (eg, task queue and
cron) and offline URLFetch calls right now, if you have an App ID that
requires it. Other features aren't currently on our timeline, so we can't
provide a concrete estimate of when we're likely to make them available.

-Nick Johnson

On Mon, Sep 6, 2010 at 3:47 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 Hi Nick. I am very encourage by your responses to Ben, specifically
 regarding increasing all these limits across the board and not just for
 business customers. Can you say when Google will announce their intentions
 regarding the specifics of these pending changes? It would be very
 beneficial to know these prior to their availability so as to better factor
 their benefits into our designs now.

 Jeff

 On Mon, Sep 6, 2010 at 8:30 AM, Nick Johnson (Google) 
 nick.john...@google.com wrote:

 Hi Ben,

 On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung oom...@gmail.com wrote:

 Hi, App Engine Team:

 Our RD developers, We are very interested in App Engine for Business.

 Because we are assessing to migrate our platform to GAE platform, so
 there are some questions for you, hope you can help us to answer them.

 1) We know there are many 1MB limitation, like datastore for each
 entity, image resize, mail attachment, URL fetch, memcache value.


 Does App Engine for Business support to revoke these limitations by
 paying more costs?


 We're working to increase all these limits, but when we do, it's likely to
 be across the board, not just for Business customers.



 2) Does App Engine for Business support many applications to access
 ONE datastore(DB)?


 No. If you can explain why you need to do this, we can probably suggest a
 better alternative, though.



 3) Does App Engine for Business support request handler for more
 than 30 seconds?


 This is another limitation we're working on. Please contact me off-list if
 you're interested in learning more.



 4) Does App Engine for Business support socket to use?


 No, all outgoing requests must be via one of our APIs, such as URLFetch.

 -Nick Johnson



 Thanks in advance.

 BR,

 Ben

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




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd.
 :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

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




 --
 --
 Jeff

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




-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

-- 
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: how to use Fedrated Login for my google apps Engine

2010-09-06 Thread Robert Kluin
I do not think that functionality actually exists for user apps, at
least not automatically.  There is no out-of-the-box way to get this
working with Google's login options.  Maybe if we're lucky Ikai was
accidentally talking about a soon to be released feature.

I think Ikai was referring to appspot.com itself.


Robert





On Mon, Sep 6, 2010 at 04:14, l.denardo lorenzo.dena...@gmail.com wrote:
 Can you please clarify the steps to get that kind of login working? I
 can't find documentation about this.

 I tried the following:

 *Use an app with Google accounts API as authentication option,
 accessed thru appspot.com.
 Going to http://myapp.appspot.com/a/mydomain.com/ gives access to
 general Google login page, which refuses Google Apps accounts.
 Omitting final slash, i.e. http://myapp.appspot.com/a/mydomain.com
 gives a 404.

 *Use an application with Federated login as an option for
 authentication, both accessed thru appspot and as a subdomain of my
 domain.
 Going to http://myapp.appspot.com/a/mydomain.com/ gives access to
 general Google login page, which refuses Google Apps accounts, same as
 before.

 *Use an application restricted to my Google Apps domain accounts.
 Accessing http://myapp.appspot.com/a/mydomain.com/ gives a 404 (this
 is correct, since there should be no way for users outside my domain
 to log in.

 I can provide working URLs if this is needed.

 Thanks for your advice
 Regards
 Lorenzo

 On Sep 3, 9:12 pm, Ikai L (Google) ika...@google.com wrote:
 This doesn't actually require using federated login: your users just have to
 go to:

 http://mytaskmanager.appspot.com/a/ubob.org

 Federated login usually refers to OpenID:

 http://code.google.com/appengine/articles/openid.html



 On Thu, Sep 2, 2010 at 9:08 PM, Ehsan-ul-haq iehsa...@gmail.com wrote:
  hi

  i have create my Google Apps on Google Apps Engine (http://
  mytasksmanager.appspot.com).

  now i want to create a login interface where user can login in with
  google and google apps account

  i done my Google Account login but i need help how to login with other
  Google Apps Accounts like eh...@ubob.org

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

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/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.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] What is the most efficient way to do a large IN query in GQL?

2010-09-06 Thread Robert Kluin
It will not be possible to use IN for something like that.  IN will
execute a series of queries, and it is is capped at 30.

If possible, I would suggest you make the entity key_name the user's
id.  Then you can just build a list of keys and fetch those -- but I
really doubt you'll get anything close to 10K on a single fetch.


Robert



On Mon, Sep 6, 2010 at 04:51, johnterran johnter...@gmail.com wrote:
 Hi

 In BigTable, what is the most efficient way to do a large IN query?
 My IN parameter list is typically 500 but can be 10k+
 i.e.
 class User(db.Model):
    name = db.StringProperty(required = True)
    id = db.StringProperty(required = True)

 given a list of ids that can consist of 10k list, i need to retrieve
 all the names
  users = db.GqlQuery(SELECT * FROM User where id IN :1,
                            ids)


 what is the best way to do this?

 Thanks
 John

 --
 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] App Engine for Busisness

2010-09-06 Thread Jeff Schwartz
Hi Nick. Thank you for your offer. I would like to develop a tasks that
would benefit from the longer durations. Specifically, it involves sending
out emails for all members participating within a social graph. Sort of like
the way members receive email notifications on Facebook when someone adds a
comment to a post. As the number of members that have to be sent
notifications is indeterminate I was concerned about the feasibility of
supporting this on AppEngine but I am sure that 10 minutes would be more
than enough time.

Let me do this, let me try it first without any increase enabled. I will
take some metrics and try to forecast that out to hundreds or even thousands
of emails being sent. If I determine that I am going to run into problems
running within the current limits I will email you a request to raise them
for me. Would that be OK?

Jeff

On Mon, Sep 6, 2010 at 10:55 AM, Nick Johnson (Google) 
nick.john...@google.com wrote:

 Hi Jeff,

 I can enable 10 minute timeouts for offline requests (eg, task queue and
 cron) and offline URLFetch calls right now, if you have an App ID that
 requires it. Other features aren't currently on our timeline, so we can't
 provide a concrete estimate of when we're likely to make them available.

 -Nick Johnson

 On Mon, Sep 6, 2010 at 3:47 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 Hi Nick. I am very encourage by your responses to Ben, specifically
 regarding increasing all these limits across the board and not just for
 business customers. Can you say when Google will announce their intentions
 regarding the specifics of these pending changes? It would be very
 beneficial to know these prior to their availability so as to better factor
 their benefits into our designs now.

 Jeff

 On Mon, Sep 6, 2010 at 8:30 AM, Nick Johnson (Google) 
 nick.john...@google.com wrote:

 Hi Ben,

 On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung oom...@gmail.com wrote:

 Hi, App Engine Team:

 Our RD developers, We are very interested in App Engine for Business.

 Because we are assessing to migrate our platform to GAE platform, so
 there are some questions for you, hope you can help us to answer them.

 1) We know there are many 1MB limitation, like datastore for each
 entity, image resize, mail attachment, URL fetch, memcache value.


 Does App Engine for Business support to revoke these limitations by
 paying more costs?


 We're working to increase all these limits, but when we do, it's likely
 to be across the board, not just for Business customers.



 2) Does App Engine for Business support many applications to access
 ONE datastore(DB)?


 No. If you can explain why you need to do this, we can probably suggest a
 better alternative, though.



 3) Does App Engine for Business support request handler for more
 than 30 seconds?


 This is another limitation we're working on. Please contact me off-list
 if you're interested in learning more.



 4) Does App Engine for Business support socket to use?


 No, all outgoing requests must be via one of our APIs, such as URLFetch.

 -Nick Johnson



 Thanks in advance.

 BR,

 Ben

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




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd.
 :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number: 368047

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




 --
 --
 Jeff

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




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd.
 :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to 

Re: [google-appengine] Slow Datastore queries

2010-09-06 Thread Robert Kluin
How many entities did it fetch?

The datastore is not fast, so if you are grabbing a couple hundred
entities that number may not be too unexpected.


Robert



On Mon, Sep 6, 2010 at 05:00, Flips p...@script-network.com wrote:
 Hi,

 I have a problem I cannot solve. To process tasks that are too
 complicated for app engine I have a little stack implemented in
 datastore. Tasks will be inserted in it and my dedicated servers are
 periodically asking app engine for new tasks. It basicly works like
 this: http://pastebin.com/NKt2z1PQ

 The problem is that this query is getting really slow sometimes e.g.
 http://i55.tinypic.com/25p643m.png

 This slow query execution is not normal or is it?

 Best Regards
 Philip

 --
 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] App Engine for Busisness

2010-09-06 Thread Nick Johnson (Google)
Hi Jeff,

On Mon, Sep 6, 2010 at 5:00 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 Hi Nick. Thank you for your offer. I would like to develop a tasks that
 would benefit from the longer durations. Specifically, it involves sending
 out emails for all members participating within a social graph. Sort of like
 the way members receive email notifications on Facebook when someone adds a
 comment to a post. As the number of members that have to be sent
 notifications is indeterminate I was concerned about the feasibility of
 supporting this on AppEngine but I am sure that 10 minutes would be more
 than enough time.


I'd highly recommend building your app such that it shards the email sending
into many tasks regardless. Longer deadlines will help, but your app will be
more scalable - and faster to send emails in bulk - if you can break it down
into smaller tasks.



 Let me do this, let me try it first without any increase enabled. I will
 take some metrics and try to forecast that out to hundreds or even thousands
 of emails being sent. If I determine that I am going to run into problems
 running within the current limits I will email you a request to raise them
 for me. Would that be OK?


That's fine - feel free to contact me if you need an increase.

-Nick Johnson


 Jeff

 On Mon, Sep 6, 2010 at 10:55 AM, Nick Johnson (Google) 
 nick.john...@google.com wrote:

 Hi Jeff,

 I can enable 10 minute timeouts for offline requests (eg, task queue and
 cron) and offline URLFetch calls right now, if you have an App ID that
 requires it. Other features aren't currently on our timeline, so we can't
 provide a concrete estimate of when we're likely to make them available.

 -Nick Johnson

 On Mon, Sep 6, 2010 at 3:47 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 Hi Nick. I am very encourage by your responses to Ben, specifically
 regarding increasing all these limits across the board and not just for
 business customers. Can you say when Google will announce their intentions
 regarding the specifics of these pending changes? It would be very
 beneficial to know these prior to their availability so as to better factor
 their benefits into our designs now.

 Jeff

 On Mon, Sep 6, 2010 at 8:30 AM, Nick Johnson (Google) 
 nick.john...@google.com wrote:

 Hi Ben,

 On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung oom...@gmail.com wrote:

 Hi, App Engine Team:

 Our RD developers, We are very interested in App Engine for Business.

 Because we are assessing to migrate our platform to GAE platform, so
 there are some questions for you, hope you can help us to answer them.

 1) We know there are many 1MB limitation, like datastore for each
 entity, image resize, mail attachment, URL fetch, memcache value.


 Does App Engine for Business support to revoke these limitations by
 paying more costs?


 We're working to increase all these limits, but when we do, it's likely
 to be across the board, not just for Business customers.



 2) Does App Engine for Business support many applications to access
 ONE datastore(DB)?


 No. If you can explain why you need to do this, we can probably suggest
 a better alternative, though.



 3) Does App Engine for Business support request handler for more
 than 30 seconds?


 This is another limitation we're working on. Please contact me off-list
 if you're interested in learning more.



 4) Does App Engine for Business support socket to use?


 No, all outgoing requests must be via one of our APIs, such as URLFetch.

 -Nick Johnson



 Thanks in advance.

 BR,

 Ben

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




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland
 Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number: 368047

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




 --
 --
 Jeff

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

Re: [google-appengine] App Engine for Busisness

2010-09-06 Thread Robert Kluin
Jeff, if you will be sending hundreds or thousands of emails wouldn't
it make much more sense to do them in smaller batches?  Wouldn't that
make failures easier to handle too?  If you somehow miss sending, or
send duplicates to 50 people that would be a lot better than 1,000
people, right?


Robert






On Mon, Sep 6, 2010 at 12:00, Jeff Schwartz jefftschwa...@gmail.com wrote:
 Hi Nick. Thank you for your offer. I would like to develop a tasks that
 would benefit from the longer durations. Specifically, it involves sending
 out emails for all members participating within a social graph. Sort of like
 the way members receive email notifications on Facebook when someone adds a
 comment to a post. As the number of members that have to be sent
 notifications is indeterminate I was concerned about the feasibility of
 supporting this on AppEngine but I am sure that 10 minutes would be more
 than enough time.

 Let me do this, let me try it first without any increase enabled. I will
 take some metrics and try to forecast that out to hundreds or even thousands
 of emails being sent. If I determine that I am going to run into problems
 running within the current limits I will email you a request to raise them
 for me. Would that be OK?

 Jeff

 On Mon, Sep 6, 2010 at 10:55 AM, Nick Johnson (Google)
 nick.john...@google.com wrote:

 Hi Jeff,
 I can enable 10 minute timeouts for offline requests (eg, task queue and
 cron) and offline URLFetch calls right now, if you have an App ID that
 requires it. Other features aren't currently on our timeline, so we can't
 provide a concrete estimate of when we're likely to make them available.
 -Nick Johnson

 On Mon, Sep 6, 2010 at 3:47 PM, Jeff Schwartz jefftschwa...@gmail.com
 wrote:

 Hi Nick. I am very encourage by your responses to Ben, specifically
 regarding increasing all these limits across the board and not just for
 business customers. Can you say when Google will announce their intentions
 regarding the specifics of these pending changes? It would be very
 beneficial to know these prior to their availability so as to better factor
 their benefits into our designs now.

 Jeff

 On Mon, Sep 6, 2010 at 8:30 AM, Nick Johnson (Google)
 nick.john...@google.com wrote:

 Hi Ben,

 On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung oom...@gmail.com wrote:

 Hi, App Engine Team:

 Our RD developers, We are very interested in App Engine for Business.

 Because we are assessing to migrate our platform to GAE platform, so
 there are some questions for you, hope you can help us to answer them.

 1) We know there are many 1MB limitation, like datastore for each
 entity, image resize, mail attachment, URL fetch, memcache value.

 Does App Engine for Business support to revoke these limitations by
 paying more costs?

 We're working to increase all these limits, but when we do, it's likely
 to be across the board, not just for Business customers.


 2) Does App Engine for Business support many applications to access
 ONE datastore(DB)?

 No. If you can explain why you need to do this, we can probably suggest
 a better alternative, though.


 3) Does App Engine for Business support request handler for more
 than 30 seconds?

 This is another limitation we're working on. Please contact me off-list
 if you're interested in learning more.


 4) Does App Engine for Business support socket to use?

 No, all outgoing requests must be via one of our APIs, such as URLFetch.
 -Nick Johnson


 Thanks in advance.

 BR,

 Ben

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




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland
 Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number: 368047

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



 --
 --
 Jeff

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



 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd.
 :: Registered in Dublin, Ireland, Registration Number: 368047
 

[google-appengine] Uploading to the blobstore directly

2010-09-06 Thread Shay Erlichmen
I have an OCR service* that allows you to upload pictures and get the
text.
The service has a very simple REST API (/post_image) where you POST
the image (and some metadata) and you get the result in JSON format.
The service is called from Flash, Web, and other clients.

So far I've used blobs in the datastore to store and serve the images
and I want to move to the blobstore (in order to use get_serving_url)
As far as I can see, I need to break my /post_image method into two
steps: the first step will be to call a new method /prepare_upload
which will get me the upload url (by calling create_upload_url(...)),
then call the returned upload_url and get the JSON data.
To make things more awkward, the result from the upload url cannot be
the JSON data itself but a redirect to a url that returns the JSON
data.

Questions:
1. Did I analyze it right? Is is a two stepper flow for my clients?
are there any unnecessary steps??.
2. In case I got it correct, are there any plans for direct upload to
the blobstore (without calling create_upload_url(...))





* service for illustration purpose only, I don't really have this
exact service.

-- 
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 use myself domain

2010-09-06 Thread MD
hello everyone.
i hope use myself domain.
i buy a domain from google, my app setted the domain, but i can not
access my app use the domain.
please help me.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] GAE Email deliverability rate?

2010-09-06 Thread TaeWoo
Does anyone know?

-- 
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] Eclipse Infocenter Hosted in Google Apps

2010-09-06 Thread Michael Kaplan
Is it possible to host an Eclipse Infocenter in the Google Apps.
Infrastructure? What is the procedure?

An example Eclipse Infocenter is at http://help.eclipse.org

-- 
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 question about how datastore works.

2010-09-06 Thread nacho
Hi, first at all i must say that i come from the relational database
world. I have a few doubts about how datastore works being schemaless.

For example, let's say that i have a presistent class User that haves
only 3 propertys: id (int), username (String) and password (String).

So, i deploy my application on appengine and create a user with
username = ian and password = ian123.

And then i make a query, searching all the users, and i get the user
ian.

Ok, until here i understand this perfect.

DOUBT 1: What happens, if i make a change to the User class and, for
example, i add to the class the property sex (String). Then i deploy
my app again in the appengine.

Now i create a new user with this values username = mcculloch,
password = mc123 and sex = M and persist the user.

I think that if i make the query to get all the useri will get the 2
users, and the property sex to the user ian will be null. Is that
correct?

DOUBT 2: Now i realize that i don't want to store the sex of the user,
and also i think that i don't want the id property as an integer. Now
i want that the username will be the key of the class, so i remove the
id property and add the annotation to make the username property the
Primary Key of the entity.

Then i deploy the app on appengine, create a new user with this
values: username = eric, password = eric123.

What does happen now i query all the users, will i get the two users?

DOUBT 3: Let's say that i realize that i really need the sex property
for the users, so i add again the sex property to the User class and
deploy again to the datastore.

If i query for all the users? What datastore will return to me? All
the users? Only those that the sex is not null?

DOUBT 4: Finally, what happens if i want to have 2 enviroments of my
app? I have to create 2 apps on appengine? If this is the way, let's
supose that in my production enviroment i have a lot of data and i
want to make a copy of that data to my testing app so i can make
testing with good data. Can i copy that data from one app to another?
How could i?

-- 
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] deleting app: how to release URL?

2010-09-06 Thread meric
Hi, I have some appengine sites... I want to delete some sites so I
don't fill up my max 10, but when I went to the delete page it says
However, the application id (xxx) will remain reserved approximately
forever.

Why? It'll be a pity because I got some good names that might be
useful for others. :(

I get how this might stop people setting up businesses selling google
app-ids, but you could always release it at some random time around
couple of years in the future, rather than approximately forever!

-- 
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] Use get_serving_url with default image?

2010-09-06 Thread aWaKeNiNG
Hi,

The users of my website have an optional avatar (with 2 different
sizes) with key_name = username (example big/username.jpg and medium/
username.jpg). If they haven't avatar I show a default image.

Now I want to use the new feature automatic image thumbnailing with
its advantages.

The problem is that if the user has not an avatar. I cant know if it
is a valid image.

Solutions in my mind:

1. Insert the default image in all users, then it always exists (i
think a bad idea).
2. A default image that appengine load if doesnt exist the url image.
But i dont know if appengine has implemented this option.

Any ideas?

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] XML Signature

2010-09-06 Thread Florian Piltz
Hi,

I am trying to build an app that does the following:

 -  Receives a XML file via a http POST request
 -  Signs this XML with a private key (see wikipedia/XML_Signature)
 -  Returns the resulting signed XML

It should be not too difficult, but I'm already stuck.

Solutions I tried:

 - Using Java for it, but I get 'NoClassDefFoundError:
javax.xml.crypto.dsig.XMLSignatureFactory is a restricted class.'

 - Using Python's PyXMLSec library, but it's not compatible.

 - Using PHP5 (running in Quercus), and use the XMLSec library to sign
the XML's. This did not work because i'm missing the OpenSSL
extension.

So, is there any way I could sign an XML with a digital signature
(just like SAML does) using AppEngine? I'm about to give up :(

-- 
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: Enhancing Classes from an external Project

2010-09-06 Thread Andreas
Hi Alex,
I have a similar problem. How have you solved it? I want to create a
Google web application project and persist classes which are defined
in external projects, but i get java.lang.ClassNotFoundException
althoug I have this project in the class path.

Thanks
Andreas

-- 
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] Proposal : CapabilityDisabledError enhancements

2010-09-06 Thread Anon
Hi,

Would it be possible to enhance the way read-only mode of GAE handled during
read-only maintain periods? We should not only be able to probe if write
access is enabled on datastore but also in case its in read-only mode
(scheduled downtime) it should return, in 'minutes', the probable time when
the datastore would enable write access again.

This should not be a big issue considering its a scheduled downtime and the
info is already made available on GAE status page. What this will allow us
is to display this probable time to end user and ask him/her to return after
that much period of time to post new commet/reply or whatever requires a
write access to datastore.

Thanks,
www.geoleaks.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] Got an Error while retriving all tuples form an entity

2010-09-06 Thread Hari
Uncaught exception from servlet
Object Manager has been closed
org.datanucleus.exceptions.NucleusUserException: Object Manager has
been closed
at
com.google.appengine.runtime.Request.process-376dbc5a4dfece22(Request.java)
at
org.datanucleus.ObjectManagerImpl.assertIsOpen(ObjectManagerImpl.java:
3876)
at
org.datanucleus.ObjectManagerImpl.getFetchPlan(ObjectManagerImpl.java:
376)
at org.datanucleus.store.query.Query.getFetchPlan(Query.java:497)
at org.datanucleus.store.appengine.query.DatastoreQuery
$6.apply(DatastoreQuery.java:631)
at org.datanucleus.store.appengine.query.DatastoreQuery
$6.apply(DatastoreQuery.java:630)
at
org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.java:
94)
at org.datanucleus.store.appengine.query.LazyResult
$LazyAbstractListIterator.computeNext(LazyResult.java:215)
at
org.datanucleus.store.appengine.query.AbstractIterator.tryToComputeNext(AbstractIterator.java:
132)
at
org.datanucleus.store.appengine.query.AbstractIterator.hasNext(AbstractIterator.java:
127)
at org.datanucleus.store.appengine.query.LazyResult
$AbstractListIterator.hasNext(LazyResult.java:169)
at org.apache.jsp.viewall_jsp._jspService(viewall_jsp.java:49)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
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(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(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(BlockingApplicationHandler.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(LocalTraceSpanBuilder.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.java:
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.java:
831)
at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
103)
at

[google-appengine] Failed to run grails test-app -unit

2010-09-06 Thread Hu Kai
Everytime I run grails test-app -unit I got following the stacktrace I
attached, but app can be successfully deployed on google app

My peristence.xml is this :

?xml version=1.0 encoding=UTF-8 ?
persistence xmlns=http://java.sun.com/xml/ns/persistence;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
version=1.0

persistence-unit name=transactions-optional
 
providerorg.datanucleus.store.appengine.jpa.DatastorePersistenceProvider/
provider
properties
property name=datanucleus.NontransactionalRead
value=true/
property name=datanucleus.NontransactionalWrite
value=true/
property name=datanucleus.ConnectionURL
value=appengine/
/properties
/persistence-unit

/persistence


Any idea about this?


=StackTrace=


[enhance] org.datanucleus.exceptions.NucleusUserException: Class
transactions-optional found to be part of persistence-unit {1} so
loading it in case it is persistable
  [enhance] at
org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:
787)
  [enhance] at
org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:
802)
  [enhance] at
org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:
545)
  [enhance] at
org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:
1252)
  [enhance] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
  [enhance] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
  [enhance] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
  [enhance] at java.lang.reflect.Method.invoke(Method.java:597)
  [enhance] at
com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:57)
  [enhance] at
com.google.appengine.tools.enhancer.Enhance.init(Enhance.java:60)
  [enhance] at
com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41)
  [enhance] Caused by:
org.datanucleus.exceptions.ClassNotResolvedException: Class WEB-
INF.classes.com.iretro.data.Retro was not found in the CLASSPATH.
Please check your specification and your CLASSPATH.
  [enhance] at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
250)
  [enhance] at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
415)
  [enhance] at
org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:
767)
  [enhance] ... 10 more
  [enhance] Nested Throwables StackTrace:
  [enhance] Class WEB-INF.classes.com.iretro.data.Retro was not
found in the CLASSPATH. Please check your specification and your
CLASSPATH.
  [enhance] org.datanucleus.exceptions.ClassNotResolvedException:
Class WEB-INF.classes.com.iretro.data.Retro was not found in the
CLASSPATH. Please check your specification and your CLASSPATH.
  [enhance] at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
250)
  [enhance] at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
415)
  [enhance] at
org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:
767)
  [enhance] at
org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:
802)
  [enhance] at
org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:
545)
  [enhance] at
org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:
1252)
  [enhance] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
  [enhance] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
  [enhance] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
  [enhance] at java.lang.reflect.Method.invoke(Method.java:597)
  [enhance] at
com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:57)
  [enhance] at
com.google.appengine.tools.enhancer.Enhance.init(Enhance.java:60)
  [enhance] at
com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41)
  [enhance] Class WEB-
INF.classes.org.grails.spring.scope.PrototypeScopeMetadataResolver
was not found in the CLASSPATH. Please check your specification and
your CLASSPATH.
  [enhance] org.datanucleus.exceptions.ClassNotResolvedException:
Class WEB-
INF.classes.org.grails.spring.scope.PrototypeScopeMetadataResolver
was not found in the CLASSPATH. Please check your specification and
your CLASSPATH.
  [enhance] at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
250)
  [enhance] at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
415)
  [enhance] at

[google-appengine] Routing a blank domain

2010-09-06 Thread Niklasro(.appspot)
Here are dig results from domains I try harmonize to 1 DNS provider.
They now have 2 since serving  50 MB then GAE gets less interesting.
The first one is accessible blank eg domain.tld while the rest I try
harmonize welcoming advice how to enable blank domain access.

;  DiG 9.7.0-P1  alltfunkar.com
;; global options: +cmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 25142
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;alltfunkar.com.IN  A

;; ANSWER SECTION:
alltfunkar.com. 1717IN  A   216.239.32.21
alltfunkar.com. 1717IN  A   216.239.34.21
alltfunkar.com. 1717IN  A   216.239.36.21
alltfunkar.com. 1717IN  A   216.239.38.21

;; Query time: 10 msec
;; SERVER: 83.255.245.11#53(83.255.245.11)
;; WHEN: Mon Sep  6 07:11:21 2010
;; MSG SIZE  rcvd: 96

Second dig (this is unreachable blank)

;  DiG 9.7.0-P1  koolbusiness.com
;; global options: +cmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 52016
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;koolbusiness.com.  IN  A

;; AUTHORITY SECTION:
koolbusiness.com.   1732IN  SOA dns1.name-services.com. 
info.name-
services.com. 2002050701 10001 1801 604801 181

;; Query time: 6 msec
;; SERVER: 83.255.245.11#53(83.255.245.11)
;; WHEN: Mon Sep  6 07:11:12 2010
;; MSG SIZE  rcvd: 94

Third dig (this isreachable blank but only via other DNS than above
since we moved it from hosting to appspot)

;  DiG 9.7.0-P1  montao.com.br
;; global options: +cmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 27369
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;montao.com.br. IN  A

;; ANSWER SECTION:
montao.com.br.  3555IN  A   72.167.140.157

;; Query time: 6 msec
;; SERVER: 83.255.245.11#53(83.255.245.11)
;; WHEN: Mon Sep  6 07:11:05 2010
;; MSG SIZE  rcvd: 47

...Do you agree what to do to harmoize these three different setups?
What do you propose?
Sincerely,
Nick Rosencrantz

-- 
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] Appengine business - updates

2010-09-06 Thread har_shan
hi team,

any updates on AppEngine business that can be shared? its been a while
since this has been updated
http://code.google.com/appengine/business/roadmap.html

Thanks much.

-- 
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] Over Quota for over 6 hours and Green Dashboard !

2010-09-06 Thread yohan radioactive
Hi there,

Simple one : the app has been displaying an 503 Over Quota error for
the last 6 hours although the dashboard shows green everywhere.

I suspect the app has been disabled from your side since the
previous deployment was killing the quota real fast. I fixed it in
latest release now can I get my app back please ? (serving 10M
requests per day... being down like that is not an option).

Thanks and Regards,
(i love GAE but more useful error messages would be appreciable)

-- 
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] GAE Email deliverability rate?

2010-09-06 Thread Robert Kluin
Is this what you are asking about?

http://code.google.com/appengine/docs/quotas.html#Mail







On Sun, Sep 5, 2010 at 21:29, TaeWoo tae...@gmail.com wrote:
 Does anyone know?

 --
 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 use myself domain

2010-09-06 Thread Robert Kluin
Try this:
http://code.google.com/appengine/docs/domain.html








On Sat, Sep 4, 2010 at 16:42, MD caoyongfeng0...@gmail.com wrote:
 hello everyone.
 i hope use myself domain.
 i buy a domain from google, my app setted the domain, but i can not
 access my app use the domain.
 please help me.

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-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] App Engine for Busisness

2010-09-06 Thread Jeff Schwartz
Hi Nick. Yes, I intend to shard as much as possible and to create small,
efficient tasks :)

Thanks again.

Jeff

On Mon, Sep 6, 2010 at 12:07 PM, Nick Johnson (Google) 
nick.john...@google.com wrote:

 Hi Jeff,

 On Mon, Sep 6, 2010 at 5:00 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 Hi Nick. Thank you for your offer. I would like to develop a tasks that
 would benefit from the longer durations. Specifically, it involves sending
 out emails for all members participating within a social graph. Sort of like
 the way members receive email notifications on Facebook when someone adds a
 comment to a post. As the number of members that have to be sent
 notifications is indeterminate I was concerned about the feasibility of
 supporting this on AppEngine but I am sure that 10 minutes would be more
 than enough time.


 I'd highly recommend building your app such that it shards the email
 sending into many tasks regardless. Longer deadlines will help, but your app
 will be more scalable - and faster to send emails in bulk - if you can break
 it down into smaller tasks.



 Let me do this, let me try it first without any increase enabled. I will
 take some metrics and try to forecast that out to hundreds or even thousands
 of emails being sent. If I determine that I am going to run into problems
 running within the current limits I will email you a request to raise them
 for me. Would that be OK?


 That's fine - feel free to contact me if you need an increase.

 -Nick Johnson


 Jeff

 On Mon, Sep 6, 2010 at 10:55 AM, Nick Johnson (Google) 
 nick.john...@google.com wrote:

 Hi Jeff,

 I can enable 10 minute timeouts for offline requests (eg, task queue and
 cron) and offline URLFetch calls right now, if you have an App ID that
 requires it. Other features aren't currently on our timeline, so we can't
 provide a concrete estimate of when we're likely to make them available.

 -Nick Johnson

 On Mon, Sep 6, 2010 at 3:47 PM, Jeff Schwartz 
 jefftschwa...@gmail.comwrote:

 Hi Nick. I am very encourage by your responses to Ben, specifically
 regarding increasing all these limits across the board and not just for
 business customers. Can you say when Google will announce their intentions
 regarding the specifics of these pending changes? It would be very
 beneficial to know these prior to their availability so as to better factor
 their benefits into our designs now.

 Jeff

 On Mon, Sep 6, 2010 at 8:30 AM, Nick Johnson (Google) 
 nick.john...@google.com wrote:

 Hi Ben,

 On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung oom...@gmail.com wrote:

 Hi, App Engine Team:

 Our RD developers, We are very interested in App Engine for Business.

 Because we are assessing to migrate our platform to GAE platform, so
 there are some questions for you, hope you can help us to answer them.

 1) We know there are many 1MB limitation, like datastore for each
 entity, image resize, mail attachment, URL fetch, memcache value.


 Does App Engine for Business support to revoke these limitations by
 paying more costs?


 We're working to increase all these limits, but when we do, it's likely
 to be across the board, not just for Business customers.



 2) Does App Engine for Business support many applications to access
 ONE datastore(DB)?


 No. If you can explain why you need to do this, we can probably suggest
 a better alternative, though.



 3) Does App Engine for Business support request handler for more
 than 30 seconds?


 This is another limitation we're working on. Please contact me off-list
 if you're interested in learning more.



 4) Does App Engine for Business support socket to use?


 No, all outgoing requests must be via one of our APIs, such as
 URLFetch.

 -Nick Johnson



 Thanks in advance.

 BR,

 Ben

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




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland
 Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number: 368047

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




 --
 --
 Jeff

 --
 You received this message because you are subscribed to the Google
 Groups Google App Engine group.
 To post to this group, send email to 

Re: [google-appengine] App Engine for Busisness

2010-09-06 Thread Jeff Schwartz
You are correct. That is my intention. Thanks.

Jeff

On Mon, Sep 6, 2010 at 12:08 PM, Robert Kluin robert.kl...@gmail.comwrote:

 Jeff, if you will be sending hundreds or thousands of emails wouldn't
 it make much more sense to do them in smaller batches?  Wouldn't that
 make failures easier to handle too?  If you somehow miss sending, or
 send duplicates to 50 people that would be a lot better than 1,000
 people, right?


 Robert






 On Mon, Sep 6, 2010 at 12:00, Jeff Schwartz jefftschwa...@gmail.com
 wrote:
  Hi Nick. Thank you for your offer. I would like to develop a tasks that
  would benefit from the longer durations. Specifically, it involves
 sending
  out emails for all members participating within a social graph. Sort of
 like
  the way members receive email notifications on Facebook when someone adds
 a
  comment to a post. As the number of members that have to be sent
  notifications is indeterminate I was concerned about the feasibility of
  supporting this on AppEngine but I am sure that 10 minutes would be more
  than enough time.
 
  Let me do this, let me try it first without any increase enabled. I will
  take some metrics and try to forecast that out to hundreds or even
 thousands
  of emails being sent. If I determine that I am going to run into problems
  running within the current limits I will email you a request to raise
 them
  for me. Would that be OK?
 
  Jeff
 
  On Mon, Sep 6, 2010 at 10:55 AM, Nick Johnson (Google)
  nick.john...@google.com wrote:
 
  Hi Jeff,
  I can enable 10 minute timeouts for offline requests (eg, task queue and
  cron) and offline URLFetch calls right now, if you have an App ID that
  requires it. Other features aren't currently on our timeline, so we
 can't
  provide a concrete estimate of when we're likely to make them available.
  -Nick Johnson
 
  On Mon, Sep 6, 2010 at 3:47 PM, Jeff Schwartz jefftschwa...@gmail.com
  wrote:
 
  Hi Nick. I am very encourage by your responses to Ben, specifically
  regarding increasing all these limits across the board and not just for
  business customers. Can you say when Google will announce their
 intentions
  regarding the specifics of these pending changes? It would be very
  beneficial to know these prior to their availability so as to better
 factor
  their benefits into our designs now.
 
  Jeff
 
  On Mon, Sep 6, 2010 at 8:30 AM, Nick Johnson (Google)
  nick.john...@google.com wrote:
 
  Hi Ben,
 
  On Fri, Sep 3, 2010 at 10:12 AM, Ben Chung oom...@gmail.com wrote:
 
  Hi, App Engine Team:
 
  Our RD developers, We are very interested in App Engine for Business.
 
  Because we are assessing to migrate our platform to GAE platform, so
  there are some questions for you, hope you can help us to answer
 them.
 
  1) We know there are many 1MB limitation, like datastore for each
  entity, image resize, mail attachment, URL fetch, memcache value.
 
  Does App Engine for Business support to revoke these limitations by
  paying more costs?
 
  We're working to increase all these limits, but when we do, it's
 likely
  to be across the board, not just for Business customers.
 
 
  2) Does App Engine for Business support many applications to access
  ONE datastore(DB)?
 
  No. If you can explain why you need to do this, we can probably
 suggest
  a better alternative, though.
 
 
  3) Does App Engine for Business support request handler for more
  than 30 seconds?
 
  This is another limitation we're working on. Please contact me
 off-list
  if you're interested in learning more.
 
 
  4) Does App Engine for Business support socket to use?
 
  No, all outgoing requests must be via one of our APIs, such as
 URLFetch.
  -Nick Johnson
 
 
  Thanks in advance.
 
  BR,
 
  Ben
 
  --
  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.
 
 
 
 
  --
  Nick Johnson, Developer Programs Engineer, App Engine Google Ireland
  Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047
  Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
  Number: 368047
 
  --
  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.
 
 
 
  --
  --
  Jeff
 
  --
  You received this message because you are subscribed to the Google
 Groups
  Google App Engine group.
  To post to this group, send email 

Re: [google-appengine] Newbie question about how datastore works.

2010-09-06 Thread Robert Kluin
Have you setup a test app and just tried some of these things?

Some notes:
- I use Python, but I think Java behaves pretty similar.
- They have some articles that are good reading too.  I am not sure if
there is a java equivalent for all of these or not, but they are quite
useful.
  http://code.google.com/appengine/articles/datastore/overview.html

Answers:
Doubt 1:  Yes.  Existing data will not be automatically modified.

   If you can specify default values, you may want to further
investigate how that will impact you.  It will not modify the data,
but perhaps when you access that property on an old model you'll get
the default.  Not sure how it works in Java.


Doubt 2:Not sure about Java.  In Python you can freely switch
between integer ids and string key names,  so you would get both
back.

Doubt 3:  If you query by sex you would only get users with the sex
property defined.

Doubt 4:  Look into the bulk loader.  Then go star issue 776,
http://code.google.com/p/googleappengine/issues/detail?id=776


Robert



On Sat, Sep 4, 2010 at 13:47, nacho vela.igna...@gmail.com wrote:
 Hi, first at all i must say that i come from the relational database
 world. I have a few doubts about how datastore works being schemaless.

 For example, let's say that i have a presistent class User that haves
 only 3 propertys: id (int), username (String) and password (String).

 So, i deploy my application on appengine and create a user with
 username = ian and password = ian123.

 And then i make a query, searching all the users, and i get the user
 ian.

 Ok, until here i understand this perfect.

 DOUBT 1: What happens, if i make a change to the User class and, for
 example, i add to the class the property sex (String). Then i deploy
 my app again in the appengine.

 Now i create a new user with this values username = mcculloch,
 password = mc123 and sex = M and persist the user.

 I think that if i make the query to get all the useri will get the 2
 users, and the property sex to the user ian will be null. Is that
 correct?

 DOUBT 2: Now i realize that i don't want to store the sex of the user,
 and also i think that i don't want the id property as an integer. Now
 i want that the username will be the key of the class, so i remove the
 id property and add the annotation to make the username property the
 Primary Key of the entity.

 Then i deploy the app on appengine, create a new user with this
 values: username = eric, password = eric123.

 What does happen now i query all the users, will i get the two users?

 DOUBT 3: Let's say that i realize that i really need the sex property
 for the users, so i add again the sex property to the User class and
 deploy again to the datastore.

 If i query for all the users? What datastore will return to me? All
 the users? Only those that the sex is not null?

 DOUBT 4: Finally, what happens if i want to have 2 enviroments of my
 app? I have to create 2 apps on appengine? If this is the way, let's
 supose that in my production enviroment i have a lot of data and i
 want to make a copy of that data to my testing app so i can make
 testing with good data. Can i copy that data from one app to another?
 How could i?

 --
 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] Re: Newbie question about how datastore works.

2010-09-06 Thread Tim Hoffman
Hi

You might like to say if you are using python or java, that way
examples can be relevent to your choice.


 DOUBT 1: What happens, if i make a change to the User class and, for
 example, i add to the class the property sex (String). Then i deploy
 my app again in the appengine.

 Now i create a new user with this values username = mcculloch,
 password = mc123 and sex = M and persist the user.

 I think that if i make the query to get all the useri will get the 2
 users, and the property sex to the user ian will be null. Is that
 correct?

Yes.


 DOUBT 2: Now i realize that i don't want to store the sex of the user,
 and also i think that i don't want the id property as an integer. Now
 i want that the username will be the key of the class, so i remove the
 id property and add the annotation to make the username property the
 Primary Key of the entity.

 Then i deploy the app on appengine, create a new user with this
 values: username = eric, password = eric123.

 What does happen now i query all the users, will i get the two users?

Ok a bunch of stuff going on here.

You refer to the primary key, do you mean as per SQL or some aspect of
a  java api.
In the underlying datastore terms the key of entity once created is
fixed.

You would have to copy the original entity and delete the old one to
change the key.

As to the sex property.  (I will start using python behaviour) you can
drop the sex property definition from the
entity but the value assigned to the Sex property will still exist in
entities that had the value set.

If you change the type of a property then you will need to fetch the
old entity and update the value of the property to the type the model
expects.  This may require you to manipulate the underlying raw
datastore entity or create a transition class to help you migrate the
schema (i prefer the former).
if not you will get errors when you retrieve entities with a mis-
matched entity definition.

If you fetch all uses User.all().fetch(n) you will get all users added
assuming you have fixed above.

 DOUBT 3: Let's say that i realize that i really need the sex property
 for the users, so i add again the sex property to the User class and
 deploy again to the datastore.

 If i query for all the users? What datastore will return to me? All
 the users? Only those that the sex is not null?

All users will be returned, and some will still have a value for sex.
You can't do a not null query unless you have actually stored None
(python) in a property.  (More specifically you can't query for
entities that have not had a property value set).


 DOUBT 4: Finally, what happens if i want to have 2 enviroments of my
 app? I have to create 2 apps on appengine? If this is the way, let's
 supose that in my production enviroment i have a lot of data and i
 want to make a copy of that data to my testing app so i can make
 testing with good data. Can i copy that data from one app to another?
 How could i?

See http://code.google.com/appengine/docs/python/tools/uploadingdata.html

T

-- 
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: Reports, backups for Java?

2010-09-06 Thread Francois Masurel
You might want to star this issue : 
http://code.google.com/p/googleappengine/issues/detail?id=776

On 6 sep, 02:00, Ali Laith ali.la...@gmail.com wrote:
 I have been using App Engine since the day it was released, created a
 business App and currently customers feeding data into the system.

 Now the problem..

 1) There is no simple straight forward way to generate PDF reports in
 App Engine..

 2) There is no simple way to roll back data ..

 So you create a new version, data changed, you want to roll back.. or
 you want to test a new version in a testing environment...This is not
 the tutorials page, seriously how would update a new version without
 testing; especially when you have critical data..

 These are basic and crucial requirements that needs to be addressed if
 serious business application is to be created...

 Regards,
 Ali

-- 
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] OAuth and Android

2010-09-06 Thread Paddy Foran
Hello, all.

I'm the developer behind the android2cloud project. I'm using Signpost
to connect via OAuth to Google App Engine, running on Python.

A single user has reported a weird OAuthExpectationFailed error.
What's weird about it is that it only appears when they're operating
on 3G-- not on WiFi. I've spoofed their account (with their express
permission) and haven't been able to reproduce the issue.

Can anyone give me more information on the OAuthExpectationFailed
exception? Is there any way to determine what was expected, what was
received, and how they differ?

Any information or help on this would be awesome. I've also put in a
request with the Signpost development group, and will be contacting
Orange, the carrier of the user, but any information is more than I
have right now. I'm stumped.

If anyone's curious, the history is here: 
http://code.google.com/p/android2cloud/issues/detail?id=31

Thanks,
Paddy Foran

-- 
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] Use get_serving_url with default image?

2010-09-06 Thread Barry Hunter
On 4 September 2010 15:38, aWaKeNiNG wrote:
 2. A default image that appengine load if doesnt exist the url image.
 But i dont know if appengine has implemented this option.

Surely that's very easy for your application to implement? (and not
really possible for appengine to implement anyway!)

The getServeingUrl/get_serving_url function need you to pass a
blob_key for the image.

So your application must store a blob key per user. That key is
probably stored in your user model, which you store when the user
uploads a image.

So if the user has not uploaded an image, you have no blogkey for that user.

In which case you just serve a default url.

-- 
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: Uploading to the blobstore directly

2010-09-06 Thread John McLaughlin
I think you've got the picture.  I was dealing with this sort of thing
a couple weeks ago and wrote a cookbook page that kinda-sorta makes it
a one step process.
http://appengine-cookbook.appspot.com/recipe/just-in-time-blobstore-upload-urls

Let me know if it's helpful.

-- John

On Sep 5, 11:03 am, Shay Erlichmen erlich...@gmail.com wrote:
 I have an OCR service* that allows you to upload pictures and get the
 text.
 The service has a very simple REST API (/post_image) where you POST
 the image (and some metadata) and you get the result in JSON format.
 The service is called from Flash, Web, and other clients.

 So far I've used blobs in the datastore to store and serve the images
 and I want to move to the blobstore (in order to use get_serving_url)
 As far as I can see, I need to break my /post_image method into two
 steps: the first step will be to call a new method /prepare_upload
 which will get me the upload url (by calling create_upload_url(...)),
 then call the returned upload_url and get the JSON data.
 To make things more awkward, the result from the upload url cannot be
 the JSON data itself but a redirect to a url that returns the JSON
 data.

 Questions:
 1. Did I analyze it right? Is is a two stepper flow for my clients?
 are there any unnecessary steps??.
 2. In case I got it correct, are there any plans for direct upload to
 the blobstore (without calling create_upload_url(...))

 * service for illustration purpose only, I don't really have this
 exact service.

-- 
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: Newbie question about how datastore works.

2010-09-06 Thread nacho
Hi, thanks both.

I am using Java api and i try the questions and i get the results that
you said to me.

I am really affraid to make a model with the present requirements, and
that the client in six months want to make really big changes.

On 6 sep, 13:58, Tim Hoffman zutes...@gmail.com wrote:
 Hi

 You might like to say if you are using python or java, that way
 examples can be relevent to your choice.



  DOUBT 1: What happens, if i make a change to the User class and, for
  example, i add to the class the property sex (String). Then i deploy
  my app again in the appengine.

  Now i create a new user with this values username = mcculloch,
  password = mc123 and sex = M and persist the user.

  I think that if i make the query to get all the useri will get the 2
  users, and the property sex to the user ian will be null. Is that
  correct?

 Yes.



  DOUBT 2: Now i realize that i don't want to store the sex of the user,
  and also i think that i don't want the id property as an integer. Now
  i want that the username will be the key of the class, so i remove the
  id property and add the annotation to make the username property the
  Primary Key of the entity.

  Then i deploy the app on appengine, create a new user with this
  values: username = eric, password = eric123.

  What does happen now i query all the users, will i get the two users?

 Ok a bunch of stuff going on here.

 You refer to the primary key, do you mean as per SQL or some aspect of
 a  java api.
 In the underlying datastore terms the key of entity once created is
 fixed.

 You would have to copy the original entity and delete the old one to
 change the key.

 As to the sex property.  (I will start using python behaviour) you can
 drop the sex property definition from the
 entity but the value assigned to the Sex property will still exist in
 entities that had the value set.

 If you change the type of a property then you will need to fetch the
 old entity and update the value of the property to the type the model
 expects.  This may require you to manipulate the underlying raw
 datastore entity or create a transition class to help you migrate the
 schema (i prefer the former).
 if not you will get errors when you retrieve entities with a mis-
 matched entity definition.

 If you fetch all uses User.all().fetch(n) you will get all users added
 assuming you have fixed above.

  DOUBT 3: Let's say that i realize that i really need the sex property
  for the users, so i add again the sex property to the User class and
  deploy again to the datastore.

  If i query for all the users? What datastore will return to me? All
  the users? Only those that the sex is not null?

 All users will be returned, and some will still have a value for sex.
 You can't do a not null query unless you have actually stored None
 (python) in a property.  (More specifically you can't query for
 entities that have not had a property value set).



  DOUBT 4: Finally, what happens if i want to have 2 enviroments of my
  app? I have to create 2 apps on appengine? If this is the way, let's
  supose that in my production enviroment i have a lot of data and i
  want to make a copy of that data to my testing app so i can make
  testing with good data. Can i copy that data from one app to another?
  How could i?

 Seehttp://code.google.com/appengine/docs/python/tools/uploadingdata.html

 T

-- 
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: Newbie question about how datastore works.

2010-09-06 Thread nacho
For example, a stupid but probably example.

My application will let the users admin different sites. So a User can
have many Sites. Ok, perfect.

My client sayd that the User is the owner of the Sites. Ok, perfect.

But in real life, the User of my application is an employee of a
company. So, could it be that in a company that is separated in
sectors, many people would like to admin a Site in my application. So,
in this case, the model changes and a Site is owned by a Company and
the Users belongs to a Company. And different Users can have different
Roles to admin a Site that is owned by the user's Company.

If i make the model based on what is asking now my client (many Sites
owned by a User) and then, in 6 months, my client realizes that wants
to change the application a do what i say (a User belongs to a
Company, and a Company can have many Sites, and the users have Roles
to admin the Sites) i think that with the Datastore i will pull out
the hair of my head to make a change so big to the model. Or don't?


But in really a User of my site will be an employee of a Company

On 6 sep, 13:58, Tim Hoffman zutes...@gmail.com wrote:
 Hi

 You might like to say if you are using python or java, that way
 examples can be relevent to your choice.



  DOUBT 1: What happens, if i make a change to the User class and, for
  example, i add to the class the property sex (String). Then i deploy
  my app again in the appengine.

  Now i create a new user with this values username = mcculloch,
  password = mc123 and sex = M and persist the user.

  I think that if i make the query to get all the useri will get the 2
  users, and the property sex to the user ian will be null. Is that
  correct?

 Yes.



  DOUBT 2: Now i realize that i don't want to store the sex of the user,
  and also i think that i don't want the id property as an integer. Now
  i want that the username will be the key of the class, so i remove the
  id property and add the annotation to make the username property the
  Primary Key of the entity.

  Then i deploy the app on appengine, create a new user with this
  values: username = eric, password = eric123.

  What does happen now i query all the users, will i get the two users?

 Ok a bunch of stuff going on here.

 You refer to the primary key, do you mean as per SQL or some aspect of
 a  java api.
 In the underlying datastore terms the key of entity once created is
 fixed.

 You would have to copy the original entity and delete the old one to
 change the key.

 As to the sex property.  (I will start using python behaviour) you can
 drop the sex property definition from the
 entity but the value assigned to the Sex property will still exist in
 entities that had the value set.

 If you change the type of a property then you will need to fetch the
 old entity and update the value of the property to the type the model
 expects.  This may require you to manipulate the underlying raw
 datastore entity or create a transition class to help you migrate the
 schema (i prefer the former).
 if not you will get errors when you retrieve entities with a mis-
 matched entity definition.

 If you fetch all uses User.all().fetch(n) you will get all users added
 assuming you have fixed above.

  DOUBT 3: Let's say that i realize that i really need the sex property
  for the users, so i add again the sex property to the User class and
  deploy again to the datastore.

  If i query for all the users? What datastore will return to me? All
  the users? Only those that the sex is not null?

 All users will be returned, and some will still have a value for sex.
 You can't do a not null query unless you have actually stored None
 (python) in a property.  (More specifically you can't query for
 entities that have not had a property value set).



  DOUBT 4: Finally, what happens if i want to have 2 enviroments of my
  app? I have to create 2 apps on appengine? If this is the way, let's
  supose that in my production enviroment i have a lot of data and i
  want to make a copy of that data to my testing app so i can make
  testing with good data. Can i copy that data from one app to another?
  How could i?

 Seehttp://code.google.com/appengine/docs/python/tools/uploadingdata.html

 T

-- 
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 frequent App Engine serving cluster is under unexpectedly high or uneven load errors

2010-09-06 Thread Jeff Schwartz
Hi. I am seeing a lot of these errors lately. For example:

   1.
  1.  09-06 08:09AM 29.858 /renderthumbnailimage.groovy?urlid=1 500
  10071ms 0cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US;
  rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729;
  .NET4.0C),gzip(gfe) See
detailshttp://appengine.google.com/logs/log_detail?app_id=i-emoteversion_id=1.344613534711645021request_id=00048F98AB616389.EF2F9BC0layout=plain

  173.52.28.54 - - [06/Sep/2010:08:09:39 -0700] GET
/renderthumbnailimage.groovy?urlid=1 HTTP/1.1 500 0
http://i-emote.appspot.com/community.groovy; Mozilla/5.0 (Windows;
U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (
.NET CLR 3.5.30729; .NET4.0C),gzip(gfe) i-emote.appspot.com
ms=10072 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.65

  2.  W 09-06 08:09AM 39.929

  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.



Can someone from the AppEngine look into this for me. My app is
http://i-emote.appspot.com. Thanks in advance.

Jeff

-- 
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: get_serving_url and DDOS attacks

2010-09-06 Thread John McLaughlin
I think Philip is most concerned with this statement from the
get_serving_url doc:

The URL returned by this method is always public, but not guessable;
private URLs are not currently supported. If you wish to stop serving
the URL, delete the underlying blob key. This takes up to 24 hours to
take effect.

Makes me go hmmm as well.  I'm not so worried about the server load
on Google, but rather paying for a malicious attack.  My reading of
the docs didn't reveal any opportunities for defensive programming.
For example is there a way to dynamically blacklist addresses that are
hammering a get_serving_url URL?

Another concern is being able to take immediate action to take down
offensive or illegal material.

John

On Sep 6, 6:38 am, Niklasro nikla...@gmail.com wrote:
 On Sep 5, 8:47 am, Flips p...@script-network.com wrote: Hi,

  I am actually planning a new project that will heavily use the high-
  performance image serving. I actually have doubts that it is ready for
  productive usage, because we don't have any logs about it and its
  requests probably won't be reflected on the app engine dashboard. How
  are we supposed to detect DDOS attacks on image urls? Or what could we
  do if a top 500 website displays our image by using the image url on
  its site and consumes our traffic budget within minutes?

  Best Regards
  Philip

 You can simulate an attack to see whether get_serving_url handles and
 balances it.
 Cheers
 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.



[google-appengine] Re: Inheritance

2010-09-06 Thread Geoffrey Spear


On Sep 6, 12:07 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
 He dick head, enough already. Somebody please filter this jerk off the list
 please.

Do you really think replying to this many of the messages makes you
more welcome on the list?

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

2010-09-06 Thread Jeff Schwartz
Yes, actually, I somehow do. This guy got a hold of my email address and
maybe those of others on the group. He was spamming my inbox with hundred of
his crap. It literally brought my email client to its knees. Poor
Thunderbird. Sorry. I didn't mean to annoy anyone. I just wanted to get the
attention of someone on the appengine group to kill this guy on their
server, that' all. I believe my goal has been met.

Jeff

On Mon, Sep 6, 2010 at 4:47 PM, Geoffrey Spear geoffsp...@gmail.com wrote:



 On Sep 6, 12:07 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
  He dick head, enough already. Somebody please filter this jerk off the
 list
  please.

 Do you really think replying to this many of the messages makes you
 more welcome on the list?

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




-- 
--
Jeff

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

2010-09-06 Thread lisandro
Hi ! I have a problem with inheritance, at persist in the datastore.

When persist a child class, the
error is:
We have not found the Meta-Data/annotations for the class
model.RegFechaUsuario.
Please verify that it has put it in a file correct and valid XML

The configuration in the link :
http://code.google.com/intl/es/appengine/docs/java/datastore/relation...,
does not say anything on inheritance.
Since the xmls would be formed?
Could someone make persist classes that use inheritance?

The code:

The parent class:

public  class Fecha implements Serializable {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private String nombre;
@Persistent
private Date fechaIni;
@Persistent
private Date fechaFin;

@Persistent(defaultFetchGroup = true)
ListPartido partidos;

private Long id2;

private Long kind;

public Fecha(String nombre, Date fechaIni, Date fechaFin) {
//super();
this.nombre = nombre;
this.fechaIni = fechaIni;
this.fechaFin = fechaFin;
this.setPartidos(new ArrayListPartido());
}
---
The child class:

@PersistenceCapable(identityType =
IdentityType.APPLICATION,detachable=true)
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public class RegFechaUsuario extends Fecha implements Serializable {

@Persistent
private int puntos;
@Persistent
private Long idUsuarioFecha;
@Persistent
private Long idFechaOriginal;


The register of the class RegFechaUsuario:

public RegFechaUsuario crearFechaParaRegistro(Long idUsuario, Fecha
fechaOriginal,Fecha nuevaFecha) {

ControladorTorneo cGT = new ControladorTorneo();
RegFechaUsuario regFechaUsuario = new
RegFechaUsuario(0,
idUsuario,
fechaOriginal.getId2(),nuevaFecha);

cGT.crearRegFechaUsuario(regFechaUsuario);
return regFechaUsuario;

}

The builder of the child class:
public RegFechaUsuario(int puntos, Long idUsuarioFecha,
Long idFechaOriginal, Fecha fechaRegUsuario) {
super(fechaRegUsuario.getNombre(),
fechaRegUsuario.getFechaIni(),
fechaRegUsuario.getFechaFin());
this.setPuntos(puntos);
this.setIdUsuarioFecha(idUsuarioFecha);
this.setIdFechaOriginal(idFechaOriginal);

}

Save the register in the datastore:

public void crearRegFechaUsuario(RegFechaUsuario regFechaUsuario) {

Transaction tx = pm.currentTransaction();
try {
tx.begin();

pm.makePersistentAll(regFechaUsuario);
//Here is the exception, in makePersistent
tx.commit();
} finally {
// pm.close();
if (tx.isActive()) {
tx.rollback();
}
}

}

Regards
Lisandro

-- 
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] Problem with inheritance and JDO

2010-09-06 Thread lisandro


Hi all,
I copy what they published a time ago and it is a problem that also is
happening to me also to my and there was no response. The link:
http://groups.google.com/group/google-appengine/browse_thread/thread/adfd7cc231506fbf/2a61814cc0d509c4?lnk=gstq=inheritance#2a61814cc0d509c4
  I've used hibernate for a while, and I'm having a bit of trouble
switching to JDO.  I have several entities that all entities will
share.  Rather than a parent table, I'd prefer these columns be
embedded directly in each entity.  As such, I've defined my abstract
entity and child entity in the classes below.  However, whenever I
try
to run my unit tests or the jetty environment, I always receive the
following error.
org.datanucleus.exceptions.NoPersistenceInformationException: The
class com.onwebconsulting.inventory.model.Part is required to be
persistable yet no Meta-Data/Annotations can be found for this class.
Please check that the Meta-Data/annotations is defined in a valid
file
location.]]
According to my Eclipse console I have 1 class that has been
Enhanced.  Any ideas what I'm doing wrong?
DataNucleus Enhancer completed with success for 1 classes. Timings :
input=268 ms, enhance=51 ms, total=319 ms. Consult the log for full
details
@Inheritance(strategy = InheritanceStrategy.NEW_TABLE)
public class Part extends Auditable{
@Persistent
private String name;
@Persistent
private String description;
@Persistent
private String partNumber;
@Persistent
private long quantity;
@Persistent
private String manuacturersPartNumber;
@Persistent
private String manufacturerName;
@Persistent
private String suppliersPartNumber;
@Persistent
private String supplierName;
@Persistent
private String supplierWebsite;
@Persistent
private float salePrice;
@Persistent
private float supplierPrice;
... Getters and Setters
}
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class Auditable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private Date createDate;
@Persistent
private Date updatedDate;
@Persistent
private long version;
public Key getId() {
return id;
}
public Date getCreateDate() {
return createDate;
}
public Date getUpdatedDate() {
return updatedDate;
}
public long getVersion(){
return version;
}

-- 
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: Over Quota for over 6 hours and Green Dashboard !

2010-09-06 Thread Albert
Hi Yohan!

What do you mean by shows green everywhere?

With the way I see it in my admin, the quota resources are shown as
bars with a gray background, and then you see green bars progressing
as you consume your allocated resources. So when you say shows green
everywhere. I'm assuming that you've hit the maximum allocated
resources. Which also explains why you're getting the 503 errors. You
should probably increase your resource allocation by increasing your
billing budget.

But if you literally mean that the dashboard shows green in everything
(even in resources you don't consume), then that definitely seems like
a problem on Google's side.

By the way, congratulations on your high traffic app.

I hope this helps.



Albert

On Sep 6, 10:39 pm, yohan radioactive yohan.radioact...@gmail.com
wrote:
 Hi there,

 Simple one : the app has been displaying an 503 Over Quota error for
 the last 6 hours although the dashboard shows green everywhere.

 I suspect the app has been disabled from your side since the
 previous deployment was killing the quota real fast. I fixed it in
 latest release now can I get my app back please ? (serving 10M
 requests per day... being down like that is not an option).

 Thanks and Regards,
 (i love GAE but more useful error messages would be appreciable)

-- 
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: What is the most efficient way to do a large IN query in GQL?

2010-09-06 Thread johnterran
Hi Robert,

I can't use the key_name.  The ids are not from my site
i.e.
Lets say the ids are from twitter. I want to know how many of the
twitter users
are registered on my site.   So the ids can exists in the datastore,
but it doesn't have to.

Is the best way to get all the users and filter them manually similar
to what Niklas wrote?

Thanks
John

On Sep 6, 8:22 am, Robert Kluin robert.kl...@gmail.com wrote:
 It will not be possible to use IN for something like that.  IN will
 execute a series of queries, and it is is capped at 30.

 If possible, I would suggest you make the entity key_name the user's
 id.  Then you can just build a list of keys and fetch those -- but I
 really doubt you'll get anything close to 10K on a single fetch.

 Robert



 On Mon, Sep 6, 2010 at 04:51, johnterran johnter...@gmail.com wrote:
  Hi

  In BigTable, what is the most efficient way to do a large IN query?
  My IN parameter list is typically 500 but can be 10k+
  i.e.
  class User(db.Model):
     name = db.StringProperty(required = True)
     id = db.StringProperty(required = True)

  given a list of ids that can consist of 10k list, i need to retrieve
  all the names
   users = db.GqlQuery(SELECT * FROM User where id IN :1,
                             ids)

  what is the best way to do this?

  Thanks
  John

  --
  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 
  athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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: Can't deploy a localized application due to 3000 files limit

2010-09-06 Thread burnayev
There are not regular static files. They are generated and re-
generated by GWT compiler.

Every time I hear Google talking about GAE and GWT they position the
products as a seamless and efficient developer-friendly solution.

Having to host the auto-generated code some place else is an awkward
hack that runs counter to Google's official marketing pitch. I'd
rather prefer them to do what they say and provide a natural solution
to the problem.

Kind regards,
Borys

On Sep 6, 10:43 am, Claude Vedovini cla...@vedovini.net wrote:
 If you've got a lot of static files you can host them elsewhere, on a
 CDN like Amazon S3 for example. It's a good practice anyway...

 On Sep 6, 3:22 pm, burnayev burna...@gmail.com wrote:

  I've just tried to deploy an application of mine translated into just
  4 languages and went over the 3000 files limit.

  Most of the files are the permutations generated by GWT compiler so
  jarring the Java class files won't help much.

  Zipping the static files is a hassle and will likely hurt the
  performance badly.

  Is there a natural solution to this?

  Kind regards,
  Borys Burnayev
  actioncomplete.com
  GTD for Android and Web

-- 
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: What is the most efficient way to do a large IN query in GQL?

2010-09-06 Thread Niklasro
On Sep 7, 12:01 am, johnterran johnter...@gmail.com wrote:
 Hi Robert,

 I can't use the key_name.  The ids are not from my site
 i.e.
 Lets say the ids are from twitter. I want to know how many of the
 twitter users
 are registered on my site.   So the ids can exists in the datastore,
 but it doesn't have to.

 Is the best way to get all the users and filter them manually similar
 to what Niklas wrote?

 Thanks
 John

 On Sep 6, 8:22 am, Robert Kluin robert.kl...@gmail.com wrote:

  It will not be possible to use IN for something like that.  IN will
  execute a series of queries, and it is is capped at 30.

  If possible, I would suggest you make the entity key_name the user's
  id.  Then you can just build a list of keys and fetch those -- but I
  really doubt you'll get anything close to 10K on a single fetch.

  Robert

  On Mon, Sep 6, 2010 at 04:51, johnterran johnter...@gmail.com wrote:
   Hi

   In BigTable, what is the most efficient way to do a large IN query?
   My IN parameter list is typically 500 but can be 10k+
   i.e.
   class User(db.Model):
      name = db.StringProperty(required = True)
      id = db.StringProperty(required = True)

   given a list of ids that can consist of 10k list, i need to retrieve
   all the names
    users = db.GqlQuery(SELECT * FROM User where id IN :1,
                              ids)

   what is the best way to do this?

   Thanks
   John
class Match(db.Model):#match other with own
  user=db.UserProperty(verbose_name=myuser)
 
reference=db.ReferenceProperty(OtherModel,collection_name='matched_users',verbose_name=Title)

Here a better(?) structure referenced model ie twitter.matched_users
could do it or even in memcache for something like a dictionary or a
table. Again I didn't program it only proposing similar structure
which solved my logic matching entities
according to nearly arbitrary matches So like making the query like a
dictionary worked for blobs also automatically parametrized via
get_serving_url ie finding the parametrization got querying 2 () only
querying 1 just observing how query parametrizes.
Regards
Niklas (proposing Match class that also can work self-referencing)

-- 
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: What is the most efficient way to do a large IN query in GQL?

2010-09-06 Thread Robert Kluin
Hey John,
  Niklas also has another followup post.  For the exact situation you
are asking about I think he has the right idea.  You could use simply
use a reference property to reference another model, making it very
easy to query. To build those models you will need to iterate over all
users and generate the appropriate cross-reference models.  For that I
suggest looking into cursors and the task queue.

  If you are trying to keep statistics of some sort, I would
pre-compute when ever possible.  In this case you could keep counts of
how many users each source has.  For querying you could add a source
field to your user model indicating the source of the user, then
fetching twitter, facebook, or google users would be much easier.

  If your data set is large, you may want to look into the mapper api.

Robert




On Mon, Sep 6, 2010 at 20:01, johnterran johnter...@gmail.com wrote:
 Hi Robert,

 I can't use the key_name.  The ids are not from my site
 i.e.
 Lets say the ids are from twitter. I want to know how many of the
 twitter users
 are registered on my site.   So the ids can exists in the datastore,
 but it doesn't have to.

 Is the best way to get all the users and filter them manually similar
 to what Niklas wrote?

 Thanks
 John

 On Sep 6, 8:22 am, Robert Kluin robert.kl...@gmail.com wrote:
 It will not be possible to use IN for something like that.  IN will
 execute a series of queries, and it is is capped at 30.

 If possible, I would suggest you make the entity key_name the user's
 id.  Then you can just build a list of keys and fetch those -- but I
 really doubt you'll get anything close to 10K on a single fetch.

 Robert



 On Mon, Sep 6, 2010 at 04:51, johnterran johnter...@gmail.com wrote:
  Hi

  In BigTable, what is the most efficient way to do a large IN query?
  My IN parameter list is typically 500 but can be 10k+
  i.e.
  class User(db.Model):
     name = db.StringProperty(required = True)
     id = db.StringProperty(required = True)

  given a list of ids that can consist of 10k list, i need to retrieve
  all the names
   users = db.GqlQuery(SELECT * FROM User where id IN :1,
                             ids)

  what is the best way to do this?

  Thanks
  John

  --
  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 
  athttp://groups.google.com/group/google-appengine?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-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] what happened to the appengine svn repository?

2010-09-06 Thread cz
It appears to be stuck at version 1.3.5
It has been useful in the past mainly for use in Eclipse as a
reference with Pydev, but lately it's been out of date so much that it
kind of seems pointless to even make the repository public. I'm
assuming there must be some kind of Byzantine build process at Google
that prevents timely commits. Should we just assume this repository is
dead?

-- 
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] GAE / Java : Query on Entity with a dependent element..

2010-09-06 Thread GWTNewbie
Hello:
I have a GAE (and a GWT) app where in I am using JDO for the datastore
integration. I have an entity Customer who can have multiple
addresses.

CUSTOMER Entity:

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Customer {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
Long id;

@Persistent
String customerID;

@Persistent
String customerName;

@Element(dependent = true)
private ListAddress customerAddress;

...

ADDRESS Entity
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Address {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private String name;

@Persistent
private String type;

@Persistent
private String line1;

@Persistent
private String line2;

@Persistent
private String city;

@Persistent
private String state;
..

QUERY..
PersistenceManager pm = PMF.get().getPersistenceManager();

// Check if the customer already exists..
Query queryCustomer = pm.newQuery(Group.class, customerID ==
customerIDParam);
queryCustomer
.declareParameters(String customerIDParam);
ListCustomer customerList = (ListCustomer)
pm.newQuery(queryCustomer).execute(customerData.getCustomerID());

When the query is executed I get an exception:

throws java.lang.IllegalArgumentException' threw an unexpected
exception:
com.google.appengine.api.datastore.DatastoreNeedIndexException: no
matching index found..  datastore-index kind=Address
ancestor=true source=manual
property name=customerAddress_INTEGER_IDX direction=asc/
/datastore-index

I am wondering if I am doing something wrong here. My expectation was
that since this is a basic One to Many dependent relationship, I dont
have to maintain any kind of indices. Any feedback would be
appreciated.
Thanks a lot.

-- 
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: Use get_serving_url with default image?

2010-09-06 Thread Niklasro
On Sep 4, 2:38 pm, aWaKeNiNG theawaken...@gmail.com wrote:
 Hi,

 The users of my website have an optional avatar (with 2 different
 sizes) with key_name = username (example big/username.jpg and medium/
 username.jpg). If they haven't avatar I show a default image.

 Now I want to use the new feature automatic image thumbnailing with
 its advantages.

 The problem is that if the user has not an avatar. I cant know if it
 is a valid image.

 Solutions in my mind:

 1. Insert the default image in all users, then it always exists (i
 think a bad idea).
 2. A default image that appengine load if doesnt exist the url image.
 But i dont know if appengine has implemented this option.

 Any ideas?

 Thank you.
Here's my image class and a link to a demo that displays thumbnail
with get_serving_url
class Image(db.Model):#save one, resize dynamically or convert to
blobstore
 
reference=db.ReferenceProperty(A,collection_name='matched_images',verbose_name=Title)
  primary_image = blobstore.BlobReferenceProperty()
Thumbnail
http://lh3.ggpht.com/u8cUZbdyCWfchWq0gxlyd26zlbjUCZziEewEhFlvwg_B6vqLvfFi3a9SIC14rSP3BOMNim_fJ2dD7GNET56deZDA6OQ=s120
Original
http://lh3.ggpht.com/u8cUZbdyCWfchWq0gxlyd26zlbjUCZziEewEhFlvwg_B6vqLvfFi3a9SIC14rSP3BOMNim_fJ2dD7GNET56deZDA6OQ
Hoping we can discuss ideas onwards
Thanks
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.



[google-appengine] When to move to a sharded counter?

2010-09-06 Thread Mark
Hi,

I cannot find this statistic, I think I read it somewhere in the app
engine docs - what's the write throughput app engine advertises, and
is there any recommendation as to what point we should think about
things like sharded counters?

For example, I need to keep a counter of some action, I have a class
dedicated for that purpose. I don't expect more than one write per
hour on it, so there's no need to think about sharding it. But is
there any rule out there to let us know when we should start moving to
a sharded counter?

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] When to move to a sharded counter?

2010-09-06 Thread Robert Kluin
Shard when you are updating the same entity multiple times per second.
 Various numbers have been stated, but it is usually something around
3 writes to the same entity per second.


Robert






On Mon, Sep 6, 2010 at 23:48, Mark mar...@gmail.com wrote:
 Hi,

 I cannot find this statistic, I think I read it somewhere in the app
 engine docs - what's the write throughput app engine advertises, and
 is there any recommendation as to what point we should think about
 things like sharded counters?

 For example, I need to keep a counter of some action, I have a class
 dedicated for that purpose. I don't expect more than one write per
 hour on it, so there's no need to think about sharding it. But is
 there any rule out there to let us know when we should start moving to
 a sharded counter?

 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.



[google-appengine] Re: Using OR statement in datastore

2010-09-06 Thread killer barney
My scenario of create an additional generic table Animals that
tabulates all of the
selling action into a list and search the Animals entries for that
user is what I came across to use IN

And unfortuantely, my OR would be used on two different fields.

I am starting to think the only solution is to present the results by
querying twice and combining the results in the backend.

On Sep 6, 6:40 am, Niklasro nikla...@gmail.com wrote:
 On Sep 6, 3:53 am, killer barney ajcha...@gmail.com wrote:

  I'm a dunce. how does query filters help in the OR process?

  So do I do a query with contains dog and cat?

  On Sep 5, 8:44 pm, Nate Bauernfeind nate.bauernfe...@gmail.com
  wrote:

  http://code.google.com/appengine/docs/java/datastore/queriesandindexe...

   See Query Filters. Should answer your how-to question.

   In the backend it actually does two separate queries, but in parallel 
   (then
   does any merging/union-ing based on your entire query after retrieving the
   results). There are some google tech talks on how the datastore works 
   which
   should give you a really good idea why it is done this way.

   On Sun, Sep 5, 2010 at 10:34 PM, killer barney ajcha...@gmail.com wrote:
This is something I never figured out how to do.  How do you
supplement an OR statement in datastore?

So let's say I have a user who sells Dogs and Cats.  How do I get a
list of all of the dogs and cats that a user sells? I thought of 2
ways, query both tables and combine the results in the backend or
create an additional generic table Animals that tabulates all of the
selling action into a list and search the Animals entries for that
user.

I created this scenario just so you can have an idea of what I am
looking for, but in reality, my cats table may consist of hundreds
of users.  I'm not sure if creating a combined list property of Dog
and Cat users is the way to go.  And doing two queries just doesn't
seem right either.  Is there a better way to do this?

 A replacement in many cases is the IN operator. Did you try it?
 Regards
 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.