MySQL Workbench: error when trying to export schemas "global name" self "is not defined"

This appears as soon as you click on Export in MySQL Workbench. Error log entry:

18:19:12 [ERR][wb_admin_main.py:tab_changed:211]: Unhandled exception in Admin for>: Tracking (last most recent call):
File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_main.py", line 208, in tab_changed
panel.page_activated ()
File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py", line 2255, in page_activated
self.create_ui ()
File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py", line 2308, in create_ui
self.options_tab = WbAdminExportOptionsTab (self.ctrl_be.target_version, self.export_tab.mysqldump_defaults)
File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py", line 1997, in in that
mysqldump_version = get_mysqldump_version ()
File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py", line 113, in get_mysqldump_version
self.print_log_message ("Error retrieving version of% s: n% s (output% s)"% (path, exit, rc))
NameError: the global name & # 39; self & # 39; It is not defined

18.04 – The USB capture device "is not an MTP device"

I am trying to connect my USB capture card to an Ubuntu host 18.04.

However, when I am connecting it, it connects and disconnects repeatedly.
Syslog indicates that it is not an MTP device:

July 10 17:39:18 james-pc kernel: usb 1-10: new high-speed USB device number 114 with xhci_hcd
July 10 17:39:18 james-pc kernel: usb 1-10: New USB device found, idVendor = 07ca, idProduct = c835, bcdDevice = 0.00
July 10 17:39:18 james-pc kernel: usb 1-10: New USB device chains: Mfr = 1, Product = 2, SerialNumber = 3
July 10 17:39:18 james-pc kernel: usb 1-10: Product: Aver_C835_USB
July 10 17:39:18 james-pc kernel: usb 1-10: Manufacturer: AVerMedia Tech. Cía.
July 10 17:39:18 james-pc kernel: usb 1-10: Serial number: 202786700314
July 10 17:39:18 james-pc mtp-probe[11144]: Bus 1 check, device 114: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10"
July 10 17:39:18 james-pc mtp-probe[11144]: bus: 1, device: 114 was not an MTP device
July 10 17:39:18 james-pc upowerd[6997]: uncontrolled action & # 39; bind & # 39; in /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10
July 10 17:39:24 james-pc kernel: usb 1-10: USB disconnect, device number 114
July 10 17:39:24 james-pc upowerd[6997]: Uncontrolled action "unlink" in /sys/devices/pci0000:00/0000:00:14.0/usb1/1-10

How do I make Ubuntu recognize it as a USB capture device?

typing – "Is there a way to combine these functions into one?"

With these functions I mean the functions (call, hide, removeListener, addListener, observer.subscribe), I want to write them again and again, is there any better way to do it?

export class UIStateService {
authForm: UIAuthForm = {
show: fake,
type: & # 39; login & # 39 ;,
observer: new subject (),
Listeners:
call: () => (((this.authForm.show = true), this.authForm.observer.next (& # 39; onShow & # 39;)), this.blur.call ()),
hide: () => ((this.authForm.show = false), this.authForm.observer.next (& # 39; onHide & # 39;)),
removeListener: id => (this.authForm.listenershttps://codereview.stackexchange.com/q/223486 = undefined),
addListener: (id, listener) => {
if (this.authForm.listenershttps://codereview.stackexchange.com/q/223486 === undefined) {
this.authForm.listenershttps://codereview.stackexchange.com/q/223486 = listener;
} else {
console.warn (& # 39; Can not add a defocus detector to an existing ID: (& # 39 ;, id, & # 39;) & # 39;);
}
}
};
blur: UIBlur = {
show: fake,
observer: new subject (),
Listeners:
blurState: & # 39; hide & # 39 ;,
call: () => ((this.blur.show = true), this.blur.observer.next (& # 39; onShow & # 39;)),
hide: () => ((this.blur.show = false), this.blur.observer.next (& # 39; onHide & # 39;), (this.blur.blurState = & # 39; hide & # 39; )),
removeListener: id => (this.blur.listenershttps://codereview.stackexchange.com/q/223486 = undefined),
addListener: (id, listener) => {
yes (this.blur.listenershttps://codereview.stackexchange.com/q/223486 === undefined) {
this.blur.listenershttps://codereview.stackexchange.com/q/223486 = listener;
} else {
console.warn (& # 39; Can not add a defocus detector to an existing ID: (& # 39 ;, id, & # 39;) & # 39;);
}
}
};

builder () {
this.blur.observer.subscribe (type => {
for (key const in this.blur.listeners) {
if (this.blur.listeners.hasOwnProperty (key)) {
const listener = this.blur.listeners[key];
if (listener.type === type) {
listener.func ();
}
}
}
});
this.authForm.observer.subscribe (type => {
for (key const in this.authForm.listeners) {
if (this.authForm.listeners.hasOwnProperty (key)) {
const listener = this.authForm.listeners[key];
if (listener.type === type) {
listener.func ();
}
}
}
});
}
}

UI interfaces:

import {Subject} from & # 39; rxjs & # 39 ;;

export interface UIListenerItem {
type: & # 39; onShow & # 39; | & # 39; onHide & # 39 ;;
func: () => void;
}

export interface UIElement {
show: Boolean;
observer: subject<'onShow' | 'onHide'>;
listeners: { [key: string]: UIListenerItem};
call: () => void;
hide: () => empty;
addListener: (id: string, listener: UIListenerItem) => void;
removeListener: (id: string) => void;
}

UIBlur export interface extends UIElement {
blurState: & # 39; hide & # 39; | & # 39; show & # 39 ;;
}

UIAuthForm export interface extends UIElement {
type: & # 39; login & # 39; | & # 39; record & # 39 ;;
}

terraform: error in the creation of an Azure virtual machine from VHD "is not a valid resource reference"

I am trying to implement a virtual intelligent zone in Azure through Terraform, but I could not succeed many times. I also read the existing article here. Could you please give me some advice and fix it? Thank you.

Here are the details:
Terraform version:

tien $ terraform -v
Terraform v0.11.13
+ provider.azurerm v1.27.1
+ provider.random v2.1.2

What terraform did I write?

resource "azurerm_virtual_machine" "vsz_vm" {
name = "vsz.az.example.com"
location = "$ {var.location}"
resource_group_name = "$ {azurerm_resource_group.abc.name}"
network_interface_ids = ["${azurerm_network_interface.vsz_nic.id}"]
  vm_size = "Standard_D4_v3"

storage_image_reference {
id = "/subscriptions/4389d27e-249a-4f95-8bd6-3486c60945e7/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/vszafb3c92c014b61ab/images/vscg-5.1.1.0.198.vhh"
}

storage_os_disk {
name = "vszOsDisk"
managed_disk_type = "Premium_LRS"
create_option = "FromImage"
os_type = "Linux"
}

os_profile {
computer_name = "vsz.az.example.com"
admin_username = "azure"
}

os_profile_linux_config {
disable_password_authentication = true
ssh_keys {
path = "/home/azure/.ssh/authorized_keys"
key_data = "$ {var.ssh_public_key}"
}
}

tags {
environment = "$ {var.environment}"
}
}

then I execute the terraform command

tien $ terraform init -> OK
plan tien $ terraform -> OK
tien $ terraform applies -> ERROR

What a problem?

Error: Error when applying the plan:
1 error (s) occurred:
* module.azure_example_dlc.azurerm_virtual_machine.vsz_vm: 1 error (s) occurred:
* azurerm_virtual_machine.vsz_vm: compute.VirtualMachinesClient # CreateOrUpdate: Error request in the sending: StatusCode = 400 - Original error: Code = "BadRequest" Message = "Id / subscriptions / 4389d27e-249a-4f95-8bd6-3486coc / cs / Ct / subsp./Microsoft.Storage/storageAccounts/vszafb3c92c014b61ab/images/vscg-5.1.1.0.598.vhd is not a valid resource reference. "

The VHD file vscg-5.1.1.0.598.vhd exists in the "images" container in the storage account "vszafb3c92c014b61ab".

I also create the managed image before creating the virtual machine from the managed image as shown below:

        storage_image_reference {
id = "/subscriptions/4389d27e-249a-4f95-8bd6-3486c60945e7/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/vszafb3c92c014b61ab/images/vscg-5.1.1.0.198.vhh"
}

storage_os_disk {
name = "vszOsDisk"
managed_disk_type = "Premium_LRS"
create_option = "FromImage"
os_type = "Linux"
}

Using Facebook pixels to add products to catalog status "is not ready"

I'm trying to use my Facebook pixel to load products into a Facebook catalog for advertising.

I updated the microdata (open graph protocol) 7 days ago, and when I try to attach the pixel to the catalog, it is still in gray and says "it is not ready".

The pixel is firing, and I've run the Facebook debugger for my site, and it seems to be reviewing the correct data … can anyone recommend something else to consider?

There does not seem to be a contact form for Facebook Business when I visit your section of & # 39; contact with the client & # 39 ;. And sending a message to Facebook Business through Messenger only receives an automatic response …