Import of the Google Compute Engine VMDK fails with error when downloading the image to the scratch

I'm trying to import a VMDK from our local vcenter environment. Follow the instructions here.

https://cloud.google.com/compute/docs/import/importing-virtual-disks

I uploaded the vmdk to a storage bucket and granted the required access to the cloud build API. When I try to import the VMDK with the command below.

import gcloud beta compute images windows-server-2016-template –os = windows-2016-byol –source-file = gs: //os-images-std001/win-2k16-template.vmdk –network net-01 –subnet net-us-east-4-dev-01

The import process starts and runs for 1 hour and 7 minutes (the same time for repeated attempts). Ultimately, however, this fails with the following error message in the logs.

12.11. 04:40:38 localhost startup script: INFO startup script: ImportFailed: Error downloading image for scratching 7c30-492a-9e5b-a9bb072f10e3-win-2k16-template.vmdk to / daisy-scratch / 6b449b8d-7c30-492a-9e5b -a9bb072f10e3-win-2k16-template.vmdk <-Privacy)

Another error message preceding this is

12.11. 04:40:38 localhost startup script: INFO startup script: import: error while running gsutil cp:
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 08: 32.478172 retry_util.py) request is repeated, attempt 1 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 09: 34.126797 retry_util.py) request is repeated, try 2 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 10: 37.819195 retry_util.py) request is repeated, attempt 3 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 11: 44.160296 retry_util.py) request is repeated, try 4 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 13: 00.670810 retry_util.py) request is repeated, try 5 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 14: 32.766382 retry_util.py) request is repeated, attempt 6 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 16: 04.862654 retry_util.py) request is repeated, attempt 7 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 17: 36.958438 retry_util.py) request is repeated, attempt 8 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 19: 09.054482 retry_util.py) request is repeated, attempt 9 …
12.11. 04:40:38 localhost launcher: INFO launcher: import: INFO 1112 04: 20: 41.097393 retry_util.py) request is retried, attempt 10 …
12.11. 04:40:38 localhost launcher: INFO launcher: import: INFO 1112 04: 22: 13.200282 retry_util.py) request is retried, attempt 11 …
12.11. 04:40:38 localhost launcher: INFO launcher: import: INFO 1112 04: 23: 45.269157 retry_util.py) request is retried, attempt 12 …
12.11. 04:40:38 localhost launcher: INFO launcher: import: INFO 1112 04: 25: 17.365501 retry_util.py) request is retried, attempt 13 …
12.11. 04:40:38 localhost startup script: INFO startup script: import: INFO 1112 04: 26: 49.461737 retry_util.py) request is retried, attempt 14 …
12.11. 04:40:38 localhost launcher: INFO launcher: import: INFO 1112 04: 28: 21.558666 retry_util.py) request is retried, attempt # 15 …
12.11. 04:40:38 localhost launcher: INFO launcher: import: INFO 1112 04: 29: 53.654660 retry_util.py) request is retried, attempt 16 …
12.11. 04:40:38 localhost startup script: INFO startup script: import: INFO 1112 04: 31: 25.757720 retry_util.py) request is retried, attempt 17 …
12.11. 04:40:38 localhost launcher: INFO launcher: import: INFO 1112 04: 32: 57.853896 retry_util.py) request is retried, attempt 18 …
12.11. 04:40:38 localhost startup script: INFO startup script: import: INFO 1112 04: 34: 29.950548 retry_util.py) request is retried, attempt 19 …
12. November 04:40:38 localhost-start script: INFO-start script: import: INFO 1112 04: 36: 02.046414 retry_util.py) request is repeated, attempt 20 …
12.11. 04:40:38 localhost startup script: INFO startup script: import: INFO 1112 04: 37: 34.146444 retry_util.py) request is retried, attempt 21 …
12. Nov 04:40:38 localhost startup script: INFO startup script: import: INFO 1112 04: 39: 06.242678 retry_util.py) request is retried, attempt # 22 …

Unfortunately I could not find much information about what these error messages mean or which solutions are possible.

Update an earlier version of the plugin if the new plugin was rebuilt from scratch

I ask you all for help and suggestions. I've created a plugin from scratch and now instructed to update the previous version of this plugin. But the new version I've created is fundamentally different from the previous version. The name of the files, folders, project structure, and database (I've only created a few tables that use nothing of the old one), even the text domain, has changed. I searched the Internet for updates and found that WordPress managed an SVN repository and a tag folder for versions. But I'm not sure if everything will change. What should I watch out for when updating an earlier version of a plugin? I'm looking for friendly advice or solution here, which would be best for me in this situation so that users can see a new version coming in and a single click update their previous version. Thanks.

dnd 5e – Are there any rules for building settlements from scratch?

I play a game in a destroyed city (in a destroyed world). Almost every building was flattened to the foundations or reduced to a few standing stones.

Are there published rules? or homebrew rules that you can substantiate with experience and that determine how long it can take for the city to function again as a working settlement. including reconstruction, establishment of farms, etc.?

I am aware that there are costs associated with buildings in the DMG, but I am not looking for players who run or finance the city. I just want to make sure that it grows organically when the people put their efforts into reconstruction.

Bonus points, if someone has a set of rules that include finding enough food for the city dwellers, setbacks and other meaningful flourishes.

I can scratch yellow pages to get email addresses and contacts for $ 5

I can scratch yellow pages to get email addresses and contacts

Welcome to my appearance, I am a professional data entry expert and web scraper with my 5 years
Experience. I can easily scratch yellow pages. I will provide high quality of
Job. My goal is customer satisfaction. If you do not like my work 1oo% money
I will give the best. I will provide:

  • Scrape Yellow Pages in the USA.
  • Scrape Yellow Page Australia.
  • Scratching Yellow Pages Canada.
  • Scrape Yellow Pages Dubai.

I will scratch 1000 emails, addresses and contacts from the yellow pages
NotePlease contact me before placing an order
Thanks!!!

,

machine learning – neural network from scratch in Python

After seeing Week 5 of the machine learning course on Coursera by Andrew Ng, I decided to use Python to write a simple neural network from scratch. Here is my code:

import numpy as np
import csv
global e
global epsilon
global a
global lam
global itr
e = 2.718281828
epsilon = 0.12
a = 1
lam = 1
itr = 1000

# The sigmoid function(and its derivative)
def sigmoid(x, derivative=False):
    if derivative:
        return sigmoid(x) * (1 - sigmoid(x))
    return 1 / (1 + e**-x)

# The cost function
def J(X, theta1, theta2, y, lam, m):
    j = 0 
    for i in range(m):
        # The current case
        currX = X(i).reshape(X(i).shape(0), 1)
        z2 = theta1 @ currX
        a2 = sigmoid(z2)
        a2 = np.append((1), a2).reshape(a2.shape(0) + 1, 1)
        z3 = theta2 @ a2
        a3 = sigmoid(z3)
        j += sum(-y(i) * np.log(a3) - (1 - y(i)) * np.log(1 - a3)) / m + (lam / (2 * m)) * (sum(sum(theta1(:, 1:) ** 2)) + sum(sum(theta2(:, 1:) ** 2)))
    return j

# The gradients
def gradient(X, theta1, theta2, y, lam, m):
    theta1Grad = np.zeros(theta1.shape)
    theta2Grad = np.zeros(theta2.shape)
    Delta1 = np.zeros(theta1.shape)
    Delta2 = np.zeros(theta2.shape)
    for i in range(m):
        # The current case
        currX = X(i).reshape(X(i).shape(0), 1)
        z2 = theta1 @ currX
        a2 = sigmoid(z2)
        a2 = np.append((1), a2).reshape(a2.shape(0) + 1, 1)
        z3 = theta2 @ a2
        a3 = sigmoid(z3)
        delta3 = a3 - y(i)
        delta2 = theta2(:, 1:).T @ delta3 * sigmoid(z2, derivative=True)
        Delta1 += delta2 @ currX.reshape(1, -1)
        Delta2 += delta3 * a2.reshape(1, -1)
    theta1Grad = Delta1 / m
    theta2Grad = Delta2 / m
    theta1Grad(:, 1:) += (lam / m) * theta1(:, 1:)
    theta2Grad(:, 1:) += (lam / m) * theta2(:, 1:)
    thetaGrad = np.append(theta1Grad.reshape(theta1Grad.shape(0) * theta1Grad.shape(1), 1), theta2Grad.reshape(theta2Grad.shape(0) * theta2Grad.shape(1), 1))
    thetaGrad = thetaGrad.reshape(thetaGrad.shape(0), 1)
    return thetaGrad

# Gradient descent
def gradientDescent(X, theta1, theta2, y, lam, m):
    for i in range(itr):
        grad = gradient(X, theta1, theta2, y, lam, m)
        theta1Grad = grad(0:theta1.shape(0) * theta1.shape(1)).reshape(theta1.shape)
        theta2Grad = grad(theta1.shape(0) * theta1.shape(1):).reshape(theta2.shape)
        theta1 = theta1 - a * theta1Grad
        theta2 = theta2 - a * theta2Grad
    return (theta1, theta2)

with open('data.csv', 'r') as f:
    data = csv.reader(f)
    d = ()
    c = 0
    # Read the data
    for row in data:
        # Don't add the first line(it's our features' labels)
        if c == 0:
            c += 1
            continue
        curr_row = ()
        k = 0
        for j in row:
            if j != '':
                if k == 1:
                    # Add a 1 between the y and x values(for the bias)
                    curr_row.append(1)
                curr_row.append(float(j))   
                k += 1
        d.append(curr_row)
    d = np.array(d)
    x = d(:, 1:)
    y = d(:, 0)
    # Split the data into training cases(80%) and test cases(20%)
    x_train = x(0:(d.shape(0)//5) * 4, :)
    y_train = y(0:(d.shape(0)//5) * 4)
    x_test = x((d.shape(0)//5) * 4 : d.shape(0), :)
    y_test = y((d.shape(0)//5) * 4 : d.shape(0))
    # Initialize theta(s)
    theta1 = np.random.rand(5, x(0).shape(0)) * 2 * epsilon - epsilon
    theta2 = np.random.rand(1, 6) * 2 * epsilon - epsilon
    print(J(x_train, theta1, theta2, y_train, lam, x_train.shape(0)))
    theta1, theta2 = gradientDescent(x_train, theta1, theta2, y_train, lam, x_train.shape(0))

Please note that my data has only 2 possible outputs, so no one-to-all classification is required.

Thank you in advance!

Device damage – Does a large scratch in an ND filter affect image quality?

I've found that a used 10-stage ND filter is sold in exactly the size you want at a price of 15% of a new filter, except on delivery it's 21% of the price of a new filter on delivery.

The catch? It has a scratch that starts roughly in the middle of the filter and ends near the edge. The length of the scratch is 1/3 of the filter diameter. The scratch thickness is very thin, so the area it covers is infinitesimal (so I do not think that would affect the 10-level rating of the ND filter at all). It is still visible immediately, if you see the filter, so a fair scratch.

Does such a scratch affect the picture quality in any way? I understand that you can scratch the front lens element badly and the image quality is acceptable in most cases. Does that also apply to ND filters?

I will not use the filter if the sun is included in the picture. In addition, I will use a lens hood with the filter. But I may use the filter at 1:22, and with such a small aperture, scratches may be visible that are invisible at about 1: 5.

At an affordable price, the inner voice in my head says "GET IT !!!" But is there anything I do not understand about the condition of the filter?

rest – How to create a mailing app with web services from scratch

I'm not sure if my question is legitimate for this stack, but it's not legitimate for a stack overflow.
I want to create my own "mailing app / server" with web services.

What I mean by that is:
I want users to have their own inbox and send messages to other people. Each user should be identified by a username and have their own logon password

I want a web service (SOAP or REST) ​​to do most of the work, but I also want a separate service that handles the authentication.

The thing is, I'm building this kind of app for the first time and I have no idea how to design it, what the server should handle, and so on, what languages ​​to use, etc. … SOAP is better for messaging Part and REST for the AUTH or vice versa?

I'm just looking for insights on how to tackle the problem

thank you in advance!

Insert a bug (or spacer) if IMPORTXML can not scratch data in Google Sheets

I use IMPORTXML to create what is essentially a vehicle inventory feed file.

My problem occurs when a price is not included on our main website. What seems to happen is when the price is not included IMPORTXML skip this, without mistakes or anything, and including the next prize, which he finds in his place on the sheet.

This is a problem as we try to keep these trucks in line with their VIN, MSRP, price and so on.

https://docs.google.com/spreadsheets/d/1KceS3krlbpU2FjQly-tK8N5qiwshIq3rQFQ36WRNV5U/edit?usp=sharing

To give a concrete example in my paper: 1FTMF1E5XKKE62311 No price is currently listed on our website. Instead of inserting an empty cell or an error, the IMPORTXML adds the price for the device listed below. This leads to an accumulation of empty prices at the end of the sheet, although the prices for these vehicles are indicated on our website. Basically, this throws off the entire bow after the first skipped price.

So we currently use the Internet price:

=IFERROR({IMPORTXML(A4,"//div(@class='col-xs-12 visible-xs margin-top-1x')//span(@style='font-weight:bold;font-size:1.2em;')(@class='pull-right primaryPrice')");IMPORTXML(A5,"//div(@class='col-xs-12 visible-xs margin-top-1x')//span(@style='font-weight:bold;font-size:1.2em;')(@class='pull-right primaryPrice')");IMPORTXML(A6,"//div(@class='col-xs-12 visible-xs margin-top-1x')//span(@style='font-weight:bold;font-size:1.2em;')(@class='pull-right primaryPrice')");IMPORTXML(A7,"//div(@class='col-xs-12 visible-xs margin-top-1x')//span(@style='font-weight:bold;font-size:1.2em;')(@class='pull-right primaryPrice')");IMPORTXML(A8,"//div(@class='col-xs-12 visible-xs margin-top-1x')//span(@style='font-weight:bold;font-size:1.2em;')(@class='pull-right primaryPrice')");IMPORTXML(A9,"//div(@class='col-xs-12 visible-xs margin-top-1x')//span(@style='font-weight:bold;font-size:1.2em;')(@class='pull-right primaryPrice')");IMPORTXML(A10,"//div(@class='col-xs-12 visible-xs margin-top-1x')//span(@style='font-weight:bold;font-size:1.2em;')(@class='pull-right primaryPrice')");IMPORTXML(A11,"//div(@class='col-xs-12 visible-xs margin-top-1x')//span(@style='font-weight:bold;font-size:1.2em;')(@class='pull-right primaryPrice')")},"")

We had hoped the error handler would work, but unfortunately not. Does anyone have any thoughts on how we could not break the import order if a price is not listed?

Any advice would be very grateful !!

Create an Oracle database on remote server from scratch

Greetings to all.

I make an independent program of the database, using System.Data.Common, DBProviderfactory, etc; I need to create a database on an Oracle server from scratch and then create tables, stored procedures, and functions. The program runs from a location other than the Oracle server. I have already done this with a SQL Server and now I have to do it with Oracle.

I share the code for SQL Server:

dpf = DbProviderFactories.GetFactory(dp); //dp = "System.Data.SqlClient"

conexion = dpf.CreateConnection();
using (conexion)
{
     //Cadena de conexión a la master para crear la base de datos
     this.conexion.ConnectionString =
          "server=" + this.txt_SD_Servidor.Text +
          ";database=master" +
          ";user id=" + this.txt_SD_UserId.Text +
          ";password=" + this.txt_SD_Pwd.Text;
     this.conexion.Open();

     dbcmd = conexion.CreateCommand();
     dbcmd.CommandText = "CREATE DATABASE " + this.txt_SD_BD.Text;
     dbcmd.ExecuteNonQuery();

     conexion.Close();

     //Cadena de conexión a la nueva base de datos para crear las tablas, procedimientos y funciones.
     this.conexion.ConnectionString = this.txt_CnStr.Text;
     this.conexion.Open();

     dbcmd = conexion.CreateCommand();

     dbcmd.CommandText = "CREATE TABLE ..."
     dbcmd.ExecuteNonQuery();

     dbcmd.CommandText = "CREATE PROCEDURE ..."
     dbcmd.ExecuteNonQuery();

     dbcmd.CommandText = "CREATE FUNCTION ..."
     dbcmd.ExecuteNonQuery();
}

I have no experience with Oracle, I only used it to connect to existing databases and manipulate records.

I saw an example in an earlier post, but this article uses a local server, that is, the program resides on the same machine as Oracle.

This is the link to the post office:

Create Oracle database and schema programmatically ADO.NET

As you can see in the previous post, the location of the oradata route is local:

string oracleDataPath = "C:\PATH_TO_ORADATA\";

I have to do the same but direct it to a remote server.

Thank you in advance for the help you can give me.