UpdatesDeployment.log shows entries for wmiNamespace.Get (0x80041002)

# UpdatesDeployment.log shows entries for wmiNamespace.Get

## Log Entry
```text
wmiNamespace.Get (L"CCM_PrePostActions.SiteSettingsKey=1", &wmiObject), HRESULT=80041002 (D:\dbs\sh\cmgm\1213_044837_0\cmd\9\src\client\mtc\Orchestration.cpp,30)	UpdatesDeploymentAgent	8/19/2025 3:31:10 PM	37324 (0x91CC)
```

## Resolution

Repair Configuration Manager client.

2348. Number of Zero-Filled Subarrays

Given an integer array nums, return the number of subarrays filled with 0. A subarray is a contiguous non-empty sequence of elements within an array.
/**
 * @param {number[]} nums
 * @return {number}
 */
var zeroFilledSubarray = function(nums) {
    let total = 0;      // Final count of zero-filled subarrays
    let count = 0;      // Tracks length of current zero streak

    for (let i = 0; i < nums.length; i++) {
        if (nums[i] === 0) {
            // Extend the current zero streak
            count++;
        } else if (count > 0) {
            // End of a zero streak: add subarray count using arithmetic sum formula
            total 

REBASE

sono su testing -> mi sposto su master e poi faccio 

MI DEVO TROVARE SU MASTER
git rebase testing 
poi pusho

Liquid - get variant id in options

{%- liquid
  assign selected_variant = product.selected_or_first_available_variant
  assign num_options = product.options | size

  assign opt1_value = selected_variant.option1
  assign opt2_value = selected_variant.option2
  assign opt3_value = selected_variant.option3

  case option.position
    when 1
      assign opt1_value = value
    when 2
      assign opt2_value = value
    when 3
      assign opt3_value = value
  endcase

  assign matching_variant_id = blank
-%}

{%-

Работа.Elastic билд параметров указыным запросом

    private function applyToQueryBuilderSearch(ProductQueryBuilderInterface $queryBuilder): void
    {
        $skus = $this->getSkus();
        if ($skus) {
            $queryBuilder->addFilterBySku($skus);
        }

        $topSku = $this->getTopSku();
        if ($topSku) {
            $queryBuilder->addSortBySku($topSku);
        }

        $urlPath = $this->getUrlPath();
        if ($urlPath) {
            $queryBuilder->addFilterByUrlPath($urlPath);
        }

        $linkFilters = $thi

puppeteer

■ブラウザを立ち上げることなくブラウザを操作

const puppeteer = require('puppeteer');

const browser = await puppeteer.launch(); //ブラウザを開く
const page = await browser.newPage(); // 新しいタブを開く
await page.authenticate({ //認証情報を付与
  username: 'tkblp-test',
  password: 'WH6tIRyirrVp67N8tMMy'
});
await page.goto(url, {"waitUntil":"domcontentloaded"}); //指定されたURLに移動

//ページ全体のhtmlソースを文字列で返しcheerioで操作
const content = await page.content();
const $ = cheerio.load(content);
const headline1 = $('h1').text();

// 開いたページで関数を実行する
cons

PP Multi Col

Multi-Column layout pp for more complex layouts. (eg https://connerprairie2025.speakcreative.com/default-template)
<div class="pp-multi-col">
   <div class="section-copy">{{Module.FieldValues.SectionCopy}}</div>
   <ul class="multi-col-list {% Module.FieldValues.Layout %}">
      {% for Item in List.Items %}
         <li>{{Item.FieldValues.Content}}</li>
      {% endfor %}
   </ul>
   <div class="section-copy">{{Module.FieldValues.SectionEndCopy}}</div>
</div>

679. 24 Game

You are given an integer array cards of length 4. You have four cards, each containing a number in the range [1, 9]. You should arrange the numbers on these cards in a mathematical expression using the operators ['+', '-', '*', '/'] and the parentheses '(' and ')' to get the value 24. You are restricted with the following rules: The division operator '/' represents real division, not integer division. For example, 4 / (1 - 2 / 3) = 4 / (1 / 3) = 12. Every operation done is between two numbers. In particular, we cannot use '-' as a unary operator. For example, if cards = [1, 1, 1, 1], the expression "-1 - 1 - 1 - 1" is not allowed. You cannot concatenate numbers together For example, if cards = [1, 2, 1, 2], the expression "12 + 12" is not valid. Return true if you can get such expression that evaluates to 24, and false otherwise.
/**
 * @param {number[]} cards
 * @return {boolean}
 */
var judgePoint24 = function(cards) {
    // Convert all numbers to floats for real division
    const nums = cards.map(num => num * 1.0);

    function backtrack(arr) {
        // Base case: only one number left, check if it's close to 24
        if (arr.length === 1) {
            return Math.abs(arr[0] - 24) < 1e-6;
        }

        // Try every pair of numbers
        for (let i = 0; i < arr.length; i++) {
            for (let j = 0; j

Software Update stops at ASSIGNMENT_EVALUATE_SUCCESS

# Software Update stops at ASSIGNMENT_EVALUATE_SUCCESS

## Problem

UpdatesDeployment.log shows a software update being analyzed, but appears to stop at ASSIGNMENT_EVALUATE_SUCCESS.

## Symptoms

- Configuration Manager software update (or feature) deployment shows as Compliant. (even though the software update is not installed)

## Reason

The software update is not applicable to the system.

## Feature Update Deployment (check)

In Resource Explorer, under Hardware, check the UPGRADE_EXPERIENC

Multiple CU/SSU show as Installed (not Superseded)

# Multiple CU/SSU show as Installed (not Superseded)

## Problem

Running DISM to show currently installed packages, multiple Cumulative Update and/or Servicing Stack Update packages show a state of Installed, when only the latest should. All others should show as Superseded.

## Workaround

```batch
dism.exe /online /cleanup-image /startcomponentcleanup
dism.exe /online /cleanup-image /startcomponentcleanup /resetbase
```

Работа. Метод в котором у нас происходит билд параметров в эластик

    public function getByField(ProductRequestParams $requestParams): ProductQueryResult
    {
        $this->setStoreId($requestParams->getStoreId());

        $queryBuilder = $this->createQueryBuilder();
        $queryBuilder->addFilterByAvailable($requestParams->getStoreId(), (bool)$requestParams->isSalable());
        $queryBuilder->setSource(
            [
                'id',
                'url_path',
                'name',
                'sku',
                'brand',
               

gsheel spod projects command

Create and push docker image : 
  docker build -t europe-west1-docker.pkg.dev/g-prj-swo-spodeal-boxai/artifact-registry-boxai/box-ai-api:v1 .
  docker push europe-west1-docker.pkg.dev/g-prj-swo-spodeal-boxai/artifact-registry-boxai/box-ai-api:v1

change java version 
  sudo update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java
  export JAVA_HOME="/usr/lib/jvm/java-21-openjdk-amd64"
  
connect to DB
  gcloud sql connect sql-postgresql-boxai --user=admin --database=box

run lo

ODOO DEBUG PATHS

LOCAL                                                                                         REMOTE
/home/murgice/.cache/JetBrains/PyCharm2025.2/remote_sources/-695731418/-1171821208/odoo       /usr/lib/python3/dist-packages/odoo
/home/murgice/Projects/ODOO17/flexpos/addons_bp                                               /mnt/addons_bp
/home/murgice/Projects/ODOO17/flexpos/addons_themes                                           /mnt/addons_themes
/home/murgice/Projects/ODOO17/flexpos/addons_ex

837. New 21 Game

Alice plays the following game, loosely based on the card game "21". Alice starts with 0 points and draws numbers while she has less than k points. During each draw, she gains an integer number of points randomly from the range [1, maxPts], where maxPts is an integer. Each draw is independent and the outcomes have equal probabilities. Alice stops drawing numbers when she gets k or more points. Return the probability that Alice has n or fewer points. Answers within 10-5 of the actual answer are considered accepted.
/**
 * @param {number} n
 * @param {number} k
 * @param {number} maxPts
 * @return {number}
 */
var new21Game = function(n, k, maxPts) {
    // Edge case: if k == 0, Alice doesn't draw any cards, so score is 0 (always < n)
    // Or if n >= k + maxPts, Alice can reach any score < n with certainty
    if (k === 0 || n >= k + maxPts) return 1;

    const dp = new Array(n + 1).fill(0); // dp[i] = probability of reaching score i
    dp[0] = 1; // Base case: probability of starting at score 0 is 1

 

1323. Maximum 69 Number

You are given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9, and 9 becomes 6).
/**
 * @param {number} num
 * @return {number}
 */
var maximum69Number  = function(num) {
    // Convert the number into an array of digits
    const digits = num.toString().split('');

    let maxNum = num;

    // Try flipping each digit one by one
    for (let i = 0; i < digits.length; i++) {
        // Clone the original digits array
        const tempDigits = [...digits];

        // Flip the current digit if it's 6 or 9
        if (tempDigits[i] === '6') {
            tempDigits[i] = '9';

Opengist Synology NAS #docker

Opengist Synology NAS #docker
Reverse Proxy

Source:
Protocol: HTTPS
Hostname: opengist.yourname.synology.me
Port: 443

Check Enable HSTS

Destination:
Protocol: HTTP
Hostname: localhost
Port: 6157

Go to Control Panel / Network / Connectivity tab/ Check Enable HTTP/2 then click Apply. 

Go to Control Panel / Security / Advanced tab/ Check Enable HTTP Compression then click Apply.

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it opengist. Follow the instructions in t