Having multiple active config splits causes main configuration directory to be ignored

I’m trying to have a config setup for a multisite, so that I have following config directories:

  • default – common config
  • dev – split for dev environment
  • local – split for local environment
  • <site> – split for a site

When I’m working on a local copy of the site, this means I have local and <site> splits active at the same time. I’ve experienced, that all the configuration apart from that blaclisted in local was then exported (when running drush cex) to the <site> split, so default directory is empty. How can I override this behavior, so that <site> split would contain only specified graylisted configuration?

(Non-Azure) Firewall in Azure with multiple public IPs

I have a couple of application gateways in Azure (Test/Prod). I also have a jumpbox.

I would like to create a firewall in Azure (looking at Watchguard Firebox Cloud VM) and route all inbound traffic via this.

I figure I would need 3 public IPs on the untrusted side, and then forward the traffic to the relevant resource on the trusted side.

  1. Does this sound correct
  2. How can I achieve this? Would I create 3 public IPs in the untrusted subnet and use route tables to forward the traffic to my firewall?


google analytics – Best way to track link clicks for multiple URLs in one place?

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

magento2 – Magento 2 API creat product width multiple images

I would like to create a product with several images via API.

It also works but he only reads one picture.
The others pictures only show the default thumbnail in the Magento backend.

enter image description here

He fetches the images via foreach:

foreach($_POST('image') as $key => $value) {

  $path_parts = pathinfo($value);

  $image() = array(
      'id' => $key,
      'media_type' => 'image',
      'label' => 'Product Image '.$key,
      'position' => $key,
      'disabled' => 'false',
      'types' => array('image','small_image','thumbnail'),
      'file' => $path_parts('filename').'.'.$path_parts('extension'),
      'content' => array(
        "base64_encoded_data" => base64_encode(file_get_contents($value)),
        "type" => "image/jpeg",
        "name" => $path_parts('filename').'.'.$path_parts('extension')

and then output in the post

$post ='{
  "product": {
    "sku": "DS12342134",
    "name": "Test",
    "attribute_set_id": 4,
    "price": 25,
    "status": 1,
    "visibility": 1,
    "type_id": "simple",
    "weight": "0.5",

can someone help?

What do you call a data structure containing multiple lists?

I was thinking about a data structure to make concatenation of lists easier, something that contains multiple lists (in a sequence) internally, but can be treated as a single contiguous list. I know such a data structure must exist out there already, and I would like to find articles about its performance, but I don’t know what it’s called. The closest thing I’ve found so far is a skip list, but that seems to be more like a binary search tree and isn’t just for dumping elements in.

I thought of implementing it something like this – the data structure L starts out containing an empty doubly-linked list of arrays.


Then, when an array or other list-like data structure is added to it, it becomes the first element.

Add (100, -4, 2) to L
Head -> (100, -4, 2) <- Tail

The next array added becomes its second element, and so on.

Add (2, 6, 1) to L
Head -> (100, -4, 2) <-> (2, 6, 1) <- Tail

Add (4, 5) to L
Head -> (100, -4, 2) <-> (2, 6, 1) <-> (4, 5) <- Tail

L will only expose methods to iterate over it one at a time, so it can be treated as a normal list.

windows server 2016 – Restrict RDGW sessions to single active per device by multiple devices

Starting situation:
Multiple physical Windows OS computers on production line served by system owner and co-owner, e.g. Alice and Bob work on PC1, Charlie and Dave on PC2, etc. They are all using the same local user name when logging in directly on the console: ProdUser. The computers are connected in an isolated network with no access to internet or office LANs, but with access to a server LAN.
Now, all users are working either from home or from the office and cannot be physically present by the production line. They require from the IT to have remote desktop access to the computers while still using the ProdUser account. Furthermore they require that when one employee has established an active remote desktop session, any subsequent attempt from other user(s) is blocked, ideally with a notification as of which user is holding the current active session, i.e. when Alice works on PC1, Bob should not kick her off using the same ProdUser account and receive a notification that Alice is occupying the session.
Already achieved:
RDGW server 2016 is already installed in the server LAN, and configured with RD CAP and RD RAP rules for each group, e.g. Alice and Bob but no ProdUser are CAP enabled, further A & B have access only to PC1 in a RAP rule. Also the .RDP profiles on the clients are preconfigured to authenticate with the real user account against the RDGW (gatewaycredentialssource:i:2), but with ProdUser against the target PC (username:s:ProdUser). This “two steps” authentication is tested successfully and working.
Not working:
When Alice is connected to PC1 and Bob tries to connect to the same, Alice gets kicked off. I cannot use the restrict sessions number option on the server, because it is for all RDGW sessions. Also, even if I go programmatically monitoring the current active sessions and trigger Set-RDSessionHost -NewConnectionAllowed No (aka drain mode) it once again affects the global RDGW behavior and is not restricted only to the PC1 host. Same goes for a programmatical notification per group of people and device/resource.
Is there a way to fine grain the block/notify settings per device / resource?
Am I using the correct technology here, or what can be other technologies which support the described scenario natively.

dnd 5e – Do multiple instances of the Extra Attack feature stack?

PHB, page 164:

Extra Attack

If you gain the Extra Attack class feature from more than one class, the features don’t add together. You can’t make more than two attacks with this feature unless it says you do (as the fighter’s version of Extra Attack does). Similarly, the warlock’s eldritch invocation Thirsting Blade doesn’t give you additional attacks if you also have Extra Attack.

Regardless of gaining it at level 5 or 6, any class feature that gives you multiple attacks on your attack action does not stack with another class feature with the same or similar effect. Fighter is currently the only route to go to have 3 or 4 attacks solely on the attack action.

html – Select multiple, insertar varios datos en un solo campo (Postgresql php) 1 a N

Lo que sucede es que yo le pongo la información de la tabla cursos a el select múltiple,ahora lo que quiero hacer es que los cursos que se seleccionen se inserten en la tabla de los estudiantes, es decir, que es una relación de 1 a N

Estas son las dos tablas que tengo.

cod_cur varchar(6),
nomb_cur varchar(30),
cod_doc varchar(10));
CREATE TABLE Estudiantes (
cod_est varchar(10),
nomb_est varchar(30),
telefono varchar(10),
email varchar(50),
cod_programa varchar(10),
cod_cur varchar(10));
ALTER TABLE Estudiantes ADD CONSTRAINT ek_estudiantes PRIMARY KEY(cod_est);

Aquí esta el código en donde inserto los datos,lo que me esta insertado es la palabra “array” en la columna cod_cur en la tabla docentes,no entiendo muy bien porque sucede esto.


print_r ($cod_cur);

if ($cod_programa=="Seleccione el programa...") {
} else{
while ($cod_programa($i)!=" ") {

$query="SELECT insertar_estudiante('$cod_est','$nomb_est','$telefono','$email','$cod_programa','$cod_cur');";

    if ($cod_programa=="na") {
            header("Status: 301 Moved Permanently");
            header("Location: /ProyectoNOTAS/registrar_estudiante.php");        }
            else {
                header("Status: 301 Moved Permanently");
                header("Location: /ProyectoNOTAS/info_estudiante.php");}


Y este es el select multiple en donde estan los cursos de los cuales se seleccionan algunos para asignarlos al estudiante

          $query2 = 'select cod_cur, nomb_cur from cursos order by cod_cur asc';
          $resultado = pg_query($con, $query2) or die("Error en la consulta sql");
          $numReg = pg_num_rows($resultado);
          if ($numReg > 0) {
          <select id="ms" multiple="multiple" class="control" width="80" type="cod_cur" name="cod_cur()" >
            while ($fila = pg_fetch_array($resultado)) {
            <option><?php echo $fila('cod_cur'), " - ", $fila('nomb_cur') ?> </option>;
          } else {
          <h1 align="center"> <?php echo "No hay registros"; ?> </h1>
          <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
          <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
          <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
          <script src="CSS/multiple-select.js"></script>
          $(function() {
          $('#ms').change(function() {
              width: '100%'

ubuntu – Docker Compose Outgoing IP Address on Machine with Multiple IP Addresses Assigned

Docker Compose is used to run a container on an Ubuntu 20.04 machine with multiple IP addresses assigned to its network interface (e.g.,,

The docker containerr is currently configured to only listen on one of the IP addresses, by having the following port mapping in the docker-compose.yml file

      - ""
      - ""

Is it posssible to configure the Docker container to use a specific IP address (e.g. when sending outgoing traffic?


  • docker 19.03.13
  • docker-compose 1.27.4
  • compose file version 3.4
  • Ubuntu 20.04

Converting a form field to multiple submit buttons?

I would like to suggest is, use hook_form_alter, create an ajax handler on value change on select list, disable ( remove) submit button.

 * Implements hook_form_alter().
function YOURMODULENAME_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  if ($form_id == 'YOUR_FORM_ID') {
    $form('YOUR_FIELD_MACHINE_NAME')('#ajax') = (
        'callback' => array('mycustomSubmit'),
        'wrapper' => 'vote-wrapper'
      $form('YOUR_FIELD_MACHINE_NAME')('#prefix') = '<div id="vote-wrapper">',
      $form('YOUR_FIELD_MACHINE_NAME')('#suffix') = '</div>';
    // disable submit button
    $form('actions')('submit')('#disabled') = TRUE;

   * {@inheritdoc}
  public function mycustomSubmit(array &$form, FormStateInterface $form_state) {
    Drupal::messenger()->addMessage($this->t('YOUR SUCCESSFUL MESSAGE'), 'status', TRUE);

and in twig template theme the select options instead of radio, theme them in a button like what you want. ( or even you can style radio options as button with just CSS)

for reference: Customize Radio Button Appearance with CSS