ACF Repeater for registering Gutenberg Blocks

I am working on a template where I want to make a function that I can use the repeater field from ACF to combine that with the acf_register_block_type();.

What I have is the following:

 <?php          $  rows = get_field('register_block');     if( $  rows ) {         foreach( $  rows as $  row ) {           $  register_block_name_function = $  row['register_block_name'];           $  register_block_name = $  row['register_block_name'];             function $  register_block_name_function() {                      acf_register_block_type(array(                     'name' => $  register_block_name,                     'title' => __('3 Columns'),                     'render_template' => '/acf/blocks/gutenberg/columns-3.php',                     'category' => 'blocks',                     'mode' => 'auto',                     'supports' => array(                         'align' => true,                         'mode' => true,                         'anchor' => true,                     ),                     'icon' => array(                       // Specifying a background color to appear with the icon e.g.: in the inserter.                       'background' => '#B53A73',                       // Specifying a color for the icon (optional: if not set, a readable color will be automatically defined)                       'foreground' => '#FFF',                       // Specifying a dashicon for the block                       'src' => 'align-left',                     ),                 ));                  }                  // Check if function exists and hook into setup             if (function_exists('acf_register_block_type')) {                 add_action('acf/init', $  register_block_name_function);             }              }     }   ?> 

Is there a way that I can use 1 ACF Repeater to create multiple Gutenberg bocks by just adding a name.

Upon registering a SIM card

Generally when one wants a to buy a SIM card, he’s generally asked his ID and the latter is photocopied in order to associate the related identity to the SIM, and then the asker is given the SIM and becomes its owner, but isn’t it a risk that the SIM shop worker could use that photocopy maliciously for other purposes, such as registering another SIM on that identity in order to commit a crime in name of that man? Isn’t there a law preventing this or some precautions that could be taken (or anything that we could ask to the SIM shop worker, such as giving us the photocopy in order to be sure)?

Stopping touchpad clicks registering as right-clicks when there’s another finger already on the pad

Often I will drag the cursor to a particular location with my right finger and then press the touchpad with my left finger to left-click, whilst my right finger is still on the pad. This works in Windows and other laptops I’ve used before, but in Ubuntu 18.04 these keep registering as right-clicks whenever my fingers are too close together. This makes clicking and dragging particularly annoying as I have to lift my other finger off the pad before initiating the click.

Basically I want to configure my touchpad to ignore the presence of a second finger when it is clicked, and just do a left click regardless, but can’t spot a relevant setting in xinput --list-props

New user registering with an existing e-mail

Suppose that a new user goes to register on a site and enters an existing e-mail address. What message should be presented to that user from a UX point of view? Bear in mind that in the above case(as I see it)…two type of users might do the following:

  1. An already registered user who just wants to see what will happen if he attempts to register(that is one thing I possibly can imagine).
  2. A malicious user who knows the e-mail of another person and tries to find out if he/she is registered on the site.

How can I deal with the above cases? Of course I cannot know in advance which type of user goes to fill the form. So I am trying to find a message that will cover both of the above cases.

What do you suggest?

Registering a Wine program (StagePlotPro)

I recently joined the Ubuntu world. My PC computer had a virus, so I wiped it clean and installed Ubuntu. I am a musician and have a StagePlotPro program for creating stage plots for our band. I paid $ 40 for it. It runs on PC. So I downloaded Wine. I can get StagePlotPro to open with Wine, but when I put in my name and serial number from my purchase, it does nothing so I can’t use the full version of StagePlotPro that I bought 3 years ago. I am guessing it is not communicating with the internet. The documentation for StagePlotPro reads: Managing the software:

You must have StagePlotPro in your Applications folder in order to Activate or Deactivate it. The on-line registration process has to communicate with it, so it must know where to find it, and you must have an active internet connection. COPY/PASTE your name and serial number, to avoid any problems.

Possible patterns for Registering event listeners of game entities with an event queue

I’m trying to integrate the idea of an event queue with a game loop that creates entities and responds to input. Is it better practice to submit entity reaction functions to the queue during input processing, or is there a way to generically broadcast events like text submission to the event queue? What would the class structures of entity and event queue look like to support the latter?

Specifically I’m looking for a response that includes code (any language) or pseudo code. Similar answers lack the specificity I need to make sense of how fields on the structs or classes enable registration of listeners, broadcasting, and handling of events. pending function array approach

ipcMain listener not registering correctly

Am having some troubles with ipc messages between the main and renderer processes in an electron app.

The ipcRenderer is sending the message correctly (I can see it from devtron) but the ipcMain is not listening to anything

code in main.js

const {ipcMain} = require("electron"); ... function createWindow() { ...   ipcMain.on("mainWindow-minimize", (event, arg)    => {     console.log("On minimize from main");     mainWindow.minimize();   }); ... }  

code in renderer.jsx

import React from "react" impor {ipcRenderer} from "electron" ... export default class App Extends React.Component {   constructor(props) {     super(props);     this.headerOnClick = this.headerOnClick.bind(this);   }    headerOnClick(message, event) {     console.log("button clicked");     ipcRenderer.send(message)   }   render() {     return (       <button onClick={() => this.headerOnClick("mainWindow-minimize", event)} />     )   } } 

My Business FB page is not registering all the likes that come in

Hi there: I have noticed that I have had 273 likes on my FB business page for quite a few months and the number is not changing and yet I see new people are liking my FB Ken & Char business page but the number has not changed from the 273. Yesterday I asked a friend and she liked it so it is now 274. Here is my FB business page link

If I go to my notifications I see a few people that I had liked Ken & Char on April 24 and the number of 273 didn’t change. Why is the number not going up when people like our Ken & Char business page??

Can you please check into this and let me know?

thank you Charlene Fisher