[google-appengine] Re: Mathematical calculations in query

2009-01-16 Thread arnie
I can limit records returned through query to say 15 or 20 or 25 rows but my problem is that the calculation that i needs to do on returned records needs results with distance in ascending order. It may be that in first 25 rows, there may be distances that are greater than the distances

[google-appengine] Generating cryptographically strong random numbers

2009-01-16 Thread Alexander Konovalenko
Web applications that implement user accounts need to generate unpredictable values for session cookies and anti-CSRF tokens. So several questions about App Engine arise: 1. How is os.urandom() implemented in production? That is, what entropy sources does it use? What RNG algorithm? 2. Is there

[google-appengine] Re: Google Android developer curious about app engine

2009-01-16 Thread djidjadji
If you know in advance that you only want to host static HTML content you might have a look at http://sites.google.com/ It is possible to host only static HTML in App Engine. And when you later want to add some dynamic pages, based on database content, you can add/change pages to serve this.

[google-appengine] Re: Entities question

2009-01-16 Thread Bill
You could do an entity that has 50 genre counters. Some thoughts: 1) It seems like you can make genre part of a list property in a CD since each CD will only be a small number of genres. 2) I wouldn't use a Reference List for a User entity, because a User might have thousands of CDs. See Rafe

[google-appengine] Re: Canwe share?

2009-01-16 Thread Greg
No. Probably the best solution is to set up a web service that your wsgi apps access with the urlfetch API. On Jan 15, 11:06 pm, arnie parvez...@rediffmail.com wrote: Hi all Can we share same datastore tables [2 tables with 1-to many relationships] between more than one wsgi applications on

[google-appengine] Re: Entities question

2009-01-16 Thread Chen Harel
Hi, I'm not sure I've followed you with whole Ownership model.. Isn't that a RDBMS approach to the data and not BigTable's? Regarding the genres, they are fixed (53 to be exact) and he can't select new genres that aren't in the predefined list. Regarding the counter entity, this is basically

[google-appengine] Re: ZipImport may import the library or may decide not to do so... (?!)

2009-01-16 Thread Waldemar Kornewald
Hi Moritz. On Jan 16, 3:41 am, Moritz Angermann moritz.angerm...@gmail.com wrote: zipimporter('/base/data/home/apps/journal-ma/ reflection-2.330732104263667843/libz/jinja2.zip', '') zipimporter('/base/data/home/apps/journal-ma/ reflection-2.330732104263667843/libz/werkzeug.zip', '') type

[google-appengine] Re: Looking for help to finish a new model to catch datastore timeouts

2009-01-16 Thread bowman.jos...@gmail.com
Thanks for both links. I think I need to go back over that site. That page on exceptions was much better than the book I bought. On Jan 15, 6:28 pm, Alexander Kojevnikov alexan...@kojevnikov.com wrote: Oh ok.. so it is possible to catch that. It's datastore.Timeout and not db.Timeout, right?

[google-appengine] Re: App Engine Gurus

2009-01-16 Thread bowman.jos...@gmail.com
I like it. Now lets hope people don't drive poor Alexander and Bill crazy with questions. :) On Jan 15, 7:36 pm, boson dan.kam...@gmail.com wrote: Yay!  Both Alexander Bill have been very helpful and knowledgeable. I'm glad to see the formal recognition and development of the GAE community.

[google-appengine] Is there any plan or schedule to support naked name

2009-01-16 Thread zitiger
I try to create a site similar with tinyurl.com, but i found i can not use a naked domain. If i use www.mydomain.com, it seems that is too long for me. if you are also interesting in this feather, pls vote it at http://code.google.com/p/googleappengine/issues/detail?id=777

[google-appengine] Re: App Engine Gurus

2009-01-16 Thread Qian Qiao
On Fri, Jan 16, 2009 at 04:12, Daniel O'Brien (Google) d...@google.com wrote: [snip] The newly appointed Gurus are: - Alexander Kojevnikov - Bill Katz Congratulations Alexander and Bill. Really nice to see their contributions recognized by the mass. -- Joe

[google-appengine] Re: Google Android developer curious about app engine

2009-01-16 Thread madcoder
I'm impressed with what Google has done with their sites project! It looks as though they have made site development easy, WYSIWYG-style. It seems to be perfect for what I'm looking for. A question about it though. Can I have my URL (e.g., www.example.com ) go to my Google Site? I found

[google-appengine] Re: Mathematical calculations in query

2009-01-16 Thread Barry Hunter
Which is percisely what is not supported. Imagine for a minute that the datastore supported it, it would work quite well with say 100 records. Even 1000 records might work at a push, but once you start getting to about 10,000 the datastore would almost certainly start to cry, and soon fall

[google-appengine] Re: Google Android developer curious about app engine

2009-01-16 Thread Geoffrey Spear
Yes, you just need to use Google Apps rather than signing up for a personal Sites account. On Jan 16, 10:02 am, madcoder paperga...@gmail.com wrote: I'm impressed with what Google has done with their sites project!  It looks as though they have made site development easy, WYSIWYG-style. It

[google-appengine] Setting up an Initialiser

2009-01-16 Thread eli
Hi, I cant complete something seemingly very simple. I simply want to create the following object (Auction) auction =Auction(title, desc) class Auction(db.Model): title = db.StringProperty() description = db.StringProperty() def __init__(self, title, desc): self.title

[google-appengine] Re: Data Privacy

2009-01-16 Thread Marzia Niccolai
Hi, First let me say that everyone on the App Engine team takes data privacy very seriously, and point you to Section 6 and 8 of the App Engine terms of service (http://code.google.com/appengine/terms.html) that deal explicitly with the issue of data ownership and copyright. Also, it is

[google-appengine] Re: Setting up an Initialiser

2009-01-16 Thread Qian Qiao
On Sat, Jan 17, 2009 at 00:02, eli elliott.rosent...@gmail.com wrote: Hi, I cant complete something seemingly very simple. I simply want to create the following object (Auction) auction =Auction(title, desc) class Auction(db.Model): title = db.StringProperty() description =

[google-appengine] Re: Setting up an Initialiser

2009-01-16 Thread djidjadji
If you look at the example at http://code.google.com/appengine/docs/python/gettingstarted/usingdatastore.html you see that you don't write an __init__() method if you subclass from db.Model or db.Expando. db.Model.__init__() will take care of assigning the correct attributes.

[google-appengine] Re: Setting up an Initialiser

2009-01-16 Thread Elliott Rosenthal
What about if I wish to initialise the variables inside the class with a complex calculation? The default parameter wont suffice, is there any other way? 2009/1/16 djidjadji djidja...@gmail.com: If you look at the example at

[google-appengine] Re: Setting up an Initialiser

2009-01-16 Thread Qian Qiao
On Sat, Jan 17, 2009 at 01:49, Elliott Rosenthal elliott.rosent...@gmail.com wrote: What about if I wish to initialise the variables inside the class with a complex calculation? The default parameter wont suffice, is there any other way? Define a factory method that builds the model? -- Joe

[google-appengine] Re: Setting up an Initialiser

2009-01-16 Thread Elliott Rosenthal
Thank you for the help so far, it really has been useful. If there any way you could give me a quick snippet of code to show me how to build a factory method? 2009/1/16 Qian Qiao qian.q...@gmail.com: On Sat, Jan 17, 2009 at 01:49, Elliott Rosenthal elliott.rosent...@gmail.com wrote: What

[google-appengine] Re: Setting up an Initialiser

2009-01-16 Thread Qian Qiao
On Sat, Jan 17, 2009 at 02:02, Elliott Rosenthal elliott.rosent...@gmail.com wrote: Thank you for the help so far, it really has been useful. If there any way you could give me a quick snippet of code to show me how to build a factory method? Let's say we have a model that models a circle,

[google-appengine] Re: Entities question

2009-01-16 Thread Bill
I'm not sure I've followed you with whole Ownership model.. Isn't that a RDBMS approach to the data and not BigTable's? The two approaches aren't mutually exclusive. In the case of User - CD, a User can have thousands or more CDs and a CD could be purchased by millions. Under those

[google-appengine] Re: Setting up an Initialiser

2009-01-16 Thread Elliott Rosenthal
Yes of course! :) Thank you for the help. Saved me a lot of sweat. 2009/1/16 Qian Qiao qian.q...@gmail.com: On Sat, Jan 17, 2009 at 02:02, Elliott Rosenthal elliott.rosent...@gmail.com wrote: Thank you for the help so far, it really has been useful. If there any way you could give me a

[google-appengine] Re: Setting up an Initialiser

2009-01-16 Thread Andy Freeman
class Auction(db.Model): title = db.StringProperty() description = db.StringProperty() def __init__(self, title, desc): self.title = title self.desc = desc This code is trimmed down from the full version, could you tell me if im doing anything

[google-appengine] Re: How to match in query?

2009-01-16 Thread Nick Johnson
If all you want to do is retrieve the entity with a specific key, Person.get(key) is much faster and simpler. -Nick Johnson On Jan 16, 6:24 am, Alexander Kojevnikov alexan...@kojevnikov.com wrote: I am messing with google app engine queries being very new to it how can we match a string

[google-appengine] Re: Trouble with NeedIndexError when calling count()

2009-01-16 Thread Tony Arkles
I thought I would post our findings and solution. Our issue seems slightly different. We had entities similar to the following: class Account(db.Model): ... class AccountEntry(db.Model): account = db.ReferenceProperty(Account) tags = db.StringListProperty() utime =

[google-appengine] Re: Please help me upload my app. Using authenticated proxy server. ( urllib2 doesn't support https connection ) .

2009-01-16 Thread ramu
No reply yet ... Anyway I got things working after so much searching and reading . Here is the way I upload my test app for 1st time. I am putting the same here so that if anyone else have same problems .. should get a way out. There may be other BETTER methods unknown to me but this worked .

[google-appengine] Re: Looking for help to finish a new model to catch datastore timeouts

2009-01-16 Thread Devel63
Be aware that calls to db.put() will not call your db.Model.put() override. So if you are trying to be efficient by making several puts at once via db.put([objlist]), your override will not be called. I wish I knew how to solve this, but I don't. I hope someone can tell both of us what the

[google-appengine] Re: Looking for help to finish a new model to catch datastore timeouts

2009-01-16 Thread boson
On Jan 16, 11:25 am, Devel63 danstic...@gmail.com wrote: I wish I knew how to solve this, but I don't.  I hope someone can tell both of us what the preferred method for handling a put override is. That was the subject of this still open thread:

[google-appengine] How does this CPU limit stuff really work?

2009-01-16 Thread boson
After a URL in the request log are the following fields (example): 200 1584ms 2571ms-cpu 4kb Am I correct in believing these are: HTTP response code, real time, CPU time, and response size? Now I get various orange and red warnings depending on the ms-cpu value (almost always when I create an

[google-appengine] Re: What is Data Storage Limit in GAE DataStore

2009-01-16 Thread iceanfire
According to the roadmap: http://code.google.com/appengine/docs/roadmap.html Google is coming out with : Service for storing and serving large files that might be useful to you depending on the size of the pictures you're uploading. Also, they will at some point start the billing system, which

[google-appengine] Re: Can we do it in GAE

2009-01-16 Thread iceanfire
http://groups.google.com/group/google-appengine/browse_thread/thread/b5f599a1e43c0a26/d4434084f0344550?lnk=gstq=geocoding#d4434084f0344550 On Jan 14, 1:44 am, Jonk joni.kah...@gmail.com wrote: On 14 tammi, 09:32, arnie parvez...@rediffmail.com wrote: Is it possible to convert a physical

[google-appengine] Re: Canwe share?

2009-01-16 Thread Dan Sanderson
On Thu, Jan 15, 2009 at 2:06 AM, arnie parvez...@rediffmail.com wrote: Can we share same datastore tables [2 tables with 1-to many relationships] between more than one wsgi applications on GAE? If your question is about sharing a datastore between 2 App Engine applications, such as

[google-appengine] Version 1.1.8 - January 7, 2008

2009-01-16 Thread lookon
it's cool for Get height and width of an image via the Images API. --~--~-~--~~~---~--~~ 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

[google-appengine] Re: Version 1.1.8 - January 7, 2008

2009-01-16 Thread Roberto Saccon
Great ! I observed that this needs the ANTLR parser (for some stuff related to cron ! Hopefully very soon now ...) Anyway, if you don't have it grab it at: http://www.antlr.org/wiki/display/ANTLR3/Python+runtime Roberto On Jan 16, 11:01 pm, lookon areyouloo...@gmail.com wrote: it's cool

[google-appengine] Re: How does this CPU limit stuff really work?

2009-01-16 Thread Josh Heitzman
http://code.google.com/p/googleappengine/issues/detail?id=240 is an issue related to the issue you raised in your post. On Jan 16, 1:31 pm, boson dan.kam...@gmail.com wrote: After a URL in the request log are the following fields (example): 200 1584ms 2571ms-cpu 4kb Am I correct in believing

[google-appengine] what's this quota?

2009-01-16 Thread lookon
Your application is exceeding a quota: App Config Service Config App Call Count how will I get this message? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email

[google-appengine] How to do it without using javascript?

2009-01-16 Thread arnie
Using a wsgi application and without using javascript is it possible to calculate the latitude and longitude of a physical address using Google Maps API? If yes then how? I have searched a lot but finds only javascript references. My requirement is to fetch Latitude/Longitude values when the

[google-appengine] Re: Entities question

2009-01-16 Thread Chen Harel
Bill if I use an ownership model, How do you fetch all the cds of a user? you select on Ownership, then get the tuples with user id / cd id Now you need to fetch many cd id from the CD entity.. So what's the difference? If you store them as a list of IDs in the User, you still have to go over the