[google-appengine] Re: Undocumented: Datastore Entities Fetched quota; Production App Offline!

2009-10-27 Thread Jason Smith

For the record, Google bumped this quota and the app is fine just now.
I'll be adding some pre-fetching and memcaching obviously though and
writing up the architecture I used on this group shortly. (I still
like it despite the quota issue.)

Thank you very much to the Googler who helped us out! (Not sure if
he'd want me to identify him.)

On Oct 28, 9:43 am, Jason Smith  wrote:
> My app is totally offline and will be for several hours more due to a
> completely undocumented quota restriction.
>
> I woke up this morning and my app is down all of the sudden with a
> hitherto unknown quota category maxed out: Datastore Entities Fetched.
> This is in the special "Other Quotas with Warnings" group which only
> appear when it's too late. I've searched for this quota type, and also
> the maximum number (41472) and I get zero results.
>
> This is completely terrible. This is completely unexpected. It is such
> a total shock to wake up and have hundreds of thousands of users
> unable to log in because of something I could have prevented *if I had
> known about it*!
>
> If anybody from Google sees this I would appreciate assistance as soon
> as possible.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Deadlineexceedederror

2009-10-27 Thread Jason C

It might help to star this:

  http://code.google.com/p/googleappengine/issues/detail?id=1695

Though I think there is better response on the groups than in the
Issue Tracker.

j

On Oct 27, 9:20 pm, Jason C  wrote:
> We too are getting these on many of our apps (myfrontsteps, steprep,
> vendastaweb).
>
> We've even built out a simple, simple app on webapp and are still
> seeing DeadlineExceededErrors occasionally.
>
> It's _very_ detrimental to user adoption. I really can't stress this
> enough.
>
> j
>
> On Oct 27, 9:09 pm, GAEfan  wrote:
>
>
>
> > Yes, I have been getting these for many days now.  I even get
> > DeadlineExceededError when trying to serve up a simple login page.
>
> > I hope this is something Google is working on, as this pretty much
> > kills the app for commercial purposes.
>
> > I have a customer from China trying to sign in.  They get a "Server
> > taking too long to respond" error, and their request never even shows
> > up in my Logs.
>
> > One of my pages timed out 100% of the time today.  Another 86% of the
> > time.
>
> > Obviously, this is unacceptable.  Is there some maintenance or
> > upgrading going on?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Deadlineexceedederror

2009-10-27 Thread Jason C

We too are getting these on many of our apps (myfrontsteps, steprep,
vendastaweb).

We've even built out a simple, simple app on webapp and are still
seeing DeadlineExceededErrors occasionally.

It's _very_ detrimental to user adoption. I really can't stress this
enough.

j

On Oct 27, 9:09 pm, GAEfan  wrote:
> Yes, I have been getting these for many days now.  I even get
> DeadlineExceededError when trying to serve up a simple login page.
>
> I hope this is something Google is working on, as this pretty much
> kills the app for commercial purposes.
>
> I have a customer from China trying to sign in.  They get a "Server
> taking too long to respond" error, and their request never even shows
> up in my Logs.
>
> One of my pages timed out 100% of the time today.  Another 86% of the
> time.
>
> Obviously, this is unacceptable.  Is there some maintenance or
> upgrading going on?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Deadlineexceedederror

2009-10-27 Thread GAEfan

Yes, I have been getting these for many days now.  I even get
DeadlineExceededError when trying to serve up a simple login page.

I hope this is something Google is working on, as this pretty much
kills the app for commercial purposes.

I have a customer from China trying to sign in.  They get a "Server
taking too long to respond" error, and their request never even shows
up in my Logs.

One of my pages timed out 100% of the time today.  Another 86% of the
time.

Obviously, this is unacceptable.  Is there some maintenance or
upgrading going on?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Undocumented: Datastore Entities Fetched quota; Production App Offline!

2009-10-27 Thread Jason Smith

My app is totally offline and will be for several hours more due to a
completely undocumented quota restriction.

I woke up this morning and my app is down all of the sudden with a
hitherto unknown quota category maxed out: Datastore Entities Fetched.
This is in the special "Other Quotas with Warnings" group which only
appear when it's too late. I've searched for this quota type, and also
the maximum number (41472) and I get zero results.

This is completely terrible. This is completely unexpected. It is such
a total shock to wake up and have hundreds of thousands of users
unable to log in because of something I could have prevented *if I had
known about it*!

If anybody from Google sees this I would appreciate assistance as soon
as possible.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to delete a column in datastore ?

2009-10-27 Thread Tom Wu
Hi Adam,

I do remove the column from my model definition and update the every row in
this model. But it still exist in data viewer.


Regards
Tom Wu



2009/10/28 Adam 

>
> Just remove the column from your model definition. You can't actually
> delete the column, but it will no longer appear in your model objects.
>
> On Oct 27, 1:26 pm, Tom Wu  wrote:
> > Hi all,
> >
> > How to delete a column in datastore ?
> >
> > Best Regards
> > Tom Wu
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Understanding concurrent updates

2009-10-27 Thread dburns

I'm trying to make sure I understand issues surrounding multiple
concurrent users.  Take the example from
http://code.google.com/appengine/docs/python/datastore/transactions.html#Uses_For_Transactions

def increment_counter(key, amount):
  obj = db.get(key)
  obj.counter += amount
  obj.put()

The text makes it clear that a naive implementation like that is
susceptible to a collision between two concurrent users (meaning two
separate instances of the python script running at the same time).
The second put() clobbers the results of the first one.

I'm unclear on how memcache fits in.  If those two concurrent
instances both instead call cached_obj=memcache.get("my_key") and get
a result back from some earlier memcache.add("my_key", my_object), are
they susceptible to the same sort of collision if each instance does
something like cached_obj.counter += amount?

I kind of thought memcache worked seamlessly across instances, but I
don't see how in this case.

Thanks for any clarification you can provide.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Deploying from Eclipse: com.google.appengine.tools.admin.AdminException: Unable to update app: Read timed out

2009-10-27 Thread shiftynick

Anybody else getting this today when trying to deploy with the Eclipse
plugin?

com.google.appengine.tools.admin.AdminException: Unable to update app:
Read timed out

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Django/Jython doesn't work on Google App Engine

2009-10-27 Thread Olli Wang

Hi, I successfully created a WAR file which was able to run on Apache
Tomcat with no problem. But when I uploaded it to the Google App
Engine, it shows me a error message like this:
Could not initialize class org.python.modules.thread.thread
RequestURI=/
Caused by:
java.lang.NoClassDefFoundError: Could not initialize class
org.python.modules.thread.thread
at java.lang.Class.forName0(Native Method)
...
...
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
I thought this happened because GAE disables threads as it said "A
Java application cannot create a new java.lang.ThreadGroup nor a new
java.lang.Thread. These restrictions also apply to JRE classes that
make use of threads."
Is there any way to remedy this situation? Any help would be
appreciated.

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 'Add It Now' Functionality for my own Google App Engine Application

2009-10-27 Thread Bart

I agree with everything -- especially the need for the End User of a
Google App Domain to "install" Google App Engine applications (as well
as upgrades) seamlessly.  It needs to be as close to "One-Click" as
possible for the end user.  Depending on the Billing Relationship
(Direct or Reseller) -- it would be ideal if the Customer's billing
for that app would be handled by either Google (when Direct) or by the
Reseller.  Really need to focus on the "Customer Experience" when
designing all of this.

In order to effectively compete with the Salesforce.com "Force.com"
platform, Google will need to provide this functionality.  I believe
that a Google App Engine Marketplace + Google Apps for Domain could
provide synergies that Apple has seen with the iPhone + App Store.

Today it came out that Google Wave will have an App Store -- Google
Apps for Domains needs that same "App Store" with Google App Engine
powering it.

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: General Datastore Question

2009-10-27 Thread Jorge

You may want to take a look to the  Object Fields and Entity
Properties  section at the bottom of the Defining Data Classes
document here 
http://code.google.com/appengine/docs/java/datastore/dataclasses.html

Jorge Gonzalez


On Oct 26, 9:33 am, SweetHotDaddy  wrote:
> Suppose I have class A with fields
>
> @Persistent
> int id
>
> @Persistent
> String name
>
> @Persistent
> int age
>
> This class gets deployed (Version 1) to App Engine and data gets
> persisted to the datastore.
>
> I then modify class A by adding a new field.
>
> @Persistent
> address.
>
> and then deployed the new version (Version 2) to App Engine and data
> gets persisted to the datastore.
>
> Finally I modified class A again by removing the age field and I again
> deployed the new version (Version 3) to App Engine.
>
> Summary, the initial deployment, Version 1, had Class A. The second
> deployment, Version 2, I added a new field, address. The third
> deployment, Version 3, I deleted the 'age' field.
>
> In a typical database, when I add a new column, it typically defaults
> to null or 0 and when I delete a column, the data gets deleted. Then I
> update my SQL statements to take into account the deleted and new
> columns.
>
> My Question ... When I try to query the datastore in the third
> deployment, will I be able to get back the data which was stored in
> the first and second deployments?  Does DataNucleus know that fields
> were adding/deleted? What happens to those orphaned fields, for
> example Version 3 of my app got rid of the 'age' field but I'm
> assuming that data is still in the datastore?

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Wicket GAE Performance

2009-10-27 Thread Alexander Elsholz

Hi,

we build a wicket-application, running on gae - all works fine. but
when deploying on gae-environment the performance is terrible (tried
development and deploymentmode). an ajax-call takes more than 3
secounds. i logged all database-queries - no problem there. we lost
time anywhere in wicket-request-cycle. had anyone simelar problems and
solved them?

thanks a lot alex

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: User Authentication Question

2009-10-27 Thread mscwd01

> and of course there is always
> alternatives like OpenID

How does OpenID work? I read through the OpenID site but that just
made me more confused ;)

On Oct 28, 12:10 am, William Montgomery
 wrote:
> 2009/10/27 mscwd01 
>
>
>
> > I am creating an app which requires user authentication so that each
> > person can login to their own "private" area. The default Users
> > service should suit my needs; however I have a quick question to
> > ensure I have understood how it works correctly.
>
> > To check whether someone is logged in you do the following:
> > User user = userService.getCurrentUser();
>
> > If the user object is null - the user is not logged in
> > If it is not null, the user has been logged in.
>
> Yep sounds correct.
>
>
>
> > To get the unique identity of the user you use:
> > user.getNickname()
>
> No, this is not a unique identifier as I remember, this is a
> user changeable human friendly name associated with their account. To key
> things in your datastore with a specific user you may want to look at
> the: user.user_id()
> method that will return a constant unique string for each user, even if they
> change their email address.
>
>
>
> > Now, is it okay to just use this identifier to fetch the stored data
> > for this user or is there another way?
>
> Using the user_id should be fine.
>
>
>
> > Second question, is their another "off the shelf" method to
> > authenticate users without using the App Engine users service -
> > something which I could implement into my site design and not have to
> > redirect to the Google Accounts login page?
>
> I'm not too sure on the best alternatives, although there is a Django users
> module that some people have been using, and of course there is always
> alternatives like OpenID. However you could maintain your own sessions and
> write your own authentication (although it seems pointless :) ).
>
> > Many thanks!
>
> Hope that helped,
> Good Luck!
>
> Will.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Unable to create application

2009-10-27 Thread Jeff S (Google)
I'm not sure if this is the issue, but if your account is a Google Apps
account then you will need to visit the App Engine dashboard which is for
your Google Apps domain. You can find it at

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

or in your case I'm guessing this would be

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

Thank you,

Jeff

On Sat, Oct 24, 2009 at 9:31 PM, Prashant  wrote:

> Of course, most of the identifiers are already reserved by other users and
> also because appengine doesn't allow you to create identifier which is same
> as some other user's Google account id, so you must try some identifier
> which is unique to both, i.e. google account ids and appengine app ids. HINT
> : try putting one or more dashes (-) in your identifier like try *
> my-great-app* instead of *mygreatapp* or you can always create an app
> identifier same as your google account id.
>
>
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: User Authentication Question

2009-10-27 Thread William Montgomery
2009/10/27 mscwd01 

>
> I am creating an app which requires user authentication so that each
> person can login to their own "private" area. The default Users
> service should suit my needs; however I have a quick question to
> ensure I have understood how it works correctly.
>
> To check whether someone is logged in you do the following:
> User user = userService.getCurrentUser();
>
> If the user object is null - the user is not logged in
> If it is not null, the user has been logged in.
>

Yep sounds correct.


>
> To get the unique identity of the user you use:
> user.getNickname()
>

No, this is not a unique identifier as I remember, this is a
user changeable human friendly name associated with their account. To key
things in your datastore with a specific user you may want to look at
the: user.user_id()
method that will return a constant unique string for each user, even if they
change their email address.


>
> Now, is it okay to just use this identifier to fetch the stored data
> for this user or is there another way?
>

Using the user_id should be fine.


>
> Second question, is their another "off the shelf" method to
> authenticate users without using the App Engine users service -
> something which I could implement into my site design and not have to
> redirect to the Google Accounts login page?
>

I'm not too sure on the best alternatives, although there is a Django users
module that some people have been using, and of course there is always
alternatives like OpenID. However you could maintain your own sessions and
write your own authentication (although it seems pointless :) ).


> Many thanks!
> >
>
Hope that helped,
Good Luck!

Will.

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: My memcache items are randomly removed?

2009-10-27 Thread loell

Currently I only cache roughly 349 items with the total size of only
2.9 KB.  which is more puzzling as it's just a single dot in the total
memcache size quota of 10 MB :(

I'm beginning to think that maybe this particular web app is sitting
on an unstable part of the cloud?  I even don't have a cron Job or a
task queue yet, that might affect memcache items.


On Oct 28, 2:19 am, Wooble  wrote:
> How much are you caching?  Items are removed from the cache when
> you're storing too much (I don't believe there's a published limit,
> but I've seen anecdotal claims of 10MB), with the least recently used
> items evicted first.
>
> On Oct 27, 1:56 pm, loell  wrote:
>
>
>
> > additional info: the Items in question are still retrievable in just a
> > couple of minutes, usually.  but after that,  it just returns none.
> > while part of the items in that set is still retrievable and all other
> > memcache sets are still intact.
>
> > On Oct 28, 1:48 am, loell  wrote:
>
> > > hi, being used to the development's server, handling of memcache, and
> > > that memcache items stays as long as it can.  I'm really puzzled why
> > > some of my items returns "None" while part of that particular memcache-
> > > set is still retrievable on the production server.   is this normal?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] User Authentication Question

2009-10-27 Thread mscwd01

I am creating an app which requires user authentication so that each
person can login to their own "private" area. The default Users
service should suit my needs; however I have a quick question to
ensure I have understood how it works correctly.

To check whether someone is logged in you do the following:
User user = userService.getCurrentUser();

If the user object is null - the user is not logged in
If it is not null, the user has been logged in.

To get the unique identity of the user you use:
user.getNickname()

Now, is it okay to just use this identifier to fetch the stored data
for this user or is there another way?

Second question, is their another "off the shelf" method to
authenticate users without using the App Engine users service -
something which I could implement into my site design and not have to
redirect to the Google Accounts login page?

Many 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to delete a column in datastore ?

2009-10-27 Thread Adam

Just remove the column from your model definition. You can't actually
delete the column, but it will no longer appear in your model objects.

On Oct 27, 1:26 pm, Tom Wu  wrote:
> Hi all,
>
> How to delete a column in datastore ?
>
> Best Regards
> Tom Wu
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App No Longer Loads And Nothing Was Changed

2009-10-27 Thread Jeff S (Google)
Hi Erik,

My first guess is that this would be a configuration issue. Perhaps caching
prevented the change from breaking change from being immediately apparent.
Could we see your app.yaml/web.xml file?

Thank you,

Jeff

On Thu, Oct 22, 2009 at 6:57 PM, Erik Vold  wrote:

>
> static.evold.ca (aka evold-static.appspot.com) used to display a
> simple html page, and nothing has been changed in the last 2 days, but
> this no longer works?? what could be wrong??
>
>
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: identifier of GAE

2009-10-27 Thread david

Sorry, sorry, sorry.

I had an error in my code.

Thank you very much.
See you.
David.

On Oct 27, 7:55 pm, "Nick Johnson (Google)" 
wrote:
> On Tue, Oct 27, 2009 at 6:47 PM, david  wrote:
>
> > OK, but when I write:
>
> > for r in rutas:
> >             self.response.out.write("""%s""" % r.key
> > ())
>
> > I always get the same value. Why?
>
> Are you sure it's the same value? Key strings for a given app and kind will
> all have an identical prefix, but will differ towards the end.
>
> -Nick Johnson
>
>
>
>
>
> > On Oct 27, 7:14 pm, "Nick Johnson (Google)" 
> > wrote:
> > > Hi david,
>
> > > You need to call .key() on your model - it's a method, not a property.
>
> > > -Nick Johnson
>
> > > On Tue, Oct 27, 2009 at 5:30 PM, david  wrote:
>
> > > > I'm programming with the DataStore of GAE and am trying to get the
> > > > unique identifier for instances of a
> > > > db.Model, how do you get?
>
> > > > For example:
>
> > > > class Ruta(db.Model):
> > > >  titulo = db.StringProperty()
> > > >  KML = db.BlobProperty()
>
> > > > class mostrarIndice(webapp.RequestHandler):
> > > >    def get(self):
> > > >        rutas = db.GqlQuery ("SELECT * FROM Ruta")
> > > >        for r in rutas:
> > > >            self.response.out.write("""%s""" % ¿?¿?¿?)
>
> > > > I have tried r.key () but I get the same value for all instances.
>
> > > > Thank you very much.
> > > > See you.
> > > > David.
>
> > > --
> > > Nick Johnson, Developer Programs Engineer, App Engine
> > > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
> > Number:
> > > 368047
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: identifier of GAE

2009-10-27 Thread Nick Johnson (Google)
On Tue, Oct 27, 2009 at 6:47 PM, david  wrote:

>
> OK, but when I write:
>
> for r in rutas:
> self.response.out.write("""%s""" % r.key
> ())
>
> I always get the same value. Why?
>

Are you sure it's the same value? Key strings for a given app and kind will
all have an identical prefix, but will differ towards the end.

-Nick Johnson


>
> On Oct 27, 7:14 pm, "Nick Johnson (Google)" 
> wrote:
> > Hi david,
> >
> > You need to call .key() on your model - it's a method, not a property.
> >
> > -Nick Johnson
> >
> >
> >
> > On Tue, Oct 27, 2009 at 5:30 PM, david  wrote:
> >
> > > I'm programming with the DataStore of GAE and am trying to get the
> > > unique identifier for instances of a
> > > db.Model, how do you get?
> >
> > > For example:
> >
> > > class Ruta(db.Model):
> > >  titulo = db.StringProperty()
> > >  KML = db.BlobProperty()
> >
> > > class mostrarIndice(webapp.RequestHandler):
> > >def get(self):
> > >rutas = db.GqlQuery ("SELECT * FROM Ruta")
> > >for r in rutas:
> > >self.response.out.write("""%s""" % ¿?¿?¿?)
> >
> > > I have tried r.key () but I get the same value for all instances.
> >
> > > Thank you very much.
> > > See you.
> > > David.
> >
> > --
> > Nick Johnson, Developer Programs Engineer, App Engine
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
> Number:
> > 368047
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: identifier of GAE

2009-10-27 Thread david

OK, but when I write:

for r in rutas:
self.response.out.write("""%s""" % r.key
())

I always get the same value. Why?

On Oct 27, 7:14 pm, "Nick Johnson (Google)" 
wrote:
> Hi david,
>
> You need to call .key() on your model - it's a method, not a property.
>
> -Nick Johnson
>
>
>
> On Tue, Oct 27, 2009 at 5:30 PM, david  wrote:
>
> > I'm programming with the DataStore of GAE and am trying to get the
> > unique identifier for instances of a
> > db.Model, how do you get?
>
> > For example:
>
> > class Ruta(db.Model):
> >  titulo = db.StringProperty()
> >  KML = db.BlobProperty()
>
> > class mostrarIndice(webapp.RequestHandler):
> >    def get(self):
> >        rutas = db.GqlQuery ("SELECT * FROM Ruta")
> >        for r in rutas:
> >            self.response.out.write("""%s""" % ¿?¿?¿?)
>
> > I have tried r.key () but I get the same value for all instances.
>
> > Thank you very much.
> > See you.
> > David.
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: My memcache items are randomly removed?

2009-10-27 Thread Wooble

How much are you caching?  Items are removed from the cache when
you're storing too much (I don't believe there's a published limit,
but I've seen anecdotal claims of 10MB), with the least recently used
items evicted first.

On Oct 27, 1:56 pm, loell  wrote:
> additional info: the Items in question are still retrievable in just a
> couple of minutes, usually.  but after that,  it just returns none.
> while part of the items in that set is still retrievable and all other
> memcache sets are still intact.
>
> On Oct 28, 1:48 am, loell  wrote:
>
> > hi, being used to the development's server, handling of memcache, and
> > that memcache items stays as long as it can.  I'm really puzzled why
> > some of my items returns "None" while part of that particular memcache-
> > set is still retrievable on the production server.   is this normal?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: identifier of GAE

2009-10-27 Thread Nick Johnson (Google)
Hi david,

You need to call .key() on your model - it's a method, not a property.

-Nick Johnson

On Tue, Oct 27, 2009 at 5:30 PM, david  wrote:

>
> I'm programming with the DataStore of GAE and am trying to get the
> unique identifier for instances of a
> db.Model, how do you get?
>
> For example:
>
> class Ruta(db.Model):
>  titulo = db.StringProperty()
>  KML = db.BlobProperty()
>
> class mostrarIndice(webapp.RequestHandler):
>def get(self):
>rutas = db.GqlQuery ("SELECT * FROM Ruta")
>for r in rutas:
>self.response.out.write("""%s""" % ¿?¿?¿?)
>
> I have tried r.key () but I get the same value for all instances.
>
> Thank you very much.
> See you.
> David.
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 500 error on updating indexes

2009-10-27 Thread Jeff S (Google)
Hi Travis,

The index count for your application is now reported as zero, so you should
be able to reupload. In the last release we made some changes in our index
count quota tracking which should remove the need for us to reset index
count quotas after a large number of quotas are deleted. Please keep us
posted.

Thank you,

Jeff

On Mon, Oct 26, 2009 at 1:58 PM, Travis  wrote:

>
> Ok, so I've now deleted all my indexes and it's still giving me that
> 400 error when I try to reupload them. I'm guessing that it still
> thinks I have 75+ indexes, so I probably need my index count reset
> again. Any help I could get with this would be great.
>
> Note: I am trying to upload 76 indexes, which should be below the old
> 100 index limit. Has the limit been changed?
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How i restart the database

2009-10-27 Thread William Montgomery
HI,

I think you want to clear your datastore? You can run the dev_appserver with
the flag --clear_datastore
If you have this process automated using eclipse you may have to look at
your run configurations to change this.

Hope this helps,
Will.

2009/10/26 Murdoc Maia 

>
> Hello,
>
> I need to restart the database on my eclipse. i add a new string on my
> table that cause a trouble when i run my project on eclipse. But when
> i deploy the project to app engine, it is fine, because i delete the
> content of data store.
>
> how i delete all data in eclipse or restart???
> how i fix that problem??
>
> thx
>
> Ps:sorry for my bad english.
>
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: indexed=False

2009-10-27 Thread Jeff S (Google)
Hi vanya,

Any changes made to your data model classes will only affect entities which
have been put since your change, so in this case changing this property to
be unindexed has no effect on the existing indexes but will prevent index
rows from being added for new entities. To clean up the indexes you may need
to get and re-put entities now that you've changed the model.

Thank you,

Jeff

On Tue, Oct 27, 2009 at 6:57 AM, vanya  wrote:

>
> Is parameter 'indexed=false' applying to existing entities or it only
> suits for new entities?
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: My memcache items are randomly removed?

2009-10-27 Thread loell

additional info: the Items in question are still retrievable in just a
couple of minutes, usually.  but after that,  it just returns none.
while part of the items in that set is still retrievable and all other
memcache sets are still intact.

On Oct 28, 1:48 am, loell  wrote:
> hi, being used to the development's server, handling of memcache, and
> that memcache items stays as long as it can.  I'm really puzzled why
> some of my items returns "None" while part of that particular memcache-
> set is still retrievable on the production server.   is this normal?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] My memcache items are randomly removed?

2009-10-27 Thread loell

hi, being used to the development's server, handling of memcache, and
that memcache items stays as long as it can.  I'm really puzzled why
some of my items returns "None" while part of that particular memcache-
set is still retrievable on the production server.   is this normal?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] identifier of GAE

2009-10-27 Thread david

I'm programming with the DataStore of GAE and am trying to get the
unique identifier for instances of a
db.Model, how do you get?

For example:

class Ruta(db.Model):
  titulo = db.StringProperty()
  KML = db.BlobProperty()

class mostrarIndice(webapp.RequestHandler):
def get(self):
rutas = db.GqlQuery ("SELECT * FROM Ruta")
for r in rutas:
self.response.out.write("""%s""" % ¿?¿?¿?)

I have tried r.key () but I get the same value for all instances.

Thank you very much.
See you.
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How can I download my app from gae?

2009-10-27 Thread Prashant
try searching the group, there are lots of threads discussing same/similar
thing.

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How to delete a column in datastore ?

2009-10-27 Thread Tom Wu
Hi all,

How to delete a column in datastore ?


Best Regards
Tom Wu

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Importing external data [Python]

2009-10-27 Thread benji

Hi,

I am brand new to GAE and Python and have very limited programming
skills thus far, so this is a cry for help after spending the last few
days trawling google for a solution :(

I want to import, parse and embed an RSS feed from a Google
spreedsheet. I have done this before in a PHP script that simply acts
as a proxy to parse RSS into HTML and used a Server Side Include to
embed the output of the PHP script - nice and easy and SEO friendly.

So far I currently only have a very simple static set up on GAE as
follows:

handlers:

- url: /

  static_files: assets/index.html

  upload: assets/index.html


- url: /

  static_dir: assets


I thought I may have 3 different potential solutions,

1) somehow point a url at an external domain that can handle PHP -
thought it was worth a try in the YAML file - wishful thinking!!

ie.

- url:/PageNeedingRSSProxyData

static_dir: http://otherdomain.com/PageWithRSSProxyData

2) Grabbing the output of the external PHP file with URL fetch API and
caching it, then including the file in the HTM using django templates
- i looked at this and got very lost.

3) Grabing the RSS feed directly and parsing it with Python and
embedding it in a web page - again got very lost.


Can anyone point me in the right direction? or am i too far out of my
depth?

Any help on this would be awesome and very much appreciated.

Cheers

Ben



--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How can I download my app from gae?

2009-10-27 Thread simpx

I want to download the previous version from gae.but there seems no
way to do that..
so if I have my source lost,how can I find them back?thx

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How i restart the database

2009-10-27 Thread Murdoc Maia

Hello,

I need to restart the database on my eclipse. i add a new string on my
table that cause a trouble when i run my project on eclipse. But when
i deploy the project to app engine, it is fine, because i delete the
content of data store.

how i delete all data in eclipse or restart???
how i fix that problem??

thx

Ps:sorry for my bad english.

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] App Engine X Garbes

2009-10-27 Thread Silvio Garbes

Boa noite pessoal, estou fazendo uns testes utilizando o Quercus para
emular o php na plataforma google. Estou com um projeto para
implementar nessa plataforma que visa centralizar a programação php de
diversos servidores em um único local. Alguém tem interesse em
colaborar com esse projeto?

O sistema funcionará assim:

- Suponhamos que existe 2 sites que utilizarão nosso sistema (site1 e
site2).
- Nosso sistema precisa gerenciar esses dois sites. Esse sistema que
irá gerenciar os sites chamará "Garbes 1.0".
- O webmaster1 do site1 conecta no sistema Garbes 1.0 e desenvolve
toda a programação PHP online (sem enviar arquivos via FTP). O
webmaster1 poderá criar classes e deixar disponível para outros
webmasters que irão utilizar o sistema Garbes.
- O webmaster2 do site2 conecta no sistema Garbes 1.0 e desenvolve
toda a programação PHP online (sem enviar arquivos via FTP). O
webmaster2 poderá utilizar as classes criadas e disponibilizadas pelo
webmaster1.
- O webmaster3 do site1 conecta no sistema Garbes 1.0 e desenvolve
toda a programação PHP online (sem enviar arquivos via FTP). O
webmaster3 e webmaster1 estarão trabalhando no desenvolvimento do
mesmo sistema independente da localização física de cada um.

Assim ficará centralizado a programação php de diversos servidores.

Exemplo do protótipo: http://garbes-1.appspot.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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Static File Serving

2009-10-27 Thread stumpy

I am indeed using the Java development environment as my primary
development language and have already set the expirey header to the
maximum allowed.

Out of interest I tested the edge caching performance using python by
configuring the static files in the app.yaml. The performance is the
same.

The disappointing lack of response suggests that this situation is
here to stay so ill be switching to EC2 cloudfront for the static
content.

On Oct 27, 12:31 pm, Barry Hunter  wrote:
> See:http://code.google.com/appengine/docs/java/config/appconfig.html
>
> (notice the 'java' in the url :)
>
> stumpy is saying already setting a expiration time, just that it has
> no affect on edge caching.
>
> 2009/10/27 nickmilon :
>
>
>
> > Don't understand what you mean by "appengine-web.xml"file.
> > But what Mr. Nick Johnson is suggesting I believe is to set an
> > expiration time for yourstaticcontent as described  here:
>
> >http://code.google.com/appengine/docs/python/config/appconfig.html
> > i.e  use a default expiration or expiration declaration in your Yaml
> >file.
>
> > I don't see all this as a potential bug.
>
> > On Oct 26, 12:39 pm, stumpy  wrote:
> >> So is this a bug that should be reported?
>
> >> On Oct 22, 10:09 am, "Nick Johnson (Google)" 
> >> wrote:
>
> >> > Hi,
> >> > If you set an expiration time for yourstaticcontent, it may be cached at
> >> > geographically diverse endpoints. Without one, it won't be, as it doesn't
> >> > know how long it's safe to cache for.
>
> >> >http://code.google.com/appengine/docs/python/config/appconfig.html#St...
>
> >> > *-Nick Johnson
> >> > *
>
> >> > On Wed, Oct 21, 2009 at 2:44 PM, stumpy  
> >> > wrote:
>
> >> > > I am developing an application that targets the UK market and am
> >> > > looking at ways of improving the download speed ofstaticfiles hosted
> >> > > on app engine such as .js, .css, .png etc.
>
> >> > > My testing suggests that app engine isservingallstaticcontent from
> >> > > america which adds significant latency. Downloading astaticfileof
> >> > > size <1KB takes 200-250ms from england.
>
> >> > > Are there any plans in the future to geographically distributestatic
> >> > > content across data centers? Or would I be better off using amazon
> >> > > cloud front forservingeverythingstatic?
>
> >> > --
> >> > Nick Johnson, Developer Programs Engineer, App Engine
> >> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration 
> >> > Number:
> >> > 368047
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Customize Google Accounts Login Page

2009-10-27 Thread Stephen



On Oct 27, 3:19 pm, mscwd01  wrote:
> Is there any way to customize i.e. color scheme of the Google Accounts
> login page?

Don't think so.  Star these:

  http://code.google.com/p/googleappengine/issues/detail?id=737

  http://code.google.com/p/googleappengine/issues/detail?id=713


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Deadlineexceedederror

2009-10-27 Thread nasim

Today, in my app: dhadharu, I am seeing DeadlineExceededError again.
It is happening all the time throughout the day.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: suggestion: incoming requests and config

2009-10-27 Thread Stephen



On Oct 27, 9:02 am, v4vijayakumar 
wrote:
> I am looking for a way to limit incoming requests from a particular
> user, like not more than one request per second, not more than two
> requests per every 5 sec, etc. Should I write code for this, or this
> can be blocked even before request reaches my app ?!


Star this:

http://code.google.com/p/googleappengine/issues/detail?id=644


In the mean time, there is some example code in the jaiku project:

http://code.google.com/p/jaikuengine/source/browse/trunk/common/throttle.py


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Where are the dev server log files?

2009-10-27 Thread Gijsbert

Hi,
I run my dev server through GoogleAppEngineLauncher, which works
great, but the log viewer gets slow very fast and there is no search.
I've searched a couple of times for the log files so I could just use
less, but have not found them.
Anybody know where they are?
Cheers,
Gijsbert

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Customize Google Accounts Login Page

2009-10-27 Thread mscwd01

Is there any way to customize i.e. color scheme of the Google Accounts
login page?

It would be nice if I could make it look more similar to my website
design/color scheme.

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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How do XMPP recipients get messages?

2009-10-27 Thread Backpack

Yes you can send messages to other users of your game, but you have to
have them connected in real time to your bot. There are different ways
of doing this with ajax, comet, flash and java. The only one I believe
it works with GAE is a java applet with sockets (waiting for the
future WebSockets implementation).

Every player loads the applet to communicate in real-time with the
xmpp bot which parses and channels responses accordingly.

I'd like to see your chess game finished, if you need help let me
know, I'll be glad to lend a hand.



On Oct 26, 7:14 pm, Mark  wrote:
> > wouldn't it make more sense for them to just send to the other person
> > directly?
>
> Well I think that definitely makes sense in a lot of cases. If I
> wanted to make a multiplayer chess game though, it would definitely be
> more convenient for users to send and receive xmpp messages directly
> through my application though. It would be awkward to go to gchat etc
> to send a message to talk to the person you're playing against.
>
> In the chess game scenario, it seems you would be able to send an xmpp
> chat message to your opponent, just that your client app has no way of
> getting notified that a message was received - it would popup in your
> third party chat app, like gchat, probably in another browser frame?
>
> Thanks
>
> On Oct 26, 3:04 pm, Wooble  wrote:
>
> > The XMPP service only allows users to send XMPP messages to your
> > application, or for your application to send XMPP messages to
> > subscribed users.  I don't think it's really designed for you to have
> > your users send messages to other users through your application;
> > wouldn't it make more sense for them to just send to the other person
> > directly?
>
> > On Oct 26, 1:15 pm, Mark  wrote:
>
> > > Hi,
>
> > > I just saw the addition of XMPP messaging support to app engine.
>
> > > I'm not understanding how we integrate this into our apps though. It
> > > looks like we can let users send an XMPP message to another user
> > > directly through our own apps.
>
> > > How and when do recipients get those messages? Do they need to be
> > > logged into a 3rd party chat service to receive those messages?
>
> > > Example, through my web app, I allow users to send XMPP messages to
> > > b...@gmail.com. Can Bob only get those messages if he logs into gmail?
> > > Or is there a way for my app to directly be notified of their arrival
> > > and display them? (I would guess no as that would require some client-
> > > side polling or long-lived connection to work).
>
> > > 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paging through large datasets - Article discussion

2009-10-27 Thread Nick Johnson (Google)
Actually, because the two algorithms are related, using both at once yields
only as much security as the more secure of the two: Breaking SHA1 and MD5
together is not much more difficult than breaking SHA1 alone. Better
security is achieved by using a better hash algorithm, such as SHA256.

-Nick Johnson

On Tue, Oct 27, 2009 at 12:35 PM, Roy Smith wrote:

> If you're paranoid, how about a concatenation of the SHA and MD5 sums.
>
>
> On Tue, Oct 27, 2009 at 12:30 PM, Martin Trummer <
> martin.trummer...@gmail.com> wrote:
>
>>
>> On Oct 27, 10:53 am, "Nick Johnson (Google)" 
>> wrote:
>> > Collision attacks on MD5 have been found, yes. But a collision attack
>> > requires the attacker to specify both strings, and currently at least,
>> > requires them to be at least 128 bytes long, and makes no guarantee
>> about
>> > human readability. A preimage attack, which would find a plaintext that
>> > hashes to the same value as a given hash, has not been found - and in
>> any
>> > case, the plaintext would not be the same as the input one.
>>
>> ah, ok  - Seems I haven't fully understood the articles, I've read.
>> I was not aware, that the collissions only happen for input that
>> is >= 128 bytes.
>> So: I agree, that using an MD5 hash in this case is sufficiently
>> random.
>>
>> but since I'm quite paranoid, I won't use it :)
>> although I am well aware that any app. I wrote and will write has a
>> lot of other far more serious security related problems than this
>> one :)
>>
>> On Oct 27, 12:09 pm, Tim Hoffman  wrote:
>> > Becuase the problem comes down to definining a unique id, using one of
>> > the various UUID methods will work (an most then use something
>> > unique like a email address, randome seed, and time) anything that
>> > requires incrementing a counter to provide a unique id will then
>> > require sharding counters
>> > if you creating them rapidly.
>> hmm.. I'm talking about unique long keys, that the datastore assigns
>> when an entity is created:
>> e.g. see IdGeneratorStrategy.IDENTITY in http://tinyurl.com/yg99p35
>> so creating a unique id is not a problem (at least not for me, but
>> for the datastore)
>>
>>
>>
>>
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paging through large datasets - Article discussion

2009-10-27 Thread Nick Johnson (Google)
Hi Martin,

On Tue, Oct 27, 2009 at 12:30 PM, Martin Trummer <
martin.trummer...@gmail.com> wrote:

>
> On Oct 27, 10:53 am, "Nick Johnson (Google)" 
> wrote:
> > Collision attacks on MD5 have been found, yes. But a collision attack
> > requires the attacker to specify both strings, and currently at least,
> > requires them to be at least 128 bytes long, and makes no guarantee about
> > human readability. A preimage attack, which would find a plaintext that
> > hashes to the same value as a given hash, has not been found - and in any
> > case, the plaintext would not be the same as the input one.
>
> ah, ok  - Seems I haven't fully understood the articles, I've read.
> I was not aware, that the collissions only happen for input that
> is >= 128 bytes.
>

It's not impossible for a collision shorter than that - but no weaknesses
have been demonstrated in MD5 that would permit one to be artificially
constructed short of brute-force. The attacks against MD5 that have been
found only apply to finding two plaintexts with the same hash, too.

-Nick Johnson

So: I agree, that using an MD5 hash in this case is sufficiently
> random.
>
> but since I'm quite paranoid, I won't use it :)
> although I am well aware that any app. I wrote and will write has a
> lot of other far more serious security related problems than this
> one :)
>
> On Oct 27, 12:09 pm, Tim Hoffman  wrote:
> > Becuase the problem comes down to definining a unique id, using one of
> > the various UUID methods will work (an most then use something
> > unique like a email address, randome seed, and time) anything that
> > requires incrementing a counter to provide a unique id will then
> > require sharding counters
> > if you creating them rapidly.
> hmm.. I'm talking about unique long keys, that the datastore assigns
> when an entity is created:
> e.g. see IdGeneratorStrategy.IDENTITY in http://tinyurl.com/yg99p35
> so creating a unique id is not a problem (at least not for me, but
> for the datastore)
>
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: indexed=False

2009-10-27 Thread vanya

Is parameter 'indexed=false' applying to existing entities or it only
suits for new entities?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Chat Time transcript for October 21, 2009

2009-10-27 Thread Waldemar Kornewald

On Oct 27, 3:01 am, "Jason (Google)"  wrote:
> - Q: What is being done to address long initialization times for Java
> applications? A: We are definitely aware of the issue and are rolling
> out several back-end enhancements over the next few releases to try to
> minimize this startup time as much as possible. [9:52-9:53]

What about Python? Startup times are horrible, here, too.

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paging through large datasets - Article discussion

2009-10-27 Thread Roy Smith
If you're paranoid, how about a concatenation of the SHA and MD5 sums.


On Tue, Oct 27, 2009 at 12:30 PM, Martin Trummer <
martin.trummer...@gmail.com> wrote:

>
> On Oct 27, 10:53 am, "Nick Johnson (Google)" 
> wrote:
> > Collision attacks on MD5 have been found, yes. But a collision attack
> > requires the attacker to specify both strings, and currently at least,
> > requires them to be at least 128 bytes long, and makes no guarantee about
> > human readability. A preimage attack, which would find a plaintext that
> > hashes to the same value as a given hash, has not been found - and in any
> > case, the plaintext would not be the same as the input one.
>
> ah, ok  - Seems I haven't fully understood the articles, I've read.
> I was not aware, that the collissions only happen for input that
> is >= 128 bytes.
> So: I agree, that using an MD5 hash in this case is sufficiently
> random.
>
> but since I'm quite paranoid, I won't use it :)
> although I am well aware that any app. I wrote and will write has a
> lot of other far more serious security related problems than this
> one :)
>
> On Oct 27, 12:09 pm, Tim Hoffman  wrote:
> > Becuase the problem comes down to definining a unique id, using one of
> > the various UUID methods will work (an most then use something
> > unique like a email address, randome seed, and time) anything that
> > requires incrementing a counter to provide a unique id will then
> > require sharding counters
> > if you creating them rapidly.
> hmm.. I'm talking about unique long keys, that the datastore assigns
> when an entity is created:
> e.g. see IdGeneratorStrategy.IDENTITY in http://tinyurl.com/yg99p35
> so creating a unique id is not a problem (at least not for me, but
> for the datastore)
>
>
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Static File Serving

2009-10-27 Thread Barry Hunter

See:
http://code.google.com/appengine/docs/java/config/appconfig.html

(notice the 'java' in the url :)

stumpy is saying already setting a expiration time, just that it has
no affect on edge caching.

2009/10/27 nickmilon :
>
> Don't understand what you mean by "appengine-web.xml" file.
> But what Mr. Nick Johnson is suggesting I believe is to set an
> expiration time for your static content as described  here:
>
> http://code.google.com/appengine/docs/python/config/appconfig.html
> i.e  use a default expiration or expiration declaration in your Yaml
> file.
>
> I don't see all this as a potential bug.
>
>
> On Oct 26, 12:39 pm, stumpy  wrote:
>> So is this a bug that should be reported?
>>
>> On Oct 22, 10:09 am, "Nick Johnson (Google)" 
>> wrote:
>>
>>
>>
>> > Hi,
>> > If you set an expiration time for your static content, it may be cached at
>> > geographically diverse endpoints. Without one, it won't be, as it doesn't
>> > know how long it's safe to cache for.
>>
>> >http://code.google.com/appengine/docs/python/config/appconfig.html#St...
>>
>> > *-Nick Johnson
>> > *
>>
>> > On Wed, Oct 21, 2009 at 2:44 PM, stumpy  wrote:
>>
>> > > I am developing an application that targets the UK market and am
>> > > looking at ways of improving the download speed of static files hosted
>> > > on app engine such as .js, .css, .png etc.
>>
>> > > My testing suggests that app engine is serving all static content from
>> > > america which adds significant latency. Downloading a static file of
>> > > size <1KB takes 200-250ms from england.
>>
>> > > Are there any plans in the future to geographically distribute static
>> > > content across data centers? Or would I be better off using amazon
>> > > cloud front for serving everything static?
>>
>> > --
>> > Nick Johnson, Developer Programs Engineer, App Engine
>> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
>> > 368047
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paging through large datasets - Article discussion

2009-10-27 Thread Martin Trummer

On Oct 27, 10:53 am, "Nick Johnson (Google)" 
wrote:
> Collision attacks on MD5 have been found, yes. But a collision attack
> requires the attacker to specify both strings, and currently at least,
> requires them to be at least 128 bytes long, and makes no guarantee about
> human readability. A preimage attack, which would find a plaintext that
> hashes to the same value as a given hash, has not been found - and in any
> case, the plaintext would not be the same as the input one.

ah, ok  - Seems I haven't fully understood the articles, I've read.
I was not aware, that the collissions only happen for input that
is >= 128 bytes.
So: I agree, that using an MD5 hash in this case is sufficiently
random.

but since I'm quite paranoid, I won't use it :)
although I am well aware that any app. I wrote and will write has a
lot of other far more serious security related problems than this
one :)

On Oct 27, 12:09 pm, Tim Hoffman  wrote:
> Becuase the problem comes down to definining a unique id, using one of
> the various UUID methods will work (an most then use something
> unique like a email address, randome seed, and time) anything that
> requires incrementing a counter to provide a unique id will then
> require sharding counters
> if you creating them rapidly.
hmm.. I'm talking about unique long keys, that the datastore assigns
when an entity is created:
e.g. see IdGeneratorStrategy.IDENTITY in http://tinyurl.com/yg99p35
so creating a unique id is not a problem (at least not for me, but
for the datastore)


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Googlebot crawl rate on app engine

2009-10-27 Thread WeatherPhilip

I added sitemaps that show all the pages on my appengine site. The
sitemaps are crawled by the googlebot with monotonous regularity.
However, the actual pages are pulled much less often. Also, something
happened at one point and many of my pages fell out of the index. I
was up to almost 10,000 indexed pages, and then it dropped to 1,500.
Since then, I now record the number of indexed pages (according to a
search for site:mysite.appspot.com). Over the last month (which is
when I started recording daily numbers):

2009-09-27 11:45:01 1550
2009-10-08 03:27:01 1310
2009-10-11 03:27:01 1170
2009-10-17 03:27:01 1370
2009-10-22 03:27:00 1640
2009-10-27 03:27:01 2000

These numbers don't correspond with the numbers in the webmaster
tools. The webmaster tools tells me that over the last three months,
the googlebot has downloaded 1000 pages per day. I'm wondering if
these pages are actually just my sitemaps

Also, the sitemaps page says:

Sitemap stats
Total URLs: 161,845
Indexed URLs: 10,155

It could be that the site:z.appengine.com  query on the main
google index is broken and doesn't return the correct number of
indexed URLs.

Anyway, I'm not sure how much of this is relevant to your site.

Philip

On Oct 25, 8:33 pm, klong86  wrote:
> I have noticed that googlebot crawls my app-engine site extremely
> slow.  I've been monitoring this with the Google Webmaster Tools.
>
> I can't change my crawl rate.  It says:
>
>      "Your site has been assigned special crawl rate settings. You
> will not be able to change the crawl rate."
>
> From reading articles on the web, it appears that google controls the
> rate for large sites like blogger.com. I'm guessing that googlebot has
> determined that this site is hosted on app engine and slowed the rate
> (even with a custom domain name).
>
> The site was previously written in ASP and had no problems in getting
> googlebot to crawl the site quickly.
>
> The site has 11,000 pages and only 5000 have been crawled by
> googlebot.  The site has been on app engine for 2 months.
>
> Has anyone else ran into this same problem?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Static File Serving

2009-10-27 Thread nickmilon

Don't understand what you mean by "appengine-web.xml" file.
But what Mr. Nick Johnson is suggesting I believe is to set an
expiration time for your static content as described  here:

http://code.google.com/appengine/docs/python/config/appconfig.html
i.e  use a default expiration or expiration declaration in your Yaml
file.

I don't see all this as a potential bug.


On Oct 26, 12:39 pm, stumpy  wrote:
> So is this a bug that should be reported?
>
> On Oct 22, 10:09 am, "Nick Johnson (Google)" 
> wrote:
>
>
>
> > Hi,
> > If you set an expiration time for your static content, it may be cached at
> > geographically diverse endpoints. Without one, it won't be, as it doesn't
> > know how long it's safe to cache for.
>
> >http://code.google.com/appengine/docs/python/config/appconfig.html#St...
>
> > *-Nick Johnson
> > *
>
> > On Wed, Oct 21, 2009 at 2:44 PM, stumpy  wrote:
>
> > > I am developing an application that targets the UK market and am
> > > looking at ways of improving the download speed of static files hosted
> > > on app engine such as .js, .css, .png etc.
>
> > > My testing suggests that app engine is serving all static content from
> > > america which adds significant latency. Downloading a static file of
> > > size <1KB takes 200-250ms from england.
>
> > > Are there any plans in the future to geographically distribute static
> > > content across data centers? Or would I be better off using amazon
> > > cloud front for serving everything static?
>
> > --
> > Nick Johnson, Developer Programs Engineer, App Engine
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> > 368047
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Unable to Connect to Datastore

2009-10-27 Thread Nick Johnson (Google)
Hi Chris,

What is your App ID, and what is the name of the model you're trying to
access? Does this work fine via the admin console?

-Nick Johnson

On Tue, Oct 27, 2009 at 11:29 AM, Chris Hannam  wrote:

>
> It started being every other connection but now its constant. We
> havent been able to successfully connect for 24 hours now.
>
> Cheers,
> CH
>
> 2009/10/27 Nick Johnson (Google) :
> > Hi Chris,
> > Is this happening every time, or only occasionally? Some level of
> timeouts
> > are expected.
> > -Nick Johnson
> >
> > On Tue, Oct 27, 2009 at 9:00 AM, Chris H  wrote:
> >>
> >> Hi,
> >> We are currently having issues connecting to our datastore. Is anyone
> >> else seeing this issue?
> >>
> >>  File "/base/python_lib/versions/1/google/appengine/ext/db/
> >> __init__.py", line 1579, in fetch
> >>raw = raw_query.Get(limit, offset)
> >>  File "/base/python_lib/versions/1/google/appengine/api/
> >> datastore.py", line 1063, in Get
> >>prefetch_count=limit)._Get(limit)
> >>  File "/base/python_lib/versions/1/google/appengine/api/
> >> datastore.py", line 1000, in _Run
> >>raise _ToDatastoreError(err)
> >> Timeout
> >>
> >> We currently have around 300,000 entries in the database. The code
> >> does a plain .all() on the model. The error occurs when we attempt to
> >> fetch any number of results from the query.
> >>
> >> query = User.all()
> >> entries = query.fetch(9) # this triggers the error
> >>
> >> We are also unable to view any data using the data viewer on the
> >> dashboard.
> >>
> >> Any ideas?
> >> Chris Hannam
> >>
> >
> >
> >
> > --
> > Nick Johnson, Developer Programs Engineer, App Engine
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
> Number:
> > 368047
> >
> > >
> >
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App No Longer Loads And Nothing Was Changed

2009-10-27 Thread Nick Johnson (Google)
Hi Erik,

Your app is not configured to serve anything on the root url ('/'), and so
it is returning a 404. http://evold-static.appspot.com/index.html works
fine.

-Nick Johnson

On Fri, Oct 23, 2009 at 1:57 AM, Erik Vold  wrote:

>
> static.evold.ca (aka evold-static.appspot.com) used to display a
> simple html page, and nothing has been changed in the last 2 days, but
> this no longer works?? what could be wrong??
>
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Unable to Connect to Datastore

2009-10-27 Thread Chris Hannam

It started being every other connection but now its constant. We
havent been able to successfully connect for 24 hours now.

Cheers,
CH

2009/10/27 Nick Johnson (Google) :
> Hi Chris,
> Is this happening every time, or only occasionally? Some level of timeouts
> are expected.
> -Nick Johnson
>
> On Tue, Oct 27, 2009 at 9:00 AM, Chris H  wrote:
>>
>> Hi,
>> We are currently having issues connecting to our datastore. Is anyone
>> else seeing this issue?
>>
>>  File "/base/python_lib/versions/1/google/appengine/ext/db/
>> __init__.py", line 1579, in fetch
>>    raw = raw_query.Get(limit, offset)
>>  File "/base/python_lib/versions/1/google/appengine/api/
>> datastore.py", line 1063, in Get
>>    prefetch_count=limit)._Get(limit)
>>  File "/base/python_lib/versions/1/google/appengine/api/
>> datastore.py", line 1000, in _Run
>>    raise _ToDatastoreError(err)
>> Timeout
>>
>> We currently have around 300,000 entries in the database. The code
>> does a plain .all() on the model. The error occurs when we attempt to
>> fetch any number of results from the query.
>>
>> query = User.all()
>> entries = query.fetch(9) # this triggers the error
>>
>> We are also unable to view any data using the data viewer on the
>> dashboard.
>>
>> Any ideas?
>> Chris Hannam
>>
>
>
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047
>
> >
>

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Unable to create application

2009-10-27 Thread Nick Johnson (Google)
Hi Liam,

If you're using a Google Apps account, you need to log in at
http://appengine.google.com/a/flat2software.com in order to see and create
apps.

-Nick Johnson

On Sun, Oct 25, 2009 at 4:17 AM, Liam  wrote:

>
> Hello,
>
> I have just tried three times to create an application for app engine
> @ https://appengine.google.com/start/createapp.
>
> I filled in the form and clicked save, but it just took me back to the
> beginning.
>
> It seems to have reserved the *.appspot.com each time, as I can't use
> the same application identifier again.
>
> Help!
>
> Thanks,
> Liam
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Merge-join performance

2009-10-27 Thread Nick Johnson (Google)
Hi Anh,

On Sun, Oct 25, 2009 at 5:37 PM, Anh Hai Trinh wrote:

>
> In this talk  BuildingScalableComplexApps.html>, Brett said merge-join scales with
> number of filters and size of result set.  Did that mean *linearly*,
> esp. with respect to the size of the result set?
>

Correct.

-Nick Johnson


> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Logging in with Google Apps account

2009-10-27 Thread Nick Johnson (Google)
Hi Matt,

You can simply create a new Google account for your apps email address
here: https://www.google.com/accounts/NewAccount

-Nick Johnson

On Thu, Oct 22, 2009 at 8:09 PM, Matt  wrote:

>
> From the end user perspective, is there any way to login to a appspot
> app using a Google Apps (hosted domain) account?
> I can add an app to my domain using the control panel, but I can't
> actually login when I visit the .appspot.com URL.
> It is a real PITA how Google decided that Google Apps accounts weren't
> Google accounts. And they won't listen to their users and fix that.
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paging through large datasets - Article discussion

2009-10-27 Thread Tim Hoffman

Hi

I will chime in

On Oct 27, 5:37 pm, Martin Trummer 
wrote:
> well, I don't have the mathematical skills to prove you wrong:
> but according to several articles I've read, MD5 hashes are not
> collision resistant,
> and there are several ways to crack an MD5 hash (that are better than
> brute force)
>

Except in this instance trying to crack in MD5 is pretty meaningless


> so:
>  * it's not purely theoretical
>  * the e-mail address could be restored from the hash
>
> when you say: "sufficiently random",
> then why don't we use a simple random number instead of an hash value

Because in many cases you will get duplicate numbers in a random
stream, unless you are picking numbers from a set of unique random
numbers (which is then probably finite)

> of the (valuable) user-mail address?
> the random number would also be "sufficiently random" :)
>
> Why don't we simply use the unique user-id instead of the user's mail

Becuase the problem comes down to definining a unique id, using one of
the various UUID methods will work (an most then use something
unique like a email address, randome seed, and time) anything that
requires incrementing a counter to provide a unique id will then
require sharding counters
if you creating them rapidly.

> address for the sharded counter?
> That would be a perfect fit - it's unique and meaningless
>

I would suggest that users email address md5'd would take an extremely
large number of email addresses to get a collision with MD5 or SHA1.


> Anyway - I don't want to harp on about that.
> The artice is great, but I think there should at least be a footnote
> that
> there might be better ways instead of using MD5-hashes of users mail-
> addresses
>

Actually I think it is a convenient and less error prone than coming
up with more convoluted strategies for this use case.

Just my 2c worth

Rgds

T


> On Oct 27, 12:44 am, "Nick Johnson (Google)" 
> wrote:
>
> > Hi Martin,
>
> > MD5 hashes are sufficiently random that collisions are purely theoretical
> > and not of practical concern. Many systems, for example, address files by
> > MD5 or SHA1 hash.
>
> > If you can provide an MD5 or SHA1 collision between two short,
> > human-readable strings, however, I will be happy to amend the article with
> > this caveat.
>
> > Regards,
>
> > Nick Johnson
>
> > On Sun, Oct 25, 2009 at 5:40 PM, Martin Trummer 
> > > wrote:
>
> > > in this article
> > >http://code.google.com/intl/de-DE/appengine/articles/paging.html
> > > the author points out the problems that arise when you use a field
> > > that may not be unique for paging.
> > > the solution is to use a sharded counter over the user to make the
> > > field unique.
>
> > > Very fine until here.
> > > But then he suggests to use a MD5-hash-value of the unique value
> > > instead of the real unique value.
>
> > > This is obviously wrong:
> > > A hash function, will by definition NOT retain the uniqueness of the
> > > source value!
>
> > > Sure, the chances that 2 unique values result in the same hash value
> > > is (and should by definition be) very low:
> > > but we are not satisfied with a "solution" that works most of the
> > > time, are we?
>
> > --
> > Nick Johnson, Developer Programs Engineer, App Engine
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> > 368047
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Unable to Connect to Datastore

2009-10-27 Thread Nick Johnson (Google)
Hi Chris,

Is this happening every time, or only occasionally? Some level of timeouts
are expected.

-Nick Johnson

On Tue, Oct 27, 2009 at 9:00 AM, Chris H  wrote:

>
> Hi,
> We are currently having issues connecting to our datastore. Is anyone
> else seeing this issue?
>
>  File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1579, in fetch
>raw = raw_query.Get(limit, offset)
>  File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 1063, in Get
>prefetch_count=limit)._Get(limit)
>  File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 1000, in _Run
>raise _ToDatastoreError(err)
> Timeout
>
> We currently have around 300,000 entries in the database. The code
> does a plain .all() on the model. The error occurs when we attempt to
> fetch any number of results from the query.
>
> query = User.all()
> entries = query.fetch(9) # this triggers the error
>
> We are also unable to view any data using the data viewer on the
> dashboard.
>
> Any ideas?
> Chris Hannam
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Unable to Connect to Datastore

2009-10-27 Thread niklasr



On Oct 27, 5:00 am, Chris H  wrote:
> Hi,
> We are currently having issues connecting to our datastore. Is anyone
> else seeing this issue?
>
>   File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1579, in fetch
>     raw = raw_query.Get(limit, offset)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 1063, in Get
>     prefetch_count=limit)._Get(limit)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 1000, in _Run
>     raise _ToDatastoreError(err)
> Timeout
>
> We currently have around 300,000 entries in the database. The code
> does a plain .all() on the model. The error occurs when we attempt to
> fetch any number of results from the query.
>
> query = User.all()
> entries = query.fetch(9) # this triggers the error
>
> We are also unable to view any data using the data viewer on the
> dashboard.
>
> Any ideas?
> Chris Hannam
>2: 
>code.google.com/p/appfilesbrowser/source/browse/trunk/onlinedebug/onlinedebug.py,
> pay or just intermittence thrice I do
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paging through large datasets - Article discussion

2009-10-27 Thread Nick Johnson (Google)
Hi Martin,

On Tue, Oct 27, 2009 at 9:37 AM, Martin Trummer  wrote:

>
> well, I don't have the mathematical skills to prove you wrong:
> but according to several articles I've read, MD5 hashes are not
> collision resistant,
> and there are several ways to crack an MD5 hash (that are better than
> brute force)
>

Collision attacks on MD5 have been found, yes. But a collision attack
requires the attacker to specify both strings, and currently at least,
requires them to be at least 128 bytes long, and makes no guarantee about
human readability. A preimage attack, which would find a plaintext that
hashes to the same value as a given hash, has not been found - and in any
case, the plaintext would not be the same as the input one.


> so:
>  * it's not purely theoretical
>  * the e-mail address could be restored from the hash
>

It's not possible now - and is never likely to be possible - to calculate a
preimage for MD5 and get back the original email address, using any method
short of brute force testing of every possible valid email address.


>
> when you say: "sufficiently random",
> then why don't we use a simple random number instead of an hash value
> of the (valuable) user-mail address?
> the random number would also be "sufficiently random" :)


> Why don't we simply use the unique user-id instead of the user's mail
> address for the sharded counter?
> That would be a perfect fit - it's unique and meaningless
>

You are welcome to use either of these techniques.

-Nick Johnson


>
> Anyway - I don't want to harp on about that.
> The artice is great, but I think there should at least be a footnote
> that
> there might be better ways instead of using MD5-hashes of users mail-
> addresses
>
> On Oct 27, 12:44 am, "Nick Johnson (Google)" 
> wrote:
> > Hi Martin,
> >
> > MD5 hashes are sufficiently random that collisions are purely theoretical
> > and not of practical concern. Many systems, for example, address files by
> > MD5 or SHA1 hash.
> >
> > If you can provide an MD5 or SHA1 collision between two short,
> > human-readable strings, however, I will be happy to amend the article
> with
> > this caveat.
> >
> > Regards,
> >
> > Nick Johnson
> >
> > On Sun, Oct 25, 2009 at 5:40 PM, Martin Trummer <
> martin.trummer...@gmail.com
> >
> >
> >
> > > wrote:
> >
> > > in this article
> > >http://code.google.com/intl/de-DE/appengine/articles/paging.html
> > > the author points out the problems that arise when you use a field
> > > that may not be unique for paging.
> > > the solution is to use a sharded counter over the user to make the
> > > field unique.
> >
> > > Very fine until here.
> > > But then he suggests to use a MD5-hash-value of the unique value
> > > instead of the real unique value.
> >
> > > This is obviously wrong:
> > > A hash function, will by definition NOT retain the uniqueness of the
> > > source value!
> >
> > > Sure, the chances that 2 unique values result in the same hash value
> > > is (and should by definition be) very low:
> > > but we are not satisfied with a "solution" that works most of the
> > > time, are we?
> >
> > --
> > Nick Johnson, Developer Programs Engineer, App Engine
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
> Number:
> > 368047
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Paging through large datasets - Article discussion

2009-10-27 Thread Martin Trummer

well, I don't have the mathematical skills to prove you wrong:
but according to several articles I've read, MD5 hashes are not
collision resistant,
and there are several ways to crack an MD5 hash (that are better than
brute force)

so:
 * it's not purely theoretical
 * the e-mail address could be restored from the hash

when you say: "sufficiently random",
then why don't we use a simple random number instead of an hash value
of the (valuable) user-mail address?
the random number would also be "sufficiently random" :)

Why don't we simply use the unique user-id instead of the user's mail
address for the sharded counter?
That would be a perfect fit - it's unique and meaningless

Anyway - I don't want to harp on about that.
The artice is great, but I think there should at least be a footnote
that
there might be better ways instead of using MD5-hashes of users mail-
addresses

On Oct 27, 12:44 am, "Nick Johnson (Google)" 
wrote:
> Hi Martin,
>
> MD5 hashes are sufficiently random that collisions are purely theoretical
> and not of practical concern. Many systems, for example, address files by
> MD5 or SHA1 hash.
>
> If you can provide an MD5 or SHA1 collision between two short,
> human-readable strings, however, I will be happy to amend the article with
> this caveat.
>
> Regards,
>
> Nick Johnson
>
> On Sun, Oct 25, 2009 at 5:40 PM, Martin Trummer 
>
>
> > wrote:
>
> > in this article
> >http://code.google.com/intl/de-DE/appengine/articles/paging.html
> > the author points out the problems that arise when you use a field
> > that may not be unique for paging.
> > the solution is to use a sharded counter over the user to make the
> > field unique.
>
> > Very fine until here.
> > But then he suggests to use a MD5-hash-value of the unique value
> > instead of the real unique value.
>
> > This is obviously wrong:
> > A hash function, will by definition NOT retain the uniqueness of the
> > source value!
>
> > Sure, the chances that 2 unique values result in the same hash value
> > is (and should by definition be) very low:
> > but we are not satisfied with a "solution" that works most of the
> > time, are we?
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] suggestion: incoming requests and config

2009-10-27 Thread v4vijayakumar

I am looking for a way to limit incoming requests from a particular
user, like not more than one request per second, not more than two
requests per every 5 sec, etc. Should I write code for this, or this
can be blocked even before request reaches my app ?!
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Unable to Connect to Datastore

2009-10-27 Thread Chris H

Hi,
We are currently having issues connecting to our datastore. Is anyone
else seeing this issue?

  File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py", line 1579, in fetch
raw = raw_query.Get(limit, offset)
  File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 1063, in Get
prefetch_count=limit)._Get(limit)
  File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 1000, in _Run
raise _ToDatastoreError(err)
Timeout

We currently have around 300,000 entries in the database. The code
does a plain .all() on the model. The error occurs when we attempt to
fetch any number of results from the query.

query = User.all()
entries = query.fetch(9) # this triggers the error

We are also unable to view any data using the data viewer on the
dashboard.

Any ideas?
Chris Hannam
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---