Bitcoin Core – How do I get the scriptPubKey type with zeroMQ?

I use zeroMQ to get the transactions from Bitcoin Core.
The outputs look like this:

{ value: 200000,
  script: 
}

The same issue in Bitcoin Core looks like this:

{
      "value": 0.00200000,
      "n": 0,
      "scriptPubKey": {
        "asm": "0 e3307e8e0b630e53c2f1f817067bce01c43892833e022dadf5e95f31be89b122",
        "hex": "0020e3307e8e0b630e53c2f1f817067bce01c43892833e022dadf5e95f31be89b122",
        "reqSigs": 1,
        "type": "witness_v0_scripthash",
        "addresses": [
          "tb1quvc8arstvv898sh3lqtsv77wq8zr3y5r8cpzmt04a90nr05fky3qemqr3j"
        ]
      }
    }

Question: How do I get the scriptPubKey type from the script buffer?

Color or group the same type of data in a Google Sheet chart

I have the following data:

| Test Combination | C-Score | Memory | Reasoning | Verbal |
|------------------|---------|--------|-----------|--------|
| ABCD             | 13.70   | 10.51  | 13.04     | 15.59  |
| ABCD             | 16.73   | 9.54   | 16.20     | 19.48  |
| ABCD             | 17.02   | 9.75   | 17.31     | 18.59  |
| ABCD             | 14.82   | 8.04   | 16.38     | 17.58  |
| AEFI             | 27.84   | 18.99  | 22.56     | 22.80  |
| AEFI             | 24.68   | 15.94  | 19.81     | 23.14  |
| EFGH             | 20.87   | 12.92  | 18.56     | 20.71  |
| EFGH             | 19.64   | 9.57   | 19.27     | 22.25  |
| EFGH             | 22.95   | 15.44  | 20.30     | 19.85  |
| EFGH             | 21.73   | 14.63  | 18.85     | 19.94  |
| IJKL             | 16.28   | 12.49  | 17.76     | 13.47  |

From this I derived the following diagram:

Google Sheet Graph

What I would like to do now is to display the tests of the same name (eg "ABCD" type tests or EFGH) in a kind of "grouping" in the graphics, otherwise it is difficult to find out in which group the points are located Diagram belongs to.

I do not want to aggregate any results, nor do I want the average. I just want to show that this part of the graph has this test in common (possibly because the background of the graph has the same hue).

Is that possible in any way?

Objects – how to reuse existing images in field type "image"

I have custom ContentType with a field of type Image.
If I am currently editing a node, I can only upload new images from the local to the server.
I would like to have the option to select images that already exist on the server.

I think the way to go is to use the EntityBrowser and / or FileBrowser modules
but I do not know how to do it.
I can create the EntityBrowser instance, but how can I tell the ContentType field Image to use it?

I am on Drupal 8.

Your help is appreciated.
– Joseph

java – The method "nextLine ()" is undefined for the String type

I'm doing a program with several different methods, one of which is:

private static void IsWordPattern(String input) {

    String pattern = "";
    System.out.println("Enter a pattern of letters: ");
    pattern = input.nextLine();

}

I get the error message "The method" nextLine () "is undefined for the type String"

However, the scanner is clearly defined at the top of my class,

public class StringValidation {

static Scanner input= new Scanner(System.in);

I can use the scanner in my main function without error:

public static void main(String() args) {

    Scanner input= new Scanner(System.in);

    System.out.println("Enter a string: ");
    String userInput = input.nextLine();

As well as I can use it in another method, which is also private and static:

private static int Menu (int choice) {

    Scanner input= new Scanner(System.in);

    while(choice < 1 || choice > 9) {

        System.out.println("Select an option from the menu below: "
                + "n1. Letters only"
                + "n2. Numbers only"
                + "n3. Binary data"
                + "n4. Hexadecimal data"
                + "n5. Binary data which represents an even number"
                + "n6. A binary string which contains one of 2 patterns"
                + "n7. Validate a binary stirng which contains both of the patterns"
                + "n8. Determine if a word is a pattern"
                + "n9. Exit");


        if(choice < 1 || choice > 9) {
            System.out.println("Invalid input -- try againn");
        }

    }
    return choice;
}

I've tried several methods to fix this bug, including modifying the menu function definition in Private Static Void Menu, and it did not work. Why am I getting this error and what can I do to fix it? Any feedback is welcome.

Node – How to automatically add a PHP code field at the end of a content type when new content is created

I'd like to allow users to add content, but every time they create a new content page, I'll end up automatically adding a field. for example:

When a user presses Add Content, the following is displayed:
Field 1
Field 2
Field 3

when the user fills and saves it. It indicates something like this:
Field 1
Field 2
Field 3
PHP Field

sharepoint online – Move the content type from one site collection to another site collection

I have a custom Employee content type that inherits from the Document Set content type. There are also metadata attached and it is in a document library.

I would like to create a script to move the Employee content type from document library A to site collection A to document library B to site collection B.

I want to keep all metadata and all folders and files under the document set up to date.

Is this possible in SharePoint Online?

SSMS Conversion Type for Forced Data

I'm currently working on a project that requires data to be downloaded and saved to SQL Server 2017. After downloading the data, I used the SQL Server 2017 import and export program to export the data to Excel XLXS format. In the export wizard, I specified an INT data type to be exported as a long data type. After exporting the data, I found that the value is stored as a string rather than an integer. If the data should be saved as INT after the export, which data type should be selected during export?

postgresql – Force type correctness for foreign keys in a generic typed table

We currently have a single table representing a number of devices (of different types). Since the fields are quite similar, they are stored in the same table.

select * from equipment;

id | name | type

----+--------+----------

1 | item 1 | CONVEYOR

2 | item 2 | PICKER

3 | item 3 | CONVEYOR

I would like to create another table representing combinations of exactly 1 x PICKER and 1 x CONVEYOR. Something like:

CREATE TABLE "picker_conveyor_combo" (
  "id" serial,
  "picker_id" integer not null,
  "conveyor_id" integer not null
);

picker_id and conveyor_id would be foreign key references in the main device table.

I would like to enforce that picker_id always refers to a line in which the type is "PICKER" and similar with conveyor belt.

I know triggers are often used for this, but triggers do not usually validate historical data. The fact that the trigger exists does not guarantee that the data is valid.

I'm thinking of an alternative approach using composite foreign keys:

create table "picker_conveyor_combo" (
  id serial,
  "picker_id" integer not null,
  "picker_type" text not null,
  "conveyor_id" integer not null,
  "conveyor_type" integer not null
);

alter table "picker_conveyor_combo"
  add constraint "check_types"
  check ("picker_type" = 'PICKER' and "conveyor_type" = 'CONVEYOR');
alter table "picker_conveyor_combo"
  add constraint "picker_foreign"
  foreign key ("picker_id", "picker_type")
  references "equipment" ("id", "type");
alter table "picker_conveyor_combo"
  add constraint "conveyor_foreign"
  foreign key ("conveyor_id", "conveyor_type")
  references "equipment" ("id", "type");

There are some additional columns in this method. However, all data is validated on the basis of constraints – this increases security.

Is this a valid approach or is there something fundamentally wrong with the schema design?

Puppet: Invoke define type in class from hiera

I want to create an install_package module that can be called multiple times, with packages defined in hiera. I know class is Skelton (can be called once), and define type is designed for my purpose.

I developed the following:
hiera.yaml

---
version: 5
hierarchy:
  - name: "Common hierarchy level"
    path: "common.yaml"

./data/common.yaml

---
install_package::packages:
  - vim
  - logrotate

classes:
  - install_package

./module/install_package/manifest/init.pp

class install_package(
  packages=(),
) {

  define def_package()
    notify{"package to install is $name":}
  }

  def_package{ ($packages): }
}

Puppet returns "Error evaluating a resource statement, unknown resource type: & # 39; def_package & # 39;".

My question is how can I define packages that should be installed in variable (array) in /data/common.yaml, and then call install_package module several times with define type.