"Timeout" error when adding ppa to install gcc 7.5

I want to install gcc 7.5 and found the following steps on several websites:

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y

But when I run:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

Errors are reported:

gpg: keyring /tmp/tmpir2cfkik/secring.gpg' created
gpg: keyring /tmp/tmpir2cfkik/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
Error: retrieving gpg key timed out.
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

I found someone had the same problem and suggested that it would be useful to run the same command multiple times, but it doesn't work for me.
Does anyone know how to fix this problem?

sharepoint online – New item does not open in the side panel after adding the task content type

Updated answer for more information and tests.

When you added that task Content type in the list, the field Similar articles has been added to the list.

This field cannot be deleted from the list after it has been added.

❯ (Get-PnPField -List tasktest -Identity "Related Items").CanBeDeleted
False

In addition, this field type (also known as related items) is not listed in
Supported columns in a modern view. Unfortunately, there is no effect if the field is hidden as suggested.

There seems to be no way to update the field so that it can be deleted. When you open a service request from Microsoft, it may be able to help you.

Rebuilding the list and migrating existing items seems to be the most practical solution. You can keep changed information / author information if you do this using a script or a migration tool such as ShareGate.

rest api – Magento Web API that causes server internal errors when adding products

I tried to publish a product on my Magento website using the REST web API. I use curls. I got this error:

{"message": "Internal error. Details are available in the Magento log file. Report ID: webapi-5e884238b420f"}

And when I looked for the log file, I found:

/var/www/html/var/log/exception.log:(2020-04-04 08:15:52) main.CRITICAL: Report ID: webapi-5e884238b420f; Message: Property "ShowDefaultNotificationMessage" does not have accessor method "setShowDefaultNotificationMessage" in class "MagentoCatalogInventoryApiDataStockItemInterface". {"exception":"(object) (Exception(code: 0): Report ID: webapi-5e884238b420f; Message: Property "ShowDefaultNotificationMessage" does not have accessor method "setShowDefaultNotificationMessage" in class "Magento\CatalogInventory\Api\Data\StockItemInterface". at /var/www/html/vendor/magento/framework/Webapi/ErrorProcessor.php:208, LogicException(code: 0): Property "ShowDefaultNotificationMessage" does not have accessor method "setShowDefaultNotificationMessage" in class "Magento\CatalogInventory\Api\Data\StockItemInterface". at /var/www/html/vendor/magento/framework/Reflection/NameFinder.php:100)"} ()

I tried to find out what this error means. I couldn't find much.

This is my curl request:

curl -X POST "http://167.179.118.154/index.php/rest/default/V1/products"  -H "Content-Type:application/json" -H "Authorization: Bearer " -d '{"product":{"id":0,"sku":"string","name":"string","attribute_set_id":0,"price":0,"status":0,"visibility":0,"type_id":"string","created_at":"string","updated_at":"string","weight":0,"extension_attributes":{"website_ids":(0),"category_links":({"position":0,"category_id":"string","extension_attributes":{}}),"stock_item":{"item_id":0,"product_id":0,"stock_id":0,"qty":0,"is_in_stock":true,"is_qty_decimal":true,"show_default_notification_message":true,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":0,"min_sale_qty":0,"use_config_max_sale_qty":true,"max_sale_qty":0,"use_config_backorders":true,"backorders":0,"use_config_notify_stock_qty":true,"notify_stock_qty":0,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":true,"use_config_manage_stock":true,"manage_stock":true,"low_stock_date":"string","is_decimal_divided":true,"stock_status_changed_auto":0,"extension_attributes":{}},"bundle_product_options":({"option_id":0,"title":"string","required":true,"type":"string","position":0,"sku":"string","product_links":({"id":"string","sku":"string","option_id":0,"qty":0,"position":0,"is_default":true,"price":0,"price_type":0,"can_change_quantity":0,"extension_attributes":{}}),"extension_attributes":{}}),"configurable_product_options":({"id":0,"attribute_id":"string","label":"string","position":0,"is_use_default":true,"values":({"value_index":0,"extension_attributes":{}}),"extension_attributes":{},"product_id":0}),"configurable_product_links":(0),"downloadable_product_links":({"id":0,"title":"string","sort_order":0,"is_shareable":0,"price":0,"number_of_downloads":0,"link_type":"string","link_file":"string","link_file_content":{"file_data":"string","name":"string","extension_attributes":{}},"link_url":"string","sample_type":"string","sample_file":"string","sample_file_content":{"file_data":"string","name":"string","extension_attributes":{}},"sample_url":"string","extension_attributes":{}}),"downloadable_product_samples":({"id":0,"title":"string","sort_order":0,"sample_type":"string","sample_file":"string","sample_file_content":{"file_data":"string","name":"string","extension_attributes":{}},"sample_url":"string","extension_attributes":{}}),"giftcard_amounts":({"attribute_id":0,"website_id":0,"value":0,"website_value":0,"extension_attributes":{}})},"product_links":({"sku":"string","link_type":"string","linked_product_sku":"string","linked_product_type":"string","position":0,"extension_attributes":{"qty":0}}),"options":({"product_sku":"string","option_id":0,"title":"string","type":"string","sort_order":0,"is_require":true,"price":0,"price_type":"string","sku":"string","file_extension":"string","max_characters":0,"image_size_x":0,"image_size_y":0,"values":({"title":"string","sort_order":0,"price":0,"price_type":"string","sku":"string","option_type_id":0}),"extension_attributes":{"vertex_flex_field":"string"}}),"media_gallery_entries":({"id":0,"media_type":"string","label":"string","position":0,"disabled":true,"types":("string"),"file":"string","content":{"base64_encoded_data":"string","type":"string","name":"string"},"extension_attributes":{"video_content":{"media_type":"string","video_provider":"string","video_url":"string","video_title":"string","video_description":"string","video_metadata":"string"}}}),"tier_prices":({"customer_group_id":0,"qty":0,"value":0,"extension_attributes":{"percentage_value":0,"website_id":0}}),"custom_attributes":({"attribute_code":"string","value":"string"})},"saveOptions":true}'

Is it because my JSON contains dummy data (which I just copied from the Magento Web API documentation)? But I tried changing some of the following values ​​and still got the same answer:

{
  "product": {
    "id": 10,
    "sku": "phone8",
    "name": "iPhone8",
    "attribute_set_id": 0,
    "price": 10,
    "status": 0,
    "visibility": 0,
    "type_id": "string",
    "created_at": "string",
    "updated_at": "string",
    "weight": 0,
    "extension_attributes": {
      "website_ids": (
        0
      ),
      "category_links": (
        {
          "position": 0,
          "category_id": "string",
          "extension_attributes": {}
        }
      ),
      "stock_item": {
        "item_id": 0,
        "product_id": 0,
        "stock_id": 0,
        "qty": 0,
        "is_in_stock": true,
        "is_qty_decimal": true,
        "show_default_notification_message": true,
        "use_config_min_qty": true,
        "min_qty": 0,
        "use_config_min_sale_qty": 0,
        "min_sale_qty": 0,
        "use_config_max_sale_qty": true,
        "max_sale_qty": 0,
        "use_config_backorders": true,
        "backorders": 0,
        "use_config_notify_stock_qty": true,
        "notify_stock_qty": 0,
        "use_config_qty_increments": true,
        "qty_increments": 0,
        "use_config_enable_qty_inc": true,
        "enable_qty_increments": true,
        "use_config_manage_stock": true,
        "manage_stock": true,
        "low_stock_date": "string",
        "is_decimal_divided": true,
        "stock_status_changed_auto": 0,
        "extension_attributes": {}
      },
      "bundle_product_options": (
        {
          "option_id": 0,
          "title": "string",
          "required": true,
          "type": "string",
          "position": 0,
          "sku": "string",
          "product_links": (
            {
              "id": "string",
              "sku": "string",
              "option_id": 0,
              "qty": 0,
              "position": 0,
              "is_default": true,
              "price": 0,
              "price_type": 0,
              "can_change_quantity": 0,
              "extension_attributes": {}
            }
          ),
          "extension_attributes": {}
        }
      ),
      "configurable_product_options": (
        {
          "id": 0,
          "attribute_id": "string",
          "label": "string",
          "position": 0,
          "is_use_default": true,
          "values": (
            {
              "value_index": 0,
              "extension_attributes": {}
            }
          ),
          "extension_attributes": {},
          "product_id": 0
        }
      ),
      "configurable_product_links": (
        0
      ),
      "downloadable_product_links": (
        {
          "id": 0,
          "title": "string",
          "sort_order": 0,
          "is_shareable": 0,
          "price": 0,
          "number_of_downloads": 0,
          "link_type": "string",
          "link_file": "string",
          "link_file_content": {
            "file_data": "string",
            "name": "string",
            "extension_attributes": {}
          },
          "link_url": "string",
          "sample_type": "string",
          "sample_file": "string",
          "sample_file_content": {
            "file_data": "string",
            "name": "string",
            "extension_attributes": {}
          },
          "sample_url": "string",
          "extension_attributes": {}
        }
      ),
      "downloadable_product_samples": (
        {
          "id": 0,
          "title": "string",
          "sort_order": 0,
          "sample_type": "string",
          "sample_file": "string",
          "sample_file_content": {
            "file_data": "string",
            "name": "string",
            "extension_attributes": {}
          },
          "sample_url": "string",
          "extension_attributes": {}
        }
      ),
      "giftcard_amounts": (
        {
          "attribute_id": 0,
          "website_id": 0,
          "value": 0,
          "website_value": 0,
          "extension_attributes": {}
        }
      )
    },
    "product_links": (
      {
        "sku": "string",
        "link_type": "string",
        "linked_product_sku": "string",
        "linked_product_type": "string",
        "position": 0,
        "extension_attributes": {
          "qty": 0
        }
      }
    ),
    "options": (
      {
        "product_sku": "string",
        "option_id": 0,
        "title": "string",
        "type": "string",
        "sort_order": 0,
        "is_require": true,
        "price": 0,
        "price_type": "string",
        "sku": "string",
        "file_extension": "string",
        "max_characters": 0,
        "image_size_x": 0,
        "image_size_y": 0,
        "values": (
          {
            "title": "string",
            "sort_order": 0,
            "price": 0,
            "price_type": "string",
            "sku": "string",
            "option_type_id": 0
          }
        ),
        "extension_attributes": {
          "vertex_flex_field": "string"
        }
      }
    ),
    "media_gallery_entries": (
      {
        "id": 0,
        "media_type": "string",
        "label": "string",
        "position": 0,
        "disabled": true,
        "types": (
          "string"
        ),
        "file": "string",
        "content": {
          "base64_encoded_data": "string",
          "type": "string",
          "name": "string"
        },
        "extension_attributes": {
          "video_content": {
            "media_type": "string",
            "video_provider": "string",
            "video_url": "string",
            "video_title": "string",
            "video_description": "string",
            "video_metadata": "string"
          }
        }
      }
    ),
    "tier_prices": (
      {
        "customer_group_id": 0,
        "qty": 0,
        "value": 0,
        "extension_attributes": {
          "percentage_value": 0,
          "website_id": 0
        }
      }
    ),
    "custom_attributes": (
      {
        "attribute_code": "string",
        "value": "string"
      }
    )
  },
  "saveOptions": true
}

Custom Notation – Why is Parenthesize Adding Parentheses Here?

I played with it Notation` Package and box forms for some custom notation lately. I discovered a nifty feature called Parenthesize. You give it an expression and the function that surrounds it (and technically a few other things, see the link), and a box output is created with automatically added parentheses that are required for the expression to be properly formatted. There's a much better explanation and example here: how do I use the third and fourth argument of the bracket?

I probably miss something obvious, but I don't understand his behavior here:

Parenthesize(2 x, StandardForm, Times)

(*evaluates to*)

RowBox({"(", RowBox({"2", " ", "x"}), ")"})

Why is it put in brackets? 2 x in the context of multiplication. Times(___,Times(2,x),___) reduced to Times(___,2,x,___) So the parentheses shouldn't be necessary, should they?

If I don't want the parentheses to appear, it's safe to use the following instead: Parenthesize(expr, StandardForm, 399, None) there Precedence(Times) rated to 400.

How to get more likes without adding more friends

Two years ago I got more than 150 likes on every photo I added with about 800 friends, but now, for more than a year, I can't get more than 100 with 700 friends. No matter what I do, the likes cannot be increased, even if I make friends with old friends, they will like my next photo, which I add and disappear, if I add someone new and start liking others, they will also disappear. Other friends of mine have 200 likes from 300 friends, which means 70% of their friends like their posts. In my case it's just a little over …

How to get more likes without adding more friends

Magento 2, stop reloading the billing section when checking out while adding information about the new billing address

Whenever I try to insert information into a new billing address, the entire billing section is loaded immediately after adding a value to the zip code
It sends a request to http: // website / rest / us / V1 / carts / mine / shipping information
and http: // website / rest / us / V1 / carts / mine / totals and http: // website / customer / section / load /? section = messages & force_new_section_timestamp = true & _ =

Is this a way to prevent this section from being reloaded as it also causes problems with the shipping area?

Sharepoint Server – Adding items to a custom list app fails in the background.

Of the Site Contents Directory in SharePointI created one Custom List about New > App > Custom List.

I added 12 entries and everything worked as expected, the answers were visible in the list.

When trying to add subsequent entries (when clicking Save Click on the new registration form by clicking on + Icon), the new entries were not displayed in the list (even when the page was refreshed).

It's like the form "tacitly fails" and I have no idea why.

It's a simple setup and worked for the first 12 entries, so I don't know why it suddenly stopped working.

For the context, I renamed the mandatory Title Field too Organisation Name (because I don't need a Title Field in my form) so I don't know if that will cause any problems?