Re: [appengine-java] Possibility for race condition on datastore?
Thanks for the input. Transactions is exactly what I was looking for. I coding a small game where people can attack each other and decrease their hp. If players ended up quering for the players hp and different datastores contain different values, well that's not a good thing haha. I'm planning on using the memcache to store the players hp, but when the value is removed from the cache I got to get the newest value back into the memcache. On Thu, Mar 3, 2011 at 11:28 AM, Ikai Lan (Google) ika...@google.com wrote: Yes. The only way to correctly do this is with transactions and sharded counters. The better question, however, is this: what are you doing? Perhaps there is an alternative solution. Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Thu, Mar 3, 2011 at 10:57 AM, justin thekeyboard...@gmail.com wrote: I need to write code so that a user has a counter. This counter can be read, increase, and decrease. This counter is mission critical so I will use the high replication datastore. So lets say I create a counter entity which has a user entity as the ancestor. I increase the counter value and store the value. Almost simultaneously I get another request to read the counter. I get the entity from the datastore , using the correct ancestor chain, and I read the value. Is it possible that these two values will be different? If so, is there anyway way to prevent this from happening? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] how to do fast write datastore, google io 2008
i'm refering to Building Scalable Web Applications by Brett Slatkin regarding building comments system that need fast write. 1. May i know whether my understanding correct, creating multiple entity class like below and randomly write to each of it ? example commentA entity class, commentB entity class, commentC entity class. 2. how to combine the results from all these classes and list the comments by date? I dont understanding this part. any sample code on this? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: how to do fast write datastore, google io 2008
2. how to combine the results from all these classes and list the comments by date? I dont understanding this part. any sample code on this? you will need 3 queries. one query for each entity. each queries will need to be executed individualy. ie (puesdo code) pm.execute(select c.text from CommentA c where date=?) pm.execute(select c.text from CommentB c where date=?) pm.execute(select c.text from CommentC c where date=?) so your write may be fast but now your reads will be slow. u cant 'OR' the queries since they are different entities. This solution doesnt look like a scalable solution for bigtable. was the article for SQL tables NOT bigtable? -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] how would I setup ssl in eclipse dev http server
Hi, How would I setup SSL for the Eclipse app engine dev http server? -Mark -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Google App Engine Java Cookbook Sceencast
I'm demoing Google App Engine at DevNexus 2011 on March 21st as part of David Chandler's (turbomanage.wordpress.com) GAE presentation. If you can't come see the demo, you can view the fast-paced screencast from this link: http://goo.gl/UT2W3 It contains a cookbook for building a complete environment from scratch that contains the latest Java Developers Kit, Eclipse IDE, Google App Engine (GAE) plugin, GAE SDK, and a real working Java application (memwords) running locally and on a production Google App Engine server at appspot.com. If you don't like the presentation, I hope you'll appreciate the music. Ronald Jenkees (www.DisorganizedFun.com) was kind enough to give me permission. Your comments and feedback are appreciated. mike lawrence -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Getting Error org.datanucleus.sco.backed.List while paasing the parent object form server to chile side
-- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] URL Fetch problems
OS: Ubuntu 10.10 Java SDK: OpenJDK 6 AppEngine: 1.4.2 WebToolkit: 2.2.0 I use URLFetch (doc here: http://goo.gl/hPraM), and url is: https://graph.facebook.com/me?access_token=316426390227|2.MHJgJ9J6fuNwKern3vyHgg__.3600.129933-1185632060|oZFo-ku78icKHAx_aFvNwdItx9Uexpires_in=5101 If I run in Firefox, error message is: java.lang.IllegalArgumentException: Invalid uri 'https://graph.facebook.com/me?access_token=316426390227|2.MHJgJ9J6fuNwKern3vyHgg__.3600.129933-1185632060|oZFo-ku78icKHAx_aFvNwdItx9Uexpires_in=5101': Invalid query But if I run in Chrome, error message is: javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate for: https://graph.facebook.com/me?access_token=316426390227%7C2.MHJgJ9J6fuNwKern3vyHgg__.3600.129933-1185632060%7CoZFo-ku78icKHAx_aFvNwdItx9Uexpires_in=4180 Please help me... I'm amateur in GAE. Thank all of you! Note: I opened a issue here: http://goo.gl/bxLgu -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Getting error when passing the object to client side please help me..
Hi, If you have the managerId in your employeeManager, you just do a query with a filter() on managerId and you'll get all employee having this manager. regards didier On Mar 6, 6:54 am, andy andy.anand1...@gmail.com wrote: thanks , i will try it now... one more thing i wants to ask that how get the child record(only child properties or including some parent properties) based on the parent properties? because i have used the one to many relation and there is on parent property in child. One way to do this- using the parent object but unnecessarily i am retrieving the all parent records.So what can do? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Getting error when passing the object to client side please help me..
hey, thanks. i did that with DTO class. means every time if i want send the result i should have to use DTO class objects?? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] application don't show up on appspot.com
hi, I am kinda lost here. My application compiles OK, upload to app engine OK. There's no error and the app engine log shows no sign of problems. Where else can I trace and check? Any help will be appreciated. Thanks, Bryan -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: chrome to device question
Hi there is no forum thats why I have decided to post here , better chance someone has done it and could help ;) . I have posted the isuue: http://code.google.com/p/chrometophone/issues/detail?id=284 but forgot to mentioned it here. No reply yet I am starting to wonder if the project is dead. regards maxsap -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: HR Vs. Master-Slave Comparison. Is it worth extra cost?
As far as eventual consistency goes, our users that are on high replication have not seen any issues. We are migrating to HR datastore. I was skeptical about eventual consistency, but when finally we tried HR datastore, we couldn't get it. I know that it is there somewhere, but it is so unnoticeable. My only concern is will it be noticeable when more applications migrate, but it is small price to pay for great availability. Great job. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] URL Handler RegExp
Whats wrong with this handler in app.yaml ? - url: /(\d+) script: index.py?id=\1 When I goto http://localhost/34, the console shows 404 but doesnt say Not found error: /34 did not match any patterns in application configuration. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: URL Handler RegExp
You can't pass parameter values to scripts. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: URL Handler RegExp
Ah...Im treating app.yaml as .htaccess. So now I did application = webapp.WSGIApplication([('/', HomePage), ('/\d+', HomePage)], debug=True) and it works but now how do I mention (\d+) as index.py?code=\1 ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: URL Handler RegExp
You don't need to. If you are using WSGIApp, just enter index.py in app.yaml, then in your WSGIApp handler, you can access the url with self.request.url. Perform whatever filtering you want to extract the number from the url. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Runaway Tasks
Hi Nick, The app id is nimbits1 (nimbits1.appspot.com) The spike occurred around 12pm EST on March 3rd. 95% of the cpu being used at the time was Task Queues deletedata which is set to 5/sec with a bucket size of 5. Thanks! On Mar 4, 4:21 pm, Nicholas Verne nve...@google.com wrote: Could you give us your app id and the approximate time of the gobbling of CPU so we can investigate? Thanks, Nick On Sat, Mar 5, 2011 at 5:49 AM, Benjamin bsaut...@gmail.com wrote: I have a Task that's purpose is to chew away at data that needs to be deleted. I have millions of records that need to go, so the task uses the low level api and key only queries to grab 1000 delete them and restart the task until the remaining count is zero. The task is set to 5/sec with a bucket size of 5. The other day it skyrocketed my CPU usage and maxed out my 5$ quota (400 CPU seconds / second, i think the lights in New York dimmed). Am i missing some setting here? How do i keep a task queue chugging along at a fixed rate without a burst like that, regardless of how many tasks are in the queue? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@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] Downloading a file from Blobstore in IE issue
Hello, I use Blobstore Python API to allow users to download binary files. I created a test app like it described in section Complete Sample App (without any changes): http://code.google.com/intl/en/appengine/docs/python/blobstore/overview.html You can find it here: http://chameleon-tests.appspot.com/ if I type a file address into the IE address bar and press Enter, I got a error: http://my.jetscreenshot.com/1128/20110305-drul-45kb if I use a a href= link it downloads fine. It happens in IE6/7/8 only. In IE9 and other browsers everything is OK. Address of downloaded file you can test: http://chameleon-tests.appspot.com/serve/AMIfv97lnUlCGUsF2rC-zTsHtRP4b3iEGOzDCIhsAT18m78UqqQM2cD4JKYxfLRFFINQMOI4Cod0IwF18eRXvpz45ib9JMcLed2bzm34_Ymzk68WdV1RebIA24KNXZ7_XsMpBmc9lNfv8BE5KhAmD_6XfWibh1sYzA Is there any way to fix the problem or I need to use a regular hosting? Thank you! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Channel API future improvements?
Is there any way for the client to terminate the connection while running on the development server? I've tried calling close() and every other function I can find on the socket and client javascript object, but it keeps polling forever. I want to be able to kill it off so I can setup a new connection with a fresh token without the browser going nuts with requests. BR // Fredrik On 7 Feb, 18:15, Tim meer...@gmail.com wrote: On Monday, February 7, 2011 5:05:06 PM UTC, Peter Petrov wrote: You can change the dev-server polling interval in your JavaScript code quite easily. For example: goog.appengine.Socket.POLLING_TIMEOUT_MS = 5000; // 5 seconds Ah, so you can... and here was me looking for ways to get hold of the goog.Timer objects or similar. And changing that value on the fly changes the timeout for the next call (ie it's not something you can only change before creating a channel) - thanks... I feel quite foolish now :) -- T -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Taskqueued emails getting sent twice
For the past several weeks, every email we have been sending programatically via the Taskqueue is getting sent twice. What would cause this? In the task, the send() is put in a try statement for fail-safety: try:## put in a try, because the taskqueue retries after a DeadlineExceededError, causing multiple sends message.send() except Exception, e: logging.error( str(e) + ', %s, %s' % (to, body) ) We have marked the body with a timestamp for testing, and the duplicate emails have the same exact timestamp, indicating that the issue is in the taskqueue, and not duplication in our scripts. Thank you. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Channel API encoding problem
Is this just on the dev appserver? There is a known bug that the encoding isn't set properly that'll be fixed in 1.4.3. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Confusion about key names
Hello, I'm very confused about the whole key and key-name thing in GAE. What's the job of the key-name? Is this documented anywhere? I couldn't find it in the docs. For example, when I use `Model.get_or_insert`, why do I need to provide a `key_name`? I want to get an entity that matches the keywords I supply, or create one if one doesn't exist. Why do I need to put in a key name? What does it do? Is it stored on the object somehow? What will happen if I put in bla bla bla? Frustratedly yours, Ram. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] High Replication and Blob storage price
Hi all, http://code.google.com/appengine/docs/billing.html In the doc it says HR cost is $0.45 G/month. Does it include the blob store storage? or the storage by blob store remains at $0.15? It's not clear on the doc and from the admin page I always see total storage that's datastore + blobstore. I can understand that HR mode charge more for data stored in bigtable, but blob store data is a different kind of storage right? Say an app has 1G of user data and 10G of images stored in blobstore. The images are served statically and can never be changed. In this case really don't see (and need) the benefit of HR in serving the images. If the 3x cost only applies to datastore, it makes much more sense to switch. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Confusion about key names
The Kind (db.Model) together with the key_id or key_name is the address of the object to read or write. Also the name space and app_id are part of this address (the db.Key) The SQL equivalent is table_name-row_id. 2011/3/5 Ram Rachum ram.rac...@gmail.com: Hello, I'm very confused about the whole key and key-name thing in GAE. What's the job of the key-name? Is this documented anywhere? I couldn't find it in the docs. For example, when I use `Model.get_or_insert`, why do I need to provide a `key_name`? I want to get an entity that matches the keywords I supply, or create one if one doesn't exist. Why do I need to put in a key name? What does it do? Is it stored on the object somehow? What will happen if I put in bla bla bla? Frustratedly yours, Ram. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Confusion about key names
So how would I retrieve an entity given only its kind and key-name? (I use Python.) On Sat, Mar 5, 2011 at 12:13 PM, djidjadji djidja...@gmail.com wrote: The Kind (db.Model) together with the key_id or key_name is the address of the object to read or write. Also the name space and app_id are part of this address (the db.Key) The SQL equivalent is table_name-row_id. 2011/3/5 Ram Rachum ram.rac...@gmail.com: Hello, I'm very confused about the whole key and key-name thing in GAE. What's the job of the key-name? Is this documented anywhere? I couldn't find it in the docs. For example, when I use `Model.get_or_insert`, why do I need to provide a `key_name`? I want to get an entity that matches the keywords I supply, or create one if one doesn't exist. Why do I need to put in a key name? What does it do? Is it stored on the object somehow? What will happen if I put in bla bla bla? Frustratedly yours, Ram. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Sincerely, Ram Rachum -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Confusion about key names
myKey = db.Key.from_path('kind', 'key_name') myEntity = db.get(myKey) -or- myEntity = MyKind.get_by_key_name('key_name') -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: application don't show up on appspot.com
On Mar 5, 3:38 am, dadada ytbr...@gmail.com wrote: hi, I am kinda lost here. My application compiles OK, upload to app engine OK. There's no error and the app engine log shows no sign of problems. Where else can I trace and check? Any help will be appreciated. Thanks, Bryan What do you mean by doesn't show up? What do the logs actually show? Does the application work on the dev server? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: HR Vs. Master-Slave Comparison. Is it worth extra cost?
Here's a question for Google: Is there any chance that sometime in the future we can have a geographically remote datacenter, say in Europe or Asia, that operates on the same datastore? I wouldn't mind a few hundred additional ms of eventual consistency in exchange for a few hundred ms less latency to the client... I guess it would bring up memcache consistency issues. Hmmm. Jeff On Sat, Mar 5, 2011 at 3:30 AM, Matija matija.jerko...@gmail.com wrote: As far as eventual consistency goes, our users that are on high replication have not seen any issues. We are migrating to HR datastore. I was skeptical about eventual consistency, but when finally we tried HR datastore, we couldn't get it. I know that it is there somewhere, but it is so unnoticeable. My only concern is will it be noticeable when more applications migrate, but it is small price to pay for great availability. Great job. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Google Checkout
Google bought Social Gold, Social Gold was the greatest payment system ever, even other payment providers used them, although they could implement credit card processing and Paypal themselves I hope Google In-App Payments keep the simplicity and excellence. http://checkout.google.com/support/sell/bin/request.py?contact_type=inapp_payment I have spent a lot of time reading Paypal services, each service was missing something for me. Some of them didn't accept credit cards directly, some of them didn't support subscriptions, some of them are only available to US/Canada companies etc. I have filled the form more than a week ago, I also have a very big application to show off but I didn't received any reply yet. On Mar 5, 9:21 am, anton savchuk anton.antoh...@gmail.com wrote: Yes, more likely PayPal will be decision.. He really does work.. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Seeking example of bulk loader post_import_function to skip records
Bulk loader is doing what I want, except I'd like to skip certain records on import. Using post_import_function and returning None as described in the docs to skip records instead returns the message NoneType has no attribute has_key. Has anyone successfully used post_import_function to skip records? I seek a very simple, very explicit, and non-deprecated example of doing that. Anybody have one? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: HR Vs. Master-Slave Comparison. Is it worth extra cost?
Mission Critical is just PR packaging around a simple fact that Master/Slave has serious performance issues and team is giving up on it. That was my read on the situation and now Ikal is confirming it. Ikal, thank you - it takes balls to admit a failure. This is a dev forum so no need to sugar coat things too much. I too feel like Darien mostly because 3x pricing bump for HR. I am not a all concerned about eventual consistency issues. Just wondering if you take a regular car with 4 wheels (M/S) and add 8 more wheels does it make it better? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Channel API encoding problem
Yes Moishe I found the problem on the dev appserver. I will try to reproduce it on the production servers later and let You know. BTW I reported the issue here: http://code.google.com/p/googleappengine/issues/detail?id=4675 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
RE: [google-appengine] Re: HR Vs. Master-Slave Comparison. Is it worth extra cost?
If you schedule writes it is not a big deal. I have several apps (admittedly not yet ported to GAE) that I only update the data from time to time. Recipe Databases, little league stats. In those cases you just delay the write, no big deal. This doesn't work for everything, but there are definitely cases where M/S makes sense From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of vlad Sent: Saturday, March 05, 2011 2:43 PM To: google-appengine@googlegroups.com Subject: [google-appengine] Re: HR Vs. Master-Slave Comparison. Is it worth extra cost? Mission Critical is just PR packaging around a simple fact that Master/Slave has serious performance issues and team is giving up on it. That was my read on the situation and now Ikal is confirming it. Ikal, thank you - it takes balls to admit a failure. This is a dev forum so no need to sugar coat things too much. I too feel like Darien mostly because 3x pricing bump for HR. I am not a all concerned about eventual consistency issues. Just wondering if you take a regular car with 4 wheels (M/S) and add 8 more wheels does it make it better? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: chrome to device question
Looks like there is at least some activity: http://code.google.com/p/chrometophone/source/list Also, did you try to join their group? http://groups.google.com/group/chrometophone-list?pli=1 http://groups.google.com/group/chrometophone-list/subscribe?note=1 You might also poke around in their code a bit and see if you can track the error down. Robert On Sat, Mar 5, 2011 at 05:01, maxsap max.saprani...@gmail.com wrote: Hi there is no forum thats why I have decided to post here , better chance someone has done it and could help ;) . I have posted the isuue: http://code.google.com/p/chrometophone/issues/detail?id=284 but forgot to mentioned it here. No reply yet I am starting to wonder if the project is dead. regards maxsap -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: URL Handler RegExp
See the section titled 'URL Mappings' http://code.google.com/appengine/docs/python/tools/webapp/running.html Robert On Sat, Mar 5, 2011 at 09:00, Advanced Media Technologies amte...@gmail.com wrote: Ah...Im treating app.yaml as .htaccess. So now I did application = webapp.WSGIApplication([('/', HomePage), ('/\d+', HomePage)], debug=True) and it works but now how do I mention (\d+) as index.py?code=\1 ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Taskqueued emails getting sent twice
If the taskqueue was running every task twice, other people would probably post issues as well. What status code do your tasks return? Have you added some logging to your tasks for non-error paths so you can make sure they are running as expected? Robert On Sat, Mar 5, 2011 at 11:12, GAEfan ken...@gmail.com wrote: For the past several weeks, every email we have been sending programatically via the Taskqueue is getting sent twice. What would cause this? In the task, the send() is put in a try statement for fail-safety: try: ## put in a try, because the taskqueue retries after a DeadlineExceededError, causing multiple sends message.send() except Exception, e: logging.error( str(e) + ', %s, %s' % (to, body) ) We have marked the body with a timestamp for testing, and the duplicate emails have the same exact timestamp, indicating that the issue is in the taskqueue, and not duplication in our scripts. Thank you. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Confusion about key names
Just a note, get an entity that matches the keywords I supply is _not_ what Model.get_or_insert does. It fetches the entity with the given key name, and if and only if the entity does not exist it will create one with the given arguments. Robert On Sat, Mar 5, 2011 at 11:50, Ram Rachum ram.rac...@gmail.com wrote: Hello, I'm very confused about the whole key and key-name thing in GAE. What's the job of the key-name? Is this documented anywhere? I couldn't find it in the docs. For example, when I use `Model.get_or_insert`, why do I need to provide a `key_name`? I want to get an entity that matches the keywords I supply, or create one if one doesn't exist. Why do I need to put in a key name? What does it do? Is it stored on the object somehow? What will happen if I put in bla bla bla? Frustratedly yours, Ram. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Taskqueued emails getting sent twice
Check the task queue doc page. It says easy task will run at least once until it is successfully completed. You need to add custom code to prevent sth being done more than once if necessary. That is how task queue works in distributed environment like app engine. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Taskqueued emails getting sent twice
Could you post code which runs in the task and logging output ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Please reset my index
Hi Robert, Thanks! I'll bookmark it :) I didn't know such tool exist. On Mar 5, 12:07 pm, Robert Kluin robert.kl...@gmail.com wrote: Thomas, http://code.google.com/appengine/docs/python/tools/uploadinganapp.htm... Remove the index from index.yaml, then appcfg.py vacuum_indexes . -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: memcache.flush_all() failed without error
Well the return code seems to be flaky. I've got the following code. if CapabilitySet('memcache').is_enabled(): if not memcache.flush_all(): raise Error('RESET') And yet I've noticed once that memcache was not reset, but no exception was raised. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Problem using Users API
Strange, I never get asked for a mobile number. When I click 'Create New Account' I'm asked to enter an email, password, birthdate, and a captcha. Clicking next takes me to an 'Account Creation Confirmation' page, but never back to the app (or any app engine pages) -- which is the bug I referenced. On Fri, Mar 4, 2011 at 18:37, Ernesto Karim Oltra ernestoka...@gmail.com wrote: That's not exactly the issue, or it doesn't matter at least. The matter is the user have to input his mobile number, and he complains a lot about it. They asked me for other ways to register without entering the number, so I have to give them the url posted above. When using the Don't have a Google Account? Create an account now link, in the login page returned by create_login_url() they are required to input the number to be able to have their own account in google. Test it, https://www.google.com/accounts/ServiceLogin?service=ahpassive=truecontinue=https://appengine.google.com/_ah/conflogin%3Fcontinue%3Dhttp://historypoint.appspot.com/ltmpl=gmahname=HistoryPointsig=23fcb9b39841f70c29d88d579e5c134a Press Create an account now, and write some information, when you click next, you are required to input mobile number. Tried right now in my computer. PD: If you don't want to enter information, simply highlight there are a section in the first register page called Get started with Google App Engine, when only registering for a simply google account. On 4 mar, 05:19, Robert Kluin robert.kl...@gmail.com wrote: That is an interesting bug. Are you sure they are getting sent to the google app engine account signup? There is a another bug which you may also want to star:http://code.google.com/p/googleappengine/issues/detail?id=1781 On Thu, Mar 3, 2011 at 16:12, Ernesto Karim Oltra ernestoka...@gmail.com wrote: Hi, Some of the users of my apps didn't have an account with google yet, so when they click the Login link pointing to create_login_url() they are redirected to google login page. There, below the login form there is a link to register if you don't have an account. Most of my clients use that link, and they have reported us google asked for their mobile number, as if they were registering to use app engine as a developer. Is there some way to avoid registering for using app engine when only wanted to acces an app? Only create a new account as in (without asking for mobile number): http://www.google.com/accounts/NewAccount -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Getting error while sending the object to client form server, please help me
here is my code; Employee:(Parent) @PersistenceCapable( identityType = IdentityType.APPLICATION,detachable=true) public class Employee implements Serializable { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String id; @Persistent private String ename; @Persistent private String designation; *@Persistent(mappedBy=parentEmployee,defaultFetchGroup=true) private ListLeave leaves; * *@Persistent @Embedded private EmployeeManager employeeManager; * } Leaves:(Child)\ @PersistenceCapable(identityType = IdentityType.APPLICATION,detachable=true) public class Leave implements Serializable{ private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String leaveid; @Persistent private String reason; @Persistent private String status; */...@OneToMany(fetch=FetchType.EAGER)public Employee parentEmployee; * } when i store the data it works fine even when i can retrieve the data at server side and sending through the string it works fine but when i m trying to send the object of Employee it gives the error like *Type 'org.datanucleus.sco.backed.List'* [WARN] Meta-data warning for parentemp.client.Employee.leaves: The datastore does not support joins and therefore cannot honor requests to place related objects in the default fetch group. The field will be fetched lazily on first access. You can modify this warning by setting the datanucleus.appengine.ignorableMetaDataBehavior property in your config. A value of NONE will silence the warning. A value of ERROR will turn the warning into an exception. [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:764) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:727) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:616) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:467) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:564) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at
Re: [google-appengine] Re: Google Checkout
Wow, thanks for that link! This explains why Google Checkout seems like abandonware - they're about to roll out a whole new system. I've applied for the beta program. Jeff On Sat, Mar 5, 2011 at 11:38 AM, Kaan Soral kaanso...@gmail.com wrote: Google bought Social Gold, Social Gold was the greatest payment system ever, even other payment providers used them, although they could implement credit card processing and Paypal themselves I hope Google In-App Payments keep the simplicity and excellence. http://checkout.google.com/support/sell/bin/request.py?contact_type=inapp_payment I have spent a lot of time reading Paypal services, each service was missing something for me. Some of them didn't accept credit cards directly, some of them didn't support subscriptions, some of them are only available to US/Canada companies etc. I have filled the form more than a week ago, I also have a very big application to show off but I didn't received any reply yet. On Mar 5, 9:21 am, anton savchuk anton.antoh...@gmail.com wrote: Yes, more likely PayPal will be decision.. He really does work.. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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.