[google-appengine] Second gen GAE Python 3.7 > Cloud SQL - MySQL

2018-09-11 Thread Frank Heinen
Does someone know how to connect to Cloud SQL - MySQL DB from a new Second 
generation App Engine with Python 3.7?

The documentation of Google seems incomplete here at the moment. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fcfebbbe-3947-4331-b1cd-d4978e2f0e1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: GAE java8 switch by simply putting runtime java8 fails:

2018-01-06 Thread Frank Nestel
Thx, just found it these days. That helped. 
I am not really using Endpoints API, but I once used v1 to get the first 
code samples on GAE ..

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a283e14e-9f24-4fed-9025-b7bd85334a23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Java8 on standard: need to migrate off Endpoints v1?

2017-09-26 Thread 'Frank Natividad' via Google App Engine
Hi Charles,

I'm curious about the different experiments performed with Endpoints 
Frameworks v2. Could you tell us more about that? 

Thanks!

On Friday, September 22, 2017 at 8:32:01 AM UTC-7, Charles Capps wrote:
>
> Hi Nico,
>
> It's a straightforward process if you use the Jersey Servlet container, 
> since GAE works well with any servlet-based technology. In the services we 
> have already migrated to Jersey, we only need these 2 maven dependencies 
> from Jersey (currently using version 2.25.1):
>
> 
>>   org.glassfish.jersey.containers
>>   jersey-container-servlet-core
>>   ${jersey.version}
>> 
>> 
>>   org.glassfish.jersey.media
>>   jersey-media-json-jackson
>>   ${jersey.version}
>> 
>
>
> Then, in your web.xml, you can define a servlet like:
>
>> 
>> MyServiceApplication
>> 
>> org.glassfish.jersey.servlet.ServletContainer
>> 
>>   javax.ws.rs.Application
>>   com.mycompany.jersey.MyServiceApplication
>> 
>> 1
>>   
>
>
> where the MyServiceApplication class extends the JAX-RS Application base 
> class, for which you can find documentation at 
> https://jersey.github.io/documentation/latest/index.html
>  
> Good luck migrating!
>
> On Thursday, September 21, 2017 at 11:52:47 PM UTC-7, Nico Verwer wrote:
>>
>> Is there a guide on how to use Jersey on App Engine?
>> I am still on Cloud Endpoints v1, and I am reluctant to migrate to v2 
>> because it might be deprecated before I finish the migration. Jersey is 
>> probably more stable and future-proof. And, as you indicate, it is faster 
>> than GCE v2.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/97636cf5-c923-4c88-9b51-3facb5e55fae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] GAE java8 switch by simply putting runtime java8 fails:

2017-09-17 Thread Frank Nestel
My tiny app usually displays no errors at all, below exceptions look all 
bad and happen every 20 seconds with a unused version:

Here is the log link
https://console.cloud.google.com/logs/viewer?project=badgers-987=0=false=2017-09-17T14%3A54%3A17.984979000Z=gae_app%2Fmodule_id%2Fdefault%2Fversion_id%2F39-java8=projects%2Fbadgers-987%2Flogs%2Fappengine.googleapis.com%252Frequest_log=resource.type%3D%22gae_app%22%0Aresource.labels.zone%3D%22eu2%22%0Aresource.labels.project_id%3D%22badgers-987%22%0Aresource.labels.version_id%3D%2239-java8%22%0Aresource.labels.module_id%3D%22default%22%0Atimestamp%3D%222017-09-17T14%3A54%3A17.984979000Z%22%0AinsertId%3D%2259be8c9a00068348f172be0c%22

Copies of exceptions:
exception 1:
16:55:24.315 com.google.apphosting.runtime.jetty9.JettyLogger warn: 
/_ah/spi/BackendService.getApiConfigs (JettyLogger.java:29 
)
 
java.lang.NullPointerException at 
com.google.api.server.spi.SystemServiceServlet.execute(
SystemServiceServlet.java:100 
)
 
at com.google.api.server.spi.SystemServiceServlet.doPost(
SystemServiceServlet.java:71 
)
 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
 
at 
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
 
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
 
at 
com.google.apphosting.runtime.jetty9.SaveSessionFilter.doFilter(SaveSessionFilter.java:37)
 
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
 
at 
com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)
 
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
 
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:48)
 
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
 
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582) 
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) 
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
 
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
 
at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) 
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
 
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
 
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
at 
com.google.apphosting.runtime.jetty9.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:297)
 
at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) 
at org.eclipse.jetty.server.Server.handle(Server.java:534) at 
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) at 
com.google.apphosting.runtime.jetty9.RpcConnection.handle(RpcConnection.java:219)
 
at 
com.google.apphosting.runtime.jetty9.RpcConnector.serviceRequest(RpcConnector.java:81)
 
at 
com.google.apphosting.runtime.jetty9.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:108)
 
at 
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchServletRequest(JavaRuntime.java:650)
 
at 
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.dispatchRequest(JavaRuntime.java:612)
 
at 
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:582)
 
at 
com.google.apphosting.runtime.JavaRuntime$NullSandboxRequestRunnable.run(JavaRuntime.java:776)
 
at 
com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:263)
 
at java.lang.Thread.run(Thread.java:745)

exception 2:
16:55:24.329 Uncaught exception from servlet java.lang.NullPointerException 
at com.google.api.server.spi.SystemServiceServlet.execute(
SystemServiceServlet.java:100 

Re: [google-appengine] GAE Endpoints: Mismatch between built and expected exploded directory on gradle deploy

2017-06-30 Thread 'Frank Natividad' via Google App Engine
Jonas if you're still having this issue. I was able to fix this by 
modifying the *backend/backend.iml *

*Change:*


To:





On Thursday, May 25, 2017 at 7:16:18 PM UTC-7, Jonas Hartmann wrote:
>
> Via Android Studio -> Build -> Deploy Module to App Engine...
>
>
> On Friday, May 26, 2017 at 3:07:28 AM UTC+8, appu wrote:
>>
>> @Jonas, downgrading seems like a sub-optimal solution for all of us. How 
>> are you doing deploys?
>>
>> On Wednesday, May 24, 2017 at 9:38:23 PM UTC-4, Jonas Hartmann wrote:
>>>
>>> I've downgraded to com.google.cloud.tools:appengine-gradle-plugin:1.1.1 and 
>>> it works again.
>>>
>>> It's not clear what the user is doing here. 

>>>
>>> I've basically upgraded to Cloud Endpoints Frameworks v2.0 Gradle client 
>>> library generation plugins with Cloud Endpoints Frameworks v1.0 as 
>>> explained in following repo: 
>>> https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine/endpoints-frameworks-v2/migration-example
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8ad347b4-9830-47b7-93db-d2e3f785ec1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Migrating from Endpoints v1 to v2 for AppEngine

2017-03-03 Thread 'Frank Natividad' via Google App Engine
[Solution - for given situation]

The customer was able to get passed this issue by doing the following:

   1. gcloud components update
   2. Change version for appengine-api-1.0-sdk from  1.9.30 to 1.9.49
   3. gcloud deploy openapi.json, because the sample sends metrics to the 
   endpoints service
   4. export 
   ENDPOINTS_SERVICE_NAME=echo-api-flex.endpoints.[YOUR_PROJECT_ID].cloud.goog

Others who see this issue:


   1. gcloud components update
   2. git pull (Get the latest code sample, because it's changed frequently)
   3. Follow instructions 
   here: 
https://cloud.google.com/endpoints/docs/frameworks/java/quickstart-frameworks-java
 



On Tuesday, February 21, 2017 at 6:01:24 PM UTC-8, Frank Natividad wrote:
>
> Hi Paul, 
>
> Sorry to hear you had a problem trying to run our sample locally. I'm 
> looking into it now. 
>
>
>
> On Tuesday, February 21, 2017 at 1:51:47 PM UTC-8, Paul Mazzuca wrote:
>>
>> After doing a gcloud update, and mvn clean package, and running mvn 
>> appengine:run with Java 7, I receive the following error in the client 
>> response to the curl request:
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> Error 500 usingExperimentalRuntime
>>
>> 
>>
>> HTTP ERROR 500
>>
>> Problem accessing /_ah/api/echo/v1/echo. Reason:
>>
>> usingExperimentalRuntimeCaused 
>> by:java.lang.NoSuchFieldError: usingExperimentalRuntime
>>
>> at 
>> com.google.appengine.api.urlfetch.URLFetchServicePb$URLFetchRequest.writeTo(URLFetchServicePb.java:1928)
>>
>> at 
>> com.google.appengine.repackaged.com.google.protobuf.AbstractMessageLite.toByteArray(AbstractMessageLite.java:41)
>>
>> at 
>> com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:40)
>>
>> at 
>> com.google.api.client.extensions.appengine.http.UrlFetchRequest.execute(UrlFetchRequest.java:74)
>>
>> at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:972)
>>
>> at 
>> com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
>>
>> at 
>> com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
>>
>> at 
>> com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
>>
>> at com.google.api.control.Client.check(Client.java:188)
>>
>> at com.google.api.control.ControlFilter.doFilter(ControlFilter.java:249)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at com.google.api.control.ConfigFilter.doFilter(ConfigFilter.java:120)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at 
>> com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at 
>> com.google.appengine.tools.development.devappserver2.RequestIdFilter.doFilter(RequestIdFilter.java:36)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at 
>> com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:128)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at 
>> com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at 
>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:48)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at 
>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
>>
>> 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

[google-appengine] Re: Migrating from Endpoints v1 to v2 for AppEngine

2017-02-21 Thread 'Frank Natividad' via Google App Engine
Hi Paul, 

Sorry to hear you had a problem trying to run our sample locally. I'm 
looking into it now. 



On Tuesday, February 21, 2017 at 1:51:47 PM UTC-8, Paul Mazzuca wrote:
>
> After doing a gcloud update, and mvn clean package, and running mvn 
> appengine:run with Java 7, I receive the following error in the client 
> response to the curl request:
>
>
>
> 
>
> 
>
> 
>
> Error 500 usingExperimentalRuntime
>
> 
>
> HTTP ERROR 500
>
> Problem accessing /_ah/api/echo/v1/echo. Reason:
>
> usingExperimentalRuntimeCaused 
> by:java.lang.NoSuchFieldError: usingExperimentalRuntime
>
> at 
> com.google.appengine.api.urlfetch.URLFetchServicePb$URLFetchRequest.writeTo(URLFetchServicePb.java:1928)
>
> at 
> com.google.appengine.repackaged.com.google.protobuf.AbstractMessageLite.toByteArray(AbstractMessageLite.java:41)
>
> at 
> com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:40)
>
> at 
> com.google.api.client.extensions.appengine.http.UrlFetchRequest.execute(UrlFetchRequest.java:74)
>
> at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:972)
>
> at 
> com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
>
> at 
> com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
>
> at 
> com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
>
> at com.google.api.control.Client.check(Client.java:188)
>
> at com.google.api.control.ControlFilter.doFilter(ControlFilter.java:249)
>
> at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>
> at com.google.api.control.ConfigFilter.doFilter(ConfigFilter.java:120)
>
> at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>
> at 
> com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
>
> at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>
> at 
> com.google.appengine.tools.development.devappserver2.RequestIdFilter.doFilter(RequestIdFilter.java:36)
>
> at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>
> at 
> com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:128)
>
> at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>
> at 
> com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
>
> at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>
> at 
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:48)
>
> at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>
> at 
> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
>
> 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.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:95)
>
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>
> at 
> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:508)
>
> 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.content(HttpConnection.java:938)
>
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>
> at 
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>
> at 
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>
> 
>
> Powered by Jetty://   
>  
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>

[google-appengine] Using google cloud datastore emulator with dev_appserver

2016-07-29 Thread Frank Wilson
Hi,

Has anybody had any luck interfacing the dev_appserver.py with the 
non-legacy google cloud datastore emulator?

I posted this question on stackoverflow but haven't received much response 
yet [1].

I'd like to combine my google cloud platform and appengine projects while 
developing on my own machine. 

e.g. I'd like to populate the local datastore of my appengine database on 
my own machine using google cloud dataflow direct pipeline runner.

Thanks,

Frank

[1] 
http://stackoverflow.com/questions/38585619/using-google-cloud-datastore-emulator-with-dev-appserver

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d0008ce4-8c4c-4d44-b940-52d65a94e77c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: images usage patterns

2016-07-04 Thread Frank Grossman
Thank you Nick,

   I made a routine to refresh URLs. Looks like the stale one were all from 
back in 2010. I will look at Cloud Storage for a future port. 

 Frank

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f6bcd646-b9a0-42b7-9395-c136d9786ac5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] images usage patterns

2016-06-23 Thread Frank Grossman
I have a question using the google.appengine.api.images api.  I current 
generate a URL using images.get_serving_url when I upload an image.  I then 
store the URL in the datastore along with the Blob key.  I then just use 
the URL for displaying all the images.  This website has been up for years 
and just recently many of the URLs are getting 404s.  I can re-generate the 
URLs from the Blob keys.  But wondering if there is a usage pattern that I 
am missing? Do these URLs have a lifetime on them?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/69f3adfc-3891-484d-9b05-7ce756bb944c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Loading custom libraries with appengine_config.py

2015-04-01 Thread frank . wilson

Hi,

I was trying out custom runtimes / managed vms support [1] with python 
yesterday with an existing app engine app.

I notice that it does not seem to load my custom libraries with 
appengine_config.py:

appengine_config.py:

from google.appengine.ext import vendor

vendor.add('lib')
This worked fine in regular app engine, but not in managed vms, it is as if 
the managed vm runtime is not loading this file.

I know managed runtimes are beta but can anyone confirm that this method of 
loading libraries is not supported in managed vms?
I'm trying to work out if I have done something wrong or whether my app 
needs to change. 


Thanks,

Frank

[1] https://cloud.google.com/appengine/docs/python/managed-vms/

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8be228eb-2b63-4ad7-84be-2fc8309a83b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google App Engine Task Queue: googleapi: Error 500: Backend Error

2014-08-26 Thread Frank Ren
Hi

Did you solve your problem?

I got the same problem... Just solved it by supplying to request body a 
property, queueName, which is not documented.

Frank, yet another :)

On Tuesday, November 19, 2013 12:49:00 AM UTC+8, Frank Blechschmidt wrote:

 Hey :)

 I've defined a pull queue for my app engine application and want to fill 
 it from outside via the REST api. Unfortunately it doesn't work, I always 
 get an error 500: backend error. Even if I try to fill it with the api 
 explorer from thedocumentation.
 https://developers.google.com/appengine/docs/go/taskqueue/rest/tasks/insert

 It responses:

 500 Internal Server Error
 - Show headers -
 {
  error: {
   errors: [
{
 domain: global,
 reason: backendError,
 message: Backend Error
}
   ],
   code: 500,
   message: Backend Error
  }}

 Any idea how to solve it?

 Best regards Frank


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] App Engine dev server: bad runtime process port [''] No module named google.appengine.dist27.threading

2014-01-13 Thread Tianxiang Frank Zhang


When I try to run any of my app engine projects by python 
GoogleAppEngineLauncher I got the error log as follows:

Does anyone have any ideas of what's going on? I tried remove the SDK and 
reinstall it. Nothing happens. Still got the same error.


Error log:

bad runtime process port ['']

Traceback (most recent call last): File 
/Users/txzhang/Documents/App/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/_python_runtime.py,
 
line 197, in _run_file(*file*, globals()) File 
/Users/txzhang/Documents/App/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/_python_runtime.py,
 
line 193, in _run_file execfile(script_path, globals_) File 
/Users/txzhang/Documents/App/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/runtime.py,
 
line 175, in main() File 
/Users/txzhang/Documents/App/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/runtime.py,
 
line 153, in main sandbox.enable_sandbox(config) File 
/Users/txzhang/Documents/App/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py,
 
line 159, in enable_sandbox *import*('%s.threading' % dist27.*name*) File 
/Users/txzhang/Documents/App/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py,
 
line 903, in load_module raise ImportError('No module named %s' % fullname) 
ImportError: No module named google.appengine.dist27.threading

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Google App Engine Task Queue: googleapi: Error 500: Backend Error

2013-11-18 Thread Frank Blechschmidt


Hey :)

I've defined a pull queue for my app engine application and want to fill it 
from outside via the REST api. Unfortunately it doesn't work, I always get 
an error 500: backend error. Even if I try to fill it with the api explorer 
from thedocumentation.
https://developers.google.com/appengine/docs/go/taskqueue/rest/tasks/insert

It responses:

500 Internal Server Error
- Show headers -
{
 error: {
  errors: [
   {
domain: global,
reason: backendError,
message: Backend Error
   }
  ],
  code: 500,
  message: Backend Error
 }}

Any idea how to solve it?

Best regards Frank

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] Got CAS client working with appengine (java)

2013-05-03 Thread Frank Ren
Hi Piwai

I struggled with the same problem, and found another solution by inserting 
the following lines into web.xml

!-- avoid instantiate javax.naming.InitialContext in 
AbstractConfigurationFilter [line: 53] - 
getPropertyFromInitParams(FilterConfig, String, String) --
context-param
param-nameartifactParameterName/param-name
param-valueticket/param-value
/context-param

By doing  so, you don't have to modify shiro source code. My cas client 
version is 3.2.1. There should be not much difference regarding this 
problem.

I hope you're still around.

Regards,
Frank

On Tuesday, April 27, 2010 7:23:13 PM UTC+8, Piwaï wrote:

 Hi ! 

 Just wanted to let you know, I was able to use CAS client (http:// 
 www.jasig.org/cas) with AppEngine. So I'll write the few steps here, 
 in case anyone look for it when searching on Google ;-) 

 First, I followed these steps : 


 http://www.ja-sig.org/wiki/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+in+the+web.xml
  

 I downloaded cas-client-3.1.10 here : 
 http://www.ja-sig.org/downloads/cas-clients/cas-client-3.1.10-release.zip 

 I only used cas-client-core. However, I had to make some changes to 
 one of the classes : 
 org.jasig.cas.client.util.AbstractConfigurationFilter . This is 
 because the filter tries to instanciate an InitialContext() to find 
 parameters in the context. Appengine does not seem yet to allow 
 instanciation of InitialContext. 

 So I changed the following file : 

 cas-client-3.1.10-release\cas-client-3.1.10\cas-client-core\src\main 
 \java\org\jasig\cas\client\util\AbstractConfigurationFilter.java 

 and removed some code in the middle : 

 *** 
 protected final String getPropertyFromInitParams(final 
 FilterConfig filterConfig, final String propertyName, final String 
 defaultValue)  { 
 final String value = 
 filterConfig.getInitParameter(propertyName); 

 if (CommonUtils.isNotBlank(value)) { 
 log.info(Property [ + propertyName + ] loaded from 
 FilterConfig.getInitParameter with value [ + value + ]); 
 return value; 
 } 

 final String value2 = 
 filterConfig.getServletContext().getInitParameter(propertyName); 

 if (CommonUtils.isNotBlank(value2)) { 
 log.info(Property [ + propertyName + ] loaded from 
 ServletContext.getInitParameter with value [ + value2 + ]); 
 return value2; 
 } 
 // ** CODE REMOVED HERE 

 log.info(Property [ + propertyName + ] not found.  Using 
 default value [ + defaultValue + ]); 
 return defaultValue; 
 } 
 *** 

 I then repackaged cas-client : 
 cd cas-client-3.1.10/cas-client-core 
 mvn package -Dmaven.test.skip 

 I added cas-client-3.1.10/cas-client-core-patched/target/cas-client- 
 core-3.1.10.jar to my GAE project. 

 Then it's just a matter a configuring your web.xml to work with CAS, 
 as with any other CASsified app. 

 If you have any questions, please let me 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-a...@googlegroups.comjavascript:. 

 To unsubscribe from this group, send email to 
 google-appengi...@googlegroups.com javascript:. 
 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 unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] How to do sum in datastore and how to implement delete function?

2013-01-10 Thread frank finch
here is my code :
# -*- coding:  utf-8 -*-
import os
import re
import random
import hashlib
import hmac
from string import letters

import webapp2
import jinja2

from google.appengine.ext import db

template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_env = jinja2.Environment(loader = 
jinja2.FileSystemLoader(template_dir),
   autoescape = True)

class Handler(webapp2.RequestHandler):
def write(self, *a, **kw):
self.response.out.write(*a, **kw)
def render_str(self, template, **params):
t = jinja_env.get_template(template)
return t.render(params)
def render(self, template, **kw):
self.write(self.render_str(template, **kw))
class MainPage(Handler):
def get(self):
self.write('Hello, guys')
  
class Book(db.Model):
deal = db.IntegerProperty(required= True) 
created = db.DateTimeProperty(auto_now_add=True)
sum_deal = db.IntegerProperty(required= True) 
# the code above is 
class BookMe(Handler):
def render_book(self,sum_deal=, deal=,error=):
#sum_deal = 0
deals = db.GqlQuery(SELECT * FROM Book ORDER BY created DESC)
# assign the query content to a variable
self.render(book.html, 
sum_deal=sum_deal,deal=deal,error=error,deals=deals)
# render the webpage , take care of the parameters
def get(self):
self.render_book()
def post(self):
deal = int(self.request.get(deal))
if deal:
b = Book(deal=deal,sum_deal=sum_deal)
for deal in deals:
sum_all += deal.deal
b.put()  
self.redirect(/book)
# set a instance of model object then put the data into datastore
else:
error = we need both a title and some artwork!
self.render_front(error = error)
class Delete_row(Handler):
def GET(self,dealid):
self.write(i have delete %d%deal.key().id())
self.redirect('/book')
def POST(self):
dealid = deal.key().id()
todelete = db.get(dealid)
if todelete:
todelete.delete()
app = webapp2.WSGIApplication([('/', MainPage),
('/book', BookMe),
(r'/del/([0-9]+)',Delete_row),
],debug=True)


I want to show the sum of deal in the front page , and i know that 
datastore has not that built-in , so i want to iterate all the entities and 
sum them up to store it in a variable. but it doesnt work. and i also want 
to implement the delete function to delete some contents. 


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



[google-appengine] Backends Unresponsive

2012-11-07 Thread Frank Orozco
I posted this a bit ago but don't see it on the forum. If I posted twice, I 
apologize for the repost.

At 5:55pm PST I received an alert from Pingdom that our production api 
servers were down.  We use a cluster of b2 backends to host our API.  Upon 
checking the logs, I found that an /_ah/stop command had been issued around 
the time of the alert.  I tried restarting the backends via the admin 
console and programatically, but they are completely unresponsive to 
requests.  Requests do not show up in the logs, and the last message is 
simply the /_ah/stop command.

When I programatically list the backends, I receive this output showing 
that the backends are in the START state.  Backend: api, instances = 2, 
instanceClass = B2, options = [PUBLIC], state = START

Can someone at Google PLEASE look into this!  Our identifier is 
loyaldash-services.  Our apps interact with this via the url 
https://api.loyaldash.com by using the SNI SSL certificate and custom 
domain.

Thanks in advance,
Frank Orozco

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



[google-appengine] Backends Unresponsive

2012-11-07 Thread Frank Orozco
I received an alert from Pingdom this evening at 5:55pm PST that our 
production API servers were unresponsive.  I use a number of B2 backends to 
host our production api and none of them are responsive.  Upon checking the 
logs I found that an /_ah/stop command had been issued at approximately the 
same time as the pingdom alert.  

I've attempted clicking stop then Start on the backends page, and even 
redeploying source and doing a Backends-update command to get this going 
again, but nothing is working.  I need support ASAP.

The account identifier is loyaldash-services. 

Thanks in advance.

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



[google-appengine] Re: The only SMS verified owner cannot be removed.

2012-09-18 Thread Frank Brown
Have you figured out how to send out an SMS verification for a user? The 
current verified user needs to be deleted, but I can't do that without out 
verifying another user, but I cannot figure out where to do that. 

On Sunday, August 5, 2012 2:39:39 AM UTC-4, wehttam wrote:

 I have not been able to figure out how to get an SMS notification sent 
 out. Where can I find out how to do that? 

 Wehttam

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



Re: [google-appengine] Change to blobstore/get_serving_url?

2012-08-22 Thread Frank VanZile
from http://docs.python.org/library/os.html putenv should exist. just 
comment out the putenv and try it.  the hack to get _GetConnection not 
return an existing connection so it will create the correct connection 
needed for the 

get_serving_url call.



On Tuesday, August 21, 2012 11:20:50 PM UTC-7, Richard Arrano wrote:

 Frank,
 Thanks for the tip and for debugging that issue. I was completely lost. 
 However, when I try your workaround, despite that my IDE can see that os 
 has a function called putenv, for some reason App Engine does not. I get 
 this error trying it that way:
  

 os.putenv(datastore._ENV_KEY, )
 AttributeError: 'module' object has no attribute 'putenv'

  

 Any idea on how to mitigate this? I have imported os but this is extremely 
 strange. I'm on 2.7.3 and am able to use putenv in my own interpreter.

  

 Thanks,

 Richard


 On Tuesday, August 21, 2012 10:25:30 PM UTC-7, Frank VanZile wrote:

 Here is my stack of the same problem.

   File C:\work\twist.2\server\backend\lib\images\image_helper.py, line 
 18, in
 get_serving_url
 return images.get_serving_url(image_blob_key)
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\imag
 es\__init__.py, line 1793, in get_serving_url
 return rpc.get_result()
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\apip
 roxy_stub_map.py, line 604, in get_result
 return self.__get_result_hook(self)
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\imag
 es\__init__.py, line 1889, in get_serving_url_hook
 rpc.check_success()
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\apip
 roxy_stub_map.py, line 570, in check_success
 self.__rpc.CheckSuccess()
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\apip
 roxy_rpc.py, line 156, in _WaitImpl
 self.request, self.response)
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\apip
 roxy_stub.py, line 160, in MakeSyncCall
 method(request, response)
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\imag
 es\images_stub.py, line 296, in _Dynamic_GetUrlBase
 datastore.Put(entity_info)
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\data
 store.py, line 579, in Put
 return PutAsync(entities, **kwargs).get_result()
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\api\data
 store.py, line 556, in PutAsync
 return _GetConnection().async_put(config, entities, local_extra_hook)
   File C:\Program Files 
 (x86)\Google\google_appengine\google\appengine\datastor
 e\datastore_rpc.py, line 1534, in async_put
 pbs = [self.__adapter.entity_to_pb(entity) for entity in entities]
   File C:\work\twist.2\server\backend\lib\external\ndb\model.py, line 
 561, in
 entity_to_pb
 pb = ent._to_pb()
 AttributeError: 'Entity' object has no attribute '_to_pb'


 i have ran into the same type of problem before.  the problem is the sdk 
 tries to cache the datastore_rpc connection.  see _GetConnection in 
 datastore.py

 def _GetConnection():
   Retrieve a datastore connection local to the thread.

   connection = None
   if os.getenv(_ENV_KEY):
 try:
   connection = _thread_local.connection
 except AttributeError:
   pass
   if connection is None:
 connection = datastore_rpc.Connection(adapter=_adapter)
 _SetConnection(connection)
   return connection

 an incorrect datastore connection is being used for that call from this 
 connection cache.

 you can hack around it by adding this before the get_serving_url call.  

 import os
 from google.appengine.api import datastore
 os.environ[datastore._ENV_KEY] = ''
 os.putenv(datastore._ENV_KEY, '')
 datastore._thread_local.connection = None



 On Tuesday, August 21, 2012 6:59:25 PM UTC-7, Takashi Matsuo (Google) 
 wrote:


 Can you show me the whole stacktrace?
 What is your app-id?


 On Wed, Aug 22, 2012 at 7:14 AM, Richard Arrano ricka...@gmail.comwrote:

 Hello,
 I have a function that takes a user image upload and saves both the 
 blob key and a serving URL. After upgrading to 1.7.1, I now get an error 
 trying to save the updated entity to the datastore. The property pictures 
 is an ndb.StringProperty(repeated=True, indexed=False) and the property 
 picture_keys is an ndb.BlobKeyProperty(repeated=True) where the former 
 will 
 hold the image serving URLs for the blob keys in the latter. In a 
 transaction, I read the uploaded file and generate a serving URL and save 
 the blob key and the serving URL. This worked last night before upgrading 
 to 1.7.1, but now I get an error on:
  

 article.pictures.append(get_serving_url(blob_info.key()))

  

 AttributeError: 'Entity' object has no attribute '_to_pb'
  
 Without fail on the development server, this line now generates that 
 error

Re: [google-appengine] Change to blobstore/get_serving_url?

2012-08-21 Thread Frank VanZile
Here is my stack of the same problem.

  File C:\work\twist.2\server\backend\lib\images\image_helper.py, line 
18, in
get_serving_url
return images.get_serving_url(image_blob_key)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\imag
es\__init__.py, line 1793, in get_serving_url
return rpc.get_result()
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\apip
roxy_stub_map.py, line 604, in get_result
return self.__get_result_hook(self)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\imag
es\__init__.py, line 1889, in get_serving_url_hook
rpc.check_success()
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\apip
roxy_stub_map.py, line 570, in check_success
self.__rpc.CheckSuccess()
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\apip
roxy_rpc.py, line 156, in _WaitImpl
self.request, self.response)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\apip
roxy_stub.py, line 160, in MakeSyncCall
method(request, response)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\imag
es\images_stub.py, line 296, in _Dynamic_GetUrlBase
datastore.Put(entity_info)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\data
store.py, line 579, in Put
return PutAsync(entities, **kwargs).get_result()
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\api\data
store.py, line 556, in PutAsync
return _GetConnection().async_put(config, entities, local_extra_hook)
  File C:\Program Files 
(x86)\Google\google_appengine\google\appengine\datastor
e\datastore_rpc.py, line 1534, in async_put
pbs = [self.__adapter.entity_to_pb(entity) for entity in entities]
  File C:\work\twist.2\server\backend\lib\external\ndb\model.py, line 
561, in
entity_to_pb
pb = ent._to_pb()
AttributeError: 'Entity' object has no attribute '_to_pb'


i have ran into the same type of problem before.  the problem is the sdk 
tries to cache the datastore_rpc connection.  see _GetConnection in 
datastore.py

def _GetConnection():
  Retrieve a datastore connection local to the thread.

  connection = None
  if os.getenv(_ENV_KEY):
try:
  connection = _thread_local.connection
except AttributeError:
  pass
  if connection is None:
connection = datastore_rpc.Connection(adapter=_adapter)
_SetConnection(connection)
  return connection

an incorrect datastore connection is being used for that call from this 
connection cache.

you can hack around it by adding this before the get_serving_url call.  

import os
from google.appengine.api import datastore
os.environ[datastore._ENV_KEY] = ''
os.putenv(datastore._ENV_KEY, '')
datastore._thread_local.connection = None



On Tuesday, August 21, 2012 6:59:25 PM UTC-7, Takashi Matsuo (Google) wrote:


 Can you show me the whole stacktrace?
 What is your app-id?


 On Wed, Aug 22, 2012 at 7:14 AM, Richard Arrano 
 ricka...@gmail.comjavascript:
  wrote:

 Hello,
 I have a function that takes a user image upload and saves both the blob 
 key and a serving URL. After upgrading to 1.7.1, I now get an error trying 
 to save the updated entity to the datastore. The property pictures is an 
 ndb.StringProperty(repeated=True, indexed=False) and the property 
 picture_keys is an ndb.BlobKeyProperty(repeated=True) where the former will 
 hold the image serving URLs for the blob keys in the latter. In a 
 transaction, I read the uploaded file and generate a serving URL and save 
 the blob key and the serving URL. This worked last night before upgrading 
 to 1.7.1, but now I get an error on:
  

 article.pictures.append(get_serving_url(blob_info.key()))

  

 AttributeError: 'Entity' object has no attribute '_to_pb'
  
 Without fail on the development server, this line now generates that 
 error. Was there a change to the API and I should be doing something 
 differently? If so, what?
  
 Thanks,
 Richard
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-appengine/-/Bg4zC34iDOcJ.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-appengi...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.




 -- 
 Takashi Matsuo | Developers Advocate | tma...@google.com javascript:

  

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/SmPDclCtdnYJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send 

[google-appengine] Frank Huang想進行即時通訊

2012-06-04 Thread Frank Huang
---

Frank Huang想使用某些 Google 的超酷新產品,跟您保持密切
聯繫。

如果您已經有 Gmail 或 Google Talk 帳戶,請造訪:
http://mail.google.com/mail/b-671771ff3b-aa235d5808-W3hiTvShQcWJQ5U-ZeucW5tFtRU
您必須按一下這個連結才能與Frank Huang進行即時通訊。

如想獲得 Google 免費提供且儲存空間超過 7,500 MB 的 Gmail 電子郵件帳戶,
同時也想和Frank Huang進行即時通訊,請造訪:
http://mail.google.com/mail/a-671771ff3b-aa235d5808-W3hiTvShQcWJQ5U-ZeucW5tFtRU?pc=zh_tw-rf---a

Gmail 的功能:
- 直接透過 Gmail 進行即時通訊
- 功能強大的垃圾郵件阻擋功能
- 內建搜尋功能,讓您尋找郵件並協助將
  郵件整理到「會話群組」
- 不會顯示彈出式視窗廣告或漫無目標的橫幅廣告,
  只會顯示與您郵件內容有關的文字廣告與相關資訊

這所有的一切全都免費。別著急,還有更多功能等著您呢!登入 Gmail
帳戶,您也可以使用 Google Talk、Google 即時通訊
服務:

http://www.google.com/talk/intl/zh-TW/

Google Talk 的功能:
- 隨時隨地都可使用的網頁式即時通訊功能,不需下載即可使用
- 與 Gmail 帳戶保持同步的聯絡人名單
- 下載 Google Talk 用戶端後,即可透過電腦免費進行
  高品質的語音通話

我們仍不斷努力開發新功能並持續改善,因此我們可能也會
定期詢問您的意見和建議。非常感謝您的協助,
使我們的產品更臻完善!

謝謝您!
Google 小組敬上

如要進一步瞭解 Gmail 及 Google Talk,請造訪:
http://mail.google.com/mail/help/intl/zh_TW/about.html
http://www.google.com/talk/intl/zh-TW/about.html

(如果按下此郵件中的網址後沒有作用,請將網址複製並貼到
您瀏覽器的網址列)。

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



Re: [google-appengine] Can't upload data to dev datastore: says dev app can't access app's data

2012-03-09 Thread Frank Huddleston

That worked! Except it's an underscore: --default_partition
Thanks!

On 03/09/2012 03:01 PM, Andreas wrote:

start your dev_appserver.py with the --default-partition option

dev_appserver.py --default-partition=''

pass an empty string as the default partition

On Mar 9, 2012, at 3:49 PM, fhuddles wrote:


Greetings,

  I recently upgraded to version 1.6.3 (from 1.5.1) of the GAE SDK, 
and, because it seems that every time I start my development 
appserver, I have to reload my development datastore (I am NOT 
specifying the option to clear the datastore upon starting), I am 
trying to run the python program to reload the data.
However, I get the following error( the application name is 
family-tourt-hudd):
ApplicationError: ApplicationError: 1 app dev~family-tourt-hudd 
cannot access app family-tourt-hudd's data

It appears that it's prepending the dev in front of my app name.
I see that the development console says it's for the app 
dev-family-tourt-hudd, but can't see anywhere where I've specified 
this.
Apparently it thinks I'm dealing with two different apps. I saw in 
the release notes that dev would be
appended to an environment variable. I've tried specifying the dev 
app name when running the upload app:
I get the same error, but this time it's got the same app name and 
says it can't access the information.

Here's how I start the dev_appserver:
dev_appserver.py --high_replication 
--datastore_path=/usr/local/apps/gae/fam/fam.datastore --debug 
/usr/local/apps/gae/fam

and here's how I run the data upload program:
python dbload-fams.py family-tourt-hudd localhost:8080

What's going on here, and what can I do to make it work?

Thanks

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


--
You received this message because you are subscribed to the Google 
Groups Google App Engine group.

To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


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



[google-appengine] Question about Data Store Read operations

2011-11-29 Thread Frank Mantek
I am trying to figure out why my app is getting over quota. Under
storage is see this (limited to relevant data, stuff not shown is 0):


Datastore Write Operations   21% 0.01 of 0.05 Million Ops   
 Okay
Datastore Read Operations96% 0.05 of 0.05 Million Ops   
Limited
Datastore API Calls  2,381   Okay
Datastore Queries213 Okay
Data Received from Datastore API 0.01 GBytes Okay
Datastore Entity Fetch Ops   47,914  Okay
Datastore Entity Put Ops 2,110   Okay
Datastore Index Write Ops8,500   Okay
Datastore Query Ops  214 Okay

Now the only request i am currently running to test what is causing
the read operations to spike, shows this in appstats (per request):

memcache.Delete 6
memcache.Get6
memcache.Set5
urlfetch.Fetch  5
taskqueue.BulkAdd   1

None of those operations strike me as a datastore read.

Can someone shed light on this?


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



[google-appengine] WTF, got charged for $2.10 unexpectedly!

2011-11-20 Thread Frank DU
WTF! Without any pre-notification, got charged for $2.10. What the fukcing 
the company is doing now? Crazily charging us for everything?!

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



[google-appengine] New domain in Google Apps Business

2011-09-15 Thread Frank
We are facing a problem in cpanel google apps to bind a Business APP-
ID with a domain.

When the access panel, click on Settings, and he left open the menu My
Apps

eg I click on the app Example App (App Engine)
click on Add new URL

when I type (www)

http://www.appexemple.com.br

he returns the following error: We are unable to process your request
at this time. Please try again later. (Error # 1000)


And I can only add this url to the domain www.appexample.com.br is an
alias of my main domain (principal.com.br) but that this need not be a
domain alias.

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



[google-appengine] Why are there no preconfigured packages?

2011-09-05 Thread Frank Müller
Dear Google,

wouldn't it be by far more simple if you would provide preconfigured 
packages for the GAE? E.g.

- Free for non-commercial up to a defined limit like package S or M
- Package S with one instance, 1 GB database etc.
- Package M with two instances, 5 GB database etc.
- Package L with four instances, 25 GB database etc.
- Package XL with eight instances, 100 GB database etc.
- Package XXL unlimited with pricing based on consumption

Additionally a simple notification service when an application comes near 
the package limits and an even more easier way to up- and downgrade.  A 
differentiation between two SLAs would be fine too, but maybe not needed.

Together with fair prices I think this model would gain high acceptance.

mue

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



[google-appengine] Re: The scheduler needs a fix and quick.

2011-09-05 Thread Frank
Agreed. The scheduler is not reliable for pricing. And the pricing is based 
on instances being spawned. This is total non sense.

This is a personal message to the App Engine team: 
http://www.google.com/events/io/2011/sessions/fireside-chat-with-the-app-engine-team.html


At google there are Product Managers and Software Engineers and Directors. I 
bet the smart engineer coding the scheduler does not consult with the 
Product Manager who set the prices when talking to his director whose only 
goal is to make money.

So the lack of team cohesion is screwing us?

Please PM go talk to the engineer to get a reasonable scheduler out there, 
one that we developers can get control and rely on.

or

Please engineer, go talk to the PM and tell him that his MBA pricing method 
does not make any sense. He should go work at Mc Kinsey or Microsoft, but at 
Google we treat developers differently (at least you used to...)

or

Director, yes director, can you please get your PMs and Engineers to get 
their act together ?

If you expect us to pay you, you should do a better job as a team.



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



[google-appengine] Re: Minimum per-application charge - WTF?

2011-09-05 Thread Frank
That does not work either for me. I still have 3 instances even though I had 
10 requests and each is under 100 ms. The scheduler is not working as 
advertised. We are at the mercy of the scheduler for pricing, and we can't 
even rely on it to make pricing optimizations. Seriously, the engineers are 
not delivering on a critical feature which the product is banking on for 
pricing.

Google you can do better. Only if you had the will...

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



[google-appengine] Dear App Engine

2011-09-05 Thread Frank
Announcing a pricing hike with 2 weeks notice* (and still no reliable tools 
to experiment with the new pricing as the scheduler is not reliable) is not 
a way to treat your customers. 

Because yes, we are customers of App Engine and we have been very good 
customers (we paid for a service which is not reliable, full of bugs and 
limitations for the last 3 years).

App Engine - you enjoyed having people build their businesses on App Engine. 
You encouraged start ups to move to the new platform. We made App Engine the 
success that it is today - together. 

So why treat your customers this way? All these hours we spent fighting 
against limitations of the platform - everything is wasted ?

Is it so difficult to keep old pricing for old customers for another couple 
months to give us some time to adjust our businesses? Because *yes* we are 
willing to tweak our code and adjust our businesses. That's what we've been 
doing for the last couple years. But we need more than 2 weeks.

Are you running out of money ? Promise we can click on a few more ads every 
day to make up for it.

What if  Steve Jobs changed his ToS to make you pay every time you open a 
paid installed app. How would you feel about iPhone and Apple ?

This is a sad day for Google and us. I have faith that you will fix that 
mess. But it's still sad that you treat your customers like this.

(*) for the app engine guys out there who say we've been warned for 5 
months... that's not true. It's only few days ago  that we got billing 
history with actual costs. And still the scheduler settings are not complete 
(no way to set minimum number of instances) and it's not reliable anyway. 
Not even talking about the python mess.

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



[google-appengine] A package based pricing as alternative

2011-09-05 Thread Frank Müller
Hmm, my yesterdays post regarding the new pricing hasn't been publish, 
strange.

Hi Google,

how would it be if you would provide a package based pricing as alternative. 
It could look like:

- Free like package S or M for non-commercial projects,
- Package S with one non always-on instance, 1 GB database etc.
- Package M with one always-on instance, 2 GB database etc.
- Package L with two always-on instances, 5 GB database etc.
- Package XL with four always-on instances, 10 GB database etc.
- Unlimited like your new pricing model

Together with fair prices it would make the calculation by far more simple. 
Additionally there should be notifications when a limit will be reached seen 
and the switching between packages should be pretty simple.

The current complexity makes it hard to decide for the platform. I would 
like to implement two application, it least one will be non-commercial. I 
already started development in Go. But with the current pricing I don't know 
which costs I've got to expect, it's very hard. And the lock-in to the API 
doesn't make this decision easier. At least a clear pricing would help.

mue

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



[google-appengine] Re: The scheduler needs a fix and quick.

2011-09-05 Thread Frank
+1. We are going backwards on this. If we end up having to tweak the 
scheduler manually we're better off running cheaper instances on other 
hosting services.

 Next step is that we WILL have to know about the datacenters because of the 
latency between instances which will impact the number of running instances.

We are building business functionality with APIs. App Engine should charge 
on API calls, not on the electricity it takes to move bits from one data 
center to the other.

Just raise the cost of API calls if necessary.

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



[google-appengine] Aw: The whole instances pricing thing is too complicated for average brains like mine

2011-09-05 Thread Frank Müller
I would like a package based pricing. Like


   - Free with limits of package S or M for non-commercial projects
   - Package S with 1 non-always-on instance, 1 GB database, ...
   - Package M with 1 always-on instance, 2 GB database, ...
   - Package L with 2 always-on instances, 10 GB database, ...
   - Package XL with 4 always-on instances, 25 GB database, ...
   - Package XXL like the pricing today
   
So choosing a package to start would be simple. An additional warning mail 
when a limit is almost reached and a simple switch between those packages 
would be great.

My 2c

mue

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



[google-appengine] System time off by over 5 minutes on gae server

2011-07-29 Thread Frank
if i do a datetime.datetime.now() the time is over 5 minutes off from
the real gmt time.
any hope google can run and monitor an ntp service?

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



[appengine-java] Re: Multi-threaded datastore test in JUnit

2011-07-12 Thread Frank Leon Rose
Yeah, that's much cleaner. Thanks!

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



Re: [appengine-java] Re: Multi-threaded datastore test in JUnit

2011-07-11 Thread Frank Leon Rose
Gabriel,

All the code is in my two prior posts. What happens when you run the test
code above?

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



[appengine-java] Datastore doesnot stote @embedded List

2011-01-13 Thread frank
Hello,

I try to store an embedded List in an Entity.
I runs without errors, but no elements of the List are stored

Thanks for your help.

here is the code:

@Entity
public class Cont implements Serializable
{private static final long serialVersionUID = 1L;
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private String id;
  @Extension(vendorName = datanucleus, key = cascade-persist,
value = true)
  @Embedded
  private ListEm2 em2;

  ..
}

@Embeddable
public class Em2 implements Serializable
{ @Basic public String s;
  ...
}

public static String testcode()
{
EntityManager em = Gae.emfInstance.createEntityManager();
Cont cont;
ListEm2 emList = new ArrayListEm2();
emList.add(new Em2(Element1));
emList.add(new Em2(Element2));

cont=new Cont( 1);
cont.setEm(new Em(TEST));
cont.setEm2(emList);

em.persist(cont);
em.close();

em = Gae.emfInstance.createEntityManager();
Query q = em.createQuery(select c from  Cont c);
Cont read  = (Cont) q.getSingleResult();

System.out.println(read.getEm2().size());
// ---
// output 0
// ---

em.close();
  }

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



[appengine-java] Exception persisting 2 entities (without transaction)

2011-01-11 Thread frank
Hello,

I´m new to GAE and I have a problem with the datastore.

I add 2 new entities not in a transaction and I get the Exception:
javax.persistence.PersistenceException: Illegal argument
at
org.datanucleus.jpa.NucleusJPAHelper.getJPAExceptionForJDOException(NucleusJPAHelper.java:
214)

Caused by: java.lang.IllegalArgumentException: can't operate on
multiple entity groups in a single transaction. found both Element {
  type: En
  id: 1
}

 and Element {
  type: En
  id: 2

}

I know the two entities are not in the same entity group, but I
persisted them not in a transaction.

here is the code:
---
public class CreateSomeObjects
{
  private final LocalServiceTestHelper helper =
  new LocalServiceTestHelper(new
LocalDatastoreServiceTestConfig());

  public CreateSomeObjects()
  {}

  @Before
  public void setUp()
  { helper.setUp(); }

  @After
  public void tearDown()
  { helper.tearDown();  }

  @Test
  public void createWithoutTA1()
  { try
{ EntityManager em = Gae.emfInstance.createEntityManager();
  En e;
  e=new En(Number1);
  em.persist(e);
  e=new En(Number2);
  em.persist(e);
  em.close();
} catch (Exception ex)
{ ex.printStackTrace();
  fail(unerwartete Exception: + ex.getMessage());
}
  }
}

---
@Entity
public class En implements Serializable {
  private static final long serialVersionUID = 1L;
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  private String name;

  public En()
  {}

  public En(String name)
  { this.name = name; }

  public Key getId()
  { return id; }
  public void setId(Key id)
  { this.id = id; }
  public String getName()
  { return name; }
  public void setName(String name)
  { this.name = name; }
}

-- 
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: Datastorequery with OR condition on multiple properties

2011-01-09 Thread frank
Tnx,
I´ll try with the extra attribute.

Frank

-- 
You 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: Exception persisting 2 entities not in a transaction

2011-01-09 Thread frank
Tnx, I´ll try.

-- 
You 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: Exception persisting 2 entities not in a transaction

2011-01-08 Thread frank
Hello,

does nobody kwow that´s the problem here?
I googled a lot but could not find a solution.

Thanks for your help

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] Datastorequery with OR condition on multiple properties

2011-01-08 Thread frank
Hello,

I have a JPA query like that:

select from Kind k where attr1 = a and ( attr2 = true or attr3 =
false)

I get the  exception: Or filters cannot be applied to multiple
properties

Is there a recommended way get the entites with conditions like that
or do I have to perform two queries one after another and combine the
results in the application.

-- 
You 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: No API environment is registered for this thread when launching GWT devmode

2011-01-06 Thread frank
Is this a common problem or do you need more info?

Thanks for your help

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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 app enginge generate a key for a new entity in a entity group

2011-01-05 Thread frank
Tnx, I´ll try. I think that will help.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] No API environment is registered for this thread when launching GWT devmode

2011-01-02 Thread frank
Hello

I have a GWT App with a GAE backend.
It works fine, if I compile the GWT Frontend an run it against the
local GAE envirinment.

If I try to launch the GWT devmode, I get:
No API environment is registered for this thread

Can someone help me.
Thanks

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



[google-appengine] Exception persisting 2 entities not in a transaction

2010-12-27 Thread frank
Hi,

I´m new to GAE and I have a problem with the datastore.

I add 2 new entities not in a transaction and I get the Exception:
javax.persistence.PersistenceException: Illegal argument
at
org.datanucleus.jpa.NucleusJPAHelper.getJPAExceptionForJDOException(NucleusJPAHelper.java:
214)

Caused by: java.lang.IllegalArgumentException: can't operate on
multiple entity groups in a single transaction. found both Element {
  type: En
  id: 1
}
 and Element {
  type: En
  id: 2
}

I know the two entities are not in the same entity group, but I
persisted them not in a transaction.

here is the code:
---
public class CreateSomeObjects
{
  private final LocalServiceTestHelper helper =
  new LocalServiceTestHelper(new
LocalDatastoreServiceTestConfig());

  public CreateSomeObjects()
  {}

  @Before
  public void setUp()
  { helper.setUp(); }

  @After
  public void tearDown()
  { helper.tearDown();  }


  @Test
  public void createWithoutTA1()
  { try
{ EntityManager em = Gae.emfInstance.createEntityManager();
  En e;
  e=new En(Nummer1);
  em.persist(e);
  e=new En(Nummer2);
  em.persist(e);
  em.close();
} catch (Exception ex)
{ ex.printStackTrace();
  fail(unerwartete Exception: + ex.getMessage());
}
  }
}
---
@Entity
public class En implements Serializable {
  private static final long serialVersionUID = 1L;
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  private String name;

  public En()
  {}

  public En(String name)
  { this.name = name; }

  public Key getId()
  { return id; }
  public void setId(Key id)
  { this.id = id; }
  public String getName()
  { return name; }
  public void setName(String name)
  { this.name = name; }
}

-- 
You 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] Prerelease SDK 1.4.0 is out!

2010-11-18 Thread aaron frank
Or is there a prerelease location for the documentation?

On Thu, Nov 18, 2010 at 5:45 PM, Ross M Karchner rosskarch...@gmail.comwrote:

 In Python, how do we use:

 - Channel API
 - Metadata Queries


 On Thu, Nov 18, 2010 at 5:40 PM, Robert Kluin robert.kl...@gmail.comwrote:

 Huge release.  Looking forward to it going live.

 Nice work App Engine Team.



 Robert





 On Thu, Nov 18, 2010 at 17:27, Ikai Lan (Google)
 ikai.l+gro...@google.com ikai.l%2bgro...@google.com wrote:
  Hey everyone,
  I just wanted to let everyone know that prerelease SDK 1.4.0 is out! Get
 it
  from the Google Code project:
  http://code.google.com/p/googleappengine/downloads/list
  We're still working on the docs and will have them ready for the final
  release, so if there are any questions about how to use the new
 features,
  feel free to ask on this thread and I'll do my best to clarify them. The
  release notes are below. This is an EXCITING release:
  Python
  
  - The Always On feature allows applications to pay and keep 3 instances
 of
  their
application always running, which can significantly reduce application
latency.
  - Developers can now enable Warmup Requests. By specifying  a handler in
 an
app's app.yaml, App Engine will attempt to to send a Warmup Request to
initialize new instances before a user interacts with it. This can
 reduce
  the
latency an end-user sees for initializing your application.
  - The Channel API is now available for all users.
  - Task Queue has been officially released, and is no longer an
 experimental
feature. The API import paths that use 'labs' have been deprecated.
 Task
  queue
storage will count towards an application's overall storage quota, and
  will
thus be charged for.
  - The deadline for Task Queue and Cron requests has been raised to 10
  minutes.
Datastore and API deadlines within those requests remain unchanged.
  - For the Task Queue, developers can specify task retry_parameters in
 their
queue.yaml.
  - Metadata Queries on the datastore for datastore kinds, namespaces, and
  entity
properties are available.
  - URLFetch allowed response size has been increased, up to 32 MB.
 Request
  size
is still limited to 1 MB.
  - The Admin Console Blacklist page lists the top blacklist rejected
  visitors.
  - The automatic image thumbnailing service supports arbitrary crop sizes
 up
  to
1600px.
  - Overall average instance latency in the Admin Console is now a
 weighted
average over QPS per instance.
  - The developer who uploaded an app version can download that version's
 code
using the appcfg.py download_app command. This feature can be disabled
 on
a per application basis in the admin console, under the 'Permissions'
 tab.
Once disabled, code download for the application CANNOT be re-enabled.
  - Fixed an issue where custom Admin Console pages did not work for
 Google
Apps for your Domain users.
  - Allow Django initialization to be moved to appengine_config.py to
 avoid
Django version conflicts when mixing webapp.template with pure Django.
  http://code.google.com/p/googleappengine/issues/detail?id=1758
  - Fixed an issue in the dev_appserver where get_serving_url did not work
for transparent, cropped PNGs:
  http://code.google.com/p/googleappengine/issues/detail?id=3887
  - Fixed an issue with the DatastoreFileStub.
  http://code.google.com/p/googleappengine/issues/detail?id=3895
 
  Java
  -
  - The Always On feature allows applications to pay and keep 3 instances
 of
  their
application always running, which can significantly reduce application
latency.
  - Developers can now enable Warmup Requests. By specifying  a handler in
 an
app's appengine-web.xml, App Engine will attempt to to send a Warmup
  Request
to initialize new instances before a user interacts with it. This can
  reduce
the latency an end-user sees for initializing your application.
  - The Channel API is now available for all users.
  - Task Queue has been officially released, and is no longer an
 experimental
feature. The API import paths that use 'labs' have been deprecated.
 Task
  queue
storage will count towards an application's overall storage quota, and
  will
thus be charged for.
  - The deadline for Task Queue and Cron requests has been raised to 10
  minutes.
Datastore and API deadlines within those requests remain unchanged.
  - For the Task Queue, developers can specify task retry-parameters in
 their
queue.xml.
  - Metadata Queries on the datastore for datastore kinds, namespaces, and
  entity
properties are available.
  - URL Fetch allowed response size has been increased, up to 32 MB.
 Request
  size
is still limited to 1 MB.
  - The Admin Console Blacklist page lists the top blacklist rejected
  visitors.
  - The automatic image thumbnailing service supports arbitrary crop sizes
 up
  to
1600px.
  - Overall average instance 

[google-appengine] Existing users

2010-08-23 Thread Advidata - Frank
Hello,

Is there somewhere an best practice on how to handle existing users?

I have a large list of users, and i want to use the app engine google
authentication. But somehow i need to link the google accounts to my
existing user data.

I hope someone can help me. because i don't want to reinvent the
wheel...

-- 
You 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: Application not found

2010-07-03 Thread Frank Huddleston
 I wanted to update this, because I think I found the problem: the 
default url in my app.yaml ran main.py:

- url: /.*
  script: main.py

and there wasn't any entry in main.py for the root directory (/). So, 
without something more, the url wasn't found. I'd forgotten what I'd 
used to access the app, and so I just wasn't specifying a valid url for 
it. I needed to use /index, or /list, for example. / wouldn't work.
I've since added (/) to the main.py so it works with a plain or root 
url.


Regards,

Frank Huddleston

--
You 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: [appengine-java] Re: How to use OpenID on the GAE (with the GWT frontend)

2010-05-15 Thread Frank Harper
I just had a look and don't see any way to login.

On Sat, May 15, 2010 at 12:29, Drasko drasko.ko...@googlemail.com wrote:

 And just as I managed to make it working, the new release 1.3.4 got
 released and really got me totally scared as no more federated methods
 were there. Luckily it was just an API cleanup and now both the
 Google Account API and the (Experimental) Federated Login are
 using the same User class and the methods to obtain login and logout
 redirects ... COOL ;-)

 The extended Web Application Starter Project using a widget to
 authenticate users via OpenID is available on
 http://super-easy.appspot.com


 On May 14, 12:16 pm, Drasko drasko.ko...@googlemail.com wrote:
  I am doing a major rewrite of a working website. We have chosen GWT
  and GAE as the target architecture.
 
  I would like to complement our propriatory user authentication schema
  with OpenID. Hence, I was very happy that GAE supports the federated
  login. After spending the last 8 hours, I have failed to discover any
  useful artifacts that would make me understand how to use the User API
  in the federated mode.
 
  Additionally, I found out that the guestbook sample gets broken when
  switching the authentication option from the Google Account API to
  the Federated Login, causing the login page to be repeatedly called
  (shortly showing the CheckCookie URL inbetween). I guess this is not a
  planned behaviour, even thought the method used for obtaining the
  redirect URL is not forseen for the federated mode (createLoginURL vs
  createFederatedLoginURL).
 
  I would appreciate any comments and/or pointers on this topic as I am
  aiming on producing a set of basic demo applications using the most
  promising libraries. The findings will be published in the  blog
  (super-easy.blogspot.com) with the hope that others won't need to
  waste so much time.
 
  I read lots of posts reffering to the dyuproject as a viable OpenID
  library for GAE and will use it as the next candidate.
 
  Thanks for your help
 
  --
  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 athttp://
 groups.google.com/group/google-appengine-java?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.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.



[google-appengine] Re: AppEngine Crashing

2009-08-18 Thread Frank

same here...

google? anyone listening?


On Aug 18, 12:19 pm, vivpuri vivpu...@gmail.com wrote:
 http://appengine.google.com/is not loading up and neither is my app.
 This is not acceptable at all.

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



[google-appengine] Re: Getting the We're sorry... page

2009-08-06 Thread Frank

Me too!
my users are getting this error right now, please help

... but your query looks similar to automated requests from a
computer virus or spyware application. To protect our users, we can't
process your request right now.

peago.com


On Aug 6, 7:06 am, morten mor...@fusemail.com wrote:
 Hi

 I'm getting the We're sorry... page when I try to access our GAE site
 using the mapped Google Apps domain name. When I go through the
 normal .appspot.com address everything works as expected.

 Any idea about what is going on?

 (pretty sure that I don't have a virus that is accessing our app
 engine app :))

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



[google-appengine] Re: Offline?

2009-07-02 Thread frank cayo

me too

On Jul 2, 11:39 am, chenbaiping chenbaip...@revenco.com wrote:
 I cannot update my app.
 Error 500: --- begin server output ---

 Server Error (500)
 A server error has occurred.
 --- end server output ---

 -邮件原件-
 发件人: google-appengine@googlegroups.com 
 [mailto:google-appeng...@googlegroups.com] 代表 conman
 发送时间: 2009年7月2日 23:37
 收件人: Google App Engine
 主题: [google-appengine] Re: Offline?

 same for me

 On 2 Jul., 17:30, bruno.braga bruno.br...@gmail.com wrote:

  And this is the attempt to open the dashboard:

 http://lh3.ggpht.com/_A7V9t45pMLU/SkzRNkvwu0I/TE4/zryzVNPq1Ck...

  KILLÓʼþ°²È«Íø¹Ø ÒѾ­É¨ÃèÁËÕâ·âÓʼþ 

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



[google-appengine] Re: Server Errors on Admin, Status, and Application, AppEngine basically down.

2009-07-02 Thread Frank

Thank you for updating the downtime forum:

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



[google-appengine] How do I activate my account in chile?

2009-06-29 Thread frank cayo

hi


in Chile there is no support for sending sms, is there an alternative
way to activate my account and create more applications?

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



[google-appengine] Issues filtering a query on a date (in order to paginate)

2009-05-21 Thread Frank

Hi,

I have this simple code below to paginate on a list of items that
include a datetime property named 'dCreated' ( dCreated =
db.DateTimeProperty(auto_now_add=True)  )


offset = self.request.get('offset')
offsetNext = None

query = Subscription.all().order(-dCreated)

if offset != :
   query.filter(dCreated =, offset)

aItems = query.fetch(limit=21)

if len(aItems) == 21:
   offsetNext  = aItems[-1].dCreated
   aItems   = aItems[:20]


...then I put offsetNext and aItems in the template and render it.
the next page is called with offsetNext as offset in the url (...?
offset={{offsetNext}} )

the listing works and the items are sorted properly, but it never
change page, the filter on dCreated clearly doesn't have any effect.

any idea what I'm doing wrong?

many thanks for the help
Frank



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



[google-appengine] Re: Issues filtering a query on a date (in order to paginate)

2009-05-21 Thread Frank

ok I found the problem, the offset simply needs to be converted to a
datetime first.
makes sense of course, but it would be great if the article talking
about this (http://code.google.com/appengine/articles/paging.html) was
updated to reflect that requirement. thanks.

On May 21, 6:13 pm, Frank fran...@gmail.com wrote:
 Hi,

 I have this simple code below to paginate on a list of items that
 include a datetime property named 'dCreated' ( dCreated =
 db.DateTimeProperty(auto_now_add=True)  )

 offset = self.request.get('offset')
 offsetNext = None

 query = Subscription.all().order(-dCreated)

 if offset != :
    query.filter(dCreated =, offset)

 aItems = query.fetch(limit=21)

 if len(aItems) == 21:
    offsetNext  = aItems[-1].dCreated
    aItems       = aItems[:20]

 ...then I put offsetNext and aItems in the template and render it.
 the next page is called with offsetNext as offset in the url (...?
 offset={{offsetNext}} )

 the listing works and the items are sorted properly, but it never
 change page, the filter on dCreated clearly doesn't have any effect.

 any idea what I'm doing wrong?

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



[google-appengine] urlfetch random errors

2009-03-12 Thread Frank

Hello everyone,

I'm having some serious problems with urlfetch today, it's throwing
errors randomly: ApplicationError 2 and 5.
This is really weird since it's been working fine so far.

I am calling my own servers on EC2, they're under no load at all, it's
just me hitting them.
I'm no expert at tcpdump but I've managed to see that a tcp packet
does hit the server when I do the urlfetch, but my webserver doesn't
get it, and AppEngine returns a ApplicationError.
Again nothing has changed on this server, besides adding logs
everywhere to trace what's going on.

I'm really puzzled by all this, I don't have any other problems with
those servers otherwise, never had a web page failing to load, ssh is
running while I trace this so they're not loosing any connectivity
otherwise I'd notice.

anybody having similar issues?
and does anyone know a good tcpdump usage to figure out what's getting
there? can the packet be corrupted?

many thanks in advance for your help

Cheers
Frank

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



[google-appengine] am I the only one seeing only one version of my application in the admin console?

2009-02-26 Thread Frank

Hi everyone,

I am seeing only one version of my application in the 'Versions' menu
of the admin console (online), even though of course I am uploading
new versions regulary, so I'm starting to wonder if my console has a
bug, or am I missing something?
Basically there's no way for me to revert to an old version.

Thanks for you help

Frank


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



[google-appengine] Re: am I the only one seeing only one version of my application in the admin console?

2009-02-26 Thread Frank

I knew I was forgetting something!!! :)

Thanks again for your help guys


On Feb 26, 11:47 am, Romain Pierre devel...@gmail.com wrote:
 Hello,

 Me too, but try to change the version in the app.yaml configuration file.

 Cordialement,
 Romain Pierre

 --
 Nedelis SARL
 +33 (0) 607 308 909www.nedelis.com

 Ce message et toutes les pièces jointes (ci-après le message) sont établis
 a l'intention exclusive de ses destinataires et sont confidentiels. Si vous
 recevez ce message par erreur, merci de le détruire et d'en avertir
 immédiatement l'expéditeur. Toute utilisation de ce message non conforme à
 sa destination, toute diffusion ou toute publication, totale ou partielle,
 est interdite, sauf autorisation expresse. Nedelis décline toute
 responsabilité au titre de ce message, dans l'hypothèse où il aurait été
 modifié.



 On Thu, Feb 26, 2009 at 8:45 PM, Frank fran...@gmail.com wrote:

  Hi everyone,

  I am seeing only one version of my application in the 'Versions' menu
  of the admin console (online), even though of course I am uploading
  new versions regulary, so I'm starting to wonder if my console has a
  bug, or am I missing something?
  Basically there's no way for me to revert to an old version.

  Thanks for you help

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



[google-appengine] Re: New Limits for Several App Engine Operations

2009-02-16 Thread frank Shi


Because of these limits , leading to the implementation of my program
sometimes unsuccessful.
http://www.delicioustools.com

On 2月14日, 上午6时13分, Marce (Google) ma...@google.com wrote:
 For those of you who haven't already heard, we're very excited
 yesterday to have announced that we've raised limits on several App
 Engine operations:

 * No more High CPU Requests! App Engine Apps were once allowed
 no more than 2 CPU-intensive requests per minute. We've made some
 adjustments to the way we handle requests, and have eliminated this
 limitation altogether. To learn more about how this works and the
 implications for your app, see our documentation.
 * Response deadline raised to 30 seconds. The amount of time an
 App Engine app can take to respond to an incoming request has been
 raised from 10 to 30 seconds! There are limits on the number of
 simultaneous active requests an application can process at any given
 moment--see our docs to learn more.
 * Size limits on code files, static files, and requests/responses
 raised to 10MB! App Engine apps can now receive requests and send
 responses of up to 10MB in size, and users can upload 10MB code and
 static files as well. Note that API requests (e.g. memcache.set(),
 db.put()) are still limited to 1MB in size.

 These changes were inspired and driven by a great deal of developer
 feedback, and we're not done! Please let us know what you'd like to
 see next on App Engine .

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



[google-appengine] 502 server error appears google appengine? Why

2009-02-16 Thread frank Shi

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



[google-appengine] Change passwords on google mail

2009-02-10 Thread Frank Daly

Hi

I'm not sure if this is the correct forum - if not could someone direct
me to the right place.

We user gmail to communicate with our users.  I'm trying to change the
password of users who forget their gmail passwords using code rather
than changing these passwords manually - has anyone got any link with
instructions on how to do this?

Many thanks in advance

Frank

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



[google-appengine] Using ReferenceProperty is very(!) slow

2008-09-12 Thread Frank

Hello everyone,

I've been profiling my application lately in order to optimize it and
find the cause of the 'high cpu' warnings I get, and here are my
preliminary findings: ReferenceProperty is (extremely) slow.

To give you a context, the db of my app is like a big hierarchy where
branches can be reattached elsewhere, and I've been using a
ReferenceProperty as the 'parent' node reference for each branch.
(please note that I am not talking about entity groups, I can't use
them in my app).

For testing purposes I was listing a (heavy) branch with 150 entities,
outputing their properties in xml.
Here are the results:

- Test A: 1023442 function calls (964623 primitive calls) in 6.886 CPU
seconds
- Test B: 527314 function calls (497375 primitive calls) in 3.297 CPU
seconds

now, here's the difference between the two tests, these 2 simple lines
(called on each entity, so 150 times):

if self.oParent is None:
   xml += parent='0' 

I made further test and realize that basically any reference to the
ReferenceProperty 'oParent' doubles the number of function calls (!).

of course I am not talking about accessing the ReferenceProperty's own
properties, I am only interested to see if it's None (and I tried with
both '==' and 'is'), and also getting its id
(self.oParent.key().id()), and doing one or the other gives the same
behavior.

And the most puzzling is that this is always the same 'oParent' 150
times, since I'm listing its children, so I would expect this
ReferenceProperty to be cached already.


Any Google engineer listening? some advice/explaination here would be
greatly appreciated.

Many thanks for your help

Frank

--~--~-~--~~~---~--~~
You 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---