[google-appengine] Re: Error: Server Error from Android phone, no log

2009-11-24 Thread Per Sandström
Thanks for the reply. Currently I am unable to reproduce the error. I
will investigare it further if it reappears and post here.

Cheers,
Per Sandström

On Nov 24, 1:09 am, "Ikai L (Google)"  wrote:
> I'd like to try to replicate this error, but I am getting a 401 when I
> attempt to POST arbitrary data to that url:
>
> curl -d "a=1"http://pg-sandstrom-guestbook.appspot.com/checklists
>
> What you should try to do is replicate the error using command line tools or
> by monitoring the low level request. If this URL works in a browser but not
> from an Android application, you should try to trace the request and find
> the difference between the requests.
>
> 2009/11/23 Per Sandström 
>
>
>
> > Hi!
>
> > This is the exact message I retrieve when my servlet is the way I want
> > it to be:
>
> > 
> > 
> > 500 Server Error
> > 
> > 
> > Error: Server Error
> > The server encountered an error and could not complete your
> > request.If the problem persists, please report your problem and
> > mention this error message and the query that caused it.
> > 
> > 
>
> > But still, there are no entries in my admin panel-log under "errors".
> > However, I just noticed that they appear under "requests" like this:
>
> >      11-23 03:04AM 23.201 /checklists 500 41499ms 175cpu_ms
> > 175api_cpu_ms 0kb Apache-HttpClient/UNAVAILABLE (java 1.4),gzip(gfe)
> >      See details
>
> >      81.224.65.211 - - [23/Nov/2009:03:05:04 -0800] "POST /checklists
> > HTTP/1.1" 500 0 - "Apache-HttpClient/UNAVAILABLE (java 1.4),gzip(gfe)"
>
> > They take up 4ms CPU! I tried decreasing the amount of code that I
> > executed to find the problem, but it only helped when I didnt access
> > the permanent storage. So I tried deleting everything that I had
> > stored, and after that it worked fine even after putting in new
> > entries. However, my datastore only held ~40 entries. There are
> > absolutely no reason for this kind of delay on my side. I have no
> > loops in loops or potentially infinite while-loops or anything like
> > that. I really do believe this is an error on the GAE-side. Also, I
> > have now tried to once again fill the datastore with ~40 entries, and
> > the CPU-time never goes over 250ms. This feels somewhat scary, since
> > we are planning on releasing our product quite soon, and then the
> > datastore will be much larger.
>
> > On Nov 12, 8:28 pm, "Ikai L (Google)"  wrote:
> > > What is the exact error? Also, can you host a static asset and try to
> > > retrieve it with the Android application? I want to rule out that it's a
> > > connectivity issue.
>
> > > 2009/11/11 Per Sandström 
>
> > > > I am doing an app that is supposed to be used from my android phone.
> > > > Some communication with my GAE-app works, but when I try to send a
> > > > post-message tohttp://pg-sandstrom-guestbook.appspot.com/checklistsI
> > > > get a server error. This only holds true from my android phones.
> > > > Nothing is shown in the Admin panel log, so I dont think the error is
> > > > due to my GAE-code. Any help would be greatly appriciated.
> > > > --~--~-~--~~~---~--~~
> > > > You 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
> > > > -~--~~~~--~~--~--~---
>
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine

--

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




[google-appengine] Re: Long Response times?

2009-11-24 Thread Magnus O.
Hi!,

I feel it's slow in both the development environment and live. I have
run some profiling on the site with firebug and I can see that the
"waiting for response" part on all request to script handlers is about
800ms. This seems like a very long time. The site I have developed is
a weather service and I fetcht the weather data using ajax requests. I
takes a few requests to load all the weather.

In a test it took 24 requests to load all the weatherdata and the load
time for this was 13.24 seconds. This is a long time to fetch these
request. About 99% of this time is "waiting for response". I'm using
memcached to cache the response using this code:

import cgi
import urllib
import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.api import urlfetch
from google.appengine.api import memcache

class YrController(webapp.RequestHandler):

def get(self):
self.response.headers['Content-Type'] = "application/xml"

endpoint = 'http://api.yr.no/weatherapi/locationforecast/1.6/'

params = self.request.GET
apiquery = urllib.urlencode(params)

weather = memcache.get(apiquery)

if weather is not None:
self.response.out.write(weather)
return
else:

result = urlfetch.fetch(url=endpoint + '?' + apiquery,
method=urlfetch.GET)
memcache.add(key=apiquery, value=result.content, 
time=3600)
self.response.out.write(result.content)

def main():
application = webapp.WSGIApplication([('/api/',
YrController)],debug=True)
wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
main()



This handler works like a proxy server against a xml api. I can
understand that it takes some time to load when the data is fetched
from the api but once the data is in memcached it should not take
800ms for the server to handle the response. This webbapp used to be
written in ASP .NET also using memcached and there the average
"waiting for response" time for a request is about 100ms.

I will run some profiling on the handler and see what it is that takes
time. Or could anyone else se what it is? Anyway I could optimize this
for shorter load times?

//Magnus

On Nov 24, 12:45 am, "Ikai L (Google)"  wrote:
> What part of this application is slow? Is it just slow in development mode?
> The link you sent out seems to load reasonably fast.
>
> What may be happening is that your application may be cycling out. We do
> this to dynamically adjust the number of instances to match the level of
> load your application is experiencing. If your application is cycled out,
> when a request comes in, we cycle it back in, but to do this, we need to
> load your environment and fire up an application instance.
>
> On Sat, Nov 21, 2009 at 7:29 AM, Magnus O. <
>
>
>
>
>
> magnus.ottos...@magnusottosson.se> wrote:
> > Hi,
>
> > I just started developing with python and google app engine and my
> > first project is to build a small easy proxy server to enable cross
> > domain xml requests from the client. I'm experiencing logn response
> > times in all python handlers. Static files as being served fast but
> > python handlers are loading slow 800ms - 1.5 seconds. For instance,
> > here is my default page that (for now) just loads an index.html static
> > file as template:
>
> > import cgi
> > import urllib
> > import os
> > import wsgiref.handlers
> > from google.appengine.ext import webapp
> > from google.appengine.api import urlfetch
> > from google.appengine.ext.webapp import template
>
> > class MainController(webapp.RequestHandler):
>
> >        def get(self):
>
> >                template_values = {}
>
> >                path = os.path.join(os.path.dirname(__file__), 'index.html')
> >                self.response.out.write(template.render(path,
> > template_values))
>
> > def main():
> >        application = webapp.WSGIApplication([('/',
> > MainController)],debug=True)
> >        wsgiref.handlers.CGIHandler().run(application)
>
> > if __name__ == "__main__":
> >        main()
>
> > Anyone that can tell me why the load times are so slow? You can see it
> > in action here:http://blirdetsol.appspot.com/
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com > e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine

--

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

[google-appengine] incremental download from the google app engine datastore

2009-11-24 Thread hyun
Hi,

I wonder if it is possible to download the added data (incremental
download) using

  appcfg.py download_data ...

The time log data of my service is very big now.  So whenever I have
to download the time log, it takes long because it downloads the full
data every time.  So I'd like to download just the data newly added.

Thanks,

--

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




[google-appengine] Re: votay - Wordpress of GAE

2009-11-24 Thread Andrew Arrow
Thanks Andy, just what I was looking for.  I'll check out bloggart.

On Nov 23, 11:45 am, Andy Freeman  wrote:
> Seehttp://blog.notdot.net/2009/10/Blogging-on-App-Engine-part-10-Recap
> .
>
> On Nov 22, 3:45 pm, Andrew Arrow  wrote:
>
>
>
> > Hello,
>
> > I started an open source GAE project called votay.  The idea is to
> > make Votay the "Wordpress of GAE."  There are 1000's of bloggers
> > paying for PHP/mysql hosting and using wordpress that would come over
> > to GAE if Wordpress would run here.  They would gain:
>
> > 1) free hosting
> > 2) ability to scale if their blog traffic ever spikes
>
> > You can see an example blog at
>
> >http://www.votay.com/
>
> > It's far from ready to compete with Wordpress yet.  I still have lots
> > of work to do on the admin interface.  But all the images and content
> > are being stored in a DataStore, not coming from a static folder.  I
> > tried to find other open source GAE blogging projects and only saw
> > these 7:
>
> >http://github.com/jie/jiebloghttp://code.google.com/p/smalog/http://c...
>
> > Does anyone know of others I missed?  If there already is a Wordpress
> > like blogging system for GAE that I just don't know about, please let
> > me know!  Thanks.

--

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




[google-appengine] list kinds

2009-11-24 Thread alf
Hi all

there are any away to get a list of all kinds (name) for one app.

many thanks

--

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




[google-appengine] Taskqueue not working...

2009-11-24 Thread deostroll
I am doing appengine development from my local machine. (Winxp). The
following code is supposed to add something to the taskqueue. I assume
that one I add I am supposed to see default messages getting logged in
the console, but nothing of the sort happens...am I doing something
wrong?

class showData(webapp.RequestHandler):
def get(self):
if users.get_current_user():
nick =  users.get_current_user().nickname()
import uuid
guid = str(uuid.uuid1()).replace('-','')
api = 'var key=\'' + 
guid + '\';'
data = {'api_key' : api}

stocks = db.GqlQuery("select * from Portfolio where 
name = '" +
nick + "'")

for x in stocks:
t = ScripTracker(key_name=guid+str(x.scripcd))
t.api_key = guid
t.scripcd = str(x.scripcd)
t.status = 'working'
t.trials = 0
t.put()
taskqueue.add(url='/stockworker', 
params={'key':guid,
'scripcd':x.scripcd})

path = os.path.join(os.path.dirname(__file__), 
'show.htm')
self.response.out.write(template.render(path, data))
else:
self.redirect('/')

--

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




[google-appengine] Map Reduce on Google App Engine

2009-11-24 Thread andreas diavastos
Hi,

I was wondering if I App Engine supports Map Reduce for a user to run.
We would like to run an application(word count) on AppEngine and we
would need to use
the Map Reduce programming model on that application(otherwise it
would be worthless to run it on AppEngine).
And my question is whether this operation is supported on the
AppEngine.

Thanks in advance,
Andreas Diavastos

--

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




[google-appengine] Remote Login Problem

2009-11-24 Thread fujara
Hi

I can't login with the remote api for one of my apps. The login for
the other apps are working without problems.
Output: Invalid username or password.
But the username and passwords are correct.

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




[google-appengine] How to remove property of java object(POJO) with safty?

2009-11-24 Thread sea
Hi

Environment :GAE for java, JPA

I defined a java object(POJO) and stored some data in it. But later I
found a property of that java object(POJO) was useless,
and there was no data in that property.So I removed that property, but
that caused a big problem, the data in that
java object(POJO) can not be displayed by program.

So could you tell me how to deal with it? I want to remove the useless
property of java object(POJO) , and want original data can be
displayed by program.

Thanks a lot.

--

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




Re: [google-appengine] Re: Watch out for this subtle performance killer

2009-11-24 Thread Ikai L (Google)
When you need to expire a cached query, you can either:

1. Delete the cache entry
2. Regenerate the cache entry with updated data
3. Use a key scheme that allows you to lazy expire that model. Ex: Setting
your key to pix:id:version. The challenge of this key is knowing what the
newest version is.

On Mon, Nov 23, 2009 at 7:42 PM, dreadjr  wrote:

> so what is the best practice if something is added to the datamodel,
> and you have already cached it, just to remove the memcache key and
> reload?
>
> On Nov 21, 6:41 am, dburns  wrote:
> > I thought I'd share this, since I'm sure there are others that have
> > fallen into the same trap using this very common pattern (in this
> > sample, Pix derives from db.Model; get_pics is called on every page
> > load):
> >
> > def get_pics(self):
> > pics = memcache.get("pics")
> > if pics is None:
> > pics = Pix.gql("LIMIT 100")
> > memcache.add("pics", pics, 300)   #
> Good for 5 minutes
> > return pics
> >
> > See the bug?  Here, memcache is actually HURTINGperformancesince the
> > overhead of memcache is there but it saves nothing at all.  The query
> > is still executed on every page load when the calling code iterates
> > through the result.
> >
> > http://code.google.com/appengine/docs/python/datastore/queryclass.htm...
> > mentions this by saying "creating a new iterator from the Query object
> > will re-execute the query", but it doesn't highlight this pitfall.
> > The issue here is that entities are not fetched on the Pix.gql line.
> > Instead, that simply returns a Query object.  The results are actually
> > fetched when the calling code begins to iterate (in Python-speak, the
> > __iter__() method on the Query is what actually fetches entities).
> >
> > To fix this, you'd change the gql line to :
> > pics = list(Pix.gql("LIMIT 100"))
> > Putting a list() around the Pix.gql forces the query to happen at that
> > moment.  Then the list of entities is stored in memcache, not the
> > Query object itself.
> >
> > I'm not sure if this applies to the Java API too, but it's worth a
> > heads-up.
> >
> > Comments welcome...
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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




Re: [google-appengine] Re: Long Response times?

2009-11-24 Thread Ikai L (Google)
Are you measuring the request from the client side or the server side? What
do your server logs say?

When it comes to client side optimizations, there are a ton of things you
can do to improve the performance. What you'll want to do is benchmark on
the server using the admin console, then do benchmarking on the client side
using a tool such as YSlow:

http://developer.yahoo.com/yslow/

This will tell you if you need to set cache headers, minify JavaScript, etc.
Can you post some numbers from both the server and the client?

On Tue, Nov 24, 2009 at 12:14 AM, Magnus O. <
magnus.ottos...@magnusottosson.se> wrote:

> Hi!,
>
> I feel it's slow in both the development environment and live. I have
> run some profiling on the site with firebug and I can see that the
> "waiting for response" part on all request to script handlers is about
> 800ms. This seems like a very long time. The site I have developed is
> a weather service and I fetcht the weather data using ajax requests. I
> takes a few requests to load all the weather.
>
> In a test it took 24 requests to load all the weatherdata and the load
> time for this was 13.24 seconds. This is a long time to fetch these
> request. About 99% of this time is "waiting for response". I'm using
> memcached to cache the response using this code:
>
> import cgi
> import urllib
> import wsgiref.handlers
> from google.appengine.ext import webapp
> from google.appengine.api import urlfetch
> from google.appengine.api import memcache
>
> class YrController(webapp.RequestHandler):
>
>def get(self):
>self.response.headers['Content-Type'] = "application/xml"
>
>endpoint = '
> http://api.yr.no/weatherapi/locationforecast/1.6/'
>
>params = self.request.GET
>apiquery = urllib.urlencode(params)
>
>weather = memcache.get(apiquery)
>
>if weather is not None:
>self.response.out.write(weather)
>return
>else:
>
>result = urlfetch.fetch(url=endpoint + '?' +
> apiquery,
> method=urlfetch.GET)
>memcache.add(key=apiquery, value=result.content,
> time=3600)
>self.response.out.write(result.content)
>
> def main():
>application = webapp.WSGIApplication([('/api/',
> YrController)],debug=True)
> wsgiref.handlers.CGIHandler().run(application)
>
> if __name__ == "__main__":
>main()
>
>
>
> This handler works like a proxy server against a xml api. I can
> understand that it takes some time to load when the data is fetched
> from the api but once the data is in memcached it should not take
> 800ms for the server to handle the response. This webbapp used to be
> written in ASP .NET also using memcached and there the average
> "waiting for response" time for a request is about 100ms.
>
> I will run some profiling on the handler and see what it is that takes
> time. Or could anyone else se what it is? Anyway I could optimize this
> for shorter load times?
>
> //Magnus
>
> On Nov 24, 12:45 am, "Ikai L (Google)"  wrote:
> > What part of this application is slow? Is it just slow in development
> mode?
> > The link you sent out seems to load reasonably fast.
> >
> > What may be happening is that your application may be cycling out. We do
> > this to dynamically adjust the number of instances to match the level of
> > load your application is experiencing. If your application is cycled out,
> > when a request comes in, we cycle it back in, but to do this, we need to
> > load your environment and fire up an application instance.
> >
> > On Sat, Nov 21, 2009 at 7:29 AM, Magnus O. <
> >
> >
> >
> >
> >
> > magnus.ottos...@magnusottosson.se> wrote:
> > > Hi,
> >
> > > I just started developing with python and google app engine and my
> > > first project is to build a small easy proxy server to enable cross
> > > domain xml requests from the client. I'm experiencing logn response
> > > times in all python handlers. Static files as being served fast but
> > > python handlers are loading slow 800ms - 1.5 seconds. For instance,
> > > here is my default page that (for now) just loads an index.html static
> > > file as template:
> >
> > > import cgi
> > > import urllib
> > > import os
> > > import wsgiref.handlers
> > > from google.appengine.ext import webapp
> > > from google.appengine.api import urlfetch
> > > from google.appengine.ext.webapp import template
> >
> > > class MainController(webapp.RequestHandler):
> >
> > >def get(self):
> >
> > >template_values = {}
> >
> > >path = os.path.join(os.path.dirname(__file__),
> 'index.html')
> > >self.response.out.write(template.render(path,
> > > template_values))
> >
> > > def main():
> > >application = webapp.WSGIApplication([('/',
> > > MainController)],debug=True)
> > >wsgiref.handlers.CGIHandler().run(application)
> >
> > > if __name__

[google-appengine] Deployment error with Eclipse

2009-11-24 Thread Clarence
Hi all:

I'm new to Google AppEngine and Eclipse. I've created a basic
application that allows a user to enter GPS coordinates and display
them as markers on a Google Map. The application works perfectly when
I run it in hosted model; however, I receive the following error if I
try to deploy it to AppEngine:

Compiling module com.google.gwt.ajaxloader.AjaxLoader
   [ERROR] Module has no entry points defined

I've searched around yet cannot find any thing related to this error.
Any help would be greatly appreciated. Thanks.

--

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




Re: [google-appengine] BotNet/DDoS Attack

2009-11-24 Thread Ikai L (Google)
Sean,

If this happens, let us know here, especially if it causes billing anomalies
for you:
http://code.google.com/support/bin/request.py?contact_type=AppEngineBillingSupport

On Mon, Nov 23, 2009 at 4:43 PM, Sean  wrote:

> So my silly little toy application that I put up in March suddenly
> appears to have become the target of a BotNet/DDoS attack.  The
> content was political, though non-partisan, so maybe that drew could
> have drawn this loser's ire.  I've disabled the app but I'm not sure
> what, if anything, I should do next.
>
> Is there someone at Google I should alert to this in case this is a
> Google vendetta instead of a political one?  The source IPs seem to be
> legit (i.e. not bogons) so the responsible thing to do would seem to
> be to parse the logs and try to get the IPs to someone who can reach
> the clients.  Is this a waste of time?  If not, any ideas for getting
> the contact info without launching my own flood to ARIN? :)
>
> Thanks,
> Sean
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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




Re: [google-appengine] incremental download from the google app engine datastore

2009-11-24 Thread Ikai L (Google)
If you're requesting logs, you can use this flag:

  -n NUM_DAYS, --num_days=NUM_DAYS
Number of days worth of log data to get. The cut-off
point is midnight UTC. Use 0 to get all available
logs. Default is 1, unless --append is also given;
then the default is 0.

Type appcfg.py help request_logs for all the details.

Otherwise, there's no functionality for incremental data from the datastore.
The reason for this is that persisted entities are not immutable; we'd have
to keep track of everything that has changed. One way you can implement this
is to persist the entity twice in a different EntityType, then export and
clear.

On Tue, Nov 24, 2009 at 2:00 AM, hyun  wrote:

> Hi,
>
> I wonder if it is possible to download the added data (incremental
> download) using
>
>  appcfg.py download_data ...
>
> The time log data of my service is very big now.  So whenever I have
> to download the time log, it takes long because it downloads the full
> data every time.  So I'd like to download just the data newly added.
>
> Thanks,
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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




[google-appengine] Re: Datastore Model Design

2009-11-24 Thread Pierre Lavignotte
No one to help me with my model ?

:'(

--

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




[google-appengine] Re: Datastore Model Design

2009-11-24 Thread niklasr


On Nov 24, 4:52 pm, Pierre Lavignotte 
wrote:
> No one to help me with my model ?
>
> :'(
Always Craig Larman is good ref, creator model and factory design
patterns to R&D. My quick advice is avoid finegraining what I briefly
noticed and make more specific models since models mentioned look
slightly against DRY principle and awaited already defined elsewhere.
Like redefining classes "Point" or "Rectangle" which surely have API,
for rationale farther avoid nameconflicts too and choose names spec to
your app and keep telling how it advances. Guestbook example is very
good learning ground and all always most welcome checkin my project
montao.googlecode.com viewable from Fridge.Koolbusiness.com with
thanks to all engineering for all superiority /Niklas

--

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




[google-appengine] mail this group enables new optional idea

2009-11-24 Thread niklasr
this idea to include direct link to current discussion in text very
obvious to view newest discussion version. since the links are now to
the group, not to the actual discussion, welcomes its consequense

--

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




[google-appengine] What IDE the community recommend to developers of Python+GAE

2009-11-24 Thread frankabel
Hi all,

I know that Java+GAE have http://code.google.com/eclipse/ as google
recommendation, but what about Python+GAE developers?

Cheers
Frank

--

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





[google-appengine] Re: What IDE the community recommend to developers of Python+GAE

2009-11-24 Thread niklasr


On Nov 24, 11:16 pm, frankabel  wrote:
> Hi all,
>
> I know that Java+GAE havehttp://code.google.com/eclipse/as google
> recommendation, but what about Python+GAE developers?
>
> Cheers
> Frank
selenic who maintain hg could know since (easy) Mercurial IDE
unavailable mentioned Eric, Boa constructor, PIDE, drPython where
obviously most important question we long investig8 there supporting
the other creative and constructive team project "noreply" :-)
python IDE for hg  
niklasr nikla...@gmail.com google-appengine-python Hello group, Since
no py IDE
I found has easy hg access. IDEs PIDA and Eric claim Mercurial support
not found
i.e. buttons to clone, commit and push to repositories to define dev
env dvcs,
editor and deployment all in 1. I tested Boa Constructor, dr
Python, ...
Nov 20 by niklasr - 1 message - 1 author
http://groups.google.com/group/google-appengine-python/browse_thread/thread/5db88a48bed8b86/5c5b4fed10a96346?lnk=gst&q=hg#5c5b4fed10a96346
http://groups.google.com/group/google-appengine/browse_thread/thread/84d16163176d6ec8/d3b2acbb5dd60063?lnk=gst&q=mercurial+niklasro#d3b2acbb5dd60063
http://groups.google.com/group/google-appengine/browse_thread/thread/27cadb394a1105a1/4298d418e9557676?lnk=gst&q=mercurial#4298d418e9557676
http://groups.google.com/group/google-appengine/browse_thread/thread/5b6e16b912acdecf

--

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




Re: [google-appengine] What IDE the community recommend to developers of Python+GAE

2009-11-24 Thread Rodrigo Moraes
On Tue, Nov 24, 2009 at 9:16 PM, frankabel wrote:
> I know that Java+GAE have http://code.google.com/eclipse/ as google
> recommendation, but what about Python+GAE developers?

eclipse + pydev plugin is probably the only ide with built-in app
engine support.

hope this helps.

-- rodrigo

--

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




Re: [google-appengine] What IDE the community recommend to developers of Python+GAE

2009-11-24 Thread Robert Kluin
On my Macs, I use:
 - AppEngine Launcher
 - Editra
 - Murky (Mercurial GUI)

Simple and works well for me.
Have a colleague using Wingware instead of Editra.

Robert


On Tue, Nov 24, 2009 at 11:57 PM, Rodrigo Moraes
wrote:

> On Tue, Nov 24, 2009 at 9:16 PM, frankabel wrote:
> > I know that Java+GAE have http://code.google.com/eclipse/ as google
> > recommendation, but what about Python+GAE developers?
>
> eclipse + pydev plugin is probably the only ide with built-in app
> engine support.
>
> hope this helps.
>
> -- rodrigo
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>

--

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




[google-appengine] Large number of DeadlineExceeded and no CPU time used around 11:40pm google time

2009-11-24 Thread Tim Hoffman
Hi

I am encountering large numbers of DeadlineExceeded errors on instance
startup.  At around 11:20pm google time (time in the logs.) I see this
most days this week. appid polytechnic-wa

The odd thing about a lot of these errors (but not all) is that almost
no cpu time is used and the log messages don't show any significant
walk clock time used either



for example

/diag 500 165ms 96cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR
3.5.30729),gzip(gfe),gzip(gfe)
119.11.29.150 - - [24/Nov/2009:23:10:42 -0800] "GET /diag HTTP/1.1"
500 0 - "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.5)
Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)"
"www.polytechnic.wa.edu.au"
D 11-24 11:10PM 42.032
Starting main import (PWA)
D 11-24 11:10PM 42.033
Initialise
D 11-24 11:10PM 42.034
gae
E 11-24 11:10PM 42.135
: cannot import name ro
Traceback (most recent call last):
  File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/
pwa_main.py", line 62, in main
from repoze.bfg.router import make_app
  File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
repoze.bfg-1.0.1-py2.5.egg/repoze/bfg/router.py", line 7, in 
from zope.component.event import dispatch
  File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
zope.component-3.6.0-py2.5.egg/zope/component/__init__.py", line 29,
in 
from zope.component.globalregistry import getGlobalSiteManager
  File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
zope.component-3.6.0-py2.5.egg/zope/component/globalregistry.py", line
19, in 
from zope.interface.adapter import AdapterRegistry
  File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
zope.interface-3.5.1-py2.5-linux-i686.egg/zope/interface/adapter.py",
line 20, in 
from zope.interface import providedBy, Interface, ro

--

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




[google-appengine] Re: Large number of DeadlineExceeded and no CPU time used around 11:40pm google time

2009-11-24 Thread Tim Hoffman
Ignore that stacktrace, cut and past the incorrect one, Sorry.

However we are pretty much dead in the water with startup times
massively blown out,
even pages that are server directly from memcache are taking 4 secs,
when normally they only take 100ms tops.

This has been a recurring pattern for the last week at around the same
time (just after quotas are reset) and it seems to take an hour or 2
to settle down.
(sometimes a little less)

T

On Nov 25, 3:18 pm, Tim Hoffman  wrote:
> Hi
>
> I am encountering large numbers of DeadlineExceeded errors on instance
> startup.  At around 11:20pm google time (time in the logs.) I see this
> most days this week. appid polytechnic-wa
>
> The odd thing about a lot of these errors (but not all) is that almost
> no cpu time is used and the log messages don't show any significant
> walk clock time used either
>
> for example
>
> /diag 500 165ms 96cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1;
> en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR
> 3.5.30729),gzip(gfe),gzip(gfe)
> 119.11.29.150 - - [24/Nov/2009:23:10:42 -0800] "GET /diag HTTP/1.1"
> 500 0 - "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.5)
> Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)"
> "www.polytechnic.wa.edu.au"
> D 11-24 11:10PM 42.032
> Starting main import (PWA)
> D 11-24 11:10PM 42.033
> Initialise
> D 11-24 11:10PM 42.034
> gae
> E 11-24 11:10PM 42.135
> : cannot import name ro
> Traceback (most recent call last):
>   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/
> pwa_main.py", line 62, in main
>     from repoze.bfg.router import make_app
>   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
> repoze.bfg-1.0.1-py2.5.egg/repoze/bfg/router.py", line 7, in 
>     from zope.component.event import dispatch
>   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
> zope.component-3.6.0-py2.5.egg/zope/component/__init__.py", line 29,
> in 
>     from zope.component.globalregistry import getGlobalSiteManager
>   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
> zope.component-3.6.0-py2.5.egg/zope/component/globalregistry.py", line
> 19, in 
>     from zope.interface.adapter import AdapterRegistry
>   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
> zope.interface-3.5.1-py2.5-linux-i686.egg/zope/interface/adapter.py",
> line 20, in 
>     from zope.interface import providedBy, Interface, ro

--

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




[google-appengine] Re: Large number of DeadlineExceeded and no CPU time used around 11:40pm google time

2009-11-24 Thread Tim Hoffman
Things appeard to settle down around 11:48PM

I dont see anything in the system status, and interestingly our
testing instance psc-dev1 which is running the identical code base
was not showing these problems.

T

On Nov 25, 3:37 pm, Tim Hoffman  wrote:
> Ignore that stacktrace, cut and past the incorrect one, Sorry.
>
> However we are pretty much dead in the water with startup times
> massively blown out,
> even pages that are server directly from memcache are taking 4 secs,
> when normally they only take 100ms tops.
>
> This has been a recurring pattern for the last week at around the same
> time (just after quotas are reset) and it seems to take an hour or 2
> to settle down.
> (sometimes a little less)
>
> T
>
> On Nov 25, 3:18 pm, Tim Hoffman  wrote:
>
> > Hi
>
> > I am encountering large numbers of DeadlineExceeded errors on instance
> > startup.  At around 11:20pm google time (time in the logs.) I see this
> > most days this week. appid polytechnic-wa
>
> > The odd thing about a lot of these errors (but not all) is that almost
> > no cpu time is used and the log messages don't show any significant
> > walk clock time used either
>
> > for example
>
> > /diag 500 165ms 96cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1;
> > en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR
> > 3.5.30729),gzip(gfe),gzip(gfe)
> > 119.11.29.150 - - [24/Nov/2009:23:10:42 -0800] "GET /diag HTTP/1.1"
> > 500 0 - "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.5)
> > Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)"
> > "www.polytechnic.wa.edu.au"
> > D 11-24 11:10PM 42.032
> > Starting main import (PWA)
> > D 11-24 11:10PM 42.033
> > Initialise
> > D 11-24 11:10PM 42.034
> > gae
> > E 11-24 11:10PM 42.135
> > : cannot import name ro
> > Traceback (most recent call last):
> >   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/
> > pwa_main.py", line 62, in main
> >     from repoze.bfg.router import make_app
> >   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
> > repoze.bfg-1.0.1-py2.5.egg/repoze/bfg/router.py", line 7, in 
> >     from zope.component.event import dispatch
> >   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
> > zope.component-3.6.0-py2.5.egg/zope/component/__init__.py", line 29,
> > in 
> >     from zope.component.globalregistry import getGlobalSiteManager
> >   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
> > zope.component-3.6.0-py2.5.egg/zope/component/globalregistry.py", line
> > 19, in 
> >     from zope.interface.adapter import AdapterRegistry
> >   File "/base/data/home/apps/polytechnic-wa/1.337992303044477122/lib/
> > zope.interface-3.5.1-py2.5-linux-i686.egg/zope/interface/adapter.py",
> > line 20, in 
> >     from zope.interface import providedBy, Interface, ro

--

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