Google Speech recognition doesn’t consistently enter the speech into app text field

I cannot figure out the whole pattern but much of the time these days if I use Google Speech to recognise some text to put into a text field eg Facebook’s or Messenger’s, it successfully recognises the text (it shows me) but then when the popup displaying the text goes away, it leaves the text field unchanged, instead of entering the recognised text. It seems to happen mostly if I do some speech recognition, then edit or move the cursor, then some more speech recognition.

Is there any way to force the recognised text into that field or get it into “paste” so I can paste it in?

(Using a Huawei P20 Pro running Android 10 and Microsoft Swiftkey to “activate” Google Speech).

css – Elementor Heading Doesn’t Hover

Creating a website with Elementor, I added the following code to the Headings:

<span class="pos"> Something </span> 

Custom CSS:

.pos:hover{opacity: 0.7; color: orange;}

It is working when I am in Editing, but when I am checking it out in real life it just doesn’t work anymore.

Why could it be?

magento2 – On updating product using ASYNC REST API it doesn’t create product in Magento 2

I have using postman to test API to create a product

API URL : http://127.0.0.1/magento/rest/async/V1/products

Data Passed to test same as documentation :

{
 "product": {
"sku": "MS-Champ-S",
"name": "Champ Tee Small",
"attribute_set_id": 9,
"price": 25,
"status": 1,
"visibility": 1,
"type_id": "simple",
"weight": "0.5",
"extension_attributes": {
    "category_links": (
        {
            "position": 0,
            "category_id": "11"
        },
        {
            "position": 1,
            "category_id": "12"
        },
        {
            "position": 2,
            "category_id": "16"
        }
    ),
    "stock_item": {
        "qty": "10",
        "is_in_stock": true
    }
},
"custom_attributes": (
    {
        "attribute_code": "description",
        "value": "The Champ Tee keeps you cool and dry while you do your thing. Let everyone know who you are by adding your name on the back for only $10."
    },
    {
        "attribute_code": "tax_class_id",
        "value": "2"
    },
    {
        "attribute_code": "material",
        "value": "148"
    },
    {
        "attribute_code": "pattern",
        "value": "196"
    },
    {
        "attribute_code": "color",
        "value": "52"
    },
    {
        "attribute_code": "size",
        "value": "168"
    }
)
}
}

Gets response in postman

{
"bulk_uuid": "412bbfea-c6c9-4bce-8c27-84be8be790c6",
"request_items": (
    {
        "id": 0,
        "data_hash": "df9eef8c84da301b911a57b247d0dd8776556a2e921374db9dece5a9747377aa",
        "status": "accepted"
    }
),
"errors": false
}

When i go to admin to check the product it doesn’t create any product.

Shows this at the top

Task "Topic async.magento.catalog.api.productrepositoryinterface.save.post": 1 item(s) are currently being updated.1 item(s) have been scheduled for update.

enter image description here

Any one helped me what i have missed ?
Any help is appeiciated.

password cracking – Doesn’t Hashing Negate Quantum Computer Factoring?

I’ve read/watched a lot about Quantum Computers, trying to really get into the physics of it. Seems like the topic is poorly explained. I do understand that it takes a lot of qbits to beat modern encryption, so there’s no concern for a while longer.

So while I do see lots of articles/videos claiming Shor’s algorithm will defeat encryption, nothing has explained how the key is captured, and/or how the hashing/salting of the key is undone such that the algorithm has a proper number to work with. Seems like those are pretty big hurdles to overcome regardless of the algorithm.

8 – Dynamic block cache doesn’t render

I have a menu that renders different items based on the entity association of the node being rendered.

I’ve been trying many difference combinations of cache configurations for my custom block:

        return [
            '#theme'      => 'my_custom_menu',
            '#menu_items' => $menu,
            '#cache'      => [
                'keys'     => ['custom_menu', $node_id],
                'contexts' => ['route.name'],
            ],
        ];

This will work once when i flush the cache. But navigating to a different page, with a different menu association returns nothing in the block html. I’ve had this sporadically happen with local, but more consistently happen on Pantheon. I installed the https://pantheon.io/docs/modules#advanced-page-cache module but it doesn’t fix anything.

I’ve tried url.path, i’ve tried just the contexts array, just the keys array. Nothing works.

Anyone come across this?

postgresql – How do I set application_name so that it doesn’t get the “?” characters?

I have this UTF-8 string in PHP:

$test_title = 'My criticál business applicätiön';

If I send that to PostgreSQL to set the application_name, it then looks like this:

My critic?l business applic?ti?n

If I try to salvage it by transliterating like this before sending to PG:

$test_title = iconv('UTF-8', 'US-ASCII//TRANSLIT', $test_title));

Then I get:

My critic'al business applic"ati"on

Basically just as bad. It tries its best to represent the UTF-8 characters as the US-ASCII charset that PG demands for the application_name, but it just doesn’t look right. It cannot possibly look right because US-ASCII simply doesn’t contain all the non-USA characters.

Unfortunately, there also exist people outside of the USA. (I know, it’s annoying, but it’s sadly true.)

I refuse to believe that application_name must be ugly like this. It cannot be. It’s too stupid to be true. I must be missing something. There has got to be some way to set application_name to the actual application name and not have it butchered in the above manner.

Basically, I don’t “buy” that PG would be this primitive and crippled still in year 2020.

URLs is indexed but doesn’t show up in the search results

Some of the URLs marked as indexed in Google search console are not shown in search results when related keywords are searched.

The URLs in question include query strings and their canonical URL is identical.

As an example:

1- https://example.com/templates/?category=service is marked as indexed but when searching product x service templates​ it does NOT show up in results (checked the first 10 pages but apparently in no other pages either.

2- https://example.com/templates/?category=events is marked as indexed but when product x events templates​ it DOES show as in the first result.

Considering https://example.com is the most authoritative domain related to product x templates​ (product’s official website), so the reason some URLs do not show up in the results, is a competition or something is technically wrong?

I’ll appreciate your time and help.

opengl – Box2D simulation doesn’t work

I previously used Box2D and it always worked fine until recently I decided to test how it would work in my custom 2D game engine, I just wanted to test the physics updates without any GUI interaction, as you can see in the below code I just try to print the plain position values of the dynamic body and it just doesn’t move. All it does is print the initialisation position I set in the initialiser, afaik all I’m trying to do it print the values in a simple loop that runs more than 60 times per frame, the box2d code doesn’t interact with the rendering in anyway. IDK what’s wrong with box 2d to run fine in a simple loop. I’m really confused why the simulation isn’t happening. Let me know if you need more info about anything.

Freefall.h

 #include <fireworks/fireworks.h>
 #include <box2d/box2d.h>

using namespace fireworks;

class FreeFall : public Fireworks
{
private:
    Window*         m_Window;
    Layer*          defaultLayer;

    b2Vec2          m_Gravity;
    const double    m_PhysicsTimeStep = 1.0f / 60.0f;
    unsigned int    m_VelocityIterations;
    unsigned int    m_PositionIterations;
public:
    b2World* world;

    b2BodyDef       groundBodyDef;
    b2Body*         groundBody;
    b2PolygonShape  groundShape;
    b2FixtureDef    groundFixtureDef;

    b2BodyDef       dynBoxBodyDef;
    b2Body*         dynBoxBody;
    b2PolygonShape  dynBoxShape;
    b2FixtureDef    dynBoxFixtureDef;

    Sprite*         ground;
    Sprite*         dynBox;
public:
    FreeFall()
        : m_Gravity(b2Vec2(0.0f, -29.81f)), m_VelocityIterations(6), m_PositionIterations(2)
    {
        world = new b2World(m_Gravity);
        // Static ground body
        groundBodyDef.position.Set(0.0f, -10.0f);
        groundBody = world->CreateBody(&groundBodyDef);
        groundShape.SetAsBox(20.0f, 4.0f);
        groundFixtureDef.shape = &groundShape;
        groundFixtureDef.density = 1.0f;
        groundFixtureDef.friction = 0.3f;
        groundBody->CreateFixture(&groundFixtureDef);

        // Dynamic simulation box
        dynBoxBodyDef.type = b2_dynamicBody;
        dynBoxBodyDef.position.Set(-1.0f, 4.0f);
        dynBoxBody = world->CreateBody(&dynBoxBodyDef);
        dynBoxShape.SetAsBox(2.0f, 2.0f);
        dynBoxFixtureDef.shape = &dynBoxShape;
        groundFixtureDef.density = 1.5f;
        dynBoxFixtureDef.friction = 0.25f;
        dynBoxBody->CreateFixture(&dynBoxFixtureDef);
    }

    ~FreeFall()
    {
        delete defaultLayer;
        delete world;
    }

    // Runs once per initialisation
    void init() override
    {
        m_Window = createWindow("Freefall physics sim", 800, 600);
        glClearColor(0.8, 0.8f, 0.2f, 1.0f);

       

    }
    // Runs once per second
    void tick() override { }

    // Runs 60 times per second
    void update() override { }

    // Runs as fast as possible
    void render() override
    {
        //Physics Update
        world->Step(m_PhysicsTimeStep, m_VelocityIterations, m_PositionIterations);
        b2Vec2 dynPos = dynBoxBody->GetPosition();
        std::cout << "dynnamic Box2d Box position X : " << dynPos.x << " and Y is : " << dynPos.y << std::endl;
    }
};

MainGame.cpp

#include "physics-sims/Freefall.h"

int main()
{
    FreeFall game;
    game.start();
    return 0;
}

This is the output I get :
dynnamic Box2d Box position X : -1 and Y is : 4 for as long as the loop runs, this is soo infuriating, IDK what’s breaking what.

google chrome – Safari doesnt load certain webpages

Safari on my MacBook Pro 2015 running latest version of Catalina has recently decided to not load pages from certain sites, e.g. Twitter, The Indpendent, Bathroomer, but is ok with others. Sits there waiting forever. Why now? Have restarted machine , restarted Safari, installed latest Safari upgrade. Still happens with the same sites.
I dont use anti-virus programs or VPN or any other non-apple software.

All fine in Firefox and Chrome – so why Safari?

wallet – LND doesnt create macaroons or directories

I installed lnd and got to the point of creating a wallet with “lncli create” but I get an error “unable to read macaroon path” and gives the path of where the macaroon should be. I believe when you start lnd for the first time it creates these macaroons along with some other files and folders but mine only created

tls.cert
tls.key
logs/bitcoin/mainnet/lnd.log
data/graph/mainnet/channel.db

And no macaroons. Does anyone know why it would create only some of the files and folders?? Stumped!

Running on Ubuntu 20