79719084

Date: 2025-07-29 18:41:20
Score: 0.5
Natty:
Report link

Eventually, the only issue was that the Vite configuration section I added was in the wrong place.

So now I had at lib vite.config:

rollupOptions: {
        external: ['react', 'react-dom'],
}

and in app layer vite.config:


 resolve: {
      dedupe: ['react', 'react-dom', '@emotion/react', '@emotion/styled', '@mui/material', '@mui/system'],
 },

That's a working configuration for me

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

79719080

Date: 2025-07-29 18:37:19
Score: 3.5
Natty:
Report link

did anyone try toget the Label ID and Site ID using the code shared by EC99?

I put that in an Excel, then run the macro and nothing happened. What does it mean "which will print the MSIP Label headers to your immediate window". It doesnt show the Labels ID or Site ID anywhere.

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): did anyone
  • Low reputation (1):
Posted by: Sebastián Aliaga

79719070

Date: 2025-07-29 18:25:16
Score: 0.5
Natty:
Report link

More efficient and cleaner way

const Bar = () => <div>Bar</div>;
const Baz = () => <div>Baz</div>;

const componentMap = {
    bar: Bar,
    baz: Baz,
};

const Foo = ({ iconId }) => {
    const ComponentToRender = componentMap[iconId];

    if (!ComponentToRender) {
        // Fallback: render nothing or a message
        return <div style={{ color: 'red' }}>Component not found for iconId: {iconId}</div>;
    }

    return <ComponentToRender />;
};

const EntireApp = () => (
    <div>
        <div>Some other important content</div>
        <Foo iconId="foz" /> {/* Invalid iconId won't crash the app */}
    </div>
);

Why better?

  1. O(1) lookup instead of O(n).
  2. Avoids .find() completely
  3. More readable for large mappings
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Santhosh

79719060

Date: 2025-07-29 18:16:14
Score: 3.5
Natty:
Report link

You have to complete the bits transfer with complete-bitstransfer and the job id

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

79719058

Date: 2025-07-29 18:16:14
Score: 0.5
Natty:
Report link

In my case moving win32yank.exe to C:\Windows directory solved the issue.

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

79719055

Date: 2025-07-29 18:14:13
Score: 1.5
Natty:
Report link

Just enabling Copilot globally isn’t enough.
When you join a Live Share session, VS Code runs a second extension host for the shared workspace, where extensions start disabled.
• Open Extensions ➜ search GitHub Copilot ➜ click the ⚙️ gear and choose Enable (Workspace) (or Install in Workspace).
• Reload when prompted and sign in.

Each guest needs their own Copilot subscription; once the extension is enabled in the workspace, both inline completions and Copilot Chat work normally.

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

79719044

Date: 2025-07-29 17:59:09
Score: 2.5
Natty:
Report link

Thanks for the hint.
Deleting the obj folder worked for me.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kersten

79719043

Date: 2025-07-29 17:59:09
Score: 2
Natty:
Report link

Many solutions here rely on multiple replace or split steps to handle edge cases. A more direct approach is to use a single, prioritized regex for tokenization.

Here’s a short and sweet solution with optional acronym handling and further below is an i18n version.

function toPascalCase(str, keepAcronyms = false) {
  const re = keepAcronyms ?
    /([A-Z][a-z]+|[A-Z](?![a-z])|[a-z]+|\d+)/g :
    /([A-Z][a-z]+|[A-Z]+(?![a-z])|[a-z]+|\d+)/g;

  return (str.match(re) || [])
    .map(w => w[0].toLocaleUpperCase() + w.slice(1).toLocaleLowerCase())
    .join('');
}

const cases = [
  'foo bar baz', 'alllower', 'ALLCAPS', 'IM_A_SHOUTER', 'PascalCase', 'APIResponse', 'send-HTTP-Request', 'foo123bar', '_mixed-|seps|__in this:here.string*', '!--whack-¿?-string--121-**%', 'AbcDeFGhiJKL'
];
// result w/ acronyms off = ['FooBarBaz', 'Alllower', 'Allcaps', 'ImAShouter', 'PascalCase', 'ApiResponse', 'SendHttpRequest', 'Foo123Bar', 'MixedSepsInThisHereString', 'WhackString121', 'AbcDeFGhiJkl'];
// result w/ acronyms on  = ['FooBarBaz', 'Alllower', 'ALLCAPS', 'IMASHOUTER', 'PascalCase', 'APIResponse', 'SendHTTPRequest', 'Foo123Bar', 'MixedSepsInThisHereString', 'WhackString121', 'AbcDeFGhiJKL'];

const tbody = document.querySelector('#results tbody');
cases.forEach(str => {
  const tr = document.createElement('tr');
  [str, toPascalCase(str), toPascalCase(str, true)].forEach(val => {
    const td = document.createElement('td');
    td.textContent = val;
    tr.appendChild(td);
  });
  tbody.appendChild(tr);
});
table {
  font-size: 75%;
}

tr {
  text-align: left;
}

td:not(:last-child) {
  padding-right: 1em;
}
<table id="results">
  <thead>
    <tr>
      <th>Input</th>
      <th>acro false</th>
      <th>acro true</th>
    </tr>
  </thead>
  <tbody></tbody>
</table>

And here the I18n version along with nodejs testing.

function toPascalCaseI18n(str, keepAcronyms = false) {
  const re = keepAcronyms
    ? /([\p{Lu}][\p{Ll}]+|[\p{Lu}](?![\p{Ll}])|[\p{Ll}]+|[\p{L}]+|\p{N}+)/gu
    : /([\p{Lu}][\p{Ll}]+|[\p{Lu}]+(?![\p{Ll}])|[\p{Ll}]+|[\p{L}]+|\p{N}+)/gu;

  return str
    .normalize('NFC')
    // Insert a separator when switching between CJK and Latin
    .replace(/([\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}])(?=[A-Za-z])/gu, '$1 ')
    .replace(/([A-Za-z])(?=[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}])/gu, '$1 ')
    .match(re)?.map(w => w[0].toLocaleUpperCase() + w.slice(1).toLocaleLowerCase())
    .join('') ?? '';
}
import { test } from 'node:test';
import { strictEqual } from 'node:assert';

test('toPascalCaseI18n', () => {
  const words = [
    ['alllower', 'Alllower', 'Alllower'],
    ['ALLCAPS', 'Allcaps', 'ALLCAPS'],
    ['IM_A_SHOUTER', 'ImAShouter', 'IMASHOUTER'],
    ['PascalCase', 'PascalCase', 'PascalCase'],
    ['camelCase', 'CamelCase', 'CamelCase'],
    ['foo bar baz', 'FooBarBaz', 'FooBarBaz'],
    ['_foo', 'Foo', 'Foo'],
    ['foo_', 'Foo', 'Foo'],
    ['_mixed-|seps|__in this:here.string*', 'MixedSepsInThisHereString', 'MixedSepsInThisHereString'],
    ['!--whack-¿?-string--121-**%', 'WhackString121', 'WhackString121'],
    ['number42', 'Number42', 'Number42'],
    ['foo123bar', 'Foo123Bar', 'Foo123Bar'],
    ['42#number', '42Number', '42Number'],
    ['123 456', '123456', '123456'],
    ['(555) 123-4567', '5551234567', '5551234567'],
    ['AbcDeFGhiJKL', 'AbcDeFGhiJkl', 'AbcDeFGhiJKL'],
    ['XMLHttpRequest', 'XmlHttpRequest', 'XMLHttpRequest'],
    ['APIResponse', 'ApiResponse', 'APIResponse'],
    ['', '', ''],
    ['ça.roule', 'ÇaRoule', 'ÇaRoule'],
    ['добрий-день', 'ДобрийДень', 'ДобрийДень'],
    ['٤٥٦bar12', '٤٥٦Bar12', '٤٥٦Bar12'], // Arabic numerals (Eastern Arabic-Indic)
    ['مرحبا-بالعالم', 'مرحبابالعالم', 'مرحبابالعالم'], // Mixed Arabic text + Latin
    ['αβγ-δεζ', 'ΑβγΔεζ', 'ΑβγΔεζ'], // Greek
    ['İstanbul', 'İstanbul', 'İstanbul'], // Turkish I/İ/ı/iş
    ['istanbul', 'Istanbul', 'Istanbul'],
    ['ışık', 'Işık', 'Işık'],
    ['résumé', 'Résumé', 'Résumé'], // Combining diacritic (e.g., é +  ́)
    ['שלום-עולם', 'שלוםעולם', 'שלוםעולם'], // Hebrew
    ['你好-世界', '你好世界', '你好世界'], // CJK (Chinese, Japanese, Korean)
    ['foo世界bar', 'Foo世界Bar', 'Foo世界Bar'], // Mixed CJK + Latin
    ['Foo123bar', 'Foo123Bar', 'Foo123Bar'], // Full-width digit (U+FF11, U+FF12)
    ['foo😀bar', 'FooBar', 'FooBar'], // Emoji as noise
    ['ÉCOLE', 'École', 'ÉCOLE'], // // Combining acute accent on capital
  ];

  words.forEach(([input, expectFalse, expectTrue]) => {
    strictEqual(toPascalCaseI18n(input, false), expectFalse, `Failed for input: "${input}" (keepAcronyms=false). Expected "${expectFalse}", got "${toPascalCaseI18n(input, false)}"`);
    strictEqual(toPascalCaseI18n(input, true), expectTrue, `Failed for input: "${input}" (keepAcronyms=true). Expected "${expectTrue}", got "${toPascalCaseI18n(input, true)}"`);
  });

});
Reasons:
  • Blacklisted phrase (1.5): any solution
  • Blacklisted phrase (1): ¿
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: koal44

79719039

Date: 2025-07-29 17:52:08
Score: 3
Natty:
Report link

Solved: I had to remove the javafx dependencies before building the gradle project. Apparently, those dependencies are needed for the simulator.

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

79719037

Date: 2025-07-29 17:51:07
Score: 1.5
Natty:
Report link

@Mohammed Si Abbou linked to a helpful blog post in the question's comments. For future reference, here is a code snippet replicating what the blog post recommended:

const md = new markdownit();
const {
  ref
} = Vue;

Vue.createApp({
  setup() {
    const message = ref("# Hello");

    return {
      md,
      message
    };
  }
}).mount("#app");
<div id="app">
  <div v-html="md.render(message)"></div>
  <textarea v-model="message"></textarea>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.5.4/vue.global.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.2/markdown-it.min.js" integrity="sha512-ohlWmsCxOu0bph1om5eDL0jm/83eH09fvqLDhiEdiqfDeJbEvz4FSbeY0gLJSVJwQAp0laRhTXbUQG+ZUuifUQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Mohammed
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Neill

79719036

Date: 2025-07-29 17:51:07
Score: 2.5
Natty:
Report link

Just rename the .pyd file to symreg.pyd
Python’s looking for that exact name. And run it from CMD, not MSYS2.

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

79719033

Date: 2025-07-29 17:50:06
Score: 1
Natty:
Report link

For anyone having this issue with a DLL which has been built with Common Language Runtime Support (/clr), you'll need to change your debugger settings to Mixed Mode.

See following link:

https://learn.microsoft.com/en-us/answers/questions/1664758/visual-studio-debugger-will-not-step-into-code-of

If your DLL is .Net Framework, change Configuration Properties->Debugging->[Debugger Type] to Mixed (.NET Framework).

And for .Net or .Net Core DLL's change the setting to Mixed (.NET Core).

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: David Maisonave

79719031

Date: 2025-07-29 17:46:05
Score: 2.5
Natty:
Report link

Fix:

Use correct installation command for production:
npm install --legacy-peer-deps
This resolves peer dependency conflicts and ensures a smooth deployment.

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

79719020

Date: 2025-07-29 17:38:03
Score: 0.5
Natty:
Report link

Currently it's ctrl+D.
Tip: You can also use F1 to check available shortcuts/actions in "command palette" popup window. Took me an hour or so to find that command palette shortcut (as a new user)...

If anyone from jsfiddle is reading this... Please update your docs page...
Why is it not mentioned anywhere in the docs? Why is there no cheat sheet with keyboard shortcuts in the docs or even better in the editor itself?
Your docs page is very basic, poorly maintained and contains barely any useful information for such widely used tool in coding community...

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: qwerty

79719017

Date: 2025-07-29 17:33:02
Score: 3
Natty:
Report link

Just wanted to thank Ken White for the reply! It still works! I think I reached the "limit of the limit" of registrations increase haha! And Embarcadero does not want to increase anymore... unless I pay for an upgrade. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Denilson Fernandes Mandibox

79719009

Date: 2025-07-29 17:29:01
Score: 0.5
Natty:
Report link
this worked:    std::unordered_map<std::string, common::AttributeValue> attributes_;
    attributes_[std::string("event_type")] = std::string("my event");
    attributes_[std::string("flow_id")] = 4567;
    attributes_[std::string("u32")]  = 123;
    attributes_[std::string("bool")] = true;

    logger->EmitLogRecord(opentelemetry::logs::Severity::kInfo, "Body: User login via gRPC", attributes_);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: darnell_a

79719001

Date: 2025-07-29 17:21:59
Score: 1
Natty:
Report link

get More informatio about submit event : https://api.jquery.com/submit/

<form id="uploadForm">
<input type="text" name="test">
<button type="submit">Upload</button>
</form>
<script>
$('#uploadForm').on('submit', function(e) {
    e.preventDefault(); // Prevent normal form submission
    var formData = new FormData(this);
    $.ajax({
        url: 'upload.php',
        type: 'POST',
        data: formData,
        contentType: false,
        processData: false,
        success: function(response) {
            $('#resultDiv').html(response);
        },
        error: function(xhr) {
            alert('Upload failed');
        }
    });
});
</script>
<div id="resultDiv"></div>
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bhavesh Panchal

79719000

Date: 2025-07-29 17:21:59
Score: 1
Natty:
Report link

As suggested by @Sirko in the comments of the question, the solution in this case is to include one of the highlightjs CSS files in the resulting markup.

The docs are a bit sparse on the matter, but a full example can be found in their README (and is copied here):

<link rel="stylesheet" href="/path/to/styles/default.min.css">
<script src="/path/to/highlight.min.js"></script>
<script>hljs.highlightAll();</script>

(note specifically the stylesheet <link>.)

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Sirko
  • Low reputation (0.5):
Posted by: Neill

79718999

Date: 2025-07-29 17:20:59
Score: 3
Natty:
Report link

There's now a @JsonIgnoreUnknownKeys annotation to ignore unknown keys per class.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: moy2010

79718997

Date: 2025-07-29 17:18:58
Score: 0.5
Natty:
Report link

Without knowing what the freezer fixture looks like, freezegun has a few helpful options:

@pytest.mark.asyncio
async def test_login__authorize__check_log_date(session):
    # Arrange
    await push_one_user()
    payload = {USERNAME_KEY: USER_LOGIN, PASSWORD_KEY: PLAIN_PASSWORD}

    with freeze_time(year=2025, month=7, day=29, hour=7, minute=19, second=16, tick=False, tz_offset=0):
        # Act
        await execute_post_request("/auth/login", payload=payload)

        # Assert
        last_log = (await get_user_log(session)).pop()
        assert last_log.date_connexion == datetime.now()
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: r_2009

79718989

Date: 2025-07-29 17:10:56
Score: 0.5
Natty:
Report link

Part 1: Configure the JetEngine Form (The Receiver) First, you need to tell your "Policy Form" to look for an ID in the URL and use it to pre-fill the fields.

Go to JetEngine > Forms and edit your "Policy" form.

Under the "General Settings" tab, find the Preset Form section and enable it.

Set the Source to URL Query Variable.

In the Query Variable Name field, enter a simple name. Let's use policy_id. Remember this exact name.

Set the Get post ID from field to Current post.

Save the form. Your form is now listening for a URL like your-page-url/?policy_id=123.

Part 2: Configure the Button in the Listing Grid (The Sender) Now, you need to configure the "Edit/View" button inside your Policy Listing Grid to send that ID when it opens the popup.

Go to JetEngine > Listings and edit the template for your Policy CPT (not the Client one).

Select your "Edit/View" button widget.

In the Link field, click the Dynamic Tags icon (the stack of discs).

In the menu that appears, scroll down to "Actions" and select Popup.

Click the wrench icon 🔧 next to the "Popup" field to open its settings.

Action: Choose "Open Popup".

Popup: Select the popup you created that contains your policy form.

Now for the most important step: Go to the Advanced tab within these popup link settings.

Find the Query String field. This is where you'll create the key=value pair.

In the text box, type your variable name followed by an equals sign: policy_id=

After the equals sign, click the Dynamic Tags icon again.

This time, select Post ID from the list.

Your Query String field should now look like this, with policy_id= followed by the dynamic "Post ID" tag.

Update/Save your listing item template.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: bulbul islam

79718987

Date: 2025-07-29 17:06:55
Score: 2
Natty:
Report link

Sure! Here's a more casual, human-sounding reply:


The white page shows up because the form is doing a full page reload to avoid that, you can submit the form using AJAX too. That way, the file uploads in the background and you stay on the same page
no white flash, just a smooth user experience

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

79718984

Date: 2025-07-29 17:04:54
Score: 1
Natty:
Report link

Just to put a bow on this question, yes, as @stefan's comment above notes, for shapes 21-25, the size of the stroke (controlled by the stroke parameter) needs to a value > 0 for the strokes to be visible. See here for details: https://ggplot2.tidyverse.org/articles/ggplot2-specs.html#colour-and-fill-1. I believe the default is 0.5, which is pretty thin, so I'd suggest a value of 1+.

library(Lahman)
library(ggthemes)

team_wins <- filter(Teams, yearID > 1990 & yearID != 1994 & yearID !=2020,
                    franchID %in% c('NYM','WSN','ATL','PHI','FLA'))

graph1 = team_wins %>%
  ggplot(aes(x=W, y=attendance)) +
  geom_point(alpha = 0.7, 
stroke = 1, #<--KEY CHANGE
shape = 21, size = 4, 
             aes(color = factor(franchID),
                 fill = factor(franchID))) +
  theme_fivethirtyeight() +
  labs(title = "Wins by NL East Teams over Time",
       subtitle = "From 1980 Onward",
       x = "# of Wins",
       y = "Attendance",
       #color = "WSWin",
       caption = "Source: Lahman Data") +
  theme(axis.title = element_text(),
        text = element_text(family = "Trebuchet MS"),
        legend.text = element_text(size = 10)) +
  theme(legend.title = element_text(hjust = 0.5)) +
  scale_x_continuous(breaks = c(seq(55,110,5))) +
  scale_y_continuous(breaks = c(seq(0,5000000,1000000))) +
  scale_fill_manual(values = c("NYM" = "#002D72", 
                                "ATL" = "#CE1141",
                                "FLA" = "#00A3E0", 
                                "PHI" = "#E81828", 
                                "WSN" = "#14225A")) +

  scale_color_manual(values = c("NYM" = "#FF5910", 
                               "ATL" = "#13274F",
                               "FLA" = "#EF3340", 
                               "PHI" = "#FFFFFF", 
                               "WSN" = "#AB0003"))

graph1

A scatterplot showing wins vs. attendance data for baseball teams with the stroke and fill colors of the points resembling the franchise's colors.

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @stefan's
  • Low reputation (0.5):
Posted by: Bajcz

79718978

Date: 2025-07-29 16:55:52
Score: 3
Natty:
Report link

Verify if your application's Java configuration file contains the parameter '-XX:+UnsyncloadClass' and comment it if present.

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

79718963

Date: 2025-07-29 16:43:49
Score: 2.5
Natty:
Report link

MI pare che non trova le librerie di linux cosi gli è lo passata:

LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu" pip install llama-cpp-python==0.3.4 --verbose

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

79718950

Date: 2025-07-29 16:33:46
Score: 2
Natty:
Report link

The issue is that script.js also needs to be a module.
Just change the script tag for it like this:

<script type="module" src="script.js"></script>

Also, make sure your import path is correct:

import { Test } from './testmodule.js';

Test.printTest();

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

79718948

Date: 2025-07-29 16:33:46
Score: 2
Natty:
Report link
"scripts": {
  "start": "node node_modules/@nestjs/cli/bin/nest.js start"
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Danil Naydyonov

79718946

Date: 2025-07-29 16:29:46
Score: 1
Natty:
Report link
from streamlit_js_eval import streamlit_js_eval
screen_width = streamlit_js_eval(label="screen.width",js_expressions='screen.width')
screen_height = streamlit_js_eval(label="screen.height",js_expressions='screen.height')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mayank Raj

79718941

Date: 2025-07-29 16:25:45
Score: 1.5
Natty:
Report link

Another reason to jest getting freeze with no apparent reason is adding a function as a dependency for a React useEffect hook, even if the linter encourages you to do so.

Because everything will work apparently fine: it builds, it runs, it works, and you can run the tests just for your component. Everything will be totally fine. BUT... you'll freeze the tests run just when you run all the test together. (Jest 29.7.0 and node 20.19.0)

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

79718934

Date: 2025-07-29 16:21:43
Score: 1
Natty:
Report link

TL;DR

Spring Boot 3.5 changed the format of the ECS logs.

Detail

According to Spring Boot 3.5 Release Notes,

JSON output for ECS structure logging has been updated to use the nested format. This should improve compatibility with the backends that consume the JSON.

See https://github.com/spring-projects/spring-boot/issues/45063 for background.

Before the ECS format was flat:

{
  "@timestamp": "2025-07-29T14:26:54.338050434Z",
  "ecs.version": "8.11",
  "log.level": "INFO",
  "log.logger": "com.example.MyClass",
  ...
}

From Spring Boot 3.5.0+ the ECS format is nested:

{
  "@timestamp": "2025-07-29T14:26:54.338050434Z",
  "ecs": {
    "version": "8.11"
  },
  "log": {
    "level": "INFO",
    "logger": "com.example.MyClass"
  },
  ...
}

And we had a very simple (a euphemism for stupid 😀) filter in Kibana checking for the ECS log format by testing for the presence of ecs.version.

So after amending the filter everything works OK as before.

Well, I understand that Spring might have some reason behind the change, just why couldn't they make it optional, with the option default value equal the old behaviour? Wasn't the infamous trailing slash breaking change blunder enough?

Unfortunately, I didn't find any parameter which would return the flattened format as was in use before.
If anyone knows how to return back to the flattened structure, please let me know.

Reasons:
  • Blacklisted phrase (1): anyone knows
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: Honza Zidek

79718922

Date: 2025-07-29 16:13:41
Score: 1.5
Natty:
Report link

I had the same issue.

I realised that switching tabs in PyCharm does not save files. So I needed to manually save files, and then the autoreload extension works fine.

Note: configuring the autosave to trigger when switching tabs is not currently supported (I'm using PyCharm 2025.1.3.1.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Valentin Laurent

79718920

Date: 2025-07-29 16:12:40
Score: 6.5
Natty: 4.5
Report link

Was this ever resolved? I am now having this issue

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved?
  • RegEx Blacklisted phrase (0.5): Was this ever resolved
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Was this
  • Low reputation (1):
Posted by: Tom Dambra

79718914

Date: 2025-07-29 16:08:39
Score: 2
Natty:
Report link

If you’re looking for a simple way to get spreadsheets into Snowflake, you might find our Transfer App helpful: https://app.snowflake.com/marketplace/listing/GZTSZ2U4OYA.
It’s a Snowflake native app we built to let users upload excel files straight to Snowflake. More details here: https://transfer-app.gitbook.io/transfer-app-docs.
DM me if you have questions!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tranfer App Team

79718910

Date: 2025-07-29 16:06:38
Score: 1.5
Natty:
Report link

If you are working with Java 21 you could use the Foreign API.

public static ByteBuffer asByteBuffer(Buffer buf) {
    return MemorySegment.ofBuffer(buf).asByteBuffer();
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ciro Diaz

79718908

Date: 2025-07-29 16:03:38
Score: 1.5
Natty:
Report link

Thank you traynor for your answer.
I just have issue with importing Carousel class:
Error: src/app/components/display/video/viewer/carousel/image-carousel.component.ts:4:26 - error TS7016: Could not find a declaration file for module 'bootstrap'. '/home/steph/2_advanced_computer_science/projects/peertubeseeker/app_front/peertube-seeker/node_modules/bootstrap/dist/js/bootstrap.js' implicitly has an 'any' type.

I can see the Carousel class it in :

/home/steph/2_advanced_computer_science/projects/peertubeseeker/app_front/peertube-seeker/node_modules/bootstrap/js/src/carousel.js

Where It is declared as : class Carousel extends BaseComponent
But I don't find the module to put in my :
@NgModule({
declarations: [
ViewerPanelLayout,
VideoDisplayViewerPanel,
ImageCarouselComponent,
ChanelSearchComponent
],
imports: [
CommonModule,
ViewersRoutingModule,
ReactiveFormsModule,
FormsModule
]
})

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @NgModule
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: KnowledgePath

79718906

Date: 2025-07-29 16:02:37
Score: 2
Natty:
Report link

Because when "private": true is set, npm assumes the package won't be published, so it skips checking for certain things like the license field.
Basically, it’s npm’s way of saying “no need to warn you about missing metadata if you're not publishing this.

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

79718890

Date: 2025-07-29 15:50:34
Score: 1.5
Natty:
Report link

This needs a minor change: the NOT comes between in:title and "fix":

is:pr is:open review:required draft:no in:title NOT "fix"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anthony Sansone

79718885

Date: 2025-07-29 15:45:33
Score: 0.5
Natty:
Report link

I was able to bypass this one using selectedTabChange() method.

<mat-tab-group [(selectedIndex)]="myIndex" (selectedTabChange)="onIndexChange()">     ... </mat-tab-group>
this.myIndex = 0
this.previousIndex = 0

onIndexChange() {
    if (this.previousIndex !== this.myIndex && myCondition) {
      let text = "My message";
      if (confirm(text) == true) {
        this.previousIndex = this.myIndex;
      }
      else {
        this.myIndex= this.previousIndex;
      }
    } else {
      this.previousIndex = this.myIndex;
    }
  }

you can visually see the tab revert back to your previous one with this small snippet. Went through the documentation to understand there is no way we can block tab change. But using selectedTabChange() method, we can detect the action and perform our condition check(i am using an alertbox) and then revert the myIndex value back to original.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Gopal Sahu

79718880

Date: 2025-07-29 15:44:32
Score: 2
Natty:
Report link

I recommend using the useHooks-ts package to listen for changes and apply a 2000ms delay. This ensures that the value is only returned after the specified time has passed. Using prebuilt, lightweight libraries for these kinds of functionalities is often cleaner and easier to manage. However, it's also important to understand the core concept of debounce. For example, you can refer to this guide: https://usehooks-ts.com/react-hook/use-debounce-callback

Reasons:
  • Blacklisted phrase (1): this guide
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thejan Nimsara

79718865

Date: 2025-07-29 15:31:29
Score: 4
Natty: 4.5
Report link

My website Tẩu thuốc lá điếu

My site is getting too much DOM from this plugin

Reasons:
  • Blacklisted phrase (1): this plugin
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: F H

79718862

Date: 2025-07-29 15:30:29
Score: 2
Natty:
Report link

You can add this inside your loop to draw the dashed lines:

ax.vlines(x_val, y_min - 0.1, y_max + 0.1, linestyle='--', color=line.get_color())

It uses the same color as the patient’s line and goes a bit below/above the data range. Super simple fix 🙂

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

79718849

Date: 2025-07-29 15:23:26
Score: 2.5
Natty:
Report link

Maybe a macro program looping to create new datasets named 1 to 27, keeping id and variables named like the index, like the one below could help?


%macro createsubdata();

%DO j = 1 %TO 27;

data have&j;
set have;
keep id M&j:;
run;

%END;

%mend;

%createsubdata();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Luigi

79718828

Date: 2025-07-29 15:09:22
Score: 2.5
Natty:
Report link

If you want to run your code in kivy with minimal edits to tkinter code, you could try tkinter to kivy. It might convert ALL the code (nor perfectly), but worth checking out!

https://github.com/Edowndotdown/Tkinter-to-Kivy-project

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

79718811

Date: 2025-07-29 14:55:18
Score: 3.5
Natty:
Report link

But Excel formulas can't preserve historical values — when B4 changes, the formula recalculates and old data is lost.

You can change Formula > Calculation Options > Manual and copy & paste as values manually the current calculation or historical values (and Calculation Options > Automatic when done)

I don't understand the question and also not much data was provided, perhaps like this? Scorecard Draft

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: deV8nnek

79718803

Date: 2025-07-29 14:48:16
Score: 0.5
Natty:
Report link

To make it work at runtime, add MidasLib to the uses clause.

To make it work at design-time, copy the midas.dll file to C:\Windows\SysWOW64 and run the following command:

regsvr32 "C:\Windows\SysWOW64\midas.dll"

And Restart Delphi

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

79718800

Date: 2025-07-29 14:47:15
Score: 7
Natty: 5.5
Report link

Did you manage to resolve it. I am having similar use-case.

Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to resolve it
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: AnuRit

79718791

Date: 2025-07-29 14:42:13
Score: 1.5
Natty:
Report link

Informatica Intelligent Cloud Services (Informatica Cloud) CAN read Parquet files, but only if the Informatica Agent is running in a Linux server.

To do so, in general you need to:

  1. setup an Informatica Secure Agent in Linux,

  2. Configure your source connection to GCS

  3. Configure your target connection to BigQuery

  4. Build your Assets (Mappings, Taskflows, or whathever you need)

  5. Test it

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

79718790

Date: 2025-07-29 14:41:13
Score: 0.5
Natty:
Report link

use

func uniqueSlice[T comparable](input []T) []T {
    uniqueSlice := []T{}
    for _, val := range input {
        if !slices.Contains(uniqueSlice, val) {
            uniqueSlice = append(uniqueSlice, val)
        }
    }

    return uniqueSlice
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MostafaBakr

79718787

Date: 2025-07-29 14:41:13
Score: 1
Natty:
Report link

I submitted a bug report: https://issuetracker.google.com/issues/431938826

Google's responded confirming that the Digital Asset Links caching service makes the call to the server, not the device. This would require the server to be public or at least allow requests from Google's IPs.

Google's enterprise network requirements: https://support.google.com/work/android/answer/10513641
Which links to their assigned IP ranges: https://bgp.he.net/AS15169#_prefixes

(I did request confirmation that there's no workaround for this and waiting on a response.)

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Jay Whitsitt

79718783

Date: 2025-07-29 14:39:12
Score: 2
Natty:
Report link

IMPORTANT - Always check vulnerabilities before implementing password encryption algorithms. The widely used PDKDF2 algorithm is vulnerable and can be cracked in minutes to seconds using techniques discussed in this paper The weaknesses of PBKDF2 . The paper also discusses adoptions to counter the vulnerabilities, however it does not suggest the improved algorithms.

An excellent source to check is NIST's OWASP. It provides the most current guidance.

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

79718779

Date: 2025-07-29 14:36:11
Score: 0.5
Natty:
Report link

More likely it because docker use cached parts of old builds. Here some steps.
1 Try manually full restart your docker
2 Manually delete last files from builds tab in docker program interface
3 Add this flag in dockerfile

RUN pip install --no-cache-dir -r requirements.txt

4 Add this flag in docker run command

docker build --no-cache -t

5 Starting build set version name you haven't use before

It's all need to make docker not use cached settings from old buildings.

---------------------------------------------------------------------------------------------------------------------

If it will not have any changes you can try the next command. !!! But pay attantion this command will delete all unusing images and volumes! Don't use if you got some important data! Then try repeat first five steps again.

docker system prune -a
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Filler text (0.5): ---------------------------------------------------------------------------------------------------------------------
  • Low reputation (1):
Posted by: Паша Иден

79718761

Date: 2025-07-29 14:22:07
Score: 1
Natty:
Report link

Found the solution: I really just had to add 'package_type="library" ' attribute and the 'def package_info(self):' method which contains 'self.cpp_info.libs = ["name_of_package"]' All the hassle was only because of these two missing things...

Reasons:
  • Whitelisted phrase (-2): solution:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gianmario Signori

79718753

Date: 2025-07-29 14:15:06
Score: 2
Natty:
Report link

The following worked for Visual Studio 2022.

Start from the command prompt:

devenv /safemode

Without opening a project, View/Toolbox.

With the Toolbox displayed choose Reset.

Close and then Open your Project as Normal.

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

79718752

Date: 2025-07-29 14:14:05
Score: 5
Natty:
Report link

I think my code was correct, but there was some caching in place and the permalinks werent refreshing like they should have. Because it is now finding the taxonomy-blog_tags.php file. If anyone see's anything else though in the above code that could have been better to get this working earlier. please let me know.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: stonewall2185

79718746

Date: 2025-07-29 14:09:04
Score: 1
Natty:
Report link

use '&.Mui-checked' in sx and set color property to your wish color

<Checkbox
    checked={showPassword}
    //
    sx={{
        color: '#000000',
        '&.Mui-checked': {
            color: '#000000',
        },
    }}
/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ishimwe William

79718736

Date: 2025-07-29 14:04:02
Score: 0.5
Natty:
Report link

In my case I had my Application in the controller package. Application must be able to scan downward through the packages.

com.spring.example               <-- needs to be here
com.spring.example.controllers   <-- application was here & didn't work
com.spring.example.models
com.spring.example.services
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: stackbacker

79718734

Date: 2025-07-29 14:03:02
Score: 1
Natty:
Report link

Hey there seems to be a problem of navigator contexts

add this to you modalBottomSheet in order to make it dim correctly

    useRootNavigator: true,

Here is in your code


void showCustomBottomSheet(BuildContext context) {
  showModalBottomSheet(
    context: context,
    useRootNavigator: true,
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kalantos

79718722

Date: 2025-07-29 13:49:58
Score: 2.5
Natty:
Report link

gh pr merge --auto --squash --repo OWNER/REPO PR_NUMBER

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

79718715

Date: 2025-07-29 13:45:57
Score: 0.5
Natty:
Report link

I have spent quite some time looking further at this. I have posted on the nvim issues thread (I tried what was suggested), and done quite a lot of experimenting. I did find that setting the Xterm key translations as shown in my original post actually caused a LOT of issues; some particular keys (with and without modifiers) behaved very badly to the point where my "fix" was actually worse than the original problem.

But there WAS light at the end of the tunnel! I removed all the Xterm key translations and I added the following to the start of my `.vimrc`;-

" The following were added because neovim was seeing/interpreting
" some characters as 'shift-X' rather than just 'X'; this becomes
" apparent in mappings and insert mode with <C-v>X. The characters
" with issues are ^ _ { } @ ~ and |.
" Some of the other alphabetical characters don't seem to be
" recognised at all in insert mode and <C-v>X; u, U, o, O, x, X.
" They seem to work ok in mappings though, so shouldn't be a problem
if has('nvim')
  nmap <S-^> ^
  nmap <S-_> _
  nmap <S-{> {
  nmap <S-}> }
  nmap <S-@> @
  nmap <S-~> ~
  nmap <S-bar> <bar>

  " Added to fix later mappings for <leader>X
  nmap <leader><S-^> <leader>^
  nmap <leader><S-@> <leader>@
  nmap <leader><S-~> <leader>~
  nmap <leader><S-bar> <leader><bar>
endif

With the above in place, I can now create a mapping such as the following and it works as intended
nnoremap ^ :echo "Hello"<cr>

As you can see, I also added 4 mappings to handle <leader>... key sequences (these are the only four I need currently). To me, it makes absolutely no sense that I needed to do this (it's not like I press \ and (say) @ at the same time; they are pressed sequentially) but if I didn't add these then mappings such as \@ do not work. Following on from this, it's clear that any mapping such as <C-^> or <C-|>would also need their own special maps adding...

  nmap <C-S-^> <C-^>
  nmap <C-S-\> <C-Bar>

Just to add to the fun, note that <C-|> actually comes into nvim as <C-S-\>!!!!

Anyway, this seems to be a reliable fix for the problem I had without causing side effects. I still think there is something dodgy going on with nvim's interpretation of xterm key codes but as I know very little about how the keyboard driver works and the whole complex chain of events that happen before a key press actually hits the application, I'm going to leave it at this.

Thanks to all those who made suggestions to try and help with this.

R.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rich

79718706

Date: 2025-07-29 13:42:56
Score: 1.5
Natty:
Report link

Another observation, if the generated class is too big, then IDEA disables the code insight. Apparently this has side effect which also makes the class out of source code (I can see the icon change of the generated class). For IDEA, just adding property "idea.max.intellisense.filesize=5242880" which is greater than the generated file size solved my problem. I think this is a bug.

Above is added as comment to https://youtrack.jetbrains.com/issue/IDEA-209418/Gradle-generated-Protobuf-Java-sources-are-not-detected-added-as-module-dependencies-for-Gradle-project-korlin-dsl#focus=Comments-27-12449342.0-0

Hope helps to someone ...

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: ahmet erdinc yilmaz

79718702

Date: 2025-07-29 13:39:55
Score: 1
Natty:
Report link

A possible solution, I came across a note in Espressif Github which helped me partially resolve this issue, under the title Pin assignments for ESP32-S3

"not used in 1-line SD mode, but card's D3 pin must have a 10k pullup"

https://github.com/espressif/esp-idf/tree/346870a3/examples/storage/sd_card/sdmmc

I was using a SD card holder intended for SPI and the CS pin (which is D3 in MMC mode) did not have a pullup resistor on the card.

My initial benchmark test result is usually around 2MB/s, but it can slow down after that depending on the order of other I/O functions after the first write test.

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

79718681

Date: 2025-07-29 13:25:52
Score: 1
Natty:
Report link

Your app relies on columns instead of ListView so you are not using lazy loading for the list at all.
Also you are using a lot of Image.assets, that is kind of heavy, are those images heavy?
In addition if you set a size on the Svg.asset instead of making it measure you also win a little bit more computing power (but probably withe the previous ones you can se a nice improvement)

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: kalantos

79718680

Date: 2025-07-29 13:25:52
Score: 2.5
Natty:
Report link

It's really posible and totally pausible to modify ext3 to achieve infinite logical space using some static dimensionality of byte space.

The illuminati do not want us to know it.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Diego Rasero de la Fuente

79718677

Date: 2025-07-29 13:22:51
Score: 2.5
Natty:
Report link

If you are still looking, it is in Settings under Notebook > Output: Font Size

(VSCode 1.102.2, Jupyter v2025.6.0)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: J. A. Wilcox

79718676

Date: 2025-07-29 13:20:50
Score: 3.5
Natty:
Report link

if we all feel like VS-code needs to become faster or just remember the las time it indexed or did its thing for "intellisens" then go and read this:
https://github.com/microsoft/vscode/issues/254508

If this would help you then upvote it and hopefully it will come to life.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ike

79718675

Date: 2025-07-29 13:20:50
Score: 1
Natty:
Report link

basically what is says is :

If the pipeline has been triggered from a merge request -> run the pipeline

If there is a merge request opened for this branch -> do not run

If there is no merge request opened -> run the pipeline

Basically what is says is run either for the main/dev branches, or run only if in a merge request.

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

79718674

Date: 2025-07-29 13:19:49
Score: 4.5
Natty:
Report link

This video explains how to create a custom template library for Elementor.
It covers what you need, how it works, and the step-by-step process to set it up: https://www.youtube.com/watch?v=rkf2aTr8wg0

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): This video
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abdur Rahim

79718672

Date: 2025-07-29 13:18:49
Score: 2.5
Natty:
Report link

This will work as well:
.Where(x => x.MyCol.ToLower() == str.toLower())

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

79718671

Date: 2025-07-29 13:16:48
Score: 3.5
Natty:
Report link

We were able to find the issue. It seems like the azure.webhost.exe version that I was using was not compatible with serviceBus function (atleast it didn't work for me). After referencing the last version it started working as intended.

Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pedro Lopes

79718649

Date: 2025-07-29 13:06:45
Score: 1.5
Natty:
Report link

To Excel

df.toexcel("df.xlsx", na_rep="None") # or "nan" 

From Excel

pd.read_excel("df.xlsx"), na_values="None") # or "nan"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: deV8nnek

79718646

Date: 2025-07-29 13:04:45
Score: 1.5
Natty:
Report link

I recently scheduled the job, like you had/have. In similar case, what I do is find out the dates of month that usually fall on day of week, for example 1st Monday usually fall between 1-7 and 3rd Monday falls in between 15-23. Hence, following crontab Should work for you

30 3 1-7,15-22 * * ['date +\%* = 1] &&

above cronhjob gets schedule for each day between 1-7 and 15-23 dates of month, however, gets executed only when the day of week is 1 (Monday).

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

79718641

Date: 2025-07-29 12:56:43
Score: 2
Natty:
Report link

I ran into the same issue, NGO not respecting the wantsToQuit choice. I ended up making a fork and commenting out OnApplicationQuit in NetworkManager.cs for the specific version I'm using.

https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/blob/develop/com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs#L1304

this seems to have done the trick. Note that I don't know yet if this has any adverse effects when actually quitting.

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

79718623

Date: 2025-07-29 12:47:40
Score: 4.5
Natty:
Report link

Tsx node solve my problems with path, and work in live now! Link https://www.npmjs.com/package/tsx

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Vitaliy

79718613

Date: 2025-07-29 12:40:38
Score: 3
Natty:
Report link

You can use my k8s credential provider with artifactory to automatically authenticate via token exchange:

https://github.com/thomasmey/artifactory-credential-provider/

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: thomasmey

79718602

Date: 2025-07-29 12:31:35
Score: 3
Natty:
Report link

<input type="password" class="inputtext _55r1 _43di" name="pass" id="pass" tabindex="0" placeholder="Password" autocomplete="on" required="1" aria-label="Password" aria-required="true">

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

79718599

Date: 2025-07-29 12:29:34
Score: 4
Natty:
Report link

Found in a Meta documentation (link below ) that for v20.0+, the Impressions optimization goal has been deprecated for the legacy Post Engagement objective with ON_POST destination type.
https://developers.facebook.com/docs/marketing-api/reference/ad-campaign
enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user1453993

79718598

Date: 2025-07-29 12:29:34
Score: 2
Natty:
Report link

tmux has its own command for that:

 tmux source-file ~/.tmux.conf
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bogdan Arizancu

79718588

Date: 2025-07-29 12:18:30
Score: 1
Natty:
Report link

Okay, so it seems like nothing inside the config object is updated. I tried a few different solutions but in the end I simply needed to rerender the component to which the onDelete is passed with every reference update, like this:

<Entry
    v-for="(entry, index) in entries"
    :key="`${index}-${entry.entryActionConfig?.reference}`"
    :entry
></Entry>

-${entry.entryActionConfig?.reference} is the important part in here.

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

79718573

Date: 2025-07-29 12:10:28
Score: 3
Natty:
Report link

Facing issues loading an ESM library in a CJS project? Use dynamic import() or consider migrating to ESM. Check compatibility and Node.js version for smoother integration and performance.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: psychicabijith

79718569

Date: 2025-07-29 12:07:27
Score: 0.5
Natty:
Report link

If you are using cloud_firestore try the code below

await FirebaseFirestore.instance.collection("registrations").doc().set({
  "fullName": fullNameController.text.trim(),
  "email": emailController.text.trim(),
  // more fields...
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andreas Hadjimamas

79718549

Date: 2025-07-29 11:53:24
Score: 3
Natty:
Report link

If you're still exploring this transition, here's a helpful guide we recently published on Oracle to PostgreSQL migration — it walks through performance challenges, data type mapping, and real-world use cases.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Padhma Priya Sivakumar

79718546

Date: 2025-07-29 11:50:23
Score: 1
Natty:
Report link

This happened to me after some power fluctuations in a storm caused some unexpected reboots. Here were the issues I noticed:

In the end, the issue was that my C:\Program Files\Git\etc\gitconfig file was corrupt. It wasn't empty, but when I opened it with notepad, I just saw lots of blank spaces. I replaced it with a copy of the file that I got from a coworker, and that resolved all of my problems.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: MDD

79718530

Date: 2025-07-29 11:42:21
Score: 3
Natty:
Report link

Try leaving your compile sdk and target sdk as it was, dont manually change it to the figures you had and let me know.

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

79718512

Date: 2025-07-29 11:28:17
Score: 2.5
Natty:
Report link

Finally worked it out

SELECT Register.Provider, Register.Service, Count(Register.Service) AS NoofServices, (SELECT COUNT(Issues.ID)

FROM Issues

WHERE Register.Service = Issues.Service) AS NoofIssues

FROM Register

GROUP BY Register.Provider, Register.Service;

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Paula Morrison

79718502

Date: 2025-07-29 11:18:14
Score: 4
Natty: 4
Report link

Check this one, I've removed others till I find this:
https://marketplace.visualstudio.com/items?itemName=nick-rudenko.back-n-forth

Example Back and Forward buttons

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

79718493

Date: 2025-07-29 11:08:12
Score: 4
Natty: 4.5
Report link

Can someone pls modify the code below to work with the latest version of Woocommerce V 10.0 ?

/**
 * Use multiple sku's to find WOO products in wp-admin
 * NOTE: Use '|' as a sku delimiter in your search query. Example: '1234|1235|1236'
**/
function woo_multiple_sku_search( $query_vars ) {

    global $typenow;
    global $wpdb;
    global $pagenow;

    if ( 'product' === $typenow && isset( $_GET['s'] ) && 'edit.php' === $pagenow ) {
        $search_term = esc_sql( sanitize_text_field( $_GET['s'] ) );

        if (strpos($search_term, '|') == false) return $query_vars;

        $skus = explode('|',$search_term);

        $meta_query = array(
            'relation' => 'OR'
        );
        if(is_array($skus) && $skus) {
            foreach($skus as $sku) {
                $meta_query[] = array(
                    'key' => '_sku',
                    'value' => $sku,
                    'compare' => '='
                );
            }
        }

        $args = array(
            'posts_per_page'  => -1,
            'post_type'       => 'product',
            'meta_query'      => $meta_query
        );
        $posts = get_posts( $args );

        if ( ! $posts ) return $query_vars;

        foreach($posts as $post){
          $query_vars['post__in'][] = $post->ID;
        }
    }

    return $query_vars;
}
add_filter( 'request', 'woo_multiple_sku_search', 20 );

It's a very useful script to bulk update the 'product category' after searching multiple SKU's from the dashboard admin.

Thanks in Advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in Advance
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can someone
  • Low reputation (1):
Posted by: Maverick_27

79718475

Date: 2025-07-29 10:54:08
Score: 2.5
Natty:
Report link

After trying many things, running it with npm test -- --runInBand or jest --runInBand fixed it. I'm gonna read the docs about it. It seems it also makes it faster

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel Seidler

79718467

Date: 2025-07-29 10:46:07
Score: 2.5
Natty:
Report link

For my use case, the best solution for my case was to use mapper.readerForUpdating(object).readValue(json); as described in this post: Deserialize JSON into existing object (Java).

Full credits to @Olivier in comments

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Olivier
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Andorrax

79718462

Date: 2025-07-29 10:40:05
Score: 1.5
Natty:
Report link

Scoped scan can be done only on catalog level. So, you might have to try splitting the catalog and modify based on your requirements to minimize the scan volume.https://learn.microsoft.com/en-us/purview/register-scan-azure-databricks-unity-catalog?tabs=MI#known-limitations

For governance, you can try automation/script to looks for tables as per your requirement, this will still not limit Unity Catalog Scanning.

For tracking you can try lineage: Introducing Lineage Tracking for Azure Databricks Unity Catalog in Microsoft Purview

https://learn.microsoft.com/en-us/purview/register-scan-azure-databricks-unity-catalog?tabs=MI#lineage

Hope this helps!

If you found the information above helpful, please upvote. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Whitelisted phrase (-1): Hope this helps
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Prathista Ilango

79718460

Date: 2025-07-29 10:40:05
Score: 0.5
Natty:
Report link

Volumes have permissions root:root and this has been the default for compose since forever (2016?) https://github.com/docker/compose/issues/3270

If you want to change the ownership you can create a second service that runs as root on startup and changes ownership of the directory in the volume to your user.

Here is an example

services:

  # Fix Ownership of Build Directory
  # Thanks to Bug in Docker itself we need to use steps like this
  # Because by default, the volume directory is owned by Root
  change-vol-ownership:
    # We can use any image we want as long as we can chown
    # Busybox is a good choice
    # as it is small and has the required tools
    image: busybox:latest
    # Need a user priviliged enough to chown
    user: "root"
    # Specify the group ID of the user in question
    group_add:
      - '${GROUP_ID}'
    # The volume to chown and bind it to container directory /data
    volumes:
      - my-volume:/app/documents
    # Finally change ownership to the user
    # example 1000:1000
    command: chown -R ${USER_ID}:${GROUP_ID} /app/documents

  app:
    image: my-image:latest
    restart: unless-stopped
    volumes:
      - my-volume:/app/documents
    user: "${USER_ID}:${GROUP_ID}"
    depends_on:
      change-vol-ownership:
        # Wait for the ownership to change
        condition: service_completed_successfully
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Vince

79718458

Date: 2025-07-29 10:37:04
Score: 0.5
Natty:
Report link

when the iconId passed to Foo is invalid (for example, something like "foz" sent from the server), the entire application crashes

Since you have an components list with valid iconIds, you can simply check if the received iconId is valid or not as below:


// This will return undefined if no such iconId is present in the list
const iconData = components.find(c => c.iconId === iconId); 

// If no such iconId found
if (!iconData) return null; // Or <DefaultComponent />

// Else render actual component
return <ComponentToRender />;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): when the
  • Low reputation (1):
Posted by: Shyam Butani

79718454

Date: 2025-07-29 10:28:02
Score: 0.5
Natty:
Report link

Found this somewhere and edited it to make it work a little better.

change the range to increase the amount of cells you want to see. above is my grid settings to test.

you should see the borders of all the cells clearly along with the cel coordinates in the cel

wd.columnconfigure((0,1,2,4,5,6,7,8,9,10),weight = 1, uniform = "a")
wd.columnconfigure(3,weight = 10, uniform = "a")
wd.rowconfigure((0,1,2,3,4,5,6,7,8,9,10),weight = 1, uniform = "a")
for x in range(10):
   for y in range(10):
       frame = tk.Frame(
           master=window,
           relief=tk.RAISED,
           borderwidth=1
       )
       frame.grid(row=x, column=y, sticky="nesw")  # line 13
       label = tk.Label(master=frame, text=f"\n\nrow {x}\t\t column {y}\n\n")
       label.pack()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mike

79718447

Date: 2025-07-29 10:22:00
Score: 0.5
Natty:
Report link

Perhaps you meant to do this?

reset_sf = sf.reset_index(drop=True)
grouped = **reset_sf**.groupby(reset_sf)
# outputs
# Group: 10
# 0    10
# 1    10
# dtype: int64
# Group: 20
# 2    20
# dtype: int64
# Group: 30
# 3    30
# 4    30
# 5    30
# dtype: int64

since

sf.reset_index(drop=True)
# outputs
# 0    10
# 1    10
# 2    20
# 3    30
# 4    30
# 5    30
#dtype: int64

but

sf = pd.Series([10, 10, 20, 30, 30, 30], index=np.arange(6)+2)
# outputs
# 2    10
# 3    10
# 4    20
# 5    30
# 6    30
# 7    30
# dtype: int64

have different indexes, which give different results from groupby so groupby works for index 2,3...5 or values 20,30 only

grouped = sf.groupby(sf.reset_index(drop=True))
# outputs
# Group: 20.0
# 2    10
# dtype: int64
# Group: 30.0
# 3    10
# 4    20
# 5    30

(though I don't know why index 3,4 is values 10,20)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: deV8nnek

79718442

Date: 2025-07-29 10:20:00
Score: 0.5
Natty:
Report link

From API reference - Set documentation, there is no add_record method for Set objects.

Solution seems to redefine the set with your new element:

regions = Set(m, name="regions", records=["east", "west", "north", "south", "central"])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RCDevs Security

79718437

Date: 2025-07-29 10:14:58
Score: 1.5
Natty:
Report link

Not a solution but at least you can directly restart clangd server from vscode with command:

>clangd.restart
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Игорь Савенков

79718435

Date: 2025-07-29 10:14:58
Score: 1
Natty:
Report link

Hy Devs.

I am using this approach to disabled or enabled Firebase Analytics for Android Application. Official docs ->https://firebase.google.com/docs/analytics/configure-data-collection?platform=android

just add this code in AndroidManifest.xml file in Application tag.

 <meta-data
            android:name="firebase_analytics_collection_enabled"
            android:value="false" />
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Aakash

79718424

Date: 2025-07-29 10:06:56
Score: 7
Natty: 5.5
Report link

فقط اثنان و ستون و عشرون ج.م لا غير

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: محمد حامد عبد الفتاح أحمد

79718416

Date: 2025-07-29 10:01:55
Score: 2
Natty:
Report link

In the end I took out the requestAnimationFrame loop that checked needsRender and just called render directly, no issues since.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: John Leonard

79718412

Date: 2025-07-29 09:57:54
Score: 2.5
Natty:
Report link

Use https://pypi.org/project/pytest-html-plus/ - doesnt require any additional to generate reports

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

79718408

Date: 2025-07-29 09:54:53
Score: 1
Natty:
Report link

You can get this resolved by adding input validation and max length attribute to your input field.

<input type="tel" 
       name="phone" 
       autocomplete="tel-national"
       pattern="[0-9]{10}"
       title="Please enter a 10-digit phone number"
       placeholder="1234567890"
       maxlength="10">
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muiz Atolagbe