[google-appengine] Which library for Non linear Conjugate Gradient on GAE for python?

2017-02-26 Thread Sumanta Bhowmik
 I do not want to write a Non linear CG implementation on my own. As far as 
I know, GAE(python) supports numpy but does not support scipy(which has 
optimization). I did not come across a pure python implementation on the 
net. But I am sure many people would have had similar requirements. Is 
there some library that I can use on GAE?

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a06993b7-44ff-451d-9da3-2257e9bce18d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Error When trying to retreive access token from 'https://www.googleapis.com/auth/cloud-platform'

2017-02-26 Thread 'Adam (Cloud Platform Support)' via Google App Engine
Apologies for the frustration. We're aware that docs are a pain point for 
developers and are always working on improving them. Be assured we're 
monitoring threads like these and making note of feedback for future 
iterations of our documentation. Having more recipe style solutions is 
something I'd like to see more of as well (dispense with the verbage and 
show me the code, it will usually explain it much more concisely).

As a general suggestion, a lot of issues and corner cases end up getting 
documented outside of the official docs on the other sites we're active on 
 such as Stack Exchange, 
GitHub, Reddit and the official issue trackers (and of course Google 
Groups). Frequent and targeted use of our namesake search engine is 
encouraged (for instance Googling the two error messages for me leads 
straight to the relevant sources of information on the first hits via Stack 
Overflow). 

On Saturday, February 25, 2017 at 12:26:25 PM UTC-5, Richard Cheesmar wrote:
>
> Update: The fix for the  
>
> HTTPException: Invalid and/or missing SSL certificate for URL:
>
> solution here: 
> https://code.google.com/p/googleappengine/issues/detail?id=13477
>
> was correct, but the cacerts.pem file was corrupted somehow, replacing 
> that again sorted that out properly but didn't resolve the first issue. The 
> first issue noted was because the server time and computer times were out 
> of sync. In my case it is because my computer is in Turkey and Turkey did 
> not change from summertime this year, hence it is out of sync with the rest 
> of the planet! 
>
> Set this to automatic with asian time server and it's ok. 
>
> None, of the reasons above negate my comments on Google Docs though. 
>
> Off to have the other half of the bottle of zanax now.
>  
>
>
> On Saturday, February 25, 2017 at 5:31:22 PM UTC+3, Richard Cheesmar wrote:
>>
>> I have been experimenting with some of the Google Examples, which I have 
>> to say is a bit of a nightmare!
>>
>> I'm following the example here 
>> https://cloud.google.com/appengine/docs/standard/python/appidentity/ to 
>> retrieve an access token on the develoment server (MacOS Sierra) using 
>> Pycharm.
>>
>> I have indeed setup a service account on the Cloud Console, something you 
>> have to scrape around to find out for yourself and it is being retrieved 
>> correctly via 
>>
>> app_identity.get_service_account_name()
>>
>>
>> However, I am getting this error: 
>>
>> *** InternalError: Error getting access token. Response code: 400, 
>> Content: {
>>   "error" : "invalid_grant",
>>   "error_description" : "Invalid JWT: Token must be a short-lived token 
>> and in a reasonable timeframe"
>> }
>>
>> I assume I have provided the service account with the correct permissions 
>> for what I want, which are:
>>
>> Storage Object Creator
>> Storage Object Viewer
>> Service Account Actor which I assume I need to access the token, not 
>> really sure.
>>
>>
>> I would appreciate some direct Google help here or any help from someone 
>> that can give me an answer not a choice of paradigms. I have to say that 
>> the Google Docs are failing dramatically. It is near impossible without 
>> pouring over the stuff for hours to get clear recipe style format for 
>> performing simple tasks. When there is smidgeon of hope it goes down the 
>> toilet fast with an error for example, you set up the service accounts get 
>> your key sorted  run your code and wham:
>>
>> HTTPException: Invalid and/or missing SSL certificate for URL:
>>
>>
>> arrives like a big fat palm to smack you across the kisser. You Google and 
>> Stackoverflow some more, and find out it's a bug with outdated certificates 
>> in the sdk. Great, you fix that, try not to bang your head 
>> against the nearest hard object, because then you won't have a computer to 
>> work on, take a deep breath and run again. The bug above is where you 
>> arrive. 
>>
>> Do us techs a favour Google, if you are going to create software you want us 
>> to use, provide adequate documentation to allow us to use them without 
>> reaching for the damn zanax. Recipies, 
>> and more recipes with clear cut examples. I'm not a technical mystery 
>> detective, I'm a simple minded developer that is fed up to the back teeth of 
>> having to trawl through your min
>> efield of documents just to do some simple
>>
>>

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a28305db-c48a-4c0e-854f-e223aa88ea29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Help troubleshooting running under the development server

2017-02-26 Thread 'Adam (Cloud Platform Support)' via Google App Engine
We've seen this error occasionally but reproducing it has been hit or miss. 
I'd advise filing an issue on the googleappengine issue tracker  
and uploading a 
sample app which exhibits the problem. If you provide a link to the issue I 
will pick it up from there.

On Saturday, February 25, 2017 at 12:07:47 PM UTC-5, Kevin Wise wrote:
>
> I have an exceptionally strange situation. My web app, running on Guice in 
> a app engine standard environment, works fine in a development environment 
> on Linux or Mac, but doesn't work on Windows. The symptom is that when I 
> try to run the application, it appears to startup, but then always responds 
> with a 500 error. The log reports:
>
> ERROR2017-02-24 15:06:29,865 http_proxy.py:116] bad runtime process 
> port ['']
> INFO 2017-02-24 15:06:29,964 module.py:806] default: "GET / HTTP/1.1" 
> 500 4379
>
> Even stranger, the server returns *the log file contents to the browser*.  
> Here is a sample of the browser output:
>
> bad runtime process port ['']
>
> Feb 24, 2017 3:04:52 PM 
> com.google.appengine.tools.development.AbstractContainerService configure
> WARNING: Null value for 
> containerConfigProperties.get(devappserver.portMappingProvider)
> Feb 24, 2017 3:04:52 PM com.google.apphosting.utils.jetty.JettyLogger info
> INFO: Logging to JettyLogger(null) via 
> com.google.apphosting.utils.jetty.JettyLogger
> Feb 24, 2017 10:04:52 PM com.google.apphosting.utils.jetty.JettyLogger info
> INFO: jetty-6.1.x
> Feb 24, 2017 10:05:15 PM org.hibernate.validator.internal.util.Version 
> 
> INFO: HV01: Hibernate Validator 5.2.4.Final
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
> INFO: Registering com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider as a 
> provider class
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
> INFO: Registering com.sample.health.HealthCheckResource as a root resource 
> class
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
> INFO: Registering com.example.appengine.helloworld.HelloResource as a root 
> resource class
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
> INFO: Registering com.sample.exception.ConflictExceptionMapper as a provider 
> class
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
> INFO: Registering com.sample.exception.IllegalArgumentExceptionMapper as a 
> provider class
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
> INFO: Registering com.sample.webjars.JaxRsWebjarsServlet as a root resource 
> class
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
> INFO: Initiating Jersey application, version 'Jersey: 1.19.3 10/24/2016 03:43 
> PM'
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory 
> getComponentProvider
> INFO: Binding com.sample.exception.ConflictExceptionMapper to 
> GuiceManagedComponentProvider with the scope "Singleton"
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory 
> getComponentProvider
> INFO: Binding com.sample.exception.IllegalArgumentExceptionMapper to 
> GuiceManagedComponentProvider with the scope "Singleton"
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory 
> getComponentProvider
> INFO: Binding com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider to 
> GuiceManagedComponentProvider with the scope "Singleton"
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory 
> getComponentProvider
> INFO: Binding com.sample.health.HealthCheckResource to 
> GuiceManagedComponentProvider with the scope "Singleton"
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory 
> getComponentProvider
> INFO: Binding com.example.appengine.helloworld.HelloResource to 
> GuiceManagedComponentProvider with the scope "Singleton"
> Feb 24, 2017 10:05:19 PM 
> com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory 
> getComponentProvider
> INFO: Binding com.sample.webjars.JaxRsWebjarsServlet to 
> GuiceManagedComponentProvider with the scope "Singleton"
> Feb 24, 2017 10:05:19 PM com.google.apphosting.utils.jetty.JettyLogger info
> INFO: Started SelectChannelConnector@localhost:54117
> Feb 24, 2017 10:05:19 PM 
> com.google.appengine.tools.development.AbstractModule startup
> INFO: Module instance default is running at http://localhost:54117/
> Feb 24, 2017 10:05:19 PM 
> com.google.appengine.tools.development.AbstractModule startup
> INFO: The admin console is running at http://localhost:54117/_ah/admin
> Feb 24, 2017 3:05:55 PM 
> com.google.appengine.tools.

Re: [google-appengine] Re: Custom domain redirecting to appspot URL

2017-02-26 Thread Nickolas Daskalou
Hi Lorne,

How is this coming along?

Our Flex service is still being redirected to appspot-preview.com.

This is also causing havoc with our *dispatch rules*. It seems we are
unable to send any requests to the default version of our Flex service
unless we have a "catch all" dispatch rule to the Flex service at the end
of our dispatch.yaml file (which is not possible given our application
architecture).

We have tried changing the dispatch rule to both appspot.com and
appspot-preview.com and nothing works.

The only way we can currently access our Flex service is by linking to the
specific version of the service. This is obviously not going to work if we
use the best practice method of changing versions upon each new deployment,
because all other projects which reference a specific version of our Flex
service would also need to be updated.

Happy to provide more information if needed.

Thanks,
Nick


On 25 February 2017 at 07:54, 'Lorne Kligerman' via Google App Engine <
google-appengine@googlegroups.com> wrote:

> Hi folks,
>
> We recently migrated all traffic from the appspot-preview.com domain back
> to the regular appspot.com as we approach a full release.  The regression
> you noticed was due to an issue that came up as all beta traffic moved into
> the full time stack.  We quickly identified the issue and have a fix coming
> shortly.  We apologize for the strange behaviour, but please be aware that
> flex is still a beta product.  We will do our best to avoid issues like
> this in the future.
>
> Cheers,
> Lorne.
> Product Manager - App Engine
>
> On Friday, February 24, 2017 at 7:44:30 AM UTC-8, Robert Gaal wrote:
>>
>> +1. This is a huge issue for any production app running on App Engine.
>>
>> On Friday, February 24, 2017 at 11:44:07 AM UTC+1, Aron Adler wrote:
>>>
>>> Could we clarify exactly what the issue here is? Everything was working
>>> for a couple of days, why did it go back to redirecting to the appspot
>>> domain?
>>>
>>> Also seeing as everyone seems to be having the same issue it doesn't
>>> really make sense for everyone to create separate support tickets. Can we
>>> get someone from Google to clarify what can be done to fix this?
>>>
>>> On Friday, 24 February 2017 02:58:59 UTC, Anthony Davis wrote:

 Same issue here...

 On Thursday, February 23, 2017 at 1:43:23 PM UTC-6, Joseph Reisinger
 wrote:
>
> Hi Alex-
>
> I'm seeing this issue with a newly deployed app engine instance. Is it
> possible to get my domain whitelisted?
>
> Thanks
>
> —jr
>
> On Wednesday, February 15, 2017 at 8:15:27 AM UTC-8, Alex (Cloud
> Platform Support) wrote:
>>
>> Good news, it seems like this redirection issue has now been
>> resolved. Custom domains listed on Flexible Environment App Engine
>> instances should work as prescribed without redirecting to an
>> appspot.com URL.
>>
>> Regards,
>> 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 https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/google-appengine/8883b160-5b3c-4f53-a896-83778b1f6fd1%40
> googlegroups.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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAOj3zuARtkcDt714O0Z3CwSPrZpaPn%2BBxkF-_HNPRd_LP1VHww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.