[google-appengine] Re: Transaction isolation implications for PKs
Thanks Ryan, that settles it :) Perhaps this should be explicitly stated in the article/docs. Viktor On Nov 26, 11:40 pm, ryan <[EMAIL PROTECTED]> wrote: > hi viktor! that's a common misconception that people have after > reading that article. queries and get()s *after* a put() are always > consistent. this is why we say that the datastore is strongly > consistent. within the same request, once a put() returns > successfully, all subsequent get()s and queries will be fully > consistent and include the entity (or entities) that were put(). > > to answer your question more directly, get() does not use an index. > it's a direct lookup by primary key. the inconsistencies discussed in > that article are limited to queries, not get()s, and can only happen > when one request does a put() and another concurrent request runs a > query. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: New Article on How Index Building Works
re On Thu, Nov 27, 2008 at 1:18 AM, Ben Nevile <[EMAIL PROTECTED]> wrote: > > Great article, thanks GAE team! > > > > On Nov 25, 1:30 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > > Hi, > > > > There have been a lot of questions on this group about index building and > > Ryan Barrett, the tech lead for the datastore, took some time to write an > > article on how index building works: > http://code.google.com/appengine/articles/index_building.html > > > > The article describes what happens when you upload new index definitions > for > > your application. It's definitely a worthwhile read if you would like > more > > information on how indexes are built to serve queries with App Engine. > > > > -Marzia > > > -- Stay hungry,Stay foolish. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: How to open .html in .py file?
Hi Wen Long, On Nov 26, 12:27 pm, wenlong <[EMAIL PROTECTED]> wrote: > and I must create a new folder named "static" and put all these htm > files in this folder? No, you don't have to do this, but you *can* do this. The code I gave you is one example of how to do it. The point is that app.yaml allows you to decide how your application will work. You decide which of your files are static, and which files are dynamic. Here's another way of doing it that should let you display your index.html file in your browser (caveat: I did not check to see if this code runs): - url: /(.*\.(html|htm)) static_files: \1 upload: (.*\.(html|htm)) I hope that helps, --Jonathan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: New app for finding wallpaper images - feedback welcome :)
Oh dear - how very embarrassing! My apologies!!! That would be a copy/ paste error http://feeling-lucky.appspot.com/ On Nov 26, 5:36 pm, "Stephen Judd" <[EMAIL PROTECTED]> wrote: > It's impossible for anyone to browse your localhost url. > > On Wed, Nov 26, 2008 at 8:25 AM, Bonstio <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > My first post here.. > > > I'd be grateful if you could offer any feedback you might have on my > > first App Engine app. I've never written Python before so it's been > > interesting learning it. > > >http://localhost:8080/?size=o > > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: New Article on How Index Building Works
On Wed, Nov 26, 2008 at 5:30 AM, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > There have been a lot of questions on this group about index building and > Ryan Barrett, the tech lead for the datastore, took some time to write an > article on how index building works: > http://code.google.com/appengine/articles/index_building.html > > The article describes what happens when you upload new index definitions for > your application. It's definitely a worthwhile read if you would like more > information on how indexes are built to serve queries with App Engine. > > -Marzia > Really appreciate your hard work. :-) -- Best Regards, TANG Jiyu (Blog: http://jiyu.wordpress.com.cn) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: New app for finding wallpaper images - feedback welcome :)
Cool app Bonstio - my quick suggestion would be to re-organize the page so that the image is at the top rather than below your explanatory paragraph. I have to scroll down to see it on my small laptop screen (1280x800). Ben On Nov 27, 2:07 am, Bonstio <[EMAIL PROTECTED]> wrote: > Oh dear - how very embarrassing! My apologies!!! That would be a copy/ > paste error > > http://feeling-lucky.appspot.com/ > > On Nov 26, 5:36 pm, "Stephen Judd" <[EMAIL PROTECTED]> wrote: > > > It's impossible for anyone to browse your localhost url. > > > On Wed, Nov 26, 2008 at 8:25 AM, Bonstio <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > My first post here.. > > > > I'd be grateful if you could offer any feedback you might have on my > > > first App Engine app. I've never written Python before so it's been > > > interesting learning it. > > > >http://localhost:8080/?size=o > > > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: New app for finding wallpaper images - feedback welcome :)
Thanks, Ben. Some useful feedback too. I'm rewriting the front end now and will no doubt be adding features too :) Thanks again! On Nov 27, 4:18 pm, Ben Nevile <[EMAIL PROTECTED]> wrote: > Cool app Bonstio - my quick suggestion would be to re-organize the > page so that the image is at the top rather than below your > explanatory paragraph. I have to scroll down to see it on my small > laptop screen (1280x800). > > Ben > > On Nov 27, 2:07 am, Bonstio <[EMAIL PROTECTED]> wrote: > > > Oh dear - how very embarrassing! My apologies!!! That would be a copy/ > > paste error > > > http://feeling-lucky.appspot.com/ > > > On Nov 26, 5:36 pm, "Stephen Judd" <[EMAIL PROTECTED]> wrote: > > > > It's impossible for anyone to browse your localhost url. > > > > On Wed, Nov 26, 2008 at 8:25 AM, Bonstio <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > > > My first post here.. > > > > > I'd be grateful if you could offer any feedback you might have on my > > > > first App Engine app. I've never written Python before so it's been > > > > interesting learning it. > > > > >http://localhost:8080/?size=o > > > > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: __searchable_text_index gets added multiple times
It also happen when ordering by some other attribute; it will be posible to avoid the need of that indexes in next versions of GAE? On 19 nov, 14:10, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > This is expected behavior. When adding the filter, a composite index is > created for the query. The composite index lists one > __searchable_text_index for the number of terms in your search query. > > -Marzia > > On Wed, Nov 19, 2008 at 7:51 AM, ravindra <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have created class Record as follows : > > > class Record(search.SearchableModel): > > exp_year = db.IntegerProperty() > > keywords = db.StringProperty(multiline=True) > > > now when i am running the following query in dev version : > > query = Record.all().search("first second third fourth" ) > > > then index file gets updated as single entry for > > __searchable_text_index > > - kind: Record > > properties: > > - name: __searchable_text_index > > - name: exp_year > > > if i modify the query to this (added the filter clause) > > query = Record.all().search("first second third" ).filter("exp_year >", > > 1) > > > the index file get updated with multiple entries for > > __searchable_text_index > > - kind: Record > > properties: > > - name: __searchable_text_index > > - name: __searchable_text_index > > - name: __searchable_text_index > > - name: exp_year > > > The number of entries for __searchable_text_index then directly > > depends on the number of keywords searched for. > > But in earlier query (ie without filter) it does not depend on the > > number of keywords. > > Am I putting query wrong somewhere ? or is it expected behaviour ? > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Wrong Ordering Of Query!
I've had the same code for some time and it has always worked fine but now a query which should return a list of users sorted by their last activity has mistakes in it. My code to list the users is: query = User.all() query.order('-lastactivity') ... vals['users'] = query[:20] The trouble is that sometimes the users order is mixed. It should be like: User | Last Activity A | 1 minute ago B | 2 minute ago C | 3 minute ago ... But it is: User | Last Activity B | 2 minute ago A | 1 minute ago C | 3 minute ago ... Scanning the relevant datastore API docs hasn't yielded any insight into what is going on! It seems quite like to me that this is a bug on Google's side rather than in my code. Does anyone have any ideas about possible mistakes I could have made? Or should I contact Google about this? Thanks, Larry And here is my full handler: >session = Session() > >query = User.all() >query.order('-lastactivity') > >vals = {} >vals['user'] = session.user >vals['users'] = query[:20] > >self.response.out.write(templ.render(Context(vals))) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: create an image-processing website with GAE?
Had a look at the site, seems cool, But I would imagine the Image API's crop util just wont cut it if you want to process the images to such an extend. Maybe hard to find an image manipulator in pure python. Good Luck with the hunt.. Do let us know how it went.. On Nov 27, 12:17 am, "James Yan" <[EMAIL PROTECTED]> wrote: > hey Wooble, > > thanks for your comments, i will take a round to EC2, see if it will be > helpful. > except EC2 or GAE, do you think how this "image-processing" site > works:http://www.photofunia.com/ > > thanks. > > On Wed, Nov 26, 2008 at 11:20 PM, Wooble <[EMAIL PROTECTED]> wrote: > > > On Nov 25, 9:35 pm, "James Yan" <[EMAIL PROTECTED]> wrote: > > > nobody have a talk about this? :-) > > > You can use any pure python modules. If someone's written a pure > > python image processing library, you're in luck. I haven't searched > > for one, but it seems unlikely one exists. otherwise, you're pretty > > much limited to App Engine's builtin images API (http:// > > code.google.com/appengine/docs/images/) which seems unlikely to meet > > your needs. > > > This is almost certainly the sort of app that (if you really want to > > use App Engine at all) would work with an appengine front end and > > background processing using EC2 or something similar. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: create an image-processing website with GAE?
Hello, I agree GAE is usefull to store and search a big number of light entities (ids of pictures)... but dont use GAE to process pictures, it will die; the advice is to use java (as applets) or javascript to process information in the client (not server), (as facebook use an applet to resize pictures before upload, or I guess http://www.photofunia.com/ do so). On 24 nov, 22:02, "James Yan" <[EMAIL PROTECTED]> wrote: > hey, > > recently, i search ideas for deploying my image processing application in an > online-website way.which means, users do need download my image processing > software, just visiting a website, then may submit their own input image and > get the resulted one from webserver, > > i konw GAE python script could handle most things, like allow user to submit > images and more, but what am i worry about is the server's CPU usage and > images storing, not like just send back a text message stored in GAE > datastore, but do some advanced and cpu-costing image processing on the > user-submited images(fox exmaple, performance face detecting on an image). > > so, my question is: is that possible to make a such website with GAE? any > frameworks available? or even some exmaples would be better. > > thanks all. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: create an image-processing website with GAE?
mm, looking at the code in http://www.photofunia.com/, we see that the picture is send via POST, so; the client do not process the picture, some server process it. On 27 nov, 15:38, tigrillo <[EMAIL PROTECTED]> wrote: > Hello, I agree GAE is usefull to store and search a big number of > light entities (ids of pictures)... but dont use GAE to process > pictures, it will die; the advice is to use java (as applets) or > javascript to process information in the client (not server), (as > facebook use an applet to resize pictures before upload, or I > guesshttp://www.photofunia.com/do so). > > On 24 nov, 22:02, "James Yan" <[EMAIL PROTECTED]> wrote: > > > hey, > > > recently, i search ideas for deploying my image processing application in an > > online-website way.which means, users do need download my image processing > > software, just visiting a website, then may submit their own input image and > > get the resulted one from webserver, > > > i konw GAE python script could handle most things, like allow user to submit > > images and more, but what am i worry about is the server's CPU usage and > > images storing, not like just send back a text message stored in GAE > > datastore, but do some advanced and cpu-costing image processing on the > > user-submited images(fox exmaple, performance face detecting on an image). > > > so, my question is: is that possible to make a such website with GAE? any > > frameworks available? or even some exmaples would be better. > > > thanks all. > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Wrong Ordering Of Query!
Well magically it has stopped happening without any code changes... I'm still very interested in peoples' thought on the matter! It was happening on my users' page: http://silicon.appspot.com/users. Thanks, Larry On Nov 27, 6:31 pm, Larry <[EMAIL PROTECTED]> wrote: > I've had the same code for some time and it has always worked fine but > now a query which should return a list of users sorted by their last > activity has mistakes in it. My code to list the users is: > > query = User.all() > query.order('-lastactivity') > ... > vals['users'] = query[:20] > > The trouble is that sometimes the users order is mixed. It should be > like: > > User | Last Activity > A | 1 minute ago > B | 2 minute ago > C | 3 minute ago > ... > > But it is: > > User | Last Activity > B | 2 minute ago > A | 1 minute ago > C | 3 minute ago > ... > > Scanning the relevant datastore API docs hasn't yielded any insight > into what is going on! It seems quite like to me that this is a bug on > Google's side rather than in my code. > > Does anyone have any ideas about possible mistakes I could have made? > Or should I contact Google about this? > > Thanks, > Larry > > And here is my full handler: > > >session = Session() > > >query = User.all() > >query.order('-lastactivity') > > >vals = {} > >vals['user'] = session.user > >vals['users'] = query[:20] > > >self.response.out.write(templ.render(Context(vals))) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Wrong Ordering Of Query!
On Nov 27, 6:31 pm, Larry <[EMAIL PROTECTED]> wrote: > Scanning the relevant datastore API docs hasn't yielded any insight > into what is going on! It seems quite like to me that this is a bug on > Google's side rather than in my code. > There was a document somewhere, but I can't remember offhand exactly where which explains some of the aspects of how the system works. In particular it points out that it can take some time between the data being updated and the index being updated. So for your example if the index records the last access order as B, A, C but A has just hit the system you could get the sort of result you describe where a recent access occurs somewhere further down the list. So not a bug on Google's side, rather a fundamental restriction of the system that you hadn't fully realised. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: New app for finding wallpaper images - feedback welcome :)
support...and this site's css design need to be better On Fri, Nov 28, 2008 at 12:18 AM, Ben Nevile <[EMAIL PROTECTED]> wrote: > > Cool app Bonstio - my quick suggestion would be to re-organize the > page so that the image is at the top rather than below your > explanatory paragraph. I have to scroll down to see it on my small > laptop screen (1280x800). > > Ben > > > > On Nov 27, 2:07 am, Bonstio <[EMAIL PROTECTED]> wrote: > > Oh dear - how very embarrassing! My apologies!!! That would be a copy/ > > paste error > > > >http://feeling-lucky.appspot.com/ > > > > On Nov 26, 5:36 pm, "Stephen Judd" <[EMAIL PROTECTED]> wrote: > > > > > It's impossible for anyone to browse your localhost url. > > > > > On Wed, Nov 26, 2008 at 8:25 AM, Bonstio <[EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > > > My first post here.. > > > > > > I'd be grateful if you could offer any feedback you might have on my > > > > first App Engine app. I've never written Python before so it's been > > > > interesting learning it. > > > > > >http://localhost:8080/?size=o > > > > > > Thanks! > > > -- Stay hungry,Stay foolish. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: create an image-processing website with GAE?
i think the image processing module should handled in server side with some c-wrote lib, the server script( like asp/jsp/python, etc) handle the user submited images or other interactive data, and call the c-wrote lib on the server side, then return the resulted image on the feedback page. i think it should work in this way. On Fri, Nov 28, 2008 at 4:54 AM, tigrillo < [EMAIL PROTECTED]> wrote: > > mm, looking at the code in http://www.photofunia.com/, we see that the > picture is send via POST, so; the client do not process the picture, > some server process it. > > On 27 nov, 15:38, tigrillo <[EMAIL PROTECTED]> > wrote: > > Hello, I agree GAE is usefull to store and search a big number of > > light entities (ids of pictures)... but dont use GAE to process > > pictures, it will die; the advice is to use java (as applets) or > > javascript to process information in the client (not server), (as > > facebook use an applet to resize pictures before upload, or I > guesshttp://www.photofunia.com/do so). > > > > On 24 nov, 22:02, "James Yan" <[EMAIL PROTECTED]> wrote: > > > > > hey, > > > > > recently, i search ideas for deploying my image processing application > in an > > > online-website way.which means, users do need download my image > processing > > > software, just visiting a website, then may submit their own input > image and > > > get the resulted one from webserver, > > > > > i konw GAE python script could handle most things, like allow user to > submit > > > images and more, but what am i worry about is the server's CPU usage > and > > > images storing, not like just send back a text message stored in GAE > > > datastore, but do some advanced and cpu-costing image processing on the > > > user-submited images(fox exmaple, performance face detecting on an > image). > > > > > so, my question is: is that possible to make a such website with GAE? > any > > > frameworks available? or even some exmaples would be better. > > > > > thanks all. > > > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: New app for finding wallpaper images - feedback welcome :)
Agreed :-) This was made in a hackathon, a kind of proof of concept. The JS and CSS are haphazard to say the least. The rework is underway. I'll post back when it's done - which will be soon! On Nov 28, 12:24 am, kang <[EMAIL PROTECTED]> wrote: > support...and this site's css design need to be better > > > > On Fri, Nov 28, 2008 at 12:18 AM, Ben Nevile <[EMAIL PROTECTED]> wrote: > > > Cool app Bonstio - my quick suggestion would be to re-organize the > > page so that the image is at the top rather than below your > > explanatory paragraph. I have to scroll down to see it on my small > > laptop screen (1280x800). > > > Ben > > > On Nov 27, 2:07 am, Bonstio <[EMAIL PROTECTED]> wrote: > > > Oh dear - how very embarrassing! My apologies!!! That would be a copy/ > > > paste error > > > > http://feeling-lucky.appspot.com/ > > > > On Nov 26, 5:36 pm, "Stephen Judd" <[EMAIL PROTECTED]> wrote: > > > > > It's impossible for anyone to browse your localhost url. > > > > > On Wed, Nov 26, 2008 at 8:25 AM, Bonstio <[EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > > > My first post here.. > > > > > > I'd be grateful if you could offer any feedback you might have on my > > > > > first App Engine app. I've never written Python before so it's been > > > > > interesting learning it. > > > > > >http://localhost:8080/?size=o > > > > > > Thanks! > > -- > Stay hungry,Stay foolish. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---