magento2.2 – M2.2 | Button that can add multiple individual products to the cart all at once?

In short, we are looking for the ability to have a customizable button (be it through js, small module or whatever) to where we can have a button that would infact add multiple individual products to the customers cart via one click of the button, i.e. adding Product A, Product B and Product C with one click, rather than clicking each Add to Cart button individually.

After some googling, we can’t find this exact functionality anywhere and wonder if this is possible be it a basic js entry or via its own little module.

Universal browser based Dark Mode (Dark Reader) vs. Individual separate black themes on each site

I’m pondering an idea about browser based, concentrated dark mode/dark theme service’s that operate pretty much like current superb add-on Dark Reader.

What makes me wonder why does the community that usually optimizes for not repeating work among developers, does take the burden of developing a dark theme for pretty much every popular web application.

Wouldn’t it be wiser to develop a set of standards when it comes to colour management, maybe even a .darktheme config file to override some of the basic settings, alongside a single browser based dark mode program for every browser that operates on the principle of current dark reader? I mean the reader is so good that I pretty much prefer it to custom made dark modes on most of the sites anyway.

What’s your insight on this matter?

My personal opinion is that it’s the inevitable future, but I haven’t found any signs that the process has started yet.

EDIT- before someone suggests sticking to the Dark Reader extension, It’s all good but compare a little a bit clunky extension developed by few enthusiasts to fully fledged browser options backed by hundreds of full-time developers.

Thanks!

sql server – How to collapse rows with individual, contiguous dates into single rows with date range start and end

Given a data set like this:

Id Date Value
1 01/01/2021 100
1 01/02/2021 100
1 01/03/2021 100

…Rows excluded for brevity…

Id Date Value
1 12/29/2021 100
1 12/30/2021 100
1 12/31/2021 100
2 01/01/2021 100
2 01/02/2021 100
2 01/03/2021 100
2 06/01/2021 100
2 06/02/2021 100
2 06/03/2021 100

Is it possible to write a query to return a result set where each row is a contiguous date range, grouped by the id column? Like this:

Id Start Date End Date Sum of Value
1 01/01/2021 12/31/2021 36500
2 01/01/2021 01/03/2021 300
2 06/01/2021 06/03/2021 300

I’m imagining it will be some combination of window functions and group bys, but I’m not even sure it’s possible and didn’t want to fumble towards a solution that didn’t exist.

I’m using SQL Server 2017 and 2019, if that matters.

EDIT – I should have included that the date ranges can be long – months or years. For example, one of the collapsed rows could be a year long, coming from 365 individual rows. I just didn’t want to paste an example data set that was a thousand lines long.

bitcoincore development – How does an individual access the Bitcoin Core repo and contribute to it in the case that GitHub boots Bitcoin Core or the individual off GitHub?

It is not looking like Bitcoin Core will be moving from GitHub anytime soon (unless forced to).

How does an individual access the Bitcoin Core repo and contribute to it in the case that GitHub boots Bitcoin Core or the individual off GitHub?

What should an individual do in advance to prepare for this scenario?

plotting – question about individual color in plot

1. Map List on pairs in data:

ListPlot[List /@ data, 
 PlotStyle -> {Red, Blue, Darker[Green], Black, Purple, Gray}, 
 BaseStyle -> PointSize[Large]]

enter image description here

Alternatively, wrap each pair with Style:

styleddata = MapThread[Style[#, #2] &,
  {data, {Red, Blue, Darker[Green], Black, Purple, Gray}}]

enter image description here

ListPlot[styleddata, BaseStyle -> PointSize[Large]]

same picture

2. You can add plot markers using the options PlotMarkers or PlotTheme:

ListPlot[List /@ data, 
 PlotStyle -> {Red, Blue, Darker[Green], Black, Purple, Gray}, 
 PlotMarkers -> {Automatic, Medium}, 
 PlotLegends -> Placed[Defer /@ data, Right]]

enter image description here

ListPlot[List /@ data, 
 PlotStyle -> {Red, Blue, Darker[Green], Black, Purple, Gray}, 
 PlotTheme -> "PlotMarkers", 
 PlotLegends -> Placed[Defer /@ data, Right]]

enter image description here

Use PlotTheme -> "OpenMarkersThick" to get

enter image description here

theming – Can I add pagination to individual blog posts in my twig file?

I have a views page which has all the blog articles, and you can click on a link to bring you to a single blog page.

On that single blog page I want to be able to add buttons for Previous and Next post. Something like

<a class="white-btn" href="{{ previous.href }}">Previous Article</a>
 <a class="white-btn" href="{{ next.href }}">Next Article</a>

Is this possible?

How to get SharePoint site usage report at individual user level?

Except for the M365 Audit log report, there is no data collected on a per user basis for SharePoint online. The Audit log report collects EVERYTHING about that user’s activity, not just in SharePoint, so it is understandable that it is only available to admins, and it would typically only be used in security and discovery scenarios.

AFAIK, SharePoint 2010 on premises was the last version that provided site statistics with named users, but only visit counts as a total, nothing more granular. Reporting on a user’s activity reveals a lot of information that has a confidential nature. I guess this is one of the reasons that this kind of data collection is no longer used or available to site owners.

So, if you have a security or discovery concern, talk to your IT folks. But other than that, you won’t be able to find user based usage stats for SharePoint online.

8 – How to view transactions and individual locations’ stock from Commerce Stock?

Created a few test stock transactions but there literally seems to be no way to view them. The Stock Transaction page says “create and view commerce stock transactions” however it only brings up a create form when referencing a SKU even if it has a few transactions tied to it.

The total stock number is correct but there’s no way to break it down by different locations or show notes as far as I can tell. Creating a few Views to show the different stock options and using every sensible relationship hasn’t helped either.

statistics – Construct the indicated prediction interval for an individual y.

Construct the indicated prediction interval for an individual y.
The equation of the regression line for the paired data below is y = 3x and the standard error of the estimate is = 2.2361. Find the 90% prediction interval of y for x = 3.

x: 2 4 5 6 7

y: 7 11 13 20 27

This is what I got so far

n = 5

1.860 from the table based on a 90% prediction interval

(2.2361) (1.860) = 4.159

1 + 1/4 + 4(3 – 4.25)squared/4(81) – (17)squared (took square root of total)

After taking the square root of the total I got 0.423

0.423 * 4.159 = 1.759

I got stuck here I feel like I missed up any help guys?

power automate – How to dynamically create link to an individual email in Outlook web app when using the trigger ‘When a new email arrives in a shared inbox (V2)’?

When using the Power Automate trigger:

When a new email arrives in a shared inbox (V2)

I have access to the following message related variables:

Message ID
Internet Message ID
Conversation ID

How can I dynamically create a link so that users can click on it and go directly to the email?

I just need to know the format of the URL that will achieve the desired effect – I have tried the following but it doesn’t seem to open the individual email, just the mailbox:

https://outlook.office.com/mail/shared_mailbox_email_address_here/inbox/id/conversation_id_here%3D