How to insert text at the current cursor position in Gutenberg?

I am trying to insert text into Gutenberg at the current position for a speech to text solution.

I am aware how to insert new blocks.

const newBlock = wp.blocks.createBlock( "core/paragraph", {     content: 'This is the content', }); "core/editor" ).insertBlocks( newBlock ); 

But I can’t figure out how to add a string at the current cursor position. Could somebody please give me a hint. Any help appreciated.

Best algorithm for switching between bullets before reloading the current one

I’m wondering about how most 2d games deal with switching between player bullets when the current one isn’t / is being reloaded.

Currently, I have these configurations in my brain:

  1. Let the player switch to another bullet but he will have to reload the current one completely even if it was 100ms left to be fully reloaded, when he switches back to it.

  2. Let the player switch between bullets and when he switches back to the current one (the one he was left not reloaded), he will just need to wait the remaining time for it to be reloaded and not the entire reload time.

  3. The player would be able to switch between bullets but after some delay and when he gets back to the one that was left not reloaded, he will find it ready for use.

These are the ideas that came to my mind, but I’ll be glad if you present better ones for me.

So which one is better ? Which improvements do they need ?

Is there a way to grab the current value of the editor in Gutenburg/Classic WordPress editor? (Not the saved value of the post!)

I’m trying to make my plugin "Gutenburg – compatible". I have some issues when replacing the editors contents. Before I could just change value by using #content but with Gutenburg there’s obviously a new approach with REST API.

Is there a way to grab the current value of the editor? (Not the saved value of the post!)

I want this because I want to replace values of the core/editor in realtime. It works with the classic editor active but I don’t want to require that.

let old_content = ''; old_content = 'core/editor' ).getCurrentPost().content;      //TINYMCE => old_content = $  ('textarea#content').html();  //Aim is to do a replace like this (and this works but only FIRST time because old_content  //fetches from server/db instead of the actual editor (If I understand this correctly) 'core/block-editor' ).resetBlocks( wp.blocks.parse( new_content ) ); //TINYMCE: $  ('textarea#content').html( new_content ); 

Is it possible to set permission to other user for the table created by current user with PostgreSQL?

In PostgreSQL, created these 2 roles and grant different permissions to them.

create user user1 with login; create role operator; grant operator to user1;  create user user2 with login; create role readwrite; grant readwrite to user2; 

When created a table by user1, such as table1, user2 can’t use this table. It got permission denied.

Is it the right feature for PostgreSQL? If it is, how to make the table also can be used for user2?

Adding new user info to current old user accounts

Hey all so I have a database that has been up and running for a few months now. I had a request to add the users First and Last name as well as their organization. This was easy enough to do:

"INSERT INTO " +     "aspnet_UsersAddition " +         "(UserId, firstName, LastName, OrganizationID) " + "VALUES " +     "(" +         "'" + genGUID + "'," +         "'" + Params.firstName + "'," +         "'" + Params.lastName + "'," +         "" + Params.Params["Org"] +     ")"; 

However, and this is the problem, is that OLD users who do not have that First/Last and organization associated with their account need to have those added to them.

I have tried the following:

INSERT INTO      aspnet_UsersAddition            (UserId, firstName, LastName, OrganizationID)  VALUES      ('','','',1)  WHERE      UserId = (SELECT UserId FROM aspnet_Membership WHERE Email = ''); 

But of course the above would not work since the UserId in the aspnet_UsersAddition was non-excitant when comparing it to the aspnet_Membership UserId. The only info I have access to on the page where I am calling this function is their email address and user name.

So I guess my question is – How do I add a new record using the users GUID [that needs to be looked up via email address or user name] so that I can add that info [UserId] to the new table [first/last and organization]?

Do I have to make separate query’s

Select old users GUID using their email address.

Insert new record into new table with blanks other than the GUID.

in order to do this? Or is there a way to do this in one query?

How to select and delete all Output cells within current Selection only?

A similar question was already here: How to select and delete all Output cells?. But I have a more specific one: I want to delete all output cells within the currently selected cells only.

For this purpose I want to add an additional menu item Cell>Delete All Output within Selection.

Probably one would have to add something to


Has anybody already made such an improvement and could he please post it here?

(The version in this case is 12.1 and it probably has to reflect the version in question. This path is for a Linux machine. On a Windows machine the paths begin at a different root but parts from Wolfram to TextRessources probably will look the same, except for the forward slashes being replaced by backward ones- /X/ might be special for Linux).

Easiest way to get all current footprints?

It’s been a long time since I used gsa or did any scraping. I have an old text file called ‘gsa footprints’ but its quite a few years old.

I have the platform identifier and looks like i can open up all the engines and extract at least one main footprint from each of them…

And I have footprint factory but that looks like its no longer active unfortunately.

Is there a current alternative to fpf as i remember that being pretty sweet for this.


Gutenberg is there a way to know if the current block is reusable?

So I have developed some blocks using React, I save my css generated in the post meta, that’s works fine. In the case of reusable blocks:

  • Whene we set a block as reusable this block will saved as hidden CPT (wp_block) as the documentation. (
  • Since the block is reusable I wanted to save the css generated for the reusable block in one place (post meta for wp_block CPT for example), that’s will achieve the goal of reusable block, whene the reusable block changed, this will affect all place (posts/pages) that use this reusable block. For that I wanted to check if rendred block is reusable to handel some login?

How to add a volume to current in use MySQL database

related to the problem I faced here No space left on device, I want to adopt a long term solution about the point no space left on device. One of the action includes to add a volume to the machine in which the database runs (MySQL 8, Ubuntu 20.04 and Digital Ocean provider).

I would like to know which one is safest way and rules to follow in order to avoid loosing reference and/or data when I will add a volume on the machine. Considering that this database is running in production without any replication.

Thank you in advance for the support