Re: [appengine-java] Debugging in Eclipse - App Engine dev web server doesn't respond

2011-03-22 Thread zbs
Hello!

I am experiencing a very similar problem but I have verified this only 
happens when I use eclipse.

If I run a web service from netbeans for example, I can connect to localhost 
perfectly.

What could be wrong?

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] Google checkout and GAE

2011-03-22 Thread Tarun Jain
Hello Will,

I am assuming you are using the Google Checkout integration java API. Though
I don't remember the exact details but I recall having run into similar
issues with Google Checkout when I was doing some work for
Exxtensionshttps://www.exxential.com/exxtensions/home and
it turned out that it was the JAXB context creation that accounted for
almost all the delay. So it is not really an issue with checkout being slow,
but the client library just isn't optimized. Ultimately, I had to move the
creation of the context to the static block apart from several other minor
changes here and there.

Hope that helps.

Tarun

On Mon, Mar 21, 2011 at 10:34 PM, WillSpecht willspe...@gmail.com wrote:

 I am trying to integrate Google checkout with my GAE app.  I am
 hitting 2 big bottle necks.  exampleNotificationServelet is using a
 ton of CPU and usually fails with a time out if starting a new
 instance.  I'm reading a few values from the merchant data and then
 doing one write to the data store.  I don't see what can be taking
 that much time.

 It is also taking forever to create a cart and redirect to the Google
 checkout page.  It takes almost 15 seconds once pressing the checkout
 button.  I have narrowed this down to the build and postCart methods.
 When I step through while debugging on my local host, these methods
 take about 10-12 seconds to complete.  Is this normal?

 I am having trouble debugging exampleNotificationServelet, since I
 don't know what checkout is sending to my server.  Can anyone explain
 a good way to fake a notification to the localhost running
 exampleNotificationServelet? So I can set break points and see what is
 taking up so much CPU.

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



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



[appengine-java] Re: ImagesServiceFactory.makeImageFromBlob(blobKey) image.getImageData() gets NULL error

2011-03-22 Thread branflake2267
I'm going to try to get the job done with HTML5 for now, until the server 
has the features to do the job.

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.html?overview-summary.html

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#images

-- 
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] raise limits for applications

2011-03-22 Thread Perun Katana
Hi all,
 
I was thinking if there could be a way to raise the limits for applications. 
My contecern is, that I have a JNLP application with a nice bunch of 
libraries included (e.g. jasper reports, etc), which takes the application 
nicely over 10 MB. The application is built as a Netbeans RPC application, 
so there is a jnlp-servlet for downloading all necessary files. 
Unfortunatelly, such applications are rarely under 10 MB.
 
The jnlp-servlet itself does not consume much memory (as far I know), so 
this is not a problem, To download all libraries may take a little 
processing time, traffic and request time (well, even for slow trafic I hope 
each library is downloaded in 30s), but that's why there is billing quota 
for I am willing to pay. I'd see the google apps as a nice platform to 
deploy web start applications too, but for bigger application there would be 
nice to raise request handler quotas too, even if it would be a payed 
service. I don't think a need a separate VPS instance running 24x7 just to 
download a jnlp application.
 
The question is, if there is another solution or I'll have to work on 
getting the static libraries deployed somewhere else (not a bad ide too).
 
Regards
 Perun

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



[appengine-java] Re: Google checkout and GAE

2011-03-22 Thread WillSpecht
Can someone explain why the SDK doesn't work on app engine.  Does it
use a library that's not on the white list? Is it just broken in
general and doesn't work well anywhere?

On Mar 22, 7:02 am, Tarun Jain tj...@exxential.com wrote:
 Hello Will,

 I am assuming you are using the Google Checkout integration java API. Though
 I don't remember the exact details but I recall having run into similar
 issues with Google Checkout when I was doing some work for
 Exxtensionshttps://www.exxential.com/exxtensions/home and
 it turned out that it was the JAXB context creation that accounted for
 almost all the delay. So it is not really an issue with checkout being slow,
 but the client library just isn't optimized. Ultimately, I had to move the
 creation of the context to the static block apart from several other minor
 changes here and there.

 Hope that helps.

 Tarun

 On Mon, Mar 21, 2011 at 10:34 PM, WillSpecht willspe...@gmail.com wrote:
  I am trying to integrate Google checkout with my GAE app.  I am
  hitting 2 big bottle necks.  exampleNotificationServelet is using a
  ton of CPU and usually fails with a time out if starting a new
  instance.  I'm reading a few values from the merchant data and then
  doing one write to the data store.  I don't see what can be taking
  that much time.

  It is also taking forever to create a cart and redirect to the Google
  checkout page.  It takes almost 15 seconds once pressing the checkout
  button.  I have narrowed this down to the build and postCart methods.
  When I step through while debugging on my local host, these methods
  take about 10-12 seconds to complete.  Is this normal?

  I am having trouble debugging exampleNotificationServelet, since I
  don't know what checkout is sending to my server.  Can anyone explain
  a good way to fake a notification to the localhost running
  exampleNotificationServelet? So I can set break points and see what is
  taking up so much CPU.

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



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



[appengine-java] Google Apps Marketplace sample application exceptio

2011-03-22 Thread Balázs Jilling
Hi!

I followed the steps in this tutorial, and my app is hosted on app engine.
http://code.google.com/intl/hu-HU/googleapps/marketplace/tutorial_java.html

I had the following experiences:
- On my private listing in the Apps Marketplace I click on Add it now, I 
give my apps domain and as I click on the Go button nothing happens.
- I go to the app engine and open the application from there. It starts, 
asks for my domain, I grant access for the app to my domain, and after that 
the folowing message appears:
Error: Server ErrorThe server encountered an error and could not complete 
your request.
I checked the log and it says:

   1. 
   
   /hello
   com.google.gdata.util.AuthenticationException: OK
   HTML
   HEAD
   TITLEToken invalid - Invalid AuthSub token./TITLE
   /HEAD
   BODY BGCOLOR=#FF TEXT=#00
   H1Token invalid - Invalid AuthSub token./H1
   H2Error 401/H2
   /BODY
   /HTML
   
at 
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:564)
at 
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543)
at 
com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:536)
at 
com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:515)
at 
com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:515)
at com.google.gdata.client.Service.getFeed(Service.java:1053)
at com.google.gdata.client.Service.getFeed(Service.java:995)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:662)
at com.google.gdata.client.Service.query(Service.java:1155)
at com.google.gdata.client.Service.query(Service.java:1096)
at 
com.google.code.samples.apps.marketplace.CalendarServlet.nextEvent(CalendarServlet.java:119)
at 
com.google.code.samples.apps.marketplace.CalendarServlet.doGet(CalendarServlet.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at 
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at 
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
at 
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:261)
at 
com.google.apphosting.base.RuntimePb$EvaluationRuntime$2.handleRequest(RuntimePb.java:8440)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:454)
at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:572)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:688)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:326)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:318)
at 
com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:446)
at 

Re: [appengine-java] Task Enqueue in a Transaction

2011-03-22 Thread Tom Gibara
It's my understanding that, with HR, getting an entity by key is only
strongly consistent within a transaction.

If this is wrong, then a significant portion of my own task handling
code may need revisiting...

Perhaps someone who knows more could clarify this.

Tom.

On 21 March 2011 22:10, Simon Knott knott.si...@gmail.com wrote:
 I've got a query about tasks and transactions on a High-replication app that
 I'm hoping someone can help me with.
 I've got the following scenario:
 1) Begin a transaction
 2) Persist an entity
 3) Enqueue a task within the transaction
 4) Commit the transaction
 Within the task, I get the entity via its key and I'm finding that the
 object has yet to be updated in the datastore - it was my belief that
 getting an entity via its key is strongly consistent, so I was quite
 surprised to see that the entity was stale.  Is this result expected?  I've
 got some defensive code in place now which just re-enqueues the task, but I
 wasn't sure whether that was the right approach.
 I originally had the same issue on the MS version of my app, before I
 realised that I needed to enqueue the task within the same transaction to
 ensure the persist had occurred before the task was run.

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


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



Re: [appengine-java] Task Enqueue in a Transaction

2011-03-22 Thread Simon Knott
I thought that it was strongly consistent because in the background the 
get-by-key was forced into a transaction and that you didn't have to declare 
it yourself.  If it didn't happen so sporadically, I'd test to see whether 
this fixed the issue!

As you say, if someone could clarify that would be great.  If consistency 
isn't the issue, then it looks to me that the task is being kicked off 
before the transaction is committed.

-- 
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] Task Enqueue in a Transaction

2011-03-22 Thread Jay Young
According to the docs, gets, puts, deletes, and ancestor queries are all 
strongly consistent:
http://code.google.com/appengine/docs/java/datastore/hr/

-- 
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] Set password for appcfg.sh update

2011-03-22 Thread Benjamin Muschko
Hi,

Is there way to use a pre-defined password (e.g. set as a parameter or
from some file) for the update task (http://code.google.com/appengine/
docs/java/tools/uploadinganapp.html)? Unfortunately, I couldn't find
an appropriate parameter. I'd like to upload my app to App Engine as
part of an automated Continuous Integration process without having to
enter the password on the command-line.

Thanks,

Ben

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



Re: [appengine-java] Task Enqueue in a Transaction

2011-03-22 Thread Tom Gibara
Thanks for the link, somehow I'd managed to miss that page of
documentation entirely*; it's good to know, though it indicates other
problems for the OP.

I'm not clear on why eventually consistent gets aren't an option, ie.
why all gets are indicated as being strongly consistent. Is this a
direct consequence of replication algorithm used? There are various
places in the code I'm currently developing where dirty gets are
adequate and I'd be happy to see them faster.

* As an aside, I do find the documentation on the datastore feels very
scattered. I'd much prefer sections on the underlying app engine
mechanics with less language specific guidance.

Tom.

On 22 March 2011 17:59, Jay Young jayyoung9...@gmail.com wrote:
 According to the docs, gets, puts, deletes, and ancestor queries are all
 strongly consistent:
 http://code.google.com/appengine/docs/java/datastore/hr/


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



[appengine-java] Re: Task Enqueue in a Transaction

2011-03-22 Thread Didier Durand
Hi,

For me, the answer is here:
http://code.google.com/appengine/docs/java/datastore/transactions.html#Isolation_and_Consistency

They say: Queries and gets inside a transaction are guaranteed to see
a single, consistent snapshot of the datastore as of the beginning of
the transaction. In particular, entities and index rows in the
transaction's entity group are fully updated so that queries return
the complete, correct set of result entities, without the false
positives or false negatives described in Transaction Isolation that
can occur in queries outside of transactions.

The task is part of the initial transaction so it sees the ds as of
the beginning of the transaction

regards

didier

On Mar 22, 9:12 pm, Tom Gibara tomgib...@gmail.com wrote:
 Thanks for the link, somehow I'd managed to miss that page of
 documentation entirely*; it's good to know, though it indicates other
 problems for the OP.

 I'm not clear on why eventually consistent gets aren't an option, ie.
 why all gets are indicated as being strongly consistent. Is this a
 direct consequence of replication algorithm used? There are various
 places in the code I'm currently developing where dirty gets are
 adequate and I'd be happy to see them faster.

 * As an aside, I do find the documentation on the datastore feels very
 scattered. I'd much prefer sections on the underlying app engine
 mechanics with less language specific guidance.

 Tom.

 On 22 March 2011 17:59, Jay Young jayyoung9...@gmail.com wrote:

  According to the docs, gets, puts, deletes, and ancestor queries are all
  strongly consistent:
 http://code.google.com/appengine/docs/java/datastore/hr/



-- 
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: [google-appengine] Re: gae needs a counter service

2011-03-22 Thread Nick Johnson (Google)
On Sat, Mar 19, 2011 at 12:10 PM, Barry Hunter barrybhun...@gmail.comwrote:

 On 19 March 2011 00:22, Nick Johnson (Google) wrote:

  On Fri, Mar 18, 2011 at 7:03 AM, Joshua Smith wrote:

 
  Generate the next sequential ID is a function universally provided by
  SQL databases.  Also, SQL databases always provide an efficient
 count(rows)
  function, whereas GAE does not.  So I don't think it's unreasonable to
  expect google to back-fill this deficiency as David asks.
 
  Actually, I'm not aware of any relational databases that provide an
  efficient count() implementation other than on complete tables (which is
  rarely very useful) - counting the results in an arbitrary result set
  requires iterating over all the rows, which is what App Engine does.

 At least some can answer count queries using just index scans - ie
 doesnt touch the actual data. Can get close to that with keys_only -
 which persumably is just what the index contains - and counting the
 rows, but it still requires transfer of all keys to the application (I
 think anyway) just to be discarded.


This is exactly what the .count() method does in App Engine. It's still
O(n), though.

-Nick Johnson



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




-- 
Nick Johnson, Developer Programs Engineer, 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] Re: Prerelease SDK 1.4.3 now available for download

2011-03-22 Thread PK
I run the prerelease through the test suite of my python app and
passed. Thanks for the new features and for not introducing any
regressions.

I am glad to see fixes/new feature with sqlite and blobstore. In my
case more fixes are needed before I am able to attempt the switch
(3085  3835 for blobs/3265,3124,3689 for sqlite). I look forward to
seeing these fixes in the near future along with the Next Gen
queries...

PK
http://www.gae123.com

On Mar 21, 11:27 am, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:
 Hey guys,

 We're pretty close to releasing SDK 1.4.3. You can download the prerelease
 SDKs for local verification at:

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

 As usual, these are local SDK only and shouldn't work when deployed, though
 some features may partially work due to the fact that the backends may have
 partially been pushed (protip: don't do it).

 Release notes are below. Lots of cool stuff in this release! Big ones? Files
 API for programmatic blobstore writes, Prospective Search API, concurrent
 requests for Java (this is huge), deferred and Remote API libraries for Java
 + lots of bug fixes.

 Python 1.4.3
 =
 - Added Files API that allows writing to and reading from files in
 blobstore.
 - You can now specify cron execution for a time interval between a start and
 end
   time.
 - You can now configure the specific application version to which a task
 queue
   or cron job will send requests.
 - The Admin Console Task Queues page now displays a more accurate estimate
 of
   queue size for queues containing more than 2000 tasks.
 - The Prospective Search API (formerly named the Matcher API) is available
 for
   use by all applications. This API is still experimental, so applications
 will
   be limited to a maximum of 1000 subscriptions.
 - The Testbed API provides easy configuration of stub libraries for local
   integration tests.
 - In the Images API, the quality parameter was added to the resize, rotate,
   horizontal_flip, vertical_flip, crop and im_feeling_lucky methods.
 - Fixed an issue where static file serving in the dev_appserver didn't
 support
   etags.
    http://code.google.com/p/googleappengine/issues/detail?id=368
 - An error is now raised when the script mapping in the app.yaml file is
 missing
   the .py file extension.
    http://code.google.com/p/googleappengine/issues/detail?id=976
 - Fixed an issue where no link was displayed in the Admin Console blobstore
   viewer for an unnamed blob.
 - Fixed an issue where the Admin Console data viewer couldn't edit entities
   with ByteString properties.
    http://code.google.com/p/googleappengine/issues/detail?id=2367
 - Fixed an issue where the Admin Console crashed when using a non-ascii
   key_name.
    http://code.google.com/p/googleappengine/issues/detail?id=2451
 - Fixed an issue filtering on __key__ while using the --use_sqlite option
 with
   the dev_appserver.
    http://code.google.com/p/googleappengine/issues/detail?id=3232
 - The Disable Application admin function has been button-ized.
    http://code.google.com/p/googleappengine/issues/detail?id=4323
 - Fixed an SDK issue where debugging logging wouldn't correctly print
 URLFetch
   payloads.
    http://code.google.com/p/googleappengine/issues/detail?id=783
 - Fixed an SDK issue where an incompatible line ending was used on blob
 upload.
    http://code.google.com/p/googleappengine/issues/detail?id=3328
 - Added more graceful handling of the missing mapreduce.yaml file when the
 user
   has enabled the Datastore Admin but is not otherwise using the MapReduce
   framework.
    http://code.google.com/p/googleappengine/issues/detail?id=3903
 - Fixed an issue where the method webapp_add_wsgi_middleware was no longer
   recognized.
    http://code.google.com/p/googleappengine/issues/detail?id=4236

 Java 1.4.3
 =
 - Added FileService API that allows writing to and reading from files in
   blobstore.
 - You can now specify cron execution for a time interval between a start and
 end
   time.
 - Java applications can enable concurrent request support by setting
   threadsafe to True in their appengine-web.xml. This flag indicates that
   request handlers for your app are thread safe and multiple request
 handlers
   may safely run at the same time in the same memory space for your
 application.
 - Deferred library support now available in Java.
    http://code.google.com/p/googleappengine/issues/detail?id=2381
 - Remote API library now available in Java. This can be used in conjunction
 with
   apps using either the Java or the Python runtime.
 - The Java SDK now supports kindless and ancestor only queries.
 - Fixed an issue where JAX-WS clients in the SDK could not handle receiving
 a
   SOAP fault.
 - Fixed an issue where the SDK did not support fetching HTTPS URLs.
 - Fixed an issue where no link was displayed in the Admin Console blobstore
   viewer for an unnamed blob.
 - Fixed an issue where the 

[google-appengine] Python AppEngine down

2011-03-22 Thread Justin
Hi,

My Python app has been down since approx 06:52 UTC; app can't seem to find 
the AppEngine runtime libraries; is this a general outage ?

Thanks,

Justin

-- 
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] Python AppEngine down

2011-03-22 Thread Justin
Hi,

My Python app has been unavailable since approx 06:52 UTC today; looks like 
the app can't find the AppEngine runtime libraries; is this a general outage 
?

Thanks,

Justin

-- 
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: Python AppEngine down

2011-03-22 Thread Justin
Apologies, my error; left a trailing bracket in an import library :-(

On Mar 22, 7:02 am, Justin justin.worr...@gmail.com wrote:
 Hi,

 My Python app has been unavailable since approx 06:52 UTC today; looks like
 the app can't find the AppEngine runtime libraries; is this a general outage
 ?

 Thanks,

 Justin

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



Re: [google-appengine] Re: Prerelease SDK 1.4.3 now available for download

2011-03-22 Thread Jeff Schnitzer
On Mon, Mar 21, 2011 at 1:56 PM, Matija matija.jerko...@gmail.com wrote:
 Can you explain 'concurrent requests for Java' ?

(warning: I don't work for the big G)

Believe it or not, all GAE/Java requests are all single-threaded right
now... similar to the GAE/Python architecture.  It doesn't matter much
for your app since GAE spins up as many instances as necessary to
handle load, but it's inefficient - especially considering the ~75MB
memory footprint of each JVM compares unfavorably to ~13 for a Python
VM.  Looks like that restriction is about to be removed.

Google:  Why not just make this the default?  Or at least announce
that it will become the future default, so people don't start counting
on single-threaded behavior.  Presumably we've all been coding to the
servlet API, which is very specific about thread behavior.  I don't
think anyone realized that requests were single-threaded, and if they
coded with this (undocumented and spec-violating) assumption, they
deserve to have their apps break.

I imagine that you could cut down the total # of instances running in
the cluster by a significant factor (2x, 3x, more?) this way.  My hope
is that this efficiency will ultimately lead to a cheaper and faster
appengine... but people need some incentive not to use single thread
mode.

Jeff

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



RE: [google-appengine] Re: Python AppEngine down

2011-03-22 Thread Brandon Wirtz
If you version your pushes you can always check if you blew something up by
failing back to a last good version with the 1.myapp.appspot.com 



-Original Message-
From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of Justin
Sent: Tuesday, March 22, 2011 12:07 AM
To: Google App Engine
Subject: [google-appengine] Re: Python AppEngine down

Apologies, my error; left a trailing bracket in an import library :-(

On Mar 22, 7:02 am, Justin justin.worr...@gmail.com wrote:
 Hi,

 My Python app has been unavailable since approx 06:52 UTC today; looks 
 like the app can't find the AppEngine runtime libraries; is this a 
 general outage ?

 Thanks,

 Justin

--
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] What's the syntax of the cron job for the first day of every month?

2011-03-22 Thread 王宇辉
Hey, I want to generate a monthly report on the first day of the month, any
idea on doing this with cron jobs?

-- 
Best regards,
Yuhui

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



Re: [google-appengine] Re: email sent by GAE would be regarded as spam for some email services

2011-03-22 Thread Eric Ka Ka Ng
me 2. Have integrated the SES service within our GAE apps.  work good and
solved our problems

sure it would be more nice if GAE can provide email service at the quality
level similar to the Amazon SES one (at least would not be classified as
SPAM), so we dont need to manage both . could we make this suggestion to GAE
team?

- eric


On 22 March 2011 05:30, Jamie H ja...@mhztech.com wrote:

 Wow, great idea!  I have been having some delivery issues lately with
 GAE and looking for an alternative.

 I just downloaded a pythong Amazon SES library, signed up for SES, and
 put it all together and it works like a charm with GAE!

 On Mar 20, 10:31 pm, Nickolas Daskalou n...@daskalou.com wrote:
  Hi Eric,
 
  Have you looked at Amazon's Simple Email Service (SES)?
 
  http://aws.amazon.com/ses/
 
  Pretty much the same cost as sending email using GAE, except with SES you
  only get 2,000 free emails if you're sending email from an EC2 instance.
 
  I haven't used it myself but apparently they scan outgoing mail to make
 sure
  it meets ISP standards. This leads me to believe emails sent via SES
 would
  be less likely to be automatically marked as spam than on GAE, since
 SES's
  spam-sending-reputation would be lower than GAE's, due to their
  pre-filtering and rate-limiting.
 
  Nick
 
  On 21 March 2011 13:51, Eric Ka Ka Ng ngk...@gmail.com wrote:
 
   Hi Ernesto,
 
   thx for your suggestion! yes, i think it shall work.
 
   but in general if we can't ask all our users to add our email to their
   contact list (or they are not willing to do so), how can emails sent by
 us
   prevent to be regarded as spam? all our subject, body etc. are nothing
   spam-liked, and seems it's the problem of the email server that
 actually
   sends the email. anyone share similar case, or has other solution?
 
   regards,
   eric
 
   On 19 March 2011 00:12, Ernesto Karim Oltra ernestoka...@gmail.com
 wrote:
 
   Ask the user to add the e-mail from address of your e-mails to their
   contacts list, so your e-mails would never been sent to spam again
   (for that users, at least).
 
   It's a bit hacky, but can do a great work meanwhile you find another
   solution.
 
   On 18 mar, 07:52, Eric Ka Ka Ng ngk...@gmail.com wrote:
we use mail.send_mail() to send some important messages to our users
   through
an app hosted on GAE, in which the 'from' has been set to one of a
registered admin for the app.
 
it works quite well for most users, except for some email service
   provider
(e.g. '...@yahoo.com.hk'), they would always automatically treat
 these
   emails
as spam and put them into spam box of the user's email account (if
 the
   user
has enabled the spam filtering feature, which is by default ON) .
 in
   this
case, many of our users do not aware for these important messages
 (they
would seldom look into mails in their spambox)
 
we have tried using different from, subject, body and the
 results
   are
the same. we suspect that it is the email server does matter, and
 maybe
before there were some other apps hosted on GAE sending spams to
 like '@
yahoo.com.hk', so '...@yahoo.com.hk' would regard all emails sent
 from
   this
email server in GAE as spam.
 
do anyone share similar experiences? or there should be other
 causes?
   any
ideas we can solve this problem? (successfully deliver the email to
 our
users using those email service without being regarded as spam) thx
 in
advanced!
 
- eric
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to
 google-appengine@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
--
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to google-appengine@googlegroups.com
 .
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

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



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

Re: RE: [google-appengine] HR Issues (But Up time is great)

2011-03-22 Thread Simon Knott
I'm glad to hear it's now working for 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.



Re: [google-appengine] Re: Prerelease SDK 1.4.3 now available for download

2011-03-22 Thread Simon Knott
I agree with Jeff - anyone who is used to developing with a servlet 
container realises that they are dealing with a multi-threaded environment 
and should already be coding with this in mind.

I'm honestly really surprised that this support isn't there already - 
thankfully it's performed well enough that it hasn't been noticable!

A quick question for the Google team - will the multi-request handler 
behaviour be rolled out into the local development server as well, or is 
this only being enabled for the production environment?

-- 
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: GQL performance slow

2011-03-22 Thread adhi
Hi Ikai, is there a measure to say the entities are large? is it about
the number of
columns or blob or text? if so in my entities I have string and number
properties only.

Yes. I need all the 2000 (some times bit more) entities at once for
reporting.
Currently I'm not seeing a way where I can split the keys and fetch.


On Mar 21, 11:54 pm, Ikai Lan (Google) ika...@google.com wrote:
 If that's the performance, then I'm inclined to say the entities are large
 and that's about the performance you can expect. One more thing to keep in
 mind: the cost of deserializing each entity is non-trivial.

 Is there a reason you need all 2000 entities? Perhaps there is a different
 way to accomplish what you want without querying a (relatively) large number
 of entities at once.

 One other possible solution that will at least make your user facing code
 run faster is to split the query up by key, perform multiple async queries
 and join them at the end. It'll still consume the same (or more) CPU time,
 but the user ms should be lower since you are doing things in parallel. The
 tradeoff here, of course, is that you'd need to know how you can split up
 the keyspace.

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







 On Mon, Mar 21, 2011 at 12:17 AM, adhi adhinaraya...@gmail.com wrote:
  q = db.Query(PrimaryData)
  q.filter('SheetMetadataId', metadata.getSheetId())
  return q.fetch(2000)

  Hi Ikai, even the above query takes 3.3 ~ 3.6 seconds. The number of
  entities returned by the query is 1261.
  I'm using Expando model, the total number columns for this particular
  set of entities are 25.
  Yes. I've created composite index. Here is the index definition.

  - kind: PrimaryData
   properties:
   - name: SheetMetadataId
   - name: InstanceAssignedTo

  please let me know if you need more information.

  On Mar 17, 11:50 pm, Ikai Lan (Google) ika...@google.com wrote:
   If you have a composite index, the performance of this query should be
   mostly linear (find start location of index and just return min(2000,
  number
   of entities that satisfy query from there on out) number of keys and
  items.
   If you only have individual indexes for SheetMetadataId as well as
   InstanceAssignedTo, this uses zigzag merge join, where performance can
   greatly vary depending on the shape of the data.

   Just out of curiosity, what is the performance of this query?

   q = db.Query(PrimaryData)
   q.filter('SheetMetadataId', metadata.getSheetId())
   return q.fetch(2000)

   If it's in a similar ballpark, my other guess is that the query takes
  that
   amount of time because the entities are large.

   You mentioned created a composite index. Can you post that?

   I'll talk to the datastore team to see what we can do to provide
  something
   similar to EXPLAIN plans for queries.

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

   On Thu, Mar 17, 2011 at 10:07 AM, adhi adhinaraya...@gmail.com wrote:
Hi Robert,
I've not used reference properties. Its a simple query and it'll be
like this.

q = db.Query(PrimaryData)
q.filter('SheetMetadataId', metadata.getSheetId())
q.filter('InstanceAssignedTo IN',
[u'User_c42e8919_448e_11e0_b87b_f58d20c6e2c3',
u'User_1fd87ac5_073d_11e0_8ba1_c122a5867c4a'])
return q.fetch(2000)

and I replaced the IN filter to '=' with single value. Still its
taking same time.

On Mar 17, 6:27 am, Robert Kluin robert.kl...@gmail.com wrote:
 Use Appstats. It may not be the query that is slow.  If you are using
 reference properties, perhaps you are dereferencing them.  If you
 should us the query and how you're using the results we might be abel
 to give more suggestions.

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

 Robert

 On Mon, Mar 14, 2011 at 10:54, adhi adhinaraya...@gmail.com wrote:
  Hi, I'm running a query in appengine which is returning just 1200
  entities, but its taking 3.5 seconds. The query doesn't contains
  inequality filters, but anyway I added index for that. Can anyone
  tell
  me how to analyse this and improve theperformance?

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

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

[google-appengine] Re: emails are not received

2011-03-22 Thread VTR Ravi Kumar
hi Binu,

You can have multiple cname entries like
mail.domainname.com - ghs.google.com
docs.domainname.com - ghs.google.com
Calendar.domainname.com - ghs.google.com
blog.domainname.com - ghs.google.com

etc.,

On Mar 12, 1:13 pm, Binu vm binu...@gmail.com wrote:
 Hi Ravi,

 Thanks for the quick reply.
 I have added one cname entry.
 Should I enter another cname entry for email as well?

 Thanks
 Binu.V.M

 On Mar 12, 12:54 pm, VTR Ravi Kumar vtrraviku...@gmail.com wrote:







  Hi Binu,

  Does the domain provider allow you to create the cname entries like
  mail.domainname.com - ghs.google.com

  Thanks

  Ravi

  On Sat, Mar 12, 2011 at 1:22 PM, Binu vm binu...@gmail.com wrote:
   Hello,
   Hello,

   I have one domain.That domain has been mapped to google app engine.
   Now we have successfully created 2-3 email accounts. Now the problem
   is
   those email accounts are not able to receive any mails from any
   domain. But we are able to
   send mail to any domain. The problem what I have noticed is the domain
   name which is
   hosted on a free domain hosting. There it does not support free email
   accounts.
   Could that be a problem?

   In the application settings- Configured Services it is showing two
   serivces has been enabled.

   1. Incomeing Email
   2. Warmup Requests

   Request you to help on this issue.

   Thanks
   Binu.V.M

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

  --
  Thanks  Regards
  VTR Ravi Kumar,
  --- 
  
  If everything seems under control, you're not going fast enough
    - Mario Andretti

 http://www.firststop.inhttp://www.box.net/shared/hf82389ky7

-- 
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] What's the syntax of the cron job for the first day of every month?

2011-03-22 Thread Robert Kluin
Hi,
  Have you tried:

cron:
- description: monthly summary job
  url: /tasks/summary/monthly
  schedule: 1 of month 00:00




Robert







On Tue, Mar 22, 2011 at 04:12, 王宇辉 yuhui.w...@gmail.com wrote:
 Hey, I want to generate a monthly report on the first day of the month, any
 idea on doing this with cron jobs?

 --
 Best regards,
 Yuhui



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


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



[google-appengine] Re: Prerelease SDK 1.4.3 now available for download

2011-03-22 Thread Adam
Thanks for the fantastic news Ikai. Can't wait to play with the pre-
release when I finish work today :)

Keep up the great work!

-- 
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] Can't create a new app using the Google App Engine...

2011-03-22 Thread Tony O Dowd
I've created my first App on the Google App Engine and everything went
well, however, now when I try to create a new application it asks me
to Verify my Account using SMS. As I've already done this previously,
it will not allow me to specify my phone number again. I've tried
using other phone numbers but it just won't let me past this
verification screen

Anybody experience a similar problem and have a solution?

Thanks in advance,

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



[google-appengine] Re: Gobo-tools

2011-03-22 Thread knj77
Hi,

It seems like a same problem as
http://code.google.com/p/googleappengine/issues/detail?id=4603

How about follow above?

-knj77


On Mar 22, 1:51 pm, VHT Corp vht...@gmail.com wrote:
 hi!

 i work with Google App Engine, I used Gobo-tools to backup and
 restores data, i has an erorr:

 Problem accessing /gobo/dump/start.gobo. Reason:

     java.lang.RuntimeException: Unable to complete the HTTP request

 Caused by:

 java.lang.RuntimeException: java.lang.RuntimeException: Unable to
 complete the HTTP request
         at gobo.GoboServlet.processReguest(GoboServlet.java:55)
         at gobo.GoboServlet.doPost(GoboServlet.java:20)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
         at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi 
 lter.java:
 51)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
 actionCleanupFilter.java:
 43)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile 
 Filter.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.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn 
 gineWebAppContext.java:
 70)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:351)
         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)
 Caused by: java.lang.RuntimeException: Unable to complete the HTTP
 request
         at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.getHeaderFields(URLFetchServiceStreamHandler.java:218)
         at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.getHeaderFields(URLFetchServiceStreamHandler.java:74)
         at
 com.google.gdata.client.http.HttpGDataRequest.isOAuthProxyErrorResponse(Htt 
 pGDataRequest.java:
 558)
         at
 com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques 
 t.java:
 549)
         at
 com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java :
 530)
         at
 com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. 
 java:
 535)
         at com.google.gdata.client.Service.insert(Service.java:1409)
         at com.google.gdata.client.GoogleService.insert(GoogleService.java:
 599)
         at
 com.google.gdata.client.media.MediaService.insert(MediaService.java:
 381)
         at
 gobo.service.GbSpreadsheetService.createSpreadsheet(GbSpreadsheetService.ja 
 va:
 200)
         at gobo.controller.dump.StartController.runAuth(StartController.java:
 45)
         at gobo.AuthSubBase.run(AuthSubBase.java:70)
         at gobo.GoboServlet.processReguest(GoboServlet.java:43)
         ... 28 more
 Caused by: javax.net.ssl.SSLHandshakeException: Could not verify SSL
 certificate for:https://docs.google.com/feeds/default/private/full/
         at
 com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc 
 eption(URLFetchServiceImpl.java:
 114)
         at
 com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService 
 Impl.java:
 41)
         at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 

[google-appengine] Re: Gobo-tools

2011-03-22 Thread knj77
Hi,

It seems like the same problem as
http://code.google.com/p/googleappengine/issues/detail?id=4603
How about following the above?

Thanks,
Kenji,


On Mar 22, 1:51 pm, VHT Corp vht...@gmail.com wrote:
 hi!

 i work with Google App Engine, I used Gobo-tools to backup and
 restores data, i has an erorr:

 Problem accessing /gobo/dump/start.gobo. Reason:

     java.lang.RuntimeException: Unable to complete the HTTP request

 Caused by:

 java.lang.RuntimeException: java.lang.RuntimeException: Unable to
 complete the HTTP request
         at gobo.GoboServlet.processReguest(GoboServlet.java:55)
         at gobo.GoboServlet.doPost(GoboServlet.java:20)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
         at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi 
 lter.java:
 51)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
 actionCleanupFilter.java:
 43)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile 
 Filter.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.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn 
 gineWebAppContext.java:
 70)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:351)
         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)
 Caused by: java.lang.RuntimeException: Unable to complete the HTTP
 request
         at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.getHeaderFields(URLFetchServiceStreamHandler.java:218)
         at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.getHeaderFields(URLFetchServiceStreamHandler.java:74)
         at
 com.google.gdata.client.http.HttpGDataRequest.isOAuthProxyErrorResponse(Htt 
 pGDataRequest.java:
 558)
         at
 com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques 
 t.java:
 549)
         at
 com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java :
 530)
         at
 com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. 
 java:
 535)
         at com.google.gdata.client.Service.insert(Service.java:1409)
         at com.google.gdata.client.GoogleService.insert(GoogleService.java:
 599)
         at
 com.google.gdata.client.media.MediaService.insert(MediaService.java:
 381)
         at
 gobo.service.GbSpreadsheetService.createSpreadsheet(GbSpreadsheetService.ja 
 va:
 200)
         at gobo.controller.dump.StartController.runAuth(StartController.java:
 45)
         at gobo.AuthSubBase.run(AuthSubBase.java:70)
         at gobo.GoboServlet.processReguest(GoboServlet.java:43)
         ... 28 more
 Caused by: javax.net.ssl.SSLHandshakeException: Could not verify SSL
 certificate for:https://docs.google.com/feeds/default/private/full/
         at
 com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc 
 eption(URLFetchServiceImpl.java:
 114)
         at
 com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService 
 Impl.java:
 41)
         at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 

[google-appengine] Re: It's so sad.

2011-03-22 Thread 李晓东
Thanks all your guys!

On Tue, Mar 22, 2011 at 8:35 AM, Brandon Donnelson
branflake2...@gmail.comwrote:

 Sad. Wish it worked for you better.

 Brandon


-- 
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: channel.js not returning the correct mime type

2011-03-22 Thread Moishe
There's a fix for this rolling out soon (should be within a week).

In the meantime, you can copy the file locally and serve it statically
from your app (with the correct mime type). I realize that's not an
ideal solution, but it should work.

On Mar 21, 8:34 pm, Navraj S. Chohan nlak...@gmail.com wrote:
 Is there a fix to this or some work around? Any app with the channel API
 does not work in IE9 because of this issue.
 -Raj









 On Fri, Feb 4, 2011 at 4:53 PM, Philip phili...@gmail.com wrote:
  Google, please comment on this issue. It appears that the mime type
  being returned forhttp://talkgadget.google.com/talkgadget/channel.js
  is incorrect. If so, this needs to be fixed on your servers.

  On Jan 29, 6:19 pm, Philip phili...@gmail.com wrote:
   Some browsers (including IE 9) are experiencing issues withhttp://
  talkgadget.google.com/talkgadget/channel.js.

   Specifically, here is an error from IE 9 (beta):

       SEC7112: Script fromhttp://
  talkgadget.google.com/talkgadget/channel.js
   was blocked due to mime type mismatch

   Google, if you agree that this is an error on your server
   configuration for this javascript file, please make the necessary fix
   to the mime type being returned for this (and other) javascript
   file(s).

   Here are the headers currently being returned for channel.js:

   Cache-Control:private, max-age=0
   Content-Encoding:gzip
   Content-Type:text/html; charset=UTF-8  == error in Content-
   Type? ==
   Date:Sun, 30 Jan 2011 02:09:09 GMT
   Expires:Sun, 30 Jan 2011 02:09:09 GMT
   Server:GSE
   Transfer-Encoding:Identity
   X-Content-Type-Options:nosniff
   X-Xss-Protection:1; mode=block

   Please notice the content-type is currently text/html when it should
   probably be something like application/javascript.

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

 --
 Navraj Chohan (Raj)http://cs.ucsb.edu/~nchohanhttp://appscale.cs.ucsb.edu
 nlak...@gmail.com

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



Re: [google-appengine] Re: Prerelease SDK 1.4.3 now available for download

2011-03-22 Thread Ross M Karchner
Is there some sample code for the matcher API, out in the wild?

On Mon, Mar 21, 2011 at 5:19 PM, Adam a...@boabtech.com wrote:
 Thanks for the fantastic news Ikai. Can't wait to play with the pre-
 release when I finish work today :)

 Keep up the great work!

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





-- 
Ross M Karchner

-- 
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 create a new app using the Google App Engine...

2011-03-22 Thread Barry Hunter
A common cause of this, when using a Google Apps domain, you should access
it the admin at

http://appengine.google.com/a/yourdomainhere.com/

Otherwise you will run into issues.

... if you not using Google Apps, then I dont have any suggestions :(


On 22 March 2011 15:08, Tony O Dowd tonyat...@gmail.com wrote:

 I've created my first App on the Google App Engine and everything went
 well, however, now when I try to create a new application it asks me
 to Verify my Account using SMS. As I've already done this previously,
 it will not allow me to specify my phone number again. I've tried
 using other phone numbers but it just won't let me past this
 verification screen

 Anybody experience a similar problem and have a solution?

 Thanks in advance,

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



-- 
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] UnicodeDecodeError in Appengine deployed version, but not in Devserver

2011-03-22 Thread Kwame
'ascii' codec can't decode byte 0x8a in position 2: ordinal not in
range(128)

I've read so many solutions about this problem, even Nick's Blog:
http://blog.notdot.net/2010/07/Getting-unicode-right-in-Python

...which addresses the problem very well. So I've been able to resolve
this unicode issue on GAE devserver, however I continue to experience
it on my live deployed version. This makes no sense to me. Can anyone
help??

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



Re: [google-appengine] HR Issues (But Up time is great)

2011-03-22 Thread Ikai Lan (Google)
Good to hear it's working. If I hear anything about what changed, I'll let
you guys know.

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



On Mon, Mar 21, 2011 at 7:33 PM, Brandon Wirtz drak...@digerat.com wrote:

 I swear someone cheated... Or ran over and flipped a switch when I asked...
 Cause out of the same tool, now I get

 HTTP/1.1 200 OK
 Via: HTTP/1.1 GWA (remote cache hit)
 Accept-Ranges: bytes
 Last-Modified: Wed, 02 Mar 2011 01:25:48 GMT
 Etag: 159827d-169b0-49d75caeb5f00
 Content-Type: image/png
 Age: 6985
 Cache-Control: public; max-age=300
 Date: Tue, 22 Mar 2011 02:29:27 GMT
 Server: Google Frontend
 Content-Length: 92592


 Which even says that Google gave me a cache hit.  Which is interesting
 cause
 the Dashboard on the app doesn't claim it has any of those. (even though My
 MS version of the app does)

 So just ignore me, it seems to work well enough,  I'm just partially
 insane.
 :-)





 -Original Message-
 From: google-appengine@googlegroups.com
 [mailto:google-appengine@googlegroups.com] On Behalf Of Stephen
 Sent: Monday, March 21, 2011 3:54 PM
 To: google-appengine@googlegroups.com
 Subject: Re: [google-appengine] HR Issues (But Up time is great)

 On Sat, Mar 19, 2011 at 8:32 PM, Brandon Wirtz drak...@digerat.com
 wrote:
 
  1. Caching doesn’t work, and because of the way headers are
 forced to be set all requests expire immediately so the user won’t
 cache either.
 
  (Headers from a request)
 
  HTTP/1.1 405 Method Not Allowed
  Content-Type: text/html; charset=utf-8
  Cache-Control: no-cache, must-revalidate
  Expires: Fri, 01 Jan 1990 00:00:00 GMT
  Set-Cookie: S=apphosting=5hoCHm4x9c3ZrrxQEN5Q4A; path=/
  Date: Sat, 19 Mar 2011 19:37:21 GMT
  Pragma: no-cache
  Server: Google Frontend
  Content-Length: 0


 These look like headers from a response, not a request, and the response
 code is 405: Method Not Allowed. ie. the request was something other than a
 GET, POST, PUT or DELETE, in which case you might expect the error response
 to force a no-cache header.

 Are you sure your test is accurate?

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


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



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



[google-appengine] Re: UnicodeDecodeError in Appengine deployed version, but not in Devserver

2011-03-22 Thread Geoffrey Spear


On Mar 22, 12:45 pm, Kwame iweg...@gmail.com wrote:
 'ascii' codec can't decode byte 0x8a in position 2: ordinal not in
 range(128)

 I've read so many solutions about this problem, even Nick's 
 Blog:http://blog.notdot.net/2010/07/Getting-unicode-right-in-Python

 ...which addresses the problem very well. So I've been able to resolve
 this unicode issue on GAE devserver, however I continue to experience
 it on my live deployed version. This makes no sense to me. Can anyone
 help??

Without seeing your code, almost certainly not.

-- 
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] Serving talkgadet.google.com through your own app

2011-03-22 Thread Westmark
Hi!

I was just wondering how much of problem it would be to add the
possibility to serve the channel API through your own app instead of
via talkgadget.google.com. Kind of like how you serve the Remote API
by adding the handler to your app.yaml without actually writing any
code for it.

BR / Fredrik

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



Re: [google-appengine] Re: GQL performance slow

2011-03-22 Thread Ikai Lan (Google)
I think you should run AppStats and see what's going on. 2000 entities is
never going to be particularly fast, but 3 seconds might be a bit on the
high side. Run the tool to be sure.

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



On Tue, Mar 22, 2011 at 7:25 AM, adhi adhinaraya...@gmail.com wrote:

 Hi Ikai, is there a measure to say the entities are large? is it about
 the number of
 columns or blob or text? if so in my entities I have string and number
 properties only.

 Yes. I need all the 2000 (some times bit more) entities at once for
 reporting.
 Currently I'm not seeing a way where I can split the keys and fetch.


 On Mar 21, 11:54 pm, Ikai Lan (Google) ika...@google.com wrote:
  If that's the performance, then I'm inclined to say the entities are
 large
  and that's about the performance you can expect. One more thing to keep
 in
  mind: the cost of deserializing each entity is non-trivial.
 
  Is there a reason you need all 2000 entities? Perhaps there is a
 different
  way to accomplish what you want without querying a (relatively) large
 number
  of entities at once.
 
  One other possible solution that will at least make your user facing code
  run faster is to split the query up by key, perform multiple async
 queries
  and join them at the end. It'll still consume the same (or more) CPU
 time,
  but the user ms should be lower since you are doing things in parallel.
 The
  tradeoff here, of course, is that you'd need to know how you can split up
  the keyspace.
 
  Ikai Lan
  Developer Programs Engineer, Google App Engine
  Blog:http://googleappengine.blogspot.com
  Twitter:http://twitter.com/app_engine
  Reddit:http://www.reddit.com/r/appengine
 
 
 
 
 
 
 
  On Mon, Mar 21, 2011 at 12:17 AM, adhi adhinaraya...@gmail.com wrote:
   q = db.Query(PrimaryData)
   q.filter('SheetMetadataId', metadata.getSheetId())
   return q.fetch(2000)
 
   Hi Ikai, even the above query takes 3.3 ~ 3.6 seconds. The number of
   entities returned by the query is 1261.
   I'm using Expando model, the total number columns for this particular
   set of entities are 25.
   Yes. I've created composite index. Here is the index definition.
 
   - kind: PrimaryData
properties:
- name: SheetMetadataId
- name: InstanceAssignedTo
 
   please let me know if you need more information.
 
   On Mar 17, 11:50 pm, Ikai Lan (Google) ika...@google.com wrote:
If you have a composite index, the performance of this query should
 be
mostly linear (find start location of index and just return min(2000,
   number
of entities that satisfy query from there on out) number of keys and
   items.
If you only have individual indexes for SheetMetadataId as well as
InstanceAssignedTo, this uses zigzag merge join, where performance
 can
greatly vary depending on the shape of the data.
 
Just out of curiosity, what is the performance of this query?
 
q = db.Query(PrimaryData)
q.filter('SheetMetadataId', metadata.getSheetId())
return q.fetch(2000)
 
If it's in a similar ballpark, my other guess is that the query takes
   that
amount of time because the entities are large.
 
You mentioned created a composite index. Can you post that?
 
I'll talk to the datastore team to see what we can do to provide
   something
similar to EXPLAIN plans for queries.
 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog:http://googleappengine.blogspot.com
Twitter:http://twitter.com/app_engine
Reddit:http://www.reddit.com/r/appengine
 
On Thu, Mar 17, 2011 at 10:07 AM, adhi adhinaraya...@gmail.com
 wrote:
 Hi Robert,
 I've not used reference properties. Its a simple query and it'll be
 like this.
 
 q = db.Query(PrimaryData)
 q.filter('SheetMetadataId', metadata.getSheetId())
 q.filter('InstanceAssignedTo IN',
 [u'User_c42e8919_448e_11e0_b87b_f58d20c6e2c3',
 u'User_1fd87ac5_073d_11e0_8ba1_c122a5867c4a'])
 return q.fetch(2000)
 
 and I replaced the IN filter to '=' with single value. Still its
 taking same time.
 
 On Mar 17, 6:27 am, Robert Kluin robert.kl...@gmail.com wrote:
  Use Appstats. It may not be the query that is slow.  If you are
 using
  reference properties, perhaps you are dereferencing them.  If you
  should us the query and how you're using the results we might be
 abel
  to give more suggestions.
 
 http://code.google.com/appengine/docs/python/tools/appstats.html
 
  Robert
 
  On Mon, Mar 14, 2011 at 10:54, adhi adhinaraya...@gmail.com
 wrote:
   Hi, I'm running a query in appengine which is returning just
 1200
   entities, but its taking 3.5 seconds. The query doesn't
 contains
   inequality filters, but anyway I added index for that. Can
 anyone
   tell
   me how to analyse this and improve theperformance?
 
   

Re: [google-appengine] Re: Python AppEngine down

2011-03-22 Thread Ikai Lan (Google)
A general tip: Deploy a NON default version to stage your application, then
run a quick visual verification. When you're happy with the release, switch
that new version over to become the new default.

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



On Tue, Mar 22, 2011 at 12:07 AM, Justin justin.worr...@gmail.com wrote:

 Apologies, my error; left a trailing bracket in an import library :-(

 On Mar 22, 7:02 am, Justin justin.worr...@gmail.com wrote:
  Hi,
 
  My Python app has been unavailable since approx 06:52 UTC today; looks
 like
  the app can't find the AppEngine runtime libraries; is this a general
 outage
  ?
 
  Thanks,
 
  Justin

 --
 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] how to make gae and gwt sdks work together?

2011-03-22 Thread Ania
Hi,
I am developing web application where I use gwt and gae sdks.In a client 
module I'm using Users api and when i try to compile the app i'm getting an 
error that all gae imports and classes cannot be resolved.I was wondering if 
there is any special way to make them work together?
Thank you for any help,
Ania

-- 
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] appcfg error: No address associated with hostname

2011-03-22 Thread Ruggero Turra
I got this error every time I use appcfg doing updating, dowloading, ... I 
found some other threads with this problem and the reason was related to the 
use of a proxy, but I'm not under a proxy.

~/google_appengine/appcfg.py --noisy --email=giurr...@gmail.com update 
myapplication

Application: myapplication; version: 1.
Host: appengine.google.com
2011-03-22 21:04:30,530 DEBUG appengine_rpc.py:443 Could not load 
authentication cookies; LoadError: '/home/ruggero/.appcfg_cookies' does not 
look like a Netscape format cookies file 
2011-03-22 21:04:30,530 INFO appengine_rpc.py:153 Server: 
appengine.google.com 
2011-03-22 21:04:30,532 INFO appcfg.py:413 Checking for updates to the SDK. 
2011-03-22 21:04:30,533 DEBUG appengine_rpc.py:345 Sending HTTPS request:
POST 
/api/updatecheck?release=1.4.2timestamp=1294960686api_versions=%5B%271%27%5D 
HTTPS/1.1
Host: appengine.google.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: appcfg_py/1.4.2 Linux/2.6.35.11-83.fc14.x86_64 
Python/2.7.0.final.0

 
2011-03-22 21:04:30,534 DEBUG __init__.py:81 Creating preset proxy https 
conn: appengine.google.com 
2011-03-22 21:04:35,633 INFO appcfg.py:422 Update check failed: urlopen 
error [Errno -5] No address associated with hostname 
2011-03-22 21:04:35,634 INFO appcfg.py:1761 Reading app configuration. 

Beginning update of app: myapplication, version: 1
Scanning files on local disk.
2011-03-22 21:04:35,637 INFO appcfg.py:1779 Processing file 'app.yaml' 
2011-03-22 21:04:35,638 INFO appcfg.py:1868 Ignoring file 'index.html~': 
File matches ignore regex. 
2011-03-22 21:04:35,638 INFO appcfg.py:1868 Ignoring file 'my_model.pyc': 
File matches ignore regex. 
2011-03-22 21:04:35,639 INFO appcfg.py:1779 Processing file 'hello.py' 
2011-03-22 21:04:35,639 INFO appcfg.py:1868 Ignoring file 'contacts.html~': 
File matches ignore regex. 
2011-03-22 21:04:35,640 INFO appcfg.py:1779 Processing file 'index.html' 
2011-03-22 21:04:35,640 INFO appcfg.py:1868 Ignoring file 'my_model.py~': 
File matches ignore regex. 
2011-03-22 21:04:35,640 INFO appcfg.py:1868 Ignoring file 'hello.py~': File 
matches ignore regex. 
2011-03-22 21:04:35,641 INFO appcfg.py:1868 Ignoring file 'app.yaml~': File 
matches ignore regex. 
2011-03-22 21:04:35,641 INFO appcfg.py:1779 Processing file 'index.yaml' 
2011-03-22 21:04:35,642 INFO appcfg.py:1779 Processing file 'contacts.html' 
2011-03-22 21:04:35,642 INFO appcfg.py:1779 Processing file 'my_model.py' 
2011-03-22 21:04:35,643 INFO appcfg.py:1779 Processing file 
'stylesheets/main.css' 
Initiating update of app: myapplication, version: 1
2011-03-22 21:04:35,662 INFO appcfg.py:1502 Send: /api/appversion/create, 
params={'version': '1', 'app_id': 'myapplication'} 
2011-03-22 21:04:35,667 DEBUG appengine_rpc.py:345 Sending HTTPS request:
POST /api/appversion/create?version=1app_id=myapplication HTTPS/1.1
Host: appengine.google.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: appcfg_py/1.4.2 Linux/2.6.35.11-83.fc14.x86_64 
Python/2.7.0.final.0

admin_console:
  pages:
  - name: Datastore Admin
url: /_ah/datastore_admin/
api_version: '1'
application: myapplication
builtins:
- datastore_admin: 'on'
- default: 'on'
derived_file_type:
- python_precompiled
handlers:
- login: admin
  script: $PYTHON_LIB/google/appengine/ext/datastore_admin/main.py
  secure: optional
  url: /_ah/datastore_admin.*
- login: admin
  script: $PYTHON_LIB/google/appengine/ext/mapreduce/main.py
  secure: optional
  url: /_ah/mapreduce.*
- secure: optional
  static_dir: stylesheets
  url: /stylesheets
- script: hello.py
  secure: optional
  url: /.*
runtime: python
version: '1'
 
2011-03-22 21:04:35,668 DEBUG __init__.py:81 Creating preset proxy https 
conn: appengine.google.com 
2011-03-22 21:04:40,780 ERROR appcfg.py:1840 An unexpected error occurred. 
Aborting. 
Traceback (most recent call last):
  File /home/ruggero/google_appengine/google/appengine/tools/appcfg.py, 
line 1795, in DoUpload
missing_files = self.Begin()
  File /home/ruggero/google_appengine/google/appengine/tools/appcfg.py, 
line 1546, in Begin
self.Send('/api/appversion/create', payload=self.config.ToYAML())
  File /home/ruggero/google_appengine/google/appengine/tools/appcfg.py, 
line 1503, in Send
return self.rpcserver.Send(url, payload=payload, **self.params)
  File 
/home/ruggero/google_appengine/google/appengine/tools/appengine_rpc.py, 
line 346, in Send
f = self.opener.open(req)
  File /usr/lib64/python2.7/urllib2.py, line 391, in open
response = self._open(req, data)
  File /usr/lib64/python2.7/urllib2.py, line 409, in _open
'_open', req)
  File /usr/lib64/python2.7/urllib2.py, line 369, in _call_chain
result = func(*args)
  File /usr/lib64/python2.7/urllib2.py, line 1181, in https_open
return self.do_open(httplib.HTTPSConnection, req)
  File 
/home/ruggero/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py, 
line 367, in do_open
raise url_error
URLError: 

Re: [google-appengine] blogging drop-in package

2011-03-22 Thread vlad
bloog seems to be abandoned. No updates since 2008 there

Will check out blogart

Thank everyone!

-- 
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] Is HTTPS blobstore Upload Realy Secure ?

2011-03-22 Thread Mahron

If you setup the upload example from the documentation and use it
using an https url the upload url returned from create_upload_url will
be https://*.appspot.com/_ah/upload/*.

The File is uploaded but the Secure Incoming Bandwidth in the Quota
Details of the admin remains at 0%.

So is the file realy uploaded securely ?

-- 
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] Is HTTPS blobstore Upload Realy Secure ?

2011-03-22 Thread Ikai Lan (Google)
Yes, it is encrypted. If it's not showing up in bandwidth, that could be a
bug.

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



On Tue, Mar 22, 2011 at 1:55 PM, Mahron gan...@xehon.com wrote:


 If you setup the upload example from the documentation and use it
 using an https url the upload url returned from create_upload_url will
 be https://*.appspot.com/_ah/upload/*.

 The File is uploaded but the Secure Incoming Bandwidth in the Quota
 Details of the admin remains at 0%.

 So is the file realy uploaded securely ?

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



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



Re: [google-appengine] Re: Upcoming scheduled maintenance for April

2011-03-22 Thread Ikai Lan (Google)
HR applications will still have access to Memcache. I don't believe it will
be flushed.

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



On Thu, Mar 17, 2011 at 7:34 PM, Raymond C. windz...@gmail.com wrote:

 How long will it last?

 By the way I am curious, is memcache still functions for HR during the
 maintenance on M/S?

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


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



[google-appengine] Re: Is HTTPS blobstore Upload Realy Secure ?

2011-03-22 Thread Mahron
Ok, thanks.

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



Re: [google-appengine] Re: email sent by GAE would be regarded as spam for some email services

2011-03-22 Thread Ikai Lan (Google)
I actually think we are moving away from this direction. For customers
sending large volumes of email or who require delivery guarantees, we'll be
encouraging the use of services that are specifically designed for this
functionality.

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



On Tue, Mar 22, 2011 at 1:35 AM, Eric Ka Ka Ng ngk...@gmail.com wrote:

 me 2. Have integrated the SES service within our GAE apps.  work good and
 solved our problems

 sure it would be more nice if GAE can provide email service at the quality
 level similar to the Amazon SES one (at least would not be classified as
 SPAM), so we dont need to manage both . could we make this suggestion to GAE
 team?

 - eric


 On 22 March 2011 05:30, Jamie H ja...@mhztech.com wrote:

 Wow, great idea!  I have been having some delivery issues lately with
 GAE and looking for an alternative.

 I just downloaded a pythong Amazon SES library, signed up for SES, and
 put it all together and it works like a charm with GAE!

 On Mar 20, 10:31 pm, Nickolas Daskalou n...@daskalou.com wrote:
  Hi Eric,
 
  Have you looked at Amazon's Simple Email Service (SES)?
 
  http://aws.amazon.com/ses/
 
  Pretty much the same cost as sending email using GAE, except with SES
 you
  only get 2,000 free emails if you're sending email from an EC2 instance.
 
  I haven't used it myself but apparently they scan outgoing mail to make
 sure
  it meets ISP standards. This leads me to believe emails sent via SES
 would
  be less likely to be automatically marked as spam than on GAE, since
 SES's
  spam-sending-reputation would be lower than GAE's, due to their
  pre-filtering and rate-limiting.
 
  Nick
 
  On 21 March 2011 13:51, Eric Ka Ka Ng ngk...@gmail.com wrote:
 
   Hi Ernesto,
 
   thx for your suggestion! yes, i think it shall work.
 
   but in general if we can't ask all our users to add our email to their
   contact list (or they are not willing to do so), how can emails sent
 by us
   prevent to be regarded as spam? all our subject, body etc. are nothing
   spam-liked, and seems it's the problem of the email server that
 actually
   sends the email. anyone share similar case, or has other solution?
 
   regards,
   eric
 
   On 19 March 2011 00:12, Ernesto Karim Oltra ernestoka...@gmail.com
 wrote:
 
   Ask the user to add the e-mail from address of your e-mails to their
   contacts list, so your e-mails would never been sent to spam again
   (for that users, at least).
 
   It's a bit hacky, but can do a great work meanwhile you find another
   solution.
 
   On 18 mar, 07:52, Eric Ka Ka Ng ngk...@gmail.com wrote:
we use mail.send_mail() to send some important messages to our
 users
   through
an app hosted on GAE, in which the 'from' has been set to one of a
registered admin for the app.
 
it works quite well for most users, except for some email service
   provider
(e.g. '...@yahoo.com.hk'), they would always automatically treat
 these
   emails
as spam and put them into spam box of the user's email account (if
 the
   user
has enabled the spam filtering feature, which is by default ON) .
 in
   this
case, many of our users do not aware for these important messages
 (they
would seldom look into mails in their spambox)
 
we have tried using different from, subject, body and the
 results
   are
the same. we suspect that it is the email server does matter, and
 maybe
before there were some other apps hosted on GAE sending spams to
 like '@
yahoo.com.hk', so '...@yahoo.com.hk' would regard all emails sent
 from
   this
email server in GAE as spam.
 
do anyone share similar experiences? or there should be other
 causes?
   any
ideas we can solve this problem? (successfully deliver the email to
 our
users using those email service without being regarded as spam) thx
 in
advanced!
 
- eric
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to
 google-appengine@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
--
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to
 google-appengine@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

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

[google-appengine] Task queue operation while datastore is in readonly mode.

2011-03-22 Thread Alexander Maslov
I'm really sorry, if this question has already been answered, but I haven't 
found any clear answer. Is task queue fully operational, while datastore is 
in readonly mode? Do we still able to add new tasks? In my case I have to 
add log entry in the datastore on each request. I don't mind if this log 
entry is persisted in datastore with some lag. So I was thinking over to add 
task queue task to store log entry at later time, if datastore is not 
available at the time of original request. Will it work? I do not want to 
use memcache, since it can be flushed.

-- 
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] Prerelease SDK 1.4.3 now available for download

2011-03-22 Thread Jeff Schnitzer
On Mon, Mar 21, 2011 at 11:27 AM, Ikai Lan (Google)
ikai.l+gro...@google.com wrote:
 Java 1.4.3
 =
 - Deferred library support now available in Java.
     http://code.google.com/p/googleappengine/issues/detail?id=2381

This looks really great.  You guys did a good job with the API.

Jeff

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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: email sent by GAE would be regarded as spam for some email services

2011-03-22 Thread Jamie H
Ikai,

On that note, do you have any services besides SES that you
recommend?  SES works well with GAE however you must slowly up your
quotas, forcing you to send some mail via SES and some through GAE
until your quotas are adjusted high enough...

On Mar 22, 4:29 pm, Ikai Lan (Google) ika...@google.com wrote:
 I actually think we are moving away from this direction. For customers
 sending large volumes of email or who require delivery guarantees, we'll be
 encouraging the use of services that are specifically designed for this
 functionality.

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

 On Tue, Mar 22, 2011 at 1:35 AM, Eric Ka Ka Ng ngk...@gmail.com wrote:

  me 2. Have integrated the SES service within our GAE apps.  work good and
  solved our problems

  sure it would be more nice if GAE can provide email service at the quality
  level similar to the Amazon SES one (at least would not be classified as
  SPAM), so we dont need to manage both . could we make this suggestion to GAE
  team?

  - eric

  On 22 March 2011 05:30, Jamie H ja...@mhztech.com wrote:

  Wow, great idea!  I have been having some delivery issues lately with
  GAE and looking for an alternative.

  I just downloaded a pythong Amazon SES library, signed up for SES, and
  put it all together and it works like a charm with GAE!

  On Mar 20, 10:31 pm, Nickolas Daskalou n...@daskalou.com wrote:
   Hi Eric,

   Have you looked at Amazon's Simple Email Service (SES)?

  http://aws.amazon.com/ses/

   Pretty much the same cost as sending email using GAE, except with SES
  you
   only get 2,000 free emails if you're sending email from an EC2 instance.

   I haven't used it myself but apparently they scan outgoing mail to make
  sure
   it meets ISP standards. This leads me to believe emails sent via SES
  would
   be less likely to be automatically marked as spam than on GAE, since
  SES's
   spam-sending-reputation would be lower than GAE's, due to their
   pre-filtering and rate-limiting.

   Nick

   On 21 March 2011 13:51, Eric Ka Ka Ng ngk...@gmail.com wrote:

Hi Ernesto,

thx for your suggestion! yes, i think it shall work.

but in general if we can't ask all our users to add our email to their
contact list (or they are not willing to do so), how can emails sent
  by us
prevent to be regarded as spam? all our subject, body etc. are nothing
spam-liked, and seems it's the problem of the email server that
  actually
sends the email. anyone share similar case, or has other solution?

regards,
eric

On 19 March 2011 00:12, Ernesto Karim Oltra ernestoka...@gmail.com
  wrote:

Ask the user to add the e-mail from address of your e-mails to their
contacts list, so your e-mails would never been sent to spam again
(for that users, at least).

It's a bit hacky, but can do a great work meanwhile you find another
solution.

On 18 mar, 07:52, Eric Ka Ka Ng ngk...@gmail.com wrote:
 we use mail.send_mail() to send some important messages to our
  users
through
 an app hosted on GAE, in which the 'from' has been set to one of a
 registered admin for the app.

 it works quite well for most users, except for some email service
provider
 (e.g. '...@yahoo.com.hk'), they would always automatically treat
  these
emails
 as spam and put them into spam box of the user's email account (if
  the
user
 has enabled the spam filtering feature, which is by default ON) .
  in
this
 case, many of our users do not aware for these important messages
  (they
 would seldom look into mails in their spambox)

 we have tried using different from, subject, body and the
  results
are
 the same. we suspect that it is the email server does matter, and
  maybe
 before there were some other apps hosted on GAE sending spams to
  like '@
 yahoo.com.hk', so '...@yahoo.com.hk' would regard all emails sent
  from
this
 email server in GAE as spam.

 do anyone share similar experiences? or there should be other
  causes?
any
 ideas we can solve this problem? (successfully deliver the email to
  our
 users using those email service without being regarded as spam) thx
  in
 advanced!

 - eric

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

[google-appengine] Re: UnicodeDecodeError in Appengine deployed version, but not in Devserver

2011-03-22 Thread Kwame
Sure Geoffrey. Sorry about that.

class Person(db.model):
  name = db.StringProperty()
  description = db.TextProperty()


class PersonHandler(webapp.RequestHandler):
  def get(self):
pers = Person()
pers.name = unicode(encrypt_data(self.request.get('name')))
pers.description =
unicode(encrypt_data(self.request.get('description')))
pers.put()


def encrypt_data(plaintext):
obj=ARC4.new(RSAPrivateKey())
return obj.encrypt(plaintext)


def decrypt_data(ciphertext):
obj=ARC4.new(RSAPrivateKey())
return obj.decrypt(ciphertext)

#

This code properly encrypts/decrypts the webapp request variables and
stores into the Person Object while running on the localhost Dev
server, but on the Deployed app, it throws a UnicodeDecodeError. I've
also tried:

unicode(encrypt_data(self.request.get('description'))).encode('utf-8')
but that fails on both servers



On Mar 22, 1:25 pm, Geoffrey Spear geoffsp...@gmail.com wrote:
 On Mar 22, 12:45 pm, Kwame iweg...@gmail.com wrote:

  'ascii' codec can't decode byte 0x8a in position 2: ordinal not in
  range(128)

  I've read so many solutions about this problem, even Nick's 
  Blog:http://blog.notdot.net/2010/07/Getting-unicode-right-in-Python

  ...which addresses the problem very well. So I've been able to resolve
  this unicode issue on GAE devserver, however I continue to experience
  it on my live deployed version. This makes no sense to me. Can anyone
  help??

 Without seeing your code, almost certainly not.

-- 
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] appcfg error: No address associated with hostname

2011-03-22 Thread Robert Kluin
Have you tried it with Python 2.5?




Robert






On Tue, Mar 22, 2011 at 16:09, Ruggero Turra giurr...@gmail.com wrote:
 I got this error every time I use appcfg doing updating, dowloading, ... I
 found some other threads with this problem and the reason was related to the
 use of a proxy, but I'm not under a proxy.
 ~/google_appengine/appcfg.py --noisy --email=giurr...@gmail.com update
 myapplication

 Application: myapplication; version: 1.
 Host: appengine.google.com
 2011-03-22 21:04:30,530 DEBUG appengine_rpc.py:443 Could not load
 authentication cookies; LoadError: '/home/ruggero/.appcfg_cookies' does not
 look like a Netscape format cookies file
 2011-03-22 21:04:30,530 INFO appengine_rpc.py:153 Server:
 appengine.google.com
 2011-03-22 21:04:30,532 INFO appcfg.py:413 Checking for updates to the SDK.
 2011-03-22 21:04:30,533 DEBUG appengine_rpc.py:345 Sending HTTPS request:
 POST
 /api/updatecheck?release=1.4.2timestamp=1294960686api_versions=%5B%271%27%5D
 HTTPS/1.1
 Host: appengine.google.com
 X-appcfg-api-version: 1
 Content-type: application/octet-stream
 User-agent: appcfg_py/1.4.2 Linux/2.6.35.11-83.fc14.x86_64
 Python/2.7.0.final.0

 2011-03-22 21:04:30,534 DEBUG __init__.py:81 Creating preset proxy https
 conn: appengine.google.com
 2011-03-22 21:04:35,633 INFO appcfg.py:422 Update check failed: urlopen
 error [Errno -5] No address associated with hostname
 2011-03-22 21:04:35,634 INFO appcfg.py:1761 Reading app configuration.
 Beginning update of app: myapplication, version: 1
 Scanning files on local disk.
 2011-03-22 21:04:35,637 INFO appcfg.py:1779 Processing file 'app.yaml'
 2011-03-22 21:04:35,638 INFO appcfg.py:1868 Ignoring file 'index.html~':
 File matches ignore regex.
 2011-03-22 21:04:35,638 INFO appcfg.py:1868 Ignoring file 'my_model.pyc':
 File matches ignore regex.
 2011-03-22 21:04:35,639 INFO appcfg.py:1779 Processing file 'hello.py'
 2011-03-22 21:04:35,639 INFO appcfg.py:1868 Ignoring file 'contacts.html~':
 File matches ignore regex.
 2011-03-22 21:04:35,640 INFO appcfg.py:1779 Processing file 'index.html'
 2011-03-22 21:04:35,640 INFO appcfg.py:1868 Ignoring file 'my_model.py~':
 File matches ignore regex.
 2011-03-22 21:04:35,640 INFO appcfg.py:1868 Ignoring file 'hello.py~': File
 matches ignore regex.
 2011-03-22 21:04:35,641 INFO appcfg.py:1868 Ignoring file 'app.yaml~': File
 matches ignore regex.
 2011-03-22 21:04:35,641 INFO appcfg.py:1779 Processing file 'index.yaml'
 2011-03-22 21:04:35,642 INFO appcfg.py:1779 Processing file 'contacts.html'
 2011-03-22 21:04:35,642 INFO appcfg.py:1779 Processing file 'my_model.py'
 2011-03-22 21:04:35,643 INFO appcfg.py:1779 Processing file
 'stylesheets/main.css'
 Initiating update of app: myapplication, version: 1
 2011-03-22 21:04:35,662 INFO appcfg.py:1502 Send: /api/appversion/create,
 params={'version': '1', 'app_id': 'myapplication'}
 2011-03-22 21:04:35,667 DEBUG appengine_rpc.py:345 Sending HTTPS request:
 POST /api/appversion/create?version=1app_id=myapplication HTTPS/1.1
 Host: appengine.google.com
 X-appcfg-api-version: 1
 Content-type: application/octet-stream
 User-agent: appcfg_py/1.4.2 Linux/2.6.35.11-83.fc14.x86_64
 Python/2.7.0.final.0
 admin_console:
   pages:
   - name: Datastore Admin
     url: /_ah/datastore_admin/
 api_version: '1'
 application: myapplication
 builtins:
 - datastore_admin: 'on'
 - default: 'on'
 derived_file_type:
 - python_precompiled
 handlers:
 - login: admin
   script: $PYTHON_LIB/google/appengine/ext/datastore_admin/main.py
   secure: optional
   url: /_ah/datastore_admin.*
 - login: admin
   script: $PYTHON_LIB/google/appengine/ext/mapreduce/main.py
   secure: optional
   url: /_ah/mapreduce.*
 - secure: optional
   static_dir: stylesheets
   url: /stylesheets
 - script: hello.py
   secure: optional
   url: /.*
 runtime: python
 version: '1'

 2011-03-22 21:04:35,668 DEBUG __init__.py:81 Creating preset proxy https
 conn: appengine.google.com
 2011-03-22 21:04:40,780 ERROR appcfg.py:1840 An unexpected error occurred.
 Aborting.
 Traceback (most recent call last):
   File /home/ruggero/google_appengine/google/appengine/tools/appcfg.py,
 line 1795, in DoUpload
     missing_files = self.Begin()
   File /home/ruggero/google_appengine/google/appengine/tools/appcfg.py,
 line 1546, in Begin
     self.Send('/api/appversion/create', payload=self.config.ToYAML())
   File /home/ruggero/google_appengine/google/appengine/tools/appcfg.py,
 line 1503, in Send
     return self.rpcserver.Send(url, payload=payload, **self.params)
   File
 /home/ruggero/google_appengine/google/appengine/tools/appengine_rpc.py,
 line 346, in Send
     f = self.opener.open(req)
   File /usr/lib64/python2.7/urllib2.py, line 391, in open
     response = self._open(req, data)
   File /usr/lib64/python2.7/urllib2.py, line 409, in _open
     '_open', req)
   File /usr/lib64/python2.7/urllib2.py, line 369, in _call_chain
     result = func(*args)
   File /usr/lib64/python2.7/urllib2.py, line 1181, in https_open
     

[google-appengine] Re: how to make gae and gwt sdks work together?

2011-03-22 Thread Brendan Doherty
Are you trying to use the appengine sdk from client code that is compiled 
into javascript?  That won't work.  

You'll need to make requests from the client to the server, and have the 
code on the server call the appengine sdk.

Have a read of the following links:

   - http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html
   - http://code.google.com/webtoolkit/doc/latest/tutorial/clientserver.html
   
A best practice way of doing this is using the command 
patternhttp://en.wikipedia.org/wiki/Command_pattern, 
you might want to check out a framework to help you with this.  
I currently contribute to gwt-platform, and have used gwt-dispatch in the 
past.

   - http://code.google.com/p/gwt-platform/wiki/GettingStartedDispatch
   - http://code.google.com/p/gwt-dispatch/wiki/GettingStarted
   

Cheers,
Brendan

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



Re: [google-appengine] Re: email sent by GAE would be regarded as spam for some email services

2011-03-22 Thread James Broberg
SendLabs is another option:

http://dyn.com/enterprise-email/sendlabs-solutions

On 23 March 2011 09:57, Jamie H ja...@mhztech.com wrote:
 Ikai,

 On that note, do you have any services besides SES that you
 recommend?  SES works well with GAE however you must slowly up your
 quotas, forcing you to send some mail via SES and some through GAE
 until your quotas are adjusted high enough...

 On Mar 22, 4:29 pm, Ikai Lan (Google) ika...@google.com wrote:
 I actually think we are moving away from this direction. For customers
 sending large volumes of email or who require delivery guarantees, we'll be
 encouraging the use of services that are specifically designed for this
 functionality.

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

 On Tue, Mar 22, 2011 at 1:35 AM, Eric Ka Ka Ng ngk...@gmail.com wrote:

  me 2. Have integrated the SES service within our GAE apps.  work good and
  solved our problems

  sure it would be more nice if GAE can provide email service at the quality
  level similar to the Amazon SES one (at least would not be classified as
  SPAM), so we dont need to manage both . could we make this suggestion to 
  GAE
  team?

  - eric

  On 22 March 2011 05:30, Jamie H ja...@mhztech.com wrote:

  Wow, great idea!  I have been having some delivery issues lately with
  GAE and looking for an alternative.

  I just downloaded a pythong Amazon SES library, signed up for SES, and
  put it all together and it works like a charm with GAE!

  On Mar 20, 10:31 pm, Nickolas Daskalou n...@daskalou.com wrote:
   Hi Eric,

   Have you looked at Amazon's Simple Email Service (SES)?

  http://aws.amazon.com/ses/

   Pretty much the same cost as sending email using GAE, except with SES
  you
   only get 2,000 free emails if you're sending email from an EC2 instance.

   I haven't used it myself but apparently they scan outgoing mail to make
  sure
   it meets ISP standards. This leads me to believe emails sent via SES
  would
   be less likely to be automatically marked as spam than on GAE, since
  SES's
   spam-sending-reputation would be lower than GAE's, due to their
   pre-filtering and rate-limiting.

   Nick

   On 21 March 2011 13:51, Eric Ka Ka Ng ngk...@gmail.com wrote:

Hi Ernesto,

thx for your suggestion! yes, i think it shall work.

but in general if we can't ask all our users to add our email to their
contact list (or they are not willing to do so), how can emails sent
  by us
prevent to be regarded as spam? all our subject, body etc. are nothing
spam-liked, and seems it's the problem of the email server that
  actually
sends the email. anyone share similar case, or has other solution?

regards,
eric

On 19 March 2011 00:12, Ernesto Karim Oltra ernestoka...@gmail.com
  wrote:

Ask the user to add the e-mail from address of your e-mails to their
contacts list, so your e-mails would never been sent to spam again
(for that users, at least).

It's a bit hacky, but can do a great work meanwhile you find another
solution.

On 18 mar, 07:52, Eric Ka Ka Ng ngk...@gmail.com wrote:
 we use mail.send_mail() to send some important messages to our
  users
through
 an app hosted on GAE, in which the 'from' has been set to one of a
 registered admin for the app.

 it works quite well for most users, except for some email service
provider
 (e.g. '...@yahoo.com.hk'), they would always automatically treat
  these
emails
 as spam and put them into spam box of the user's email account (if
  the
user
 has enabled the spam filtering feature, which is by default ON) .
  in
this
 case, many of our users do not aware for these important messages
  (they
 would seldom look into mails in their spambox)

 we have tried using different from, subject, body and the
  results
are
 the same. we suspect that it is the email server does matter, and
  maybe
 before there were some other apps hosted on GAE sending spams to
  like '@
 yahoo.com.hk', so '...@yahoo.com.hk' would regard all emails sent
  from
this
 email server in GAE as spam.

 do anyone share similar experiences? or there should be other
  causes?
any
 ideas we can solve this problem? (successfully deliver the email to
  our
 users using those email service without being regarded as spam) thx
  in
 advanced!

 - eric

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

Re: [google-appengine] Re: email sent by GAE would be regarded as spam for some email services

2011-03-22 Thread Eric Ka Ka Ng
Hi Ikai,

thx for your note. with this, we could better decide on which cases we would
like to send emails through GAE and which we would like to use other
external services.

and would it be more formally stated in any documents, or any guideline for
these considerations be documented? if i'm a new GAE user, i would just use
the email service straight forwardly without these considerations and
background information.

- eric



On 23 March 2011 05:29, Ikai Lan (Google) ika...@google.com wrote:

 I actually think we are moving away from this direction. For customers
 sending large volumes of email or who require delivery guarantees, we'll be
 encouraging the use of services that are specifically designed for this
 functionality.

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



 On Tue, Mar 22, 2011 at 1:35 AM, Eric Ka Ka Ng ngk...@gmail.com wrote:

 me 2. Have integrated the SES service within our GAE apps.  work good and
 solved our problems

 sure it would be more nice if GAE can provide email service at the quality
 level similar to the Amazon SES one (at least would not be classified as
 SPAM), so we dont need to manage both . could we make this suggestion to GAE
 team?

 - eric


 On 22 March 2011 05:30, Jamie H ja...@mhztech.com wrote:

 Wow, great idea!  I have been having some delivery issues lately with
 GAE and looking for an alternative.

 I just downloaded a pythong Amazon SES library, signed up for SES, and
 put it all together and it works like a charm with GAE!

 On Mar 20, 10:31 pm, Nickolas Daskalou n...@daskalou.com wrote:
  Hi Eric,
 
  Have you looked at Amazon's Simple Email Service (SES)?
 
  http://aws.amazon.com/ses/
 
  Pretty much the same cost as sending email using GAE, except with SES
 you
  only get 2,000 free emails if you're sending email from an EC2
 instance.
 
  I haven't used it myself but apparently they scan outgoing mail to make
 sure
  it meets ISP standards. This leads me to believe emails sent via SES
 would
  be less likely to be automatically marked as spam than on GAE, since
 SES's
  spam-sending-reputation would be lower than GAE's, due to their
  pre-filtering and rate-limiting.
 
  Nick
 
  On 21 March 2011 13:51, Eric Ka Ka Ng ngk...@gmail.com wrote:
 
   Hi Ernesto,
 
   thx for your suggestion! yes, i think it shall work.
 
   but in general if we can't ask all our users to add our email to
 their
   contact list (or they are not willing to do so), how can emails sent
 by us
   prevent to be regarded as spam? all our subject, body etc. are
 nothing
   spam-liked, and seems it's the problem of the email server that
 actually
   sends the email. anyone share similar case, or has other solution?
 
   regards,
   eric
 
   On 19 March 2011 00:12, Ernesto Karim Oltra ernestoka...@gmail.com
 wrote:
 
   Ask the user to add the e-mail from address of your e-mails to their
   contacts list, so your e-mails would never been sent to spam again
   (for that users, at least).
 
   It's a bit hacky, but can do a great work meanwhile you find another
   solution.
 
   On 18 mar, 07:52, Eric Ka Ka Ng ngk...@gmail.com wrote:
we use mail.send_mail() to send some important messages to our
 users
   through
an app hosted on GAE, in which the 'from' has been set to one of a
registered admin for the app.
 
it works quite well for most users, except for some email service
   provider
(e.g. '...@yahoo.com.hk'), they would always automatically treat
 these
   emails
as spam and put them into spam box of the user's email account (if
 the
   user
has enabled the spam filtering feature, which is by default ON)
 . in
   this
case, many of our users do not aware for these important messages
 (they
would seldom look into mails in their spambox)
 
we have tried using different from, subject, body and the
 results
   are
the same. we suspect that it is the email server does matter, and
 maybe
before there were some other apps hosted on GAE sending spams to
 like '@
yahoo.com.hk', so '...@yahoo.com.hk' would regard all emails sent
 from
   this
email server in GAE as spam.
 
do anyone share similar experiences? or there should be other
 causes?
   any
ideas we can solve this problem? (successfully deliver the email
 to our
users using those email service without being regarded as spam)
 thx in
advanced!
 
- eric
 
   --
   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

Re: [google-appengine] Serving talkgadet.google.com through your own app

2011-03-22 Thread Nick Johnson (Google)
Hi Fredrik,

This isn't possible - the Channel API provides a service that isn't
available otherwise through App Engine - if you could serve it yourself,
there'd be no need for the Channel API.

What are you trying to accomplish?

-Nick Johnson

On Wed, Mar 23, 2011 at 4:32 AM, Westmark fredrik.westm...@gmail.comwrote:

 Hi!

 I was just wondering how much of problem it would be to add the
 possibility to serve the channel API through your own app instead of
 via talkgadget.google.com. Kind of like how you serve the Remote API
 by adding the handler to your app.yaml without actually writing any
 code for it.

 BR / Fredrik

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




-- 
Nick Johnson, Developer Programs Engineer, 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.