Magento2 : Which Magento Event for Update cart quantity only?

I have work on the task in which I need to handle quote item, here I have use two event

checkout_cart_add_product_complete

checkout_cart_update_item_complete

here it work fine, But when I have change Quantity directly in mini cart then my Logic was not work. For this I am find some event which work for me. If You have any solution this Pleas Provide Me

How to update a NoSQL database and publish event atomically in an event-driven microservices architecture?

In an event-driven microservices architecture, services typically need to update their domain state and publish an integration event to a service bus at the same time (Either both operations complete, or none). When using a relational database this is typically achieved using the outbox pattern: a single entry is saved in the database that indicates that event X needs to be published. This entry is saved as part of the same transaction that contains the domain-state changes. A background process then polls these entries and publishes the events. This means that the event will eventually be published, making the system eventually consistent.

However, NoSQL databases do not favor the idea of updating multiple documents in a single transaction, and many of them do not support it without ugly workarounds. Below is a list of potential solutions (Some more ugly than others):

1. Outbox pattern variation:

Outbox pattern, but instead of having a separate collection of documents for the pending events, they will be saved as part of the domain entity. Each domain entity will encapsulate a collection of events that remain to be published and a background process will poll such entities and publish the events.

Cons:

  1. If the background process publishes the event but fails to remove it from the domain entity, it will re-publish it. This shouldn’t really be a problem if updates are idempotent or if the event handler is able to identify duplicate events.
  2. Domain entities are corrupted with integration events.

2. Event sourcing:

Event sourcing makes this problem go away but is very complex to implemented and a big overhead for small microservices.

Cons:

  1. Complex, might need complete re-design of the way services work with data.

3. Listening to own events:

The service will only publish an event that is also subscribed to (It will not update its state as part of the same operation). When the service bus sends the event back for handling, the service will update its domain entity.

Cons:

  1. Other microservices may handle the event before the origin microservice. This may cause problems if they assume that the event already happened when in fact it hasn’t.

Are there any other solutions to this problem? Which is the best one?

WDF VIOLATION Blue Screen after Upgrading Mac to Windows 10 May 2019 Update (1903) Edition

I did an upgrade on my iMac (21.5-inch, Mid 2011) from a previous version of Windows 10 to the current version. The Windows 10 ISO file was downloaded from the official Microsoft website. Afterwards, the Mac would get the following “Blue Screen of Death” error message.

wdf

The Windows Support Software was downloaded by using the BootCamp Assistant. I confirmed the files are the same as the files that can be downloaded from the Apple website Boot Camp Support Software 5.1.5621. I installed Windows 10 to legacy BIOS boot.

Note: The Windows Support Software download by using the Boot Camp Assistant can vary depending on the Mac model.

Below is some information about my configuration.

iMac (21.5-inch, Mid 2011)
iMac12,1
High Sierra Version 10.13.6
BootCamp Version 5.1 (Build 5621)
Windows 10 May 2019 Update (1903) English Edition.
Win10_1903_V1_English_x64.iso

I also tried a clean install of Windows 10 and this made no difference. The error still occurred. How can I avoid getting this error message?

After some investigation, I found the error occurs after installing the Windows Support Software. After some trial and error experiments, I determined the offending file in Windows Support Software is named BootCamp/Drivers/Apple/BootCamp.msi.

Cannot update expired ServiceBus certificate

My servicebus has an expired certificate. So I would like to change it.

I have tried the following

PS C:\Program Files\Service Bus.0> Set-SBCertificate -SBFarmDBConnectionString  'Data Source=MYDBSERVER\MYINSTANCE;Initial Catalog=SbManagementDB;Integrat ed Security=True' -FarmCertThumbprint 'dac7fc30d5c534a151d3f21cbdee557ea9abfdfa'  Set-SBCertificate : Certificate requested with thumbprint 6450F755020335011BC6D6B5522675DCF15EC94A not found in the certificate store LocalMachine\My. 

6450F755020335011BC6D6B5522675DCF15EC94A is the thumbprint of the expired certificate

I’ve tried following this article. But after running certutil -repairstore my “serialnumber” and get-sbfarm I once again get:

get-sbfarm : Certificate requested with thumbprint 6450F755020335011BC6D6B5522675DCF15EC94A not found in the certificate store LocalMachine\My. At line:1 char:1 + get-sbfarm 

So, how can I change an expired certificate for ServiceBus ?

Magento 2 RESTful API update category

I am using Magento 2.0.11. I would like to use the RESTful API

(HTTP:// magento2URL/index.php/rest/V1/categories/(category ID))  

to change the “Is Active” attribute of one category from True to False.

enter image description here

The JSON packet I am sending is as following:

{"category": {"id":399,"parentId": 2,"name": "PRIMADONA","isActive": false,"position": 0,"includeInMenu": false} 

and I also tried:

{"category": {"id":399,"parentId": 2,"name": "PRIMADONA","is_active": false,"position": 0,"include_in_menu": false} 

The magento backend responded http 200 OK but the is_active is not updated:

< HTTP/1.1 200 OK < * Closing connection #0 {“id”:399,”parent_id”:2,”name”:”PRIMADONA”,“is_active”:true,”position”:0,”level”:2,”children”:””,”updated_at”:”2017-08-04 08:38:………………….>

I also tried adding “all” into the RESTful URL:

(magento2URL/index.php/rest/all/V1/categories/<category ID>) 

But none of the above methods are working for me.

Is there any workaround to update the “Is Active” attribute of one category?

How MO’S algorithm with update query works?

MO’S algorithm is used to answer queries related to a given array by dividing it into blocks(https://blog.anudeep2011.com/mos-algorithm/).Though i understood general MO’S algorithm but i am facing difficulty to understand MO’S algorithm with updates (https://www.youtube.com/watch?v=gUpfwVRXhNY)

Since articles related to MO’S algorithm with updates is rare can someone who knows this algorithm can explain it.

sudo apt-get update fail related to cuda 9.2

I try to implement Gazebo on ubuntu 16.04, and it asks to do the command

sudo apt-get update 

However, I got the error like this:

Err:5 file:/var/cuda-repo-9-2-local  Packages                                   File not found - /var/cuda-repo-9-2-local/Packages (2: No such file or directory) Get:6 file:/var/cuda-repo-9-2-local  Translation-en_US                          Ign:6 file:/var/cuda-repo-9-2-local  Translation-en_US                          Hit:8 http://packages.ros.org/ros/ubuntu xenial InRelease                       Hit:9 http://apt.llvm.org/xenial llvm-toolchain-xenial-7 InRelease              Hit:10 http://linux.teamviewer.com/deb stable InRelease                         Ign:11 http://dl.google.com/linux/chrome/deb stable InRelease                   Hit:13 http://us.archive.ubuntu.com/ubuntu xenial InRelease                     Get:14 http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial InRelease [4,264 B] Hit:15 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease             Hit:16 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease           Hit:17 http://ppa.launchpad.net/jonathonf/ffmpeg-4/ubuntu xenial InRelease      Hit:18 http://dl.google.com/linux/chrome/deb stable Release                     Get:19 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]     Hit:20 https://download.docker.com/linux/ubuntu xenial InRelease                Hit:21 https://packages.microsoft.com/repos/vscode stable InRelease             Hit:22 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease                Hit:23 https://dl.winehq.org/wine-builds/ubuntu trusty InRelease                Hit:24 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu xenial InRelease Fetched 364 kB in 12min 2s (504 B/s)                                            Reading package lists... Done W: The repository 'file:/var/cuda-repo-9-2-local  Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch file:/var/cuda-repo-9-2-local/Packages  File not found - /var/cuda-repo-9-2-local/Packages (2: No such file or directory) E: Some index files failed to download. They have been ignored, or old ones used instead.` 

Anyone can help? Thanks!

Can some one explain how MO’S algorithm with update query works?

MO’S algorithm is used to answer queries related to a given array by dividing it into blocks(https://blog.anudeep2011.com/mos-algorithm/).Though i understood general MO’S algorithm but i am facing difficulty to understand MO’S algorithm with updates (https://www.youtube.com/watch?v=gUpfwVRXhNY)

Since articles related to MO’S algorithm with updates is rare can someone who knows it explain it.

How often does Waze update points in map while driving?

Today, before I started driving to work, I opened Waze and it displayed gas stations close to me, as expected.

I then noticed that after driving 10 miles, the map was still showing the old points. The map wasn’t refreshing. I had to close the app and open it to see the new points closest to me.

My question: how often does Waze update the map while I’m driving?

Thanks.