magento2 – Bug in translation add to cart: translation resets to default value after adding product to cart (only in production mode)

I experience a problem on a Magento 2.4.1 store.

The problem: the Add to cart button on the product page is translated correctly on initial load. This is in Dutch in my case: “In Winkelwagen”. After clicking the button it changes to untranslated text “Adding…” and then “Added” and finally it changes to “Add to Cart” so it resets from Dutch to English when using the add to cart button.

This only happens in production mode. In developer mode the several translations work as expected.

I did some research I found similar issues but those are dated.

Questions:

  • Is this a known bug for this version? (M2.4.1)
  • How can I fix it?**

motorola – Will my phone be unlocked after it factory resets itself?

I forgot the password of my phone, and it says after 4 more failed attempts that it will be wiped clean. If that happens, will my phone be unlocked and ready for use again? I really don’t care about the data on it, because everything I had is easy to get back (mainly just social media apps like instagram/discord).

Any sort of help would be appreciated to the fullest, because I just want to be able to use my phone again.

motorola – Will be phone be unlocked after it facotry resets itself?

I forgot my password of my phone, and it says after 4 more failed attempts that it will be wiped clean, if that happens, will my phone be unlocked and ready for use again? I really don’t care about the data on it, because everything I had is easy to get back. (Mainly just social media apps like instagram/discord)
Any sort of help would be appreciated to the fullest, because I just want to be able to use my phone again.

sharepoint online – SPO Updates to an application on the page are not persistent and all activity resets on page refresh

I am trying to create a Kanban/task manager that allows users to move ‘Cards’ from one status to another in order to reflect the current status of a task. Below is the code, but the problem is that the changes made when a card is moved are not persistent — enter image description hereif the page is refreshed, all of the activity is reset. I’m attaching a screenshot for reference.

<!DOCTYPE html>
    <html>
       <head>
          <meta charset = "utf-8">
          <title>jQuery UI Widget - Default functionality</title>
          <link rel = "stylesheet" href = "//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
          <script src = "https://code.jquery.com/jquery-1.10.2.js"></script>
          <script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
    <!-- css --> 
     <style>
      body {font-family:Roboto;}
      h2 {margin:5px;}
      input(type=text) {margin:10px}
      input(type=button) {margin:10px}  
      .container {width: 20%; float:left;clear: right;margin:10px; border-radius: 5px;}
      .sortable { list-style-type: none; margin:0; padding:2px; min-height:30px; border-radius: 5px;}
      .sortable li { margin: 3px 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px;}
      .sortable li span { position: absolute; margin-left: -1.3em; }
      .card{background-color:white;border-radius:3px;}
      .head-lt {color:#fcfcf4;}
      .head-dk {color:#37474F;}
      </style>
      <script>
      $(function() {
        $( ".sortable" ).sortable({
          connectWith: ".connectedSortable",
          receive: function( event, ui ) {
            $(this).css({"background-color":"#fcfcff4"});
          }
        }).disableSelection();
        $('.add-button').click(function() {
            var txtNewItem = $('#new_text').val();
            $(this).closest('div.container').find('ul').append('<li class="card">'+txtNewItem+'</li>');
        });    
      });
      </script>      
    </head>
    <body>
    <div>
    <div class="container" style="background-color:#EF4931;">
    <h2 class="head-lt">Not started</h2>
    <ul class="sortable connectedSortable">
      <li class="card">Activity A1</li>
      <li class="card">Activity A2</li>
      <li class="card">Activity A3</li>
    </ul>
    <div class="link-div">
        <input type="text" id="new_text" value=""/>
        <input type="button" name="btnAddNew" value="Add" class="add-button"/>
    </div>
    </div>
    <div class="container" style="background-color:#ffd300;">
    <h2 class="head-dk">In-progress</h2>
    <ul class="sortable connectedSortable" >
      <li class="card">Activity B1</li>
      <li class="card">Activity B2</li>
    </ul>
    </div>
    <div class="container" style="background-color:#103c6d;">
    <h2 class="head-lt">Final stage</h2>
    <ul class="sortable connectedSortable" >
      <li class="card">Activity C1</li>
      <li class="card">Activity C2</li>
    </ul>
    </div>
    <div class="container" style="background-color:#B9CEC5;">
    <h2 class="head-dk">Completed</h2>
    <ul class="sortable connectedSortable" >
    </ul>
    </div>
    </div>
    
    <script type="text/javascript">
    function storageAvailable(type) {
        var storage;
        try {
            storage = window(type);
            var x = '__storage_test__';
            storage.setItem(x, x);
            storage.removeItem(x);
            return true;
        }
        catch(e) {
            return e instanceof DOMException && (
                // everything except Firefox
                e.code === 22 ||
                // Firefox
                e.code === 1014 ||
                // test name field too, because code might not be present
                // everything except Firefox
                e.name === 'QuotaExceededError' ||
                // Firefox
                e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&
                // acknowledge QuotaExceededError only if there's something already stored
                (storage && storage.length !== 0);
        }
    }
    </script>
    
    
    </body>
    </html>

macos – Location Services resets after each reboot

Since some time back, Location Services are always reset after I reboot the computer. The service disables and the list of applications under Security & Privacy > Location Services goes empty. And the LocationServicesEnabled value goes missing from NVRAM. The service works fine while activated, though.

I noticed that files were not written to /var/db/locationd correctly. So I deleted /var/db/locationd and re-installed macOS via Recovery Mode (no wipe, just install). Which has re-created the locationd folder, but it contains only the Library foler. No clients.plist. The com.apple.locationd.xxxx files under /var/db/locationd/Library/Preferences/ByHost are aslo missing. I’ve tried to turn LS off/on and allow specific applications, but the files are still missing.

Any idea how I can restore Location Services functionality? I thought a re-install would restore everything…

Running macOS 11.0.1 beta 2.

I have another volume with another OS installation (also 11.0.1 beta 2) where LS works fine.

sharepoint enterprise – How to create an auto incrementing counter that resets every year

I am new to working with SharePoint list. Currently, I am tasked to create a unique Sample ID that will be created by concatenating multiple calculated fields in SharePoint list, but the catch is every year the number at the end needs to reset. I am having trouble creating an auto incrementing field that resets every year. Any thoughts? Any help would be greatly appreciated!

Example:
2020PI1
2020PI2
2021PI1
2021PI2

Why is password confirmation common in password resets and updates?

I’ve seen multiple websites with only one field for the password during registration, whereas there are two fields – Enter Password and Confirm Password – for password reset and update tasks.

sharepoint online – automatic increment that resets every year

I am trying to get a number with this format:
20-1000, 20-1001, 20-1003 ect. where 20 is the current year and i want to reset the counter every year, so next year it will be 21-1000, 21-1001, 21-1003 etc.

= IF (TEXT ((created), "mm") = "01" & TEXT ((created), "dd") = "01"), "1000", automatic increment number

This is what I have so far, I test the creation date of the article and if if 01/01 I reset the counter to 1000, I must continue with the counter .

graphics – Rasterize resets the PlotRange?

I used zome polynomials evaluated on a grid with Array control functions and characteristics of certain polygons, which I evaluated using Rasterize function and I realized that the results of these two sampling paradigms are not consistent. It looks like Rasterize ignore or adjust the PlotRange option. The best can be illustrated by this MWE:

Manipulate[ 
 graphics = 
  Graphics[{GrayLevel[0], Disk[{0, 0}, .8]}, 
   PlotRange -> {{-1, 1}, {-1, 1}}, Frame -> True]; 
 raster = Rasterize[
   Graphics[{GrayLevel[0], Disk[{0, 0}, .8]}, 
    PlotRange -> {{-1, 1}, {-1, 1}}], 
   RasterSize -> {picsize, picsize}, ImageSize -> {picsize, picsize}];
 array = Image@
   Boole@Array[{##} [NotElement] Disk[{0, 0}, .8] &, {picsize, 
      picsize}, {{-1, 1}, {-1, 1}}];
 Grid[{
   {"Graphics", "Rasterize", "Array", "Rasterize vs Array"}, 
   Show[#, ImageSize -> 200, Frame -> True] & /@ {graphics, raster, 
     array,
     ColorCombine[{raster, array, array}]}}],
 {{picsize, 15}, 3, 50, 1}]

In this example, when a disc with a radius of 0.8 is displayed in a square region [-1,1] ^ 2, it is visible that even if Graphics and Array show a well-centered disc regardless of the spatial sampling rate, Rasterize behaves strangely.

Is this a bug or did I miss something?

charging – Android system resets to default USB configuration when connecting to PC

Whenever I connect my Samsung Galaxy A40 running Android 9.0 to a laptop or PC, I get a annoying prompt to allow data transfer, and the next setting that I had set to "Phone only charging" is reset to "File transfer":

enter description of image here

However, I only want to charge the phone and never allow data transfer for security reasons, as I often have to connect my phone to public or business computers to charge it. The service that sends the notification / prompt is called Android system and the icon looks a bit like this (only with a filled font):

Android system

I enabled the development options and explicitly configured the USB connection settings on do not allow data transfer. Why Android system continue to change my settings and request data transfer? Is this normal behavior? Is there a way to regain control without having to root the device?