Re: [google-appengine] GAEの一部の重要なエンティティを削除してしまいました

2013-08-07 Thread Takashi Matsuo
Hi Nakamura-san,

This is an App Engine discussion group for English language. Next time,
please use google-app-engine-ja...@googlegroups.com for Japanese
conversation.

残念ながら、データのバックアップはユーザーの皆様の責任で行なっていただいています。
Datastore Admin の機能を使うとバックアップが取れますので、今後はそちらの使用を検討ください。
https://developers.google.com/appengine/docs/adminconsole/datastoreadmin?hl=en



2013/8/6 中村智 

> お世話になります。
> 昨日、GAEのサービスで、プログラムミスが原因で、いくつかの重要なエンティティが削除されてしまいました。
> 削除されたデータは、4つのモデルのエンティティです。
> この4つのモデルについて、昨日の状態に戻したいのですが、可能でしょうか。
> バックアップはとっていません。
> データストアはデータのバージョンを持っていないでしょうか。
> よろしくお願いします。
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Takashi Matsuo | Developers Programs Engineer | tmat...@google.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] How to know region of a GAE application ?

2013-08-07 Thread Amy Unruh
Jean-Paul,

You would have selected the app's location (US or EU) when you created the
app, with US as default.  If you can't remember which you selected, you can
send me your app id and I will check.


On 5 August 2013 04:20, Jean-Paul Leclère
wrote:

> I'am setting a gae wordpress application.
>
> When I set my gae php application as an authorized application to access
> my Cloud SQL instance, I get the advertisement :
>
> Authorized applications must be located in the same region as your Cloud
> SQL instance.
>
> How can I verify the region of my application ?
>
> Thx for the help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Google Cloud Messaging for Android subpackag - Is it Deprecated ?

2013-08-07 Thread Vinny P
On Tue, Aug 6, 2013 at 12:42 AM, VB  wrote:

> But when I launch my SDK Manager from Eclipse it shows that this
> subpackage has been Deprecated.
> Because my project it not compiling without this.
>


You can still compile an application even with deprecation warnings: use *
@SuppressWarnings("deprecation");* to suppress warnings or configure the
compiler to ignore deprecation warnings by going to Properties > Compiler >
Errors/Warnings and selecting the appropriate options.


On Tue, Aug 6, 2013 at 12:42 AM, VB  wrote:

> It fails in the below import statements for example. I am assuming this
> must be in that above subpackage.
>


Do you mean that those classes are showing up as deprecated, or the files
that they reference are showing up as deprecated? What is the exact text of
the deprecation warnings (you'll see them in the Problems pane of Eclipse)?


On Tue, Aug 6, 2013 at 12:42 AM, VB  wrote:

> But when I launch my SDK Manager from Eclipse it shows that this
> subpackage has been Deprecated.
>



There is a GCM client library that is deprecated, see
http://developer.android.com/google/gcm/helper.html (remember to read the
first prompt that comes up, it's important!). Follow the links to get the
most recent version.



-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] maven + guice + appengine

2013-08-07 Thread Rafael
from your gist it seems that guice is getting the wrong asm package:
com.google.appengine.repackaged.org.objectweb.asm.ClassReader


On Tue, Aug 6, 2013 at 10:10 PM, Jon Stevens  wrote:

> Thanks for the suggestion, but it didn't help.
>
> I've boiled this down to a super simple war project and filed an issue.
> Hopefully someone smarter than I will take a look into it. As far as I can
> tell, using Guice is totally broken with the maven appengine plugin.
>
> https://code.google.com/p/appengine-maven-plugin/issues/detail?id=35
>
> jon
>
>
> On Monday, August 5, 2013 1:00:44 PM UTC-7, Rafael Sanches wrote:
>
>> try to add this:
>>
>> 
>> org.ow2.asm
>> asm
>> 4.0
>> 
>>
>> also, this type of question is perfect for stackoverflow. You can tag
>> your post with "appengine-maven-plugin".
>>
>> thanks
>> rafa
>>
>>
>> On Sun, Aug 4, 2013 at 6:51 PM, Jon Stevens  wrote:
>>
>>> Hi all,
>>>
>>> I've got a pretty simple webapp that I'm trying switch to maven and get
>>> running with the mvn appengine:devserver command. I'm getting an odd stack
>>> trace during startup that seems centered around my use of Guice. I've done
>>> all the requisite searching, but have come up empty handed.
>>>
>>> This app worked fine before just running it in the Google Plugin for
>>> Eclipse and a simple ant based build.
>>>
>>> Instead of posting the entire stack trace here, I've created a gist for
>>> it: 
>>> https://gist.github.com/**lookfirst/af1a3d11c5800bdcf8b9
>>>
>>> Any ideas?
>>>
>>> jon
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengi...@**googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.**com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/google-appengine
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Share dedicated Memcache across apps?

2013-08-07 Thread YH Yang
@stephanos, I misunderstood your question, and new to know the existence of
dedicated memcache.


2013/8/7 stephanos 

>
>> On Wednesday, August 7, 2013 4:30:11 PM UTC+10, stephanos wrote:
>>>
>>> Free quota, what free quota? -> https://developers.google.**
>>> com/appengine/docs/**adminconsole/memcache
>>> Personally I find $0.12 per GB per hour quite expensive, that's about
>>> $86 per GB per month. I would be totally happy with 100MB.
>>>
>>> And merging my 5 apps into 1 application-id is obviously not going to
>>> happen...
>>>
>>>
>>> On Wednesday, August 7, 2013 4:27:28 AM UTC+2, YH Yang wrote:

 LOL, people usually don't complain the free quota is too much. :D
 Maybe you can try the new module feature, and make your 5 apps into 1
 app with 5 modules.


 2013/8/7 Tamanna Afroze 

> NO
>
>
> On Tue, Aug 6, 2013 at 6:52 AM, stephanos wrote:
>
>> Can I share the dedicated Memcache across multiple apps?
>>
>> 1 GB is too much for any of my applications, but divided by 5 apps
>> this would make sense...
>>
>> Regards
>> Stephan
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to google-appengi...@**googlegroups.com.
>> To post to this group, send email to google-a...@googlegroups.com.
>> Visit this group at 
>> http://groups.google.com/**group/google-appengine
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out
>> .
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to google-appengi...@**googlegroups.com.
> To post to this group, send email to google-a...@googlegroups.com.
> Visit this group at 
> http://groups.google.com/**group/google-appengine
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out
> .
>
>
>

  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Securing web services

2013-08-07 Thread Thomas Bailey
We have an appengine application that exposes a set of web service 
endpoints.
We need to secure these endpoints such that only specific applications can 
access them. This will be programmatic access, so there will be no user 
involvement (i.e. no login screens).

Looking at the documentation it seemed like service accounts would give us 
this ability, however this only seems to give access to the google API.

Is there a standard way to secure appengine web services, or do we need to 
roll our own solution?

Any pointers much appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Securing web services

2013-08-07 Thread Alejandro González Rodrigo

As far as i know there is nothing in appengine to do something like that 
(securize web services / API / endpoints ) you need to do it on your own.

I dont know your whole scenario, but a standard way to secure web services 
is oAuth2 with the Client Credentials flow (in your case, with no end 
users). This way the app that wants to call your services, needs to be 
identifyed before he can request nothing to you. What you need to do is 
oAuth provider in your server to handle all authentications and store 
clients keys and secrets. There are some good opensource libraries to 
handle all oAuth stuff

If you dont want go that far, you can keep it simplier with an API-Key 
schema, but is less secure.

Cheers


On Wednesday, August 7, 2013 10:29:38 AM UTC+2, Thomas Bailey wrote:
>
> We have an appengine application that exposes a set of web service 
> endpoints.
> We need to secure these endpoints such that only specific applications can 
> access them. This will be programmatic access, so there will be no user 
> involvement (i.e. no login screens).
>
> Looking at the documentation it seemed like service accounts would give us 
> this ability, however this only seems to give access to the google API.
>
> Is there a standard way to secure appengine web services, or do we need to 
> roll our own solution?
>
> Any pointers much appreciated!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] API for app engine admin console?

2013-08-07 Thread stephanos

Hi there,

Is there an API to grab the stats/data that are displayed in an 
application's admin console?

Specifically, I'd like to get access to the number of tasks in a queue, 
requests per second etc. in order to put it on a dashboard.


Thanks,
Stephan

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: API for app engine admin console?

2013-08-07 Thread stephanos
Okay, never mind. I found the according 
issuefor this. 
In 1 month it will be 5 years old :)

So, how do you guys monitor your apps? Just login once a day into the 
console?



On Wednesday, August 7, 2013 11:58:26 AM UTC+2, stephanos wrote:
>
>
> Hi there,
>
> Is there an API to grab the stats/data that are displayed in an 
> application's admin console?
>
> Specifically, I'd like to get access to the number of tasks in a queue, 
> requests per second etc. in order to put it on a dashboard.
>
>
> Thanks,
> Stephan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Share dedicated Memcache across apps?

2013-08-07 Thread husayt
What we should ask for instead is for more reasonable pricing on dedicated 
Memcache and other GAE services. As stephanos said $86 for 1GB is 
prohibitively  expensive for most here. 

In general, Appengine is far behind on competitive pricing from the rest of 
the market. I was looking forward for good news on this since Google IO 
where they promised significant price reductions, but that promise has not 
materialized yet.



On Wednesday, 7 August 2013 09:19:53 UTC+1, YH Yang wrote:
>
> @stephanos, I misunderstood your question, and new to know the existence 
> of dedicated memcache.
>
>
> 2013/8/7 stephanos >
>
>>
>>> On Wednesday, August 7, 2013 4:30:11 PM UTC+10, stephanos wrote:

 Free quota, what free quota? -> https://developers.google.**
 com/appengine/docs/**adminconsole/memcache
 Personally I find $0.12 per GB per hour quite expensive, that's about 
 $86 per GB per month. I would be totally happy with 100MB.

 And merging my 5 apps into 1 application-id is obviously not going to 
 happen...


 On Wednesday, August 7, 2013 4:27:28 AM UTC+2, YH Yang wrote:
>
> LOL, people usually don't complain the free quota is too much. :D
> Maybe you can try the new module feature, and make your 5 apps into 1 
> app with 5 modules.
>
>
> 2013/8/7 Tamanna Afroze 
>
>> NO
>>
>>
>> On Tue, Aug 6, 2013 at 6:52 AM, stephanos wrote:
>>
>>> Can I share the dedicated Memcache across multiple apps?
>>>
>>> 1 GB is too much for any of my applications, but divided by 5 apps 
>>> this would make sense...
>>>
>>> Regards
>>> Stephan
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to google-appengi...@**googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at http://groups.google.com/**
>>> group/google-appengine
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>  
>>>  
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google 
>> Groups "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to google-appengi...@**googlegroups.com.
>> To post to this group, send email to google-a...@googlegroups.com.
>> Visit this group at 
>> http://groups.google.com/**group/google-appengine
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out
>> .
>>  
>>  
>>
>
>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com .
>> To post to this group, send email to 
>> google-a...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-appengine.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Share dedicated Memcache across apps?

2013-08-07 Thread Ray
We dont even know what we will be getting from the paid dedicated memcache 
service above the free one. Unless AppEngine drop the free memcache API or 
makes it extremely unstable.  But they have been using these free* API as 
the answer to why AppEngine is so much more expensive than the other 
similar services.


On Wednesday, August 7, 2013 8:06:49 PM UTC+8, husayt wrote:
>
> What we should ask for instead is for more reasonable pricing on dedicated 
> Memcache and other GAE services. As stephanos said $86 for 1GB is 
> prohibitively  expensive for most here. 
>
> In general, Appengine is far behind on competitive pricing from the rest 
> of the market. I was looking forward for good news on this since Google IO 
> where they promised significant price reductions, but that promise has not 
> materialized yet.
>
>
>
> On Wednesday, 7 August 2013 09:19:53 UTC+1, YH Yang wrote:
>>
>> @stephanos, I misunderstood your question, and new to know the existence 
>> of dedicated memcache.
>>
>>
>> 2013/8/7 stephanos 
>>
>>>
 On Wednesday, August 7, 2013 4:30:11 PM UTC+10, stephanos wrote:
>
> Free quota, what free quota? -> https://developers.google.**
> com/appengine/docs/**adminconsole/memcache
> Personally I find $0.12 per GB per hour quite expensive, that's about 
> $86 per GB per month. I would be totally happy with 100MB.
>
> And merging my 5 apps into 1 application-id is obviously not going to 
> happen...
>
>
> On Wednesday, August 7, 2013 4:27:28 AM UTC+2, YH Yang wrote:
>>
>> LOL, people usually don't complain the free quota is too much. :D
>> Maybe you can try the new module feature, and make your 5 apps into 1 
>> app with 5 modules.
>>
>>
>> 2013/8/7 Tamanna Afroze 
>>
>>> NO
>>>
>>>
>>> On Tue, Aug 6, 2013 at 6:52 AM, stephanos wrote:
>>>
 Can I share the dedicated Memcache across multiple apps?

 1 GB is too much for any of my applications, but divided by 5 apps 
 this would make sense...

 Regards
 Stephan

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Google App Engine" group.
 To unsubscribe from this group and stop receiving emails from it, 
 send an email to google-appengi...@**googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at http://groups.google.com/**
 group/google-appengine
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_out
 .
  
  

>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to google-appengi...@**googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at http://groups.google.com/**
>>> group/google-appengine
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>  
>>>  
>>>
>>
>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-appengine.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] API for app engine admin console?

2013-08-07 Thread Joshua Smith
I use ereporter to watch for exceptions, and then just log in to the console 
now and then to look for non-exception issues.

https://developers.google.com/appengine/articles/python/recording_exceptions_with_ereporter

Note that those instructions are not quite right. The correct thing to add to 
app.yaml these days (py2.7) is:

- url: /_ereporter.*
  script: google.appengine.ext.ereporter.report_generator.application
  login: admin



On Aug 7, 2013, at 7:31 AM, stephanos  wrote:

> Okay, never mind. I found the according issue for this. In 1 month it will be 
> 5 years old :)
> 
> So, how do you guys monitor your apps? Just login once a day into the console?
> 
> 
> 
> On Wednesday, August 7, 2013 11:58:26 AM UTC+2, stephanos wrote:
> 
> Hi there,
> 
> Is there an API to grab the stats/data that are displayed in an application's 
> admin console?
> 
> Specifically, I'd like to get access to the number of tasks in a queue, 
> requests per second etc. in order to put it on a dashboard.
> 
> 
> Thanks,
> Stephan
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] API for app engine admin console?

2013-08-07 Thread stephanos
Interesting. But how about requests/seconds, task backlog, consumed quota, 
cache hits etc.?


On Wednesday, August 7, 2013 3:01:58 PM UTC+2, Joshua Smith wrote:
>
> I use ereporter to watch for exceptions, and then just log in to the 
> console now and then to look for non-exception issues.
>
>
> https://developers.google.com/appengine/articles/python/recording_exceptions_with_ereporter
>
> Note that those instructions are not quite right. The correct thing to add 
> to app.yaml these days (py2.7) is:
>
> - url: /_ereporter.*
>   script: google.appengine.ext.ereporter.report_generator.application
>   login: admin
>
>
>
> On Aug 7, 2013, at 7:31 AM, stephanos > 
> wrote:
>
> Okay, never mind. I found the according 
> issuefor 
> this. In 1 month it will be 5 years old :)
>
> So, how do you guys monitor your apps? Just login once a day into the 
> console?
>
>
>
> On Wednesday, August 7, 2013 11:58:26 AM UTC+2, stephanos wrote:
>>
>>
>> Hi there,
>>
>> Is there an API to grab the stats/data that are displayed in an 
>> application's admin console?
>>
>> Specifically, I'd like to get access to the number of tasks in a queue, 
>> requests per second etc. in order to put it on a dashboard.
>>
>>
>> Thanks,
>> Stephan
>>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-appengi...@googlegroups.com .
> To post to this group, send email to google-a...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] API for app engine admin console?

2013-08-07 Thread Joshua Smith
My experience is with enterprise process apps, customer facing apps with a few 
thousand occasional users, and one consumer app with hundreds of daily users.

In each of those case, I've found that I need to continuously monitor the app 
for the first week or two to get everything humming (billing status reports are 
the most useful diagnostic, actually). After that, random spot checks seem to 
be just fine.

That's sort of the whole point of using GAE. If I wanted to obsessively tune 
and monitor apps, I'd use AWS.

On Aug 7, 2013, at 9:05 AM, stephanos  wrote:

> Interesting. But how about requests/seconds, task backlog, consumed quota, 
> cache hits etc.?
> 
> 
> On Wednesday, August 7, 2013 3:01:58 PM UTC+2, Joshua Smith wrote:
> I use ereporter to watch for exceptions, and then just log in to the console 
> now and then to look for non-exception issues.
> 
> https://developers.google.com/appengine/articles/python/recording_exceptions_with_ereporter
> 
> Note that those instructions are not quite right. The correct thing to add to 
> app.yaml these days (py2.7) is:
> 
> - url: /_ereporter.*
>   script: google.appengine.ext.ereporter.report_generator.application
>   login: admin
> 
> 
> 
> On Aug 7, 2013, at 7:31 AM, stephanos  wrote:
> 
>> Okay, never mind. I found the according issue for this. In 1 month it will 
>> be 5 years old :)
>> 
>> So, how do you guys monitor your apps? Just login once a day into the 
>> console?
>> 
>> 
>> 
>> On Wednesday, August 7, 2013 11:58:26 AM UTC+2, stephanos wrote:
>> 
>> Hi there,
>> 
>> Is there an API to grab the stats/data that are displayed in an 
>> application's admin console?
>> 
>> Specifically, I'd like to get access to the number of tasks in a queue, 
>> requests per second etc. in order to put it on a dashboard.
>> 
>> 
>> Thanks,
>> Stephan
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com.
>> To post to this group, send email to google-a...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-appengine.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] API for app engine admin console?

2013-08-07 Thread stephanos
May I just ask, are those sites being updated a lot? 

I could imagine if you push a new version - maybe every day - things could 
change - sometimes drastically - again.



On Wednesday, August 7, 2013 4:21:41 PM UTC+2, Joshua Smith wrote:
>
> My experience is with enterprise process apps, customer facing apps with a 
> few thousand occasional users, and one consumer app with hundreds of daily 
> users.
>
> In each of those case, I've found that I need to continuously monitor the 
> app for the first week or two to get everything humming (billing status 
> reports are the most useful diagnostic, actually). After that, random spot 
> checks seem to be just fine.
>
> That's sort of the whole point of using GAE. If I wanted to obsessively 
> tune and monitor apps, I'd use AWS.
>
> On Aug 7, 2013, at 9:05 AM, stephanos > 
> wrote:
>
> Interesting. But how about requests/seconds, task backlog, consumed quota, 
> cache hits etc.?
>
>
> On Wednesday, August 7, 2013 3:01:58 PM UTC+2, Joshua Smith wrote:
>>
>> I use ereporter to watch for exceptions, and then just log in to the 
>> console now and then to look for non-exception issues.
>>
>>
>> https://developers.google.com/appengine/articles/python/recording_exceptions_with_ereporter
>>
>> Note that those instructions are not quite right. The correct thing to 
>> add to app.yaml these days (py2.7) is:
>>
>> - url: /_ereporter.*
>>   script: google.appengine.ext.ereporter.report_generator.application
>>   login: admin
>>
>>
>>
>> On Aug 7, 2013, at 7:31 AM, stephanos  wrote:
>>
>> Okay, never mind. I found the according 
>> issuefor 
>> this. In 1 month it will be 5 years old :)
>>
>> So, how do you guys monitor your apps? Just login once a day into the 
>> console?
>>
>>
>>
>> On Wednesday, August 7, 2013 11:58:26 AM UTC+2, stephanos wrote:
>>>
>>>
>>> Hi there,
>>>
>>> Is there an API to grab the stats/data that are displayed in an 
>>> application's admin console?
>>>
>>> Specifically, I'd like to get access to the number of tasks in a queue, 
>>> requests per second etc. in order to put it on a dashboard.
>>>
>>>
>>> Thanks,
>>> Stephan
>>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com.
>> To post to this group, send email to google-a...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-appengine.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>>
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-appengi...@googlegroups.com .
> To post to this group, send email to google-a...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] API for app engine admin console?

2013-08-07 Thread Joshua Smith
The monitoring is needed whenever you push new code.

If you are updating the code "a lot" for a site with many users, or a site that 
part of your critical enterprise processes, then you have a bigger problem than 
dashboards. That's like adjusting the timing on your car while you drive down 
the freeway at 65mph.

On Aug 7, 2013, at 10:26 AM, stephanos  wrote:

> May I just ask, are those sites being updated a lot? 
> 
> I could imagine if you push a new version - maybe every day - things could 
> change - sometimes drastically - again.
> 
> 
> 
> On Wednesday, August 7, 2013 4:21:41 PM UTC+2, Joshua Smith wrote:
> My experience is with enterprise process apps, customer facing apps with a 
> few thousand occasional users, and one consumer app with hundreds of daily 
> users.
> 
> In each of those case, I've found that I need to continuously monitor the app 
> for the first week or two to get everything humming (billing status reports 
> are the most useful diagnostic, actually). After that, random spot checks 
> seem to be just fine.
> 
> That's sort of the whole point of using GAE. If I wanted to obsessively tune 
> and monitor apps, I'd use AWS.
> 
> On Aug 7, 2013, at 9:05 AM, stephanos  wrote:
> 
>> Interesting. But how about requests/seconds, task backlog, consumed quota, 
>> cache hits etc.?
>> 
>> 
>> On Wednesday, August 7, 2013 3:01:58 PM UTC+2, Joshua Smith wrote:
>> I use ereporter to watch for exceptions, and then just log in to the console 
>> now and then to look for non-exception issues.
>> 
>> https://developers.google.com/appengine/articles/python/recording_exceptions_with_ereporter
>> 
>> Note that those instructions are not quite right. The correct thing to add 
>> to app.yaml these days (py2.7) is:
>> 
>> - url: /_ereporter.*
>>   script: google.appengine.ext.ereporter.report_generator.application
>>   login: admin
>> 
>> 
>> 
>> On Aug 7, 2013, at 7:31 AM, stephanos  wrote:
>> 
>>> Okay, never mind. I found the according issue for this. In 1 month it will 
>>> be 5 years old :)
>>> 
>>> So, how do you guys monitor your apps? Just login once a day into the 
>>> console?
>>> 
>>> 
>>> 
>>> On Wednesday, August 7, 2013 11:58:26 AM UTC+2, stephanos wrote:
>>> 
>>> Hi there,
>>> 
>>> Is there an API to grab the stats/data that are displayed in an 
>>> application's admin console?
>>> 
>>> Specifically, I'd like to get access to the number of tasks in a queue, 
>>> requests per second etc. in order to put it on a dashboard.
>>> 
>>> 
>>> Thanks,
>>> Stephan
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to google-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/google-appengine.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com.
>> To post to this group, send email to google-a...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-appengine.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] maven + guice + appengine

2013-08-07 Thread Jon Stevens
It does seem like that indeed and your suggestion was a good one (I had 
tried it already). I think that the classpath is getting munged by the 
maven plugin somehow and that is what is messing things up.

On Wednesday, August 7, 2013 12:24:31 AM UTC-7, Rafael Sanches wrote:
>
> from your gist it seems that guice is getting the wrong asm package: 
> com.google.appengine.repackaged.org.objectweb.asm.ClassReader
>
>
> On Tue, Aug 6, 2013 at 10:10 PM, Jon Stevens 
> > wrote:
>
>> Thanks for the suggestion, but it didn't help.
>>
>> I've boiled this down to a super simple war project and filed an issue. 
>> Hopefully someone smarter than I will take a look into it. As far as I can 
>> tell, using Guice is totally broken with the maven appengine plugin.
>>
>> https://code.google.com/p/appengine-maven-plugin/issues/detail?id=35
>>
>> jon
>>
>>
>> On Monday, August 5, 2013 1:00:44 PM UTC-7, Rafael Sanches wrote:
>>
>>> try to add this: 
>>>
>>> 
>>> org.ow2.asm
>>> asm
>>> 4.0
>>>
>>>
>>> also, this type of question is perfect for stackoverflow. You can tag 
>>> your post with "appengine-maven-plugin". 
>>>
>>> thanks
>>> rafa
>>>
>>>
>>> On Sun, Aug 4, 2013 at 6:51 PM, Jon Stevens  wrote:
>>>
 Hi all,

 I've got a pretty simple webapp that I'm trying switch to maven and get 
 running with the mvn appengine:devserver command. I'm getting an odd stack 
 trace during startup that seems centered around my use of Guice. I've done 
 all the requisite searching, but have come up empty handed.

 This app worked fine before just running it in the Google Plugin for 
 Eclipse and a simple ant based build.

 Instead of posting the entire stack trace here, I've created a gist for 
 it: 
 https://gist.github.com/**lookfirst/af1a3d11c5800bdcf8b9

 Any ideas?

 jon

  -- 
 You received this message because you are subscribed to the Google 
 Groups "Google App Engine" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to google-appengi...@**googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.**com.

 Visit this group at 
 http://groups.google.com/**group/google-appengine
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_out
 .
  
  

>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com .
>> To post to this group, send email to 
>> google-a...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-appengine.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Access AdSense Management API reports from App Engine Java Application

2013-08-07 Thread Holger Kraus
Hi everyone,

what I'm trying to do is creating a simple Java application using App 
Engine which retrieves my current earnings from day x to day y.
According to the Management API documentation the request required for this 
would look something like this:
https://www.googleapis.com/adsense/v1.1/reports?key=mykey&alt=csv&endDate=2013-08-07&startDate=2013-06-07&metric=EARNINGS

However if I simply call this URL from within my App I get an "Login 
Required"

As far as I understand I need to acquire an OAuth token first within my 
application and attach it to my request. My questions in this regard are:

1. Am I correct with this assumption>
2. If so, why would a fixed, server based application need to acquire an 
OAuth token?
3. Is there any easy way to retrieve such a token and afterwards attach it 
to my requests automatically? All the tutorials I see on that part seem to 
require some user interaction, which won't work for my use case where an 
App Engine app simply wants to retrieve some metrics...

Any help would be much appreciated :)

Thanks,
Holger

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Limit the number of instances

2013-08-07 Thread Cristi eXPV
There should really be a option to limit to a specific number of instances, 
no matter what.
In the application settings menu all you can do is to limit the maximum 
number of IDLE instances, which I'm not sure if it works as intended. I 
mean I set the *Max Idle Instances* to 1 and the *Min Pending Latency* to 
15 seconds, but I still see 2 instances running occasionally, for long 
period of times with no requests. Aren't they supposed to close after 15 
min of being idle? And why does it even fire a seconds instance with those 
settings, considering that no request reached 15 seconds delay?

I run a simple "what's my IP" python app, that really doesn't need high 
performance. I mean it really doesn't make a difference if the response is 
after 100ms or 5 seconds, all it matters is that only one instance is 
running, so that those daily 28 instance hours don't ever run out.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Limit the number of instances

2013-08-07 Thread Barry Hunter
On 7 August 2013 11:57, Cristi eXPV  wrote:

> There should really be a option to limit to a specific number of
> instances, no matter what.
> In the application settings menu all you can do is to limit the maximum
> number of IDLE instances, which I'm not sure if it works as intended. I
> mean I set the *Max Idle Instances* to 1


That actually means AppEngine aims to keep an idle instance around, just
that it shouldnt aim for more than 1.

So even if you actively serving requests with one instance, another idle
one will be kept alive.

The 'idle' instance is there to handle the first request that the active
intance(s) can't handle - while a new instance is being spun up. The new
active instance will continue serving requests and the buffer instance will
go back to being idle again.

You should keep it on Automatic, to help avoid this (as best as I can
gather).



> and the *Min Pending Latency* to 15 seconds, but I still see 2 instances
> running occasionally, for long period of times with no requests. Aren't
> they supposed to close after 15 min of being idle?


They can be closed - if AppEngine needs the capacity for other requests.
But if the capacity isnt needed you get to keep the instance for free. ie
you shouldnt be charged for it (well wont come out of the free quota).


> And why does it even fire a seconds instance with those settings,
> considering that no request reached 15 seconds delay?
>

See above.


>
> I run a simple "what's my IP" python app, that really doesn't need high
> performance. I mean it really doesn't make a difference if the response is
> after 100ms or 5 seconds, all it matters is that only one instance is
> running, so that those daily 28 instance hours don't ever run out.


Unfortunately you generally at odds with how AppEngine is designed, and
targeted. Its really meant for apps that do want scale, and quickly ramp up
the requests. The rather genorous free quota does allow you to run toy apps
for very little down, but its not really the market.


In general it sounds like using modules to deploy your app on a "Basic
Scaling" module would be ideal. That way can avoid the "Automatic Scaling"
you get with normal frontend instances.

Alas it still seems to be tied to frontend/backend instance quotas, so a
Basic Scaling module will use your 9 hour quota, not the 28 hour front end
quota.

Maybe as modules mature, could use the free quota to run a single basic
scaling instance rather than automatic scaling ones.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] GAE Blobstore file-like API deprecation timeline (py 2.7 runtime) [XPOST from StackOverflow]

2013-08-07 Thread Gilberto Torrezan Filho
Ok, and how about the GCS client API itself? Is it experimental as well? 
(aka. are we going to be annoyed next month because the GAE Team took too 
much coffee and started to randomly break things just to annoy developers 
worldwide)?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] GAE Blobstore file-like API deprecation timeline (py 2.7 runtime) [XPOST from StackOverflow]

2013-08-07 Thread Barry Hunter
Its still in 'Preview'
https://code.google.com/p/appengine-gcs-client/
which technically is before 'experimental' I beleive.

BUT, its a module of code you include in your application, so you are
responsible for upgrading. You are not being forced to update, just because
the module is being removed or changed on the server. (unless of course the
underlying raw REST Storage API is changed! - but that is not the GAE team,
but the Storage team)




On 7 August 2013 17:10, Gilberto Torrezan Filho  wrote:

> Ok, and how about the GCS client API itself? Is it experimental as well?
> (aka. are we going to be annoyed next month because the GAE Team took too
> much coffee and started to randomly break things just to annoy developers
> worldwide)?
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] GAE Blobstore file-like API deprecation timeline (py 2.7 runtime) [XPOST from StackOverflow]

2013-08-07 Thread Gilberto Torrezan Filho
Oh, I feel much safer now...

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Access AdSense Management API reports from App Engine Java Application

2013-08-07 Thread Vinny P
On Wed, Aug 7, 2013 at 5:13 AM, Holger Kraus  wrote:

> what I'm trying to do is creating a simple Java application using App
> Engine which retrieves my current earnings from day x to day y.
> As far as I understand I need to acquire an OAuth token first within my
> application and attach it to my request. My questions in this regard are:
> 1. Am I correct with this assumption
>


Yes, that's correct. See
https://developers.google.com/adsense/management/getting_started#auth for
an explanation of how it works.


On Wed, Aug 7, 2013 at 5:13 AM, Holger Kraus  wrote:

> 2. If so, why would a fixed, server based application need to acquire an
> OAuth token?
>


Because there needs to be some way of authenticating and proving to the
server that the application actually represents you, and not some malicious
third-party. OAuth is simply the best, most secure way of proving your
identity.


On Wed, Aug 7, 2013 at 5:13 AM, Holger Kraus  wrote:

> 3. Is there any easy way to retrieve such a token and afterwards attach it
> to my requests automatically? All the tutorials I see on that part seem to
> require some user interaction, which won't work for my use case where an
> App Engine app simply wants to retrieve some metrics...
>


The initial OAuth token retrieval will have to be done by a person (after
all, somebody has to input their username and password into the prompts).
However after the server sends back the OAuth token, the application can
save it and use it for an indefinite period of time (unless you invalidate
the token specifically).



-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: API for app engine admin console?

2013-08-07 Thread Vinny P
On Wed, Aug 7, 2013 at 6:31 AM, stephanos  wrote:

> So, how do you guys monitor your apps? Just login once a day into the
> console?
>
>


The most important stuff - for me - is in the log files. So I use Google
BigQuery (
http://googleappengine.blogspot.com/2012/07/analyzing-your-google-app-engine-logs.html
)
to look through my logs, search them, etc. Then I periodically log into the
console to check billing, see if there are any admin messages, etc.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] maven + guice + appengine

2013-08-07 Thread Rafael Sanches
Jon,

I usually solve these problems by doing: $ mvn dependency:tree

that way you check who's else is including the ASM package. In your case
it's weird that it goes all the way to the repackage garbage.

thanks
rafa


On Wed, Aug 7, 2013 at 7:38 AM, Jon Stevens  wrote:

> It does seem like that indeed and your suggestion was a good one (I had
> tried it already). I think that the classpath is getting munged by the
> maven plugin somehow and that is what is messing things up.
>
>
> On Wednesday, August 7, 2013 12:24:31 AM UTC-7, Rafael Sanches wrote:
>
>> from your gist it seems that guice is getting the wrong asm package:
>> com.google.appengine.**repackaged.org.objectweb.asm.**ClassReader
>>
>>
>> On Tue, Aug 6, 2013 at 10:10 PM, Jon Stevens  wrote:
>>
>>> Thanks for the suggestion, but it didn't help.
>>>
>>> I've boiled this down to a super simple war project and filed an issue.
>>> Hopefully someone smarter than I will take a look into it. As far as I can
>>> tell, using Guice is totally broken with the maven appengine plugin.
>>>
>>> https://code.google.com/p/**appengine-maven-plugin/issues/**detail?id=35
>>>
>>> jon
>>>
>>>
>>> On Monday, August 5, 2013 1:00:44 PM UTC-7, Rafael Sanches wrote:
>>>
 try to add this:

 
 org.ow2.asm
 asm
 4.0
 

 also, this type of question is perfect for stackoverflow. You can tag
 your post with "appengine-maven-plugin".

 thanks
 rafa


 On Sun, Aug 4, 2013 at 6:51 PM, Jon Stevens  wrote:

> Hi all,
>
> I've got a pretty simple webapp that I'm trying switch to maven and
> get running with the mvn appengine:devserver command. I'm getting an odd
> stack trace during startup that seems centered around my use of Guice. 
> I've
> done all the requisite searching, but have come up empty handed.
>
> This app worked fine before just running it in the Google Plugin for
> Eclipse and a simple ant based build.
>
> Instead of posting the entire stack trace here, I've created a gist
> for it: 
> https://gist.github.com/**lo**okfirst/af1a3d11c5800bdcf8b9
>
> Any ideas?
>
> jon
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to google-appengi...@**googlegroups**.com.
> To post to this group, send email to google-a...@googlegroups.**com.
>
> Visit this group at http://groups.google.com/**group**
> /google-appengine .
> For more options, visit 
> https://groups.google.com/**grou**ps/opt_out
> .
>
>
>

  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengi...@**googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.**com.
>>> Visit this group at 
>>> http://groups.google.com/**group/google-appengine
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Security advisory: SSL is Gone

2013-08-07 Thread Chad Vincent
Since the problem is with SSL and GZIP combined?  Every bit as vulnerable 
as every other host out there.

The protocols themselves are issue, so without breaking things there's 
nothing Google could do.

As far as the injection/measuring, that is all in how well you protect 
against XSS in your own site, browser security, user-installed toolbars, 
etc.

On Tuesday, August 6, 2013 3:34:17 PM UTC-5, coto wrote:
>
> At ekoparty 2012, Thai Duong and Juliano Rizzo announced CRIME, a 
> compression side-channel attack against HTTPS. An attacker with the ability 
> to:
>
>-  Inject partial chosen plaintext into a victim's requests
>-  Measure the size of encrypted traffic
>
> More info: 
> https://www.djangoproject.com/weblog/2013/aug/06/breach-and-django/
>
> The appropriate question for this group is: "How vulnerable Google App 
> Engine is when SSL (and GZIP) is/are enabled??"
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: BREACH attack - is App Engine vulnerable?

2013-08-07 Thread Chad Vincent
I'm with the person from Iron Mountain...  Just like CRIME, they both seem 
to require some kind of XSS vulnerability in the page, then take advantage 
of TLS and GZIP.  As long as your users don't use a lot of suspicious 
add-ons and you prevent XSS as best as you can, I really don't think 
there's much risk.

Not that the compression + encryption combination don't need fixed, but you 
not only need help from Google to mitigate it on AppEngine by supporting an 
updated standard, but all of your users will have to use an updated web 
browser, too.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: BREACH attack - is App Engine vulnerable?

2013-08-07 Thread Alex Burgel
On Wednesday, August 7, 2013 3:26:29 PM UTC-4, Chad Vincent wrote:

> I'm with the person from Iron Mountain...  Just like CRIME, they both seem 
> to require some kind of XSS vulnerability in the page, then take advantage 
> of TLS and GZIP.  As long as your users don't use a lot of suspicious 
> add-ons and you prevent XSS as best as you can, I really don't think 
> there's much risk.
>
> Not that the compression + encryption combination don't need fixed, but 
> you not only need help from Google to mitigate it on AppEngine by 
> supporting an updated standard, but all of your users will have to use an 
> updated web browser, too.


I don't see why a browser upgrade is necessary. Google can fix this on the 
server side by disabling compression when using HTTPS. Of course, thats a 
shotgun approach that will waste bandwidth and CPU probably.

Individual apps can also fix this by taking the other steps recommended by 
the paper. But since only Google controls compression and encryption 
settings, it puts app developers in a tight spot because they can't 
temporarily disable compression while implementing a better fix.

Also, its not an XSS issue, its about information leakage, the paper talks 
specifically about getting CSRF tokens.

Anyways, I brought it up because I'm curious how Google handles these 
issues. I'm sure they have customers that have very high security 
requirements and other customers who probably don't care. Are they going to 
wait and see what happens (i.e., wait for real exploits) or are they going 
to take steps to protect their customers against a potential (theoretical?) 
threat?

--Alex

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] How to upload files to blobstore programmatically , without form.

2013-08-07 Thread Matthew Blain
I recommend trying out Google Cloud Storage; you can access the files from 
App Engine.

If you want to use the App Engine Blobstore, you can indeed do so from a 
client. You need to call create_upload_url from within your app, then have 
the client POST a multipart form to that URL, then have your app handle the 
response however you wish.
One way to do this without writing any new server code which I've used is 
to use remote_api, set the 'success' url to some handler which doesn't do 
anything, and handle this entirely on the client. However this means that 
your server won't have any special knowledge of the files uploaded--you'll 
have to 'search' for them somehow (the upload size and md5 will match), but 
that's somethng of a hack. Better to have a  tool on your server and 
client, which understands the entire flow.

I suspect there are already tools out there which are public, but I don't 
know of any off the top of my head. You may be able to find the code I used 
in http://bulkloadersample.appspot.com/ bulkrestore.zip

--Matthew

On Tuesday, July 9, 2013 4:44:14 PM UTC-7, Tom Kaitchuck wrote:
>
> If you want to write to blobstore programmatically you can 
> call createUploadUrl as many times as you like and pass those to whatever 
> is going to do the upload. This is supported and not going away. 
> If you want to upload to GCS you can use the Manager as Vinny mentioned, 
> or you can use gsutil from a command line or script: 
> https://developers.google.com/storage/docs/gsutil
> or you can use the GCS client from within your App Engine application. 
>
>
> On Mon, Jul 1, 2013 at 11:40 AM, Vinny P  >wrote:
>
>> On Mon, Jul 1, 2013 at 6:40 AM,  wrote:
>>
>>> Hi ! i want to upload many files to GAE blob store but i want to do that 
>>> programmatically , instead of using the form and browsing the file . for 
>>> example uploading all files in a particular folder to the GAE blobstore.
>>> Is there any method to do so ?
>>>
>>  
>>  
>> Writing programmatically to the blobstore is deprecated. What you can do 
>> is create a Google Cloud Storage bucket, and use the GCS Manager ( 
>> https://developers.google.com/storage/docs/gsmanager ) to upload files. 
>> GCS Manager supports drag and drop, so you can simply drag files from your 
>> computer to your storage bucket.
>>   
>> -
>> -Vinny P
>> Technology & Media Advisor
>> Chicago, IL
>>
>> App Engine Code Samples: http://www.learntogoogleit.com
>>   
>>  
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com .
>> To post to this group, send email to 
>> google-a...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-appengine.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Hanging on last Backend (or Module) memcache writes

2013-08-07 Thread Vinny P
On Tue, Aug 6, 2013 at 3:29 AM, Julian Kent  wrote:

> Here is the relevant code between those two logging points:
>
> client = memcache.Client()
> if len(botsdict) > 0:
> splitlist = dict_split(botsdict,32)
>

What does the variable *botsdict* represent? Based on the naming and
function calls, I assume that it's a dictionary, but what type of objects
is it containing? Is it possible that the contained objects are doing some
kind of processing on their own?




On Tue, Aug 6, 2013 at 3:29 AM, Julian Kent  wrote:

> I don't see how 18 set_multi_async calls can take 5h23m. Can the logs be
> trusted here? Could it be that the actual code is finished but somehow the
> exit never registered and the logging was the problem?




Install appstats (
https://developers.google.com/appengine/docs/python/tools/appstats ) into
your application, you'll be able to see how the memcache calls execute and
at what time. From there we can narrow down the list of problems.



On Tue, Aug 6, 2013 at 3:29 AM, Julian Kent  wrote:

>
> 2013-08-05 15:23:33.962 /BatchRankings 500 19413478ms 0kb instance=0
> AppEngine-Google; (+http://code.google.com/appengine)
>
> I 2013-08-05 10:00:04.118
> mem usage at start of meleerumble: 24.55078125MB
>
> ... lots more logs ...
>
> I 2013-08-05 10:01:03.549
> mem usage after zipping: 157.08984375MB
>
>

How much memory in memcache are you using? If you're only using ~200 MB, it
might be easier to simply store it within the backend's memory and
not memcache (if you're hungry for memory you can use the B4_1G backend
size, which gives you 1GB of memory and the same processor size as a
regular B4).


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Can't integrate GCS to existing AppEngine project

2013-08-07 Thread Kaan Soral
Well things finally started working for my test app, the 503 errors were 
caused by the integration problems, what's confusing is that if url from 
create_upload_url with gs_bucket_name causes a 503, you don't see it in the 
logs (you have to see the 503 from the client-side inspectors)

Anyway it seems gcs integration is REALLY trivial if you simply upload 
photos (or files), (and edit them), since when you provide a gs_bucket_name 
to create_upload_url of blobstore, the blob_key functions like a normal 
blob_key, you can provide it to the images api and it works, the only parts 
of code that should change is probably the manual saves

Am I missing anything? (because it seemed much much easier than I expected 
it would be, you just have to provide a gs_bucket_name to 
create_upload_url, you don't even have to provide a random path, the file 
names seem to be unique/random)

Here is the first photo uploaded to GCS: 
http://lh5.ggpht.com/nHZkCrIbH9pX1rnezBMfzFkvMXvI0QEy_OaE7FsqWSBww1GMZpFBAsCMRlcpSSfTxri8UizejDrjZRlndhQvpfZei8SZ8-pI=s1600
 
:)

On Wednesday, August 7, 2013 4:24:55 AM UTC+3, Kaan Soral wrote:
>
> I've digged further into the issue, happens on projects that has "Cloud 
> Console" billing enabled
>
> After I enable the billing, it starts throwing "*The account for the 
> specified project has been disabled.*" errors for anything
>
> GCS read/write gets disabled, can't create any buckets, however projects 
> that don't have billing enabled works
>
> On Wednesday, August 7, 2013 12:53:16 AM UTC+3, Kaan Soral wrote:
>>
>> After the integration, and after re-enabling billing at Google Cloud 
>> Console, I get:
>> "*The account for the specified project has been disabled.*"
>> When I try to create a bucket,
>> I don't know what it means, but it's kind of a disturbing error message, 
>> it appears as a temporary warning on top of the page
>>
>> I've googled the error, no results, just 1 match, the "Customer Support" 
>> section suggests using Stack Overflow for a solution, what should I do at 
>> this point?
>>
>>
>> On Wednesday, August 7, 2013 12:35:45 AM UTC+3, Kaan Soral wrote:
>>>
>>> I've just tested it on another project that I have billing enabled, and 
>>> it succeeded, hope it doesn't have any side effects because that project 
>>> didn't needed the integration :)
>>>
>>> I've also just re-retried the actual project I need the integration for, 
>>> and it succeeded too, this time :)
>>>
>>> Thanks Anyway, I guess something changed during this time, or it might 
>>> have been a temporary issue
>>>
>>> On Tuesday, August 6, 2013 11:11:11 AM UTC+3, Amy Unruh wrote:

 Kaan,  
 What is the text of the error message you're seeing?  And, what is the 
 app id of the app that's giving the error? (you can email me directly if 
 you like).

 Also, have you tried this with more than one App Engine app?-- are they 
 all acting up, or is it just the one?

  -Amy


 On 6 August 2013 11:50, Kaan Soral  wrote:

> On Appengine Console > Administration > Application Settings > Cloud 
> Integration
> I've triggered the project creation, but it always results in an error 
> and suggests a retry (a retry button appears)
>
> On https://cloud.google.com/console
> I see all my apps, however none has Google Cloud Storage on them, they 
> all have Appengine / Big Query / Datastore, but no GCS
> I've also have billing enabled for a long time
>
> What should I be doing?
>
> -- 
>
>  
>  
>



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Can't integrate GCS to existing AppEngine project

2013-08-07 Thread Vinny P
On Wed, Aug 7, 2013 at 5:37 PM, Kaan Soral  wrote:

> Well things finally started working for my test app, the 503 errors were
> caused by the integration problems, what's confusing is that if url from
> create_upload_url with gs_bucket_name causes a 503, you don't see it in the
> logs (you have to see the 503 from the client-side inspectors)
>
> Here is the first photo uploaded to GCS: http://lh5.ggpht.com/
> nHZkCrIbH9pX1rnezBMfzFkvMXvI0QEy_OaE7FsqWSBww1GMZpFBAsCMRlcpSSf
> Txri8UizejDrjZRlndhQvpfZei8SZ8-pI=s1600 :)
>
>


Kaan,

The expression on that cat's face is the exact same expression on my face
when I finally fix a hard problem :-)

Thanks for documenting your problems; it was interesting for me to read and
I'm sure it was useful for others on this list.

-Vinny


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Can't integrate GCS to existing AppEngine project

2013-08-07 Thread Kaan Soral
Thanks I will keep sharing as I learn more

Here is the latest issue: 
http://stackoverflow.com/questions/18115041/are-gcs-files-supposed-to-show-up-on-blob-viever
The files showing up on Blob Viewer is a bit confusing, the fact that 
uploaded files / blob_key / blob_info functioning exactly like blobstore, 
makes you think whether they get uploaded to blobstore too, or the 
integration itself is perfect

I guess everyone is waiting to integrate GCS, there are only 500 client 
downloads, https://code.google.com/p/appengine-gcs-client/downloads/list

The integration/cloud console etc is problematic, but If I'm not mistaken, 
AppEngine integration is really simple.

I was expecting a need for refactoring data/code, however it seems existing 
elements will probably work without refactoring (the existing image urls 
will probably keep serving for a long time, the SDK just works etc.), and 
the integration is extremely trivial (seems that way, If I'm not doing 
anything wrong)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] blobstore attachments working on localhost only.

2013-08-07 Thread Matt
Hi there,

I'm using the following code on my local dev server to prompt the user to 
save an image that has been uploaded into the blobstore and it's working 
fine.

  response.headers['Content-Type'] = 'image/jpeg'
  response.headers['Content-Disposition'] = 'attachment; 
filename="export.jpg"'
  response.headers[blobstore.BLOB_KEY_HEADER] = key

Where the 'key' is the blobstore key.

However when I deploy to GAE it fails to work. Returns a server 500 and 
doesn't tell me what the issue is.

Any ideas?

NB: I'm not using any of the built in webapp code.

Any help would be appreciated.

Thanks in advance,
Matt

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Can't integrate GCS to existing AppEngine project

2013-08-07 Thread Kaan Soral
After reading the GCS/Blobstore/BlobInfo/FileInfo documents and 
experimenting on those methods, I decided to use FileInfo and store gcs 
file_name instead of blob_key's as the gcs file_name's can always be 
converted to blob_key's later with create_gs_key/_async

However the implementation part is unclear, also the documentation is a bit 
confusing, so here are two stack overflow questions:

http://stackoverflow.com/questions/18116707/are-blob-keys-for-gcs-entities-safe-to-use-later
http://stackoverflow.com/questions/18116672/how-to-get-fileinfo-gcs-file-name-for-files-uploaded-via-blobstoreuploadhandler

Also a third question could be on, whether the create_gs_key is consuming 
or not, I wouldn't want to use create_gs_key, if at each time a new 
blobstore_key-like entity is created internally

Would be great to get some insight on these issues

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.