Re: [google-appengine] python xmpp raw_xml

2014-04-07 Thread Илья Дьячков
I need send raw_xml with unicode to custom jabber client (strophe c++ ), 
GTalk IM jast example for explain error with unicode string.



вторник, 8 апреля 2014 г., 6:27:35 UTC+4 пользователь Vinny P написал:
>
> On Mon, Apr 7, 2014 at 6:40 AM, Илья Дьячков 
> > wrote:
>
>> if i send xmpp message with from google.appengine.api import xmpp
>> xmpp.send_message(jids="ronhill.i...@gmail.com ", 
>> body=u"Привет", raw_xml=True)
>> I received message "" in gtalk IM
>> if i send: from google.appengine.api import xmpp
>> xmpp.send_message(jids="ronhill.i...@gmail.com ", 
>> body=u"Привет", raw_xml=False)
>> I received message "Привет" in gtalk IM
>> How fix this BUG?? 
>>
>>
>
> So to clarify, the error is that you can't display the ** tag in 
> GTalk IM? Do you expect the body tag to be shown as plain text or to be 
> interpreted as markup? Also, why have you listed *raw_xml* as true in the 
> first code example, but false in the second example?
>  
>
>  
> -
> -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/d/optout.


Re: [google-appengine] puzzle about Ancestor Queries

2014-04-07 Thread saintthor
thanks

if i put many entities in 1 second with method put or put_async, will it 
raise exceptions?

在 2014年4月7日星期一UTC+8下午3时42分18秒,Vinny P写道:
>
> On Mon, Apr 7, 2014 at 12:55 AM, saintthor 
> > wrote:
>
>> https://developers.google.com/appengine/docs/python/ndb/queries
>>
>> in sector  Ancestor Queries, the last line:
>>
>> Remember, this is limited to one purchase per second. 
>>
>> what is 'one purchase per second' mean? i can create only 1 purchase 
>> instance per second, or can do 1 query per second?
>>
>
>
> It's a reference to the first line of the 
> section,
>  
> where it says "*Ancestor queries allow you to make strongly consistent 
> queries to the datastore, however entities with the same ancestor are 
> limited to 1 write per second*".
>
>   
> -
> -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/d/optout.


[google-appengine] Re: puzzle about Ancestor Queries

2014-04-07 Thread saintthor

test reply. i replied some posts but is not seen.

在 2014年4月7日星期一UTC+8下午1时55分16秒,saintthor写道:
>
> https://developers.google.com/appengine/docs/python/ndb/queries
>
> in sector  Ancestor Queries, the last line:
>
> Remember, this is limited to one purchase per second. 
>
> what is 'one purchase per second' mean? i can create only 1 purchase 
> instance per second, or can do 1 query per second?
>
>

-- 
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/d/optout.


[google-appengine] Subdomain for GAE and GMail

2014-04-07 Thread pdconant
Is it possible to use the same subdomain for both a Google App Engine app 
and for GMail?  For instance, imagine I wanted to have 
http://myapp.mycompany.com served by GAE and also use email address 
m...@myapp.mycompany.com.  For the GAE app, I'd need a CNAME pointing 
myapp.mycompany.com to "ghs.googlehosted.com."; and for GMail to work, I'd 
need MX records for "myapp.mycompany.com".  But I don't believe I can have 
CNAME and MX records for the same subdomain. I'm no DNS expert -- I hope 
I'm missing something obvious to those more knowledgeable than myself.  Any 
ideas?

Thanks
P.

-- 
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/d/optout.


Re: [google-appengine] My project doesn't have its default auto-created GCS bucket

2014-04-07 Thread Vinny P
On Mon, Apr 7, 2014 at 9:05 AM, Tom  wrote:

> Yes, that is correct, so I went ahead and clicked the 'create' button now
> it says "Project creation is in progress."
>
> But doesn't this mean that it will create a new CC project, so I will now
> have 2 CC project's for my GAE project?  And my Google Cloud Storage will
> be spread across the two CC's projects.
>


Yes, you will now have two projects.

But you won't get the default bucket with the free quota without connecting
your App Engine app to a cloud project. The free quota also only applies to
that default bucket, so if you want the free space, you'll have to move
data into that bucket.

With that said, there's nothing inherently wrong with having assets striped
across 2 or even more cloud projects. As long as you configure the
authentication to properly work, there's no difference compared to having
all assets within a single cloud project.


-
-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/d/optout.


Re: [google-appengine] Server Error ("Text Search") on Admin Console

2014-04-07 Thread Vinny P
On Mon, Apr 7, 2014 at 12:59 PM, JAMES COURTNEY <
james.court...@philanthropal.com> wrote:

> So you believe there's one document which is hobbling the system?
>


Not necessarily one. Most likely there's an unknown number of documents
that are improperly configured. And when I say improperly configured, I
mean they could be corrupt, improperly replicated, an error with the
underlying storage/machine, encoded with the wrong character set, the list
goes on and on.

The problem is there's just no way to know what the problem is without
isolating the exact document(s) causing the issues. Fortunately you seem to
have isolated a range of suspect documents that Google can now investigate
(the page ranges you stated in your previous email).


On Mon, Apr 7, 2014 at 12:59 PM, JAMES COURTNEY <
james.court...@philanthropal.com> wrote:

> IDX_ORGANIZATION
>  - fails with the error when paginating results from 240-260.
> IDX_USER
> - fails with the error when paginating results 40-60.
>


If you are in a rush to fix the problem, I would suggest trying to delete
and then rebuild the documents listed within the above ranges. But to be
honest, now that you've filed a production issue it's probably easier to
just sit tight and see what Google's response to your issue is (they also
read this forum, so most likely someone's looking into it already).


-
-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/d/optout.


Re: [google-appengine] python xmpp raw_xml

2014-04-07 Thread Vinny P
On Mon, Apr 7, 2014 at 6:40 AM, Илья Дьячков  wrote:

> if i send xmpp message with from google.appengine.api import xmpp
> xmpp.send_message(jids="ronhill.i...@gmail.com", body=u"Привет", 
> raw_xml=True)
> I received message "" in gtalk IM
> if i send: from google.appengine.api import xmpp
> xmpp.send_message(jids="ronhill.i...@gmail.com", body=u"Привет", 
> raw_xml=False)
> I received message "Привет" in gtalk IM
> How fix this BUG??
>
>

So to clarify, the error is that you can't display the ** tag in
GTalk IM? Do you expect the body tag to be shown as plain text or to be
interpreted as markup? Also, why have you listed *raw_xml* as true in the
first code example, but false in the second example?



-
-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/d/optout.


Re: [google-appengine] Extract images from pdf

2014-04-07 Thread Vinny P
On Mon, Apr 7, 2014 at 6:27 AM, rishidude  wrote:

> I am writing an application where a pdf file can be uploaded and the user
> will be shown some details of the pdf file(some text and images[png]) upon
> searching for the id of the pdf.
>
> Now, in ubuntu, I am using pdfminer to convert to text and pdfimages to
> extract images. Now, here is the problem. In google app engine I am able to
> import pdfminer and use it for text extraction. But, I have not been able
> to extract images. pdfimages is available in ubuntu, but not as a python
> package.
>
> Please help.
>


It depends on the image you're trying to extract. If you're attempting to
extract JPEG images, usually you can extract the image data from the raw
PDF. Here's an example: http://stackoverflow.com/a/2695387

If the image is stored in a different manner, you may have to run
*pdfimages* within a Compute Engine machine or Managed VMs and handling the
extraction there.


-
-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/d/optout.


[google-appengine] Re: what may cause this and how to avoid? This request caused a new process to be started for your application...

2014-04-07 Thread timh
This isn't a widespread problem.

I have a low traffic (billing enabled) with the following settings 

1 resident, typically 1  or 2 dynamic instances all the time

Idle Instances: ( 1 – 2 )
Pending Latency: ( 900ms – 4.6s )

The dynamic instance age 1 day, 15 hours at the moment.

The only time I see instance startup  messges "This request caused a new 
process to be started " 
is when I get hit by some really bad behaved SEO bot. That walks the entire 
site in the space of a minute or twp.
In fact this is the only time I have seen a DEE in about 2 months.

This is all python.

You may be stuck in a a bit of appengine infrastructure with poorly 
performing scheduler.
It might be worth logging a fault.

T





On Tuesday, April 8, 2014 4:54:05 AM UTC+8, Iron Mountain Foundry wrote:
>
> I am seeing the same thing.  It seems to have really increased since April 
> 1 to the point that every single request causes a new process.  I posted 
> this on another thread titled "Processes are expiring way too soon."  I 
> will follow this thread instead.
>
> My application already allows warmup requests and uses webapp2 request 
> handlers for fast URI routing.
>
> Vinny suggested increasing the "Min Pending Latency" slider on the 
> Application Settings page.  It seems to help on AJAX requests within a page 
> but every separate page still starts a new request.  This behavior is new 
> and really hurts a low volume single-instance application.
>
> AppEngine team, please allow applications to stay around for more than one 
> second (like they used to).  Thank you!
>
>
>
> On Sunday, April 6, 2014 9:03:31 PM UTC-7, saintthor wrote:
>>
>> This request caused a new process to be started for your application, and 
>> thus caused your application code to be loaded for the first time. This 
>> request may thus take longer and use more CPU than a typical request for 
>> your application.
>>
>> i see some of requests log these words. i wonder how to avoid it. i am using 
>> python2.7 and webapp2.
>>
>>

-- 
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/d/optout.


[google-appengine] Re: what may cause this and how to avoid? This request caused a new process to be started for your application...

2014-04-07 Thread Iron Mountain Foundry
I am seeing the same thing.  It seems to have really increased since April 
1 to the point that every single request causes a new process.  I posted 
this on another thread titled "Processes are expiring way too soon."  I 
will follow this thread instead.

My application already allows warmup requests and uses webapp2 request 
handlers for fast URI routing.

Vinny suggested increasing the "Min Pending Latency" slider on the 
Application Settings page.  It seems to help on AJAX requests within a page 
but every separate page still starts a new request.  This behavior is new 
and really hurts a low volume single-instance application.

AppEngine team, please allow applications to stay around for more than one 
second (like they used to).  Thank you!



On Sunday, April 6, 2014 9:03:31 PM UTC-7, saintthor wrote:
>
> This request caused a new process to be started for your application, and 
> thus caused your application code to be loaded for the first time. This 
> request may thus take longer and use more CPU than a typical request for your 
> application.
>
> i see some of requests log these words. i wonder how to avoid it. i am using 
> python2.7 and webapp2.
>
>

-- 
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/d/optout.


Re: [google-appengine] Server Error ("Text Search") on Admin Console

2014-04-07 Thread JAMES COURTNEY
Hey Vinny,

So you believe there's one document which is hobbling the system?

So we have three text search indexes and included below is my browsing 
experience for each:

IDX_APP
- always fails simply when clicking the IDX_APP link from the "Text 
Search" admin console page
IDX_ORGANIZATION
- fails with the error when paginating results from 240-260.
IDX_USER
- fails with the error when paginating results 40-60.

I was able to iterate the entire alphabet in chunks of three as you suggested 
without error but also without results.  I believe the error is occurring upon 
attempt to display specific documents/results as you seem to suspect.

I've filed the production issue too.  Thanks for your continued help with this.

Best,

Jamey


James Courtney
Co-Founder, CFO, Code Monkey, etc.
PhilanthroPal, Inc.
Office: (650) 300-1652
Mobile: (650) 740-2628
james.court...@philanthropal.com


Be Social. Be Mobile. Be Charitable!

On Apr 7, 2014, at 12:21 AM, Vinny P  wrote:

> On Thu, Apr 3, 2014 at 12:10 PM, JAMES COURTNEY 
>  wrote:
> This has been occurring for at least a couple of weeks and likely longer 
> since I wan't trying to use this area of the admin console previously.
> 
> 
> The reason I asked how long the error has been taking place is to try and 
> narrow down the list of suspect documents. Since the issue started at an 
> unknown time, it's going to be harder to find the culprit, but hopefully not 
> impossible.
> 
> 
> On Thu, Apr 3, 2014 at 12:10 PM, JAMES COURTNEY 
>  wrote:
> I also realized that I can browse my indexes in a limited way though paging 
> forward a few times often causes the described error to appear.
> 
> 
> Does the server error always happen on the same page; i.e. you page forward 
> and the error consistently occurs at the nth page? Or does the error occur at 
> seemingly-random pages? 
> 
> 
> On Thu, Apr 3, 2014 at 12:10 PM, JAMES COURTNEY 
>  wrote:
> Any attempt to search using even a one-word query string containing only the 
> characters a-z fails with the described error though.
> 
> 
> Can you try searching using subsets of the alphabet? For example, search once 
> using the query string "abc", then if that works continue on with "def", 
> "ghi", "jkl", etc? 
> 
>  
> On Thu, Apr 3, 2014 at 12:10 PM, JAMES COURTNEY 
>  wrote:
> BTW, I realized I probably should have created a post on stack overflow which 
> I did here:
> 
> http://stackoverflow.com/questions/22797685/a-server-error-has-occurred-on-text-search-in-admin-console
> 
> 
>  
> It might also be a good idea to file an issue on the tracker: 
> https://code.google.com/p/googleappengine/issues/entry?template=Production%20issue
>  (use the template marked production).
> 
>  
> -
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
> 
> App Engine Code Samples: http://www.learntogoogleit.com
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Google App Engine" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/google-appengine/hsM0Z3mrm3Q/unsubscribe.
> To unsubscribe from this group and all its topics, 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/d/optout.

-- 
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/d/optout.
<>

[google-appengine] a lot of errors for last 1-2 hours

2014-04-07 Thread Igor Artamonov
For last hour or two GAE launching new instances, and killing them just in 
a minute. Have ~10 instances on launch state all the time. A lot of errors, 
users are unhappy, etc.
I know that gae have this issue, but usually this thing happened for 10-15 
minutes. How for hours. What's happening 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/d/optout.


Re: [google-appengine] My project doesn't have its default auto-created GCS bucket

2014-04-07 Thread Tom
Yes, that is correct, so I went ahead and clicked the 'create' button now 
it says "Project creation is in progress."

But doesn't this mean that it will create a new CC project, so I will now 
have 2 CC project's for my GAE project?  And my Google Cloud Storage will 
be spread across the two CC's projects.

Tom

On Monday, 7 April 2014 04:16:12 UTC-4, Vinny P wrote:
>
> On Wed, Apr 2, 2014 at 12:54 PM, Tom <> wrote:
>
>> I have a cloud console project and a GAE/J project.  They were created 
>> independently, so were not connected at birth.  So, if I go to GAE app 
>> settings, the 'cloud integration' option is not enabled.
>>
>
>
> So to clarify, your console looks like this: http://imgur.com/qpEs2jucorrect? 
>
> If so, go ahead and click the Create button, you should get your default 
> bucket soon after that.
>   
>  
> -
> -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/d/optout.


[google-appengine] python xmpp raw_xml

2014-04-07 Thread Илья Дьячков


Hallow 

if i send xmpp message with 

from google.appengine.api import xmpp
xmpp.send_message(jids="ronhill.i...@gmail.com", body=u"Привет", 
raw_xml=True)

I received message "" in gtalk IM

if i send:

from google.appengine.api import xmpp
xmpp.send_message(jids="ronhill.i...@gmail.com", body=u"Привет", raw_xml=False)

I received message "Привет" in gtalk IM

How fix this BUG?? 

-- 
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/d/optout.


[google-appengine] Extract images from pdf

2014-04-07 Thread rishidude
 

I am writing an application where a pdf file can be uploaded and the user 
will be shown some details of the pdf file(some text and images[png]) upon 
searching for the id of the pdf.

Now, in ubuntu, I am using pdfminer to convert to text and pdfimages to 
extract images. Now, here is the problem. In google app engine I am able to 
import pdfminer and use it for text extraction. But, I have not been able 
to extract images. pdfimages is available in ubuntu, but not as a python 
package.

Please 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/d/optout.


Re: [google-appengine] Copy entries from CSV file to Google App Engine Datastore

2014-04-07 Thread Vinny P
On Thu, Apr 3, 2014 at 8:47 AM, Ludwig Precious 
 wrote:

> I am a complete beginner in all this so I just wanted to ask you do you
> have an example of the application how it should look like?
>


The correct answer depends on the programming language you're most
comfortable in. For instance, if you're using Python there's example code
here on how to upload a CSV file and parse it:
http://stackoverflow.com/questions/2970599/upload-and-parse-csv-file-with-google-app-engine


Getting that data into the datastore is the easy part: you can look at the
guestbook example to see how entities are written to the datastore:
https://github.com/GoogleCloudPlatform/appengine-guestbook-python


-
-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/d/optout.


Re: [google-appengine] My project doesn't have its default auto-created GCS bucket

2014-04-07 Thread Vinny P
On Wed, Apr 2, 2014 at 12:54 PM, Tom  wrote:

> I have a cloud console project and a GAE/J project.  They were created
> independently, so were not connected at birth.  So, if I go to GAE app
> settings, the 'cloud integration' option is not enabled.
>


So to clarify, your console looks like this: http://imgur.com/qpEs2jucorrect?

If so, go ahead and click the Create button, you should get your default
bucket soon after that.


-
-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/d/optout.


Re: [google-appengine] Processes are expiring way too soon

2014-04-07 Thread Vinny P
On Fri, Apr 4, 2014 at 10:06 AM, Iron Mountain Foundry <
brentwashbu...@gmail.com> wrote:

> I am seeing new process startups almost every time I refresh a page.  This
> started happening a couple of days ago.  Is there a new control somewhere
> that specifies how long a process waits before expiring?
>



No there isn't, but you can try hinting to the scheduler to stop rapidly
recycling instances by increasing the *Pending Latency* slider in the
*Application
Settings* page.


-
-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/d/optout.


Re: [google-appengine] Task Queue Namespaces and Quota

2014-04-07 Thread Vinny P
On Thu, Apr 3, 2014 at 9:09 AM, Miguel Vitorino  wrote:

> When using namespaces with Task Queues is the quota applicable across all
> namespaces or do namespaced queues actually work as separate queues?
> Example: the 500 task invocations per second per queue are a limit for
> all namespaces on the same queue or per namespace?
>



I believe the limit on task executions is across the entire queue,
regardless of the namespace configured.


-
-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/d/optout.


Re: [google-appengine] puzzle about Ancestor Queries

2014-04-07 Thread Vinny P
On Mon, Apr 7, 2014 at 12:55 AM, saintthor  wrote:

> https://developers.google.com/appengine/docs/python/ndb/queries
>
> in sector  Ancestor Queries, the last line:
>
> Remember, this is limited to one purchase per second.
>
> what is 'one purchase per second' mean? i can create only 1 purchase
> instance per second, or can do 1 query per second?
>


It's a reference to the first line of the
section,
where it says "*Ancestor queries allow you to make strongly consistent
queries to the datastore, however entities with the same ancestor are
limited to 1 write per second*".


-
-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/d/optout.


Re: [google-appengine] Add Custom Domain Problem

2014-04-07 Thread Vinny P
On Sun, Apr 6, 2014 at 9:01 PM, Tsolmon Narantsogt  wrote:

> I have one GAE application and i've already deployed. And added custom
> domain. But it's still doesnt work.
>
> When i check my MX using that tool it's okey
> https://toolbox.googleapps.com/apps/checkmx/
>
> i registered http://www.google.com/enterprise/apps/business/ and added my
> custom domain.
>
> Can anyone help me.
>


The MX check relates to mail, not to domain mappings.

Did you login to your domain registrar and map your domain to Google?
Here's a help article explaining the process:
https://support.google.com/a/answer/47283?hl=en

-
-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/d/optout.


Re: [google-appengine] Server Error ("Text Search") on Admin Console

2014-04-07 Thread Vinny P
On Thu, Apr 3, 2014 at 12:10 PM, JAMES COURTNEY <
james.court...@philanthropal.com> wrote:

> This has been occurring for at least a couple of weeks and likely longer
> since I wan't trying to use this area of the admin console previously.
>


The reason I asked how long the error has been taking place is to try and
narrow down the list of suspect documents. Since the issue started at an
unknown time, it's going to be harder to find the culprit, but hopefully
not impossible.


On Thu, Apr 3, 2014 at 12:10 PM, JAMES COURTNEY <
james.court...@philanthropal.com> wrote:

> I also realized that I can browse my indexes in a limited way though
> paging forward a few times often causes the described error to appear.
>


Does the server error always happen on the same page; i.e. you page forward
and the error consistently occurs at the nth page? Or does the error occur
at seemingly-random pages?


On Thu, Apr 3, 2014 at 12:10 PM, JAMES COURTNEY <
james.court...@philanthropal.com> wrote:

> Any attempt to search using even a one-word query string containing only
> the characters a-z fails with the described error though.
>


Can you try searching using subsets of the alphabet? For example, search
once using the query string "abc", then if that works continue on with
"def", "ghi", "jkl", etc?


On Thu, Apr 3, 2014 at 12:10 PM, JAMES COURTNEY <
james.court...@philanthropal.com> wrote:

> BTW, I realized I probably should have created a post on stack overflow
> which I did here:
>
>
> http://stackoverflow.com/questions/22797685/a-server-error-has-occurred-on-text-search-in-admin-console
>
>

It might also be a good idea to file an issue on the tracker:
https://code.google.com/p/googleappengine/issues/entry?template=Production%20issue(use
the template marked production).


-
-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/d/optout.


Re: [google-appengine] what may cause this and how to avoid? This request caused a new process to be started for your application...

2014-04-07 Thread Vinny P
On Sun, Apr 6, 2014 at 11:03 PM, saintthor  wrote:

> This request caused a new process to be started for your application, and 
> thus caused your application code to be loaded for the first time. This 
> request may thus take longer and use more CPU than a typical request for your 
> application.
>
>
> i see some of requests log these words. i wonder how to avoid it. i am using 
> python2.7 and webapp2.
>
>

 You can't avoid them; they're just routine notices. They're indicating
that a new instance is spawning to serve that particular request.

If you see many requests with that message, then it might be a problem; the
scheduler might be recycling instances too rapidly or a similar issue. But
if you only see the messages occasionally, then there's no need for concern.


-
-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/d/optout.


[google-appengine] Re: How can I use java.io.File(filePath) in AppEngine?

2014-04-07 Thread Vizay Soni
You could also use following:

inputStream = 
getClass().getClassLoader().getResourceAsStream(APNS_CERTIFICATE_PATH);

On Wednesday, January 22, 2014 3:25:53 AM UTC+5:30, Juan de Dios Becerra 
wrote:
>
> I am trying to use Google + Domains API in GAE, but when I try to create a 
> GoogleCredential I need to use this:
>
> .setServiceAccountPrivateKeyFromP12File(new java.io.File(filePath))
>
> Where filePath is a .p12 extension file(private key for authentication) 
> this file I put in WEB-INF folder and I granted permissions to all, but 
> when I try to create the GoogleCredential I get this error:
>
> java.security.AccessControlException: access denied 
> (java.io.FilePermission /WEB-INF/file.p12 read)
>
> Obviously the file has the correct name in my folder, this process works 
> in my project which is not AppEngine, so I guess is a problem in the way to 
> access files in AppEngine using java.io.File.
>
> If somebody has idea, I would be very thankful.
>

-- 
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/d/optout.


[google-appengine] Re: what may cause this and how to avoid? This request caused a new process to be started for your application...

2014-04-07 Thread timh
This is normal if you are not using warmup requests. Instances need to 
start to service increasing load, and if you don't have warmup requests 
enabled then a user facing request can start an instance.

T

On Monday, April 7, 2014 12:03:31 PM UTC+8, saintthor wrote:
>
> This request caused a new process to be started for your application, and 
> thus caused your application code to be loaded for the first time. This 
> request may thus take longer and use more CPU than a typical request for your 
> application.
>
> i see some of requests log these words. i wonder how to avoid it. i am using 
> python2.7 and webapp2.
>
>

-- 
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/d/optout.