cloud

Unable to connect to postgres in cloud sql from google app engine nodes

丶灬走出姿态 提交于 2021-01-29 12:31:58
问题 I am working on a nodejs and postgres application. Both are deployed in google. I have my postgres in google cloud sql and nodejs is deployed in google app engine. I am trying to connect to postgres from nodejs, but it throws it cannot connect to cloud postgres. I have updated app.yml file and i am using regular pg client and not knex. Can anyone help me. My config as below const client = new Client({ user: 'postgres', host:'xx.xx.xx.xx', socketpath: '/cloudsql/proj-name:us-central1:app-name'

Sonos control api: polling rate & subscription

99封情书 提交于 2021-01-29 05:30:44
问题 We are controlling the sonos via a small IOT device. This device will be placed at the homes of our customers. In our home automation system we need to know the playbackstate + volume of the players/groups. At which polling rate can we ask these parameters ? We cannot use a cloud server to handle the subscription events. I tried to put a https webservice in the IOT device with a self signed certificate but this doesn't work. After I have posted the subscription I get a request in my

Why is it legit to take the next two commands to fill gaps between paxos events?

落花浮王杯 提交于 2021-01-27 21:25:22
问题 There is a point in Paxos algorithm (http://research.microsoft.com/en-us/um/people/lamport/pubs/paxos-simple.pdf) that I do not understand. It's about how to deal with the gaps, the paper describe two ways as below: The leader, as well as any other server that learns all the commands the leader knows, can now execute commands 1–135. However, it can’t execute commands 138–140, which it also knows, because commands 136 and 137 have yet to be chosen. T he leader could take the next two commands

Connecting CAD model (Solidworks, AutoCAD or CATIA) with realtime measurements from Raspbery Pi or Arduino Sensor

依然范特西╮ 提交于 2021-01-27 11:44:24
问题 To present my question I will simplify my example. I will connect a sprocket on a step motor and measure acceleration with an accelerometer. The data will be captured by using either an Arduino or Raspberry pi sensor setup. The measurements will then be stored in a cloud-based environment or somehow similar and be send to the CAD model (that's the idea). Basically what I would like to achieve is to: connect the movement of the step motor with the SW/CATIA/AutoCAD model (if the physical

Connecting CAD model (Solidworks, AutoCAD or CATIA) with realtime measurements from Raspbery Pi or Arduino Sensor

荒凉一梦 提交于 2021-01-27 11:42:59
问题 To present my question I will simplify my example. I will connect a sprocket on a step motor and measure acceleration with an accelerometer. The data will be captured by using either an Arduino or Raspberry pi sensor setup. The measurements will then be stored in a cloud-based environment or somehow similar and be send to the CAD model (that's the idea). Basically what I would like to achieve is to: connect the movement of the step motor with the SW/CATIA/AutoCAD model (if the physical

Connecting CAD model (Solidworks, AutoCAD or CATIA) with realtime measurements from Raspbery Pi or Arduino Sensor

╄→尐↘猪︶ㄣ 提交于 2021-01-27 11:42:45
问题 To present my question I will simplify my example. I will connect a sprocket on a step motor and measure acceleration with an accelerometer. The data will be captured by using either an Arduino or Raspberry pi sensor setup. The measurements will then be stored in a cloud-based environment or somehow similar and be send to the CAD model (that's the idea). Basically what I would like to achieve is to: connect the movement of the step motor with the SW/CATIA/AutoCAD model (if the physical

How does GRPC work in Cloud Foundry? GoRouter doesn't support HTTP2

浪尽此生 提交于 2021-01-25 07:14:19
问题 I need to use GRPC for inter communication between 2 micro services. But by default, cloud foundry use Go router that doesn't support Http2. And by default, many of cloud foundry installation doesn't expose TCP port itself. Is there any work around or is there any interface that will support this scenario? I have tried using EUREKA with spring boot. It still uses HTTP1.1. 回答1: You are correct, Gorouter doesn't support HTTP/2. To make HTTP/2 and/or gRPC work on CF, you have two options. If you

How secure is my application source code on heroku?

我只是一个虾纸丫 提交于 2021-01-21 06:34:15
问题 I want to migrate my webapp from cloudfoundry to heroku. But there is still one thing i'm confused about. Everytime you want to deploy your application to heroku, you've to push your source code to their git repository. How secure is this repository? What if i don't want to give my source code into someone others hands? What's your opinion about that? 回答1: The Problem You aren't understanding how interpreted languages or hosting providers work. If you're using an interpreted language like

Generating Cloud Storage Signed URL from Google Cloud Function without using explicit key file

試著忘記壹切 提交于 2021-01-07 01:41:38
问题 I'd like to create a pre-signed upload URL to a storage bucket, and would like to avoid an explicit reference to a json key. Currently, I'm attempting to do this with the Default App Engine Service Account I'm attempting to follow along with this answer but am getting this error: AttributeError: you need a private key to sign credentials.the credentials you are currently using <class 'google.auth.compute_engine.credentials.Credentials'> just contains a token. see https://googleapis.dev/python

Generating Cloud Storage Signed URL from Google Cloud Function without using explicit key file

北战南征 提交于 2021-01-07 01:37:49
问题 I'd like to create a pre-signed upload URL to a storage bucket, and would like to avoid an explicit reference to a json key. Currently, I'm attempting to do this with the Default App Engine Service Account I'm attempting to follow along with this answer but am getting this error: AttributeError: you need a private key to sign credentials.the credentials you are currently using <class 'google.auth.compute_engine.credentials.Credentials'> just contains a token. see https://googleapis.dev/python