[google-appengine] Re: dev_appserver.py and ListenBackLog directive

2009-04-06 Thread Tony Arkles
The quick answer is 5 :) You're absolutely correct in looking for listen(), but you're looking in the wrong place. The dev_appserver runs the BaseHTTPServer from the Python standard library. The BaseHTTPServer from the stdlib runs the SocketServer.TCPServer from the SocketServer in the stdlib.

[google-appengine] Re: Running dev_appserver.py under a mod_python

2009-04-06 Thread Tony Arkles
Khai, I recently posted a bit on my blog about this: http://blog.chilly.ca/?p=238 You'll probably be pretty hard-pressed to run it on anything but the dev_appserver, and it's not very likely that you'll get it working multi-threaded. Sorry :( On Apr 6, 5:59 pm, Khai khaitd...@gmail.com

[google-appengine] Re: Guideline for performance tuning

2009-03-04 Thread Tony Arkles - home
Profile profile profile! Use the profiler, on the live app engine. On Mar 4, 8:42 am, ltcstyle ltcst...@gmail.com wrote: Hi All, When we developing an app, or implementing an idea, it's very likely we focus on the features and functionalities first. However, at some point, the

[google-appengine] Re: 502 Server Errors after upgrade?

2009-03-02 Thread Tony Arkles - home
Me too app id: steprep app id: steprep-demo On Mar 2, 9:09 pm, Gee geeh...@gmail.com wrote: me too app id: rotzy On Mar 2, 7:06 pm, Bill billk...@gmail.com wrote: Anyone else having trouble with their apps?  I'm getting 502 Server Errors and even looking at logs in the console are

[google-appengine] Accept-Encoding disabled for urlfetch.fetch on local dev server?

2009-02-09 Thread Tony Arkles
Hi, We're using urlfetch to access Yahoo Boss, which requires Accept- Encoding: gzip in the HTTP headers. The documentation doesn't indicate that this is a forbidden header: http://code.google.com/appengine/docs/python/urlfetch/fetchfunction.html The code works great on the live server, but

[google-appengine] Re: Caching using global variables

2009-01-22 Thread Tony Arkles
The big difference between in-memory caching and memcache caching is that memcache data is shared between all of your running instances, but in-memory caching is on a per-instance basis. On Jan 22, 9:52 am, Blixt andreasbl...@gmail.com wrote: Hi there, I've been playing with caching using

[google-appengine] Re: Ancestor is performance

2009-01-20 Thread Tony Arkles
On Jan 19, 5:42 pm, Alexander Kojevnikov alexan...@kojevnikov.com wrote: From your second link:   All entities in a group are stored in the same datastore node. I guess this means that entities from the same group are stored close to each other. When your query uses ANCESTOR IS, the query

[google-appengine] Ancestor is performance

2009-01-19 Thread Tony Arkles
Hi everyone! In a thread [1], and in the documentation [2], it says that setting ancestors doesn't affect performance, but I'm not sure that this is the case. I set up two queries, one using WHERE locationKey = :1 (locationKey is a db.StringProperty), and one using WHERE ANCESTOR IS :1 (the

[google-appengine] Re: Ancestor is performance

2009-01-19 Thread Tony Arkles
Oops, missed the second reference: [2] Section Tips for using entity groups: in http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html On Jan 19, 9:10 am, Tony Arkles t.ark...@gmail.com wrote: Hi everyone! In a thread [1], and in the documentation [2], it says

[google-appengine] Re: Trouble with NeedIndexError when calling count()

2009-01-16 Thread Tony Arkles
I thought I would post our findings and solution. Our issue seems slightly different. We had entities similar to the following: class Account(db.Model): ... class AccountEntry(db.Model): account = db.ReferenceProperty(Account) tags = db.StringListProperty() utime =

[google-appengine] Re: Global Time Synchronisation Guarantees

2009-01-12 Thread Tony Arkles
On Jan 12, 9:18 am, Cesium cesiumpic...@gmail.com wrote: Marzia  in this thread has already said they dont offer any guarantees. Is Marzia a primary source? Yes, Marzia is part of the app engine team. --~--~-~--~~~---~--~~ You received this message because

[google-appengine] Re: Trouble with NeedIndexError when calling count()

2009-01-09 Thread Tony Arkles
We saw this error yesterday too, but only for one of our users. The query succeeds for everyone else... (We were doing a fetch instead of a count, but otherwise it seems pretty similar) On Jan 8, 11:48 am, Ryan W rwilli...@gmail.com wrote: All of a sudden this morning, I began getting this

[google-appengine] Re: How to get combined API + Runtime in log files?

2009-01-05 Thread Tony Arkles
Bump? I posted this over the holidays, maybe someone who knows the answer might have missed it? On Dec 30 2008, 9:54 pm, Tony Arkles t.ark...@gmail.com wrote: Hi all.  Maybe I'm missing something obvious here.  In the Admin Console (on the production servers), I get log lines like: 12-30 12

[google-appengine] Re: How to get combined API + Runtime in log files?

2009-01-05 Thread Tony Arkles
this information over time would be to save the daily graph of 'CPU Seconds Used/Second' available on the dashboard. Not an ideal solution, and it seems like this would be a good feature request. -Marzia On Mon, Jan 5, 2009 at 10:19 AM, Tony Arkles t.ark...@gmail.com wrote: Bump?  I posted

[google-appengine] Re: Global Application Configuration Data

2008-12-31 Thread Tony Arkles
On Dec 30, 6:13 pm, James Leskovar jlesko...@gmail.com wrote: If you don't specify an expiry time, they'll persist   forever, until there's significant load on the cache. This is really important to note: if you're using the memcache for your application settings, you probably want it to be

[google-appengine] How to get combined API + Runtime in log files?

2008-12-30 Thread Tony Arkles
Hi all. Maybe I'm missing something obvious here. In the Admin Console (on the production servers), I get log lines like: 12-30 12:39PM 36.208 /x 500 552ms 1713ms-cpu 7kb (with a CPU warning icon next to the 1713ms-cpu). When I retrieve the log files from app engine, I can't seem to find

[google-appengine] Re: Messaging between multiple concurrent browser sessions

2008-11-05 Thread Tony Arkles
It seems like a pretty good approach to me. One thing to watch out for is that things can vanish from the memcache (due to memory pressure). Don't assume it's going to be a reliable storage mechanism! If you're OK with possibly losing events, then it's OK, but if you require all events to for

[google-appengine] Re: no module named PIL error despite it being in my path

2008-11-03 Thread Tony Arkles
Ryan, do you mean the PATH, or the PYTHONPATH? It doesn't have to be in your PATH, just the PYTHONPATH (which you can view by doing import sys; print sys.path) On Nov 2, 3:39 pm, ryan baldwin [EMAIL PROTECTED] wrote: K, I double checked and tried it all out and Alok's proposed solution just

[google-appengine] Re: unique identifier for server process

2008-10-09 Thread Tony Arkles
I just used a random number within an import (since imports only happen once per instance, it should persist for the lifetime of the process) On Oct 9, 12:56 am, Josh Heitzman [EMAIL PROTECTED] wrote: The state of the process is not of interest, just which instance of many processes it is

[google-appengine] Re: Encrypted Paypal Forms and supported python encryption libraries

2008-10-07 Thread Tony Arkles
Hmmm... that would probably run into CPU usage timeouts. From the pyDES page: The code below is not written for speed or performance, so not for those needing a fast des implementation, but rather a handy portable solution ideal for small usage. It takes my AMD2000+ machine 1 second per 2.5

[google-appengine] Re: Long key_name design question?

2008-10-03 Thread Tony Arkles
For a summary of the C-based modules that are available, check out http://code.google.com/appengine/kb/libraries.html On Oct 2, 6:14 pm, ryan [EMAIL PROTECTED] wrote: unfortunately, app engine doesn't support native (ie C-based) python modules:

[google-appengine] Re: from . import module

2008-10-02 Thread Tony Arkles
Can you please post the directory structure and the goal? On Oct 2, 1:48 am, James [EMAIL PROTECTED] wrote: From a child directory, why can't a module in a parent or sibling directory be imported? Am I mistaken, or is this prohibited?   (not using Django, just webapp)

[google-appengine] Long key_name design question?

2008-10-02 Thread Tony Arkles
Hi everyone, I'm running into a bit of a snag, and I'm hoping that someone might be able to offer some suggestions. I've got a Kind that is keeping track of information about URLs (ratings, summary, etc). At first glance, it seems natural to key Entities based on the full URL -- this will

[google-appengine] Re: Long key_name design question?

2008-10-02 Thread Tony Arkles
://www.harleyquine.com/downloads/php-scripts/somefile.zip and turn it into: http://www.harleyquine.com/u/1 there are lots of this kind of services. 在 2008-10-2,下午11:55, Tony Arkles 写道: Hi everyone, I'm running into a bit of a snag, and I'm hoping that someone might be able to offer

[google-appengine] Re: Long key_name design question?

2008-10-02 Thread Tony Arkles
Ahhh... sigh. :) I was hoping to avoid doing that. It certainly adds a layer of complexity that I was hoping to avoid. On Oct 2, 10:49 am, José Oliver Segura [EMAIL PROTECTED] wrote: 2008/10/2 Tony Arkles [EMAIL PROTECTED]: I don't think that'll help. :( I'm trying to ensure

[google-appengine] Re: Long key_name design question?

2008-10-02 Thread Tony Arkles
function not likely outperform secure hash function implemented in c. This kind attack actually happened once on amazon's s3 service, which caused about 2 hours partial service interruption. On Oct 2, 4:43 pm, Tony Arkles [EMAIL PROTECTED] wrote: I don't think a *secure* hash function

[google-appengine] Re: Retrieving More than 1000 entities

2008-10-02 Thread Tony Arkles
The real goal is to figure out how *not* to do that. :) What are you trying to accomplish? On Oct 2, 6:15 pm, Venkatesh Rangarajan [EMAIL PROTECTED] wrote: Is it possible to retrieve more than 1000 entities ? Has anyone figured a way to do this ?

[google-appengine] Re: BadRequestError: Salary search with over 500K records

2008-09-25 Thread Tony Arkles
, Venkatesh Rangarajan [EMAIL PROTECTED] wrote: Exactly my thought... One cannot assume that the keys are in ascending order or Can we ? On Thu, Sep 25, 2008 at 7:42 AM, Tony Arkles [EMAIL PROTECTED] wrote: Thomas, I think that solution will only work if the items are being returned

[google-appengine] Re: Random Application Performance (and flakiness)

2008-09-17 Thread Tony Arkles
And... I have a solution. It appears that GAE resets sys.path before every invocation of main(). We were modifying the sys.path (adding a lib directory to it) at the module-level, so this would only take effect for the first request on a given Python instance. On Sep 15, 9:55 am, Tony Arkles

[google-appengine] Re: GAE reloads application?

2008-09-17 Thread Tony Arkles
This is purely for curiosity sake... what framework are you using that is 12MB zipped up? On Sep 17, 7:57 am, Микола [EMAIL PROTECTED] wrote: Yes, maybe you are right. On Sep 17, 4:18 pm, Wooble [EMAIL PROTECTED] wrote: On Sep 17, 6:04 am, Микола [EMAIL PROTECTED] wrote: I would first

[google-appengine] Random Application Performance (and flakiness)

2008-09-11 Thread Tony Arkles
Hi! We're in the process of learning GAE, and over the last two days have hit a wall. Before going too far into the description, here's the versions of things we're using: * Django 1.0 beta 2 * app-engine-django-helper r58 It started yesterday; we were getting strange import errors, and only

[google-appengine] Missing Entities in Admin Console Data Viewer

2008-09-11 Thread Tony Arkles
Hi! Right now my app has 4 different Entity kinds that get stored in the Datastore. In the Admin Console Data Viewer, I can see 3 of them, but not the 4th. The only thing that's different (other than the fact that they have different fields) is that the missing one uses a custom key_name. If

[google-appengine] Re: Missing Entities in Admin Console Data Viewer

2008-09-11 Thread Tony Arkles
.  Does the missing Kind have any entities stored in it?  I believe empty Kinds, even if they are defined in index.yaml, won't show up in the console until there are stored entities. On Sep 11, 12:56 pm, Tony Arkles [EMAIL PROTECTED] wrote: Hi! Right now my app has 4 different Entity kinds

[google-appengine] Re: Missing Entities in Admin Console Data Viewer

2008-09-11 Thread Tony Arkles
On Thu, Sep 11, 2008 at 1:31 PM, Tony Arkles [EMAIL PROTECTED] wrote: It's on the admin console in the App Engine.  The Feed Kind doesn't show up in either the Query the datastore or Create an Entity list of Kinds. Not sure if it makes any difference, but the feed object only has one