[google-appengine] Re: Max-age less than specified in app.yaml

2008-11-15 Thread Anders

Yes you are right, the documentation says: "Patterns are evaluated in
the order they appear in the app.yaml, from top to bottom. The first
mapping whose pattern matches the URL is the one used to handle the
request."

http://code.google.com/appengine/docs/configuringanapp.html

I also made a mistake in the declaration where static_dir: static
should be static_dir: static/images

On Nov 15, 5:08 am, "David Symonds" <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 15, 2008 at 2:03 PM, Anders <[EMAIL PROTECTED]> wrote:
> > - url: /static
> >  static_dir: static
>
> > - url: /static/images
> >  static_dir: static
> >  expiration: "1d"
>
> Try swapping the order of these two. I believe they are scanned in
> order, and the first match is used.
>
> Dave.
--~--~-~--~~~---~--~~
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: Security Alert when signing in with Internet Explorer 8

2008-11-15 Thread Anders

I tested uninstalling IE8 and installing the latest download from
Microsoft. The same result. The popup still appears twice both at sign
in and sign out. Sure, it's a Beta version and maybe I am being
prematurely frustrated here, but Internet Explorer is the most used
browser and version 8 will in a relatively near future be the standard
IE version.

In some cases it's even worse. When I visited Network Solutions'
website the popup appeared directly on their index page without even
trying to sign in! I'm pretty sure the people at Network Solutions are
not happy about that.

The problem may in practice not be so serious for large, well-known
and trusted sites like google.com and networksolutions.com but sites
using Google App Engine are generally not as well-known, and when
users are attacked by a popup with the title "Security Alert" that may
make many of them afraid to continue loading the page on lesser known
sites.

I was thinking about posting a thread about this on the IE8 beta
newsgroup but that would be like trying to teach a pig how to sing: it
only wastes your time and irritates the pig. Just kidding! :-) I'm
sure the people working at Microsoft know how to develop software, and
hopefully they will remove this popup 'feature' in the real version of
IE8. At least they should consider changing the title of the nasty
popup to something other than the alarming title: "Security Alert".
--~--~-~--~~~---~--~~
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: More CDN Posts

2008-11-15 Thread Sylvain

Hi, I've update the idea from ipsojobs.

Now it uses memcache and can handle many directories and file types.
You have to flush memcache, if you update a file

http://paste.blixt.org/2381

Didn't test on google server :)

Regards



On 6 nov, 16:39, Stephan Pötschner <[EMAIL PROTECTED]>
wrote:
> Hi.
>
> Just wanted to hint to some other articles suggesting to use Google
> App Engine asCDN:
>
> http://www.coderjournal.com/tags/google-app-engine/http://www.ipsojobs.com/blog/2008/06/17/how-to-create-a-simple-but-po...http://der-entreprenerd.blogspot.com/2008/11/faster-websites-using-yo...
--~--~-~--~~~---~--~~
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] NonAuthSubToken Error Whean using google data apis

2008-11-15 Thread Edmar

My code :

class GdataProxy(webapp.RequestHandler):
def get(self):
# Create a client class which will make HTTP requests with 
Google
Docs server.
gd_client = gdata.contacts.service.ContactsService()
if self.request.get("token"):
parameters = cgi.FieldStorage()
authsub_token = parameters['token']
gd_client.auth_token = authsub_token
gd_client.UpgradeToSessionToken()

else:
next = 'http://contexthack.appspot.com/proxy'
scope = 'http://www.google.com/m8/feeds/'
secure = False
session = True
authSubLogin = gd_client.GenerateAuthSubURL(next, 
scope, secure,
session)
self.response.out.write('Login'  )


After Login app engine show this error :

Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 499, in __call__
handler.get(*groups)
  File "/base/data/home/apps/contexthack/1.329305945994141299/
main.py", line 89, in get
gd_client.UpgradeToSessionToken()
  File "/base/data/home/apps/contexthack/1.329305945994141299/gdata/
service.py", line 601, in UpgradeToSessionToken
raise NonAuthSubToken
NonAuthSubToken

--~--~-~--~~~---~--~~
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] ContactsService, no attribute 'HTTPSConnection'

2008-11-15 Thread JP

Hi people,

I'm having problems when trying to retreive google contacts using
programatic login, let me show you my code...

class MainPage(webapp.RequestHandler):
  def get(self):

gd_client = gdata.contacts.service.ContactsService()
gd_client.email = '[EMAIL PROTECTED]'
gd_client.password = 'password'
gd_client.source = 'exampleCo-exampleApp-1'
gd_client.ProgrammaticLogin()


when the code executes I get the following error...

Traceback (most recent call last):
  File "D:\google_appengine\google\appengine\ext\webapp\__init__.py",
line 499, in __call__
handler.get(*groups)
  File "D:\google_appengine\src\gcontacts\main.py", line 22, in get
gd_client.ProgrammaticLogin()
  File "D:\google_appengine\src\gdata\gdata\service.py", line 491, in
ProgrammaticLogin
headers={'Content-Type':'application/x-www-form-urlencoded'})
  File "D:\google_appengine\src\gcontacts\atom\http.py", line 93, in
request
connection = self._prepare_connection(url, all_headers)
  File "D:\google_appengine\src\gcontacts\atom\http.py", line 234, in
_prepare_connection
return HttpClient._prepare_connection(self, url, headers)
  File "D:\google_appengine\src\gcontacts\atom\http.py", line 157, in
_prepare_connection
return httplib.HTTPSConnection(url.host)
AttributeError: 'module' object has no attribute 'HTTPSConnection'

Any idea?


I'm using programatic login because authsub login was giving me a lot
of headaches , maybe I need to study a more python/GAE.

if you have a working sample of google contacts service using authsub
login , that would be very useful too!

Thanks in advance.

--~--~-~--~~~---~--~~
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: Full Feeds for App Engine Cookbook

2008-11-15 Thread A . TNG

On Sat, Aug 30, 2008 at 8:54 AM, James <[EMAIL PROTECTED]> wrote:
>
> The App Engine cookbook seems like a good resource, but is not nearly
> as useful with the partial RSS feed.
>
> App Engine Team: Please offer a full feed. It shouldn't take long at
> all, and will be a big benefit for developers.

Totally agree. Partial RSS isn't handy. And one more request, could
you add a search input box to help search inside AppEngine cookbook?

-- 
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: Sending email's to multiple recipients..

2008-11-15 Thread bvelasquez

Oh! So obvious, thank you.

On Nov 5, 2:10 pm, "David Symonds" <[EMAIL PROTECTED]> wrote:
> On Wed, Nov 5, 2008 at 9:57 AM, bvelasquez <[EMAIL PROTECTED]> wrote:
> > I would like to send an email to multiple recipients with one call.
> > Is there a way to make sure the other email addresses are hidden
> > without sending an individual email to each?
>
> Try using the Bcc field.
>
> http://code.google.com/appengine/docs/mail/emailmessagefields.html
>
> Dave.
--~--~-~--~~~---~--~~
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] My logs are starting to bite into my storage quota. Can I reclaim this space?

2008-11-15 Thread Joel Odom

In my testing this morning, I've generated quite a few messages in my
logs.  I see that these apparently count toward my storage quota.  Is
there any way to reclaim this space?  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: suddenly, a new error in Cheetah in production GAE, doesn't occur in SDK

2008-11-15 Thread Marzia Niccolai
Hi Ben,

The recent maintenance included some changes to db.py, including adding a
has_key function, which seems to be causing the error with template
rendering.

The new SDK has not yet been released, but the easiest/quickest fix would be
to take the google.appengine.ext.db __init__.py file from 1.1.5, rename it,
and included it with your application.

Just change the imports, replacing from google.appengine.ext import db with
from Db import db (assuming you changed the name of __init__.py to Db.py,
for instance).

Hope this helps, sorry for the confusion!

-Marzia

On Fri, Nov 14, 2008 at 3:19 PM, Ben Adida <[EMAIL PROTECTED]> wrote:

>
> Hi Marzia,
>
> Thanks again for your help.
>
> I want to stress that this started happening with no change in code on
> my end. And it works just fine in the SDK. Was there a library change
> of any kind in GAE over the last few days?
>
> The source code for my app is entirely public. Here's the template in
> particular:
>
> http://github.com/benadida/helios/tree/master/templates/election/one.tmpl
>
> and the controller
>
> http://github.com/benadida/helios/tree/master/controllers/election.py
>
> line 395.
>
> Thanks again,
>
> -Ben
>
> On Nov 14, 3:01 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
> > Hi Ben,
> >
> > It's difficult to know what this stack trace means with out an idea of
> what
> > kind of obj the has_key method belongs to.  Would it be possible to at
> least
> > provide the template that is being rendered? And a description of what
> one
> > expects to be rendered?
> >
> > -Marzia
> >
> > On Fri, Nov 14, 2008 at 11:51 AM, Ben Adida <[EMAIL PROTECTED]> wrote:
> >
> > > Marzia,
> >
> > > It's a little difficult to cut down the example to size, because *all*
> > > of my pages that render content from the store are giving errors.
> > > Here's one URL where the issue comes up:
> >
> > >http://dev.heliosvoting.org/elections/ahBkZXYtaGVsaW9zdm90aW5ncg8LEgh.
> ..
> >
> > > and that will give you the complete stack trace.
> >
> > > Let me know if that helps, and thanks.
> >
> > > -Ben
> >
> > > On Nov 14, 9:49 am, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
> > > > Hi Ben,
> >
> > > > Can you provide a more complete example of the code that causes this
> > > issue?
> > > > As well as the complete stack trace.
> >
> > > > Thanks,
> > > > Marzia
> >
> > > > On Fri, Nov 14, 2008 at 9:40 AM, Ben Adida <[EMAIL PROTECTED]> wrote:
> >
> > > > > Suddenly, I'm getting the following errors on just about every
> page:
> >
> > > > > if hasattr(obj, 'has_key') and obj.has_key(key):
> > > > > TypeError: has_key() takes exactly 1 argument (2 given)
> >
> > > > > This is within the Cheetah templating library, _valueForName
> function.
> > > > > I haven't modified the Cheetah code, nor have I modified my
> > > > > application at GAE in the last few days.
> >
> > > > > And I can't reproduce this error in my local SDK installation.
> >
> > > > > Did GAE just change some internal libraries? I don't even
> understand
> > > > > why has_key() would ever take only one argument...
> >
>

--~--~-~--~~~---~--~~
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] HTML in DB Field and Display in Django Template

2008-11-15 Thread cb

I have some HTML in a DB field.  How can I get it to display as
rendered HTML in a Django template.

Is there a filter or tag that I should use before the {{variable}} tag
in the Django template?
--~--~-~--~~~---~--~~
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] CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread Josh Heitzman

Just started seeing this exception thrown from any attempt to write to
the datastore.

Anyone else seeing this at present, or is it just me?

Thanks,

Josh Heitzman
--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread plunchete

Same error here, in two diferent apps. I can´t deploy a new version
catching the error :(

On Nov 15, 11:19 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> Just started seeing this exception thrown from any attempt to write to
> the datastore.
>
> Anyone else seeing this at present, or is it just me?
>
> Thanks,
>
> Josh Heitzman
--~--~-~--~~~---~--~~
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: My logs are starting to bite into my storage quota. Can I reclaim this space?

2008-11-15 Thread Alexander Kojevnikov

> In my testing this morning, I've generated quite a few messages in my
> logs.  I see that these apparently count toward my storage quota.  Is
> there any way to reclaim this space?  Thanks.

Are you sure it's the logs? I asked Marzia a couple of month ago about
the logs and storage quota, here's the answer:
http://groups.google.com/group/google-appengine/browse_thread/thread/b901790e88cefb73/179413be0fa970b8


--~--~-~--~~~---~--~~
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] CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread russ.au

I'm getting this exception in my app engine app :
"CapabilityDisabledError: Datastore writes are temporarily disabled."

A search of this group suggest this only happens during scheduled
maintenance?
http://groups.google.com/group/google-appengine/browse_thread/thread/fc5e5275bc9943d4/0d35dcb4b9fa3cf6?lnk=gst&q=CapabilityDisabledError%3A+Datastore+writes+are+temporarily+disabled.#0d35dcb4b9fa3cf6

The data viewer is also giving me a "Server Error".

Are other people seeing the same errors?

Russ
--~--~-~--~~~---~--~~
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: My logs are starting to bite into my storage quota. Can I reclaim this space?

2008-11-15 Thread Alexander Kojevnikov

> Is there any way to reclaim this space?  Thanks.

...anyway, to reclaim the space you can try updating your app's
version and delete the old version after the new one is made default.
I've noticed that each version has its own log.
--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread [EMAIL PROTECTED]

My app (http://silicon.appspot.com/) is also down for any pages that
require Datastore writes. I also can't upload a new version of my
application it seems... Can anyone confirm this also!

So, in overview, the following don't work for me:

- Datastore writes
- Uploading new versions
- The data viewer

--~--~-~--~~~---~--~~
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] Speed up a slow development appserver by taming index history file

2008-11-15 Thread Nick Winter

We're going to a trade conference next week to demo our app, but we
can't afford $5000 for an Internet connection. "No problem," we
thought, "we'll just demo it off of the development appserver."

So we're trying to work around the sluggishness with which the dev
appserver responds to requests. Yet no matter what the request (a tiny
static file, an immediate HTTP response through Django, a memcache
hit, whatever), debug or not, with tons of
data or no data in the datastore, every response takes 1.5 seconds.
Brutal.

I finally figure out why the development appserver is so slow (and has
always been getting slower, I now realize): on every request, it's
spending nearly 1.5 seconds parsing our long local datastore history
file, even if the request doesn't explicitly query the datastore. I
hadn't even thought of this; we manage the size of the datastore file,
but apparently the history file had never been cleared. It had grown
to 813 KB with 11315 queries (and that's from my machine alone).

So yeah, that was it. Everything runs nigh-instantly now. I haven't
seen any references to this problem elsewhere, or any warnings that a
long history file can impact performance, so maybe this'll help
someone avoid our fate. Perhaps it can be mentioned in the docs.
--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread Josh Heitzman

Good call.  Looks like there scheduled maintenance now per
http://groups.google.com/group/google-appengine-downtime-notify/browse_frm/thread/455b69c7bf3b0de

Josh

On Nov 15, 2:24 pm, "russ.au" <[EMAIL PROTECTED]> wrote:
> I'm getting this exception in my app engine app :
> "CapabilityDisabledError: Datastore writes are temporarily disabled."
>
> A search of this group suggest this only happens during scheduled
> maintenance?http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> The data viewer is also giving me a "Server Error".
>
> Are other people seeing the same errors?
>
> Russ
--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread maverick

I have same problem, they are maintenance system right now, should be
fine in 20 min. :)



On Nov 15, 10:29 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> Good call.  Looks like there scheduled maintenance now 
> perhttp://groups.google.com/group/google-appengine-downtime-notify/brows...
>
> Josh
>
> On Nov 15, 2:24 pm, "russ.au" <[EMAIL PROTECTED]> wrote:
>
> > I'm getting this exception in my app engine app :
> > "CapabilityDisabledError: Datastore writes are temporarily disabled."
>
> > A search of this group suggest this only happens during scheduled
> > maintenance?http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > The data viewer is also giving me a "Server Error".
>
> > Are other people seeing the same errors?
>
> > Russ
--~--~-~--~~~---~--~~
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: HTML in DB Field and Display in Django Template

2008-11-15 Thread Alexander Kojevnikov

> I have some HTML in a DB field.  How can I get it to display as
> rendered HTML in a Django template.
>
> Is there a filter or tag that I should use before the {{variable}} tag
> in the Django template?

In Django 0.96 (which is built into appengine) you need to use the
escape filter:

{{ variable|escape }}

In Djange 1.0 all variables are automatically escaped:
http://docs.djangoproject.com/en/dev/topics/templates/#automatic-html-escaping


--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread plunchete

So - We just have to be patient :-)

On Nov 15, 11:29 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> Good call.  Looks like there scheduled maintenance now 
> perhttp://groups.google.com/group/google-appengine-downtime-notify/brows...
>
> Josh
>
> On Nov 15, 2:24 pm, "russ.au" <[EMAIL PROTECTED]> wrote:
>
> > I'm getting this exception in my app engine app :
> > "CapabilityDisabledError: Datastore writes are temporarily disabled."
>
> > A search of this group suggest this only happens during scheduled
> > maintenance?http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > The data viewer is also giving me a "Server Error".
>
> > Are other people seeing the same errors?
>
> > Russ
--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread Alexander Kojevnikov

I see the error for more than 30 minutes now, instead of the planned
10-20 minutes per app...

On Nov 16, 9:31 am, maverick <[EMAIL PROTECTED]> wrote:
> I have same problem, they are maintenance system right now, should be
> fine in 20 min. :)
>
> On Nov 15, 10:29 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > Good call.  Looks like there scheduled maintenance now 
> > perhttp://groups.google.com/group/google-appengine-downtime-notify/brows...
>
> > Josh
>
> > On Nov 15, 2:24 pm, "russ.au" <[EMAIL PROTECTED]> wrote:
>
> > > I'm getting this exception in my app engine app :
> > > "CapabilityDisabledError: Datastore writes are temporarily disabled."
>
> > > A search of this group suggest this only happens during scheduled
> > > maintenance?http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > > The data viewer is also giving me a "Server Error".
>
> > > Are other people seeing the same errors?
>
> > > Russ
--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread plunchete

Yes Alexander, but we have to be patient. They are working as fast as
posible I'm sure.

On Nov 15, 11:35 pm, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> I see the error for more than 30 minutes now, instead of the planned
> 10-20 minutes per app...
>
> On Nov 16, 9:31 am, maverick <[EMAIL PROTECTED]> wrote:
>
> > I have same problem, they are maintenance system right now, should be
> > fine in 20 min. :)
>
> > On Nov 15, 10:29 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > > Good call.  Looks like there scheduled maintenance now 
> > > perhttp://groups.google.com/group/google-appengine-downtime-notify/brows...
>
> > > Josh
>
> > > On Nov 15, 2:24 pm, "russ.au" <[EMAIL PROTECTED]> wrote:
>
> > > > I'm getting this exception in my app engine app :
> > > > "CapabilityDisabledError: Datastore writes are temporarily disabled."
>
> > > > A search of this group suggest this only happens during scheduled
> > > > maintenance?http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > > > The data viewer is also giving me a "Server Error".
>
> > > > Are other people seeing the same errors?
>
> > > > Russ
--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.

2008-11-15 Thread Alexander Kojevnikov

OK, it's back to normal

On Nov 16, 9:35 am, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> I see the error for more than 30 minutes now, instead of the planned
> 10-20 minutes per app...
>
> On Nov 16, 9:31 am, maverick <[EMAIL PROTECTED]> wrote:
>
> > I have same problem, they are maintenance system right now, should be
> > fine in 20 min. :)
>
> > On Nov 15, 10:29 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
>
> > > Good call.  Looks like there scheduled maintenance now 
> > > perhttp://groups.google.com/group/google-appengine-downtime-notify/brows...
>
> > > Josh
>
> > > On Nov 15, 2:24 pm, "russ.au" <[EMAIL PROTECTED]> wrote:
>
> > > > I'm getting this exception in my app engine app :
> > > > "CapabilityDisabledError: Datastore writes are temporarily disabled."
>
> > > > A search of this group suggest this only happens during scheduled
> > > > maintenance?http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > > > The data viewer is also giving me a "Server Error".
>
> > > > Are other people seeing the same errors?
>
> > > > Russ
--~--~-~--~~~---~--~~
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: Dashboard - Logs - How to clear them? - What is the Date-Time reference?

2008-11-15 Thread Joel Odom

Is this still the fact?  I'd bet my house that logs count against
quota because this AM I was at about 0.5 MB of disk usage.  I created
*lots* of log messages and ended up around 1.1 MB used with only a few
new data store entities.



On Sep 23, 12:47 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Currently, logs do not count towards storage quota.
>
> -Marzia
>
> On Mon, Sep 22, 2008 at 7:06 PM, Alexander Kojevnikov <
>
> [EMAIL PROTECTED]> wrote:
>
> > > currently there is no way to clear log messages
>
> > Do the logs count towards the storage quota?
--~--~-~--~~~---~--~~
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: My logs are starting to bite into my storage quota. Can I reclaim this space?

2008-11-15 Thread Joel Odom
Thanks, Alexander.  I don't exactly know what's up. I'd bet my house that
logs count against quota because this AM I was at about 0.5 MB of disk
usage. I created *lots* of log messages and ended up around 1.1 MB used with
only a few new data store entities.
On Sat, Nov 15, 2008 at 5:27 PM, Alexander Kojevnikov <
[EMAIL PROTECTED]> wrote:

>
> > Is there any way to reclaim this space?  Thanks.
>
> ...anyway, to reclaim the space you can try updating your app's
> version and delete the old version after the new one is made default.
> I've noticed that each version has its own log.
> >
>


-- 
http://giscoder.blogspot.com/

--~--~-~--~~~---~--~~
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: My logs are starting to bite into my storage quota. Can I reclaim this space?

2008-11-15 Thread Alexander Kojevnikov

> Thanks, Alexander.  I don't exactly know what's up. I'd bet my house that
> logs count against quota because this AM I was at about 0.5 MB of disk
> usage. I created *lots* of log messages and ended up around 1.1 MB used with
> only a few new data store entities.

Did you create and then delete a lot of entities? If you did, it could
be issue:
http://code.google.com/p/googleappengine/issues/detail?id=452

--~--~-~--~~~---~--~~
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: HTML in DB Field and Display in Django Template

2008-11-15 Thread cb

I must still be doing something wrong..

If my stored string is  ->   hello

If I include {{item.text}} in my template I get   ->hello

and if I include {{item.text|escape}} I get ->hello

but I am trying to achieve a bold "hello"

On Nov 15, 5:31 pm, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> > I have some HTML in a DB field.  How can I get it to display as
> > rendered HTML in a Django template.
>
> > Is there a filter or tag that I should use before the {{variable}} tag
> > in the Django template?
>
> In Django 0.96 (which is built into appengine) you need to use the
> escape filter:
>
> {{ variable|escape }}
>
> In Djange 1.0 all variables are automatically 
> escaped:http://docs.djangoproject.com/en/dev/topics/templates/#automatic-html...
--~--~-~--~~~---~--~~
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: HTML in DB Field and Display in Django Template


> I must still be doing something wrong..
>
> If my stored string is  ->   hello
>
> If I include {{item.text}} in my template I get   ->hello
>
> and if I include {{item.text|escape}} I get ->hello b>
>
> but I am trying to achieve a bold "hello"

Are you using Django 1.0?

It that case you should un-escape with the "safe" filter:

{{ item.text|safe }}

--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.


Are scheduled maintenances only something temporary? Or will they be a
standard part of Google App Engine? If so, then the application code
needs to be modified to catch CapabilityDisabledError everywhere store/
delete is done to prevent user-unfriendly error messages. And are
there other errors that can appear in scheduled maintenance that need
to be caught in a similar way, such as read errors?
--~--~-~--~~~---~--~~
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: My logs are starting to bite into my storage quota. Can I reclaim this space?

Yes, this is entirely possible.  I did a lot of creating and deleting
because I was doing load testing.
Will that space be reclaimed?


On Sat, Nov 15, 2008 at 5:45 PM, Alexander Kojevnikov <
[EMAIL PROTECTED]> wrote:

>
> > Thanks, Alexander.  I don't exactly know what's up. I'd bet my house that
> > logs count against quota because this AM I was at about 0.5 MB of disk
> > usage. I created *lots* of log messages and ended up around 1.1 MB used
> with
> > only a few new data store entities.
>
> Did you create and then delete a lot of entities? If you did, it could
> be issue:
> http://code.google.com/p/googleappengine/issues/detail?id=452
>
> >
>


-- 
http://giscoder.blogspot.com/

--~--~-~--~~~---~--~~
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 find the total number of records in Datastore


Dear Sal

Can you explain why you disagree ?

In Mysql, you just need two lines to find the total number of records
in a table:
$query = mysql_query("SELECT * FROM student");
$number=mysql_num_rows($query);

Thank you.

G

On Nov 14, 2:13 pm, Sal <[EMAIL PROTECTED]> wrote:
> I would have to disagree on this.
>
> On Nov 10, 1:56 pm, cm_gui <[EMAIL PROTECTED]> wrote:
>
> > Storing and maintaining a counter for thetotal
> > no. ofrecordsis just too much for such a simple task.
>
> > Can somebody advise?
>
> > Thank you.
--~--~-~--~~~---~--~~
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: My logs are starting to bite into my storage quota. Can I reclaim this space?


> Yes, this is entirely possible.  I did a lot of creating and deleting
> because I was doing load testing.
> Will that space be reclaimed?

That's the question for Google engineers. But considering the issue is
"Accepted" and has an internal log number, it should be fixed soon.



--~--~-~--~~~---~--~~
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] WindowsError: [Error 183] Cannot create a file when that file already exists


Hi All

I am writing an application that uploads a file and then imports the
data in the file to the datastore.
Sometimes it works.  But sometimes, when I run it on the development
server, I get this error:

WindowsError: [Error 183] Cannot create a file when that file already
exists

I did a --clear_datastore but it didn't help.
I have not tried uploading it to GAE yet.


Thank you.

G




--


Traceback (most recent call last):
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py", line 501, in __call__
handler.post(*groups)
  File "c:\fx001\fxaddress.py", line 426, in post
fxbook.put()
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\db\__init__.py", line 618, in put
return datastore.Put(self._entity)
  File "C:\Program Files\Google\google_appengine\google\appengine\api
\datastore.py", line 160, in Put
apiproxy_stub_map.MakeSyncCall('datastore_v3', 'Put', req, resp)
  File "C:\Program Files\Google\google_appengine\google\appengine\api
\apiproxy_stub_map.py", line 46, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
  File "C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_file_stub.py", line 305, in MakeSyncCall
(getattr(self, "_Dynamic_" + call))(request, response)
  File "C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_file_stub.py", line 353, in _Dynamic_Put
self.__WriteDatastore()
  File "C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_file_stub.py", line 239, in __WriteDatastore
self.__WritePickled(encoded, self.__datastore_file)
  File "C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_file_stub.py", line 291, in __WritePickled
os.rename(tmpfile.name, filename)
WindowsError: [Error 183] Cannot create a file when that file already
exists

--~--~-~--~~~---~--~~
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: CapabilityDisabledError: Datastore writes are temporarily disabled.


I have now added exception handling and user-friendly messages to my
application. It feels safer that way. It's probably difficult even for
the Google App Engine team to exactly predict when and if future
maintenance will be needed (at least during the preview release phase).
--~--~-~--~~~---~--~~
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 find the total number of records in Datastore


appengine is good at things which are really really hard to do in
traditional mysql, but a few things which are easy in mysql are
significantly more complicated in appengine. Software technology
history shows that this has mostly been the case when new
revolutionary technology has been introduced. Choose the right tool
for the right job now, or wait until appengine has been better adapted
to the typical developer workflow (or will the developers work flow
adapt to appengine ???)

just my thoughts

regards
Roberto

On Nov 15, 10:34 pm, cm_gui <[EMAIL PROTECTED]> wrote:
> Dear Sal
>
> Can you explain why you disagree ?
>
> In Mysql, you just need two lines to find the total number of records
> in a table:
> $query = mysql_query("SELECT * FROM student");
> $number=mysql_num_rows($query);
>
> Thank you.
>
> G
>
> On Nov 14, 2:13 pm, Sal <[EMAIL PROTECTED]> wrote:
>
> > I would have to disagree on this.
>
> > On Nov 10, 1:56 pm, cm_gui <[EMAIL PROTECTED]> wrote:
>
> > > Storing and maintaining a counter for thetotal
> > > no. ofrecordsis just too much for such a simple task.
>
> > > Can somebody advise?
>
> > > Thank you.
--~--~-~--~~~---~--~~
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: HTML in DB Field and Display in Django Template


No,
I am just using the built-in 0.96 templating system and the 'safe'
filter does not work in that version.



On Nov 15, 6:10 pm, Alexander Kojevnikov <[EMAIL PROTECTED]>
wrote:
> > I must still be doing something wrong..
>
> > If my stored string is  ->   hello
>
> > If I include {{item.text}} in my template I get   ->    hello
>
> > and if I include {{item.text|escape}} I get ->    hello > b>
>
> > but I am trying to achieve a bold "hello"
>
> Are you using Django 1.0?
>
> It that case you should un-escape with the "safe" filter:
>
>     {{ item.text|safe }}
--~--~-~--~~~---~--~~
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: HTML in DB Field and Display in Django Template


> No,
> I am just using the built-in 0.96 templating system and the 'safe'
> filter does not work in that version.

Could you post here your template and the code that renders it?

I see two reasons why it doesn't work as expeced:

1. Your html is already escaped in the datastore.
2. Your Content-Type is text/plain instead of text/html.




--~--~-~--~~~---~--~~
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 find the total number of records in Datastore


Having a single counter for records in a distributed system will
create a bottleneck when the application needs to scale to handle an
increased load (such as an increased number of simultaneous users).
One solution is to use a collection of counters (called a sharded
counter in the video below) to solve the load scaling problem. This is
described from about 0:40:40 in this video:

http://www.youtube.com/watch?v=FZ-aagsMv40

The Google App Engine team could perhaps have included a general
counter in the API, but one risk is that application developers then
would overuse counters without having design for distributed systems
in mind.

--~--~-~--~~~---~--~~
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] Is it a webserver bug!?


My app use a para only, but if I supply only one, no record found. If
I supply 2 or more paras, there are records found.

eg. http://1.latest.cele.appspot.com/product/list?cellId=601&name=a

  return 2 records, but

  http://1.latest.cele.appspot.com/product/list?cellId=601

  return none.

  I only use 'cellId' as para in my application.

Is it a webserver bug of appengine!?
--~--~-~--~~~---~--~~
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: Observing GAE Scalability (or trying to ...)


David,

It sounds like a very interesting and useful experiment you're
contemplating.  I can't figure out why some people are so negative on
this, unless they're insiders and afraid of some unfortunate truths
being discovered, which I certainly hope is not the case.  This is
about discovery and the pursuit of knowledge, in the context of a
brand new and exciting technology platform.  What in the world is
wrong with that?

It may be that your specific 3 tests aren't everybody's ideal tests to
run.  Then how about people suggest other tests instead of shooting
down the whole idea?  And it is most definitely NOT necessary to build
a complex application to do benchmarking comparisons. In fact it would
be counter-productive to do so, as it would take extra development
time and make identifying actual bottlenecks cumbersome.

Please continue your work and share the results with us.  I'm sure the
non-vocal majority will appreciate the fruits of your labor, and I
hope the vocal minority can try to be constructive in their
criticisms.


On Nov 7, 11:59 am, David Underhill <[EMAIL PROTECTED]> wrote:
> I have read all about GAE, watched the interesting Google I/O videos,
> and written some simple (toy) applications.  Now, I would really like
> to be able to demonstrate to myself, with a simple toy application,
> that GAE can out-scale what a single dedicated host can do.
>
> When I set off on this experiment, I was expecting it to be easy to
> demonstrate that GAE can handle some request pattern which my PC
> (temporarily running as a LAMP [with mod_python] box) would grind to a
> halt on.
>
> Perhaps my results are just an artifact of the current quotas, but
> more likely my test applications are stressing scalability in the
> directions GAE scales.  I'll describe my current approach and let
> people here help point in the right direction (hopefully).  I use a
> program like htttperf to spawn requests from a cluster of (~20)
> machines.  I specify a page to request, the target request per second
> rate, and the duration of the test.  I also specify a time period over
> which the requests per second rate grows linearly from 0 to the
> target.  I'm currently trying parameters in the range of 10-20 reqs/
> sec for a duration of a few minutes after a ramp-up of a few minutes.
>
> I have tried this with three separate toy applications:
>    1) A python script which sleeps, say for 0.1sec, then returns a
> trivial page.  This was a silly idea b/c the PC simply spawns tons of
> processes which are doing nothing and easily keeps up with even quite
> high reqs per sec.  GAE dies much sooner since sleeping seems to count
> against your CPU time.
>
>    2) A python script which generates a random number through an
> process which is intentionally slow -- so that it takes about 0.1sec
> on both my PC and GAE for an individual request.  At >20 reqs/sec, it
> seems like the (dual-corE) PC should die as requests come in faster
> than it can handle them while GAE should be able to scale -- but GAE
> ends up going over quota.  Maybe I need to revisit the ramping up
> process and make sure it is really working like I think?
>
>    3) Use a DB with string-integer pairs.  The strings are an average
> of 50B.  Have a python script which queries for the first N records
> greater than some random string.  Then return the sum of some of the
> integers from these N records (randomly chosen).  The PC is running
> MySQL and does the same select, and does the summation by iterating
> over the N records like the GAE app to be "fair" (SQL could probably
> be even faster by doing the aggregation in the query rather than in
> python).  With N=20 and the DB having about 300k records, GAE
> unfortunately times out while the PC version is almost instantaneous
> (for individual requests).
>
> What ideas do you have for demonstrating that GAE can scale better
> than PC, at least under certain conditions?  I have no doubt that I'm
> missing something.  For now, I'm going to focus on the ramp-up portion
> and make sure that's working correctly, though I imagine there are
> probably better approaches than the above three for trying to
> demonstrate this and I'd love to hear your thoughts.
>
> :)  Thanks.
>
> ~ David
--~--~-~--~~~---~--~~
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 find the total number of records in Datastore


On Sun, Nov 16, 2008 at 11:34 AM, cm_gui <[EMAIL PROTECTED]> wrote:

> In Mysql, you just need two lines to find the total number of records
> in a table:
> $query = mysql_query("SELECT * FROM student");
> $number=mysql_num_rows($query);

Try running that when your MySQL table has several million records,
split over hundreds of machines.


Dave.

--~--~-~--~~~---~--~~
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: Observing GAE Scalability (or trying to ...)



On Nov 9, 2:21 pm, Ross Ridge <[EMAIL PROTECTED]> wrote:
> Personally, I'd be more concerned about reliabilty than scalabity.
> Not all of Google service's have a great track record in that respect.

I agree:  reliability is even more important than scalability.  So far
GAE has unfortunately appeared fairly unreliable (particularly for me
with uploading new app versions).

Hopefully though we can pursue metrics for reliability and scalability
simultaneously, and hopefully the Google team is concurrently seeking
to improve both.


--~--~-~--~~~---~--~~
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 find the total number of records in Datastore


On Sun, Nov 16, 2008 at 12:34 AM, cm_gui <[EMAIL PROTECTED]> wrote:
>
> Dear Sal
>
> Can you explain why you disagree ?
>
> In Mysql, you just need two lines to find the total number of records
> in a table:
> $query = mysql_query("SELECT * FROM student");
> $number=mysql_num_rows($query);

And that is a REALLY bad way of doing it!

"SELECT COUNT(*) FROM student"

is much better.




>
> Thank you.
>
> G
>
> On Nov 14, 2:13 pm, Sal <[EMAIL PROTECTED]> wrote:
>> I would have to disagree on this.
>>
>> On Nov 10, 1:56 pm, cm_gui <[EMAIL PROTECTED]> wrote:
>>
>> > Storing and maintaining a counter for thetotal
>> > no. ofrecordsis just too much for such a simple task.
>>
>> > Can somebody advise?
>>
>> > Thank you.
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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: Observing GAE Scalability (or trying to ...)


I guess it's difficult to do a really accurate scalability test for
simulating a huge number of simultaneous users.

I heard one interesting comment in a video (don't remember which
video) about Google App Engine though. To make an accurate load test
on Google App Engine it has to be done over a period of time that
allows Google App Engine to spawn new server instances. To just go
from small load to suddenly hitting the App Engine with a massive
number of hits will not give an accurate results since the App Engine
must be given some time to adapt to the increased load (to spawn new
server instances).

I can imagine something like a binary tree of servers. At low load
only one server is handling requests. When the load increases above a
certain threshold then two new servers are activated to handle
requests, and so on in a binary tree fashion. This is just a guess.
How the scalability is done in GAE may be something entirely
different, but as I understand it GAE has some form of gradual growth
of scalability.
--~--~-~--~~~---~--~~
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] Google Apps Account + Google Account = Missing apps?


Hey :-)


I used to (up until yesterday) have two different accounts. One is
this one, which was a pure Google Apps account. The other is a pure
Google account (quite an old GMail address).

I don't use my GMail account anymore, because I have GMail on my
Google Apps account. I didn't know you could create real Google
accounts from non-GMail domains (sorry, I know this sounds stupid),
but I found out today and I did.

In an effort to get rid of the last thing I was using my GMail account
for (my GAE app), I added my Google Apps account (the one I'm posting
with) as a developer to my app.

I got the confirmation mail and used the Google account activation
link, not the Google Apps one (after all, it's a Google account-linked
GAE app, not a Google Apps one -- it's hosted at appspot.com).

When I log in on my original account, I see both accounts as
developers on my app. When I log in on this account, I see zero apps
when I go to the admin interface (http://appspot.google.com).

I'm not 100% sure that's what's going on, but it's the best reasonable
cause I can come up with.

Is it even possible to use this email as a real, proper Google
account?


Thanks for reading,
Laurens

--~--~-~--~~~---~--~~
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] How do I load a HTML index file from Python


I am a complete novice at using python, but can someone help me.

I want to load a Index.html home page to my Google App Engine page
using python.

based on the Google App Engine tutorial, I have this python script,
but want the page to load a HTML file called 'index.html', what do I
do?

My Python script


from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
class MainPage(webapp.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, webapp World!')
application = webapp.WSGIApplication(
[('/', MainPage)],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()



--~--~-~--~~~---~--~~
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: Google Apps Account + Google Account = Missing apps?


If you'd like to sign in to Google App Engine with your Google Apps
account, use the following URL:

http://appengine.google.com/a//

On Nov 16, 1:22 pm, lvh <[EMAIL PROTECTED]> wrote:
> Hey :-)
>
> I used to (up until yesterday) have two different accounts. One is
> this one, which was a pure Google Apps account. The other is a pure
> Google account (quite an old GMail address).
>
> I don't use my GMail account anymore, because I have GMail on my
> Google Apps account. I didn't know you could create real Google
> accounts from non-GMail domains (sorry, I know this sounds stupid),
> but I found out today and I did.
>
> In an effort to get rid of the last thing I was using my GMail account
> for (my GAE app), I added my Google Apps account (the one I'm posting
> with) as a developer to my app.
>
> I got the confirmation mail and used the Google account activation
> link, not the Google Apps one (after all, it's a Google account-linked
> GAE app, not a Google Apps one -- it's hosted at appspot.com).
>
> When I log in on my original account, I see both accounts as
> developers on my app. When I log in on this account, I see zero apps
> when I go to the admin interface (http://appspot.google.com).
>
> I'm not 100% sure that's what's going on, but it's the best reasonable
> cause I can come up with.
>
> Is it even possible to use this email as a real, proper Google
> account?
>
> Thanks for reading,
> Laurens
--~--~-~--~~~---~--~~
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] getting DeadlineExceededError posting facebook from GAE


any idea what I'm doing wrong?  GAE log said this operation too >18k
msecs.  here's there error:

DeadlineExceededError at /mybagapp/post_bag_item
Request Method: POST
Request URL:http://mybagdev.appspot.com/mybagapp/post_bag_item
Exception Type: DeadlineExceededError
Exception Value:
Exception Location: /base/python_lib/versions/1/google/appengine/
runtime/apiproxy.py in Wait, line 161

Traceback (most recent call last):
File "/base/python_lib/versions/1/django/core/handlers/base.py" in
get_response
  77. response = callback(request, *callback_args, **callback_kwargs)
File "/base/data/home/apps/mybagdev/1.329321030374107277/mybag/
views.py" in post_bag_item
  193. curr_user_obj.publish_user_action(request.POST,
bag_item.item_name)
File "/base/data/home/apps/mybagdev/1.329321030374107277/mybag/
user.py" in publish_user_action
  107. call_id = True )
File "/base/data/home/apps/mybagdev/1.329321030374107277/mybag/
gminifb.py" in call
  170. response = urlfetch.fetch(_fbUrl, payload=args,
method=urlfetch.POST, headers = {'Content_type': 'application/
x_www_form_urlencoded'})
File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py" in
fetch
  257. apiproxy_stub_map.MakeSyncCall('urlfetch', 'Fetch', request,
response)
File "/base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py" in MakeSyncCall
  46. stub.MakeSyncCall(service, call, request, response)
File "/base/python_lib/versions/1/google/appengine/runtime/
apiproxy.py" in MakeSyncCall
  245. rpc.Wait()
File "/base/python_lib/versions/1/google/appengine/runtime/
apiproxy.py" in Wait
  161. rpc_completed = _apphosting_runtime___python__apiproxy.Wait
(self)

  DeadlineExceededError at /mybagapp/post_bag_item

--~--~-~--~~~---~--~~
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] creating a db.Model with a non-existent parent


In http://code.google.com/appengine/docs/datastore/keysandentitygroups.html

"You can create an entity with an ancestor path without first creating
the parent entity. To do so, you create a Key for the ancestor using a
kind and key name, then use it as the parent of the new entity. All
entities with the same root ancestor belong to the same entity group,
whether or not the root of the path represents an actual entity."

>From the Model discussion in
http://code.google.com/appengine/docs/datastore/modelclass.html

"parent
The Model instance or Key instance for the entity that is the new
entity's parent."


class A(db.Model):
pass

class B(db.Model):
pass

parent = db.Key.from_path('A', 'hh')

# parent is a db.Key so why does the next line fail?
b1 = B(key_name='andy', parent=parent)

C:\Program Files\Google\google_appengine_1.1.5\google\appengine\ext\db
\__init__.py in __init__(self=,
parent=datastore_types.Key.from_path('A', u'hh', _app=u'imagestew'),
key_name='andy', _app=None, **kwds={})

type 'exceptions.TypeError'>: Expected Model type; received
aglpbWFnZXN0ZXdyCQsSAUEiAmhoDA (is Key)
  args = ('Expected Model type; received
aglpbWFnZXN0ZXdyCQsSAUEiAmhoDA (is Key)',)
  message = 'Expected Model type; received
aglpbWFnZXN0ZXdyCQsSAUEiAmhoDA (is Key)'



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---