[google-appengine] Pagination
HI, I somehow have the feeling that for pagination, cursors, memcache and task queues can be used. But I can't get my head around to get the exact code. Any experts here who can help? The idea is like this .. First time the query runs do something like this q=Something.all() q.filter and so on ... total_results=q.count() q.limit(20) # say, current_results=q.count() # what if it only returned 15 at the end ? self.response.out.write(" Showing " + str(current_results) + " of " +str(total_results)) Add a task with current query as parameter(somehow, may be get some kind of unique id for it or something) . The task should generate all (or a set of next N*5) cursors ready in a memcached list(may be comma seperated row) The next time the cgi runs it should first check if there is a memcached list of cursors for the current and next (and may be previous) N set of pages .. if not , call the task again to generate it. If it was existing , use the cursors from the memcached list. the task could do something like this : q=soemthing.all() if cursor: q.with_cursor(cursor) q.limit(20) next_cursor=q.cursor() add the cursor to cache with unique session/query id rinse, repeat till satisfied. what say? I know there are a bunch of errors in the code above .. Its just to give an idea. if cursor: q.with_cursor(cursor) -- You 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] Pagination
HI, I somehow have the feeling that for pagination, cursors, memcache and task queues can be used. But I can't get my head around to get the exact code. Any experts here who can help? The idea is like this .. First time the query runs do something like this q=Something.all() q.filter and so on ... total_results=q.count() q.limit(20) # say, current_results=q.count() # what if it only returned 15 at the end ? self.response.out.write(" Showing " + str(current_results) + " of " +str(total_results)) Add a task with current query as parameter(somehow, may be get some kind of unique id for it or something) . The task should generate all (or a set of next N*5) cursors ready in a memcached list(may be comma seperated row) The next time the cgi runs it should first check if there is a memcached list of cursors for the current and next (and may be previous) N set of pages .. if not , call the task again to generate it. If it was existing , use the cursors from the memcached list. the task could do something like this : q=soemthing.all() if cursor: q.with_cursor(cursor) q.limit(20) next_cursor=q.cursor() add the cursor to cache with unique session/query id rinse, repeat till satisfied. what say? if cursor: q.with_cursor(cursor) -- You 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: Pagination
On Apr 18, 10:33 am, kamathln wrote: > the task could do something like this : > > q=soemthing.all() > if cursor: > q.with_cursor(cursor) > q.limit(20) > next_cursor=q.cursor() > add the cursor to cache with unique session/query id > rinse, repeat till satisfied. > Fix: -- q.limit(20) ++ temp =q[20] -- You 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] Pagination
On Sun, Apr 18, 2010 at 7:32 AM, kamathln wrote: > HI, >I somehow have the feeling that for pagination, cursors, > memcache and task queues can be used. But I can't get my head around > to get the exact code. Any experts here who can help? > > The next time the cgi runs it should first check if there is a > memcached list of cursors for the current and next (and may be > previous) N set of pages .. if not , call the task again to generate > it. If it was existing , use the cursors from the memcached list. > The "set of pages" is a little bit confusing for me. Do you mean "current, next and previous set of *records*"? (I.e. records to be displayed on current/next/previous page.) I was thinking about using memcache for paging (of articles) too, I did not think about using cursors though, as I have only very shallow experience with them. I have to look at them, this sounds promising. -- You 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] datastore design for hierarchical data.
hi , i am designing a simple project based to do list. the idea is to define tasks under project ( no workflow - just "task is completed" or not is required. ) in a hirarchial way. i.e. each task has multiple task and that task may have other multiple task. a project can be said to be completed if all task under that project are completed. , i tought of using refrenceproeperty to create hirarchy , but could not figure out easy way ( which do not take more than 30 seconds to find all the children of a project and check weather it is completed or not ) . to detect if project is complete or not. how to design database for such job ? and also , if i need to copy the project in order to define another project , how to copy hierarchical data ? -- You 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 design for hierarchical data.
one idea is to store both , reference value of project as well as reference value of parent task in a child task. ( or referencelist property ?? -- in that case , is it guranteed in appengine to preserve list sequence ?? ) On Apr 18, 5:29 pm, gops wrote: > hi , i am designing a simple project based to do list. the idea is to > define tasks under project ( no workflow - just "task is completed" or > not is required. ) in a hirarchial way. i.e. each task has multiple > task and that task may have other multiple task. a project can be said > to be completed if all task under that project are completed. , i > tought of using refrenceproeperty to create hirarchy , but could not > figure out easy way ( which do not take more than 30 seconds to find > all the children of a project and check weather it is completed or > not ) . to detect if project is complete or not. how to design > database for such job ? and also , if i need to copy the project in > order to define another project , how to copy hierarchical data ? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] datastore design for hierarchical data.
How about updating all ancestors on task status change? That way you wouldn't need to find all the children. On Sun, Apr 18, 2010 at 2:29 PM, gops wrote: > hi , i am designing a simple project based to do list. the idea is to > define tasks under project ( no workflow - just "task is completed" or > not is required. ) in a hirarchial way. i.e. each task has multiple > task and that task may have other multiple task. a project can be said > to be completed if all task under that project are completed. , i > tought of using refrenceproeperty to create hirarchy , but could not > figure out easy way ( which do not take more than 30 seconds to find > all the children of a project and check weather it is completed or > not ) . to detect if project is complete or not. how to design > database for such job ? and also , if i need to copy the project in > order to define another project , how to copy hierarchical data ? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: datastore design for hierarchical data.
Here is the approach I would probably take unless you have many hundreds of child tasks. I would keep a list of keys of all children of each project/task. (You can then do a db.get and get all immediate children with single call) and each child has a reference to it's parent. In addition in each item keep a list of all parents keys back to the root. That way you can search for all children in part of the tree/subtree (This approach is especially useful if you have multiple child types) as back ref sets are kind specific. Keep a running count of complete children at each level, rather than trying to calculate the current state in a single big function, (keep these subsidiary values up to date through tasks) T On Apr 18, 8:29 pm, gops wrote: > hi , i am designing a simple project based to do list. the idea is to > define tasks under project ( no workflow - just "task is completed" or > not is required. ) in a hirarchial way. i.e. each task has multiple > task and that task may have other multiple task. a project can be said > to be completed if all task under that project are completed. , i > tought of using refrenceproeperty to create hirarchy , but could not > figure out easy way ( which do not take more than 30 seconds to find > all the children of a project and check weather it is completed or > not ) . to detect if project is complete or not. how to design > database for such job ? and also , if i need to copy the project in > order to define another project , how to copy hierarchical data ? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Google Data API to talk to App Engine Service
Two diff ways can be used. 1. Google Account auth. There is a simple example somewhere on the tutorial on this. Should be easy. 2. Another way (which I am using as not all my users have google account), is to create local User account and hash of a password. Only client knows the password. Then create a session when user auths. Send session id back and cache it. You can do a lot of fancy security stuff with that (out of the scope of this reply). Then every call needs to have session id. I would also include a some integrity check by HMACing the payload etc. Also, one can use a clever JSESSION cookie usage if on the browser. -mandar On Apr 17, 6:26 pm, formtester wrote: > Still couldn't figure out how to authenticate myself with App Engine > service, and get data from it. > Anyone ever did this before? > > On Apr 15, 12:48 am, formtester wrote: > > > Hi, > > > I'm looking for a Google API that will let me talk to App Engine > > Service, and get user's information regarding their App Engine > > service. For example: > > Given a username and password, I will then authenticate these > > informations with Google service, and if authenticated, I will then > > talk to App Engine service, and ask for this specific username > > information (such as if this user have an application ID in Google App > > Engine). > > > Is it possible to do so? if so, is there any example to do this? > > > 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-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Appstats caused java OutOfMemoryError - heap
I'm experiencing the same issue - were you able to resolve? On Mar 31, 5:17 pm, Jake wrote: > I have a rather large and intense sorting process that runs > periodically. When I enabled Appstats, this process started to fail > with the following trace. > > When I disabled Appstats, it went back to normal. > > I really liked Appstats, too. sigh. > > 03-31 02:05PM 56.204 > Uncaught exception from servlet > java.lang.OutOfMemoryError: Java heap space > at > com.google.appengine.repackaged.com.google.protobuf.ByteString.toByteArray( > ByteString.java: > 173) > at > com.google.appengine.repackaged.com.google.protobuf.CodedOutputStream.write > BytesNoTag(CodedOutputStream.java: > 356) > at > com.google.appengine.repackaged.com.google.protobuf.CodedOutputStream.write > Bytes(CodedOutputStream.java: > 200) > at com.google.appengine.api.memcache.MemcacheServicePb > $MemcacheSetRequest$Item.writeTo(MemcacheServicePb.java:1568) > at > com.google.appengine.repackaged.com.google.protobuf.CodedOutputStream.write > GroupNoTag(CodedOutputStream.java: > 333) > at > com.google.appengine.repackaged.com.google.protobuf.CodedOutputStream.write > Group(CodedOutputStream.java: > 172) > at com.google.appengine.api.memcache.MemcacheServicePb > $MemcacheSetRequest.writeTo(MemcacheServicePb.java:1980) > at > com.google.appengine.repackaged.com.google.protobuf.AbstractMessageLite.toB > yteArray(AbstractMessageLite.java: > 36) > at > com.google.appengine.api.memcache.MemcacheServiceImpl.makeSyncCall(Memcache > ServiceImpl.java: > 170) > at > com.google.appengine.api.memcache.MemcacheServiceImpl.putAll(MemcacheServic > eImpl.java: > 420) > at > com.google.appengine.api.memcache.MemcacheServiceImpl.putAll(MemcacheServic > eImpl.java: > 459) > at > com.google.appengine.tools.appstats.MemcacheWriter.persist(MemcacheWriter.j > ava: > 264) > at > com.google.appengine.tools.appstats.MemcacheWriter.commit(MemcacheWriter.ja > va: > 177) > at > com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter. > java: > 94) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > at > com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo > bUploadFilter.java: > 97) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > at > com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF > ilter.java: > 35) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans > actionCleanupFilter.java: > 43) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: > 388) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: > 216) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: > 182) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: > 765) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 418) > at > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionH > andlerMap.java: > 238) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: > 152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 542) > at org.mortbay.jetty.HttpConnection > $RequestHandler.headerComplete(HttpConnection.java:923) > at > com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequ > estParser.java: > 76) -- You 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: Incoming email bounced
On Apr 16, 10:37 pm, David Richardson wrote: > I have a trivial test app to receive and process inbound email. > > Here's the app.yaml file: > > application: mailindb > version: 1 > runtime: python > api_version: 1 > > inbound_services: > - mail > > handlers: > - url: .* > script: main.py > - url: /_ah/mail/ad...@mailindb.appspotmail.com > script: handle_all.py > login: admin > > All attempts to send mail to ad...@mailindb.appspotmail.com result in > an immediate permanent delivery failure. What am I missing? > > This app was just deployed - is there significant latency for the > inbound email gateway to be registered for new apps? Or have I misread > the documentation? Your .* handler matches all requests; handle_all.py will never get run. Change the order of your handlers; .* should always be the last one specified. -- You 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 to an Admin
I would like to send an email to just one of my admin emails, and I want it to come off the "admin email" quota, as opposed to the normal quota. Both of the following possibilities failed: * Sending a regular email to the admin's email address still resulted in me being charged through the regular email quota * Using the special send to admins function resulted in the "to" parameter being ignored, and all admins got the message If someone could help it 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-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.add Invalid arguments: queue_name
Has anyone had issues with the queue_name keyword argument to taskqueue.add? -- You 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] Datastore Viewer + lists?
Hello chaps I have a persistent class which has a List which is marked @Persistent. I get no errors when persisting/updating the object in the datastore, but the local datastore viewer shows nothing in the column which corresponds to the List field. Is this normal, or is something (silently) going wrong? Thanks! gemma -- You 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] Comcast not accepting outgoing emails
I have a domain registered on Godaddy, and added to Google Apps. Through Google Apps, i added my AppEngine application as service. I"ve setup the DNS records to server www from Appengine, this works well. I've added the SPF record to my DNS records on Godaddy based on this article: http://www.google.com/support/a/bin/answer.py?answer=178723. My app serves correctly off the domain. Everything works well except that the emails I send with the registration activation never arrive to SOME recipients. They successfully arrive to many recipients (gmail, yahoo and others), but NEVER arrive to comcast.net accounts and some others. Any help 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-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] Macro question about getting video conference functionality in a custom Web App
Hi all, I'm working with a few friends to design a desktop client that will have Skype-like functionality (think Chat roulette). We are planning on leveraging the App Engine to build it since we are so much more familiar with web programming anyway, then we're going to package it as a desktop client using Adobe Air. In general, I am trying to get a sense for the easiest and fastest ways to build XMPP chat and video functionality into an App Engine app. I would really appreciate any ideas you guys might be able to throw our way. I've looked at libjingle (Google's videoconfereincing code), but am worried about how hard it will be to plug it into the App engine considering the fact that libjingle is C++. Is there some other kind of plug-in or add-on that would give us the ability to set up video conferences in a web app? Thanks very much for your help! Keller -- You 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: Google Data API to talk to App Engine Service
Hi Mandar, I tried using the Google Account auth [OAuth, ClientLogin]. However, it seems that you can only get access to some services (not all), and it seems that App Engine Services is not part of those services that you can access. Is that what you mean by Google Account auth? On Apr 18, 12:16 pm, mandar khadilk wrote: > Two diff ways can be used. > > 1. Google Account auth. There is a simple example somewhere on the > tutorial on this. Should be easy. > > 2. Another way (which I am using as not all my users have google > account), is to create local User account and hash of a password. Only > client knows the password. > > Then create a session when user auths. Send session id back and cache > it. You can do a lot of fancy security stuff with that (out of the > scope of this reply). Then every call needs to have session id. > > I would also include a some integrity check by HMACing the payload > etc. Also, one can use a clever JSESSION cookie usage if on the > browser. > > -mandar > > On Apr 17, 6:26 pm, formtester wrote: > > > > > > > Still couldn't figure out how to authenticate myself with App Engine > > service, and get data from it. > > Anyone ever did this before? > > > On Apr 15, 12:48 am, formtester wrote: > > > > Hi, > > > > I'm looking for a Google API that will let me talk to App Engine > > > Service, and get user's information regarding their App Engine > > > service. For example: > > > Given a username and password, I will then authenticate these > > > informations with Google service, and if authenticated, I will then > > > talk to App Engine service, and ask for this specific username > > > information (such as if this user have an application ID in Google App > > > Engine). > > > > Is it possible to do so? if so, is there any example to do this? > > > > 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-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Google Data API to talk to App Engine Service
Sorry, I guess I was referring to the wrong things. Instead of authentication, I actually wanted to do authorization, so that I can access the data the user have stored in Google applications. In my case, I wanted to access their App Engine data (such as the application IDs that they have, etc2). On Apr 18, 4:09 pm, formtester wrote: > Hi Mandar, > > I tried using the Google Account auth [OAuth, ClientLogin]. However, > it seems that you can only get access to some services (not all), and > it seems that App Engine Services is not part of those services that > you can access. > Is that what you mean by Google Account auth? > > On Apr 18, 12:16 pm, mandar khadilk wrote: > > > > > > > Two diff ways can be used. > > > 1. Google Account auth. There is a simple example somewhere on the > > tutorial on this. Should be easy. > > > 2. Another way (which I am using as not all my users have google > > account), is to create local User account and hash of a password. Only > > client knows the password. > > > Then create a session when user auths. Send session id back and cache > > it. You can do a lot of fancy security stuff with that (out of the > > scope of this reply). Then every call needs to have session id. > > > I would also include a some integrity check by HMACing the payload > > etc. Also, one can use a clever JSESSION cookie usage if on the > > browser. > > > -mandar > > > On Apr 17, 6:26 pm, formtester wrote: > > > > Still couldn't figure out how to authenticate myself with App Engine > > > service, and get data from it. > > > Anyone ever did this before? > > > > On Apr 15, 12:48 am, formtester wrote: > > > > > Hi, > > > > > I'm looking for a Google API that will let me talk to App Engine > > > > Service, and get user's information regarding their App Engine > > > > service. For example: > > > > Given a username and password, I will then authenticate these > > > > informations with Google service, and if authenticated, I will then > > > > talk to App Engine service, and ask for this specific username > > > > information (such as if this user have an application ID in Google App > > > > Engine). > > > > > Is it possible to do so? if so, is there any example to do this? > > > > > 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-appeng...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-appengine+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/google-appengine?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Mail to an Admin
Add part of the required admin email address to the subject line and the app name and setup filters to reject the mail not intended for you as admin for this app Subject: [App-Select-yossie] Some Error filter 1: Accept all mail with "[App-Select-yossie]" in subject filter 2: Reject all mail with "[App-Select-" in subject 2010/4/19 prgmratlarge : > I would like to send an email to just one of my admin emails, and I > want it to come off the "admin email" quota, as opposed to the normal > quota. Both of the following possibilities failed: > > * Sending a regular email to the admin's email address still resulted > in me being charged through the regular email quota > > * Using the special send to admins function resulted in the "to" > parameter being ignored, and all admins got the message > > If someone could help it 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-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Mail to an Admin
Yes, but that means fixing things on the client side. For each admin, this needs to be configured. There's gotta be a way to do this on the appengine side... On Apr 18, 7:21 pm, djidjadji wrote: > Add part of the required admin email address to the subject line and > the app name and setup filters to reject the mail not intended for you > as admin for this app > > Subject: [App-Select-yossie] Some Error > > filter 1: Accept all mail with "[App-Select-yossie]" in subject > filter 2: Reject all mail with "[App-Select-" in subject > > 2010/4/19 prgmratlarge : > > > > > > > I would like to send an email to just one of my admin emails, and I > > want it to come off the "admin email" quota, as opposed to the normal > > quota. Both of the following possibilities failed: > > > * Sending a regular email to the admin's email address still resulted > > in me being charged through the regular email quota > > > * Using the special send to admins function resulted in the "to" > > parameter being ignored, and all admins got the message > > > If someone could help it 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-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: taskqueue.add Invalid arguments: queue_name
I can answer my own question on this one. The docs are a little confusing it seems to me. They seem to suggest that one can pass queue as a kw to taskqueue.add. What you have to do if you want to do this ... apparently ... is create an instance of Task and THEN use task.add (queue_name='foo'). On Apr 18, 5:36 pm, Jay wrote: > Has anyone had issues with the queue_name keyword argument to > taskqueue.add? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Request per Second limitation (PLEASE)
Hi Nick, I had to revert the change (a new feature that increased requests) because users were getting "Over quota error" once a while (1 of 6 tries more or less). That was Thursday. My appID: paymentez If you can search something about it maybe I could release our new feature again before trying another solution for that feature. Thanks again for your help. On Apr 16, 8:02 am, "Nick Johnson (Google)" wrote: > Hi Jairo, > > On Thu, Apr 15, 2010 at 10:48 PM, Jairo Vasquez > wrote: > > > Nick, > > > I'm getting "Limited" in Requests and Secure Requests Quotas. Also > > pages are showing "Quota error" (not all times). > > What do you mean by "I'm getting 'limited'"? What are you observing, > precisely? > > > > > I've tried to reduce requests. I just though you told me everything > > would scale :S > > What is your average request latency, and what is your App ID? > > -Nick Johnson > > > > > > > > > Please what can I do. > > > On Apr 14, 12:21 pm, "Nick Johnson (Google)" > > wrote: > > > Hi Jairo, > > > > If your average latency is low (below 1 second), you should be able to > > scale > > > up to any request load, as long as you provide the budget to support it. > > > > -Nick Johnson > > > > On Wed, Apr 14, 2010 at 5:37 PM, Jairo Vasquez > >wrote: > > > > > Hi, > > > > > I am managing 650 request per second. Can I start to manage 1200 > > > > request per second? > > > > > I need to know what my limits are, what can I do. > > > > > Should I use another solution or can GAE support this load? > > > > > Thanks > > > > > -- > > > > Jairo Vasquez Moreno > > > > Mentez Developer > > > >www.mentez.com > > > > Medellin - Colombia > > > > > -- > > > > You 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 > > > e...@googlegroups.com> > e...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine?hl=en. > > > > -- > > > Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. > > :: > > > Registered in Dublin, Ireland, Registration Number: 368047 > > > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration > > Number: > > > 368047 > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com > e...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en. > > -- > Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: > Registered in Dublin, Ireland, Registration Number: 368047 > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: > 368047 > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Limiting Cron jobs by time of day
Is there a syntax for cron jobs that limits when they run? For example, can I specify that a cron job run every every hour between 9am and 9pm? schedule: every 1 hour [except 10pm-8am] Is there a different, verbose syntax that lists every time it runs rather than using some kind of exception clause? -- You 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: Outbound email failure today
This is still an issue for me... On Apr 17, 7:26 am, toh wrote: > Not a help, but I just wanted to say that I am having the same > issue... > > > > Greg Tracy wrote: > > I had the same problem again today... > > > There haven't been any code changes, and not all emails are failing. > > > Any help is appreciated. > > > Greg > > > On Apr 15, 4:28 pm, Greg Tracy wrote: > > > > Curious to know if there was a problem with the GAEemailserver this > > > afternoon. 88 (of roughly 675) emails sent out by my app today bounced > > > back. The bounced emails all had messages with text similar to the > > > following... > > > > The error that the other server returned was: 501 501 > > > <3t0fhswohbkkpanp.cajlhjcc.wncujaburwdbrc@1rf- > > > H_fBpZ96xCRX.apphosting.bounces.google.com>: malformed address: > > > _fBpZ96xCRX.apphosting.bounces.g may not follow > > > <3t0fhswohbkkpanp.cajlhjcc.wncujaburwdbrc@1rf-h (state 13). > > > > Thoughts? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, sendemailto google-appeng...@googlegroups.com. > > To unsubscribe from this group, sendemailto > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, sendemailto google-appeng...@googlegroups.com. > To unsubscribe from this group, sendemailto > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Limiting Cron jobs by time of day
off the top of my head.. you could define a cron job for every hour 9am, 10am, 11am, 12am with different names like job-9, job-10, job-11 but have them all point to the same url to initiate the cron job. On Apr 18, 11:24 pm, Greg Tracy wrote: > Is there a syntax for cron jobs that limits when they run? > > For example, can I specify that a cron job run every every hour > between 9am and 9pm? > > schedule: every 1 hour [except 10pm-8am] > > Is there a different, verbose syntax that lists every time it runs > rather than using some kind of exception clause? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Pagination
On Apr 18, 3:57 pm, Jaroslav Záruba wrote: > The "set of pages" is a little bit confusing for me. Do you mean "current, > next and previous set of *records*"? (I.e. records to be displayed > on current/next/previous page.) > > I was thinking about using memcache for paging (of articles) too, I did not > think about using cursors though, as I have only very shallow experience > with them. I have to look at them, this sounds promising. > See, with cursors, you can do basic pagination of entries (not the content of the entries themselves. Like if you have 200 entries in the datastore for an entity type, you can show 10 at a time and using the cursor, you can generate a "next" link. But that in turn poses a problem: you can only generate a "next" link, and not "previous" link. So my idea for the solution is to go over the remaining results in a quick way, and cache the cursors that point to first page, second page and so on.. in a csv in memcache entry(session managed, of course). Now using this memcache entry, you can generate a whole array of page links. The next problem that arises is that if the database has grown too big, then the csv generation will be slow(as it has to jump a lot of times). So the next idea is , instead of generating all cursors in the main cgi , the main cgi generates only first few set of page links, and then triggers a task queue entry to continue from there. By the time the user would have read the first page and clicks on "next page", the task would have generated few more entries. As the set of cursors for pagination is in memcache, you can use it even in your first page, if you are using AJAX (guessing, not that sure.) -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] problem with memcache
I get this error when I try to run my app: " com.scrapbook.CacheException: Class: 'ri.cache.BasicCacheFactory' does not implement CacheFactory " I had included all the necessary jar files in the src folder as the compiler doesnt recognise them if put in net.sf.jsr107. I don't understand why it says " the import net cannot be resolved ". Has anyone faced 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-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] I can't update my applications
I changed my email. now I can't update my applications and create application. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.