magento2.4 – Quote always save with default 0 store id on every save

I am using webapi to store quote data but it always generates new row in DB with 0 store id every time.

Here is my code.


namespace VendorModuleModel;

use MagentoQuoteApiCartRepositoryInterface;
use VendorModuleApiProfileManagementInterface;

class ProfileManagement implements ProfileManagementInterface

     * @var MagentoCheckoutModelSession
    protected $_checkoutSession;

     * @var PsrLogLoggerInterface
    protected $logger;

     * @var CartRepositoryInterface
    protected $cartRepository;
     * @var MagentoQuoteModelQuoteRepository
    protected $quoteFactory;
    protected $request;
    protected $cartQuote;

     * @param CartRepositoryInterface $cartRepository
    public function __construct(
        CartRepositoryInterface $cartRepository,
        MagentoQuoteModelQuoteFactory $quoteFactory,
        MagentoCheckoutModelSession $checkoutSession,
        MagentoQuoteModelQuoteItemFactory $quoteItemFactory,
        MagentoQuoteModelQuoteAddressItemFactory $addressItemFactory,
        MagentoQuoteModelResourceModelQuoteItem $itemResourceModel,
        MagentoFrameworkWebapiRestRequest $request,
        MagentoCheckoutModelCart $cartQuote
    ) {
        $this->cartRepository = $cartRepository;
        $this->_checkoutSession = $checkoutSession;
        $this->quoteItemFactory = $quoteItemFactory;
        $this->addressItemFactory = $addressItemFactory;
        $this->itemResourceModel = $itemResourceModel;
        $this->quoteFactory = $quoteFactory;
        $this->request = $request;


     * {@inheritdoc}
    public function save()
        $postData = $this->request->getBodyParams();
        if (isset($postData('quoteId'))) {
           $quote = $this->quoteFactory->create()->load($postData('quoteId'));
            $quote->setData($this->request->getBodyParams()); // Fill data
           $quote->save(); // Save quote

        return true;

UNITY : how to reset part of prefab to its default position?

I import a prefab/asset object (a whole house object, it contains doors, walls,floors etc ). Then i modify one of the door positon. If i save it and re open the scene, How to get the position back to its original ? I only found ‘reset’ in RMB menu which will set to 0 rather than to original position of the prefab.

Docker host from container and vice versa via default bridge

Problem description

Docker bridge is not working as per expectation

Host not reachable from docker container and vice versa

Steps to reproduce

docker network ls

NETWORK ID          NAME                DRIVER              SCOPE
e83fc4ed421c        bridge              bridge              local
7a85d027a7f6        host                host                local
09b1dcfaa497        none                null                local

brctl show

bridge name     bridge id               STP enabled     interfaces
docker0         8000.000000000000       no

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
2: eno16777984: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:50:56:a8:b3:b5 brd ff:ff:ff:ff:ff:ff
    inet brd scope global eno16777984
       valid_lft forever preferred_lft forever
83: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
    link/ether 02:42:ce:69:0a:60 brd ff:ff:ff:ff:ff:ff
    inet brd scope global docker0
       valid_lft forever preferred_lft forever

docker run -dt ubuntu sleep infinity


brctl show

bridge name     bridge id               STP enabled     interfaces
docker0         8000.000000000000       no              veth38adad5

docker network inspect bridge

"Containers": {
            "fef2c3aaf64ccacc21a16de6029d22e1ba7ff8de770c9c14532f8d659d0d694d": {
                "Name": "objective_aryabhata",
                "EndpointID": "84e7836885750933a76d1fe0ac4fc86d020eb453ca45f62c1e2fb3e27afd7e9c",
                "MacAddress": "02:42:ac:1a:00:02",
                "IPv4Address": "",
                "IPv6Address": ""

Host to container ping ping
Expected : Ping should work
Actual : (Not working )

Container to host ping docker run busybox ping
Expected : Ping should work
Actual : (Not working )

Container to internet ping docker run busybox ping
Expected : Ping should work
Actual : (Not working )

Additional information

uname -a

Linux teleblnk9147 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

docker -v

Docker version 19.03.8, build afacb8b

sudo iptables-save

# Generated by iptables-save v1.4.21 on Tue Nov 24 16:50:20 2020
:INPUT ACCEPT (387891:46446579)
:OUTPUT ACCEPT (341373:46544705)
:DOCKER - (0:0)
:DOCKER-USER - (0:0)
-A INPUT -i docker0 -j ACCEPT
-A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -o docker0 -j DOCKER
-A FORWARD -i docker0 ! -o docker0 -j ACCEPT
-A FORWARD -i docker0 -o docker0 -j ACCEPT
# Completed on Tue Nov 24 16:50:20 2020
# Generated by iptables-save v1.4.21 on Tue Nov 24 16:50:20 2020
:PREROUTING ACCEPT (3399:203940)
:INPUT ACCEPT (3399:203940)
:OUTPUT ACCEPT (2430:149091)
:DOCKER - (0:0)
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
-A OUTPUT ! -d -m addrtype --dst-type LOCAL -j DOCKER
-A POSTROUTING -s ! -o docker0 -j MASQUERADE
-A DOCKER -i docker0 -j RETURN
# Completed on Tue Nov 24 16:50:20 2020

service iptables status

Redirecting to /bin/systemctl status  iptables.service
● iptables.service - IPv4 firewall with iptables
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
   Active: active (exited) since Mon 2020-11-23 16:13:06 IST; 24h ago
 Main PID: 85593 (code=exited, status=0/SUCCESS)
   Memory: 0B
   CGroup: /system.slice/iptables.service

Does the default WordPress video player support closed captions?

We want to used closed captions on a video so people can turn them on/off in the player like you do in Youtube. We aren’t hosting this particular video on Youtube; it will just be uploaded to the site and embedded by pasting in the video url.

finder – Can not make list view the default for my sparse bundle dmg volumes

I would like to view all my volumes and folders in list view but when I open the Show view options submenu for a mounted sparse bundle dmg it will always open in icon view and it is impossible to make the list view stick as the Always open in icon view entry will not change to Always open in list view even if I have changed the view to list view before. Any trick I am missing? Thanks in advance

magento2 – Create fabric product which has meter as unit with default length

Want to create a fabric type of product which has Meter/Centi meter as selling unit in Magento 2.

I’m following this Question Can you sell product (fabric) by the metre in Magento?, we can use decimal unit in quantity with simple product which will work / please share other approach also.

I want this product to have 2 meters by default and than customer can add more as per his requirement. How can we achieve this.

2 + User Input => This I can think we can achieve by custom option (other suggestion are also appreciated ) , but how can we have the default 2 meter quantity/ length for the product ?

spfx – Default font color of richtext control

Is it possible to set the default color of a Richtext React control element?
I’m trying to make my webpart responsive to the section background color.

It’s possible to give the richtext element its own class but I can’t get it to respond to setting the color property.

If Short Name is enabled on iOS and two contacts share the same first name, how will their last name be displayed with the default setting?

When navigating to Settings/Contacts on an iOS device, an option called “Short Name” is listed; briefly, this allows a user to specify how they’d like names to be shown within apps that support this feature. If enabling this setting and keeping it at the default of “First Name Only”, assuming that a user has two people with a first name of “John” in their contacts – both having different last names, how would iOS display this? Would it simply ignore the last name entirely (as dictated by the “Short Name” setting), or are exceptions made in this case – so that, for example, the first name and first letter of a contact’s last name will be shown?

networking – tplink router: how to route default traffic to another specific IP

I have a tp-link router TD-W8960N 300Mbps Wireless N ADSL2+ Modem Router, which I use to connect to the internet via PPPoE. I have a backup internet connection with its own router, connected to the tp-link one through a LAN cable.

backup router

What I want is changing the routing table when the first PPPoE connection is down, and routing all the incoming traffic on the tp-link to the second router, but I’m not figuring it out how. What I did is connecting via the telnet and do the following:

 > route show
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *      UH    0      0        0 ppp2     *        U     0      0        0 br0
default         *              U     0      0        0 ppp2
 > route delete default
Invalid destination IP address
 > route add default
Invalid destination IP address
 > route add
Please at least enter gateway IP or interface

I also tried to add it via the HTTP interface, but it tells me that is an invalid address. Maybe I can’t do it with this specific router and its firmware, but I don’t know. Any help is appreciated.

evaluation – Mathematica 12.1 is treating all my cells as raw texts by default

I was once using Mathematica 11 it all works fine – when I create new Notebook (.nb) input like 1+1 and press shift+enter, it shows output(1):= 2 directly

But now for 12.1 when I create new notebook and do the same thing, it is treating my input 1+1 as plain text by default, when i press shift+enter there is just a linebreak.. no evaluation at all.

I find when I go to the menu -> cell -> cell properties and tick Evaluatable then the input can work well as Mathematica 11. BUT when i input Plot(x,{x,1,2}), it gives output -Graphics-!! Without showing what the graphic is! I then have to manually convert the output cell to StandardForm to show the graph! I have to do such things everytime, why is 12.1 getting me so much ados ..and how can i remove such tedious things making it funcation just like what mathematica 11 does?

Pardon me I’m a complete nooooooob and really searched goooogle tons of times not getting the answer….