Re: [google-appengine] Visual Basic Programmer - should I use Python, Java, PHP or GO

2015-11-17 Thread 'Josh Moore' via Google App Engine
For what it's worth, you can also run ASP .NET vNext on App Engine Managed
VMs, which may be the closest to VB.NET.  It's worth a thought, if you're
in the prototype stage.

On Mon, Nov 16, 2015 at 9:59 PM, Didin Jamaludin  wrote:

> Python more human readable that closely to VB.
>
>
> Thanks,
> Didin
>
> 2015-11-17 4:08 GMT+07:00 Alistair Burrowes :
>
>> Java is the most similar to vb.net . c# and java are quite similar and
>> vb is basically an alternative syntax to c#.
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-appengine/f7639fed-cef0-480b-aa39-1b55a44ccf78%40googlegroups.com
>> .
>> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/CAGAhdS7wS1fSC7fC_1bch-oiZpwNC3g2u%2BEm%3D6W6ViWPBZyvkw%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Josh Moore | Cloud Solutions Engineer | joshu...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAOvpJmWbTJqfw2Ujbv-12%2BV5eUDTzu%2BP_td_ugSsLNd6MsO6ig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Some of my applications appear to have stale caches in Australia

2015-11-17 Thread Emlyn
Hi,

If you go to this appengine app link:

http://nickdemo.tes-testing.appspot.com/#/login?returl=%2F

you'll see one of two things.

If you are in Australia, it'll say "Please Login" (old code)
If you are not in Australia, it'll say "Please Loggin" (new code)

Does anyone understand why this is happening? So far it's been like
this all day. Is there a problem in Google's infrastructure?

-- 
Emlyn

http://point7.wordpress.com - My blog
https://plus.google.com/u/0/100281903174934656260 - Google+

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAMp1VPCeZ-OGFOydCcuUhCPEAKeiOKMRpWGMSdGOQMs3eW%3DHXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] TaskAlreadyExistsException does not provide getMessage()

2015-11-17 Thread Paul Canning
I am using named Tasks in my PHP GAE application (using the current time, 
to the minute, stops a ton of tasks being submitted) and noticed that 
when TaskAlreadyExistsException is hit, there is no getMesaage() for the 
exception.

Same goes for InvalidArgumentException.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e5497d4c-f3df-40cc-9496-84c58b51c513%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Couldn't connect to the Docker daemon on Windows 7

2015-11-17 Thread Thiago Rizzo


Im trying to deploy an app on google cloud, just following 
https://cloud.google.com/nodejs/getting-started/hello-world#running_hello_world 
 
tutorial,
 
but everytime I run:


gcloud --verbosity debug preview app deploy app.yaml --promote


I got a message error:


Copying certificates for secure access. You may be prompted to create an SSH 
key pair.
DEBUG: Loaded Command Group: ['gcloud', 'compute', 'copy_files']
DEBUG: Detected docker environment variables: 
DOCKER_HOST=tcp://104.197.75.48:2376,
DOCKER_CERT_PATH=tmpurmvdk, DOCKER_TLS_VERIFY=True
INFO: Starting new HTTPS connection (1): 104.197.75.48
DEBUG: Failed to connect to Docker daemon due to an SSL problem:[SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

...


am I missing something?


Greetings, Thiago Rizzo.


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f39f86ba-9d19-42c2-a8e3-22562cdb5bc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: request.getSession(false) returning null though active session available

2015-11-17 Thread Nick (Cloud Platform Support)
Hey Naresh,

Have you managed to create a post on Stack Overflow? Feel free to link it 
here, as I'll be happy to help out with it over there! 

On Friday, November 13, 2015 at 9:50:25 AM UTC-5, Naresh Pokuri wrote:
>
> I am testing my application on Google App Engine local devserver. And I 
> see once user session timeout and logs-in again, for few request that 
> logged in session worked. All of a sudden for few request new session 
> created though active session sent in request headers.
>
>
> *working session request and response headers:*
> GET /_ah/api/havasay/v1/secured/search/tickets?type=ticket&criteria=
> organizationId:11d7e348-3559-4357-81a5-9b12268aeaac;channelId:2c17ac87-
> ff49-44c2-b91d-d35e72ccfe57,047a8141-e152-4a1c-b56c-3bb6310a4ebb;status:
> pending,reopened&offset=0&limit=20 HTTP/1.1
>
> Host: local.havasay.com:8080
>
> Accept: application/json, text/plain, */*
>
> Accept-Encoding: gzip, deflate, sdch
>
> Accept-Language: en-US,en;q=0.8
>
> Cookie: JSESSIONID=11imty7x4cq58
>
> orgKey: SAMS-1
>
> Referer: http://local.havasay.com:8080/home
>
> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, 
> like Gecko) Chrome/46.0.2490.80 Safari/537.36
>
> X-DevTools-Emulate-Network-Conditions-Client-Id: 
> 3E584D9A-0213-448C-9020-A407CA69883F
>
> x-hs-salt: f93982f0d7b9c186b6d456abe7476fa97d749aa8fa9d94d712c51688e2dad8fd
>
> X-Requested-With: XMLHttpRequest
>
>
>
>
> HTTP/1.1 200 OK
>
> Cache-Control: no-cache, no-store, must-revalidate
>
> Content-Length: 146
>
> Content-Type: application/json; charset=UTF-8
>
> Date: Fri, 13 Nov 2015 08:23:43 GMT
>
> Expires: 0
>
> Pragma: no-cache
>
> server: Development/1.0
>
> Server: Jetty(6.1.x)
>
> x-frame-options: DENY
>
>
> *New session created request and response headers:*
>
>
> POST /_ah/api/havasay/v1/secured/resource/users HTTP/1.1
>
>
>
> Host: local.havasay.com:8080
>
> Accept: application/json, text/plain, */*
>
> Accept-Encoding: gzip, deflate
>
> Accept-Language: en-US,en;q=0.8
>
> Content-Type: application/json;charset=UTF-8
>
> Cookie: JSESSIONID=11imty7x4cq58
>
> orgKey: SAMS-1
>
> Origin: http://local.havasay.com:8080
>
> Referer: http://local.havasay.com:8080/home
>
> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, 
> like Gecko) Chrome/46.0.2490.80 Safari/537.36
>
> X-DevTools-Emulate-Network-Conditions-Client-Id: 
> 3E584D9A-0213-448C-9020-A407CA69883F
>
> x-hs-salt: f93982f0d7b9c186b6d456abe7476fa97d749aa8fa9d94d712c51688e2dad8fd
>
> X-Requested-With: XMLHttpRequest
>
>
>
>
> HTTP/1.1 200 OK
>
> Access-Control-Allow-Credentials: true
>
> Access-Control-Allow-Origin: http://local.havasay.com:8080
>
> Cache-Control: no-cache, no-store, must-revalidate
>
> Content-Length: 690
>
> Content-Type: application/json; charset=UTF-8
>
> Date: Fri, 13 Nov 2015 08:23:46 GMT
>
> Expires: Fri, 13 Nov 2015 08:23:46 GMT
>
> Pragma: no-cache
>
> server: Development/1.0
>
> Server: Jetty(6.1.x)
>
> set-cookie: JSESSIONID=o9gl01qab596;Path=/
>
> x-frame-options: DENY
>
>
> *And in my servlet filter I have code like this*
>
>
> String requestedSessionId = request.getRequestedSessionId();
> boolean requestedSessionIdFromCookie = 
> request.isRequestedSessionIdFromCookie();
> LOGGER.info("Requested Session ID from cookie: 
> "+requestedSessionIdFromCookie);
> LOGGER.info("Requested Session ID: "+requestedSessionId);
> HttpSession session = request.getSession(false);
> if(session == null){
> session = request.getSession(true);
> }
> LOGGER.info("Is Session New: "+session.isNew());
> LOGGER.info("Session ID: "+session.getId());
>
>
> *For above code log is as below*
>
> [INFO] INFO: Requested Session ID from cookie: true[INFO] INFO: Requested 
> Session ID: 11imty7x4cq58[INFO] INFO: Is Session New: true[INFO] INFO: 
> Session ID: o9gl01qab596
>
>
> I am not able to track what causes the issue? Is it problem with GAE? I am 
> trying to find the root cause for last two days.. still no clue. Please 
> help me
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8e186d0b-bcf8-47c3-8854-0ca948e45db5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: TaskAlreadyExistsException does not provide getMessage()

2015-11-17 Thread Patrice (Cloud Platform Support)
Hi Paul,

If this is something that you believe needs changing, I would suggest 
posting this on our Issue Tracker 
 so we can forward it to the 
appropriate team.

Cheers!

On Tuesday, November 17, 2015 at 4:41:43 AM UTC-5, Paul Canning wrote:
>
> I am using named Tasks in my PHP GAE application (using the current time, 
> to the minute, stops a ton of tasks being submitted) and noticed that 
> when TaskAlreadyExistsException is hit, there is no getMesaage() for the 
> exception.
>
> Same goes for InvalidArgumentException.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dc72b745-a05f-4b71-bf4f-bfbe58108d45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Some of my applications appear to have stale caches in Australia

2015-11-17 Thread Patrice (Cloud Platform Support)
Hi Emlyn,

How long ago did you change your code? I just want to make sure it isn't a 
question of propagation and it won't eventually go through.

I can confirm on my end I see the new code. Are you also certain that 
whoever uses your app in Australia isn't using a different version?

Cheers

On Tuesday, November 17, 2015 at 3:52:59 AM UTC-5, Emlyn wrote:
>
> Hi, 
>
> If you go to this appengine app link: 
>
> http://nickdemo.tes-testing.appspot.com/#/login?returl=%2F 
>
> you'll see one of two things. 
>
> If you are in Australia, it'll say "Please Login" (old code) 
> If you are not in Australia, it'll say "Please Loggin" (new code) 
>
> Does anyone understand why this is happening? So far it's been like 
> this all day. Is there a problem in Google's infrastructure? 
>
> -- 
> Emlyn 
>
> http://point7.wordpress.com - My blog 
> https://plus.google.com/u/0/100281903174934656260 - Google+ 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8d7db2cd-d649-4953-8f11-b8f3f6261179%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] bucket size for task.

2015-11-17 Thread Trez Ertzzer
Hello.
I have been reading a lot of things about tasks and rate and bucket size 
but I cannot figure out how it works.

suppose the rate is 10/s and the bucket size is 5.
suppose that I never added any task yet.

now I add 20 tasks.
can you describe how the tasks will be executed?

I understood, that 5 tasks will execute immediatly.
then what will happen...?
After how long another task will start? (and how many will start...)


thank you.


PS: I read this:
https://groups.google.com/forum/#!searchin/google-appengine/bucket$20task/google-appengine/A1vC7raLfuY/h0Bi82Y5HCcJ
 

and this
https://groups.google.com/forum/#!searchin/google-appengine/bucket$20size/google-appengine/4qBjwhvp_kU/wUlZAOJmOK8J

but the information are really not clear

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5f7bb905-d55b-4673-885b-6fb888e630a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Maximum number of tasks that can be added in a batch

2015-11-17 Thread Trez Ertzzer
hello.
on this page:
https://cloud.google.com/appengine/docs/java/taskqueue/overview-push

it's written
Maximum number of tasks that can be added in a batch: 100

*what does in mean? (ie what is a "batch"?)*


what I plan to do:
I want to have a cron task that is going to run every month.
this task is going to create one task for each of my user to compute the 
bill and send an email.
do you think that's possible? (if I have 100 000 users...)

how would you do this?


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a8b2207a-52bf-49ec-8c77-acbfc29c69e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: bucket size for task.

2015-11-17 Thread Patrice (Cloud Platform Support)
Hi,

Since you have a bucket size of 5, the system will immediately start the 5 
tasks you've asked. Then, because of the rate of your queue, over time 
(each tenth of a second) your queue should get a new "token" that can be 
used by your tasks. Depending on a lot of factor, the system can decide to 
"hold" onto your token to only give you a significant amount (so instead of 
a new token every tenth of a second, you may get a group of 5 tokens each 
half-second). 

For more information, I would suggest reading the official doc 

 (I 
linked the section about processing rates, but the whole doc is helpful 
here)

Cheers!

On Tuesday, November 17, 2015 at 12:09:36 PM UTC-5, Trez Ertzzer wrote:
>
> Hello.
> I have been reading a lot of things about tasks and rate and bucket size 
> but I cannot figure out how it works.
>
> suppose the rate is 10/s and the bucket size is 5.
> suppose that I never added any task yet.
>
> now I add 20 tasks.
> can you describe how the tasks will be executed?
>
> I understood, that 5 tasks will execute immediatly.
> then what will happen...?
> After how long another task will start? (and how many will start...)
>
>
> thank you.
>
>
> PS: I read this:
>
> https://groups.google.com/forum/#!searchin/google-appengine/bucket$20task/google-appengine/A1vC7raLfuY/h0Bi82Y5HCcJ
>  
> and this
>
> https://groups.google.com/forum/#!searchin/google-appengine/bucket$20size/google-appengine/4qBjwhvp_kU/wUlZAOJmOK8J
>
> but the information are really not clear
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e9351239-4375-4cd1-9f90-60ddab1c8b70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Maximum number of tasks that can be added in a batch

2015-11-17 Thread Patrice (Cloud Platform Support)
Hi,

As can be seen here 
, 
when you add tasks to a queue, you can add a LIST of tasks, which is what 
the batch refers too.

What you describe for your application is definitely feasible, but you 
won't be able to add 100 000 tasks to your queue at once. Depending on the 
system, I would personally prefer a datastore entry to keep track of the 
bill and then a job that just sends the 100 000 emails, but I don't know 
enough about your system, this may not be feasible.

Cheers!

On Tuesday, November 17, 2015 at 1:13:57 PM UTC-5, Trez Ertzzer wrote:
>
> hello.
> on this page:
> https://cloud.google.com/appengine/docs/java/taskqueue/overview-push
>
> it's written
> Maximum number of tasks that can be added in a batch: 100
>
> *what does in mean? (ie what is a "batch"?)*
>
>
> what I plan to do:
> I want to have a cron task that is going to run every month.
> this task is going to create one task for each of my user to compute the 
> bill and send an email.
> do you think that's possible? (if I have 100 000 users...)
>
> how would you do this?
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f69b8c6c-fd63-4d22-a71a-37ffae5a406f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: bucket size for task.

2015-11-17 Thread Jason Collins
I think of it this way:

- a task will execute if there is a token in the bucket (by consuming the 
token)
- the bucket size can be defined to hold a particular number of tokens
- the bucket will refill tokens at the queue rate

So, when the bucket is "empty", you are effectively processing at your 
queue rate (i.e., the rate at which the bucket is being refilled). The max 
bucket size is 100, so this allows you to have a small burst in processing 
if desired. 

This is the clearest description from the docs:


*The task queue uses token buckets 
 to control the rate of task 
execution. Each named queue has a token bucket that holds a certain number 
of tokens, defined by the bucket_size directive. Each time your application 
executes a task, it uses a token. Your app continues processing tasks in 
the queue until the queue's bucket runs out of tokens. App Engine refills 
the bucket with new tokens continuously based on the rate that you 
specified for the queue.*



On Tuesday, 17 November 2015 11:10:26 UTC-8, Patrice (Cloud Platform 
Support) wrote:
>
> Hi,
>
> Since you have a bucket size of 5, the system will immediately start the 5 
> tasks you've asked. Then, because of the rate of your queue, over time 
> (each tenth of a second) your queue should get a new "token" that can be 
> used by your tasks. Depending on a lot of factor, the system can decide to 
> "hold" onto your token to only give you a significant amount (so instead of 
> a new token every tenth of a second, you may get a group of 5 tokens each 
> half-second). 
>
> For more information, I would suggest reading the official doc 
> 
>  (I 
> linked the section about processing rates, but the whole doc is helpful 
> here)
>
> Cheers!
>
> On Tuesday, November 17, 2015 at 12:09:36 PM UTC-5, Trez Ertzzer wrote:
>>
>> Hello.
>> I have been reading a lot of things about tasks and rate and bucket size 
>> but I cannot figure out how it works.
>>
>> suppose the rate is 10/s and the bucket size is 5.
>> suppose that I never added any task yet.
>>
>> now I add 20 tasks.
>> can you describe how the tasks will be executed?
>>
>> I understood, that 5 tasks will execute immediatly.
>> then what will happen...?
>> After how long another task will start? (and how many will start...)
>>
>>
>> thank you.
>>
>>
>> PS: I read this:
>>
>> https://groups.google.com/forum/#!searchin/google-appengine/bucket$20task/google-appengine/A1vC7raLfuY/h0Bi82Y5HCcJ
>>  
>> and this
>>
>> https://groups.google.com/forum/#!searchin/google-appengine/bucket$20size/google-appengine/4qBjwhvp_kU/wUlZAOJmOK8J
>>
>> but the information are really not clear
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a3d98838-24a2-4669-bb8b-1e7e919d1342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Some of my applications appear to have stale caches in Australia

2015-11-17 Thread Nick
We've been seeing this too, we had assumed that there was an intentional 
infrastructure change.

When deploying new app versions, static resources served through Google front 
end are old assets for quite a while, where previously they update straight 
away.

This is pretty bad for one page apps (we use angular) - it sounds like this 
isn't an intentional change?

This impacts all of our applications as far as we can tell, anywhere from 2 to 
5 minutes delay - we're in aus 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8a5068b7-c476-42a2-8c86-b16989908909%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Some of my applications appear to have stale caches in Australia

2015-11-17 Thread Greg Jones
Your page is setting cache-control with a max age of 24hrs, so if it's been 
less than that then things are working as they're supposed to - if you need 
new content to be reflected more quickly, you should change the 
cache-control. If you check the headers on the response and see a non-zero 
'Age', then it means the response has come from an intermediate cache. 
Google has caches on it's "edge", but it's possible there are others 
depending on how you connect.

(https://redbot.org/?uri=http%3A%2F%2Fnickdemo.tes-testing.appspot.com is a 
useful tool for testing these kinds of things)

Greg

On Tuesday, 17 November 2015 08:52:59 UTC, Emlyn wrote:
>
> Hi, 
>
> If you go to this appengine app link: 
>
> http://nickdemo.tes-testing.appspot.com/#/login?returl=%2F 
>
> you'll see one of two things. 
>
> If you are in Australia, it'll say "Please Login" (old code) 
> If you are not in Australia, it'll say "Please Loggin" (new code) 
>
> Does anyone understand why this is happening? So far it's been like 
> this all day. Is there a problem in Google's infrastructure? 
>
> -- 
> Emlyn 
>
> http://point7.wordpress.com - My blog 
> https://plus.google.com/u/0/100281903174934656260 - Google+ 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9bcc4f8e-d304-4438-8f23-0301db5a5a04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Visual Basic Programmer - should I use Python, Java, PHP or GO

2015-11-17 Thread Alistair Burrowes
Python and VB syntax may look similar but the languages are quite 
different. VB is strongly typed and python is dynamic. I would say Go is 
closed to VB than python.

On Tuesday, November 17, 2015 at 4:59:35 PM UTC+11, didinj wrote:
>
> Python more human readable that closely to VB.
>
>
> Thanks,
> Didin
>
> 2015-11-17 4:08 GMT+07:00 Alistair Burrowes  >:
>
>> Java is the most similar to vb.net . c# and java are quite similar and 
>> vb is basically an alternative syntax to c#.
>>
>> --
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/f7639fed-cef0-480b-aa39-1b55a44ccf78%40googlegroups.com
>> .
>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/11c646eb-772c-4706-83b9-5c8000953aa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: User Rate Limit Exceeded

2015-11-17 Thread Nick (Cloud Platform Support)
Hey Fernando,

In order to know better, could you post the full output of the error? What 
operation was actually being limited?

On Sunday, November 15, 2015 at 2:45:39 AM UTC-5, Fernando Lopez wrote:
>
> Hello Nick,
>
> Thanks for the info. Can you confirm if Google has changed anything 
> regarding those quotas last week? We have the feeling the quota limit is 
> much more reduced than in the past.
>
> Regards,
> Fernando.
>
> On Friday, 13 November 2015 20:44:43 UTC+1, Nick (Cloud Platform Support) 
> wrote:
>>
>> Hey Fernando,
>>
>> While the screenshot from your console certainly shows that you're not 
>> breaking the daily quota, there are more short-term rate-limiting quotas 
>> which are meant to keep the system usable. When seeing a "rate limit 
>> exceeded" response, try to make your traffic pattern less burst-oriented, 
>> and use more batching / deferral. This page in our documentation 
>>  deals with how 
>> to respond to rate-limiting API error responses using the "exponential 
>> backoff" pattern.
>>
>> On Friday, November 13, 2015 at 10:11:27 AM UTC-5, Fernando Lopez wrote:
>>>
>>> Hello,
>>>
>>> We are having problems since 11 of November with our application hosted 
>>> in Google Apps engine. (We have not updated our application in the last 
>>> month)
>>>
>>> We are calling to different Google API's, mostly Drive API, and in the 
>>> last two days we are receiving 403 errors for almost all requests:
>>>
>>>
>>> We have billing enabled in the project and there is a lot of quota 
>>> available.
>>>
>>>
>>>
>>> We have tested with different users, with different internet 
>>> connections, from different locations... and we are having the same problem 
>>> in different projects!!! We have the same issue in DEVELOPMENT and 
>>> SIMULATION environments. Those environments are hosted in different GAE 
>>> applications.
>>>
>>>
>>> This is the error message we are receiving:
>>>
>>>1. error: {,…}
>>>   1. code: 403
>>>   2. errors: [{domain: "usageLimits", reason: 
>>>   "userRateLimitExceeded", message: "User Rate Limit Exceeded"}]
>>>  1. 0: {domain: "usageLimits", reason: "userRateLimitExceeded", 
>>>  message: "User Rate Limit Exceeded"}
>>> 1. domain: "usageLimits"
>>> 2. message: "User Rate Limit Exceeded"
>>> 3. reason: "userRateLimitExceeded"
>>>  3. message: "User Rate Limit Exceeded"
>>>
>>>
>>> Do you have any idea or suggestion?
>>>
>>>
>>> Regards,
>>>
>>> Fernando.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3986e3d9-be2c-4da1-880d-dd8d87b7a7e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Maximum number of tasks that can be added in a batch

2015-11-17 Thread Jeff Schnitzer
You are on the right track, but there are a couple tricks to it. I do
similar things all the time, often with millions of records/tasks. Since
you pointed at java documentation, I assume you're using Java.

The simplest way to do what you want is to perform a keys-only query for
your users and batch add the tasks. Guava collections transformation helps
a lot here. Run a query that gives you an Iterable>, then
transform that into an Iterable, and pass that to a
method like this:

/** Allows any number of tasks; automatically partitions as necessary */
public void add(Iterable payloads) {
   Iterable opts = Iterables.transform(payloads, new
Function() {
  @Override
  public TaskOptions apply(DeferredTask task) {
 return TaskOptions.Builder.withPayload(task);
  }
   });

   Iterable> partitioned = Iterables.partition(opts,
QueueConstants.maxTasksPerAdd());

   for (List piece: partitioned)
  queue().addDeferredTask(piece);
}

Guava partition() makes life easy for you here. This naive approach will
stand up to enqueueing tens of thousands of tasks easily. However, there's
one limit you may run into somewhere before 100k - any single query to the
datastore times out after 60s, even if you're running from a cron job
(which otherwise gives you 10m). So as your userbase grows you may start to
exceed this limit.

The easiest solution is to simply run this in a loop and checkpoint the
query every 10k rows or so. Get a cursor, and rerun the query from that
cursor. This will keep each individual query under the 60s deadline and you
will easily be able to process 100k+ records in 10m.

If you're talking about considerably more records, or you want to process
this data in a hurry, you can use the __scatter__ property to create
partitions that you can transform into tasks in parallel. The map/reduce
framework works this way. Here's some sample code I posted recently that
should give you a head start:

https://gist.github.com/stickfigure/1a345f9a8a56897da6a0

However, start with the most naive approach and grow from there (assuming
you don't already have 100k users).

Suerte,
Jeff

On Tue, Nov 17, 2015 at 10:13 AM, Trez Ertzzer  wrote:

> hello.
> on this page:
> https://cloud.google.com/appengine/docs/java/taskqueue/overview-push
>
> it's written
> Maximum number of tasks that can be added in a batch: 100
>
> *what does in mean? (ie what is a "batch"?)*
>
>
> what I plan to do:
> I want to have a cron task that is going to run every month.
> this task is going to create one task for each of my user to compute the
> bill and send an email.
> do you think that's possible? (if I have 100 000 users...)
>
> how would you do this?
>
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/a8b2207a-52bf-49ec-8c77-acbfc29c69e5%40googlegroups.com
> 
> .
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADK-0ujkhh4CwOt86YSLk7jid9%2BVpJBw1xc8FNvBWp3oefu3rA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Angular 2 on GAE?

2015-11-17 Thread Patrick Boutet
Just wondering if creating a Angular 2 app on GAE is possible, I know it's 
still in alpha but i'd like to play around with it and just make a simple 
webform to mess around with. Anyone know of any resources that could get me 
started?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f00c3f84-d9c7-4420-88a9-376c9efb5c2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Angular 2 on GAE?

2015-11-17 Thread PK
>From what I know angular 2 is a client side framework. You can get any client 
>side framework use GAE for its server side needs. 

PK
http://www.gae123.com

> On Nov 17, 2015, at 2:16 PM, Patrick Boutet  wrote:
> 
> Just wondering if creating a Angular 2 app on GAE is possible, I know it's 
> still in alpha but i'd like to play around with it and just make a simple 
> webform to mess around with. Anyone know of any resources that could get me 
> started?
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/f00c3f84-d9c7-4420-88a9-376c9efb5c2f%40googlegroups.com.
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7C8DA0B6-4ECF-4C54-8840-7E7D90FF6F66%40gae123.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Some of my applications appear to have stale caches in Australia

2015-11-17 Thread Emlyn
Thanks Greg, that's really useful. We've had that setting (24 hour
expiry) for a long time, but I've never seen it actually honoured like
this (and weirdly only for Australia). But I'll file this under "not a
bug but a feature" and go fix our cache settings.

On 18 November 2015 at 07:28, Greg Jones  wrote:
> Your page is setting cache-control with a max age of 24hrs, so if it's been
> less than that then things are working as they're supposed to - if you need
> new content to be reflected more quickly, you should change the
> cache-control. If you check the headers on the response and see a non-zero
> 'Age', then it means the response has come from an intermediate cache.
> Google has caches on it's "edge", but it's possible there are others
> depending on how you connect.
>
> (https://redbot.org/?uri=http%3A%2F%2Fnickdemo.tes-testing.appspot.com is a
> useful tool for testing these kinds of things)
>
> Greg
>
>
> On Tuesday, 17 November 2015 08:52:59 UTC, Emlyn wrote:
>>
>> Hi,
>>
>> If you go to this appengine app link:
>>
>> http://nickdemo.tes-testing.appspot.com/#/login?returl=%2F
>>
>> you'll see one of two things.
>>
>> If you are in Australia, it'll say "Please Login" (old code)
>> If you are not in Australia, it'll say "Please Loggin" (new code)
>>
>> Does anyone understand why this is happening? So far it's been like
>> this all day. Is there a problem in Google's infrastructure?
>>
>> --
>> Emlyn
>>
>> http://point7.wordpress.com - My blog
>> https://plus.google.com/u/0/100281903174934656260 - Google+
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/9bcc4f8e-d304-4438-8f23-0301db5a5a04%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Emlyn

http://point7.wordpress.com - My blog
https://plus.google.com/u/0/100281903174934656260 - Google+

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAMp1VPD5SfuDxcqGW9dmTR%2BuRGwfzuZket716%3D81CEAxDP7yGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.