[google-appengine] Re: Is licensing why PIL isn't included in the App Engine SDK? Thx!

2008-11-06 Thread pr3d4t0r
Yeah, I'm answering myself here: I believe the reason is how complicated installing PIL is. It requires native libraries, not the same libraries for every supported environment, and mile will vary regarding the package managers/installers. apt-get appears to work fine for Linux systems but OS X

[google-appengine] Re: No such file or directory

2008-11-06 Thread Chris
This seems to be a bug in app engine, with the way datastore_path is interpreted. Specifically, some code treats datastore_path as relative while other code treats it as absolute. I think this can be fixed by changing line 207 in /google/appengine/ tools/dev_appserver_main.py from: option_

[google-appengine] No such file or directory

2008-11-06 Thread Chris
I'm saving my local datastore to the same folder as my application code (instead of the default /tmp since this is periodically deleted). When I try to use the .put() method on a model object, I keep getting this error: Traceback (most recent call last): File "/home/chris/google_appengine/googl

[google-appengine] Is licensing why PIL isn't included in the App Engine SDK? Thx!

2008-11-06 Thread pr3d4t0r
Is licensing why PIL isn't included in the App Engine SDK? Thx! --~--~-~--~~~---~--~~ 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 uns

[google-appengine] Re: User login

2008-11-06 Thread jai kumar
*from google.appengine.api import** users here users is instance following some methods like * users.get_current_user() users.is_current_user_admin() * * and if my users login they need to be gmail users am i

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ian Bambury
Ross and Andy, That's really useful (and it will probably keep me quiet for a while) Thanks for taking the time to help. Cheers, Ian 2008/11/7 Andy Freeman <[EMAIL PROTECTED]>: > > class FreeCourt(db.Model): >{denormalized court info so you don't have to join to restrict > courts appro

[google-appengine] gaeutilities 1.1 (developmental) release, introducing cron/scheduled tasks

2008-11-06 Thread bowman.jos...@gmail.com
I'm pleased to announce that gaeutilities 1.1 is available. 1.1 is the developmental branch as work continues to a 2.0 release. These releases should not be considered stable, and are mainly being put out there for people who wish to try out the new functionality. 1.1 introduces a new utility, Cr

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Andy Freeman
class FreeCourt(db.Model): {denormalized court info so you don't have to join to restrict courts appropriately} start_date = db.DateProperty(required=True) free_hours = db.ListProperty(int) There can be one record per quantum, which is a day, a week, a month, or whatever is convenient

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ross Ridge
Ian Bambury wrote: > Well, that is good news. If the index is in date-time order, how does it > avoid having to scan the index for the status of the 'booked' flag? If the > index is in 'booked' flag order, how does it avoid having to scan for > date-time? Sort the index by date-time and the booke

[google-appengine] Re: You have sent too many SMS verification messages ?

2008-11-06 Thread Alexander Kojevnikov
> BTW, could you provide another method to verify? http://code.google.com/appengine/kb/sms.html#error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to g

[google-appengine] You have sent too many SMS verification messages ?

2008-11-06 Thread kongxx
I can't recieve the messages,so I tried many times.at last ,I have the messages below. "You have sent too many SMS verification messages" I am China user, and the carrier is China Mobile. please help me. thanks a lot. BTW, could you provide another method to verify? --~--~-~--~~--

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Jon Watte
Ian Bambury wrote: > I know I can reduce the number of records required by having a > hierarchical structure of months/weeks/days/hours or whatever and then > create dummy records if I need them, and write all the code to work > out that if I can get the year record and then I can get the month

[google-appengine] Re: Permanent Unique User Identifier

2008-11-06 Thread Alexander Kojevnikov
Ryan, May be I'm missing something, but why not use a UserProfile model and reference *it* instead of the User: class UserProfile(db.Model): user = db.UserProperty() ... UserProfile would use a generated integer key id, or a custom key_name (e.g. a prefixed uuid4 string). You would the

[google-appengine] Re: SDK admin console beg

2008-11-06 Thread Alexander Kojevnikov
You can hack the SDK yourself and submit the patch: http://groups.google.com/group/google-appengine/web/how-to-submit-a-patch-to-the-sdk On Nov 7, 8:54 am, Andy Freeman <[EMAIL PROTECTED]> wrote: > I "remember" that the datastore viewer, such > ashttp://localhost:8080/_ah/admin/datastore?kind=Id

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ian Bambury
2008/11/6 Jon Watte <[EMAIL PROTECTED]> > > > Wouldn't you have to use "NOT IN" to select the free spots in a regular > SQL database? You can use an outer join and select only the records which have a null in a required field > > > And when you have 10 courts, 1,000 clubs, I don't see where th

[google-appengine] Re: Concurrency Control in the datastore

2008-11-06 Thread Alexander Kojevnikov
http://code.google.com/appengine/articles/transaction_isolation.html On Nov 7, 11:38 am, DXD <[EMAIL PROTECTED]> wrote: > Hi, > > I'm a new GAE developer, and now particularly interested in > investigating the difference in concurrency control between the > datastore and a traditional RDBMS. I lo

[google-appengine] Re: memcache.get_stats() return None

2008-11-06 Thread benben
def get(self): action=getinput(self, 'action') if action=='del': memcache.flush_all() template_value={'cache':memcache.get_stats()} self.render('views/admin/cache.html', template_value) Now ,flush_all() and get_stats() do not work.I want to clear ca

[google-appengine] Concurrency Control in the datastore

2008-11-06 Thread DXD
Hi, I'm a new GAE developer, and now particularly interested in investigating the difference in concurrency control between the datastore and a traditional RDBMS. I looked at Ryan Barrett's presentation about the datastore in the Google IO sessions (http:// sites.google.com/site/io/under-the-cove

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Jon Watte
Wouldn't you have to use "NOT IN" to select the free spots in a regular SQL database? And when you have 10 courts, 1,000 clubs, I don't see where the "10" records are coming from -- assuming the booking percentage is at least 50%, then you'd have to consider 5,000 records even in the SQL case

[google-appengine] Re: urlfetch ResponseTooLargeError - what is the limit?

2008-11-06 Thread Barry Hunter
python variables are limited to 1Mb anyway, so the urlfetch wouldnt be able to return bigger files. AppEngine isnt designed for doing any sort of heavy lifting - bear in mind requests shouldnt generally take over 100-200ms otherwise risk been cutoff. On Thu, Nov 6, 2008 at 8:57 PM, russ.au <[EMA

[google-appengine] Re: Are Text and Blob model properties lazily loaded?

2008-11-06 Thread ryan
good question! currently, no, they're not lazy loaded. queries and gets fetch entire entities with all property values, including blob and text properties. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ian Bambury
Hi Jon, Partly it's 'old school' thinking, I admit. But partly it's that 10 positive records (actual bookings) just has to be quicker to check than a billion negative (no booking) records and yes, you have indexes, but however great your indexing, you still have to maintain or rebuild your indexes,

[google-appengine] profiling vs. dashboard

2008-11-06 Thread tigrillo
Hello; I am optimizing my app, I would like to know how to compare "Avg CPU" (dashboard) against "CPU seconds". Megacicles can be compared against seconds? Thank's --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "G

[google-appengine] SDK admin console beg

2008-11-06 Thread Andy Freeman
I "remember" that the datastore viewer, such as http://localhost:8080/_ah/admin/datastore?kind=Identity , had a way to look at entities so the db.ReferenceProperty s values were clickable links to view the relevant entity. I can't find that now. When I click "list entities", I get a list of clic

[google-appengine] urlfetch ResponseTooLargeError - what is the limit?

2008-11-06 Thread russ.au
I'm attempting to write an app to 'manipulate' podcast MP3s. I'm getting an exception ResponseTooLargeError trying to grab the podcast. If I turn on allow_truncated - len(result.content) gives 1048576. Sounds like the limit is 1 meg - i don't find this documented anywhere. Is this a hard limit

[google-appengine] Re: Permanent Unique User Identifier

2008-11-06 Thread Wooble
On Nov 6, 3:12 pm, Ryan Lamansky <[EMAIL PROTECTED]> wrote: > yejun: I want to use Google's authentication system, not make my own. > > Mike Wesner: Your solution fails if the user changes their email > address.  Read my whole post.  If, following your design, the user > changes their email addr

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Jon Watte
Ian Bambury wrote: > But really the question is a more general one of how do you approach > this scenario with an open-ended number of clubs? In a normal > relational database, you could hold just the booked slots and with one > SQL request, get the top 20 available courts by time, distance or

[google-appengine] Re: Getting total count from datastore

2008-11-06 Thread monmonja
Thanks for your input, i already warn people going to the post to use shared counters. Btw do you have a simple example of it, and what if i want to count based on a query, say all blog post within july, how can i count it so that it could scale? Tnx again On Nov 4, 2:41 am, Dan Sanderson <[EMAIL

[google-appengine] Re: Permanent Unique User Identifier

2008-11-06 Thread Ryan Lamansky
yejun: I want to use Google's authentication system, not make my own. Mike Wesner: Your solution fails if the user changes their email address. Read my whole post. If, following your design, the user changes their email address, it'll look like a new user with a new key and everything... causin

[google-appengine] Integrated Google login pane/widget

2008-11-06 Thread Taylor Hughes
Hi, I've done some searching but haven't really found an answer to this question. Please let me know if there is an existing discussion to this end elsewhere. I'm wondering if there is a way to get a Google login pane/widget integrated into my GAE app's home page, rather than forcing a redirect t

[google-appengine] Re: Google Account disabling and potential impact on App Engine apps

2008-11-06 Thread Marzia Niccolai
Hi Bill, If for some reason a Google Account is no longer active, this would not bring down your App Engine app. This would only affect that account's ability to access the Admin Console for that application, since the Admin Console uses Google Accounts for authentication. Having more than one G

[google-appengine] Re: How to set a property is unique key in app engine?

2008-11-06 Thread ryan
thanks for the discussion, all! just fyi, i'm going to respond on the issue: http://code.google.com/p/googleappengine/issues/detail?id=178 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ian Bambury
Thanks Andy, Ian http://examples.roughian.com 2008/11/6 Andy Freeman <[EMAIL PROTECTED]> > > On Nov 6, 7:48 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > > Well, that is good news. If the index is in date-time order, how does it > > avoid having to scan the index for the status of the 'booked'

[google-appengine] Re: How to set a property is unique key in app engine?

2008-11-06 Thread Andy Freeman
On Nov 6, 9:39 am, yejun <[EMAIL PROTECTED]> wrote: > On Nov 6, 12:13 pm, Andy Freeman <[EMAIL PROTECTED]> wrote: > > > Can't this be done with a carefully constructed key_name? > > There's a couple differences. > Unique key means throw exception on duplication. Save duplicated > key_name will cau

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Andy Freeman
On Nov 6, 7:48 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > Well, that is good news. If the index is in date-time order, how does it > avoid having to scan the index for the status of the 'booked' flag? If the > index is in 'booked' flag order, how does it avoid having to scan for > date-time?

[google-appengine] Re: Django Forms - Can I set a key_name?

2008-11-06 Thread tcs 241
Yes. You can. I did this way in django poll GAE port. check out my old post http://chefsoup.blogspot.com/2008/08/django-tutorial-polls-sample-app-google.html On Nov 6, 8:58 am, Savraj <[EMAIL PROTECTED]> wrote: > Hey folks. I love app engine! > > Quick question -- I am using Django Forms to cre

[google-appengine] Re: DataStore examples, reference, tutorial

2008-11-06 Thread Ian Bambury
Ian http://examples.roughian.com 2008/11/6 Andy Freeman <[EMAIL PROTECTED]> > > On Nov 5, 8:47 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > > > > If the last rental was yesterday, how does that help me work out if > it > > > was > > > > rented in 2007? Or October to October. > > > > > Keep tw

[google-appengine] Re: Join us for App Engine Chat Time

2008-11-06 Thread Marzia Niccolai
Chat log will be forthcoming. -Marzia On Thu, Nov 6, 2008 at 7:42 AM, Sylvain <[EMAIL PROTECTED]> wrote: > > Is there any chat log ? > > On 5 nov, 17:37, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > > Just a reminder that the next App Engine chat time is this evening (for > us > > at least!) fro

[google-appengine] Re: How to set a property is unique key in app engine?

2008-11-06 Thread yejun
On Nov 6, 12:13 pm, Andy Freeman <[EMAIL PROTECTED]> wrote: > Can't this be done with a carefully constructed key_name? > There's a couple differences. Unique key means throw exception on duplication. Save duplicated key_name will cause overwritten. You have to use get_or_insert to test uniquenes

[google-appengine] Re: Dashboard lists URIs which shouldn't be served..?

2008-11-06 Thread Barry Hunter
If they are on the AppEngine logs then a browser must of requested them. I suggest trying your site via Fiddler, or similar - basically something that allows you to observe http traffic from the browser. On Thu, Nov 6, 2008 at 5:04 PM, jago <[EMAIL PROTECTED]> wrote: > > Hi, > > I run an my litt

[google-appengine] More CDN Posts

2008-11-06 Thread Stephan Pötschner
Hi. Just wanted to hint to some other articles suggesting to use Google App Engine as CDN: http://www.coderjournal.com/tags/google-app-engine/ http://www.ipsojobs.com/blog/2008/06/17/how-to-create-a-simple-but-powerful-cdn-with-google-app-engine-gae/ http://der-entreprenerd.blogspot.com/2008/11/

[google-appengine] Web Service authentication in App engine

2008-11-06 Thread OI2engine
Hi, I am developing an iphone app which is supposed to talk to a web service hosted on app engine.How can i expose a web service which uses google authentication. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[google-appengine] Business partner wanted

2008-11-06 Thread rp72
I am looking for business partner to exploit new ideas on Google App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroup

[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-11-06 Thread hawkett
I would like to echo Aral's post. Language wars generate noise, not analysis. It's no surprise that the top four issues *by a mile* are just adding language ABC. It is depressing that people are working on that at the expense of other things. Admittedly, I am assuming that providing a complet

[google-appengine] Re: How to set a property is unique key in app engine?

2008-11-06 Thread Andy Freeman
Can't this be done with a carefully constructed key_name? On Nov 6, 2:25 am, dobee <[EMAIL PROTECTED]> wrote: > On Nov 6, 10:37 am, mawei1981 <[EMAIL PROTECTED]> wrote: > > > Hi, All > > > As we know, the database provide a unique key not a primary key to > > support we store some content we do

[google-appengine] Re: Home grown User API

2008-11-06 Thread Waldemar Kornewald
Why don't you just use Django? It comes with session and auth support. Combine this with app-engine-patch and port django-registration, for example, and you're done. Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed

[google-appengine] Dashboard lists URIs which shouldn't be served..?

2008-11-06 Thread jago
Hi, I run an my little test appengine project. There I have a Html page hosted with an Applet embedded. However the actual Applet jar is hosted somewhere else. If the user's browser fetches that HTML page the Applet jar is loaded from an external place, so files inside the Applet-jar should not

[google-appengine] Re: Google App Engine Roadmap - Now Published

2008-11-06 Thread Dado
Ciao Marzia - I forgot to ask you this question yesterday during the "Chat with the GAE team" session (which, by the way, I think is a great idea). Will the "service for storing and serving large files" be something like S3, totally separate from the datastore, or would it be in the form of a ne

[google-appengine] App Engine talk at Stanford (Yesterday)

2008-11-06 Thread Andy Freeman
http://www.stanford.edu/class/ee380/Abstracts/081105.html http://stanford-online.stanford.edu/courses/ee380/081105-ee380-300.asx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to t

[google-appengine] Re: DataStore examples, reference, tutorial

2008-11-06 Thread Andy Freeman
On Nov 5, 8:47 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > > > If the last rental was yesterday, how does that help me work out if it > > was > > > rented in 2007? Or October to October. > > > Keep two dates, or run the query two days ago. > > That doesn't make sense - two dates don't help, Th

[google-appengine] Django Forms - Can I set a key_name?

2008-11-06 Thread Savraj
Hey folks. I love app engine! Quick question -- I am using Django Forms to create an entity, as explained here: http://code.google.com/appengine/articles/djangoforms.html Can I set this new entity's key_name? It's not clear from the documentation. I want to set the key name so I can quickly l

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ian Bambury
How does that help the 1000-record limit? Do you mean get the nearby clubs and just do all the rest manually? Ian http://examples.roughian.com 2008/11/6 yejun <[EMAIL PROTECTED]> > > In practical, you only need to search a few club geographically close > to each other. So an brutual force scan

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread yejun
Get all relevant book from those clubs. 1000 record limit only apply a single query result. You can always add more query condition to reduce the query result set less than 1000. Such as subdividing court to different type, book to morning/evening. clubs to womans/mans. Or even insert a random num

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ian Bambury
2008/11/6 Ross Ridge <[EMAIL PROTECTED]> > > Ian Bambury wrote: > > Well, 1000 clubs with 10 courts and 24/365 and one booking means 1 > booking > > record in a traditional SQL database. It's hard to see how this is really > > horribly-inefficient when compared to checking 100 million records to >

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread yejun
In practical, you only need to search a few club geographically close to each other. So an brutual force scan is the simplest way. A query cross global seems pretty meaningless beyond statistical reasons. On Nov 6, 8:14 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > 2008/11/6 powera <[EMAIL PROTE

[google-appengine] Re: Join us for App Engine Chat Time

2008-11-06 Thread Sylvain
Is there any chat log ? On 5 nov, 17:37, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Just a reminder that the next App Engine chat time is this evening (for us > at least!) from 7-8PM PST. > > Hope to see you there! > > On Mon, Oct 20, 2008 at 10:23 PM, Marce <[EMAIL PROTECTED]> wrote: > > > Hi,

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ross Ridge
Ian Bambury wrote: > Well, 1000 clubs with 10 courts and 24/365 and one booking means 1 booking > record in a traditional SQL database. It's hard to see how this is really > horribly-inefficient when compared to checking 100 million records to find > the one used booking if I do it the way some pe

[google-appengine] Re: GAE vs. EC2

2008-11-06 Thread sal
On Nov 6, 7:30 am, bFlood <[EMAIL PROTECTED]> wrote: > andrew - that is quick but I don't see it as quick as GAE spawning a > new request handler (~1 second) on a machine somewhere in their > cluster. I guess it's just a different model, autoscaling at the > request level vs. the machine level.

[google-appengine] Re: GAE vs. EC2

2008-11-06 Thread sal
On Nov 6, 4:42 am, Greg <[EMAIL PROTECTED]> wrote: > > You have to trust the Google admins with your data and code also. At > > least with EC2 you have direct access and create an encrypted > > filesystem / etc.  That even the admins wouldn't be able to 'poke > > around' into.  So I don't buy the

[google-appengine] Re: Unable to send mails from application

2008-11-06 Thread Satya Prakash Prasad
Thanks for the confirmation. The issue I am facing is that after uploading the code to appspot.com the landing page, is the general warning message page in IE. I have no logs to confirm what the issue is but in localhost at least it does not end throwing issues. If I remove this code and try

[google-appengine] Re: How to set a property is unique key in app engine?

2008-11-06 Thread mawei1981
thanks On Nov 6, 6:25 pm, dobee <[EMAIL PROTECTED]> wrote: > On Nov 6, 10:37 am, mawei1981 <[EMAIL PROTECTED]> wrote: > > > Hi, All > > > As we know, the database provide a unique key not a primary key to > > support we store some content we do not like redundant, we query some > > content use di

[google-appengine] Re: Who can tell me app engine does support Thread?

2008-11-06 Thread mawei1981
thanks that's I thought so On Nov 6, 7:41 pm, Alexander Kojevnikov <[EMAIL PROTECTED]> wrote: > "An App Engine application cannot... spawn a sub-process or thread. A > web request to an application must be handled in a single process > within a few seconds. Processes that take a very long time t

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ian Bambury
2008/11/6 powera <[EMAIL PROTECTED]> > > Can't you create an index on a "Bookings" entity based on time, so you > can do a query "SELECT * FROM Bookings WHERE time = 1PM" ? If you can > keep the list of courts in memcache, it should be easy to compare this > list to the list of courts to find ope

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread Ian Bambury
> > > SQL databases are great at hiding really horribly-inefficient queries. That's fine with me. I don't mind them being hidden if the alternative is that I have to write my own even more really horribly-inefficient code to get things done > > What "scalable" means is often hard to see on a tr

[google-appengine] Re: memcache.get_stats() return None

2008-11-06 Thread Sylvain
And the examples may crash. I think get_stats should always returns a dict and not None. Easier to handle. On 6 nov, 12:14, Alexander Kojevnikov <[EMAIL PROTECTED]> wrote: > As far as I understand from their explanation, the function returns > None if there's no statistics available. That sounds

[google-appengine] Re: Home grown User API

2008-11-06 Thread CP
Great feedback and advice Greg - thank you. I made some progress last night and will take your suggestions on board. My approach so far is to let the user input a desired username, password along with an email address. I create an unguessable UUID and store everything in the database. I also sen

[google-appengine] Re: Home grown User API

2008-11-06 Thread CP
> You can use > django.contrib.auth:http://groups.google.com/group/google-appengine/browse_thread/thread/... Thank you - I'll take a look at that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine"

[google-appengine] Re: GAE vs. EC2

2008-11-06 Thread bFlood
hi all andrew - that is quick but I don't see it as quick as GAE spawning a new request handler (~1 second) on a machine somewhere in their cluster. I guess it's just a different model, autoscaling at the request level vs. the machine level. EBS - I recognize that NFS (or something similar) woul

[google-appengine] Re: memcache.get_stats() return None

2008-11-06 Thread Alexander Kojevnikov
Statistics are not necessarily up to date: http://groups.google.com/group/google-appengine/browse_thread/thread/7eaf6cd6347cfa1f/3ed6724d3e6b73b4 On Nov 6, 10:30 pm, benben <[EMAIL PROTECTED]> wrote: > I am sure there are lots of data in cache. I have checked my log > finding memcache works we

[google-appengine] Re: Who can tell me app engine does support Thread?

2008-11-06 Thread Alexander Kojevnikov
"An App Engine application cannot... spawn a sub-process or thread. A web request to an application must be handled in a single process within a few seconds. Processes that take a very long time to respond are terminated to avoid overloading the web server." http://code.google.com/appengine/docs/p

[google-appengine] Re: memcache.get_stats() return None

2008-11-06 Thread benben
I am sure there are lots of data in cache. I have checked my log finding memcache works well. As this reason,flush_all() function can not work now . On 11月6日, 下午7时14分, Alexander Kojevnikov <[EMAIL PROTECTED]> wrote: > As far as I understand from their explanation, the function returns > None i

[google-appengine] Re: memcache.get_stats() return None

2008-11-06 Thread Alexander Kojevnikov
As far as I understand from their explanation, the function returns None if there's no statistics available. That sounds reasonable, but they definitely need to update the docs to reflect it: http://code.google.com/appengine/docs/memcache/functions.html On Nov 6, 6:05 pm, Sylvain <[EMAIL PROTECTE

[google-appengine] indexes for "and" queries

2008-11-06 Thread dobee
if i do this to find any entities that match house and dog i do Searchable.all().filter('content_type =', 'something').filter('words =', 'house').filter('words =', 'dog'). order('c_time') is it right that i need an index for every number of words? so if i want to support searches for "cats dogs

[google-appengine] Re: How to set a property is unique key in app engine?

2008-11-06 Thread dobee
On Nov 6, 10:37 am, mawei1981 <[EMAIL PROTECTED]> wrote: > Hi, All > > As we know, the database provide a unique key not a primary key to > support we store some content we do not like redundant, we query some > content use distinct because we do not want to see redundant record. > > So, when I

[google-appengine] Who can tell me app engine does support Thread?

2008-11-06 Thread mawei1981
Hi, All I write a simple code to test thread , app engine could no be run it. who can tell me. who run thread class success ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to

[google-appengine] Re: GAE vs. EC2

2008-11-06 Thread Greg
On Nov 5, 9:25 am, sal <[EMAIL PROTECTED]> wrote: > On Nov 4, 3:08 pm, yejun <[EMAIL PROTECTED]> wrote: > > > On EC2 you can make your own image, but that's not the point. I > > believe no one in their right mind would use a public image for their > > production system, it is just not safe by an

[google-appengine] How to set a property is unique key in app engine?

2008-11-06 Thread mawei1981
Hi, All As we know, the database provide a unique key not a primary key to support we store some content we do not like redundant, we query some content use distinct because we do not want to see redundant record. So, when I store some url or email address in my spider(written under app engine),

[google-appengine] Re: Home grown User API

2008-11-06 Thread Greg
I built my own authentication system on top of gmemsess, a memchache- backed session object. It's not entirely easy - there are a lot of things you have to get right to make it is secure. Unfortunately my code isn't modular enough to publish, but here are a few pointers... - Store a hash of the p

[google-appengine] Are Text and Blob model properties lazily loaded?

2008-11-06 Thread Dado
Are Text and Blob model properties lazily loaded? Id est, when I query for 100 entities each containing ~1MB worth of data in a blob property, am I moving 100MB of data across google's wires? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[google-appengine] Are Text and Blob model properties lazily loaded?

2008-11-06 Thread Dado
Are Text and Blob model properties lazily loaded? Id est, when I query for hundreds of entities each containing ~1MB worth of data in a blob property, am I moving 100MB of data across google's wires? --~--~-~--~~~---~--~~ You received this message because you are su

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread powera
Can't you create an index on a "Bookings" entity based on time, so you can do a query "SELECT * FROM Bookings WHERE time = 1PM" ? If you can keep the list of courts in memcache, it should be easy to compare this list to the list of courts to find open listings at any given time. With an index, yo

[google-appengine] Re: Entites which must not exist

2008-11-06 Thread David Symonds
On Wed, Nov 5, 2008 at 8:20 PM, Ian Bambury <[EMAIL PROTECTED]> wrote: > But really the question is a more general one of how do you approach this > scenario with an open-ended number of clubs? In a normal relational > database, you could hold just the booked slots and with one SQL request, get >