[google-appengine] Re: Blacklist page not showing top visitors IPs on HR apps

2011-07-27 Thread Prashant
Everyday an "Evolution/2.32.2" bot is making hundreds of hits on my app's
home page. How do I block it ?


On Thu, Jul 28, 2011 at 12:18 PM, Prashant  wrote:

> Hi,
>
> I have a few apps on and MS and a few apps on HR. MS app are showing "*Top
> 25 visitors" *on Blacklist page while HR apps are not showing any such
> list. Do I need to configure something to see the the "*Top 25 visitors*"*
>  *for HR apps ?
>
>
> Thanks in advance :)
>
> --
> Prashant
>

-- 
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] Blacklist page not showing top visitors IPs on HR apps

2011-07-27 Thread Prashant
Hi,

I have a few apps on and MS and a few apps on HR. MS app are showing "*Top
25 visitors" *on Blacklist page while HR apps are not showing any such list.
Do I need to configure something to see the the "*Top 25 visitors*"* *for HR
apps ?


Thanks in advance :)

--
Prashant

-- 
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] OAuth support for third party providers on AppEngine + Mobile; suggestions

2011-07-27 Thread Devraj Mukherjee
Hi all,

We are building an Application that we hope to run on AppEngine, it
will feature iOS and Android clients as well as a Web, Mobile Web
interfaces. The native mobile applications will use the REST services
to communicate with the server.

The Application is a member based application, and most functions
require the user to be logged in.

Following the "social login" trends, we would like to support popular
social services for users to be able to login to our application. Our
understanding is that AppEngine's federated login currently only
supports OpenID and OAuth is experimentally supported for Google
Accounts only?

OAuth seems to be better supported for native applications on mobile
applications, thanks to projects like Google Toolbox for Mac/OSX.

We have the added complication of maintaining our current
authentication system, which we are looking at turning into an OAuth
service to make it uniform.

Looking at some third party OAuth client libraries, suggest that we
can implement OAuth for AppEngine apps but we loose some of the nice
features like managed Authentication via app.yaml

Our questions are

- Is it likely that AppEngine will support OAuth authentication for
other providers in the near future (I did dig around the Roadmap and
didn't find anything mentioned there)?

- Alternatively can OpenID authentication be used on native Mobile
applications (Android, iOS) and if yes any pointers to docs?

Thanks for your time.

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



Re: [google-appengine] Scalebility and n-tier architecture on GAE

2011-07-27 Thread Robert Kluin
Hi,
  This is the whole point in app engine is that all of these things are
already handled. Just write your app using Google's app engine sdk.

  Check out the getting started docs, they give an overview of this.

Robert


On Jul 27, 2011 11:14 AM, "Robert Åkerblom-Andersson" 
wrote:
>
> Hi, I am designing the architecture for an enterprise application that
should be designed to be able to handle a big number of users and for big
traffic loads and therefor I have been doing some research on scalability
and n-tier architectures. I found this blog post to have many good points
and a good summarize of the info I have found:
>
> The ten basic rules of enterprise systems design (source: galratner.com)
>
> Although this list of rules seams good they might need some adjustments
since this are meant for a "traditional hosting". So I have some questions
related to the link above and how the concepts best should be applied to
GAE:
>
> 1. The blog posts talks about building the application so that it can be
run on different servers, different layers should be able to run on
different server/serverfarm and then they should communicate via the
network. How does that best apply to GAE? Just use different serverlets
and/or backend processes and they will automatically spread out in a good
way?
>
> 2. In a N-tired architecture, wikipedia says that different layers should
be able to talk to each other over a network so that the system can scale
out, what is the best way to communicate "over the network" inside an GAE
application in such a way that it should scale good?
>
> --
> You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/btIomNHi2fwJ.
> 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.

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



Re: [google-appengine] GAE structure of python project

2011-07-27 Thread Robert Kluin
The libs directory is probably a good idea.  In some cases I do include 3rd
party libs in source control, it makes it dead simple to clone and start dev
right away.

Robert

On Jul 26, 2011 3:42 AM, "Vasyl Nakvasiuk"  wrote:
>
> What about your structure of python project? Where do you put your third
party packages?
> For example, I use GAE + Flask + Werkzeug + Jinja2, and put this packages
to the 'libs' folder. And this folder under git or mercurial.
> From time to time I update this packages and increase .git or .hg folder
size. It's not cool!
> What about you (structure, third party packages, updating packages) ?
>
> --
> You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/hcJsSj8FhgsJ.
> 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.

-- 
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] Sudden denial of access to apps.

2011-07-27 Thread Matt
Hi there,

I've been using GAE for at least 2 years now and host about 5 websites with 
it. 

(All of which I can usually access via one or two accounts.)

As of about 10 minutes ago when I attempt to logon using the standard:

appengine.google.com/a/website-name

It is now reporting:

"Unauthorized
You are not authorized to access this application."

Which is wrong...

Is anyone else having this problem? 

Also when I click on the "return to applications" it just returns to the 
same screen.

I need to access my app so I can add my billing details so I need a solution 
reasonably soon.

Thanks in advance,
Matt

PS: I can still deploy to it via the launcher which is weird.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/F7rSTHVNbVsJ.
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] Feedback Required

2011-07-27 Thread Sarfaraz
Hi,

I have put up my first Financial portfolio management app on GAE + Python

I would be glad to receive some valuable feedback from the community
regarding its performance / Usability / User Experience.
and how to make it better (performance wise)

The URL is http://biz6001.appspot.com


Regards

Sarf



.

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



Re: [google-appengine] Persisting Lists

2011-07-27 Thread Ernesto Oltra
I thought one thing and I said something completely differente -.-' I meant 
having a model, with the same key_id/key_name as the post and a list of 
users (say 4000/4500). When that super-start with 200.000 followers post 
something, run a taskqueue and save several models with the info. Then, for 
listing, do a key-only query where the user is in the list of affected ones. 
Then, with the keys, obtaing the posts (they have the same key_id/key_name). 
A cron job will delete old notifications.

Most of users will have less than 700/800 followers (if it's something like 
Twitter), so they will consume only one notification model per post. And the 
costs come from indexes (a lot of lists to index), serialization (4000/4500 
items), deserialization (we use it with keys, so almost no cost), deleting 
old notifications (we use keys too)

Anyway, I'm willing to hear new ideas, surely they can largely improve my 
system

Ernesto

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/fC_ZvMvF6MoJ.
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.



Re: [google-appengine] Duplicate Properties

2011-07-27 Thread Tim Hoffman
I would put money on a schema change and there are entities in the datastore 
with different types for the same property name ;-)

I am pretty sure the Stats only identify candidate kinds to download and not 
the actual property name/types during the download.

Tim

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/gruQMmBe21AJ.
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.



Re: [google-appengine] TransactionFailedError: Is the transaction committed or not?

2011-07-27 Thread Tim Hoffman
If you always get modify put within a transaction how would it be 
unreliable?

Rgds

Tim
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/mP_8kv_-LlMJ.
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.



Re: [google-appengine] Persisting Lists

2011-07-27 Thread Ernesto Oltra
Wow... so many users.. Perhaps asking the Google+ guys.. =)

The only idea I have right now, is use taskqueues (or in the same request, 
it depends on latency) to create a «notification», referencing the post, and 
the users. Then, list the most recents notifications for the user. Delete 
the old ones through a cron job. Anyway, I have to say that having the 
notifications for 200.000 users in my news feed would not be a very 
pleaseant experience, they will change every nanosecond!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/VaOU99ZrWuwJ.
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: Any sample program for DeferredTask ?

2011-07-27 Thread Tim Hoffman
And of course http://code.google.com/appengine/articles/deferred.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/kZfeD2AlUKIJ.
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: Any sample program for DeferredTask ?

2011-07-27 Thread Tim Hoffman
Hi

I assume due to the capilisation you used you are referring to Java examples 
(which I can't help with) but in case your
interested in python - have a look at http://blog.notdot.net/tag/deferred

Rgds

T

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/flrho4B3qOQJ.
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.



Re: [google-appengine] Anyone At OSCon Portland?

2011-07-27 Thread Wesley C (Google)
Yup, I'm here but leaving tomorrow morning and have dinner plans for
tonight, so I won't be able to get together for this trip. As far as
other App Engine staff goes, Andrew from the Go team is here if you
wanted to reach out to him as he's doing a talk called "A Tour of Go."
Brian, who is on the core engineering team is also here and giving the
"Python Puzzlers" talk, so you can catch up with him as well. However,
I don't know when either of them are leaving.

Cheers,
-- Wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
   http://corepython.com

wesley.chun : wesc+api at google.com : @wescpy
developer relations :: google cloud products

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



Re: [google-appengine] GAE Starts dynamic instances for no reason... causing unnecessary cold start delays

2011-07-27 Thread Jon McAlister
So, there's a couple of things going on here. I'll see if I can help explain.

The first is that with 1.5.2 we changed how resident instances work,
so that if a dynamic instance existed, the scheduler would prefer an
idle dynamic instance to an idle resident instance. Further, if a
resident instance was busy, we would use this as a cue to warmup a new
dynamic instance. The point of these changes is to turn the resident
instances into the reserve for the app. They are generally idle, but
if the app gets more traffic than it can handle with non-reserved
instances, then it will use some of the reserved instances (and this
will in turn spawn a new dynamic instance).

Generally, Always On is going away with the new billing plan, and
being replaced by Min Idle Instances, which is how the reserved
instances have been changed to behave with 1.5.2. We're continuing to
evaluate all aspects here, both how well these reserve instances are
working, what we should be doing, what we should change about the
scheduler and the billing plan, and so on.

In terms of this specific example, the slow request was caused by
general bigtable slowness during that time interval. This can be seen
somewhat here: 
http://code.google.com/status/appengine/detail/datastore/2011/07/27#ae-trust-detail-datastore-get-latency

This can also be investigated somewhat using our logs viewer. For
example, we can see all loading requests for an app with:
https://appengine.google.com/logs?app_id=wordpong&severity_level_override=1&severity_level=3&tz=US%2FPacific&filter=loading_request%3D1&filter_type=regex&date_type=now&date=2011-07-27&time=15%3A46%3A45&limit=20&view=Search.
Note how the only loading requests this app has received have been
/_ah/warmup

Also we can see all requests sent to a specific instance. Here's the
one with the log line you listed above:
https://appengine.google.com/logs?app_id=wordpong&severity_level_override=1&severity_level=3&tz=US%2FPacific&filter=instance%3D00c61b117c39de5ca2d60c64270fc703fdce1355&filter_type=regex&date_type=now&date=2011-07-27&time=15%3A56%3A40&limit=20&view=Search.
Note how the first request the instance served was /_ah/warmup,
followed by a pause of 4 seconds, followed by the /game/Game.wp
request which ran for 9 seconds.

There are a couple of things that can be done now to get different
behaviors. One is to set Max Idle Instances to three, which will kill
off the dynamic instances for your app, and leave the app with just
the resident instances. The other is to use Backends, which will give
you direct control over how many instances run for your app and their
properties: http://code.google.com/appengine/docs/java/backends/overview.html

Hopefully that helps. There is also a lengthy discussion going on at:
http://groups.google.com/group/google-appengine/browse_thread/thread/baf439a6e073f6da

On Wed, Jul 27, 2011 at 2:59 PM, Mike Lawrence  wrote:
> I purchased 3 Always-On instances.
> My site is under construction with no traffic.
> When I hit my site, GAE fires up a new dynamic instance to service the
> request when there are 3 idle instances!
> My app starts in 2.0 seconds (using stripes)
> But GAE takes 9.4 seconds to reply (why?).
> Really annoying.
> Why pay for Always-On when you get the crappy response time of dynamic
> instances?
>
> App Id: WordPong
>
> EST:
> 2011-07-27 17:37:04.859 /game/Game.wp?_eventName=questionList 200
> 9481ms 2063cpu_ms 103api_cpu_ms 1kb Mozilla/5
> 2011-07-27 12:37:51     Completed update of a new default version
> version=22.2011-07-27T19:37:17Z
>
> Here's the screen shot of my instances at the time of the request:
> http://dl.dropbox.com/u/473572/Untitled.jpg
>
> Why are there any dynamic instances running at all when there are 3
> idle always-on instances available?
> Looks like a serious bug where GAE is wasting resources and providing
> poor response times for no reason.
>
> --
> 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.
>
>

-- 
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] which custom HTTP header names allowed?

2011-07-27 Thread Carter
We have a proxy that needs to send the client's IP address to GAE.
We tried setting a custom HTTP header of "X-client-ip", but that seems
to get filtered by GAE.
We could include the info in use User-Agent, but that seems hack-ish.

The doc (http://code.google.com/appengine/docs/java/runtime.html )
says:
Request Headers
"An incoming HTTP request includes the HTTP headers sent by the
client. For security purposes, some headers are sanitized or amended
by intermediate proxies before they reach the application."

So what custom header name can we use?

-- 
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] GAE Starts dynamic instances for no reason... causing unnecessary cold start delays

2011-07-27 Thread Mike Lawrence
I purchased 3 Always-On instances.
My site is under construction with no traffic.
When I hit my site, GAE fires up a new dynamic instance to service the
request when there are 3 idle instances!
My app starts in 2.0 seconds (using stripes)
But GAE takes 9.4 seconds to reply (why?).
Really annoying.
Why pay for Always-On when you get the crappy response time of dynamic
instances?

App Id: WordPong

EST:
2011-07-27 17:37:04.859 /game/Game.wp?_eventName=questionList 200
9481ms 2063cpu_ms 103api_cpu_ms 1kb Mozilla/5
2011-07-27 12:37:51 Completed update of a new default version
version=22.2011-07-27T19:37:17Z

Here's the screen shot of my instances at the time of the request:
http://dl.dropbox.com/u/473572/Untitled.jpg

Why are there any dynamic instances running at all when there are 3
idle always-on instances available?
Looks like a serious bug where GAE is wasting resources and providing
poor response times for no reason.

-- 
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: Channel Api for devloping multiplayer game

2011-07-27 Thread Everson Alves da Silva
Hello Hariprasath,

I recommend you first try it with the new release 1.5.2. Channel Api wasn't 
working for me in 1.5.1 and got fixed with the new release.

Also, tokens expire after 2 hours.

Jhonny Everson

Creator of the 'Taking a Break' iPhone app for Facebook and Twitter

http://takingabreakapp.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/-mSb7KuzW5oJ.
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 : Re: Jersey 1.8 issue

2011-07-27 Thread Yann Lambret
Hugo,

It worked like a charm, thanks a lot for your help about this, you saved my 
day (week ?).

Cheers

Yann

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/0Pkv94k5IK4J.
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: Deploy application size limit

2011-07-27 Thread Jose Montes de Oca
Hi Rodrigo,

Because this is an issue related to how GWT compiles, I'll recommend you 
post your question on the GWT 
group: https://groups.google.com/forum/#!forum/google-web-toolkit 

If you don't find any help there, just follow up here to see what else I can 
do.

Hope this helps!

Best,
Jose Montes de Oca

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/2iduuphTJusJ.
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.



Re: [google-appengine] Persisting Lists

2011-07-27 Thread Bruno Sandivilli
Ok, Thanks! I catch it. This solved my problem
I was wondering , this is ok for listing users and etc, but the hard thig
is, when the user post a message i will have to send this message to 200.000
users. How would i select this users to append this feed into their
profiles?
Thanks again.

2011/7/27 Ernesto Oltra 

> And for followers, you could too shard the lists. You can have several
> entities, each with, about 100 results or so (or 1000, or 2000, I prefer 100
> for easy of serializing/deserializing). All these would have the user as
> ancestor. When listing, take only one entity, deserializing its lists (only
> 100 results) and show some of them. When listing all, you can use cursors
> and some tricks to have the job done (job = paging =) )
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/tRQCOATsWdUJ.
>
> 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.
>

-- 
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: Deploy application size limit

2011-07-27 Thread Rodrigo Teixo
Hi Jose.

The gwt compilation is set to OBFUSCATED, Log level: Info

I was seeing the Modules permutation directory above the WAR folder
and they have a average of 1MB each,
and the DEPLOY folder that contains the same folders of the modules
have many files .symbolMap each folder.

So for resuming... all of my modules has a directory under war with
the .cache.html, .nocache.js .etc... --- 1MBytes per module folder
Same module directory under the deploy folder has 6 files .symbolMap
each 1,5MB --- 9MBytes per module folder

With my 14 modules * 9MB = 126MB
+ 4,7MB images and static files + some external jar libraries, gives
the 150MB thats is breaking the deploy limit


So, what is the error of my project? Should I clean the deploy folder?

I am surely doing something wrong, cause I dont believe that my
project is that big.

Help is much apreciated.

Thanks in advance,
[],
Rodrigo.


On 26 jul, 16:43, Jose Montes de Oca  wrote:
> Hi,
>
> When compiling in GWT make sure to compile in OBFUSCATED mode, not PRETTY or
> DETAILED mode.
>
> Try that out and let us know how it goes!
>
> Best,
> Jose Montes de Oca

-- 
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: SMS verification failure: already assoc

2011-07-27 Thread Ernesto Oltra
http://appengine.google.com/waitlist/sms_issues

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/OIl8VNmaoDkJ.
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.



Re: [google-appengine] Persisting Lists

2011-07-27 Thread Ernesto Oltra
And for followers, you could too shard the lists. You can have several 
entities, each with, about 100 results or so (or 1000, or 2000, I prefer 100 
for easy of serializing/deserializing). All these would have the user as 
ancestor. When listing, take only one entity, deserializing its lists (only 
100 results) and show some of them. When listing all, you can use cursors 
and some tricks to have the job done (job = paging =) )

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/tRQCOATsWdUJ.
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.



Re: [google-appengine] Persisting Lists

2011-07-27 Thread Ernesto Oltra
A little correction, you could fetch more than 1000 results (the limit has 
been disposed time ago) but it's not recommendable have more than 200/300 
results (more or less, for perfomance). I strongly recommend you seeing this 
video about ListProperty, fan-outs, etc (Google I/O 2009):

http://www.youtube.com/watch?v=AgaL6NGpkB8&feature=player_embedded



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/_y0mmFc9vsIJ.
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] Channel API between front and backend instances

2011-07-27 Thread WanderingGAE
Is it possible for a channel (Channel API) to be created in one instance 
(frontend) and used in a backend instance?  I've tried sharing the channel 
id using memcache, but the Backend instance's channel messages just do not 
arrive at the client.  The client does receive an instance from the frontend 
to start.  Thanks!  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/GxFknjUpoG0J.
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: GAE structure of python project

2011-07-27 Thread Ernesto Oltra
Oops, and if I need external libraries I usually create a third_party folder 
containing all the files.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/h1Ug9_DEazoJ.
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: Created new app but application does not exist

2011-07-27 Thread Jose Montes de Oca
Hi Peter,

It would be good to see what was the first error you were receiving. But on 
regards the second one, the error is not confusing it just means you were 
trying to deploy an app from a google account that did not was an 
owner/developer of the app ID, therefore that application did not existed in 
the scope of the user you were using to deploy with.

Hope this clarifies the error.

Best,
Jose

On Wednesday, July 27, 2011 6:31:15 AM UTC-7, Peter Liu wrote:
>
> That does it! I forgot I logged into another account. 
>
> The error from the creation process and the error message from the 
> deployment is confusing. 
>
> On Jul 27, 5:14 pm, Sameer Lodha  wrote: 
> > By user id I meant - Your Google ID. 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Wed, Jul 27, 2011 at 2:43 PM, Sameer Lodha  wrote: 
> > > Most probably, the user id you are using for the app upload does not 
> > > have the "rights" to the application. 
> > 
> > > In the App Engine Console, go to "Administration" - "Permissions". 
> > 
> > > Here you can setup the permissions. 
> > 
> > > Hope this helps. 
> > 
> > > Sam 
> > 
> > > On Wed, Jul 27, 2011 at 2:13 AM, Peter Liu  wrote: 
> > >> Hi, 
> > 
> > >> I tried to create a new app called "androidquery", and the web UI 
> > >> shows some error (forgot exact wording). 
> > >> Despite the message, I can access the admin panel for this app, so 
> > >> it's created (at least half way) and the appid is reserved. 
> > 
> > >> But when I deploy, it shows this error: 
> > 
> > >> java.io.IOException: Error posting to URL: 
> > >>https://appengine.google.com/api/appversion/create?app_id=androidquer... 
>
> > >> 404 Not Found 
> > >> This application does not exist (app_id=u'androidquery'). 
> > 
> > >> I suppose some error happened in the middle of the app creation 
> > >> process and the app is stuck? 
> > 
> > >> Anyway to rescue the app or the app id? I really want to keep the app 
> > >> id because it matches my .com domain. 
> > 
> > >> 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-a...@googlegroups.com. 
> > >> To unsubscribe from this group, send email to 
> google-appengi...@googlegroups.com. 
> > >> For more options, visit this group athttp://
> groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/RMf7WefgiloJ.
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: GAE structure of python project

2011-07-27 Thread Ernesto Oltra
Personally I wouldn't include third_party packages in the repository, but 
write a README file pointing the releases of what projects i need. It 
depends.

My structure:

static/images/...
static/css/...
static/js/...
static/favicon.ico
static/robots.txt
templates/...
conf/...   < This is a Django directory
handlers/...
nebula/... <--- My own framework in top of webapp with cold starts, etc.. 
(my code too)
RCS/... <--- Any other thing that it isn't needed in production (not 
uploaded) but I want in repository. Example: To-Do file, Geany project 
file,...

Hope it helps you,

Ernesto

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/1Glacqn_QWAJ.
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.



Re: [google-appengine] Persisting Lists

2011-07-27 Thread Pascal Voitot Dev
You could copy the followers (a very light entity) as child entities of your
parent! In this way, followers and parent user will be in the same entity
group and can be retrieved in the same transaction! But you can't retrieve
more than 1000 entities in a single request so you need to manage offsets or
cursors!

You could also serialize the followers id in a json string for ex but it
shouldn't exceed 1Mb! This is quite raw as you can't perform queries on this
field but can be useful sometimes!

The last solution I see just now is to reverse the problem and create a
table joining the users and their followers and perform a request on the
followers following a given userid

pascal

On Wed, Jul 27, 2011 at 6:09 PM, Bruno Sandivilli <
bruno.sandivi...@gmail.com> wrote:

> Ok, thanks! This is not a proble since facebook have this limit too. But
> for Followers a have to implement some workarround for this(since followers
> is a more big number); Any ideas? Thanks
>
> 2011/7/27 Pascal Voitot Dev 
>
>> Hi,
>>
>> You can look at this post on stackoverflow to have a few more info! The
>> most known issues are:
>> - the limit of 5000 elements per list
>>  - the famous index explosion issue (last GAE version tells that index
>> explosion won't happen but I don't know exactly what it means)
>>
>> Pascal
>>
>>   On Tue, Jul 26, 2011 at 10:19 PM, Bruno Sandivilli <
>> bruno.sandivi...@gmail.com> wrote:
>>
>>>  Hi, i'm modeling a social network, i use to create a table with the
>>> relations like (userid,friendid)
>>> but in nosql, im planning to simple add a list of id to each user,
>>> like User { List firends }.
>>>
>>> Is this wrong(it works, but and the performance) ?
>>>
>>> --
>>> 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.
>>>
>>>
>> --
>> 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.
>>
>
>  --
> 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.
>

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



Re: [google-appengine] Persisting Lists

2011-07-27 Thread Bruno Sandivilli
Ok, thanks! This is not a proble since facebook have this limit too. But for
Followers a have to implement some workarround for this(since followers is a
more big number); Any ideas? Thanks

2011/7/27 Pascal Voitot Dev 

> Hi,
>
> You can look at this post on stackoverflow to have a few more info! The
> most known issues are:
> - the limit of 5000 elements per list
>  - the famous index explosion issue (last GAE version tells that index
> explosion won't happen but I don't know exactly what it means)
>
> Pascal
>
>   On Tue, Jul 26, 2011 at 10:19 PM, Bruno Sandivilli <
> bruno.sandivi...@gmail.com> wrote:
>
>>  Hi, i'm modeling a social network, i use to create a table with the
>> relations like (userid,friendid)
>> but in nosql, im planning to simple add a list of id to each user,
>> like User { List firends }.
>>
>> Is this wrong(it works, but and the performance) ?
>>
>> --
>> 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.
>>
>>
> --
> 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.
>

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



Re: [google-appengine] Re: GAE starting unnecessary instances

2011-07-27 Thread Johan Euphrosine
Actually the latter knobs I listed were suggestion from the community
but feel free to raise a different voice.

The only knobs Google provide so far are:
- maximum number of idle instances
- minimum pending latency

See http://code.google.com/appengine/docs/adminconsole/performancesettings.html
for more details.

- min number of idle instances will come later to supplant Always on.

And all knobs should have automatic default values that make App
Engine handle those "automagically in the background".

On Wed, Jul 27, 2011 at 12:20 PM, pdknsk  wrote:
> It seems like the service is moving in a direction in which devs will
> have to adjust many knobs, rather than have Google handle it
> automagically in the background.
>
> --
> 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.
>
>



-- 
Johan Euphrosine (proppy)
Developer Programs Engineer
Google Developer Relations

-- 
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: Mail API Calls Quota

2011-07-27 Thread pdknsk
You have 1,700,000 calls free per day when you enable billing.

http://code.google.com/appengine/docs/quotas.html#Mail

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



Re: [google-appengine] Persisting Lists

2011-07-27 Thread Pascal Voitot Dev
Hi,

You can look at this post on stackoverflow to have a few more info! The most
known issues are:
- the limit of 5000 elements per list
 - the famous index explosion issue (last GAE version tells that index
explosion won't happen but I don't know exactly what it means)

Pascal

On Tue, Jul 26, 2011 at 10:19 PM, Bruno Sandivilli <
bruno.sandivi...@gmail.com> wrote:

> Hi, i'm modeling a social network, i use to create a table with the
> relations like (userid,friendid)
> but in nosql, im planning to simple add a list of id to each user,
> like User { List firends }.
>
> Is this wrong(it works, but and the performance) ?
>
> --
> 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.
>
>

-- 
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] Channel Api for devloping multiplayer game

2011-07-27 Thread Hariprasath Mohankumar
Hi Everyone,
   Im using the channel api for
developing a simple multiplayer game. In order to get the user
presence im handling the posts on /_ah/channel/disconnected/  and /_ah/
channel/connected/ and writing it to the database using models in the
google app engine. But i found a strange problem that the channel gets
disconnected automatically when i perform a operation.   Is there any
scenario where the channels can disconnect automatically??
im using python 2.5.4
platform : windows XP
google app engine version is 1.5.1

Any help would be appreciated!

thanks,
Hariprasath


-- 
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] Persisting Lists

2011-07-27 Thread Bruno Sandivilli
Hi, i'm modeling a social network, i use to create a table with the
relations like (userid,friendid)
but in nosql, im planning to simple add a list of id to each user,
like User { List firends }.

Is this wrong(it works, but and the performance) ?

-- 
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: Created new app but application does not exist

2011-07-27 Thread MadCow
I had the same thing happen to me today.  After a short while it
worked so maybe it needs to propagate through the system?  Did you
receive the email stating it had been created?

I tried several other things so its possible one of those other things
did the trick.

On Jul 26, 1:43 pm, Peter Liu  wrote:
> Hi,
>
> I tried to create a new app called "androidquery", and the web UI
> shows some error (forgot exact wording).
> Despite the message, I can access the admin panel for this app, so
> it's created (at least half way) and the appid is reserved.
>
> But when I deploy, it shows this error:
>
> java.io.IOException: Error posting to 
> URL:https://appengine.google.com/api/appversion/create?app_id=androidquer...
> 404 Not Found
> This application does not exist (app_id=u'androidquery').
>
> I suppose some error happened in the middle of the app creation
> process and the app is stuck?
>
> Anyway to rescue the app or the app id? I really want to keep the app
> id because it matches my .com domain.
>
> 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] How do I do this query in JDO on server?

2011-07-27 Thread SergiBC
Hello,

I do this query in "Datastore viewer" --> select from " +
MyClass.class.getName() + " WHERE id >= KEY('MyClass', 415011)
and it works.

But how do I do this in java?


Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] SMS verification failure: already assoc

2011-07-27 Thread MadCow
Hello!  I activated appengine with my personal phone on my business/
Google apps account (chris...@bakedon.com).

Because of that, I cannot activate my personal account
(mad...@gmail.com) because it says the number is already in use with
another account.

Is there some way I can activate/verify my personal account
(mad...@gmail.com)?  If necessary you can disable my other account.

-- 
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] Mail API Calls Quota

2011-07-27 Thread BB
I'm thinking about using the Mail API for a password retrieval service
which probably would exceed the Mail API Calls limit pr. day.
The recipients will be requesting individual emails at different times
during a day. So no bulk mail.
Each password retrieval will require one call to the Mail API.

What to do if I get 200 password retrievals pr. day?

Is it possible to buy more Mail API Calls?

The billing settings page only displays:

Recipients Emailed   $0.0001/Email

However no mention or possibility to buy extra  Mail API Calls.

Thanks
BB

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

2011-07-27 Thread Kelvin Santiago
So today at 8:42 PM CST I'm trying to login into the appengine dashboard and 
I'm unable to do so.  I loging and all I'm getting is an error saying " 302 
Moved
 The document has moved here." Anyone having this same issue?  I have tried 
Chrome, IE, Opera.  Chrome says too many redirects, IE just says connections 
problems, and opera provides the 302 moved error.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/sCv9RTNTU-UJ.
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] Scalebility and n-tier architecture on GAE

2011-07-27 Thread Robert Åkerblom-Andersson
Hi, I am designing the architecture for an enterprise application that 
should be designed to be able to handle a big number of users and for big 
traffic loads and therefor I have been doing some research on scalability 
and n-tier architectures. I found this blog post to have many good points 
and a good summarize of the info I have found:

The ten basic rules of enterprise systems design (source: 
galratner.com)

Although this list of rules seams good they might need some adjustments 
since this are meant for a "traditional hosting". So I have some questions 
related to the link above and how the concepts best should be applied to 
GAE:

1. The blog posts talks about building the application so that it can be run 
on different servers, different layers should be able to run on different 
server/serverfarm and then they should communicate via the network. How does 
that best apply to GAE? Just use different serverlets and/or backend 
processes and they will automatically spread out in a good way?

2. In a N-tired architecture, wikipedia says that different layers should be 
able to talk to each other over a network so that the system can scale out, 
what is the best way to communicate "over the network" inside an GAE 
application in such a way that it should scale good? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/btIomNHi2fwJ.
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: Pre-allocating datastore IDs - plumbing this with db.Model

2011-07-27 Thread Tim
Forgot one extra question about the docs

Key docs say



  Key.from_path(kind, id_or_name, parent=none, namespace=None, **kwds)
[snip]
  For example, the following call creates a key for an entity of kind 
Address with the numeric ID 9876 whose parent is an entity of kind User with 
the named key 'Boris':
k = Key.from_path('User', 'Boris', 'Address', 9876)



I take it the example is incorrect in that the params are jumbled compared 
to the docs, again I checked the source but my python-foo with respects to 
"*args" and "**kwargs" and the like is a little vague... 

I take it the example should be something like

  k = Key.from_path('Address', 9876, parent=Key.from_path('User', 'Boris'))

--
T


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/sdylOAbJXogJ.
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] Pre-allocating datastore IDs - plumbing this with db.Model

2011-07-27 Thread Tim

This is a bit of an advanced question for the experts with regards to Keys, 
IDs, Models and the db.allocate_ids() functionality - those who can answer 
it won't need much more explanation, so apologies if it doesn't make much 
sense to everyone else (but you may want to file it away in case you ever 
need to do the same).

My one-page-webapp uses a datastore framework that gets a bit distraught 
when it has create new items and allocate temporary IDs which will later get 
replaced with "true" IDs from the datastore (I've been using the actual Key 
strings as ids), so I thought I'd have a look at pre-allocating IDs.

In the absence of cookbook examples, I've concluded

   - I can pre-allocate a range of IDs for a given class using 
   db.allocate_ids(), but as individual keys encode the id and the parent 
   instance (if any) then I can't convert these pre-allocated IDs into 
   pre-allocated Keys if I may be using parent objects.
   - So I should change the client to use IDs (or maybe "type+id" tuples), 
   and have queries to the GAE server return items with 'obj.key().id()' rather 
   than 'str(obj.key())' 
   - The client can be given a range of pre-allocated IDs that it can safely 
   assign to new records as it creates them, knowing they won't change when the 
   item is created in the datastore
   - For updating/deleting items on GAE, I'll replace calls to "db.get(key)" 
   (where the key came from the client, and yes I then check the object is 
   valid etc before I proceed) with "MyModel.get_by_id(ids)" (I know the types 
   of objects by this stage so it's not like I'm doing a heterogeneous fetch)
   - I'll still store references to other objects by db.ReferenceProperty 
   type (ie key) rather than simple id as it makes migration of data easier (ie 
   use of IDs rather than Keys is a client layer convenience only)
   - I'll implement a new model base class for all db.Model derived classes, 
   that defines a new optional "id" parameter and constructs the correct key 
   (my python knowledge of the constructs is bit green, so I think this does 
   what I expect - kind() is a reserved but undocumented instance method that 
   looks safer than using __name__ by looking at the SDK source)
   
class BaseModel(db.Model):
def __init__(self, id=None, parent=None, **args):
if id != None:
args["key"] = db.Key.from_path(self.kind(), id, parent=parent)
db.Model.__init__(self, parent=parent, **args)

The db.Model ctor docs say that "key" can't be used with parent or key_name, 
looking at the SDK source implies the last line of the above should be fine, 
but would I do better to omit the "parent=parent" parameter and rely on the 
fact that, if needed, the parent object is looked up form the key?

   - I can then make instances as before 'obj = MyModel(someproperty=97, 
   another="Hello world")' but I now have a special optional "id" property for 
   construction. I haven't changed parent or property semantics or the like.
   
Does the above look reasonable enough? I take it the efficiency is pretty 
much the same (ie there's no great added overhead such as extra database 
calls introduced by any of the above) but as I'm no great python expert, and 
the calls above are documented but not always explained, does the above look 
reasonable enough or am I laying myself open to a world of pain to come?

Cheers

--
Tim

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/EICnNig9mKkJ.
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: Created new app but application does not exist

2011-07-27 Thread Peter Liu
That does it! I forgot I logged into another account.

The error from the creation process and the error message from the
deployment is confusing.

On Jul 27, 5:14 pm, Sameer Lodha  wrote:
> By user id I meant - Your Google ID.
>
>
>
>
>
>
>
> On Wed, Jul 27, 2011 at 2:43 PM, Sameer Lodha  wrote:
> > Most probably, the user id you are using for the app upload does not
> > have the "rights" to the application.
>
> > In the App Engine Console, go to "Administration" - "Permissions".
>
> > Here you can setup the permissions.
>
> > Hope this helps.
>
> > Sam
>
> > On Wed, Jul 27, 2011 at 2:13 AM, Peter Liu  wrote:
> >> Hi,
>
> >> I tried to create a new app called "androidquery", and the web UI
> >> shows some error (forgot exact wording).
> >> Despite the message, I can access the admin panel for this app, so
> >> it's created (at least half way) and the appid is reserved.
>
> >> But when I deploy, it shows this error:
>
> >> java.io.IOException: Error posting to URL:
> >>https://appengine.google.com/api/appversion/create?app_id=androidquer...
> >> 404 Not Found
> >> This application does not exist (app_id=u'androidquery').
>
> >> I suppose some error happened in the middle of the app creation
> >> process and the app is stuck?
>
> >> Anyway to rescue the app or the app id? I really want to keep the app
> >> id because it matches my .com domain.
>
> >> 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 
> >> athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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: FAQ for out of preview pricing changes

2011-07-27 Thread Anders
I think Google will provide a reasonably fair pricing model. I heard about 
how Groupon takes 50% of the money and pay their business partners with a 90 
days delay. That sounds disgustingly greedy to me. And the person who 
mentioned that then said that Google has a similar service where they take 
only 20% and pay within 4 days. Maybe that's too greedy too but it's at 
least more reasonable, and maybe even fair. I would be surprised if Google 
tried to rip off its App Engine customers too much.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/fhBGbqQ9YVAJ.
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.



Re: [google-appengine] TransactionFailedError: Is the transaction committed or not?

2011-07-27 Thread Joshua Smith
Can you give an example?  Because that approach would seem to be unreliable in 
a two-writer scenario.

On Jul 26, 2011, at 10:11 PM, Robert Kluin wrote:

> Well, I generally put revision numbers on my entities.  In my
> transctions, before the update, I check that the revision number
> currently on the entity matches what I expect.  If it doesn't then I
> know the update is out-of-date.
> 
> There are other solutions too, depending on the app and data model.
> 
> 
> Robert
> 
> 
> 
> On Tue, Jul 26, 2011 at 15:03, Joshua Smith  wrote:
>> On this topic, nobody ever answered this question:
>> 
>> http://code.google.com/appengine/docs/python/datastore/transactions.html
>> 
>> First it says, "Make sure your transactions are idempotent" and then it
>> gives an example which isn't.
>> 
>> I'm not sure it's possible to do the task in that example correctly if you
>> cannot tell whether a transaction succeeded or failed when it throws an
>> exception. I just tried sketching out a solution that stored a transaction
>> ID in the model, but that won't work because there could be multiple
>> writers. The whole thing seems rather intractable, and the idea that you
>> cannot tell whether a transaction succeeded or failed violates the principle
>> of least surprise for anyone who's ever used a database!
>> 
>> Can some googlers weigh in, and explain how, for example, the example in the
>> documentation could be implemented correctly?
>> 
>> 
>> So, can you?
>> I think that the idea of making transactions idempotent is nonsense.  I
>> don't think it is going to be possible in many cases.
>> Either you support transactions, or you don't.  By my reading, GAE doesn't.
>> -Joshua
>> On Jul 26, 2011, at 3:40 PM, Jose Montes de Oca wrote:
>> 
>> Hi Pol,
>> What this meas is that even if a transaction throws an exception this does
>> not means the transaction failed, thats why you need to make your datastore
>> transaction idempotent. So if you retry a transaction because it throws an
>> exception, your transaction needs to "check" if the last
>> transaction committed successfully or not.
>> Best,
>> Jose Montes de Oca
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-appengine/-/bm54SrfYFdAJ.
>> 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.
>> 
>> --
>> 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.
>> 
> 
> -- 
> 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.
> 

-- 
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] Any sample program for DeferredTask ?

2011-07-27 Thread suersh babu
Hi,

I am searching for sample program for DeferredTask,
also document for DeferredTask is not very descriptive.

Any sample program would be really appreciated.

Regards
Suresh Babu G



-- 
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: GAE starting unnecessary instances

2011-07-27 Thread pdknsk
It seems like the service is moving in a direction in which devs will
have to adjust many knobs, rather than have Google handle it
automagically in the background.

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



Re: [google-appengine] Created new app but application does not exist

2011-07-27 Thread Sameer Lodha
By user id I meant - Your Google ID.

On Wed, Jul 27, 2011 at 2:43 PM, Sameer Lodha  wrote:
> Most probably, the user id you are using for the app upload does not
> have the "rights" to the application.
>
> In the App Engine Console, go to "Administration" - "Permissions".
>
> Here you can setup the permissions.
>
> Hope this helps.
>
> Sam
>
> On Wed, Jul 27, 2011 at 2:13 AM, Peter Liu  wrote:
>> Hi,
>>
>> I tried to create a new app called "androidquery", and the web UI
>> shows some error (forgot exact wording).
>> Despite the message, I can access the admin panel for this app, so
>> it's created (at least half way) and the appid is reserved.
>>
>> But when I deploy, it shows this error:
>>
>> java.io.IOException: Error posting to URL:
>> https://appengine.google.com/api/appversion/create?app_id=androidquery&version=0-1-1&;
>> 404 Not Found
>> This application does not exist (app_id=u'androidquery').
>>
>> I suppose some error happened in the middle of the app creation
>> process and the app is stuck?
>>
>> Anyway to rescue the app or the app id? I really want to keep the app
>> id because it matches my .com domain.
>>
>> 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.
>>
>>
>

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



Re: [google-appengine] Created new app but application does not exist

2011-07-27 Thread Sameer Lodha
Most probably, the user id you are using for the app upload does not
have the "rights" to the application.

In the App Engine Console, go to "Administration" - "Permissions".

Here you can setup the permissions.

Hope this helps.

Sam

On Wed, Jul 27, 2011 at 2:13 AM, Peter Liu  wrote:
> Hi,
>
> I tried to create a new app called "androidquery", and the web UI
> shows some error (forgot exact wording).
> Despite the message, I can access the admin panel for this app, so
> it's created (at least half way) and the appid is reserved.
>
> But when I deploy, it shows this error:
>
> java.io.IOException: Error posting to URL:
> https://appengine.google.com/api/appversion/create?app_id=androidquery&version=0-1-1&;
> 404 Not Found
> This application does not exist (app_id=u'androidquery').
>
> I suppose some error happened in the middle of the app creation
> process and the app is stuck?
>
> Anyway to rescue the app or the app id? I really want to keep the app
> id because it matches my .com domain.
>
> 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.
>
>

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



Re: [google-appengine] Re: GAE starting unnecessary instances

2011-07-27 Thread Johan Euphrosine
The gist of the discussion is:
- Idle Dynamic Instances get traffic in priority over Idle Always On Instances.
- People have shown in the thread that 'Max Idle Instance' knob could
be used to workaround this behavior by preventing too many Dynamic
Instances from spawning.
- This is not really worth worrying before the new billing model,
since the current behavior is temporary until Always On Instances get
superseeded by 'Min Idle Instance' knob.

A few suggestions coming out of this thread that I forwarded the
scheduler engineering team:
1/ Show the current CPU% usage of an instance.
2/ Show the current number of threads of an instance.
3/ Allow to override the 30 second deadline for the warm up requests
(for loading frameworks).
4/ New idle_instance_timeout knob: how long an idle instance can live
before being reclaimed.
5/ Allow to configure the capacity for Dynamic Instance (in a similar
way to Backends).
6/ Add rules for changing Max Idle Instances / Instance capacity
during different times of a day and week.
7/ Multiple high availability preset regarding instance spawning: (
safe + unpredicatable cost ) versus ( unsafe + predictable cost ).
8/ Allow user to specify a budget related to request serving delay so
the scheduler can synthesize a policy about instance spawning.
9/ Alternative load balancing strategy: load 1 instance > 50% before
using the second one and so on (instead of round-robin).

Hope that helps.

On Wed, Jul 27, 2011 at 1:47 AM, Santiago Lema  wrote:
> To keep things simple,  is this issue worth worrying about before the
> new billing model becomes active ? Or will everything be so different
> that the stuff we see know will be different then ?
>
> My instances:
> https://skitch.com/smalltech/fcyfd/instances-smallte.ch
>
> Site: smallte.ch
> (on http://websmalltech.appspot.com/ )
>
>
> On 25 juil, 10:33, Johan Euphrosine  wrote:
>> What is your setting for 'Max IdleInstances' ?
>>
>> Feel free to open a Production issue with you appid if you want me to
>> track this specifically.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Sat, Jul 23, 2011 at 11:01 AM, Francois Masurel  
>> wrote:
>> > Geez, now even some Dynamicinstancesare not used too and stay idle for
>> > hours (check attachment).
>> > With the new pricing model this will get really really expensive.
>> > I hope there is definitely something going wrong.
>> > Francois
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> >https://groups.google.com/d/msg/google-appengine/-/Qczx6foLplUJ.
>> > 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.
>>
>> --
>> Johan Euphrosine (proppy)
>> Developer Programs Engineer
>> Google Developer Relations
>
> --
> 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.
>
>



-- 
Johan Euphrosine (proppy)
Developer Programs Engineer
Google Developer Relations

-- 
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 : Re: Jersey 1.8 issue

2011-07-27 Thread Yann Lambret
Hi Hugo,

Thanks for your answer. I put indeed the right package name in the web.xml, 
I also tried with the parent packages but without success. I going to try 
your solution and let you know how it goes.

Yann

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/nRzcblfz1q4J.
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: Jersey 1.8 issue

2011-07-27 Thread Hugo Visser
Hi Yann,

I'm running an older version of Jersey on app engine (1.3) which runs
fine.

One tip that I can give you is not to use classpath scanning as you do
now. Just create an Application and register that in your web xml
(it's easier to debug too). That will give you better start up
performance on App Engine.

If you do use classpath scanning, I hope you understand that your
resources should be in the package "net.whatever.rest" for Jersey to
find them?

Hugo

On 26 jul, 11:57, Yann Lambret  wrote:
> Hello,
>
> I'm trying to deploy a restful web service on GAE with Jersey 1.8
> implementation. On the page 'will it run on appengine', there is no
> information about this specific release. I've set up the web.xml as
> indicated in the Jersey documentation :
>
> 
>     Jersey Web Application
>     
> com.sun.jersey.spi.container.servlet.ServletContainer et-class>
>     
>         com.sun.jersey.config.property.packages
>         net.whatever.rest
>     
> 
>
> My war/WEB-INF/lib directory contains the following files:
>
> asm-3.1.jar
> jackson-core-asl-1.7.1.jar
> jackson-jaxrs-1.7.1.jar
> jackson-mapper-asl-1.7.1.jar
> jackson-xc-1.7.1.jar
> jersey-client-1.8.jar
> jersey-core-1.8.jar
> jersey-json-1.8.jar
> jersey-server-1.8.jar
> jettison-1.1.jar
> jsr311-api-1.1.1.jar
>
> My REST class is annotated with @Path btu I still get these errors when 
> accessing the application (deploying is ok):
>
> Uncaught exception from servlet
> javax.servlet.UnavailableException: 
> com.sun.jersey.api.container.ContainerException: The ResourceConfig instance 
> does not contain any root resource classes.
>         at 
> org.mortbay.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java: 
> 415)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:458)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
>         at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at 
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685 )
>         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>         at 
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250
>
> Or sometimes this additionnal error, depending on the content of my web.xml 
> file:
>
> com.sun.jersey.server.impl.application.RootResourceUriRules : The 
> ResourceConfig instance does not contain any root resource classes.
>
> Did sommeone successfully manage to deploy a Jersey 1.8 app on GAE ? If so, 
> could you please provide the related web.xml secttion,
> code snippet or whatever could help ?
>
> Thanks a lot.
>
> Yann

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