[google-appengine] Re: host info

2008-12-04 Thread yu ping322
request.url can get domain names. 2008/12/5, lws68825 <[EMAIL PROTECTED]>: > > Hi, > Can anyone help me on getting host info in a cgi script? I want to set > different mapping parameters to wsgiapplication for different domain > names. > > > --~--~-~--~~~---~--~~

[google-appengine] Is one big table table quicker than 8 smaller tables?

2008-12-04 Thread lock
I've been desperately trying to optimise my code to get rid of those 'High CPU' requests. Some changes worked others didn't, in the end I've really only gained a marginal improvement. So I'm now considering some significant structural changes and are wondering if anyone has tried something simil

[google-appengine] Re: Support for Decimal in Datastore?

2008-12-04 Thread lock
There is the FloatProperty, pretty sure that's what your after. http://code.google.com/appengine/docs/datastore/typesandpropertyclasses.html#FloatProperty --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App

[google-appengine] Re: 1.2 high CPU warning accessing Robots.txt?

2008-12-04 Thread Brett Slatkin
Often this is caused by having a default dynamic request handler like this: - url: .* script: main.py You can eliminate this issue by adding a static robots.txt file before the dynamic handler: - url: /robots\.txt static_files: robots.txt upload: robots\.txt - url: .* script: main.py

[google-appengine] Re: Support for Decimal in Datastore?

2008-12-04 Thread David Symonds
On Fri, Dec 5, 2008 at 1:07 PM, Fred Janon <[EMAIL PROTECTED]> wrote: > The Datastore doesn't seem to have support for Decimal or did I miss > something? Is there a way (besides the classic /100 & *100) to get a > Decimal stored in the Datastore or do I need to follow the "Extending > Model Prope

[google-appengine] Support for Decimal in Datastore?

2008-12-04 Thread Fred Janon
Hi, The Datastore doesn't seem to have support for Decimal or did I miss something? Is there a way (besides the classic /100 & *100) to get a Decimal stored in the Datastore or do I need to follow the "Extending Model Properties" instructions? Thanks Fred --~--~-~--~~~-

[google-appengine] Re: how to do text search in GAE?

2008-12-04 Thread kang
it does not work for foreign language...only english and it's not very helpful On Fri, Dec 5, 2008 at 10:32 AM, yu ping322 <[EMAIL PROTECTED]> wrote: > > from google.appengine.ext import db > from google.appengine.ext import search > class Article(search.SearchableModel): >title = db.Text

[google-appengine] Has the quota been increased?

2008-12-04 Thread Alexander Kojevnikov
Is it just me or the daily quota has just been increased from 200,000 to 600,000 Gigacycles and from 2,000 to 6,000 e-mails? Not that I'm complaining, just wondering if someone else is seeing this in the control panel? --~--~-~--~~~---~--~~ You received this message

[google-appengine] Re: How to do Composition with Datastore API?

2008-12-04 Thread TLH
The only reason I needed a Point property was for an economical example case :-) On Dec 3, 7:26 pm, ryan <[EMAIL PROTECTED]> wrote: > david's right, that article does describe how to extend db.Property. > if all you need is a point property, though, you should consider using > GeoPtProperty: > >

[google-appengine] Re: how to do text search in GAE?

2008-12-04 Thread yu ping322
from google.appengine.ext import db from google.appengine.ext import search class Article(search.SearchableModel): title = db.TextProperty() publishDate = db.DateTimeProperty(auto_now_add=True) text = db.TextProperty() # should NOT be returned article = Article(text ='''Thi

[google-appengine] Re: host info

2008-12-04 Thread lws68825
Hi niklasr, Thanks for your reply. On 12月5日, 上午11时22分, niklasr <[EMAIL PROTECTED]> wrote: > os.environ may achieve it > > import os > if os.environ.get('HTTP_HOST'): > url = os.environ['HTTP_HOST'] > else: > url = os.environ['SERVER_NAME'] > > On Dec 5, 4:07 am, lws68825 <[EMAIL PROTECTED

[google-appengine] Re: host info

2008-12-04 Thread niklasr
os.environ may achieve it import os if os.environ.get('HTTP_HOST'): url = os.environ['HTTP_HOST'] else: url = os.environ['SERVER_NAME'] On Dec 5, 4:07 am, lws68825 <[EMAIL PROTECTED]> wrote: > Hi, > Can anyone help me on getting host info in a cgi script? I want to set > different mappi

[google-appengine] host info

2008-12-04 Thread lws68825
Hi, Can anyone help me on getting host info in a cgi script? I want to set different mapping parameters to wsgiapplication for different domain names. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine

[google-appengine] Re: how to do text search in GAE?

2008-12-04 Thread @@
Hi you can do the word segmentation yourself, and put these words in a StringListProperty. On Fri, Dec 5, 2008 at 10:08 AM, kang <[EMAIL PROTECTED]> wrote: > Thanks...so there is no good solution for this problem now? I haven't seen > it in the roadmap... > > --~--~-~--~~

[google-appengine] Why not allow developers of libraries to upload them?

2008-12-04 Thread Amir Michail
Hi, Instead of asking GAE developers to upload libraries they need, why not ask the developers of the libraries to upload versions that work with GAE? Amir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App

[google-appengine] Re: how to do text search in GAE?

2008-12-04 Thread kang
Thanks...so there is no good solution for this problem now? I haven't seen it in the roadmap... On Fri, Dec 5, 2008 at 1:27 AM, tigrillo < [EMAIL PROTECTED]> wrote: > > Hello: maybe it can help: > > http://code.google.com/p/googleappengine/issues/detail?id=217 > > I use this as a temporary option

[google-appengine] Re: ClientLogin error

2008-12-04 Thread Jeff S
Hi angel, Which version of the App Engine SDK are you using? I'm assuming that you are seeing this error when running locally and not when deployed on App Engine. Thank you, Jeff On Dec 3, 5:43 pm, angel <[EMAIL PROTECTED]> wrote: > Hello, > > I want to shows all my documents within google doc

[google-appengine] Re: 1.2 high CPU warning accessing Robots.txt?

2008-12-04 Thread johnP
It is a perfect Achilles Heel. On Dec 4, 1:51 pm, Fred <[EMAIL PROTECTED]> wrote: > Hi, > > I was just checking my warning logs in the dashboard and noticed this: > > 65.55.231.106 - - [04/12/2008:03:23:08 -0800] "GET /robots.txt HTTP/ > 1.1" 404 84 - - > > This request used a high amount of CPU,

[google-appengine] Re: Is there any example code about paging?

2008-12-04 Thread Adam
There is some information about one approach on my blog: http://blog.adamcrossland.net/showpost?id=aglhZGFtY2Jsb2dyLQsSCUJsb2dJbmRleCIJYWRhbWNibG9nDAsSBFBvc3QiC2FkYW1jYmxvZzE0DA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[google-appengine] Re: how do I delete files that I have uploaded

2008-12-04 Thread Dan Sanderson
On Thu, Dec 4, 2008 at 3:29 PM, Vee Why <[EMAIL PROTECTED]> wrote: > > Dan, thanks for clarifying that. Where in the Admin console can I see > the files that I want to delete? (I am in the Admin console now, but > it is not obvious where I can see and delete unwanted files. > You wouldn't delete

[google-appengine] Re: how do I delete files that I have uploaded

2008-12-04 Thread Vee Why
Dan, thanks for clarifying that. Where in the Admin console can I see the files that I want to delete? (I am in the Admin console now, but it is not obvious where I can see and delete unwanted files. On Dec 3, 1:07 am, Dan Sanderson <[EMAIL PROTECTED]> wrote: > If you remove the file from your

[google-appengine] Re: Is there any example code about paging?

2008-12-04 Thread Alexander Kojevnikov
> Hi folks. Just wanted to add that there should be some "known good > way" of paging through a set of more than 1,000 objects. It seems like > there are a few ways to do this -- does anyone have any good sample > code so we don't all reinvent the wheel each time? See this thread for a few pointe

[google-appengine] Re: DeprecationWarning in dev "Datastore Viewer" for page 5 (start=40) of 88 items

2008-12-04 Thread Marzia Niccolai
Hi, You can always sign a CLA and submit a patch: http://groups.google.com/group/google-appengine/web/how-to-submit-a-patch-to-the-sdk -Marzia On Thu, Dec 4, 2008 at 8:14 AM, djidjadji <[EMAIL PROTECTED]> wrote: > > I just got the following warning in the dev_appserver.py (Version 1.1.7) > > x

[google-appengine] 1.2 high CPU warning accessing Robots.txt?

2008-12-04 Thread Fred
Hi, I was just checking my warning logs in the dashboard and noticed this: 65.55.231.106 - - [04/12/2008:03:23:08 -0800] "GET /robots.txt HTTP/ 1.1" 404 84 - - This request used a high amount of CPU, and was roughly 1.2 times over the average request CPU limit. High CPU requests have a small qu

[google-appengine] Re: Error Building Index

2008-12-04 Thread Arun Shanker Prasad
Hi Marzia, Thanks for the reply. My app id is "space1". Thanks, Arun Shanker Prasad. On Thu, Dec 4, 2008 at 6:19 PM, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > If you reply to me with the App Id I can look in to it. > > -Marzia > > > On Thu, Dec 4, 2008 at 12:16 PM, Arun Shanker Pr

[google-appengine] Re: Error Building Index

2008-12-04 Thread Marzia Niccolai
Hi, If you reply to me with the App Id I can look in to it. -Marzia On Thu, Dec 4, 2008 at 12:16 PM, Arun Shanker Prasad < [EMAIL PROTECTED]> wrote: > > Hi, > > Sorry to bump this thread again, but my indexes are still in the > "Building" status in the Dashboard.. Its been quite sometime, I hav

[google-appengine] Re: Error Building Index

2008-12-04 Thread Arun Shanker Prasad
Hi, Sorry to bump this thread again, but my indexes are still in the "Building" status in the Dashboard.. Its been quite sometime, I have had similar indexes in my app and they didn't take this long to build : ( Thanks, Arun Shanker Prasad. On Dec 4, 3:04 pm, Arun Shanker Prasad <[EMAIL PROTECT

[google-appengine] Re: Python 3.0 and GAE

2008-12-04 Thread Dan Sanderson
We have no time frame to announce regarding a Python 3.0 runtime environment. Feel free to create and star an issue! -- Dan On Thu, Dec 4, 2008 at 10:36 AM, Larry <[EMAIL PROTECTED]> wrote: > > I'm not sure about time-frame but I am very interested about Python 3 > support although it was only r

[google-appengine] Re: Is there any example code about paging?

2008-12-04 Thread Savraj
Hi folks. Just wanted to add that there should be some "known good way" of paging through a set of more than 1,000 objects. It seems like there are a few ways to do this -- does anyone have any good sample code so we don't all reinvent the wheel each time? One way is to use Django's Paginator --

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

2008-12-04 Thread ryan
hey david! wow, comprehensive. you're right: modulo some minor implementation details, this is basically our optimistic concurrency algorithm. your concern stems from the fact that the datastore doesn't use locks, so txes aren't really ordered like they are in lock-based systems. in a lock-based

[google-appengine] Re: Python 3.0 and GAE

2008-12-04 Thread Larry
I'm not sure about time-frame but I am very interested about Python 3 support although it was only released yesterday! However some information about it is available here: http://groups.google.com/group/google-appengine/browse_thread/thread/8c0ece4a7b14d92/458116fbae634a00?lnk=gst&q=%22python+3%2

[google-appengine] Re: best practice security

2008-12-04 Thread Jeff S
Hi alf, Security is a pretty large field, and I am not a cryptographer (IANAC ;-) so take this with a grain of salt. One way that you could authenticate a user over a direct HTTPS request (not using a browser) is to send the credentials over HTTPS using Digest Auth. This wikipedia article has so

[google-appengine] Re: GAE will hurt Linux unless...

2008-12-04 Thread Jon Watte
Why does this matter? Linux will be available for as long as Linux solves a real problem in a cost effective way. Windows will be available for as long as Windows solves a real problem in a cost effective way. Google App Engine will be available for as long as Google App Engine solves a real prob

[google-appengine] Re: Python 3.0 and GAE

2008-12-04 Thread kellan
On Dec 4, 11:59 am, Brian <[EMAIL PROTECTED]> wrote: > Just wondering if GAE has a plan to support python 3, perhaps as an > alternative language instead of replacing 2.5 altogether. > I'd also be interested in a timeline for Python 3.0 support in GAE. thanks -kellan --~--~-~--~~---

[google-appengine] Re: using custom domain

2008-12-04 Thread Marzia Niccolai
Hi, Did you try adding the mapping to sites and then deleting it? We've come across situations where sites has claimed the WWW mapping and it hasn't been displayed on the cPanel. You may need to re-enable sites, add the mapping, and then delete it. -Marzia On Wed, Dec 3, 2008 at 11:33 PM, Albe

[google-appengine] Re: Tips on Optimizing Writes?

2008-12-04 Thread Jeff S
Hi brian, The number of puts (or HTTP requests in genral) per minute/second possible depends on too many factors to give a simple answer. Part of the answer would involve the interplay of the different quotas being used, and the behavior of the quota system when it detects a traffic spike. For m

[google-appengine] Fetching data store data from external URL

2008-12-04 Thread JT
hey, does anyone know how to fetch data from the datastore, from an external URL? I'm working within MySpace and would like to fetch data base at the Google data store. Is it possible? I'm guessing HTTP GET with user name/password attached to the request. Any thoughts? Thanks, john --~--~---

[google-appengine] Re: using custom domain

2008-12-04 Thread Albert
Hi Marzia! I visited http://groups.google.com/group/google-appengine/web/deleting-existing-www-mapping-from-google-apps and I followed it, but... I don't have any web mappings at all... So I couldn't delete any, yetI still can't add the www subdomain... I can add another subdomain like blah, f

[google-appengine] Re: how to do text search in GAE?

2008-12-04 Thread tigrillo
Hello: maybe it can help: http://code.google.com/p/googleappengine/issues/detail?id=217 I use this as a temporary option while Search become better On 1 dic, 21:18, kang <[EMAIL PROTECTED]> wrote: > anyone have experience in SearchableModel? > > > > On Mon, Dec 1, 2008 at 3:10 PM, kang <[EMAIL

[google-appengine] Re: Error Building Index

2008-12-04 Thread Arun Shanker Prasad
Hi Marzia, Thanks for the quick reply. I just had a look, the indexes I vacuumed are in the Building state. I have never had them take so long to build.. Thanks, Arun Shanker Prasad. On Dec 4, 3:00 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > Currently, you can not upload a new a

[google-appengine] Re: Error Building Index

2008-12-04 Thread Marzia Niccolai
Hi, Currently, you can not upload a new app version while there are any indexes in the building/deleting state. I suspect this is the problem. -Marzia On Thu, Dec 4, 2008 at 8:53 AM, Arun Shanker Prasad < [EMAIL PROTECTED]> wrote: > > Hi all, > > I uploaded a new release for my application, I

[google-appengine] Python 3.0 and GAE

2008-12-04 Thread Brian
Just wondering if GAE has a plan to support python 3, perhaps as an alternative language instead of replacing 2.5 altogether. Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post t

[google-appengine] Error Building Index

2008-12-04 Thread Arun Shanker Prasad
Hi all, I uploaded a new release for my application, I saw that the Indexes were in the "Error" state in the Dashboard.. So i did a vacuum and tried to update the indexes again but I keep getting this error, Error 400: --- begin server output --- Building a composite index failed: ApplicationErr

[google-appengine] Re: domain name

2008-12-04 Thread lws68825
Hi Marzia, Thanks for your reply. On 12月4日, 下午11时53分, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > You can do this if your domain is a Google Apps domain:www.google.com/a > > -Marzia > > On Thu, Dec 4, 2008 at 12:22 AM, lws68825 <[EMAIL PROTECTED]> wrote: > > > Hi, > > I wonder if I can b

[google-appengine] DeprecationWarning in dev "Datastore Viewer" for page 5 (start=40) of 88 items

2008-12-04 Thread djidjadji
I just got the following warning in the dev_appserver.py (Version 1.1.7) \google_appengine\google\appengine\ext\admin\__init__.py:548: DeprecationWarning: integer argument expected, got float for page in range(page_start + 1, page_end + 1): INFO 2008-12-04 15:43:42,250 dev_appserver.py

[google-appengine] Re: domain name

2008-12-04 Thread Marzia Niccolai
Hi, You can do this if your domain is a Google Apps domain: www.google.com/a -Marzia On Thu, Dec 4, 2008 at 12:22 AM, lws68825 <[EMAIL PROTECTED]> wrote: > > Hi, > I wonder if I can bind *.mydomain.com to my application using the 'add > domain' function in the console? > > > --~--~-~--

[google-appengine] url.fetch DNS cache (IP server changes)

2008-12-04 Thread Sylvain
Hi, My application fetches this url : http://www.hordes.fr But monday, the IP for this server (www.hordes.fr) has changed (they moved), but currently I always fetch the bad URL/bad server. I've tested with different applications in appspot and it is the same error : Here what appspot see : htt

[google-appengine] Re: ORDER BY changes the number of results in production server

2008-12-04 Thread Mahmoud
Yes. I've noticed this as well. However, the difference is usually just -1 and never this disparate. On Dec 3, 12:41 pm, Siva Velusamy <[EMAIL PROTECTED]> wrote: > Hi, > > I find this weird behavior in the current production server: > > If I have a query of the form: > > SELECT * FROM model1 WHER

[google-appengine] Re: GAE will hurt Linux unless...

2008-12-04 Thread thuan
For casual computer users, GAE will have a very small impact on Linux adoption; a bigger impact would be hords of low-cost netbooks running on some linux distros. If GAE gains popularity, new web developpers will tend to adopt the Python programming language and somehow, get the fact that developi

[google-appengine] Re: Configuring Friend Connect

2008-12-04 Thread Andi Albrecht
On Thu, Dec 4, 2008 at 1:24 PM, kang <[EMAIL PROTECTED]> wrote: > GAE itself has google account model, and user can login.. but if they want > to post through FriendConnect ,they need to login for the second time > it's not a good user experience You're right, I think it's very confusing or m

[google-appengine] Re: Configuring Friend Connect

2008-12-04 Thread kang
GAE itself has google account model, and user can login.. but if they want to post through FriendConnect ,they need to login for the second time it's not a good user experience On Thu, Dec 4, 2008 at 8:17 PM, Andi Albrecht <[EMAIL PROTECTED]>wrote: > > On Thu, Dec 4, 2008 at 10:50 AM, kang <[

[google-appengine] Re: Configuring Friend Connect

2008-12-04 Thread Andi Albrecht
On Thu, Dec 4, 2008 at 10:50 AM, kang <[EMAIL PROTECTED]> wrote: > right > i've configured for my app > but what do you think of the Friend Connect? I think an appengine website > need not use it... Why not? Could be a nice extra for some applications... But it would be great to have an easy

[google-appengine] Re: Is there any example code about paging?

2008-12-04 Thread kang
I know both...But the example apps do not cover the paging problem.. and the big apps do not give source code On Thu, Dec 4, 2008 at 7:44 PM, A. TNG <[EMAIL PROTECTED]> wrote: > > On Thu, Dec 4, 2008 at 6:58 PM, lookon <[EMAIL PROTECTED]> wrote: > > > > I've watched Buildding Scalable Web Applica

[google-appengine] Re: Is there any example code about paging?

2008-12-04 Thread A . TNG
On Thu, Dec 4, 2008 at 6:58 PM, lookon <[EMAIL PROTECTED]> wrote: > > I've watched Buildding Scalable Web Applications with Google App > Engine on Youtube..But I wish there could be some example code about > the topics. for example paging technique.. > > And I want to know where could see the cod

[google-appengine] Is there any example code about paging?

2008-12-04 Thread lookon
I've watched Buildding Scalable Web Applications with Google App Engine on Youtube..But I wish there could be some example code about the topics. for example paging technique.. And I want to know where could see the code of some big apps using App Engine. I need to learn, thanks --~--~-~

[google-appengine] Re: Configuring Friend Connect

2008-12-04 Thread kang
right i've configured for my app but what do you think of the Friend Connect? I think an appengine website need not use it... On Thu, Dec 4, 2008 at 6:28 AM, Andi Albrecht <[EMAIL PROTECTED]>wrote: > > Hi Rajiv, > > here's how I did it... I copied the two files in a directory called > "stati

[google-appengine] Re: Full Feeds for App Engine Cookbook

2008-12-04 Thread A.TNG
> > Totally agree. Partial RSS isn't handy. And one more request, could > you add a search input box to help search inside AppEngine cookbook? > For full feed of AppEngine-Cookbook, I create a feed with Yahoo Pipe. Please check here: http://pipes.yahoo.com/jiyu/appenginecookbook. But it seems so

[google-appengine] domain name

2008-12-04 Thread lws68825
Hi, I wonder if I can bind *.mydomain.com to my application using the 'add domain' function in the console? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email