[google-appengine] Re: max_backoff_seconds - working?

2010-12-15 Thread vlad
Hi Nick, Task schedule delays (best effort) are expected but this is not the case. Take a look at the log excerpt below which shows a task with 6 reties. Retries are perfectly timed on flat 20sec back off schedule. In other words I have never seen task reties follow what I put in my queue.yaml.

[google-appengine] Re: Downloading and processing an archive

2010-12-15 Thread Tim Hoffman
HI >Unfortunately the standard ZipFile module in Python only supports extracting to a file; This is not correct. The zipfile.extract method does extract to a target directory, but zipefile.read(name) allows you to read directly from the name file in the archive return bytes. T -- You rece

[google-appengine] Re: max_backoff_seconds - working?

2010-12-15 Thread nverne
Hello Jason, Vlad, Our task scheduling is best effort. Although we try to schedule tasks as nearly as possible to their etas, we don't guarantee that your tasks will run at the exact time. Some delay is inevitable. Cheers, Nick Verne On Dec 16, 10:21 am, Jason Collins wrote: > Production. > >

[google-appengine] Re: Hashing Keys

2010-12-15 Thread johnP
Thanks for the response! On Dec 15, 12:01 am, 风笑雪 wrote: > Calculating MD5 is very fast in GAE: > > from time import time > from hashlib import md5 > > s = '1'*100 > t = time() > for i in xrange(100): > md5(s).digest() > print time() - t > > result: 1.469063 > > I remember the key name i

Re: [google-appengine] Downloading and processing an archive

2010-12-15 Thread A. Stevko
Using Java, You can use the url fetch service to retrieve up to 32 M http://code.google.com/appengine/docs/java/urlfetch/overview.html Then you can use ZipInputStream to slice a zip into a separate streams for each file. http://download.oracle.com/javase/1.5.0/docs/api/java/util/zip/ZipInputStream

Re: [google-appengine] how can i write Arabic in app engine

2010-12-15 Thread fatimah mujallid
Hi,thank you for your replay I have this code in main.py class Whatisinyourmind (db.Model): name=db.StringProperty() yourword=db.StringProperty() class MainHandler(webapp.RequestHandler): def get(self): yourwords=db.GqlQuery('SELECT * FROM Whatisinyourmind') values

[google-appengine] Re: max_backoff_seconds - working?

2010-12-15 Thread Jason Collins
Production. On Dec 14, 8:23 pm, "Greg (Google)" wrote: > Hi Jason, > > Are you seeing this behavior in production or in the development > server? > > On Dec 8, 2:02 pm, Jason Collins wrote: > > > > > Has anyone had any luck getting max_backoff_seconds (in > > TaskRetryOptions) to work? > > > I'm

[google-appengine] Re: etags and webkit's response -- any way to disable in GAE?

2010-12-15 Thread kamens
Yes, they have the proper Expires headers. As described in http://stackoverflow.com/questions/4406651/webkit-etags-and-google-app-engine-caching-behavior, it appears as though expires is overruled by the Etags header and its need to send an If-None-Match request. On Dec 15, 12:31 pm, 风笑雪 wrote:

[google-appengine] Re: max_backoff_seconds - working?

2010-12-15 Thread vlad
I am seeing this behavior in production. Will post logs tonight. -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-a

[google-appengine] Re: Appengine's Turkey problem

2010-12-15 Thread Kaan Soral
Thanks for the idea, So do you have a reverse proxy server that acts for every request and redirects them to appengine and return the result to the requester? If that is the case, for high amount of requests there can be problems right? I would be glad if you can give more details, Thanks again,

[google-appengine] Re: Query filter using an entity's inline property

2010-12-15 Thread Lenny Rachitsky
Good idea! Thank you sir. On Dec 15, 11:56 am, Eli Jones wrote: > You want something like (Where N is some number): > > "Select * from myModel Where Prop1 + Prop2 < N" > > No do that here impossible in GAE. > > Just change the "question_ttl" property into "expiration_timestamp" (or > maybe us a n

[google-appengine] Re: Incredible traffic saving with the header "Cache-control: public"???

2010-12-15 Thread GONZO
Quizás quisiste decir: A mi no me aparece esto. Puede garantizar que la diferencia entre cache-control private y public es que con public Escribe texto o la dirección de un sitio web o traduce un documento. Cancelar Escuchar traducción del español al inglés I do not look like this. I can guarantee

Re: [google-appengine] how can i write Arabic in app engine

2010-12-15 Thread 风笑雪
Hi, I don't know what framework are your using. Generally speaking, you should set "Content-Type:text/html; charset=UTF-8" header, and make sure you output UTF-8 encoded sting. If you are using webapp, it will look like this: self.response.headers['Content-Type'] = 'Content-Type:text/html; chars

Re: [google-appengine] etags and webkit's response -- any way to disable in GAE?

2010-12-15 Thread 风笑雪
It works fine with Chrome 7 and Safari 5 on Windows XP in my app, no any requests are sent after the first visiting. Have you checked the static files if they had an "Expires" header? Also don't enable resource tracking for webkit which will always request for all the resources, just check the ba

[google-appengine] etags and webkit's response -- any way to disable in GAE?

2010-12-15 Thread kamens
Situation: running a Google App Engine site with my static content's default_expiration set to "14d" Problem: in Chrome and Safari, visiting a URL (not reloading, just putting the cursor in the address bar and hitting Enter), causes a ton of requests to be fired with If-None-Match headers. The res

[google-appengine] how can i write Arabic in app engine

2010-12-15 Thread tota
Hi I have an application in google app engine and i want to make the interface langauge in Arabic. I tried to do that but it display in undefined charecters. I am using python. can any one help me. Thanks -- You received this message because you are subscribed to the Google Groups "Google App En

[google-appengine] Problem with reading a XML file

2010-12-15 Thread Emilio Resende
I'm trying to read a xml file in my application. On my local server it works fine, however, when I made deploy to GAE, had received the following error: # 1. 12-14 04:38PM 08.492 /amesaude/articles 500 1173ms 1120cpu_ms 0kb Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.2.12) Gecko/ 2010

[google-appengine] Re: max_backoff_seconds - working?

2010-12-15 Thread Greg (Google)
Hi Jason, Are you seeing this behavior in production or in the development server? On Dec 8, 2:02 pm, Jason Collins wrote: > Has anyone had any luck getting max_backoff_seconds (in > TaskRetryOptions) to work? > > I'm setting mine to 1,2,3 (seconds), but it seems to be on a 20s fixed > retry sch

[google-appengine] Blank page displayed periodically.

2010-12-15 Thread spowers.42
I have a python GAE app running, and on first load it displays a blank page. Additionally sometimes when I navigate to some pages it is blank until I refresh once or twice. I have the if __name__ == '__main__': main() statement at the end of my main.py file. The only non standard thing I am d

[google-appengine] Domain Puzzle

2010-12-15 Thread Joshua Smith
My company has a domain kaon.ws that we used to use, but don't any more. I'd like requests to www.kaon.ws to end up going to www.kaon.com. www.kaon.com is in google app engine. kaon.com is a google apps for business account. I added kaon.ws as a domain alias in the kaon.com google apps contro

Re: [google-appengine] Re: Query filter using an entity's inline property

2010-12-15 Thread Eli Jones
You want something like (Where N is some number): "Select * from myModel Where Prop1 + Prop2 < N" No do that here impossible in GAE. Just change the "question_ttl" property into "expiration_timestamp" (or maybe us a nice short prop name) and calculate that future expiration date when the entity

[google-appengine] Re: Downloading and processing an archive

2010-12-15 Thread Darien Caldwell
Unfortunately the standard ZipFile module in Python only supports extracting to a file; GAE doens't allow writing files however. You'd either need to find a package that supports extracting files to a variable, or write your own. The data could then be put into the Datastore or Blobstore. Of cour

[google-appengine] Query filter using an entity's inline property

2010-12-15 Thread Lenny Rachitsky
Does App Engine allow self-referencing queries, where I use a property of an entity as part of the filter? For example, below I am attempting to use the "question_ttl" property to filter questions that are expired (e.g. older than "question_ttl" minutes). I'm attempting to avoid having to iterate t

[google-appengine] Re: Query filter using an entity's inline property

2010-12-15 Thread Lenny Rachitsky
Just noticed there is a small typo in the code above, the query should be hitting "WaitingQuestions", not "WaitingAnswer". On Dec 15, 11:00 am, Lenny Rachitsky wrote: > Does App Engine allow self-referencing queries, where I use a property > of an entity as part of the filter? For example, below

Re: [google-appengine] Article about tuning Java apps for AppEngine

2010-12-15 Thread Paul Bakker
I know, and it makes sense, but what exactly is the limit? How long is a query allowed to run? I've been searching in the docs and billing settings but can't find it. Again, this is only because I want to have the correct numbers, I'll still advice to use alternative approaches. On Wed, Dec 15, 20

[google-appengine] Downloading and processing an archive

2010-12-15 Thread Thomas M
Hello, I would like to download a .zip archive provided by an external website and process the files stored in it. But I still have no idea how to do this on GAE. The archive is about 30 MB large, so I cant use an automatic upload script via HTTP. Does anyone have an idea or approach for this pro

[google-appengine] Re: Receive e-mail with different domain

2010-12-15 Thread Vinicius Ruan Cainelli
Thank you for the reply. I am very grateful for this community with the blood will help others I understand your answer, I already use it in another app, but I wanted to receive the e-mail only changing the domain of the sender. For receiving forwarded email may take additional time to arrive

Re: [google-appengine] Hashing Keys

2010-12-15 Thread 风笑雪
Calculating MD5 is very fast in GAE: from time import time from hashlib import md5 s = '1'*100 t = time() for i in xrange(100): md5(s).digest() print time() - t result: 1.469063 I remember the key name is limited to 500 bytes long, so it may exceed if you combine several keys into one.