[google-appengine] Re: All Read Please: Geographical Request Latency

2009-08-13 Thread Jarek Zgoda
Warsaw, Poland here. Typical ~240ms, ranging from 210ms to 740ms (!). On 13 Sie, 12:44, Martyn wrote: > Hi there, > > I am investigating request latency for AppEngine after experiencing > significantly lower performance then reported in the Java status > results. > > This appears to be due to ne

[google-appengine] Re: LANGUAGE_CODE problem

2009-06-05 Thread Jarek Zgoda
http://docs.djangoproject.com/en/dev/topics/settings/#altering-settings-at-runtime "You should not alter settings at runtime". >From my experience - altering settings sometimes works and sometimes not. On 4 Cze, 17:36, wilmersarmiento wrote: > Hi, > > I'm working with the form validation frame

[google-appengine] Re: PyCrypto Access

2009-05-07 Thread Jarek Zgoda
This seems to be problem with shell.appspot.com (it tries to persist the DES object in session). On 5 Maj, 23:53, Devel63 wrote: > Doesn't seem to work onhttp://shell.appspot.com > > I can import a module (e.g., from Crypto.Cipher import DES), but when > I try to use it I get all sorts of errors

[google-appengine] Re: index.yaml is not source control friendly

2009-04-07 Thread Jarek Zgoda
I noticed this and I share your pain. I just set a policy to "don't merge, just update" but this does not make much sense. On the other way, not having this in repository would make deployment too fragile process (what if we miss some test and deploy index.yaml without some index?!). On 7 Kwi, 19

[google-appengine] Re: Fastest Templating on AppEngine?

2009-04-05 Thread Jarek Zgoda
Mako (http://www.makotemplates.org/) is believed to be the fastest templating engine in wide use (didn't found any reasonable tests to prove this statement in the GAE environment). Personally I prefer Jinja2 (http://jinja.pocoo.org/2/) because I like Django templates syntax - although Jinja2 give

[google-appengine] Re: memcache won't be flushed after app is redeployed

2009-03-29 Thread Jarek Zgoda
I don't think it's possible. One way around is to employ some kind of key versioning (using CURRENT_VERSION_ID, for example). This way you'd be sure your app uses always appropriate values. On 29 Mar, 07:43, Coonay wrote: > the data strore is cleaned ,then i redeploy my app,next access my app >

[google-appengine] Re: minimal http response headers

2009-03-16 Thread Jarek Zgoda
Nothing forces you to use WebApp framework with its request/response objects - WebOb is available already (afaik, in WebApp request is WebOb request, but response is not a subclass of WebOb response), Werkzeug works too. On 15 Mar, 06:32, zombie wrote: > Does anyone know what is the minimum amou

[google-appengine] Re: Forward request or webapp.RequestHandler chaining (like Actions framework in java)

2009-03-15 Thread Jarek Zgoda
It would be easier if you do not use WebApp but follow Django way of request handling (easy to achieve even without Django, ie. using Werkzeug to lay out application in model-view-template style): def handler_a(request): return response('a') def handler_b(request): return handler_a(request)

[google-appengine] Re: sending mail with nicely formatted sender

2009-03-15 Thread Jarek Zgoda
Star this issue: http://code.google.com/p/googleappengine/issues/detail?id=677 On 15 Mar, 20:08, manuelaraoz wrote: > Hi there! > > I've got my app sending mail from the address supp...@myapp.com > > the problem is, when people receive the emails, they see that they > appear as been sent from "

[google-appengine] Re: jinja2 environment loading on each request to /

2009-03-13 Thread Jarek Zgoda
If you move Environment creation routine to another module it will be cached by Google, but only for few seconds (2-3?), so if your application does not get enough traffic you'd gain nothing from this. In my attempts to speedup things I discovered that only loader can be cached, but it has to be

[google-appengine] Re: How to overwrite the default save method

2009-03-13 Thread Jarek Zgoda
Be aware that in current version save() contains code literally copied from put() so you'd like to have in your model class the code like: def put(self): # do something before save key = super(MyModel, self).put() # do something after save return key save = put On 13 Mar, 05:45, yucc w

[google-appengine] Re: What does your new project template look like?

2009-03-13 Thread Jarek Zgoda
I use another toolset (Werkzeug + Jinja2) so my projects are organized in different way, but I second your thoughts on default template usability. On 13 Mar, 08:16, adelevie wrote: > I have found the included "new_project_template" to be woefully > inadequate for getting a real project started.

[google-appengine] Re: Application instances seem to be too aggressively recycled

2009-03-11 Thread Jarek Zgoda
I'm seeing the same behaviour but I do not use Django (Werkzeug + Jinja2). While this combo seems lighter (in terms of CPU usage), my app becomes "cold" each 2-3 seconds and request takes > 1200ms CPU to be served, with Jinja2 Environment creation taking most of CPU resources. I tried to optimize

[google-appengine] Re: Google App Engine and TZINFO

2009-03-10 Thread Jarek Zgoda
Not so hurry. As for pytz footprint, it's ~600kB in size and can be lightning fast if combined with caching in memcache (caching of tzinfo? why not...). Combine this with Babel and you'll get everything you'd want to do l10n. On 10 Mar, 20:21, mawcs wrote: > So, I got some help from StackOverfl

[google-appengine] Re: Get deployed app version at runtime?

2009-03-06 Thread Jarek Zgoda
al Message- > From: google-appengine@googlegroups.com > > [mailto:google-appeng...@googlegroups.com] On Behalf Of Jarek Zgoda > Sent: Friday, March 06, 2009 8:01 AM > To: Google App Engine > Subject: [google-appengine] Get deployed app version at runtime? > > Is there any possibil

[google-appengine] Get deployed app version at runtime?

2009-03-06 Thread Jarek Zgoda
Is there any possibility to get full application version at runtime (not only major version from app.yaml)? I'm thinking of making memcache keys versioned by something that changes on every deployment and the app version seems to be obvious choice... Cheers J. --~--~-~--~~

[google-appengine] Re: Gettext and GAE/jijas2 integration

2009-03-05 Thread Jarek Zgoda
Also, the gettext docs say it should be "localedir/language/ LC_MESSAGES/domain.mo" (ROOT/locale/en_US/LC_MESSAGES/myproject.po - following your terminology and layout), not "localedir/LC_MESSAGES/ language/domain.mo". On 5 Mar, 13:32, Jarek Zgoda wrote: > Shouldn't

[google-appengine] Re: Gettext and GAE/jijas2 integration

2009-03-05 Thread Jarek Zgoda
oject with i18n support without django? I think I will write a dirty > implementation if therer are not solution to solve this problem. > > On Thu, Mar 5, 2009 at 9:09 AM, Jarek Zgoda wrote: > > > I tried to put Environment object in memcache, but it's not picklable > > so

[google-appengine] Re: Gettext and GAE/jijas2 integration

2009-03-05 Thread Jarek Zgoda
I tried to put Environment object in memcache, but it's not picklable so no joy. FileSystemLoader can be pickled and cached, but for some unknown reason cached object throws IOErrors if template code changes (eg. because of new deployment) and I did not found a way to remove it from cache after su

[google-appengine] Re: Should I migrate to App Engine?

2009-02-26 Thread Jarek Zgoda
No, it is not. CGI is generic way of passing environment variables to web applications. WSGI is standardized communication protocol between web servers (like these that offer CGI interface) and web applications written in Python. Basically you just write WSGI-based application and run it in WSGI e

[google-appengine] Re: Should I migrate to App Engine?

2009-02-26 Thread Jarek Zgoda
They say so (in normal CGI you do not have cached imports), but I found one of my applications performing much worse than in normal WSGI environment (Apache + mod_wsgi in daemon mode). I suspect the storage, as my app is rather write-heavy - profiling info did not reveal any special suspects. On

[google-appengine] Re: Sporadic Unicode error in POST queries

2009-02-25 Thread Jarek Zgoda
This will not work as expected, for many reasons. The line "value = unicode(value)" will break with UnicodeEncodeError (not Decode) if the value is unicode object and value contains characters from outside ASCII range. The line "unicode(str(value).encode('string_escape'))" can be translated to h

[google-appengine] Re: Sporadic Unicode error in POST queries

2009-02-25 Thread Jarek Zgoda
If the data comes from any form in your application, you can force encoding of form data using accept-charset attribute of form element (see http://www.w3schools.com/tags/att_form_accept_charset.asp). On 25 Lut, 22:17, Brian wrote: > Hi. I have observed a sporadic Unicode related bug that appear

[google-appengine] Re: Significant quota changes. . .

2009-02-25 Thread Jarek Zgoda
Don't compare apples to oranges, EC2 is complete operating system instance. On 25 Lut, 16:39, Wooble wrote: > On Feb 24, 5:57 pm, Brandon Thomson wrote: > > > Has anyone seen a cost comparison between Google and the other > > providers based on these new changes? > > EC2 free storage: none > EC

[google-appengine] Re: how to server app on my own domain?

2009-02-23 Thread Jarek Zgoda
So in short (and to clear my confusion), you can not host 2 GAE-based apps in different subdomains of your domain, say host blog on blog.mydomain.com and services on services.mydomain.com? Sounds strange. On 22 Lut, 23:27, Doug wrote: > I beleive that the standard edition (non-business) is free.

[google-appengine] Re: Profiling application, dev vs. prod

2009-02-21 Thread Jarek Zgoda
es. > > On Feb 20, 5:51 am, Jarek Zgoda wrote: > > > Since enabling profiler output is not good for production site (and > > profiling takes additional response time), I'd like to profile my app > > on dev server, but as I discovered, the results are completely >

[google-appengine] Profiling application, dev vs. prod

2009-02-20 Thread Jarek Zgoda
Since enabling profiler output is not good for production site (and profiling takes additional response time), I'd like to profile my app on dev server, but as I discovered, the results are completely different. Is there any other possibility to see what makes my application to run slow without pr

[google-appengine] Re: Google Geocoding not working

2009-02-17 Thread Jarek Zgoda
I use Ajax api variation and it works without problems. On 17 Lut, 04:14, ehmo wrote: > Hey guys, > i'm trying to use Google Geocoding > servicehttp://code.google.com/apis/maps/documentation/geocoding/index.html > via http. > I generated API key for actual domain and it's not working {u'Status'

[google-appengine] Re: SDK under Linux Bug ?

2009-02-17 Thread Jarek Zgoda
I see the same behaviour on OS X, but as it has been stated earlier, this might be normal. On 15 Lut, 03:32, "sebastian.ov...@gmail.com" wrote: > Hi All, > > I was using SDK under windows without any problem. Now I'm using SDK > 1.1.9 under Ubuntu and for some reason it doesn't update correctly

[google-appengine] Re: Changes to urlfetch seem to have broke my old code

2009-02-14 Thread Jarek Zgoda
If exception is raised in the line "result = urlfetch.fetch(url)", then the "result" variable will not be set. Trying to access it's "content" attribute after the exception will raise UnboundLocalError as the "result" variable simply does not exist. Your code was working by accident. warreninaust

[google-appengine] Re: UnicodeEncodeError and Django templates

2009-02-03 Thread Jarek Zgoda
If you call unicode() on unicode object such weirdness will happen. Position 0 suggests it's a very beginning of the text. Open index.html with hex editor and look for e3 byte value. On 3 Lut, 22:54, Scott wrote: > Hello, > > I'm seeing the following message when trying to render a template >