how to implemented a MyS database HA when the candidate node already is a multi-source replication node?

MySQL 5.7.21 Community Version.

  1. Our node have a MySQL instance base on multi-source replication from 5 replication source.
  2. but this node does not fit HA purpose with single point failure.
  3. when we try to build master-slave or dual master on it, it can not be done with reset master process.

how to implemented the HA on this kind of MySQL instance?

Drush cim: error “Table xyz already exists”

I’m trying to deploy a dev website to a dev server. When running drush cim on the dev server, drush ends with an error message:

Table honeypot_user already exists

When running drush cim again right after that, the same error comes up again for a while with different table-names. The database does definitely not have these tables before running the config import.

What’s the underlying problem and how can I solve that?

Using drush 8.1.17 on a Drupal 8.3.7 (both running offline and soon to be updated for security patches)

Metasploit Starts attacking multiple targets, results in “address is already in use”

I am attempting to pentest multiple Weblogic servers, however, when I

“run” or “exploit” or even “exploit -J”,

metasploit begins to attack multiple targets at once, which results in “address is already in use”

msf5 exploit(multi/misc/weblogic_deserialize_unicastref) > run [*] Exploiting target [*] Exploiting target [*] Started reverse TCP handler on [*] Exploiting target [-] Handler failed to bind to  - [-] Handler failed to bind to  - [-] - Exploit failed [bad-config]: Rex::BindFailed The address is already in use or unavailable: ( 

Here are my options

msf5 exploit(multi/misc/weblogic_deserialize_unicastref) > show options  Module options (exploit/multi/misc/weblogic_deserialize_unicastref):  Name     Current Setting                                Required  Description ----     ---------------                                --------  ----------- RHOSTS   file:/tmp/msf-db-rhosts-20190415-21066-ez3gp8  yes       The target address range or CIDR identifier RPORT    7001                                           yes       The target port (TCP) SRVHOST                                        yes       The local host to listen on. This must be an address on the local machine or SRVPORT  8080                                           yes       The local port to listen on. SSL      false                                          no        Negotiate SSL for incoming connections SSLCert                                                 no        Path to a custom SSL certificate (default is randomly generated)   Payload options (cmd/unix/reverse_python):  Name   Current Setting  Required  Description ----   ---------------  --------  ----------- LHOST    yes       The listen address (an interface may be specified) LPORT  4444             yes       The listen port SHELL  /bin/bash        yes       The system shell to use.   Exploit target:  Id  Name --  ---- 0   Unix 

any ideas what I might be doing wrong?

What can I do if my MacBook isn’t charging but already ran out?

My MacBook suddenly stopped charging and I tried SMC reset. However, the MacBook already ran out on the battery and thus I think even the SMC reset did not work since when I did it, it was just that the battery icon flashed yet it didn’t start at all.

Unfortunately I live in the city where there is no Genius Bar, and I stay here for a few more months. Is there anything I can do to make the charge work?

Huffman encoding with several codes already assigned

The classic Huffman algorithm, as Wikipedia states, finds an optimal prefix-free binary code with minimum expected codewords length, given a set of symbols and their weights. Now, suppose codewords for some (but not all) symbols are already assigned (maybe in a suboptimal way). How should we assign remaining codewords to the remaining symbols so as to minimize the minimum expected codewords length, assuming that there exists at least one binary sequence such that none existing codewords have it as their prefix, and neither of the existing codewords is its prefix?

I wonder if there’s a known solution to this problem. Yet I have been trying to develop an own one borrowing ideas from this proof.

How do I tell the difference between a self signed ca I made for myself for signing scripts and ones that were already there?

Basically my question is, how do I know when a certificate I find in my cert:/localmachine/my store is self signed and not already present when I start using a new computer.

If you do a Get-ChildItem cert:\localmachine\my it can list many certificates, and it lists the Thumbprint and the Subject, and you can list all of the members of each by tacking on a | % { $ _ |get-member } on the end of it.

But which of these members can tell me the difference between a self-signed cert that I created (possibly by mistake) and ones that were already in there, and signed by a for real certificate authority?

(honestly, I just want to sign my personal scripts with my personal certificate, but have only one certificate)

My son is already in the UK. Can I buy him a Britrail pass?

My son in college is in the UK for the semester. I’m going to visit him soon for a week. He doesn’t have a Britrail pass, but for our upcoming week of more heavy train use, a pass would be more efficient. I know I can buy myself one (I plan to get an M-pass), but can I buy one for him, even though he is already in the UK? His would need to be an M-pass too.

Vetur Extension – Unexpected closing tag “p”. It may happen when the tag has already been closed by another tag

On some of my Vue.js pages, I am unable to Format the code on VS Code, due to my Vetur extension giving me this error:

Formatting failed: "46:12-46:16: Unexpected closing tag "p". It may happen when the tag has already been closed by another tag. For more info see" 

The page in question is this one.