[appengine-java] Re: Thread inside servlet

2011-01-16 Thread Didier Durand
Hi, You can't fork threads from within gae and letting an active servlet sleep within gae to reschedule it every 30 min is not a good idea for various reasons (resources, risk of failure, etc.. you have to either go the cron or the task way (and with a delay time of 30 min). Cron way is the

Re: [appengine-java] Custom location for local_db.bin?

2011-01-16 Thread m seleron
Hi, It might be solved by this thought is not a direct answer. http://groups.google.com/group/google-appengine-java/browse_thread/thread/3647a2d262386b41 please try thanks. 2011/1/16 A. Stevko andy.ste...@gmail.com: Why not just back it up or check-in to version control? Another option is to

[appengine-java] Updating 1.3.5 project to 1.4

2011-01-16 Thread coltsith
Hi there, So I downloaded SDK v1.4 and put the folder into eclipse plugins com.google.appengine.eclipse.sdkbundle.1.3.5_1.3.5.v201006301254. Then I went into my Eclipse menu preferences Google/App Engine and added the 1.4 SDK directory. Then I checked use SDK 1.4 instead of 1.3.5. Is that

[appengine-java] Re: Updating 1.3.5 project to 1.4

2011-01-16 Thread Didier Durand
Hi, More is needed: you have to change the old gae jars in the /lib of your war directory by the equivalent new ones that you find in the directories of the plugin. Then, you have to fix the buildpath of your project to adapt to the jars that changed names because of new versions, etc. Then,

[appengine-java] Re: Workaround to get a cursor from a sorted and filtered query?

2011-01-16 Thread Glenn
Thanks to speedplane for the suggestion. To answer my own question, the algorithm I suggested did indeed work, returning a cursor. Cheers, Glenn On Dec 21 2010, 10:59 pm, Glenn glenn.mur...@gmail.com wrote: I'm trying to find a workaround for some query cursor limitations. Say that I have

Re: [appengine-java] Re: Subject: Java documentation updated to use low-level API for example code

2011-01-16 Thread Charms Styler
hmmm thnx. it certainly did the trick.but I couldn't find the maximum length of a key? any ideas ? On Fri, Jan 14, 2011 at 6:42 PM, Didier Durand durand.did...@gmail.com wrote: Hi, You may be interested to read to undertstand the structure of DS keys:

Re: [appengine-java] Re: Custom location for local_db.bin?

2011-01-16 Thread Daniel Kvasnička jr .
Yeah, I've been looking at extending the netbeans build files. That would probably work. But the link m seleron suggested looks promising -- it could be the cleanest way to do that IMO. Will try it and let you guys know. Dan On Mon, Jan 17, 2011 at 08:11, andrew aute...@gmail.com wrote: I added

[appengine-java] Re: Subject: Java documentation updated to use low-level API for example code

2011-01-16 Thread Didier Durand
Hi, I don't know the exact answer to your question but what I can say is that it is clearly dependent on your entity group hierarchy. The key contains a concatenation of the key of all the ancestors. I never saw any limitation on the depth of this ancestor hierarchy. So, if you can be as deep

Re: [google-appengine] Re: Configuration webapp_add_wsgi_middleware not recognized error

2011-01-16 Thread djidjadji
http://www.downforeveryoneorjustme.com/ does a HEAD request. If you don't implement that the site is reported as down also. -- 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] Persistence for inherited classes

2011-01-16 Thread Ralfeus
Hi I have own class ItemsList, which extends LinkedListItem. It's used by Category class. While saving Category.java it get following error: Field items in class Category has been defined as a Collection but the element type has not been specified! I googled this error but found only questions

Re: [google-appengine] Re: Configuration webapp_add_wsgi_middleware not recognized error

2011-01-16 Thread Tom Critchlow
Hi djidjadji, I'm pretty now to coding and python - could you please give me a pointer as to how I add HEAD information? Is this something I need to do within GAEsessions? Is this related to the missing middleware error or unrelated? Thanks Tom On Sun, Jan 16, 2011 at 8:44 AM, djidjadji

Re: [google-appengine] How to create blobstore entity without create_upload_url?

2011-01-16 Thread Iap
HI, Nick Thanks for your reply, I have fired a feature request in the tracking system. After several days survey, I have completed a not prefect workaround for multiple uploading. Hope this will help to those people with the same issue before the official solution. The workaround is based on

[google-appengine] Re: Getting User nickname from item.author

2011-01-16 Thread Zeynel
On Jan 16, 1:08 am, Robert Kluin robert.kl...@gmail.com wrote:   I guess it depends on exactly what item.author is, but have you tried author.nickname()? Hi Robert, author is from my model: class Item(db.Model): title = db.StringProperty() url = db.StringProperty() date =

[google-appengine] Re: users.create_logout_url(/) not working

2011-01-16 Thread Zeynel
On Jan 16, 1:11 am, Robert Kluin robert.kl...@gmail.com wrote:   What kind of auth does your app use, Google, Apps Domain, Federated?  You might also want to explain the actual problem in more detail. What are the links produced, etc... Hi Robert, The app is using Google Accounts API as

Re: [google-appengine] Re: Configuration webapp_add_wsgi_middleware not recognized error

2011-01-16 Thread djidjadji
A HEAD request is like a GET or POST request. The request handler must have a def head(self) method. The responds should be the result of a GET request but without the body. I don't know how webapp or another framework handles it after the return of the head() function.

Re: [google-appengine] Re: users.create_logout_url(/) not working

2011-01-16 Thread djidjadji
Try to find out why this is double in the URL http://sarah-for-president.appspot.com/http://sarah-for-president.appspot.com/ try this code snippet url = users.create_logout_url(/) logging.info(URL:+url) 2011/1/16 Zeynel azeyn...@gmail.com: On Jan 16, 1:11 am, Robert Kluin

[google-appengine] Re: users.create_logout_url(/) not working

2011-01-16 Thread Zeynel
On Jan 16, 9:44 am, djidjadji djidja...@gmail.com wrote: Try to find out why this is double in the URL http://sarah-for-president.appspot.com/http://sarah-for-president.app... try this code snippet url = users.create_logout_url(/) logging.info(URL:+url) ok. Here's the result:

[google-appengine] Authentication and XMPP

2011-01-16 Thread Bjorn Roche
Hey all, I am planning to build a web app that provides ReST and XMPP to custom-built clients. GAE seems like a good choice as google talk is supposed to be part of the package, but I'm confused about how authentication works with web vs XMPP. I realize I can either do my own

Re: [google-appengine] Re: How to launch 100K+ recurring task every 5 min

2011-01-16 Thread Eli Jones
I just want to re-iterate that I still agree with myself here. Though, one issue that I can see with using asynchronous urlfetch... it will be returning results to your callback handler.. thus, I am guessing, you'll be stuck with one result per urlfetch.. and if you are putting this information

[google-appengine] Re: users.create_logout_url(/) not working

2011-01-16 Thread Zeynel
If I use this version then I can sign in: if user: self.response.out.write(div style=color: #808080; font-size: x-small;%s/divbr / % user.nickname()) else: self.redirect(users.create_login_url(self.request.uri)) Can you explain what users.create_login_url(/) does? On Jan 16, 9:44 am,

[google-appengine] Re: Advice for database model

2011-01-16 Thread sameer.mhatre
Thanks for your reply @Julian each message belongs to a single user only. Its not shared between users. So I am creating entity group for the list of messages per user. And other reason is if I am not using entity group for messages per user then I am getting problem in saving list of messages

Re: [google-appengine] Re: users.create_logout_url(/) not working

2011-01-16 Thread djidjadji
According to the manual http://code.google.com/appengine/docs/python/users/functions.html 2011/1/16 Zeynel azeyn...@gmail.com: Can you explain what users.create_login_url(/) does? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to

[google-appengine] Re: users.create_logout_url(/) not working

2011-01-16 Thread Zeynel
On Jan 16, 12:04 pm, djidjadji djidja...@gmail.com wrote: According to the manual http://code.google.com/appengine/docs/python/users/functions.html Thanks! I changed the / to self.request.uri and it seems to work now: if user: greeting = (%s (a href='%s'sign out/a) %

[google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread Darien Caldwell
It will be fixed when China becomes a Democracy. So you can estimate for yourself how many decades/centuries that may take. -- 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] How does get_by_key_name work?

2011-01-16 Thread Zeynel
Hello, I am reading this sample app called overheard http://code.google.com/appengine/articles/overheard.html to add ranking functionality to my app. His models.set_vote() function has a line vote = Vote.get_by_key_name(key_names = user.email(), parent = quote) and his Vote model is class

[google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread Kaan Soral
Is there any way to find viable IP's to direct domains to? For Turkey IP's are banned very quickly. On Jan 16, 8:04 pm, Darien Caldwell darien.caldw...@gmail.com wrote: It will be fixed when China becomes a Democracy. So you can estimate for yourself how many decades/centuries that may take.

Re: [google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread Barry Hunter
If the list was easy to find - what would stop the people implementing the ban from consulting said list too :( On 16 January 2011 19:45, Kaan Soral kaanso...@gmail.com wrote: Is there any way to find viable IP's to direct domains to? For Turkey IP's are banned very quickly. On Jan 16,

Re: [google-appengine] How does get_by_key_name work?

2011-01-16 Thread djidjadji
http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get_by_key_name 2011/1/16 Zeynel azeyn...@gmail.com: Hello, I am reading this sample app called overheard http://code.google.com/appengine/articles/overheard.html to add ranking functionality to my app. His

[google-appengine] Suggest Adding WebMaster Tools and Analytics link to left menu in GAE Dashboard.

2011-01-16 Thread branflake2267
I wanted to suggest adding domain web master tools and analytics links to the left menu that link directly to the analytics and or tools in the GAE Dashboard. Also add Google Apps Domain management link if its connected to GAE Dashboard. Any thoughts? -- You received this message because

[google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread branflake2267
Use a proxy server with a different ip to grab the data from 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] Re: Suggest Adding WebMaster Tools and Analytics link to left menu in GAE Dashboard.

2011-01-16 Thread Zeynel
Currently, if I want to look at traffic, do I need to get Google Analytics separately? On Jan 16, 3:45 pm, branflake2267 branflake2...@gmail.com wrote: I wanted to suggest adding domain web master tools and analytics links to the left menu that link directly to the analytics and or tools in the

Re: [google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread Jeff Schwartz
+ 1 On Jan 16, 2011 1:04 PM, Darien Caldwell darien.caldw...@gmail.com wrote: It will be fixed when China becomes a Democracy. So you can estimate for yourself how many decades/centuries that may take. -- You received this message because you are subscribed to the Google Groups Google App

[google-appengine] GAE Domain Setup not working

2011-01-16 Thread Kevin Lippiatt
I have uploaded my app and it is working at the default app engine domain: http://capel-y-crwys.appspot.com I have set up my own domain and my own google apps account. I have setup the cname at my dns provider and set up the google apps account to work with my own domain name:

Re: [google-appengine] Re: in future, can i change my datastore to High Replication without changing appid?

2011-01-16 Thread Barry Hunter
Run the domain though a proxy. Could even do it for free with http://www.cloudflare.com/ try also http://www.maxcdn.com/ or similar cdns - basically provides proxy at lost cost. (unless you want to run your own private proxy, using a cheap vm somewhere) 2011/1/16 saintthor

Re: [google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread Iap
It would never be fixed. Don't worry, you can expect for alternative copies, like Soogle,Doogle,Fartoogle,... And those will be 100 times better than the Google (in China). 2011/1/17 Jeff Schwartz jefftschwa...@gmail.com + 1 On Jan 16, 2011 1:04 PM, Darien Caldwell darien.caldw...@gmail.com

[google-appengine] How to handle change in models

2011-01-16 Thread Zeynel
Hello, I have my model like this class Item(db.Model): title = db.StringProperty() url = db.StringProperty() date = db.DateTimeProperty(auto_now_add=True) author = db.UserProperty() but now I realized that in order to have a voting algorithm I needed to have a separate model for

Re: [google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread Will
Try reverse proxy, it works for me. China doesn't care about your site hence your IP unless it threats the communist party's reign. Good luck, Will On Mon, Jan 17, 2011 at 8:36 AM, Iap iap...@gmail.com wrote: It would never be fixed. Don't worry, you can expect for alternative copies, like

Re: [google-appengine] Re: How to launch 100K+ recurring task every 5 min

2011-01-16 Thread Nick Johnson (Google)
On Mon, Jan 17, 2011 at 3:08 AM, Eli Jones eli.jo...@gmail.com wrote: I just want to re-iterate that I still agree with myself here. Though, one issue that I can see with using asynchronous urlfetch... it will be returning results to your callback handler.. thus, I am guessing, you'll be

Re: [google-appengine] How to create blobstore entity without create_upload_url?

2011-01-16 Thread Nick Johnson (Google)
Hi Iap, Have you seen my series of blog posts about handling uploads to the blobstore? http://blog.notdot.net/tag/blobstore -Nick Johnson On Sun, Jan 16, 2011 at 11:08 PM, Iap iap...@gmail.com wrote: HI, Nick Thanks for your reply, I have fired a feature request in the tracking system.

Re: [google-appengine] Forming url with id number

2011-01-16 Thread Nick Johnson (Google)
Hi Zeynel, You might want to read my blog post about using Disqus on App Engine: http://blog.notdot.net/2009/10/Blogging-on-App-Engine-part-6-Comments-and-Search You don't need to do anything special - just create one page for each item that people can comment on, and embed the Disqus code in

Re: [google-appengine] silent-auction type application

2011-01-16 Thread Nick Johnson (Google)
This shouldn't be an issue with the sort of number of users he's talking about. We typically see tablet contention issues with sequential index writes like this in the several-hundred-QPS range, whilst Richard is talking about 30 simultaneous users, which presumably works out to a lot less than

Re: [google-appengine] Re: silent-auction type application

2011-01-16 Thread Nick Johnson (Google)
Hi Richard, On Sat, Jan 15, 2011 at 12:05 PM, Richard Arrano rickarr...@gmail.comwrote: Thanks for the response! I was thinking it over and I have a question - so if a timestamp with its monotonically increasing index causes a performance hit at a high write rate, would updating the high bid

[google-appengine] Massive datastore issues

2011-01-16 Thread David
The past week or so I have been having a lot of troubles with app engine and have been getting timeouts from what looks to be the datastore. I know there was a serious problem they supposedly corrected the other day and it looked somewhat better, but it seems to be back again. Once I start

Re: [google-appengine] Result of a query in Datastore

2011-01-16 Thread Robert Kluin
Hi William, What is GAME? You might get more responses to your question on the app-engine-java list, or maybe the GWT list? Also, I'd probably mention what you've tried, and try to ask a specific question -- maybe even include some of the code you've tried. Robert On Wed, Jan 12, 2011

Re: [google-appengine] Advice for a user-defined model

2011-01-16 Thread Robert Kluin
If you want all of the user properties searchable, your design might work just fine. You could also serialize the custom properties then store them in a TextProperty or BlobProperty, then put values needed for searching into a ListProperty (possibly on a sep model). I'd suggest trying it an

Re: [google-appengine] How to get the email address in a MailHandlerServlet

2011-01-16 Thread Robert Kluin
Hi Nacho, That looks like Java, have you tried looking at the javax.mail.internet.InternetAddress docs? http://java.sun.com/products/javamail/javadocs/javax/mail/internet/InternetAddress.html Robert On Wed, Jan 12, 2011 at 18:51, nacho vela.igna...@gmail.com wrote: I need to

Re: [google-appengine] Re: How to launch 100K+ recurring task every 5 min

2011-01-16 Thread Eli Jones
Ah, yes.. I keep forgetting that tasks can now run for 10 minutes. Much better to just have the process stay running while it waits for the fetches to return. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email

Re: [google-appengine] Re: How to launch 100K+ recurring task every 5 min

2011-01-16 Thread supercobra
An easy way to avoid this is to kick off a batch of asynchronous URLFetch requests, wait for all of them to complete, then put the results to the datastore in a single batch put. That's a good idea. Glad it is also available in Java. Daniel -- You received this message because you are

[google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread working
which app you are running? mines are fine On Jan 15, 11:53 am, GAEfan ken...@gmail.com wrote: Is there any solution to this, or is this something that Google is working on? Our most recent app has China as an important market.  Yet, it appears China is again blocking the Google IP addresses,

Re: [google-appengine] Cost of Datastore CPU usage seems high

2011-01-16 Thread Robert Kluin
Hi Donovan, On pretty simple entities I often have puts take 100 API CPU ms, or more. Your numbers work out to about 3,500,000 entities / 1,000 documents, so it sounds like you're seeing somewhere around 50ms / entity, which is pretty good. Your code looks pretty tight to me, but I've got

Re: [google-appengine] Massive datastore issues

2011-01-16 Thread Robert Kluin
Hi David, I've been seeing pretty large latency spikes in my apps' datastore ops too. It is a real frustration. My latency spikes are rather rhythmic, like every 30 or 45 minutes. Are you seeing something like that too? Perhaps you can adjust the rpc deadline and/or reduce the datastore

Re: [google-appengine] How to handle change in models

2011-01-16 Thread Robert Kluin
Hi Zeynel, How are Item and SiteUser related? Why do you want to move the author property off of the Item kind? For your use-case I would probably consider storing the author's name on Item entities -- it will make your list page faster. Robert On Sun, Jan 16, 2011 at 20:50, Zeynel

Re: [google-appengine] GAE Domain Setup not working

2011-01-16 Thread Robert Kluin
Hi Kevin, App looks the same via both URLs here. If you've recently made changes maybe you need to give them time to propagate. Otherwise it sounds like your ISP is having a DNS issue. Robert On Sun, Jan 16, 2011 at 17:31, Kevin Lippiatt kevin.lippi...@googlemail.com wrote: I have

[google-appengine] Re: Massive datastore issues

2011-01-16 Thread David
It's not totally apparent, but there does seem to be a pattern around 30 or 40 minutes, but it's still quite jagged during peak hours. I'm using java GAE btw. I don't have very many url fetches in my app, at least none on the urls I'm getting the errors on. On Jan 16, 10:26 pm, Robert Kluin

Re: [google-appengine] Re: Deal Breaker: App not visible in China

2011-01-16 Thread YF CAO
please Google add a some of new IPs for app engine. 2011/1/17 working coro...@gmail.com which app you are running? mines are fine On Jan 15, 11:53 am, GAEfan ken...@gmail.com wrote: Is there any solution to this, or is this something that Google is working on? Our most recent app