[appengine-java] Re: Templating Frameworks

2011-11-08 Thread dimi
Hi Mat,

I started with Java web development on GAE in January. I did some research 
on template frameworks because I came from the PHP-world.
I wanted a templating engine without importing a large framework, without 
learning a complete new language, and with some good documentation.
My choice became Freemarker.

Because they're using some classes that are on the App Engine's blacklist, 
they've created a GAE friendly jar.

The fun part of Freemarker is that you can pass any POJO class to your 
template and print/use your class variables and methods.
It has some handy formatters (show the GMT date in any Timezone of your 
choice), print numbers with 1... n decimals,...
And you can include other templates from a template.

You can write the result to HttpServletResponse.getWriter() or save it in a 
StringBuffer and do whatever you want with it.
To me, it's fast.. but I haven't compared the speed against other engines.

The blog: http://freemarker.blogspot.com/
The documentation: http://freemarker.sourceforge.net/docs/index.html
And the homepage where you can download the GAE-version! 
http://freemarker.sourceforge.net/index.html

Good luck!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Kt4BdyvjCrkJ.
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: Slow application update

2011-11-08 Thread jly
After more testing, I know for sure that it takes a long time processing 
the jsp files. I only have one jsp file and as soon as i remove this, 
updating is back to as it was before.

Anyone one why asp compilation takes so long?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/iNyQVtTEx7gJ.
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] QR Code Generator

2011-11-08 Thread Ajay Samant
Use Xing - its called zebra crossing


On Fri, Nov 4, 2011 at 10:17 AM, David Vallejo dvallej...@gmail.com wrote:

 I´m looking for a QR Code Generator Library that could be integrated to
 Java App Engine, could you recomend any one?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/seq81q9p8ikJ.
 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] 1.6.0 async sessions fail..

2011-11-08 Thread Savas L.
is it just me, or anyone has the same problem?

from the logs i see, deferred tasks fails with 415 header status code,
and says:

javax.servlet.ServletContext log: _ah_queue_deferred: Deferred task
failed exception:
com.google.apphosting.utils.servlet.DeferredTaskServlet
$DeferredTaskException: java.lang.ClassCastException:
com.google.apphosting.runtime.jetty.DeferredSessionTasks$DeferredSave
cannot be cast to com.google.appengine.api.taskqueue.DeferredTask

-- 
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 Cloud Storage API for Google App Engine.

2011-11-08 Thread lepah
How do I access Google Cloud Storage from Google App Engine for Java? 

I've tried the Google Cloud Storage REST API's although after spending days 
figuring out the bizarre OAuth2 craziness I discovered the access tokens 
expire every hour. Total madness. 

There must be an easier way. I'd love to know. 

thanks,
Matt


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



[google-appengine] Re: Datastore operations are seriously expensive

2011-11-08 Thread Kenneth
I hear what you're saying, but at that rate I'm pretty much rewriting my 
application plus cost isn't even known.  And I like the datastore.

The problem as always is how the app was written.  Users can update one 
field at a time on a data grid and save it back via ajax, so that's 
seriously not efficient from a cost pov if they're doing a few fields.  The 
model they're writing to has more than 100 indexes (property indexes both 
directions + composite indexes).  So I need to look at de-indexing fields 
and removing composite indexes given some of the datastore goodies that 
have come on stream in the past year.  There's also a problem with another 
model with 3 large key lists that's written a lot.  I don't know how the 
cost on that is even calculated tbh.

The fundamental problem is I lack numbers on how much each request is 
costing me so I don't know where to focus my efforts.  It's mostly 
guesswork and intuition.  There could be a big elephant I'm missing.

I'd really love to pre-purchase datastore operations in the same vein as 
instances.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Wgyduglk9KMJ.
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: Install GAE 1.6 and Python 2.72 - illegal seek error

2011-11-08 Thread Droid
more on this crazy error:

here is my web call in my python script:

application = webapp.WSGIApplication([
  ('/', Linker),
  ('/bill', Linker),
  ('/Linky', Linker),
  ('/Link', Linker),
  ('/sign', Linker)

The only one that works is -   ('/Linky', Linker),
BUT they are all the same otherwise. Never seen anything like it.

error is page not found or illegal seek for the 1st argument.

-- 
You 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 kind of actions belong to Small Datastore Operations?

2011-11-08 Thread zhaiduo
Hi All,

My little app became over quota on Small Datastore Operations
recently. What the most confused me is what kind of actions belong to
Small Datastore Operations? I can't figure it out. Can anyone give me
the detail for this?

Appreciate your help!

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



[google-appengine] Re: What kind of actions belong to Small Datastore Operations?

2011-11-08 Thread Simon Knott
Hi,

Someone asked this just earlier today - 
https://groups.google.com/d/msg/google-appengine/csrZsowdUmY/CACgb4jWCqUJ

Cheers,
Simon

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



[google-appengine] Re: What kind of actions belong to Small Datastore Operations?

2011-11-08 Thread Gerald Tan
Most of the time, it's COUNT queries that is causing over-quota for small 
ops. It costs 1 small op per entity counted. You should use a counter 
entity instead, sharding it if necessary.
The rest of the time it's using OFFSET + LIMIT queries. Each offset value 
costs 1 small small op. You should use cursors instead

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/FtPqyr1YaqoJ.
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] Help with appstats values

2011-11-08 Thread Ice13ill
Hello, I use Java SDK with low-level api, but my question is related
to the interpretation of the values in appstats page (CPU, API, RPC,
Grand total times, etc)
For example:
1. I run a query using low level api to get only the keys for some
entities.
2. query with the list of keys to get the entities from DS (if i
request a page of 25, the api executes 25 calls to .get() )
3. convert these Entities into custom DTOs (and other processing like,
setting implicit values, lunching a task etc)

Real Times:
1. takes about 4-500 ms (datastore_v3.RunQuery); if datastore_v3.Next
is executed, that takes, let's say, 200 ms... (800 total)
2. each get() takes about 20 ms (if there is a latecy could be 400
ms), but let's say a total of 25*20 = 500 ms total
3. as I understand: this is not show with app stats because is
actually Grand total - RPC total. Here is my issue: if grand total is
7000 ms and RPC total is 1000 ms (real time) does this mean that 6
seconds out of 7 (aprox.) are used because of my proccessing ? (step
3.)
So if i print time passed from the point when my queries in DS are
finished, to the point where the response is sent to the client, will
that give me accurate information for time elapsed between different
calls ? ( I ask this because i not sure what calls are executed in
parallel, behind the scenes
Anyway, any advice would be appreciated.

-- 
You 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: How can I preserve appId when moving from MS to HR datastore

2011-11-08 Thread Ronoaldo José de Lana Pereira
When deploing a new app versoin in HRD, I have an index with error and even 
when I delete it and try again it still ends up in error status. My appid 
is ofertaunica-hr. Should I fill a production issue?

Thanks,

-Ronoaldo

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/g6Df9YTYVZ4J.
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: How can I preserve appId when moving from MS to HR datastore

2011-11-08 Thread stephenp
It's not there. On the Application Settings page I have the following 
light-blue titled sections: Basics, Performance, Configured Services, 
Built-ins, Domain Setup, Disable Datastore Writes, and Disable or Delete 
Application. Nothing about migration.

Maybe it hasn't been rolled out to everyone yet? BTW, none of my apps have 
the migration tool option.

Stephen
appid: carglyonline

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Jz4s1AfbczMJ.
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] zipped packages and .pyc

2011-11-08 Thread andreas schmid
hi,

if i have some packages as .zip files how is GAE dealing with the .pyc files. 
would it have a better performance if .pyc files are included in the .zip?

thx

-- 
You 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] Sender ID Framework

2011-11-08 Thread Martin Waller
Hello,

I seem to have a problem with hotmail treating email that I send from an app 
running on the Google App Engine as SPAM, even though it is not. I was 
wondering if anyone had setup a Sender ID Framework to work with the Google App 
Engine to solve this type of problem and whether it worked or not?

Many thanks

Martin

-- 
You 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] Create a Facebook App on GAE in a minute, new release from CoderBuddy

2011-11-08 Thread Adrian Scott
Hi guys,

We've just released a new starter app that helps you create a Facebook App
in a minute on Google App Engine (on CoderBuddy, the free, social web IDE).

We've written up quick, detailed instructions to help you with the
configuration on Facebook's Dev site as well. You can check it all out here
at:


http://coderbuddyblog.com/lose-your-facebook-app-virginity-create-one-i


I warmly welcome any feedback, thoughts, suggestions, etc. Note that if you
want to get developers using your own API's or tech... or create GAE and/or
Python tutorials, you can set up a starter app like this yourself --
because we now have a Copy Project feature (which we used for this). I'd
been meaning to develop some Facebook Apps for a while, and this is a quick
way to get started and then iterate it into your own idea...

Thanks,
-A

-- 
Adrian Scott, Ph.D.
CEO, Founder
CoderBuddy
http://www.coderbuddy.com/ -- Create a Google App Engine app in a minute
without installing anything

-- 
You 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] zipped packages and .pyc

2011-11-08 Thread Adrian Scott
No, best to take those out.

-A

-- 
Adrian Scott, Ph.D.
CEO, Founder
CoderBuddy
http://www.coderbuddy.com/ -- Create a Google App Engine app in a minute
without installing anything



On Tue, Nov 8, 2011 at 9:02 AM, andreas schmid a.schmi...@gmail.com wrote:

 hi,

 if i have some packages as .zip files how is GAE dealing with the .pyc
 files.
 would it have a better performance if .pyc files are included in the .zip?

 thx

 --
 You 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] errors while calling backends

2011-11-08 Thread atarno
hi again,

i'm still fighting the backends.:)

i have some backend instances i try to call from the front end via
task queue.
i see in logs that the task is successfully created and the backend is
called, but on the beckend side i always left with the following:

/_ah/start 500 979ms 0kb instance=1

0.1.0.3 - - [08/Nov/2011:07:15:12 -0800] GET /_ah/start HTTP/1.1 500
0 - - 1.sync-be.zmsg-mobi.appspot.com ms=979 cpu_ms=427 api_cpu_ms=0
cpm_usd=0.18 loading_request=1 exit_code=111 instance=5

following by this exception for each and every servlet i have in my
application:

W 2011-11-08 17:15:12.682 EXCEPTION
java.lang.ClassNotFoundException: com.xxx.yyy.TestServlet
at
com.google.appengine.runtime.Request.process-(Request.java)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.mortbay.util.Loader.loadClass(Loader.java:91)
at org.mortbay.util.Loader.loadClass(Loader.java:71)
at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
242)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1250)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
467)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at com.google.tracing.TraceContext
$TraceContextRunnable.runInContext(TraceContext.java:449)
at com.google.tracing.TraceContext$TraceContextRunnable
$1.run(TraceContext.java:455)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:
695)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:
333)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
325)
at com.google.tracing.TraceContext
$TraceContextRunnable.run(TraceContext.java:453)
at java.lang.Thread.run(Thread.java:679)

turning into this great stuff, again as a number of servlets i have:

Failed startup of context
com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@1bbc779{/,/
base/data/home/apps/s~zmsg-mobi/sync-be.354538568494127495}
org.mortbay.util.MultiException[java.lang.NullPointerException,
java.lang.NullPointerException, java.lang.NullPointerException,
java.lang.NullPointerException, java.lang.NullPointerException,
java.lang.NullPointerException, java.lang.NullPointerException,
java.lang.NullPointerException]
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
656)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1250)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
467)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:
202)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:
171)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
123)
at com.google.apphosting.runtime.JavaRuntime
$RequestRunnable.run(JavaRuntime.java:392)
at com.google.tracing.TraceContext
$TraceContextRunnable.runInContext(TraceContext.java:449)
at com.google.tracing.TraceContext$TraceContextRunnable
$1.run(TraceContext.java:455)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:
695)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:
333)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
325)
at com.google.tracing.TraceContext
$TraceContextRunnable.run(TraceContext.java:453)
at com.google.apphosting.runtime.ThreadGroupPool
$PoolEntry.run(ThreadGroupPool.java:162)
at java.lang.Thread.run(Thread.java:679)


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



[google-appengine] GAE 1.6 can not find python2.7 in Mac OSX 10.7.2

2011-11-08 Thread Kai
GAE in my Mac OSX 10.7.2 system was updated to 1.6.0 by its auto-updater. 
In the GoogleAppEngineLauncher, I have changed the Python Path to 
/usr/bin/python2.7 from the Preferences, the logs display that the GAE 
still run in python2.6.

Here are the Logs:

*** Running dev_appserver with the following flags:

--admin_console_server= --port=8080

Python command: /usr/bin/python2.6

WARNING  2011-11-08 15:21:42,915 rdbms_mysqldb.py:90] The rdbms API is not 
available because the MySQLdb library could not be loaded.

Warning: You are using a Python runtime (2.6) that is older than the 
production runtime environment (2.7). Your application may be dependent on 
Python behaviors that have changed and may not work correctly when deployed 
to production.

WARNING  2011-11-08 15:21:43,115 dev_appserver.py:3254] Could not 
initialize images API; you are likely missing the Python PIL module. 
ImportError: No module named _imaging

INFO 2011-11-08 15:21:43,124 dev_appserver_multiprocess.py:637] Running 
application dev~surfingstudio on port 8080: http://localhost:8080



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/7a8Os5FRYVUJ.
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] GAE 1.6 can not import module jinja2

2011-11-08 Thread Kai
I am trying my first python2.7 GAE apps. Everything goes smoothly in the 
GAE python2.7 Getting Started guild, except the chapter Using Templates.
http://code.google.com/appengine/docs/python/gettingstartedpython27/templates.html

I have added the lines in my app.yaml:

libraries:
- name: jinja2
  version: latest


I have also changed my helloworld.py to import jinja2 module.
And errors:
ERROR2011-11-08 15:01:12,371 wsgi.py:170] 
Traceback (most recent call last):
  File 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py,
 
line 168, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py,
 
line 206, in _LoadHandler
handler = __import__(path[0])
  File 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 
line 640, in Decorate
return func(self, *args, **kwargs)
  File 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 
line 1756, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
  File 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 
line 640, in Decorate
return func(self, *args, **kwargs)
  File 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 
line 1628, in FindAndLoadModule
description)
  File 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 
line 640, in Decorate
return func(self, *args, **kwargs)
  File 
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 
line 1571, in LoadModuleRestricted
description)
  File /Users/kai/Documents/AppEngine/helloworld/helloworld.py, line 1, 
in module
import jinja2
ImportError: No module named jinja2

How can I use jjinja2 template engine in the GAE 1.6 SDK?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/bQBghm-hawAJ.
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: TaskQueues all fail to execute on devserver

2011-11-08 Thread Riley
This is a show-stopper for me. Can anyone point me towards a useful 
resource? At this point I'm looking for someone to pay for a solution (but 
I _am_ hoping for less than $12k a year for appengine premium support).

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/xpVMNZoCLJYJ.
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: Install GAE 1.6 and Python 2.72 - illegal seek error

2011-11-08 Thread Droid
I am answering my own issue.
I found this (not-nice line for MACs) line in my py code:
Solved:

reload(sys); sys.setdefaultencoding('utf-8') # DO NOT USE ON A MAC!!

For some reason this reload is OK on Windows and the GAE but not on
the Mac local version - errors it out.

I do not know why MacBook Airs (Lion) do not like this.

I can understand why I got no replies now. ha ha!

Droid


On Nov 8, 7:21 am, Droid rod...@gmail.com wrote:
 I have downloaded and install Python 2.72 and GAE 1.6 and still get
 Illegal Seek error on my MacBook Air.
 Here is the error:

 type 'exceptions.IOError': [Errno 29] Illegal seek
       args = (29, 'Illegal seek')
       errno = 29
       filename = None
       message = ''
       strerror = 'Illegal seek'

 Note: My new system runs the guestbook example just fine, so what
 could be in my app that was OK on WIndows but not on a Mac? I have
 static folders with images - is it that causing the problem??

 I am completely stuck for a month now.

-- 
You 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: GAE 1.6 can not find python2.7 in Mac OSX 10.7.2

2011-11-08 Thread Droid
I installed the python 2.7.2 dmg today 0n MacBook Air Lion 10.7.2 - I
just let it install itself.
Then I checked in a terminal window python -v
Result fine, it showed python 2.72.

Then I downloaded the GAE 1.6 dmg and let that install itself too.

Result - All OK (I assume my new GAE is running on python 2.72!!)

I  am very happy with how easy it was.




On Nov 8, 3:40 pm, Kai yikai.1...@gmail.com wrote:
 GAE in my Mac OSX 10.7.2 system was updated to 1.6.0 by its auto-updater.
 In the GoogleAppEngineLauncher, I have changed the Python Path to
 /usr/bin/python2.7 from the Preferences, the logs display that the GAE
 still run in python2.6.

 Here are the Logs:

 *** Running dev_appserver with the following flags:

     --admin_console_server= --port=8080

 Python command: /usr/bin/python2.6

 WARNING  2011-11-08 15:21:42,915 rdbms_mysqldb.py:90] The rdbms API is not
 available because the MySQLdb library could not be loaded.

 Warning: You are using a Python runtime (2.6) that is older than the
 production runtime environment (2.7). Your application may be dependent on
 Python behaviors that have changed and may not work correctly when deployed
 to production.

 WARNING  2011-11-08 15:21:43,115 dev_appserver.py:3254] Could not
 initialize images API; you are likely missing the Python PIL module.
 ImportError: No module named _imaging

 INFO     2011-11-08 15:21:43,124 dev_appserver_multiprocess.py:637] Running
 application dev~surfingstudio on port 8080:http://localhost:8080

-- 
You 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: illegal seek - error

2011-11-08 Thread Droid
I am answer my own question.
 I found this (not-nice line for MACs) line in my py code:

reload(sys); sys.setdefaultencoding('utf-8') # DO NOT USE ON A MAC!!

For some reason this reload is OK on Windows and the GAE but not on
 the Mac local version - errors it out.

I do not know why MacBook Airs (Lion) do not like this.

I can understand why I got no replies now. ha ha!

Droid

On Oct 3, 7:42 am, Droid rod...@gmail.com wrote:
 I am getting an illegal seek error on a MacBook Air Lion OS. Did not
 happen with everything the same but on Windows.

 Anyone know anything about this error? Here is the log:

 ERROR    2011-10-03 07:40:28,943 dev_appserver.py:4200] Exception
 encountered handling request
 Traceback (most recent call last):
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 4143, in _HandleRequest
     self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 4049, in _Dispatch
     base_env_dict=env_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 616, in Dispatch
     base_env_dict=base_env_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 3120, in Dispatch
     self._module_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 3024, in ExecuteCGI
     reset_modules = exec_script(handler_path, cgi_path, hook)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 2896, in
 ExecuteOrImportScript
     sys.stdout.seek(0)
 IOError: [Errno 29]Illegal seek

-- 
You 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: Cannot Run GAE Apps on MacBook Air

2011-11-08 Thread Droid
Answering my own issue.
 I found this (not-nice line for MACs) line in my py code:

reload(sys); sys.setdefaultencoding('utf-8') # DO NOT USE ON A MAC!!

  OK on Windows and the GAE but not on
 the Mac local version - errors it out.

I do not know why MacBook Airs (Lion) do not like this.

it was quite a difficult error to find.

Droid

On Oct 2, 8:02 am, Droid rod...@gmail.com wrote:
 I have recently bought a MacBook Air running Lion OS.
 Some of my GAE apps do not now work on a local browse.
 The error is illegal seek. Something to do with i/o I think.

 My python version is OK.

 I am using Windows until I can sort this error. CAnnot find anything
 on Google about it.

 Any solutions grateful

-- 
You 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: Sender ID Framework

2011-11-08 Thread pdknsk
You should've made a new thread about it. Anyway, SPF is already added
automatically by Google for mails delivered by 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] What happened to the promised reliability improvement for email delivery?

2011-11-08 Thread pdknsk
Google announced this in May.

We have added a few restrictions to the Mail API to improve the
reliability and reputation of the service for all applications. First,
emails must be sent from email accounts managed by Google (either
Gmail, or a domain signed up for Google Apps). Second, we’ve reduced
the number of free recipients per day from 2000 to 100 for newly
created applications. Both of these will help ensure mail from your
application arrives at the destination reliably.

http://googleappengine.blogspot.com/2011/05/app-engine-150-release.html

Well, it doesn't seem to have made a difference because many mails to
specific providers are still not delivered reliably, as has been
documented multiple times in this group and elsewhere. Another
complaint about it was posted today. I had really hoped Google would
have DKIM in place for new billing to improve reliability.

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

-- 
You 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: 1.6.0 is now launched

2011-11-08 Thread Alexis
I've got a small issue with this release:
the development server is writing many more entities to the local
datastore (log entries?).

As I have a hook on datastore write ops to log what is put and when,
it's polluting my logs but that's not the point:
My issue is that the local datastore file is getting bigger and
bigger while I run requests on my dev server.
Previously, this file size was stable. Now when I restart the dev
server, it takes much more time as it have to load a bigger datastore
file (several MB),
full of things I don't use.

Is there a way to prevent the dev server from adding these entities?
Thanks


On 7 nov, 22:34, Gregory D'alesandre gr...@google.com wrote:
 There isn't a summary of changes as it was a complete re-write, that being
 said if you want to see the old terms you can find them 
 here:http://code.google.com/appengine/terms_4.html

 Thanks,

 Greg







 On Mon, Nov 7, 2011 at 1:31 PM, pdknsk pdk...@googlemail.com wrote:
  Is there a summary of the TOS changes available? I accepted without
  reading (as many probably have).

  --
  You 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: delete entity using id

2011-11-08 Thread pdknsk
You have to use db.Key.from_path('Model',id) to construct the key.

http://code.google.com/appengine/docs/python/datastore/keyclass.html#Key_from_path

-- 
You 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: FilterOperator.IN

2011-11-08 Thread Cyrille Vincey
FilterOperator.EQUAL :
= to use with single values arguments (like String, Integer,
Long, ...)

FilterOperator.IN :
= to use with collections arguments (like SetString,
ListLong, ...)
= works like a OR clause over all the collection members in the SQL
word.

Hope this 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] Re: How can I preserve appId when moving from MS to HR datastore

2011-11-08 Thread Ronoaldo José de Lana Pereira
Hi,

I can't see that either... Even after I deploy a new alternate version of 
my app with the new SDK. Do I have to mark the new vesion as default?

Att,

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/hQ2GhGuVqT4J.
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: 1.6.0 is now launched

2011-11-08 Thread thstart
Just installed  1.6.0 SDK

When running my app got the messages:

WARNING  2011-11-08 09:33:04,487 rdbms_mysqldb.py:90] The rdbms API is not 
available because the MySQLdb library could not be loaded.

Error: option --rdbms_sqlite_path not recognized

What is wrong?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/-l4dMMXvHMgJ.
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: How can I preserve appId when moving from MS to HR datastore

2011-11-08 Thread Stacy Kerkela
Ronoaldo,

You're right that hasn't been rolled out yet.
Remain patient, and you'll see a message in the forums when it is available.
Sorry for the misinformation.

-- Stacy


On Tue, Nov 8, 2011 at 9:22 AM, Ronoaldo José de Lana Pereira 
rpere...@beneficiofacil.com.br wrote:

 Hi,

 I can't see that either... Even after I deploy a new alternate version of
 my app with the new SDK. Do I have to mark the new vesion as default?

 Att,

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/hQ2GhGuVqT4J.

 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: How can I preserve appId when moving from MS to HR datastore

2011-11-08 Thread Ronoaldo José de Lana Pereira
Stacy,

Thanks for the update. We can't wait to see this rolling out.

Again, congrat's to the AppEngine Team for the big news leaving preview.

-Ronoaldo

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Nd2gum_InWYJ.
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] app.yaml skip_files blocks access to local resources

2011-11-08 Thread andreas schmid
hi,

in my app i need local resources which i user only locally while developing and 
don't want to upload them on deploy.
thats why i have this specific folder listed in skip_files. 
but since now (probably one of the latest SDK releases) this makes the SDK 
ignore those files, which is pretty uncool.

skip_files should only avoid to upload those files, not block the access to it.

is there any reason why this is blocking access to those files?

thx

-- 
You 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: GAE 1.6 can not import module jinja2

2011-11-08 Thread NG
Same here

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/BDGGzz0ahFMJ.
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] Flushing async requests on development server for unit testing

2011-11-08 Thread Lenny Rachitsky
I'm finding that unit testing async based requests is rather tricky,
as the put() often doesn't finish by the time the unit test is run. Is
there any way to do a system-wide flush of all async requests on the
development server? The only other solution I have is to add if branch
that waits for the results to finish if it's on the dev server.

Any advice would be much appreciated.

-- 
You 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] JDO equ. of python datastore operation 'Model.get_or_insert'

2011-11-08 Thread Amy Unruh
There's no direct equivalent.  If you write a utility method you'll want to
use a transaction-- that way you won't overwrite an existing entity if one
with the given kind and key name already exists.

  -Amy

On Tue, Nov 8, 2011 at 3:55 PM, _vjy vijayakumar.subbu...@gmail.com wrote:


 What is JDO equ. of python datastore operation 
 'Model.get_or_inserthttp://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get_or_insert'
 ?

 or, should I write this utility method for my app ?

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/VzP8hmrdA3kJ.
 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] GAE 1.6 can not import module jinja2

2011-11-08 Thread Matt Jibson
Have you installed jinja2 locally? Historically, the SDK has not
included 3rd party libraries (PIL was the first example). They had to
be installed on your own machine, and the SDK would be able to import
them.

On Tue, Nov 8, 2011 at 8:55 AM, Kai yikai.1...@gmail.com wrote:
 I am trying my first python2.7 GAE apps. Everything goes smoothly in the GAE
 python2.7 Getting Started guild, except the chapter Using Templates.
 http://code.google.com/appengine/docs/python/gettingstartedpython27/templates.html

 I have added the lines in my app.yaml:

 libraries:
 - name: jinja2
   version: latest

 I have also changed my helloworld.py to import jinja2 module.
 And errors:
 ERROR    2011-11-08 15:01:12,371 wsgi.py:170]
 Traceback (most recent call last):
   File
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py,
 line 168, in Handle
     handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
   File
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py,
 line 206, in _LoadHandler
     handler = __import__(path[0])
   File
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 line 640, in Decorate
     return func(self, *args, **kwargs)
   File
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 line 1756, in load_module
     return self.FindAndLoadModule(submodule, fullname, search_path)
   File
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 line 640, in Decorate
     return func(self, *args, **kwargs)
   File
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 line 1628, in FindAndLoadModule
     description)
   File
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 line 640, in Decorate
     return func(self, *args, **kwargs)
   File
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py,
 line 1571, in LoadModuleRestricted
     description)
   File /Users/kai/Documents/AppEngine/helloworld/helloworld.py, line 1, in
 module
     import jinja2
 ImportError: No module named jinja2
 How can I use jjinja2 template engine in the GAE 1.6 SDK?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/bQBghm-hawAJ.
 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: Datastore operations are seriously expensive

2011-11-08 Thread Rishi Arora
After managing my instances, I had a similar sticker shock with data store
usage.  However, the app stats utility, even though its really built around
the old pricing model, was invaluable in telling me what my heavy hitters
were in terms of data store ops.  I implemented caching for my most
important routinely accessed data, and that helped a great deal.  Also
important was to completely move off less critical data from the data store
to external storage.  This increased CPU and instance time for me, because
I implemented it using URL fetch, but in the end, saved a lot of costs.

On Tue, Nov 8, 2011 at 2:01 AM, Kenneth kennet...@aladdinschools.comwrote:

 I hear what you're saying, but at that rate I'm pretty much rewriting my
 application plus cost isn't even known.  And I like the datastore.

 The problem as always is how the app was written.  Users can update one
 field at a time on a data grid and save it back via ajax, so that's
 seriously not efficient from a cost pov if they're doing a few fields.  The
 model they're writing to has more than 100 indexes (property indexes both
 directions + composite indexes).  So I need to look at de-indexing fields
 and removing composite indexes given some of the datastore goodies that
 have come on stream in the past year.  There's also a problem with another
 model with 3 large key lists that's written a lot.  I don't know how the
 cost on that is even calculated tbh.

 The fundamental problem is I lack numbers on how much each request is
 costing me so I don't know where to focus my efforts.  It's mostly
 guesswork and intuition.  There could be a big elephant I'm missing.

 I'd really love to pre-purchase datastore operations in the same vein as
 instances.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/Wgyduglk9KMJ.

 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] nightmare: redirection from old MS app to new HR app

2011-11-08 Thread Amy Unruh
Alberto,

It sounds like you are wanting to alias the app id, so that your URL can
remain the same after the migration.  What are your old (MS) and new app
ids?

On Mon, Nov 7, 2011 at 8:17 PM, Alberto Gualis agua...@gmail.com wrote:

 We are having a very serious issue in our company because we use
 Google App Engine for our Android users to synchronize data against a
 MS app.

 We started a migration process with our test environment.
 Due to logistic problems, it is very difficult to update our android
 users so we needed an automatic redirection from the old MS to the new
 HR one.

 As explained in this group:


 http://groups.google.com/group/google-appengine/browse_thread/thread/8be5d56d406c2aa7/3559e2aa3d5bc35f?lnk=gstq=high+replication+redirection+app+id#3559e2aa3d5bc35f

 , we asked for the preproduction redirection trough the billing form
 and the GAE guys did it in a couple of hours.

 So we decided to start the same process with our production
 environment, we migrated our app and repeated the request but it's
 more than 10 days from that and we don't have any solution yet so our
 users cannot synchronize their data.

 WE NEED URGENT HELP. Is there anybody who resolved the dame issue?
 Does anybody know how to process? We have an opened ticket but nobody
 is helping us.

 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.



Re: [google-appengine] Re: GAE 1.6 can not import module jinja2

2011-11-08 Thread Brian Quinlan
As Matt says, you need to install jinja2 on your local Python instance.

This will be fixed in a future release.

Cheers,
Brian

On Wed, Nov 9, 2011 at 7:45 AM, NG nikolas.goe...@googlemail.com wrote:
 Same here

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/BDGGzz0ahFMJ.
 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] GAE Python 2.7 - deferred failed in production but works in development

2011-11-08 Thread Brian Quinlan
Hi Samson,

What do you have in the handlers section of your app.yaml?

Cheers,
Brian

On Sat, Nov 5, 2011 at 4:52 AM, Samson tse.sam...@gmail.com wrote:
 Hi,

 I am currently stuck with an issue that I can't fix.  I've just
 upgraded my app to Python 2.7 using Django Nonrel.  I've tried posting
 this question to that group but did not get any response.  So any help
 would be greatly appreciated.

 This is what I am getting when I try to perform a defer function in
 the production environment:
 Error: Server Error

 The server encountered an error and could not complete your request.
 If the problem persists, please report your problem and mention this
 error message and the query that caused it.

 In the log this is what it shows:
 Traceback (most recent call last):
  File /base/python27_runtime/python27_lib/versions/1/google/
 appengine/runtime/wsgi.py, line 174, in Handle
    result = handler(self._environ, self._StartResponse)
 TypeError: 'module' object is not callable

 The code that is currently causing the problem:

 def _update_profile_image_url(user, new_url = None):
    from communication.message.models import PrivateMessagePool
    for entity in
 PrivateMessagePool.objects.filter(sender=user).all():
        entity.sender_image_url = new_url
        entity.save()

 #Update profile images when it's required
 from google.appengine.ext import deferred
 try:
    queue_name = 'default'
    deferred.defer(_update_profile_image_url, self.user,
 new_url=self.image_url, _queue=queue_name)
 except Exception, e:
    logging.error('caught%s in image upload deferred section', e)
    raise e

 Everything works in the development environment under the localhost.
 However, when I deploy it to production, it crashes every single
 time.  I've tried to comment out the deferred.defer line in production
 and everything works again.  So it has to be the background task that
 is causing the problem.  But there is no way for me to pinpoint what
 is failing since I didn't get any error messages in development and
 everything works smoothly.  Please help if you know what I did wrong.
 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] memcache quota limits

2011-11-08 Thread vlad
I would like to get a confirmation. It appears that under new billing 
memcache API limits are lifted for all apps. In effect memcache use is 
unlimited. Is that correct?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/hcKwTosNRPMJ.
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: Datastore operations are seriously expensive

2011-11-08 Thread vlad
link does not work

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/JHLT-C_FgEwJ.
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: Datastore operations are seriously expensive

2011-11-08 Thread Jeff Schnitzer
FWIW, your app would have been a problem under the old pricing model
as well.  The only difference WRT the datastore is that instead of
being charged datastore operations you were charged a magic number
of api_cpu_ms per operation.  The pricing model is pretty much the
same, it's just more expensive.

If you're churning through your datastore ops because you have 100
indexes, you would have churned through your CPU quota before.  The
problem is you're trying to update too many indexes.  The only
solution is don't.

BTW you only incur costs for index changes; if you re-put an entity
without changing the index, you don't get charged for an index update.

Jeff

On Tue, Nov 8, 2011 at 4:01 AM, Kenneth kennet...@aladdinschools.com wrote:
 I hear what you're saying, but at that rate I'm pretty much rewriting my
 application plus cost isn't even known.  And I like the datastore.
 The problem as always is how the app was written.  Users can update one
 field at a time on a data grid and save it back via ajax, so that's
 seriously not efficient from a cost pov if they're doing a few fields.  The
 model they're writing to has more than 100 indexes (property indexes both
 directions + composite indexes).  So I need to look at de-indexing fields
 and removing composite indexes given some of the datastore goodies that have
 come on stream in the past year.  There's also a problem with another model
 with 3 large key lists that's written a lot.  I don't know how the cost on
 that is even calculated tbh.
 The fundamental problem is I lack numbers on how much each request is
 costing me so I don't know where to focus my efforts.  It's mostly guesswork
 and intuition.  There could be a big elephant I'm missing.
 I'd really love to pre-purchase datastore operations in the same vein as
 instances.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/Wgyduglk9KMJ.
 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: Datastore operations are seriously expensive

2011-11-08 Thread Alfred Fuller
Here is an article that can help you reduce the # of composite indexes you
use in some cases:
http://code.google.com/appengine/articles/indexselection.html

On Tue, Nov 8, 2011 at 4:16 PM, Jeff Schnitzer j...@infohazard.org wrote:

 FWIW, your app would have been a problem under the old pricing model
 as well.  The only difference WRT the datastore is that instead of
 being charged datastore operations you were charged a magic number
 of api_cpu_ms per operation.  The pricing model is pretty much the
 same, it's just more expensive.

 If you're churning through your datastore ops because you have 100
 indexes, you would have churned through your CPU quota before.  The
 problem is you're trying to update too many indexes.  The only
 solution is don't.

 BTW you only incur costs for index changes; if you re-put an entity
 without changing the index, you don't get charged for an index update.

 Jeff

 On Tue, Nov 8, 2011 at 4:01 AM, Kenneth kennet...@aladdinschools.com
 wrote:
  I hear what you're saying, but at that rate I'm pretty much rewriting my
  application plus cost isn't even known.  And I like the datastore.
  The problem as always is how the app was written.  Users can update one
  field at a time on a data grid and save it back via ajax, so that's
  seriously not efficient from a cost pov if they're doing a few fields.
  The
  model they're writing to has more than 100 indexes (property indexes both
  directions + composite indexes).  So I need to look at de-indexing fields
  and removing composite indexes given some of the datastore goodies that
 have
  come on stream in the past year.  There's also a problem with another
 model
  with 3 large key lists that's written a lot.  I don't know how the cost
 on
  that is even calculated tbh.
  The fundamental problem is I lack numbers on how much each request is
  costing me so I don't know where to focus my efforts.  It's mostly
 guesswork
  and intuition.  There could be a big elephant I'm missing.
  I'd really love to pre-purchase datastore operations in the same vein as
  instances.
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To view this discussion on the web visit
  https://groups.google.com/d/msg/google-appengine/-/Wgyduglk9KMJ.
  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: GAE 1.6 can not import module jinja2

2011-11-08 Thread Kai
Thank you, Matt and Brian.
Actually, I have not installed jinja2 in my system. I will try to
fixed this minor issue and finish the tutorial guild. :)

On Nov 9, 7:39 am, Brian Quinlan bquin...@google.com wrote:
 As Matt says, you need to install jinja2 on your local Python instance.

 This will be fixed in a future release.

 Cheers,
 Brian







 On Wed, Nov 9, 2011 at 7:45 AM, NG nikolas.goe...@googlemail.com wrote:
  Same here

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/BDGGzz0ahFMJ.
  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: What happened to the promised reliability improvement for email delivery?

2011-11-08 Thread Daniel
 +1

On Nov 8, 11:37 am, pdknsk pdk...@googlemail.com wrote:
 Google announced this in May.

 We have added a few restrictions to the Mail API to improve the
 reliability and reputation of the service for all applications. First,
 emails must be sent from email accounts managed by Google (either
 Gmail, or a domain signed up for Google Apps). Second, we’ve reduced
 the number of free recipients per day from 2000 to 100 for newly
 created applications. Both of these will help ensure mail from your
 application arrives at the destination reliably.

 http://googleappengine.blogspot.com/2011/05/app-engine-150-release.html

 Well, it doesn't seem to have made a difference because many mails to
 specific providers are still not delivered reliably, as has been
 documented multiple times in this group and elsewhere. Another
 complaint about it was posted today. I had really hoped Google would
 have DKIM in place for new billing to improve reliability.

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

-- 
You 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: GAE 1.6 can not find python2.7 in Mac OSX 10.7.2

2011-11-08 Thread Kai
Thank you for providing the information.
I tried python 2.7.1 which is bundled with Lion.
Although, this problem is not quite annoying because I can run
dev_appserver.py command in terminal to avoid the warning message.

On Nov 9, 12:18 am, Droid rod...@gmail.com wrote:
 I installed the python 2.7.2 dmg today 0n MacBook Air Lion 10.7.2 - I
 just let it install itself.
 Then I checked in a terminal window python -v
 Result fine, it showed python 2.72.

 Then I downloaded the GAE 1.6 dmg and let that install itself too.

 Result - All OK (I assume my new GAE is running on python 2.72!!)

 I  am very happy with how easy it was.

 On Nov 8, 3:40 pm, Kai yikai.1...@gmail.com wrote:







  GAE in my Mac OSX 10.7.2 system was updated to 1.6.0 by its auto-updater.
  In the GoogleAppEngineLauncher, I have changed the Python Path to
  /usr/bin/python2.7 from the Preferences, the logs display that the GAE
  still run in python2.6.

  Here are the Logs:

  *** Running dev_appserver with the following flags:

      --admin_console_server= --port=8080

  Python command: /usr/bin/python2.6

  WARNING  2011-11-08 15:21:42,915 rdbms_mysqldb.py:90] The rdbms API is not
  available because the MySQLdb library could not be loaded.

  Warning: You are using a Python runtime (2.6) that is older than the
  production runtime environment (2.7). Your application may be dependent on
  Python behaviors that have changed and may not work correctly when deployed
  to production.

  WARNING  2011-11-08 15:21:43,115 dev_appserver.py:3254] Could not
  initialize images API; you are likely missing the Python PIL module.
  ImportError: No module named _imaging

  INFO     2011-11-08 15:21:43,124 dev_appserver_multiprocess.py:637] Running
  application dev~surfingstudio on port 8080:http://localhost:8080

-- 
You 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] Create a Facebook App on GAE in a minute, new release from CoderBuddy

2011-11-08 Thread Ikai Lan (Google)
Who pretty cool!

Dude, on another note, what's up with the URL slug?
lose-your-facebook-app-virginity-create-one-i Did you guys set a title
and change it to something more safe-for-work? =)

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Wed, Nov 9, 2011 at 1:23 AM, Adrian Scott adr...@coderbuddy.com wrote:

 Hi guys,

 We've just released a new starter app that helps you create a Facebook App
 in a minute on Google App Engine (on CoderBuddy, the free, social web IDE).

 We've written up quick, detailed instructions to help you with the
 configuration on Facebook's Dev site as well. You can check it all out here
 at:



 http://coderbuddyblog.com/lose-your-facebook-app-virginity-create-one-i


 I warmly welcome any feedback, thoughts, suggestions, etc. Note that if
 you want to get developers using your own API's or tech... or create GAE
 and/or Python tutorials, you can set up a starter app like this yourself --
 because we now have a Copy Project feature (which we used for this). I'd
 been meaning to develop some Facebook Apps for a while, and this is a quick
 way to get started and then iterate it into your own idea...

 Thanks,
 -A

 --
 Adrian Scott, Ph.D.
 CEO, Founder
 CoderBuddy
 http://www.coderbuddy.com/ -- Create a Google App Engine app in a minute
 without installing anything


  --
 You 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: 1.6.0 is now launched

2011-11-08 Thread Amy Unruh
On Wed, Nov 9, 2011 at 4:40 AM, thstart thst...@gmail.com wrote:

 Just installed  1.6.0 SDK

 When running my app got the messages:

 WARNING  2011-11-08 09:33:04,487 rdbms_mysqldb.py:90] The rdbms API is not
 available because the MySQLdb library could not be loaded.


This is an ignorable warning-- it shouldn't cause you any problems.

-- 
You 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-Concurrency] Memory issues

2011-11-08 Thread Kaan Soral
I started getting a lot of
(class
'google.appengine.runtime.apiproxy_errors.ResponseTooLargeError',
ResponseTooLargeError('The response from API call
datastore_v3.RunQuery() was too large.',), traceback object at
0x2e613c8)
errors from my crons

These errors started after I switched to 2.7 and concurrency

I am guessing now requests are not allowed a lot of memory, and these
datastore calls are failing.

I currently reduced the amount of entities from 40 to 20, an entity is
maximum 1mb's and should be 100kb's on average.

How should I fix this problem?

-- 
You 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] Removing Hourly Limits

2011-11-08 Thread Kaan Soral
I need to get rid of the hourly limits (datastore, urlfetch) for my
app with appid: createnspread

To get around them I slowed down my mapreduce but i came to a point
that, even with scatters, some queues span 17000 depth, so i need the
speed

What should I do?


My previous experience was to open a production ticket, which resulted
in nothing.

-- 
You 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: Removing Hourly Limits

2011-11-08 Thread Kaan Soral
hourly 2 million url fetch limit, what a ridiculous limit ...

so 24*2 = 48 million,  there is your scalability limit

the only reason I use appengine is scalability and these hourly limits
mess with my scalability

On Nov 9, 3:31 am, Kaan Soral kaanso...@gmail.com wrote:
 I need to get rid of the hourly limits (datastore, urlfetch) for my
 app with appid: createnspread

 To get around them I slowed down my mapreduce but i came to a point
 that, even with scatters, some queues span 17000 depth, so i need the
 speed

 What should I do?

 My previous experience was to open a production ticket, which resulted
 in nothing.

-- 
You 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: GAE 1.6 can not find python2.7 in Mac OSX 10.7.2

2011-11-08 Thread Kai
This issue has been opened here:
http://code.google.com/p/google-appengine-mac-launcher/issues/detail?id=4

Hit the Enter key in the text field will solve this problem.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Dt5kKvhOm9gJ.
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] [Python-Concurrency] Memory issues

2011-11-08 Thread Brian Quinlan
Hi Kaan,

This is a bug in the Python 2.7 runtime that will be fixed with the
1.6.1 release.

Cheers,
Brian


On Wed, Nov 9, 2011 at 12:19 PM, Kaan Soral kaanso...@gmail.com wrote:
 I started getting a lot of
 (class
 'google.appengine.runtime.apiproxy_errors.ResponseTooLargeError',
 ResponseTooLargeError('The response from API call
 datastore_v3.RunQuery() was too large.',), traceback object at
 0x2e613c8)
 errors from my crons

 These errors started after I switched to 2.7 and concurrency

 I am guessing now requests are not allowed a lot of memory, and these
 datastore calls are failing.

 I currently reduced the amount of entities from 40 to 20, an entity is
 maximum 1mb's and should be 100kb's on average.

 How should I fix this problem?

 --
 You 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] [Python-Concurrency] Memory issues

2011-11-08 Thread Brian Quinlan
Sorry, I forgot to add the obvious detail:

This bug is triggered if the result of your datastore call is 1MB.

Cheers,
Brian

On Wed, Nov 9, 2011 at 1:22 PM, Brian Quinlan bquin...@google.com wrote:
 Hi Kaan,

 This is a bug in the Python 2.7 runtime that will be fixed with the
 1.6.1 release.

 Cheers,
 Brian


 On Wed, Nov 9, 2011 at 12:19 PM, Kaan Soral kaanso...@gmail.com wrote:
 I started getting a lot of
 (class
 'google.appengine.runtime.apiproxy_errors.ResponseTooLargeError',
 ResponseTooLargeError('The response from API call
 datastore_v3.RunQuery() was too large.',), traceback object at
 0x2e613c8)
 errors from my crons

 These errors started after I switched to 2.7 and concurrency

 I am guessing now requests are not allowed a lot of memory, and these
 datastore calls are failing.

 I currently reduced the amount of entities from 40 to 20, an entity is
 maximum 1mb's and should be 100kb's on average.

 How should I fix this problem?

 --
 You 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] Order of index properties -- does it matter?

2011-11-08 Thread Lenny Rachitsky
Does the order of the index properties matter, when specifying them in
query, and in the index definition file?

-- 
You 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] PHP Java Interoperability

2011-11-08 Thread Ikai Lan (Google)
Sean,

You'd either use Python or Java to serve a URL, then use PHPCurl to
retrieve the URL. Can you provide more details about the Java class?

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Thu, Nov 3, 2011 at 10:21 AM, Sean Dorman sdor...@rhainc.com wrote:

 **
 I am trying to find a way to host a Java class that returns a value I use
 with my site but I can't find useful instructions on how to host said Java
 class.

 Is there some helpful documents I could read that would give me a basic
 understanding of how to upload my class and then call it from PHP using
 either JSON or cURL?

 Sincerely,
 Sean M Dorman
 Application Developer
 RHA, Inc. | program design + management
 590 W. Locust Ave., Ste 103 | Fresno CA 93650
 sdor...@rhainc.com | www.rhainc.com
 T: 559.447.7000 | F: 559.320.0168

 --
 You 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: How can I undelete (recover) deleted entities?

2011-11-08 Thread Ikai Lan (Google)
That's really an unfortunate situation. You always have to be careful with
mass deletes. We won't be able to restore your application's data. 30gb is
$7, which would have been a $3 increase (if I am remember the pricing
correctly). It's worthwhile to use a slower, safer solution and not rush
into things.

If you have offline backups, you can bulk import this data back via
blobstore and a mapreduce. Otherwise, I don't have a lot of great
suggestions.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Tue, Nov 8, 2011 at 5:43 AM, pdknsk pdk...@googlemail.com wrote:

 Well, Google does have backups of it. If you pay enough, Google might
 restore it manually.

 --
 You 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] memcache quota limits

2011-11-08 Thread Nick Johnson
Hi Vlad,

Like all APIs, memcache has 'sanity limits', which can be lifted on an
app-by-app basis if your app encounters them. Nothing has changed in this
respect with the new billing.

-Nick Johnson


On Wed, Nov 9, 2011 at 11:07 AM, vlad vlad.troyan...@gmail.com wrote:

 I would like to get a confirmation. It appears that under new billing
 memcache API limits are lifted for all apps. In effect memcache use is
 unlimited. Is that correct?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/hcKwTosNRPMJ.
 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.



Re: [google-appengine] Flushing async requests on development server for unit testing

2011-11-08 Thread Nick Johnson
Hi Lenny,

You should always wait for async requests to finish, including in
production. If you don't explicitly wait yourself, the appserver will wait
for them to complete before returning the response to the user anyway.

-Nick Johnson

On Wed, Nov 9, 2011 at 7:49 AM, Lenny Rachitsky lenny...@gmail.com wrote:

 I'm finding that unit testing async based requests is rather tricky,
 as the put() often doesn't finish by the time the unit test is run. Is
 there any way to do a system-wide flush of all async requests on the
 development server? The only other solution I have is to add if branch
 that waits for the results to finish if it's on the dev server.

 Any advice would be much appreciated.

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



Re: [google-appengine] app.yaml skip_files blocks access to local resources

2011-11-08 Thread Nick Johnson
Hi Andreas,

The appserver deliberately does its best to emulate the production
environment; this includes prohibiting access to files your app will not
have in production.

If you want to access files that won't be available in production, you
should probably write a separate script and run it outside the
dev_appserver.

-Nick Johnson

On Wed, Nov 9, 2011 at 6:43 AM, andreas schmid a.schmi...@gmail.com wrote:

 hi,

 in my app i need local resources which i user only locally while
 developing and don't want to upload them on deploy.
 thats why i have this specific folder listed in skip_files.
 but since now (probably one of the latest SDK releases) this makes the SDK
 ignore those files, which is pretty uncool.

 skip_files should only avoid to upload those files, not block the access
 to it.

 is there any reason why this is blocking access to those files?

 thx

 --
 You 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] copying data from appengine datastore admin to my dev server. failed with status 401

2011-11-08 Thread Mariano Benitez
Hello,

I am trying to copy data from my appengine to my dev server, instead of 
doing the normal bulk download/upload, I tried the datastore admin copy 
function. I've setup the dev server public ip so it can be seen from 
outside.

When I try to run it from appengine, it fails with status 401, not 
authorized.

Is it possible to use this anyway? seems like a nice way to populate my dev 
database.

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/eJsdLLfmtkwJ.
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] copying data from appengine datastore admin to my dev server. failed with status 401

2011-11-08 Thread Nick Johnson
This is unlikely to work, and you should never ever expose your
dev_appserver publicly.

Consider making a small reusable test dataset you can easily load, rather
than relying on a complete dump of production data, which won't scale.

-Nick

On Wed, Nov 9, 2011 at 4:31 PM, Mariano Benitez marianob...@gmail.comwrote:

 Hello,

 I am trying to copy data from my appengine to my dev server, instead of
 doing the normal bulk download/upload, I tried the datastore admin copy
 function. I've setup the dev server public ip so it can be seen from
 outside.

 When I try to run it from appengine, it fails with status 401, not
 authorized.

 Is it possible to use this anyway? seems like a nice way to populate my
 dev database.

 Thanks,

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/eJsdLLfmtkwJ.
 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.



Re: [google-appengine] Memcaching BlobProperty

2011-11-08 Thread Nick Johnson
Hi Melissa,

It's likely your data is simply being evicted as not worth the memory it
takes up - you can fit a lot of smaller memcache values in the space a blob
takes up.

Consider just setting the correct caching headers in your response,
instead. This will result in frontends, proxies and browsers caching your
content, without using up precious memcache space.

-Nick Johnson

On Fri, Nov 4, 2011 at 3:32 PM, Melissa Hong carra.mel...@gmail.com wrote:

 Hi,

 I just installed appstats and noticed that I'm hitting the database
 for images all the time instead of the cache.

 In my image server I pull the image data from the blobstore to serve
 and use memcache  to store the blob data for later use.

 Using logging, I've determined that it is setting the memcache with
 the image data, but the next time I go to grab this image memcache
 returns None.

 My theories are:
 1. Memcache doesn't like BlobProperty values
 2. My image data is  1MB (however I've wrapped my memcache in a try/
 catch block so I would have thought it would be throwing errors if
 this was the case...)

 Any idea on why memcache seems to be failing?

 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.




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



Re: [google-appengine] app.yaml skip_files blocks access to local resources

2011-11-08 Thread Ugorji
Run dev_appserver.py with parameter: --allow_skipped_files 

I think that should work. 

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



[google-appengine] new billing policy and fan-out

2011-11-08 Thread Herbert
I'm building a system with news feed style broadcasting. there won't
be millions of users, probably just 100k and interesting feed would go
to inbox of ~10k users.

everyone's recommend the method to solve fan-out proposed by Brett,
and i really like it, works something like this:

class Feed(db.Model)
   content = db.TextProperty()

class Receivers(db.Model)
  IDs = db.ListProperty(int)

say an interesting Feed has five children of Receivers each with 2000
IDs in the list, i like how it solves my problem, but I did the math
on billing:

that's 2000 * 5 * 2 writes = 20k low-level writes right there on
creation, and cleaning up cost another 20k low-level writes. 40k low-
level writes = $0.04 for a news feed. Am I doing the math wrong,
missing something, missing the best way to handle this problem, or
this seems a reasonable cost?

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



[google-appengine] Google Apps Stop Redirecting To WWW Custom Domains

2011-11-08 Thread James Gilliam
Why does this keep happening.  For no apparent reason Google Apps stop
redirecting the www subdomain to the custom domain.   This is usually
late and night and clears up.  This is more than annoying.  Why is
this so hard for them?

-- 
You 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] memcache statistics

2011-11-08 Thread James Gilliam
i have been watching memcache statistics and can't figure out when
they reset.  I have noticed they will sometimes go for days without
resetting and then are reset.  Any insights on this?  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.