79795545

Date: 2025-10-21 07:26:05
Score: 2
Natty:
Report link
ls -v *.txt | cat -n | while read i f; do mv $f $(printf "%04d.txt" $i); done
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Viktor

79795540

Date: 2025-10-21 07:20:03
Score: 0.5
Natty:
Report link

I tested this locally with Spring Boot 3.4.0 on Java 25 using Gradle 9.1.0 and the app failed to start with the same error you mentioned. This happens because the ASM library embedded in Spring Framework 6.2.0 (used by 3.4.0) doesn’t support Java 25 class files.

When I upgraded to Spring Boot 3.4.10 (the latest patch in the 3.4.x line), the same app ran fine on Java 25.

It looks like a patch-level issue, early 3.4.x releases didn’t fully support Java 25, but the latest patch fixed the ASM support.

What you can do is,

  1. Upgrade to Spring Boot 3.4.10 (if you want to stay on 3.4.x).

  2. Upgrade to Spring Boot 3.5.x, which fully supports Java 25.

Either option works fine on Java 25.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: SamPaul Isaac

79795535

Date: 2025-10-21 07:13:02
Score: 1.5
Natty:
Report link

Pedro Piñera helped answer here and thanks!

Basically Tuist sets a default version in the generated projects here https://github.com/tuist/tuist/blob/88b57c1ac77dac2a8df7e45a0a59ef4a7ca494e9/cli/Sources/TuistGenerator/Generator/ProjectDescriptorGenerator.swift#L188

which is not configurable as of now.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: Hongbo Miao

79795533

Date: 2025-10-21 07:10:01
Score: 5
Natty:
Report link

I have a similar kind of issue, where the page is splitting unnecessarily.
I have three components a header, a title and a chart using chart js, the issue is the header and title is coming in the first page and chart is going to the second page keeping the first page blank, so what else I can do here it is working fine when the chart data is fit with in the first page.

Can somebody please help me to fix this issue

Here is the code

 <div className="chart-container">
            <div className="d-flex justify-content-between">
                <label className="chart-title m-2">{props.title}</label>
            </div>
            {data.length == 0
                ? <div className="no-data-placeholder">
                    <span>No Data Found!</span>
                </div>
                : <div id={props.elementID} style={props.style}></div>
            }

        </div>
Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): help me to fix
  • RegEx Blacklisted phrase (3): please help me to fix this
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rishikesh T

79795530

Date: 2025-10-21 07:08:00
Score: 2.5
Natty:
Report link

Since ngx-image-cropper adjusts the image to fit the crop area, zooming out scales the image instead of keeping its original size. MaintainAspectRatio or transform settings should be used.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Psychic Gurudev

79795526

Date: 2025-10-21 07:01:59
Score: 1
Natty:
Report link

You could also set your conditions without AssertJ and then just verify the boolean value with AssertJ.

Like this:

boolean result = list.stream()
                   .anyMatch(element -> element.matches(regex) || element.equals(specificString));

assertThat(result).isTrue()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Diego Pansica

79795516

Date: 2025-10-21 06:45:55
Score: 1.5
Natty:
Report link

It's probably ...Edit Scheme...->Run->Diagnostics->API Validation. Uncheck this and give it a try.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Tim

79795499

Date: 2025-10-21 06:12:49
Score: 0.5
Natty:
Report link

I know this is an old post, but if you're here from a "Annex B vs AVCC" search, I thought it would be worth adding another opinion, because what I believe to be the most important reason to use Annex B has not been mentioned.

@VC. One has already provided some technical information about each of the formats, so I will try not to repeat that.

I wonder in which case we should use Annex-B

To answer you question directly, the Annex-B start codes allow a decoder to synchronise to a stream that is already being transmitted, like a UDP broadcast or wireless terrestrial tv broadcast. The start codes also allow the decoder to re-synchronise after a corruption in the media transport.

AVCC does not have a recovery mechanism, so cannot be used for purposes like I describe above.

To be clear, each of the formats have practical advantages and disadvantages.
Neither is "better" - they have different goals.

The comparison of these formats is similar to MPEG-TS vs MPEG-PS.
Transport stream (-TS) can be recovered if the stream is corrupted by an unreliable transport.
Program stream (-PS) is more compact and easier to parse, but has no recovery mechanism, so only use it with reliable transports.

For those parsing NALU's out of a byte stream that is stored on disk, you might reasonably question why you are searching for start codes in a file on disk, when you could be using a format that tells you the atom sizes before you parse them. Disk storage is reliable. So is TCP transmission. Favour AVCC in these contexts, if it is convenient to do so.

However, keep in mind that constructing the box structures in AVCC is more complex than just dropping start codes between each NALU, so recording from a live source is much simpler with Annex B. Apart from the additional complexity, recording directly to AVCC is also more prone to corruption if it is interrupted, because that format requires that the location of each of the frame boxes is in an index (in moov boxes) that you can only write retrospectively when you're streaming live video to disk. If your recording process is interrupted (crash, power loss, et, al.), you will need some repair process to fix the broken recording (parsing the box structures for frames and building the moov atom). An interrupted Annex B recording, however, will only suffer a single broken frame in the same scenario.

So my message is "horses for courses".
Chose the one that suits your acquisition/recording/reconstruction needs best.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: pq.

79795495

Date: 2025-10-21 06:02:47
Score: 3
Natty:
Report link

You are trying to run the command on a generic notebook as a generic pyspark import.

The pipeline module can be accessed only within a context of a pipeline.

please refer this documentation for clarity:

https://docs.databricks.com/aws/en/ldp/developer/python-ref/#gsc.tab=0

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pranav ramachandran

79795494

Date: 2025-10-21 06:01:46
Score: 1
Natty:
Report link

Currently I'm not allowed to Add/reply to comments, so i'll just make an Individual answer,

For MacOs, the solution is the same as Bhavin Panara's Solution, the directory is
/Users/(YourUser)/Library/Unity/cache/packages/packages.unity.com

Reasons:
  • Blacklisted phrase (1): to comment
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammad Hafiz

79795489

Date: 2025-10-21 05:47:44
Score: 0.5
Natty:
Report link

You can use

time.strftime('%Y-%m-%d %H:%M:%S.%f')[:-3])
Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Сергей Болотов

79795486

Date: 2025-10-21 05:44:43
Score: 5.5
Natty: 5.5
Report link

Cant you probably just look up the JS code of the router page and see what requests it sends?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can
  • Low reputation (1):
Posted by: LightingDoor

79795482

Date: 2025-10-21 05:23:38
Score: 5
Natty: 5.5
Report link

i am stuck when i have ti submet where thay aked if im a android

Reasons:
  • RegEx Blacklisted phrase (1.5): i am stuck
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Birtchi Pty Ltd Birtchy

79795481

Date: 2025-10-21 05:23:38
Score: 1.5
Natty:
Report link
(17f0.a4c): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00007ffa`0a3006b0 cc              int     3

That's just the WinDbg's break instruction exception (a.k.a int3 opcode 0xcc)

According to this article the executable part is in .text, According to this article the executable part is in .text and .rodata, is it possible to grab the bytes in .text and convert them to a shellcode then injecting it into a process

It greatly depends on the executable! As long as the data isn't being executed as code and vice versa, it's gonna be fine.

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (1): is it possible to
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: winapiadmin

79795474

Date: 2025-10-21 05:03:34
Score: 1
Natty:
Report link

After testing the same app on the same Samsung device updated to Android 16 (recently released for Samsung), I can confirm that Audio Focus requests now behave correctly, they are granted when the app is running a foreground service, even if it’s not the top activity.

This indicates the issue was specific to Samsung’s Android 15 firmware, not to Android 15 itself. On Pixel devices, AudioFocus worked as expected on both Android 15 and 16, consistent with Google’s behavior change documentation.

In short:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: scarrilho

79795473

Date: 2025-10-21 04:57:33
Score: 1
Natty:
Report link
document.querySelectorAll('button[aria-pressed="true"][aria-label="Viewed"]').forEach(btn => btn.click());

Updated command for 2025 github new UI

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sandesh Baliga

79795459

Date: 2025-10-21 04:06:24
Score: 3
Natty:
Report link

I just got this number a couple of hours ago and it's been banned what may I do so that. May tart using telegram agin

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Scott Lambert

79795443

Date: 2025-10-21 03:28:16
Score: 1.5
Natty:
Report link

From the Google Cloud console, select your project, then in the top bar, search for buckets. You will see that you have one created. Enter it and you will obtain the list of .zip files, one for each deployment.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Mariano Montañez Ureta

79795416

Date: 2025-10-21 01:58:58
Score: 0.5
Natty:
Report link

Well, the official GitHub documentation says they used third party for language detection and code hilights.

https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

"We use Linguist to perform language detection and to select third-party grammars for syntax highlighting. You can find out which keywords are valid in the languages YAML file."

You may try to do the same thing.

Actually, I wonder how this page, StackOverflow may do it, since the code you paste here, is well highligted.

You may think in how to install the third party libraries and use it in your own project. My recommendation would be to:

The most common and effective way to render Markdown with syntax highlighting (including for JSX) in a React application is to combine the react-markdown library with react-syntax-highlighter.

You're correct that Markdown itself doesn't highlight code; it just identifies code blocks. You may need to use a separate library to parse and style that code. react-syntax-highlighter is a popular choice because it bundles highlighting libraries like Prism and Highlight.js for easy use in React.

An useful example might be:

Step 1: Install Dependencies

First, you need to install the necessary packages:

npm install react-markdown react-syntax-highlighter
# Optional, but recommended for GitHub-style markdown (tables, etc.)
npm install remark-gfm

Step 2: Create the Component

Now, create a component that renders the Markdown. The key is to use the components prop in react-markdown to override the default renderer for code blocks.

import React from 'react';
import ReactMarkdown from 'react-markdown';
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
// You can choose any theme you like
import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism';
import remarkGfm from 'remark-gfm';

// The markdown string you want to render
const markdownString = `
Here's some regular text.

And here is a JSX code block:

\`\`\`jsx
import React from 'react';

function MyComponent() {
  return (
    <div className="container">
      <h1>Hello, React!</h1>
    </div>
  );
}
\`\`\`

We also support inline \`code\` elements.

And other languages like JavaScript:

\`\`\`javascript
console.log('Hello, world!');
\`\`\`
`;

function MarkdownRenderer() {
  return (
    <ReactMarkdown
      remarkPlugins={[remarkGfm]} // Adds GFM support
      children={markdownString}
      components={{
        code(props) {
          const { children, className, node, ...rest } = props;
          const match = /language-(\w+)/.exec(className || '');
          return match ? (
            <SyntaxHighlighter
              {...rest}
              PreTag="div"
              children={String(children).replace(/\n$/, '')}
              language={match[1]} // e.g., 'jsx', 'javascript'
              style={vscDarkPlus}  // The theme to use
            />
          ) : (
            <code {...rest} className={className}>
              {children}
            </code>
          );
        },
      }}
    />
  );
}

export default MarkdownRenderer;
Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sebastian Romero Laguna

79795411

Date: 2025-10-21 01:48:55
Score: 4
Natty:
Report link
# compare_icon_fmt.py
import cv2
import numpy as np
from dataclasses import dataclass
from typing import Tuple, List

# ===================== T H A M  S Ố  &  C ᾳ U  H Ì N H =====================

@dataclass
class RedMaskParams:
    # Dải đỏ HSV đôi: [0..10] U [170..180]
    lower1: Tuple[int, int, int] = (0, 80, 50)
    upper1: Tuple[int, int, int] = (10, 255, 255)
    lower2: Tuple[int, int, int] = (170, 80, 50)
    upper2: Tuple[int, int, int] = (180, 255, 255)
    open_ksize: int = 3
    close_ksize: int = 5

@dataclass
class CCParams:
    dilate_ksize: int = 3
    min_area: int = 150
    max_area: int = 200000
    aspect_min: float = 0.5
    aspect_max: float = 2.5
    pad: int = 2

@dataclass
class FMTParams:
    hann: bool = True
    eps: float = 1e-3
    min_scale: float = 0.5
    max_scale: float = 2.0

@dataclass
class MatchParams:
    ncc_threshold: float = 0.45
    canny_low: int = 60
    canny_high: int = 120

# ===================== 1) LOAD & BINARIZE =====================

def load_and_binarize(path: str):
    img_bgr = cv2.imread(path, cv2.IMREAD_COLOR)
    if img_bgr is None:
        raise FileNotFoundError(f"Không thể đọc ảnh: {path}")
    rgb = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2RGB)
    gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY)
    _, binarized = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
    return img_bgr, rgb, binarized

# ===================== 2) TEMPLATE BIN + INVERT =====================

def binarize_and_invert_template(tpl_bgr):
    tpl_gray = cv2.cvtColor(tpl_bgr, cv2.COLOR_BGR2GRAY)
    _, tpl_bin = cv2.threshold(tpl_gray, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
    tpl_inv = cv2.bitwise_not(tpl_bin)
    return tpl_bin, tpl_inv

# ===================== 3) RED MASK =====================

def red_mask_on_dashboard(dash_bgr, red_params: RedMaskParams):
    hsv = cv2.cvtColor(dash_bgr, cv2.COLOR_BGR2HSV)
    m1 = cv2.inRange(hsv, red_params.lower1, red_params.upper1)
    m2 = cv2.inRange(hsv, red_params.lower2, red_params.upper2)
    mask = cv2.bitwise_or(m1, m2)

    if red_params.open_ksize > 0:
        k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (red_params.open_ksize,)*2)
        mask = cv2.morphologyEx(mask, cv2.MORPH_OPEN, k)
    if red_params.close_ksize > 0:
        k = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (red_params.close_ksize,)*2)
        mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, k)
    return mask

def apply_mask_to_binarized(binarized, mask):
    return cv2.bitwise_and(binarized, binarized, mask=mask)

# ===================== 4) DILATE + CONNECTED COMPONENTS =====================

def find_candidate_boxes(masked_bin, cc_params: CCParams) -> List[Tuple[int,int,int,int]]:
    k = cv2.getStructuringElement(cv2.MORPH_RECT, (cc_params.dilate_ksize,)*2)
    dil = cv2.dilate(masked_bin, k, iterations=1)

    num_labels, labels, stats, _ = cv2.connectedComponentsWithStats((dil>0).astype(np.uint8), connectivity=8)
    boxes = []
    H, W = masked_bin.shape[:2]
    for i in range(1, num_labels):
        x, y, w, h, area = stats[i]
        if area < cc_params.min_area or area > cc_params.max_area:
            continue
        aspect = w / (h + 1e-6)
        if not (cc_params.aspect_min <= aspect <= cc_params.aspect_max):
            continue
        x0 = max(0, x - cc_params.pad)
        y0 = max(0, y - cc_params.pad)
        x1 = min(W, x + w + cc_params.pad)
        y1 = min(H, y + h + cc_params.pad)
        boxes.append((x0, y0, x1-x0, y1-y0))
    return boxes

# ===================== 5) CROP CHẶT TEMPLATE =====================

def tight_crop_template(tpl_inv):
    cnts, _ = cv2.findContours(tpl_inv, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
    if not cnts:
        return tpl_inv
    x, y, w, h = cv2.boundingRect(max(cnts, key=cv2.contourArea))
    return tpl_inv[y:y+h, x:x+w]

# ===================== 6) FOURIER–MELLIN (scale, rotation) =====================

def _fft_magnitude(img: np.ndarray, use_hann=True, eps=1e-3) -> np.ndarray:
    if use_hann:
        hann_y = cv2.createHanningWindow((img.shape[1], 1), cv2.CV_32F)
        hann_x = cv2.createHanningWindow((1, img.shape[0]), cv2.CV_32F)
        window = hann_x @ hann_y
        img = img * window
    dft = cv2.dft(img, flags=cv2.DFT_COMPLEX_OUTPUT)
    dft_shift = np.fft.fftshift(dft, axes=(0,1))
    mag = cv2.magnitude(dft_shift[:,:,0], dft_shift[:,:,1])
    mag = np.log(mag + eps)
    mag = cv2.normalize(mag, None, 0, 1, cv2.NORM_MINMAX)
    return mag

def _log_polar(mag: np.ndarray) -> Tuple[np.ndarray, float]:
    center = (mag.shape[1]//2, mag.shape[0]//2)
    max_radius = min(center[0], center[1])
    M = mag.shape[1] / np.log(max_radius + 1e-6)
    lp = cv2.logPolar(mag, center, M, cv2.WARP_FILL_OUTLIERS + cv2.INTER_LINEAR)
    return lp, M

def fourier_mellin_register(img_ref: np.ndarray, img_mov: np.ndarray, fmt_params: FMTParams):
    a = cv2.normalize(img_ref.astype(np.float32), None, 0, 1, cv2.NORM_MINMAX)
    b = cv2.normalize(img_mov.astype(np.float32), None, 0, 1, cv2.NORM_MINMAX)

    amag = _fft_magnitude(a, use_hann=fmt_params.hann, eps=fmt_params.eps)
    bmag = _fft_magnitude(b, use_hann=fmt_params.hann, eps=fmt_params.eps)

    alp, M = _log_polar(amag)
    blp, _ = _log_polar(bmag)

    shift, response = cv2.phaseCorrelate(alp, blp)
    # phaseCorrelate trả (shiftX, shiftY)
    shiftX, shiftY = shift

    cols = alp.shape[1]
    scale = np.exp(shiftY / (M + 1e-9))
    rotation = -360.0 * (shiftX / (cols + 1e-9))
    scale = float(np.clip(scale, fmt_params.min_scale, fmt_params.max_scale))
    rotation = float(((rotation + 180) % 360) - 180)
    return scale, rotation, float(response)

def warp_template_by(scale: float, rotation_deg: float, tpl_gray: np.ndarray, target_size: Tuple[int, int]):
    h, w = tpl_gray.shape[:2]
    center = (w/2, h/2)
    M = cv2.getRotationMatrix2D(center, rotation_deg, scale)
    warped = cv2.warpAffine(tpl_gray, M, (w, h), flags=cv2.INTER_LINEAR, borderMode=cv2.BORDER_CONSTANT, borderValue=0)
    warped = cv2.resize(warped, (target_size[0], target_size[1]), interpolation=cv2.INTER_LINEAR)
    return warped

# ===================== 7) MATCH SCORE (robust) =====================

def edge_preprocess(img_gray: np.ndarray, mp: MatchParams):
    # CLAHE để chống ảnh phẳng
    clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
    g = clahe.apply(img_gray)

    edges = cv2.Canny(g, mp.canny_low, mp.canny_high)

    # Nếu cạnh quá ít → dùng gradient magnitude
    if np.count_nonzero(edges) < 0.001 * edges.size:
        gx = cv2.Sobel(g, cv2.CV_32F, 1, 0, ksize=3)
        gy = cv2.Sobel(g, cv2.CV_32F, 0, 1, ksize=3)
        mag = cv2.magnitude(gx, gy)
        mag = cv2.normalize(mag, None, 0, 255, cv2.NORM_MINMAX).astype(np.uint8)
        return mag

    # Dãn cạnh nhẹ
    k = cv2.getStructuringElement(cv2.MORPH_RECT, (3,3))
    edges = cv2.dilate(edges, k, iterations=1)
    return edges

def _nan_to_val(x: float, val: float = -1.0) -> float:
    return float(val) if (x is None or (isinstance(x, float) and (x != x))) else float(x)

def ncc_score(scene: np.ndarray, templ: np.ndarray) -> float:
    Hs, Ws = scene.shape[:2]
    Ht, Wt = templ.shape[:2]
    if Hs < Ht or Ws < Wt:
        pad = np.zeros((max(Hs,Ht), max(Ws,Wt)), dtype=scene.dtype)
        pad[:Hs,:Ws] = scene
        scene = pad

    # 1) TM_CCOEFF_NORMED
    res = cv2.matchTemplate(scene, templ, cv2.TM_CCOEFF_NORMED)
    s1 = _nan_to_val(res.max())

    # 2) Fallback: TM_CCORR_NORMED
    s2 = -1.0
    if s1 <= -0.5:
        res2 = cv2.matchTemplate(scene, templ, cv2.TM_CCORR_NORMED)
        s2 = _nan_to_val(res2.max())

    # 3) Fallback cuối: IoU giữa 2 mask nhị phân
    if s1 <= -0.5 and s2 <= 0:
        t = templ
        sc = scene
        if sc.shape != t.shape:
            sc = cv2.resize(sc, (t.shape[1], t.shape[0]), interpolation=cv2.INTER_NEAREST)
        _, tb = cv2.threshold(t, 0, 255, cv2.THRESH_BINARY+cv2.THRESH_OTSU)
        _, sb = cv2.threshold(sc, 0, 255, cv2.THRESH_BINARY+cv2.THRESH_OTSU)
        inter = np.count_nonzero(cv2.bitwise_and(tb, sb))
        union = np.count_nonzero(cv2.bitwise_or(tb, sb))
        iou = inter / union if union > 0 else 0.0
        return float(iou)

    return max(s1, s2)

def thicken_binary(img: np.ndarray, ksize: int = 3, iters: int = 1) -> np.ndarray:
    k = cv2.getStructuringElement(cv2.MORPH_RECT, (ksize,ksize))
    return cv2.dilate(img, k, iterations=iters)

# ===================== P I P E L I N E  C H Í N H =====================

def find_icon_with_fmt(
    dashboard_path: str,
    template_path: str,
    red_params=RedMaskParams(),
    cc_params=CCParams(),
    fmt_params=FMTParams(),
    match_params=MatchParams(),
):
    # 1) Dashboard: RGB + bin
    dash_bgr, dash_rgb, dash_bin = load_and_binarize(dashboard_path)

    # 2) Template: bin + invert
    tpl_bgr = cv2.imread(template_path, cv2.IMREAD_COLOR)
    if tpl_bgr is None:
        raise FileNotFoundError(f"Không thể đọc template: {template_path}")
    tpl_bin, tpl_inv = binarize_and_invert_template(tpl_bgr)

    # 3) Lọc đỏ & áp mask lên ảnh nhị phân dashboard
    redmask = red_mask_on_dashboard(dash_bgr, red_params)
    dash_masked = apply_mask_to_binarized(dash_bin, redmask)

    # 4) Dãn + tìm CC để lấy candidate boxes
    boxes = find_candidate_boxes(dash_masked, cc_params)

    # 5) Cắt chặt template & chuẩn bị phiên bản grayscale
    tpl_tight = tight_crop_template(tpl_inv)
    tpl_tight_gray = cv2.GaussianBlur(tpl_tight, (3,3), 0)

    # Tiền xử lý cạnh cho template
    tpl_edges = edge_preprocess(tpl_tight_gray, match_params)

    best = {
        "score": -1.0,
        "box": None,
        "scale": None,
        "rotation": None
    }

    dash_gray = cv2.cvtColor(dash_bgr, cv2.COLOR_BGR2GRAY)

    for (x, y, w, h) in boxes:
        roi = dash_gray[y:y+h, x:x+w]
        if roi.size == 0 or w < 8 or h < 8:
            continue

        # Resize tạm cho FMT
        tpl_norm = cv2.resize(tpl_tight_gray, (w, h), interpolation=cv2.INTER_LINEAR)
        roi_norm  = cv2.resize(roi, (w, h), interpolation=cv2.INTER_LINEAR)

        # 6) FMT ước lượng scale/rotation (có fallback)
        try:
            scale, rotation, resp = fourier_mellin_register(tpl_norm, roi_norm, fmt_params)
        except Exception:
            scale, rotation, resp = 1.0, 0.0, 0.0

        warped = warp_template_by(scale, rotation, tpl_tight_gray, target_size=(w, h))

        # (tuỳ chọn) làm dày biên template
        warped = thicken_binary(warped, ksize=3, iters=1)

        # 7) Tính điểm khớp trên đặc trưng robust
        roi_feat    = edge_preprocess(roi, match_params)
        warped_feat = edge_preprocess(warped, match_params)
        score = ncc_score(roi_feat, warped_feat)

        if score > best["score"]:
            best.update({
                "score": score,
                "box": (x, y, w, h),
                "scale": scale,
                "rotation": rotation
            })

    return {
        "best_score": best["score"],
        "best_box": best["box"],              # (x, y, w, h) trên dashboard
        "best_scale": best["scale"],
        "best_rotation_deg": best["rotation"],
        "pass": (best["score"] is not None and best["score"] >= match_params.ncc_threshold),
        "num_candidates": len(boxes),
    }

# ===================== V Í  D Ụ  C H Ạ Y =====================

if __name__ == "__main__":
    # ĐỔI 2 ĐƯỜNG DẪN NÀY THEO MÁY BẠN
    DASHBOARD = r"\Icon\dashboard.jpg"
    TEMPLATE  = r"\Icon\ID01.jpg"

    result = find_icon_with_fmt(
        dashboard_path=DASHBOARD,
        template_path=TEMPLATE,
        red_params=RedMaskParams(),                      # nới dải đỏ nếu cần
        cc_params=CCParams(min_area=60, max_area=120000, pad=3),
        fmt_params=FMTParams(min_scale=0.6, max_scale=1.8),
        match_params=MatchParams(ncc_threshold=0.55, canny_low=50, canny_high=130)
    )

    print("=== KẾT QUẢ ===")
    for k, v in result.items():
        print(f"{k}: {v}")

    # Vẽ khung best match để kiểm tra nhanh
    if result["best_box"] is not None:
        img = cv2.imread(DASHBOARD)
        x, y, w, h = result["best_box"]
        cv2.rectangle(img, (x,y), (x+w, y+h), (0,255,0), 2)
        cv2.putText(img, f"NCC={result['best_score']:.2f}", (x, max(0,y-8)),
                    cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0,255,0), 2, cv2.LINE_AA)
        cv2.imshow("Best match", img)
        cv2.waitKey(0)
        cv2.destroyAllWindows()
 Hi i am using but it don't find correct image. Please help me check 
Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Please help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dũng Hoàng

79795403

Date: 2025-10-21 01:23:51
Score: 3
Natty:
Report link

As Discussed In The Comments, The Problem Seems To Be Exclusive To My System. Very Sorry For Everyone's Time Wasted.

Edit: I Cannot Delete The Post Because There Are Other Answers On It.

Reasons:
  • Blacklisted phrase (0.5): I Cannot
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Theothervc

79795402

Date: 2025-10-21 01:21:50
Score: 4.5
Natty:
Report link

code not run



import { Directive, ElementRef, HostListener } from '@angular/core';

@Directive({
  selector: '[formatDate]', // Este é o seletor que você usará no HTML
  standalone: true // Torna a diretiva autônoma (não precisa ser declarada em um módulo)
})
export class FormataDateDirective {

  constructor(private el: ElementRef) {}

  /**
   * O HostListener escuta eventos no elemento hospedeiro (o <input>).
   * Usamos o evento 'input' porque ele captura cada alteração,
   * incluindo digitação, colagem e exclusão de texto.
   * @param event O evento de entrada disparado.
   */
  @HostListener('input', ['$event'])
  onInputChange(event: Event): void {
    const inputElement = event.target as HTMLInputElement;
    let inputValue = inputElement.value.replace(/\D/g, ''); // Remove tudo que não for dígito

    // Limita a entrada a 8 caracteres (DDMMAAAA)
    if (inputValue.length > 8) {
      inputValue = inputValue.slice(0, 8);
    }

    let formattedValue = '';

    // Aplica a formatação DD/MM/AAAA conforme o usuário digita
    if (inputValue.length > 0) {
      formattedValue = inputValue.slice(0, 2);
    }
    if (inputValue.length > 2) {
      formattedValue = `${inputValue.slice(0, 2)}/${inputValue.slice(2, 4)}`;
    }
    if (inputValue.length > 4) {
      formattedValue = `${inputValue.slice(0, 2)}/${inputValue.slice(2, 4)}/${inputValue.slice(4, 8)}`;
    }

    // Atualiza o valor do campo de entrada
    inputElement.value = formattedValue;
  }

  /**
   * Este listener lida com o pressionamento da tecla Backspace.
   * Ele garante que a barra (/) seja removida junto com o número anterior,
   * proporcionando uma experiência de usuário mais fluida.
   */
  @HostListener('keydown.backspace', ['$event'])
  onBackspace(event: KeyboardEvent): void {
    const inputElement = event.target as HTMLInputElement;
    const currentValue = inputElement.value;

    if (currentValue.endsWith('/') && currentValue.length > 0) {
      // Remove a barra e o número anterior de uma vez
      inputElement.value = currentValue.slice(0, currentValue.length - 2);
      // Previne o comportamento padrão do backspace para não apagar duas vezes
      event.preventDefault();
    }
  }
}


<main class="center"> <router-outlet></router-outlet> <input type="text" placeholder="DD/MM/AAAA" [formControl]="dateControl" formatDate maxlength="10"


</main>
Reasons:
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): porque
  • Blacklisted phrase (1): não
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: teletubbies dipicie

79795401

Date: 2025-10-21 01:21:50
Score: 1
Natty:
Report link

Qwen2_5_VLProcessor is a processor class specifically designed for the Qwen 2.5 VL model, handling its unique preprocessing needs.
AutoProcessor is a generic factory that automatically loads the appropriate processor class (like Qwen2_5_VLProcessor) based on the model name or configuration.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (0.5):
Posted by: Mr Milk

79795398

Date: 2025-10-21 01:14:48
Score: 0.5
Natty:
Report link

For Private Bytes and Working Set, read this answer.

Heap size is the size of Managed Heap. If your code constructs new instance of class, it will be allocated on the Managed Heap. for better understanding, search about Stack and Heap Memory Model, which is the fundamental basis of modern computers.

Difference between Private Bytes and Heap Size doesn't represent anything. If your program loads a lot of static/dynamic libraries, the memory needed to load them would not be in Heap and thus Heap Size would not grow. If your program loads lots of data and constructs truckloads of class instances to store it on memory, they will be in Heap and thus Heap Size would grow.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: CDnX

79795394

Date: 2025-10-21 01:11:47
Score: 1
Natty:
Report link

Check Maven Surefire Plugin Configuration

Even though you have JUnit 5 dependencies, the maven-surefire-plugin might need explicit configuration to recognize JUnit 5 tests. Add the following plugin configuration to your pom.xml (within the <build><plugins> section):

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: spring summer

79795387

Date: 2025-10-21 00:52:43
Score: 1
Natty:
Report link

Your line 3 contains unbalanced square brackets:

if [[ "$my_error_flag"=="1" || "$my_error_flag_o"=="2" ]

should be

if [[ "$my_error_flag" == "1" || "$my_error_flag_o" == "2" ]]

Note I also added spaces around ==.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kim Silverman

79795385

Date: 2025-10-21 00:46:42
Score: 0.5
Natty:
Report link

"Process finished with exit code 0" is notification that your script successfully finished.

your out put is this one.

enter image description here

<!DOCTYPE html><html><head>
    <title>Example Domain</title>

    <meta charset="utf-8">
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type="text/css">
    body {
        background-color: #f0f0f2;
        margin: 0;
        padding: 0;
        font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
        
    }
    div {
        width: 600px;
        margin: 5em auto;
        padding: 2em;
        background-color: #fdfdff;
        border-radius: 0.5em;
        box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);
    }
    a:link, a:visited {
        color: #38488f;
        text-decoration: none;
    }
    @media (max-width: 700px) {
        div {
            margin: 0 auto;
            width: auto;
        }
    }
    </style>    
</head>

<body>
<div>
    <h1>Example Domain</h1>
    <p>This domain is for use in illustrative examples in documents. You may use this
    domain in literature without prior coordination or asking for permission.</p>
    <p><a href="https://www.iana.org/domains/example">More information...</a></p>
</div>


</body></html>
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 선동인

79795383

Date: 2025-10-21 00:34:40
Score: 4
Natty: 5
Report link

Seems that it is a common issue, so please vote at https://github.com/angular/angular/issues/64553

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sviatoslav Miller

79795381

Date: 2025-10-21 00:25:38
Score: 1
Natty:
Report link

To put forward a case to OpenText that demonstrates SQLBase user support for Entity Framework would be a popular and a worthwhile modernization, I put together a Poll, and if the results are favorable I will send the outcome to the OpenText Director of Product Management & Portfolio Products as an idea for their future roadmap for SQLBase.

If you use SQLBase , or would consider using it if it supported the .NET Entity Framework, vote or comment here:

OpenText SQLBase Entity Framework support.

The Poll is active for 3 months.

Note that I am just a simple SQLBase end user, not affiliated to OpenText or Gupta in any way, trying to promote some ideas to get this great database management system more up-to-date.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Steve Leighton

79795374

Date: 2025-10-21 00:03:34
Score: 1.5
Natty:
Report link

There is another possibel reasion is VScode `s workspace has import to many folders, it can be doing well on highlight if import less folders.I think the reasion for error is to VScode dont know the where the lib really come from so it scan all the folder to find the lib,it can be overload for VScode when there is to much folders

sorry,my English is not good.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: SnoopDogge

79795372

Date: 2025-10-20 23:48:31
Score: 2
Natty:
Report link

pls send me the code for send text_tabs in one template, this dont work:

    'template_roles' => [
                    $this->client->templateRole([
                        'email'     => '[email protected]',
                        'name'      => 'ONELI',
                        'role_name' => 'Cliente',
                        'tabs'         => [
                            'sign_here_tabs' => [
                                $this->client->signHere([
                                    'x_position'   => '277',
                                    'y_position'   => '431',
                                    'document_id'  => '1',
                                    'page_number'  => '1',
                                    'recipient_id' => '57777797'



                                ])
                                ], 'text_tabs'=>[
                                        [
                                                 'value' => 'mycallleeee6',
                                                'tabLabel' => 'Calle',
                                        ]
                                    ]
                        ]
                    ])
                                    ]
Reasons:
  • RegEx Blacklisted phrase (2.5): pls send me the code
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jose.d

79795357

Date: 2025-10-20 23:19:24
Score: 2.5
Natty:
Report link

Declare context: Context as a function parameter and call it in activity with this passed to it or LocalContext.current inside compose function.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Amr Ayman - Amrk000

79795353

Date: 2025-10-20 23:13:22
Score: 1.5
Natty:
Report link

I made Parall app that creates a bundle shortcut to your selected app.
This way you can start two instances of an app and pin two shortcuts to your Dock.
You can find the app in Mac App Store, more info here https://parall.app

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: IGHOR

79795340

Date: 2025-10-20 22:48:17
Score: 3
Natty:
Report link

You could create the subfolder2 directly in one step like this:

@echo off

if not exist "subfolder1\subfolder2" md "subfolder1\subfolder2"

set /p UserData=Write some text here:

@echo %UserData% >> "subfolder1\subfolder2\TheDataIsHere.txt"

type subfolder1\subfolder2\TheDataIsHere.txt

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @echo
  • User mentioned (0): @echo
  • Low reputation (1):
Posted by: Ben Mar

79795339

Date: 2025-10-20 22:44:16
Score: 1
Natty:
Report link

When I dealt with a similar issue, my solution was to not run the SSH command with -N, but instead send the command bash -c 'echo "Connected" && while true ; do sleep 1; done'. Once connected, it would write "Connected" to STDOUT and then sleep forever; my outer script could just watch SSH's STDOUT for that string (or, indeed, any string).

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (0.5):
Posted by: macdjord

79795333

Date: 2025-10-20 22:36:14
Score: 3.5
Natty:
Report link

Right click and open in a browser.......... Otherwise, convert the PDF to a HTML5 page. When the latter is accessed, it can be viewed immediately without an memory hogging application.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Filler text (0.5): ..........
  • Low reputation (1):
Posted by: Andus

79795331

Date: 2025-10-20 22:27:13
Score: 1
Natty:
Report link

After lots of digging, trying all kinds of AIs, asking friends and blaming my image loading code, I finally found out that I could just set the Garbage Collector to be as agressive as possible:

GC.Collect(2, GCCollectionMode.Aggressive, true, true);

Why?

Since Images are usually somewhat big, they are being put into the Large Object Heap.

Garbage collection usually tries to leave some LOH-Memory allocated to use it as a cache for future objects (as far as I know, feel free to correct me!), but in my case, this was not necessary, and by setting the GC to agressive, I could get rid of all the wasted memory and drastically reduce RAM usage!

It took me a really long time to figure this out, and I am really glad that I found out.

If you are having simmilar problems with large piles of unused memory, try making the GC collect the different generations in agressive mode. Even if it's not images but byte arrays in general.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Joelbu

79795318

Date: 2025-10-20 22:04:07
Score: 2
Natty:
Report link

Both handle fallback delivery methods and work reliably across Android devices — including those without Google Play Services.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: k girl

79795317

Date: 2025-10-20 22:04:07
Score: 0.5
Natty:
Report link

That message is printed out by Micrometer because in GraalVM, JMX support is not complete yet so Micrometer cannot get the data to record, see:

Also see: JvmGcMetrics.java

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Jonatan Ivanov

79795309

Date: 2025-10-20 21:48:04
Score: 1
Natty:
Report link

One option is to use Snowflake Dynamic table that helps to track the history i.e change data capture.

To identify what has changed, you can create stream on top of the dynamic table or you can create SCD type 1 Dynamic table on top of SCD 2 dynamic table like explained in this article

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: samhita

79795307

Date: 2025-10-20 21:43:03
Score: 0.5
Natty:
Report link

Here's the solution.

idx_x = xr.DataArray(myIndices[:,0], dims="points")
idx_y = xr.DataArray(myIndices[:,1], dims="points")

myValues = da.isel(x=idx_x, y=idx_y)
myValues = myValues.values # this converts it from an xarray into just an array

I went from ~35 second run times to ~0.0035 second run times. Four orders of magnitude of improvement! Woot woot!

I don't understand why putting the indices into an xarray.DataArray with dimension name "points" (rather than just as a list as I tried before) causes the .isel to work correctly, but it does.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kas Knicely

79795303

Date: 2025-10-20 21:33:00
Score: 1
Natty:
Report link

I encounter the same problem when I followed that tutorial. Basically it want you organize your "include" directory in following structure:

└── include/
    ├── GLFW/
    │   ├── glfw3.h
    │   └── glfw3native.h
    ├── glad/
    │   └── glad.h
    └── KHR/
        └── khrplatform.h
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: davidT

79795301

Date: 2025-10-20 21:32:00
Score: 1
Natty:
Report link

This was adequate for my needs:

MAKEALL := $(findstring B,$(MAKEFLAGS))

DRYRUN := $(findstring n,$(MAKEFLAGS))

Picks off two make option flags:

@echo "MAKEFLAGS: $(MAKEFLAGS) MAKEALL: $(MAKEALL) DRYRUN: $(DRYRUN)"

Result:

make -Bi

MAKEFLAGS: Bi MAKEALL: B DRYRUN:

Thus these flags can be tested for individually.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Scott Franco

79795289

Date: 2025-10-20 21:12:56
Score: 1
Natty:
Report link

I supposed that if I start a foreground service special use this would automatically make my app to keep running in background but this was wrong.

As shown in Choose the right technology the path led me to "Mannually set a wake lock" as I am not using an API that keeps the device awake.

enter image description here

I tested my app with Pixel 8 Pro A16, Samsung J3 A9. Also Huawei but with App Launch no battery optimization (set manually).

    class TimerService : Service() {
        ...
        override fun onCreate() {
            super.onCreate()

            wakeLock.acquire() <<<<-------
            createNotificationChannel()
            initTimer()
        }
        ...
        private fun stopTimer() {
            // Remove callbacks from the background thread handler.
            if (::serviceHandler.isInitialized) {
                serviceHandler.removeCallbacks(timerRunnable)
            }
            _isTimerRunning.value = false
            _timerStateFlow.value = 0

            if (wakeLock.isHeld) { <<<<------
                wakeLock.release()
            }
        }
        ...
    }

Interesting links I found

Hope this helps other devs with the same issue.

Best regards!

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Whitelisted phrase (-1): Hope this helps
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: rsp

79795280

Date: 2025-10-20 20:57:52
Score: 1
Natty:
Report link

haven't looked at implementation details. But, At a more systems level, CPU-memory to GPU-memory data transfer is a time-consuming operation. Most of times, it's more expensive than actual matrix computation in GPU itself.

Looks like, Library is somehow detecting that we are iteratively making GPU inferences, but ton of GPU memory is still available. Thus prompting us to send more data to GPU Memory.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: bad programmer

79795276

Date: 2025-10-20 20:51:50
Score: 0.5
Natty:
Report link

The TIMESTAMPADD function is part of the ODBC/JDBC standard and is supported by H2, MySQL. So try to use this, Hope this will solve your problem

SELECT TIMESTAMPADD(DAY, -30, CURRENT_DATE());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: colonel

79795274

Date: 2025-10-20 20:50:50
Score: 0.5
Natty:
Report link

Well I finally decided my choice on the set of Copro template. template<T>class Copro {};
And so :

using VMUnprotected = VM<uint8_t *>;
using VMProtected   = VM<MemoryProtected>;
using CoproUnprotected = Copro<uint8_t *>;
using CoproProtected   = Copro<MemoryProtected>;

It may not be the most beautiful syntactically solution, but it is relatively high-performance and without hacks.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: bitmap kid

79795259

Date: 2025-10-20 20:23:44
Score: 4.5
Natty: 5
Report link

As of 9/29/25, this is now part of VSCode.

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ben

79795258

Date: 2025-10-20 20:22:44
Score: 4
Natty: 4
Report link

this was so helpful, I finally got my toaster to cook a pizza in the morning

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Izayah S.

79795251

Date: 2025-10-20 20:09:40
Score: 1
Natty:
Report link

The answer mentioned by Chris is the solution :

    @ManyToOne
    @Fetch(FetchMode.SELECT)
    @JoinColumn(name = "FK_COUNTRY")
    private CountryEntity country;

Because the FetchModeType is marked as EAGER, the default FetchMode is JOIN. That's why in my case, I have to force it to SELECT

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: huartgi

79795249

Date: 2025-10-20 20:06:38
Score: 3.5
Natty:
Report link

To solve this issue, remember to add an entry in your launch.json with a key of "target" and a value equal to your emulator ID which can be found in XCode.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: random-user-0901

79795236

Date: 2025-10-20 19:55:36
Score: 1.5
Natty:
Report link
import matplotlib.pyplot as plt
y = [3.97x10^(-3), 5.30x10^(-3), 6.95x10^(-3), 8.61x10^(-3), 9.60x10^(-3)]
x = [3235, 1480, 767, 312, 276]
e = [3.71x10^(-4), 3.71x10^(-4), 3.71x10^(-4), 3.71x10^(-4), 3.71x10^(-4)]
plt.errorbar(x, y, yerr=e, fmt='o')
plt.show()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user31724048

79795234

Date: 2025-10-20 19:55:35
Score: 6 🚩
Natty: 5
Report link

And how would I go about this when I want this to work with CUDA.jl CuArrays as well?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: axsk

79795229

Date: 2025-10-20 19:50:33
Score: 3.5
Natty:
Report link

I could fix the issue by deleting all .dcu files from my DCU folder ; after this, the compiler worked without issues. I'm not sure why but i'm posting here to help someone that face the same issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): face the same issue
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: delphirules

79795204

Date: 2025-10-20 19:16:24
Score: 3
Natty:
Report link

My misunderstanding. The return value of ExecuteNonQuery appears to be the number of rows inserted. The USE command does not insert any rows, so the return value is zero.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user810702

79795196

Date: 2025-10-20 19:08:21
Score: 1.5
Natty:
Report link
from imagedl import imagedl
image_client = imagedl.ImageClient(image_source='BaiduImageClient')
image_client.startcmdui()

try this repo: https://github.com/CharlesPikachu/imagedl

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jin Zhenchao

79795192

Date: 2025-10-20 18:59:19
Score: 1.5
Natty:
Report link

After hours of struggling, I found out the solution by accident. All I had to do, was to add this configuration:

grpc:
  shutdown-grace: 30
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Muhammad Khosravi

79795185

Date: 2025-10-20 18:53:17
Score: 1
Natty:
Report link
\renewbibmacro*{journal}{
  \iffieldundef{journaltitle}
    {}
    {\printtext[journaltitle]{
       \printfield[journaltitlecase]{journaltitle}
       \iffieldundef{journalsubtitle}
         {}
         {\setunit{\subtitlepunct}
          \printfield[journaltitlecase]{journalsubtitle}}}}}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sridhar Moorthy

79795176

Date: 2025-10-20 18:26:11
Score: 3
Natty:
Report link

You can read from serial port with php and windows with library for windows
https://github.com/m0x3/php_comport

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mongolor

79795171

Date: 2025-10-20 18:20:10
Score: 2.5
Natty:
Report link

Don't tweak offsets by hand, get the center coordinate(s) using patch.get_center() and align the text around it by giving ax.annotate the parameter va="center" for vertical or ha="center" for horizontal alignment, respectively.

https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.annotate.html

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Matti

79795155

Date: 2025-10-20 17:50:02
Score: 1.5
Natty:
Report link

@Remy
I removed all the references to "__stdcall" and uncommented the "extern "C" code in the C++ dll, so that the function should be now exported as "_add_code".

I changed the DLL declaration in:

 <DllImport("MyDll.dll", EntryPoint:="_add_code")>
   Private Shared Function _add_code(ByVal text As String) As <MarshalAs(UnmanagedType.BStr)> String
 End Function

 Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load

     Dim foo As String = _add_code("ppp")

 End Sub

Noting changes, i get alway the error "System.EntryPointNotFoundException: Could not find entry point with name '_add_code' in the DLL. The Entry point is not found, so I think that eventual errors related to Strings still have to be evaluated.

Folowing your suggestion I also tried a dump to get an Export table by VS command line, and I obtain the follw answer, that confirms that the function is exported as "_add_code". So the question: "Why I can't access to it from VB??"

Microsoft (R) COFF/PE Dumper Version 14.44.35217.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file MyDll.dll

File Type: DLL

  Section contains the following exports fory MyDll.dll

    00000000 characteristics
    FFFFFFFF time date stamp
        0.00 version
           1 ordinal base
           1 number of functions
           1 number of names

    ordinal hint RVA      name

          1    0 00001210 add_code = _add_code

  Summary

        1000 .data
        1000 .rdata
        1000 .reloc
        1000 .rsrc
        2000 .text
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Remy
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ezio g.

79795148

Date: 2025-10-20 17:45:00
Score: 4
Natty:
Report link

Ever solved this?

Tried everything I could find on this topic. Works on all my devices except Android.
Eventually tried 192,0,2,1 instead and this works on my Android just fine.

Reasons:
  • RegEx Blacklisted phrase (1.5): solved this?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Bartezz

79795142

Date: 2025-10-20 17:37:58
Score: 1
Natty:
Report link

continue only skips one iteration, but it runs multiple times.

On the first iteration, last = prev + j makes prev == last true, and then after that, it stays true because continue skips the rest of the loop iterations.

How do you get ab? It's the first iteration of a-b and the first iteration of b-c.

Since this is an exercise, I won't try to give a fix, but there are multiple other ways you can get what you want, which is to not have repeated characters when two ranges are combined.

Reasons:
  • Blacklisted phrase (1): How do you
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: clarkep

79795131

Date: 2025-10-20 17:20:53
Score: 1.5
Natty:
Report link

You can do it with ESLint, the ESLint import plugin and the ESLint extension for VSCode. Alternately, if you're using Deno, you can use the Deno extension for VSCode

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: quintuple-mallard

79795128

Date: 2025-10-20 17:19:53
Score: 1
Natty:
Report link

I am using tailwind, thus this helped me:

<div className="w-[100px] h-[100px] rounded-full relative overflow-hidden">
  <Image
    src={ImageSrc}
    alt="Alt message"
    fill
    className="object-cover"
  />
</div>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aldiyar Dabarov

79795125

Date: 2025-10-20 17:12:51
Score: 3
Natty:
Report link

{
"editor.colorDecorators": false,

"[css]": {
"editor.colorDecorators": true

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Oleglenanov

79795118

Date: 2025-10-20 17:03:49
Score: 0.5
Natty:
Report link
Fisrt of all you need to install docker in your machine. After that you need to follow these steps.

**Step1**

You need to open the terminal in the docker and run the command in order to pull the Hadoop image inside the docker using the command which is given below.

    docker pull liliasfaxi/spark-hadoop :hv-2.7.2

 You can verify the image by using command in terminal which is given below. 

    docker images

**Step2**

Now in this step we have to create the three different containers like

 - Master 
 - Slave1 
 - Slave2

But before we start making containers we have to make the **network** here. 

    docker network create --driver=bridge hadoop

After creating network now we have to make the master container and wrote the command which is given below. 

**For Master**

    docker run -itd --net=hadoop -p 50070:50070 -p 8088:8088 -p 7077:7077 --name hadoop-master --hostname hadoop-master liliasfaxi/spark-hadoop:hv-2.7.2

After creating master container you need to create the slave containers just copy and paste the commands. 

**For Slave1**

    docker run -itd -p 8040:8042 --net=hadoop --name hadoop-slave1 --hostname hadoop-slave1 liliasfaxi/spark-hadoop:hv-2.7.2

**For Slave2**

    docker run -itd -p 8041:8042 --net=hadoop --name hadoop-slave2 --hostname hadoop-slave2 liliasfaxi/spark-hadoop:hv-2.7.2

Now to see recently created containers like master, slave1 and slave2 are in running properly you need to run the command which is given below. 

    docker ps

Now we have to start the all services of master, slave1 and slave2 services using the below mentioned commands. 

    docker exec hadoop-master service ssh start
    docker exec hadoop-slave1 service ssh start
    docker exec hadoop-slave2 service ssh start 

After starting the commands we need to go inside the master container to confirm some confirgation. we can do it the command which is given below.

    docker exec -it hadoop-master bash 

Now in the master bash we need to open one file named **core-site.xml** using the command which is given below. And I am using vi instead of nano. 

    vi $HADOOP_HOME/etc/hadoop/core-site.xml

Now You need to verify does this file look like below image. 

[![enter image description here][1]][1]


If yes? Then move next and write **ls** in the master bash and verify does it hdfs contains different files. Just compare it with the image below. 

[![enter image description here][2]][2]


If yes then we need to verify master, slave1 and slave2 daemons using the below comands one by one. 

**For Master**

    docker exec -it hadoop-master jps
**For Slave1 and Slave2**

    docker exec -it hadoop-slave1 jps
    docker exec -it hadoop-slave2 jps

And your output maybe looks like this. 

[![enter image description here][3]][3]


  [1]: https://i.sstatic.net/mL3hsHqD.png

Congratulations! Now hadoop is installed in your machine. now you can manipulate the files easily. And dont forget to access the web interface of Hadoop and Yarn. 

 - HDFS UI: http://localhost:50070 
 - YARN UI: http://localhost:8088

  [2]: https://i.sstatic.net/FZq3SAVo.png
  [3]: https://i.sstatic.net/JwYo972C.png
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: M Mamoon Khan

79795111

Date: 2025-10-20 16:53:46
Score: 5
Natty:
Report link

Encountered same issue where the latest chromium doesn't work on Vercel. Has anyone fix this similar problem? Would've been so helpful.

Reasons:
  • RegEx Blacklisted phrase (1.5): fix this similar problem?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ikhwan Pramuditha

79795073

Date: 2025-10-20 16:08:35
Score: 2
Natty:
Report link

If you want to use a SQL script an answer to a similar/same question was answered in this SO question.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Francis

79795071

Date: 2025-10-20 16:08:35
Score: 0.5
Natty:
Report link

dill.extend() was removed in v0.3.8

pixi add "dill\<0.3.8"

or

pip install "dill<0.3.8"

should solve the issue

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Martin

79795070

Date: 2025-10-20 16:07:35
Score: 0.5
Natty:
Report link

Your code for initiating the SmsRetrieverClient is fine. The problem lies with the physical device's state or hardware.

Check Your Physical Device:

  1. Is there an active SIM card? The device must have a valid, active SIM card installed. A phone without a SIM cannot receive SMS messages.
  2. Is it a Wi-Fi-only tablet? If the device is a tablet without cellular capabilities, it cannot receive SMS messages and this API will fail.
  3. Is Airplane Mode off? Ensure the device is not in Airplane Mode, or if it is, that cellular services are explicitly enabled.
  4. Can it receive a regular SMS? As a final check, try sending a normal text message to the device from another phone. If it doesn't arrive, you've confirmed the core issue. The SmsRetriever API won't work if the device can't receive standard text messages.
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Domini

79795049

Date: 2025-10-20 15:41:29
Score: 1.5
Natty:
Report link

Update in 2025:

In the "Settings > Configure Kate > Editing > Auto Completion" menu there is now a "Use Enter key to insert selected completion" toggle that you can turn off. Which is exactly what I think we all wanted.

Confirmed on Kate v24.12.3, if you don't see it check if you can update

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: jjspace

79795045

Date: 2025-10-20 15:37:28
Score: 2.5
Natty:
Report link

Enable "Fit bounds to markers" in the map widget settings to auto-zoom to all markers on Things Board.

read more about;https://focus-pakistan.com.pk/wp-admin/

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tofeeque

79795041

Date: 2025-10-20 15:34:27
Score: 3.5
Natty:
Report link

Related to Instagram Messaging Graph api (https://graph.instagram.com/v23.0/me/conversations) you can set any number in 'limit' field (won't raise any error from Meta backend) but you won't get more than 50 entries per request

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: grauerwf

79795036

Date: 2025-10-20 15:32:26
Score: 2.5
Natty:
Report link

If you want to open android pdf from url starting content then you need to use an intent with action view then it will easily open.

Emergency Garage Door Services in Davie FL

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rain Vale

79795016

Date: 2025-10-20 14:58:19
Score: 3
Natty:
Report link

A graphic designer is a professional who uses visual concepts to create layouts and overall designs for a wide range of projects, from advertisements and logos to websites and magazines

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Samuel Dada

79795010

Date: 2025-10-20 14:57:18
Score: 0.5
Natty:
Report link

I would like to underline a major feature interface based projections have over DTO projections, interface based projections can hold references toward other projection for nested fields holding other entities, which can't be done using the query and DTO constructor syntax.

One other thing is equality and hash code support that comes using DTO and not when using interfaces

Reasons:
  • No code block (0.5):
Posted by: Youssef NAIT

79795006

Date: 2025-10-20 14:51:17
Score: 1
Natty:
Report link

After more investigation, I discovered that the issue wasn’t caused by my code or configuration. It turned out that some malicious code had been injected into my site files, which was interfering with normal functionality.

Once I removed the injected code and restored clean versions of the affected files, everything started working correctly again.

If anyone else runs into similar unexpected behavior, it might be worth checking for unauthorized or altered files in your project, especially if you’re hosting the site publicly.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mina

79795004

Date: 2025-10-20 14:48:16
Score: 1
Natty:
Report link

From @milomg in this GitHub issue page:

If you're looking for a precompiled link, you might find https://nodejs.raccoon-tw.dev/ useful

NVM_NODEJS_ORG_MIRROR=https://nodejs.raccoon-tw.dev/release nvm install v14.21.3

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dieppon

79795001

Date: 2025-10-20 14:40:15
Score: 1.5
Natty:
Report link

Try to create that config at this location /var/snap/docker/current/config/daemon.json
or
Try to restart docker.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sajjan Nehal

79794993

Date: 2025-10-20 14:29:12
Score: 2
Natty:
Report link

Solution found: the root cause is Citrix App Protection.

Commenting out the line /usr/local/lib/AppProtection/libAppProtection.so in /etc/ld.so.preload has helped.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ivan Makarov

79794989

Date: 2025-10-20 14:22:11
Score: 2
Natty:
Report link

use focus after a.active

a.active:foucs{
background-color: #EAB126
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sarwar hossain

79794988

Date: 2025-10-20 14:21:10
Score: 1
Natty:
Report link
  1. Increase retry_after to at least 2–3× your timeout, e.g.:
    'retry_after' => 180,

  2. Use the same queue name in your Notification:
    $this->onQueue('reminder');

  3. Make sure only one queue worker handles the same queue name.

  4. If mails are slow, switch to Mail::queue() with a dedicated mail queue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RANA SAHA

79794980

Date: 2025-10-20 14:16:09
Score: 2.5
Natty:
Report link

This appears to be a change due to iOS26. Xcode 18.1 detail storyboard shows the tableview as a grey area and the info in the detail view is laid out to the right of the tableview. Xcode26 storyboard shows the tableview superimposed over the detail view.

Shifting the info in the detail view to the right appears to be the solution.

enter image description hereenter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: HeyRef

79794978

Date: 2025-10-20 14:13:08
Score: 4.5
Natty: 4.5
Report link

SonarQube now officially supports Rust:

https://www.sonarsource.com/blog/introducing-rust-in-sonarqube/

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user2634664

79794972

Date: 2025-10-20 14:04:06
Score: 0.5
Natty:
Report link
import torch

def drop_row_and_col(A: torch.Tensor, i) -> torch.Tensor:
    """
    Remove the i-th row and i-th column from a 2D square tensor A.

    Args:
        A (torch.Tensor): 2D square tensor of shape (n, n)
        i List[int]: index of row and column to remove (0-based)

    Returns:
        torch.Tensor: new tensor of shape (n-1, n-1)
    """
    if A.ndim != 2 or A.shape[0] != A.shape[1]:
        raise ValueError("Input must be a 2D square tensor.")

    mask = torch.ones(A.shape[0], dtype=torch.bool, device=A.device)
    mask[i] = False
    return A[mask][:, mask]

def drop_under_index(array: torch.Tensor,i):
    mask = torch.ones(array.shape[0], dtype=torch.bool, device=array.device)
    mask[i]=False
    return array[mask]

def get_maximal_ind_set(adj_matrix,drop_at_once = 1):
    """
    Greedy vertex removal maximal independent set approximation.
    
    One by one removes nodes with largest degree and recalculates degrees until resulting adj matrix is empty.
    
    adj_matrix: adjacency matrix N x N
    drop_at_once: how many elements drop at once. Larger values allow to speed-up computation a lot.
    """
    node_indices = torch.arange(adj_matrix.shape[0],device=adj_matrix.device)
    max_indep_set = adj_matrix.clone()

    while True:
        close_points = max_indep_set.sum(-1)
        ind = close_points.argsort(descending=True)[:drop_at_once]
        ind = ind[close_points[ind]>0]
        if len(ind)==0:
            break
        node_indices=drop_under_index(node_indices,ind)
        max_indep_set=drop_row_and_col(max_indep_set,ind)
    return node_indices

Simplest usage is like this

adj = torch.randn((500,500))>0.5
adj[torch.arange(500),torch.arange(500)]=False
get_maximal_ind_set(adj,drop_at_once=3)

You can even do it on gpu (even a lot faster)

adj = torch.randn((500,500))>0.5
adj[torch.arange(500),torch.arange(500)]=False
get_maximal_ind_set(adj.cuda(),drop_at_once=3).cpu()

Here is simple visualization of it's work

import networkx as nx

# ==== Generate random adjacency matrix ====
torch.manual_seed(0)
n = 10
adj_matrix = (torch.rand((n, n)) > 0.5).int()
adj_matrix = torch.triu(adj_matrix, 1)  # upper triangle only
adj_matrix = adj_matrix + adj_matrix.T   # make symmetric (undirected graph)
adj_matrix.fill_diagonal_(0)

# ==== Find maximal independent set ====
ind_set = get_maximal_ind_set(adj_matrix, drop_at_once=1)
print("Independent set indices:", ind_set.tolist())

# ==== Visualize ====
G = nx.Graph()
G.add_nodes_from(range(n))
for i in range(n):
    for j in range(i + 1, n):
        if adj_matrix[i, j]:
            G.add_edge(i, j)

pos = nx.spring_layout(G, seed=42)  # layout for consistent visualization

# Node colors: blue if in independent set, red otherwise
node_colors = ['tab:blue' if i in ind_set else 'tab:red' for i in G.nodes()]

plt.figure(figsize=(6, 6))
nx.draw(
    G,
    pos,
    with_labels=True,
    node_color=node_colors,
    node_size=600,
    font_color='white',
    edge_color='gray',
)
plt.title("Graph with Maximal Independent Set (blue nodes)")
plt.show()

visual

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kemsikov

79794970

Date: 2025-10-20 14:03:05
Score: 0.5
Natty:
Report link

Currently there is no way. There is a ticket open to add support for spelling_exclusion_path in .editorconfig.

This comment by Elvira Mustafina at 8/28/2023 at 1:04 PM confirms there is no workaround to get this to work.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Roald

79794958

Date: 2025-10-20 13:52:03
Score: 0.5
Natty:
Report link

What, no minimal, reproducible example? So I can only speak in generalizations here:

Proxies created with calls to index.ids() do not by default reference the same, single IdIndex instance.

If you are creating a single instance of IdIndex and passing its proxy reference to whomever needs to access it, whether in the same or different thread or process, then yes, there will be a single instance of IdIndex running in the process created by the manager. But if multiple proxies are created with code such as my_id_index = index.ids(), then there will be multiple IdIndex instances living in the manager's process. BTW, why are you naming an IndexManager instance index rather than the more meaningful index_manager or even just manager?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: Booboo

79794956

Date: 2025-10-20 13:49:02
Score: 0.5
Natty:
Report link
    <picture><source srcset="images/resumos-biologia-1024x702.png.webp 1024w, images/resumos-biologia-300x206.png.webp 300w, images/resumos-biologia-768x527.png.webp 768w, images/resumos-biologia-1536x1053.png.webp 1536w, images/resumos-biologia.png.webp 1575w" sizes="(max-width: 800px) 100vw, 800px" type="image/webp"><img decoding="async" width="800" height="548" src="images/resumos-biologia-1024x702.png" class="attachment-large size-large wp-image-7339 webpexpress-processed" alt="Exemplos de resumos do Pack ENEM - conteúdo organizado e visual para estudos" srcset="images/resumos-biologia-1024x702.png 1024w, images/resumos-biologia-300x206.png 300w, images/resumos-biologia-768x527.png 768w, images/resumos-biologia-1536x1053.png 1536w, images/resumos-biologia.png 1575w" sizes="(max-width: 800px) 100vw, 800px"></picture>                                                         </div>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user31722296

79794952

Date: 2025-10-20 13:45:01
Score: 4
Natty:
Report link

i have some issue to validate

C:\Users\grigore.ionescu\WORK\ITC\2025-05-SAFT-Stock-Baan-5\duk_SAFT_2025_10\dist>java -jar DUKIntegrator_AnLunaUI.jar -v D406T C:\Users\grigore.ionescu\WORK\ITC\2025-05-SAFT-Stock-Baan-5\D406\D406\DECLR_2009_1_D406T_I0_20250807.xml      $ $ an=2025 luna=10
an:2025
luna:10
an:2025
luna:10
mode=1
XXXXX   C:\Users\grigore.ionescu\WORK\ITC\2025-05-SAFT-Stock-Baan-5\duk_SAFT_2025_10\dist\saft_counter.csv
in parseXml
inainte an si luna:2025...10
an:2025  luna:10
VALIDATION FOR TYPE [T]
EXPECTED SECTIONS: [Sections{name=Account, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:71, right:-1, firstCh:73, id:16450,id=72, absPath=AuditFile/MasterFiles/GeneralLedgerAccounts/Account}]}, Sections{name=Customer, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:94, right:-1, firstCh:96, id:16470,id=95, absPath=AuditFile/MasterFiles/Customers/Customer}]}, Sections{name=Supplier, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:145, right:-1, firstCh:147, id:16475,id=146, absPath=AuditFile/MasterFiles/Suppliers/Supplier}]}, Sections{name=TaxTableEntry, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:196, right:-1, firstCh:198, id:94,id=197, absPath=AuditFile/MasterFiles/TaxTable/TaxTableEntry}]}, Sections{name=UOMTableEntry, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:215, right:-1, firstCh:217, id:108,id=216, absPath=AuditFile/MasterFiles/UOMTable/UOMTableEntry}]}, Sections{name=AnalysisTypeTableEntry, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:219, right:-1, firstCh:221, id:111,id=220, absPath=AuditFile/MasterFiles/AnalysisTypeTable/AnalysisTypeTableEntry}]}, Sections{name=Product, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:229, right:-1, firstCh:231, id:120,id=230, absPath=AuditFile/MasterFiles/Products/Product}]}, Sections{name=GeneralLedgerEntries, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:354, right:356, firstCh:-1, id:184,id=355, absPath=AuditFile/GeneralLedgerEntries/NumberOfEntries}, SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:354, right:357, firstCh:-1, id:185,id=356, absPath=AuditFile/GeneralLedgerEntries/TotalDebit}, SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:354, right:358, firstCh:-1, id:186,id=357, absPath=AuditFile/GeneralLedgerEntries/TotalCredit}, SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:354, right:-1, firstCh:359, id:187,id=358, absPath=AuditFile/GeneralLedgerEntries/Journal}]}, Sections{name=SalesInvoices, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:417, right:419, firstCh:-1, id:184,id=418, absPath=AuditFile/SourceDocuments/SalesInvoices/NumberOfEntries}, SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:417, right:420, firstCh:-1, id:185,id=419, absPath=AuditFile/SourceDocuments/SalesInvoices/TotalDebit}, SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:417, right:421, firstCh:-1, id:186,id=420, absPath=AuditFile/SourceDocuments/SalesInvoices/TotalCredit}, SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:417, right:-1, firstCh:422, id:16601,id=421, absPath=AuditFile/SourceDocuments/SalesInvoices/Invoice}]}, Sections{name=PurchaseInvoices, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:614, right:616, firstCh:-1, id:184,id=615, absPath=AuditFile/SourceDocuments/PurchaseInvoices/NumberOfEntries}, SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:614, right:617, firstCh:-1, id:185,id=616, absPath=AuditFile/SourceDocuments/PurchaseInvoices/TotalDebit}, SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:614, right:618, firstCh:-1, id:186,id=617, absPath=AuditFile/SourceDocuments/PurchaseInvoices/TotalCredit}, SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:614, right:-1, firstCh:619, id:16601,id=618, absPath=AuditFile/SourceDocuments/PurchaseInvoices/Invoice}]}, Sections{name=Payments, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:811, right:813, firstCh:-1, id:184,id=812, absPath=AuditFile/SourceDocuments/Payments/NumberOfEntries}, SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:811, right:814, firstCh:-1, id:185,id=813, absPath=AuditFile/SourceDocuments/Payments/TotalDebit}, SECTION_ELEMENTS{nodeStruct=min:0, max:1, cnt:0, parent:811, right:815, firstCh:-1, id:186,id=814, absPath=AuditFile/SourceDocuments/Payments/TotalCredit}, SECTION_ELEMENTS{nodeStruct=min:0, max:2147483647, cnt:0, parent:811, right:-1, firstCh:816, id:265,id=815, absPath=AuditFile/SourceDocuments/Payments/Payment}]}]
SECTION DETECTED: Sections{name=TaxTableEntry, elements=[SECTION_ELEMENTS{nodeStruct=min:1, max:2147483647, cnt:1, parent:196, right:-1, firstCh:198, id:94,id=197, absPath=AuditFile/MasterFiles/TaxTable/TaxTableEntry}]}
SECTION DETECTED: Sections{name=UOMTableEntry, elements=[SECTION_ELEMENTS{nodeStruct=min:1, max:2147483647, cnt:1, parent:215, right:-1, firstCh:217, id:108,id=216, absPath=AuditFile/MasterFiles/UOMTable/UOMTableEntry}]}
SECTION DETECTED: Sections{name=MovementTypeTableEntry, elements=[SECTION_ELEMENTS{nodeStruct=min:0, max:0, cnt:1, parent:225, right:-1, firstCh:227, id:117,id=226, absPath=AuditFile/MasterFiles/MovementTypeTable/MovementTypeTableEntry}]}
1.
Erori la validare fisier: C:\Users\grigore.ionescu\WORK\ITC\2025-05-SAFT-Stock-Baan-5\D406\D406\DECLR_2009_1_D406T_I0_20250807.xml
       Erorile au fost scrise in fisierul: C:\Users\grigore.ionescu\WORK\ITC\2025-05-SAFT-Stock-Baan-5\D406\D406\DECLR_2009_1_D406T_I0_20250807.xml.err.txt

and the error file contains:

F: MasterFiles (1) sectiune MovementTypeTable (1) sectiune MovementTypeTableEntry (1) sectiune Description (1)

eroare structura: elementul 'MovementType' a depasit numarul maxim de aparitii (0); a aparut de 1 ori

That somehow implies that the DUKE validatpr does not take in consideration is to validate a D406T declaration for move of goods and stock.

Can anyone help with some insights ?

Reasons:
  • RegEx Blacklisted phrase (3): Can anyone help
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: TonyI

79794945

Date: 2025-10-20 13:30:57
Score: 0.5
Natty:
Report link

i have the same bug, i'm working on Next 15.5.4 and thanks to your answer and add the webpack configuration without delete the turbopack configuration it work fine.

I'm sharing the next.config.ts for this Next version.

import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  /* config options here */
  turbopack: {
    rules: {
      '*.svg': {
        loaders: ['@svgr/webpack'],
        as: '*.tsx',
      },
    },
  },
  webpack(config) {
    config.module.rules.push({
      test: /\.svg$/,
      use: ['@svgr/webpack'],
    });
    return config;
  },
};
export default nextConfig;
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jaime Andrés Ángel

79794943

Date: 2025-10-20 13:29:57
Score: 4.5
Natty: 5
Report link

The --repl option is no longer supported. See https://issues.chromium.org/issues/40257772#comment2

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: first last

79794932

Date: 2025-10-20 13:16:53
Score: 2
Natty:
Report link

The commit statement does not change the result. You will still get an error ("ORA-00942 table or view does not exist").

I suspect you ran the script with the commit when the view was known in the database. If the view exists the script will succeed with or without the commit.

Use @Maheswaran Ravisankar answer to solve the issue.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Maheswaran
  • Low reputation (0.5):
Posted by: Jörg Weigel

79794931

Date: 2025-10-20 13:16:53
Score: 3.5
Natty:
Report link

here's a simpler solution, you can use this free plugin: https://wordpress.org/plugins/on-sale-page-for-woocommerce/

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: wpgenie

79794924

Date: 2025-10-20 13:02:50
Score: 3
Natty:
Report link

What I end up doing is implementing my own custom accessibility checks for compose elements (at least for what can be fairly assessed as of today).

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (0.5):
Posted by: Vadym

79794922

Date: 2025-10-20 13:02:50
Score: 1.5
Natty:
Report link

Do not wrap the Widget that you want to be centered with the Positioned Widget. Instead, use the parameter alignment: AlignmentDirectional.center of the Stack Widget.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: A.Ktns

79794915

Date: 2025-10-20 12:55:48
Score: 2.5
Natty:
Report link

You can pip install sshfs python library from pypi

pip install sshfs

Here is the link https://pypi.org/project/sshfs/

Reasons:
  • Blacklisted phrase (1): Here is the link
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yechiel babani

79794908

Date: 2025-10-20 12:50:46
Score: 0.5
Natty:
Report link

Run the ADB server on Windows and connect to it from WSL:

In PowerShell (Windows):

adb kill-server
adb -a -P 5037 nodaemon server &   

Keep the service running in the background.

In WSL:

export ADB_SERVER_SOCKET=tcp:[windwos_ip]5037
adb devices

You should now see your devices listed from WSL.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 7absec

79794896

Date: 2025-10-20 12:39:43
Score: 1.5
Natty:
Report link

I think that this problem is just about the focus. I have many winforms with a datagridview and I always use the same code to initialize a datagridview, which includes datagridview.ClearSelection(). And every time nothing is selected.

But I had this issue with one of my winforms where the first row of a datagridview was selected after startup. While debugging, I found out that this selection occured after finishing Form.Load(). Probably because this datagridview was the first control I put on this form.

To solve this problem I deleted the datagridview from my form and added a new one with the exact same name. The only thing that was different was the "TabIndex", which was 0 on the deleted datagridview and now it is 7. (But only changing this TabIndex doesn't work...) When I debugged again, the automatic selection didn't occured and now the focus was on the first button on the form...

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Wickedman1984

79794895

Date: 2025-10-20 12:39:43
Score: 2
Natty:
Report link

I had the same issue using python 3.13. The issue was solved creating a venv with python 3.12

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Quentin Goyet