79495512

Date: 2025-03-09 06:34:45
Score: 3.5
Natty:
Report link

Make sure the _netrc is the role of 600(chmod +x 600 _netrc )

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

79495507

Date: 2025-03-09 06:28:44
Score: 4
Natty: 4.5
Report link

On line, on other websites, I have seen that equation as

a +b * exp (-2×(x-mu)**2)/(sigma**2))

Is the formula elsewhere incorrect? Or is it evaluating for a "different b" value of the same Gaussian curve peak of value "b"?

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

79495472

Date: 2025-03-09 05:46:38
Score: 1
Natty:
Report link

Use @SpringBootTest(classes = SecurityAppConfig.class)

By default, @TestPropertySource is designed to load .properties files, not .yml files.

or you can replace .yml to .properties file.

please refer - https://github.com/spring-projects/spring-boot/issues/33434

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Birudeo Garande

79495468

Date: 2025-03-09 05:41:37
Score: 2
Natty:
Report link

Hello could you share the code snippet of the program that is causing unexpected behaviour. It would help others to understand the problem in a more proper way.
But as far I understand you need to listen to the purchase status, here is the example code from the documentation:

void _listenToPurchaseUpdated(List<PurchaseDetails> purchaseDetailsList) {
  purchaseDetailsList.forEach((PurchaseDetails purchaseDetails) async {
    if (purchaseDetails.status == PurchaseStatus.pending) {
      _showPendingUI();
    } else {
      if (purchaseDetails.status == PurchaseStatus.error) {
        _handleError(purchaseDetails.error!);
      } else if (purchaseDetails.status == PurchaseStatus.purchased ||
                 purchaseDetails.status == PurchaseStatus.restored) {
        bool valid = await _verifyPurchase(purchaseDetails);
        if (valid) {
          _deliverProduct(purchaseDetails);
        } else {
          _handleInvalidPurchase(purchaseDetails);
        }
      }
      if (purchaseDetails.pendingCompletePurchase) {
        await InAppPurchase.instance
            .completePurchase(purchaseDetails);
      }
    }
  });
}

(Refer: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase#listening-to-purchase-updates)

Reasons:
  • RegEx Blacklisted phrase (2.5): could you share the code
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mastermindsap

79495467

Date: 2025-03-09 05:41:37
Score: 1
Natty:
Report link

You are trying to do the following:

git remote add origin https://github.com/stefanovic80/physicsComplementsITISstudents

The remote is not actually set up right and should be this:

git remote add origin https://github.com/stefanovic80/physicsComplementsITISstudents.git

You are missing a ".git" at the end.

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

79495455

Date: 2025-03-09 05:24:35
Score: 2
Natty:
Report link
CREATE VIRTUAL TABLE addresses_search_fts USING fts5(ADDRESS_LABEL, tokenize="unicode61 tokenchars '\x2d'")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: AussieAndy

79495451

Date: 2025-03-09 05:20:34
Score: 1.5
Natty:
Report link

The error was resolved by replacing the relevant code with the code below.

!my_env/bin/python -m pip install -e /kaggle/working/sweagent/. --no-index \
--find-links=/kaggle/input/setuptools-75-8-2/ \
--find-links=/kaggle/input/packages-for-sweagent/packages

Using the code below and looking at the details, I found that the problem was caused by the setuptools installation, so I added the setuptools wheel file.

pip install  -e /kaggle/working/sweagent/. --no-index -vvv

https://www.kaggle.com/code/ooooooooooooooooo/notebook336e888d96

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Filler text (0.5): ooooooooooooooooo
  • Low reputation (1):
Posted by: Ryo

79495433

Date: 2025-03-09 05:07:31
Score: 2.5
Natty:
Report link

For this purpose you can create a new custom user operation listener by extending the AbstractUserOperationEventListener class [1]. Inside the doPreAddUser method you can call the external API and do the validation.

[1] https://github.com/wso2/carbon-kernel/blob/a286224351c7d2ab0875a91fe51eaf3b61a312d2/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/common/AbstractUserOperationEventListener.java#L57

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

79495432

Date: 2025-03-09 05:06:31
Score: 1.5
Natty:
Report link

It turns out I didn't use the correct CMD to start the server, replaced with

CMD ["mvn", "exec:java", "-Dexec.mainClass={mymainclass}"]

then it just worked the same way as localhost.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: YT.Lu

79495411

Date: 2025-03-09 04:45:28
Score: 1
Natty:
Report link

Why bother writing your own declaration files? Why not declare a new Request interface that extends Express's Request interface?

Something like this: ts playground

This way you can let the typescript compiler generate the declaration file for you (using either "declaration"="true" in the tsconfig file or with the --declaration flag at the tsc CLI; link).

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why
  • Low reputation (0.5):
Posted by: beefsupreme

79495410

Date: 2025-03-09 04:44:28
Score: 3.5
Natty:
Report link

https://docs.telethon.dev/en/stable/basic/quick-start.html
This can help you
there is a tutorial for creating application that can send messages from your personal account

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

79495407

Date: 2025-03-09 04:40:27
Score: 0.5
Natty:
Report link

I had the same problem . It was showing esp 32 fatal error. exit status 2. then it was suggesting the troubleshooting html page. Though I had my drivers installed and other set up was done too. Later I tried with new esp 32 and the problem was gone. So, if all the necessary set up is done in your pc and also the data cable is operational and still this error,

there is a high chance that your esp 32 is somehow damaged and it won't work further.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: JEET SARKAR

79495404

Date: 2025-03-09 04:38:27
Score: 1.5
Natty:
Report link

I solved this problem by running vscode as administrator

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Benlu Wang

79495390

Date: 2025-03-09 04:13:23
Score: 2.5
Natty:
Report link

enter image description here

just like this (server page component fetching and passing the promise itself, then in a client component use the use react hook

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

79495365

Date: 2025-03-09 03:37:17
Score: 1
Natty:
Report link

Here's how I deal with such situations.

First, I create a "CSV" entry with the "primary keys" (which I also use for sorting) then, I list all the records.

foo.files=f1,f2
foo.files.f1.name=foo.txt
foo.files.f1.expire=200
foo.files.f2.name=foo2.txt
foo.files.f2.expire=10
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Victor CRETU

79495344

Date: 2025-03-09 03:12:13
Score: 4.5
Natty:
Report link
import { client } from '@/sanity/lib/client';
import { urlFor } from '@/sanity/lib/image';
import { MDXComponents } from '@/components/mdx/MDXComponents';
import Image from 'next/image';
import CarbonAds from '@/components/carbonAds';
import { Metadata } from 'next';

export interface FullBlog {
  currentSlug: string;
  title: string;
  content: string;
  coverImage?: any;
  date: string;
}

const estimateReadingTime = (content: string): number => {
  const wordsPerMinute = 200;
  const wordCount = content.split(/\s+/).length;
  return Math.ceil(wordCount / wordsPerMinute);
};

function formatDate(dateString: string): string {
  const date = new Date(dateString);
  const options: Intl.DateTimeFormatOptions = {
    year: 'numeric',
    month: 'long',
    day: 'numeric',
  };
  return date.toLocaleDateString(undefined, options);
}

async function getBlogPostContent(slug: string): Promise<FullBlog | null> {
  const query = `*[_type == "post" && slug.current == $slug][0] {
    "currentSlug": slug.current,
    title,
    date,
    coverImage,
    content
  }`;

  try {
    const post = await client.fetch(query, { slug });
    return post || null;
  } catch (error) {
    console.error("Error fetching blog post:", error);
    return null;
  }
}

export async function generateMetadata(props: {
  params: Promise<{ slug: string }>
}): Promise<Metadata> {
  const params = await props.params;
  const { slug } = params;
  const post = await getBlogPostContent(slug);

  if (!post) {
    return {
      title: 'Post Not Found',
    };
  }

  return {
    title: post.title,
    description: `Read more about ${post.title} on Manish Tamang's blog.`,
  };
}

export default async function BlogPost(props: {
  params: Promise<{ slug: string }>
}) {
  const params = await props.params;
  const { slug } = params;
  const post = await getBlogPostContent(slug);

  if (!post) {
    return (
      <div className="text-center py-10 text-gray-500 text-lg">
        Post not found or error loading.
      </div>
    );
  }

  const formattedDate = formatDate(post.date);
  const readingTime = estimateReadingTime(post.content);

  return (
    <article className="container mx-auto py-12 px-6 max-w-3xl">
      <h1 className="text-4xl font-bold mb-2 font-peachi">{post.title}</h1>
      <div className="flex items-center justify-between mb-4">
        <div className="flex items-center space-x-2">
          <Image
            src="/profile.png"
            alt="Manish Tamang"
            width={30}
            height={30}
            className="rounded-full"
          />
          <span className="text-gray-500 text-sm">Manish Tamang</span>
        </div>
        <span className="text-gray-500 text-sm">
          {formattedDate} - {readingTime} min read
        </span>
      </div>
      <hr className="mb-8 border-gray-200 dark:border-gray-700" />
      {/* Uncomment and adjust if you want to include the cover image */}
      {/* {post.coverImage && (
        <Image
          width={100}
          height={100}
          src={urlFor(post.coverImage).url()}
          alt={post.title}
          className="w-full h-auto mb-6 rounded-[8px]"
        />
      )} */}
      <div className="prose dark:prose-invert max-w-none leading-relaxed font-geist">
        <CarbonAds className="fixed bottom-4 left-20 w-1/4" />
        <MDXComponents content={post.content} />
      </div>
    </article>
  );
}

My code is giving the same error

.next/types/app/blogs/[slug]/page.ts:34:29
Type error: Type '{ params: { slug: string; }; }' does not satisfy the constraint 'PageProps'.
  Types of property 'params' are incompatible.
    Type '{ slug: string; }' is missing the following properties from type 'Promise<any>': then, catch, finally, [Symbol.toStringTag]

  32 |
  33 | // Check the prop type of the entry function
> 34 | checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
     |                             ^
  35 |
  36 | // Check the arguments and return type of the generateMetadata function
  37 | if ('generateMetadata' in entry) {
Static worker exited with code: 1 and signal: null

Please help me to fix this

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 (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Manish Tamang

79495343

Date: 2025-03-09 03:12:13
Score: 1
Natty:
Report link

Update for 2025:

Widget build(BuildContext context) {
    return PopScope(
      canPop: false, // this prevent the pop
      child: Scaffold(
        appBar: AppBar(
          title: Text("My App"),
        ),
       ),
    );
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Emerson Paduan

79495341

Date: 2025-03-09 03:10:12
Score: 0.5
Natty:
Report link

I encountered this error when I had the same function name declared twice in Metal files.

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

79495331

Date: 2025-03-09 02:53:09
Score: 1
Natty:
Report link

excelButton = driver.FindElement(By.XPath("//div[contains(@class,'exportLabel') and contains(text(),'XLS (1000 max)')]"));

    System.Threading.Thread.Sleep(5000);

    excelButton.Click();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: doan tranxuan

79495324

Date: 2025-03-09 02:44:08
Score: 0.5
Natty:
Report link

Here is an update from 3/2025. I used qt 6.8.2 and ported a simple c++ (no qml) application from Ubuntu 20 to Android. Qtcreator created the cmake based project and generated an android manifest pretty effortlessly. However, there were some bugs that had to be worked around (off the top of my head), where the issue did not occur (or apply) on the Desktop version.

Despite the issues, the port itself should be considered reasonably straight forward and fast, for me who's never done an Android app before. Most advice I read online suggested to do the graphical presentation in QML, which I shall explore. Last but not least, I do not mean to convey misinformation, so please do forgive me if my findings are due to misunderstanding or ignorance.

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

79495321

Date: 2025-03-09 02:41:07
Score: 2
Natty:
Report link

New wrinkle

$str = "name: [Joe Blow1]
        name: [Joe Blow2]
        name: [Joe Blow3]";

current pattern returns: Joe Blow1

I need it to return: Joe Blow3

So, the last one that matches the pattern.
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: YappyDog

79495320

Date: 2025-03-09 02:37:06
Score: 0.5
Natty:
Report link
use itertools::{Itertools, Position};

fn main() {
    let a = vec!["Some", "Text"];
    for (position, item) in a.iter().with_position() {
        match position {
            Position::First | Position::Only => print!("{}", item),
            _ => print!(", {}", item),
        }
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: xuiqzy

79495315

Date: 2025-03-09 02:31:05
Score: 1
Natty:
Report link
def binarysearch(a,n,index):
  mid=int(len(a)/2)
  if(n==a[mid]):
    return (mid+index+1)
  elif(n>a[mid]):
    index=index+mid
    return binarysearch(a[(mid+1):],n,index)
  elif(n<a[mid]):
    return binarysearch(a[0:mid],n,index)

This worked well

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

79495302

Date: 2025-03-09 02:11:02
Score: 3.5
Natty:
Report link

I tried your first option, name: \[(.+?)]

It worked perfectly. Thank you very much.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): It worked
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: YappyDog

79495289

Date: 2025-03-09 01:49:58
Score: 4.5
Natty: 4.5
Report link

The FFMpegKit and mobile-ffmpeg stopped their support, read here for more.
https://tanersener.medium.com/whats-next-for-mobileffmpeg-44d2fac6f09b

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Venkatesh Paithireddy

79495288

Date: 2025-03-09 01:48:58
Score: 2
Natty:
Report link

Thank for your reply but you should try with the URL that I provide in my example it is not that simple, I tried with so many ways. But this way it doesn't work.

The url show the first page with a button on it, when you press the button it should lead you to another page and here is my problem it still blocked on target="_blank" but when you try on Safari it works, like I cannot reproduce the same behavior. Let me know if you find a way to go to the next page after pressing the button on the first page

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sonycsl

79495269

Date: 2025-03-09 01:20:54
Score: 0.5
Natty:
Report link

Use onShouldStartLoadWithRequest

<View style={styles.container}>
      <WebView 
        source={{ uri: url }}
        style={styles.webview}
        onShouldStartLoadWithRequest={handleNavigation} // Intercept links
      />
    </View>

react-native-webview not handling target="_blank"

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

79495267

Date: 2025-03-09 01:18:54
Score: 3
Natty:
Report link

React uses batch updates to prevent this.

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

79495260

Date: 2025-03-09 01:11:52
Score: 4
Natty: 5
Report link

Not an answer, more of an observation. I am on the same chapter trying to learn Rust.

Am correct that the compiler creates two storage locations x_0 and x_1 to prevent unintended memory errors? And both are named "x" in the code?

Doesn't this make intended variable changes errors MORE likely and very hard to find because I now have two real memory locations the code calls the same thing and changes depending on where they are in the code. I could have a "Let" 1000 lines of code before the second "Let" and have no clue what is going on. It makes scope problems very difficult to diagnose.

It seems to me to encourage poor programming habits and reduce clarity. In short, what is the point of shadow variables except to be a lazy programmer?

Reasons:
  • Blacklisted phrase (1): Not an answer
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Andrew Logan

79495241

Date: 2025-03-09 00:44:48
Score: 2.5
Natty:
Report link

I solved the problem. i was searching related questions and this one solved my problem "next build" failing due to useContext error

Reasons:
  • Whitelisted phrase (-2): I solved
  • 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: samsa

79495239

Date: 2025-03-09 00:42:48
Score: 3.5
Natty:
Report link
I'm getting the following error when I'm using playwright . does it only works with a puppeteer ? pls help .    Error while handling browser contexts: Error: browserContext.newPage: Protocol error 
(Target.createTarget): Not supported
    at main (xyz.js:68:42) {name: 'Error', stack: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported', message: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported'}

openAndConnectToVsCodeUsingCdp.ts:78
arg1 =
Error: browserContext.newPage: Protocol error (Target.createTarget): Not supported
    at main (xyz.js:68:42) {name: 'Error', stack: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported', message: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported'}
main @ xyz.ts:78:13
◀ await ▶
processTicksAndRejections @ internal/process/task_queues:105:5
◀ await ▶
processTicksAndRejections @ internal/process/task_queues:105:5
◀ await ▶
<anonymous> @ xyz.ts:100
<anonymous> @ internal/modules/cjs/loader:1723:14
<anonymous> @ internal/modules/cjs/loader:1888:10
<anonymous> @ internal/modules/cjs/loader:1458:32
<anonymous> @ internal/modules/cjs/loader:1275:12
traceSync @ diagnostics_channel:322:14
wrapModuleLoad @ internal/modules/cjs/loader:234:24
executeUserEntryPoint @ internal/modules/run_main:151:5
<anonymous> @ internal/main/run_main_module:33:47
Error: browserContext.newPage: Protocol error (Target.createTarget): Not supported
    at main (xyz.js:68:42) {name: 'Error', stack: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported', message: 'browserContext.newPage: Protocol error (Target.createTarget): Not supported'}
import { chromium, ChromiumBrowser } from 'playwright';
import { spawn } from 'child_process';
import fetch from 'node-fetch';
import { delay } from '../../utils/delay';

function spawnVSCode(port: number) {
  return spawn(
    '/Applications/Visual Studio Code.app/Contents/MacOS/Electron',
    [
      `--remote-debugging-port=${port}`,
      '--user-data-dir=/tmp/foo', // Use temporary data dir to get welcome screen
      '--enable-logging',
    ],
    {
      detached: true,
      env: process.env,
      stdio: ['pipe', 'pipe', 'pipe']
    }
  );
}

async function main() {
  const port = 29378;
  const proc = spawnVSCode(port);

  // Wait for VSCode to start
  await delay(2000);

  // Get the WebSocket endpoint
  const response = await fetch(`http://127.0.0.1:${port}/json/list`);
  const endpoints = await response.json() as any[];
  const endpoint = endpoints.find(p => !p.title.match(/^sharedProcess/));

  if (!endpoint) {
    throw new Error('Could not find VSCode debug endpoint');
  }

  // Connect to the browser using CDP
  const browser = await chromium.connectOverCDP({
    endpointURL: endpoint.webSocketDebuggerUrl,
    slowMo: 50
  }) as ChromiumBrowser;

  let page;
  try {
    // Get all browser contexts
    const contexts = browser.contexts();
    console.log(`Found ${contexts.length} browser contexts`);

    if (contexts.length === 0) {
      // If no contexts exist, create a new one
      console.log('No contexts found, creating new context');
      const newContext = await browser.newContext();
      page = await newContext.newPage();
    } else {
      // Try to get page from existing contexts
      for (const context of contexts) {
        try {
          const pages = context.pages();
          if (pages.length > 0) {
            page = pages[0];
            console.log('Found existing page');
            break;
          }
        } catch (e) {
          console.log('Error accessing pages in context:', e);
          continue;
        }
      }

      // If still no page found, create new one in first context
      if (!page) {
        console.log('No pages found in existing contexts, creating new page');
        page = await contexts[0].newPage();
      }
    }
  } catch (e) {
    console.error('Error while handling browser contexts:', e);
    throw e;
  }

  if (!page) {
    throw new Error('Failed to get or create a page');
  }

  // Click new file button
  await page.click('[href="command:workbench.action.files.newUntitledFile"]');

  // Type some text
  await page.type('.monaco-editor', 'Hello! I am automating Visual Studio Code with Playwright!\n');
  await page.type('.monaco-editor', 'This is a super cool way of generating foolproof demos.');

  // Clean up after 1 second
  setTimeout(() => {
    proc.kill();
    process.exit(0);
  }, 1000);
}

main().catch(console.error);
Reasons:
  • RegEx Blacklisted phrase (3): pls help
  • RegEx Blacklisted phrase (1): I'm getting the following error
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kcp

79495230

Date: 2025-03-09 00:33:46
Score: 3.5
Natty:
Report link

look, the menu just the way i've just posted is working, but with a "bad solution" using setTimeout, seems to me just a poor approach

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

79495217

Date: 2025-03-09 00:16:43
Score: 2
Natty:
Report link

Because rustc can't find the linker, you can either:

  1. install a linker that can be found by rustc (On debian `apt install build-essential` installs the linker)

  2. Point to an existing linker e.g.,:

    rustc -C linker=target_toolchain_linker my_rustfile.rs
    

References:

  1. https://github.com/rust-lang/cargo/issues/1109
  2. How do I fix the Rust error "linker 'cc' not found" for Debian on Windows 10?
Reasons:
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: A. K.

79495188

Date: 2025-03-08 23:44:38
Score: 1
Natty:
Report link

I also spend some time on this, trying to get the apple payment session to work with php, and although this question is old let me write it here for others

You can generete RSA 2048 key using openssl

openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out request.csr

you also need save your private key, as you will need it

Then once you submit to apple you will get certificate apple.cer file, that you can convert it to pem format for use with CURL

openssl x509 -inform der -in apple.cer -out merchant_idX.pem

And then use the private key and the converted certificate to make the request to apple to get the session

curl_setopt($ch, CURLOPT_SSLKEY, '../ShoreThangKeyX.key');

curl_setopt($ch, CURLOPT_SSLCERT, '../merchant_idX.pem');

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

79495187

Date: 2025-03-08 23:44:38
Score: 0.5
Natty:
Report link

Too late, but if helps someone.

jQuery("#grid").jqGrid("progressBar", {method:"show", loadtype : "enable"});

To hide it change method from show to hide and call again.
loadtype can be "enable" and "block". "block" will make it modal.

#grid is your div id.

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

79495185

Date: 2025-03-08 23:39:37
Score: 0.5
Natty:
Report link

As others pointed out, your compiler probably will throw warnings.

To give you a straight answer, what is happening is that you are defining a symbol associated witht the array name "array" of one element, then the program places the initializer values starting from address &a[0] independently from the associated array size.

Which means sizeof(array) should still return 1 and any operation of accessing elements of array in index greater than 0 will generate compiler warnings.

Probably, if you were to define another int variable after the array with an assigned value, the second element of the array initializer will be replaced in memory by the former.

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

79495180

Date: 2025-03-08 23:32:36
Score: 3.5
Natty:
Report link

From official documentation https://argocd-image-updater.readthedocs.io/en/stable/basics/update-strategies/

argocd-image-updater.argoproj.io/myimage.allow-tags: regexp:^[0-9a-f]{7}$

That means it must start with regexp:…

Also take a look at regexp syntax, cause ^ means input beginning, and $ input ending, with this changes, your annotation would be:

argocd-image-updater.argoproj.io/rtm.allow-tags: regexp:.*SNAPSHOT.*

Can you provide update strategy? It will helps to fully understand the situation.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you provide
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ifurs

79495175

Date: 2025-03-08 23:27:35
Score: 2.5
Natty:
Report link

I find the solution.

May be it help someone.

#include "GameplayEffectExtension.h"
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Amelkai

79495173

Date: 2025-03-08 23:23:34
Score: 1
Natty:
Report link

yii\base\ErrorException: Undefined variable $start in /var/www/tracktraf.online/frontend/controllers/TelegramController.php:197

Stack trace:

#0 /var/www/tracktraf.online/frontend/controllers/TelegramController.php(197): yii\base\ErrorHandler->handleError()

#1 [internal function]: frontend\controllers\TelegramController->actionRotatorCheck()

#2 /var/www/tracktraf.online/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()

#3 /var/www/tracktraf.online/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()

#4 /var/www/tracktraf.online/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()

#5 /var/www/tracktraf.online/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction()

#6 /var/www/tracktraf.online/vendor/yiisoft/yii2/base/Application.php(384): yii\web\Application->handleRequest()

#7 /var/www/tracktraf.online/frontend/web/index.php(18): yii\base\Application->run()

#8 {main}

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

79495155

Date: 2025-03-08 23:07:32
Score: 1
Natty:
Report link

Add --verbose behind the script in any way. Meaning either:

"scripts": {
  "build": "react-scripts build --verbose"
}

Or:

npm run build -- --verbose
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MalwareMoon

79495149

Date: 2025-03-08 23:01:31
Score: 1.5
Natty:
Report link

Other answers correctly point out the pointer expression is equivalent to a[3][3] is an out of bound operation, but to give a straight answer to the question asked by op, result value is an integer whose value is unpredictable because a[3][3] refers to a value in memory space beyond the array four integer size spaces away from the last element of a, such memory space may or may not be accessible so reading it will either cause the program to crash or to return a garbage value.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Matteo Vittorio Ricciutelli

79495131

Date: 2025-03-08 22:44:27
Score: 2
Natty:
Report link

HTML <input type="date" name="ff" [value]="setFechaP(ff)" [(ngModel)]="ff" class="form-control form-control-sm text-center">

TS import { formatDate } from '@angular/common';

setFechaP(ff:any){if(ff){ff=formatDate(new Date(ff).getTime(),'yyyy-MM-dd','en','+00');}}

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

79495119

Date: 2025-03-08 22:33:25
Score: 1
Natty:
Report link

In addition to Simon Jacobs' answer, you could also use Named or Qualifier annotations, but it probably only applies if you already have a solution to differenciate between environments or just need different implementations for unit-tests.

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

79495118

Date: 2025-03-08 22:32:25
Score: 0.5
Natty:
Report link

The issue is that GitHub probably skipped your database-url output because it contains sensitive value. You simply need to add:

echo "::add-mask::$database_url"

Before your output to $GITHUB_OUTPUT command

See full example here

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amir Ben Shimol

79495113

Date: 2025-03-08 22:19:23
Score: 2.5
Natty:
Report link

I've developed an App that duplicate an stream from the Camera into múltiple "objects".

https://github.com/Diego-Arredondo/DoubleCamera/tree/main

Hope it helps

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Diego Arredondo

79495104

Date: 2025-03-08 22:09:21
Score: 1
Natty:
Report link

The best approach to modify a module is to create an ignite app and use your app to do the work.

More info:
https://docs.ignite.com/apps/developing-apps
https://docs.ignite.com/apps/using-apps

Another solution would be to clone the gov module from the official github and make a PR.

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

79495096

Date: 2025-03-08 22:02:20
Score: 4.5
Natty:
Report link

Updating helped. I thought it was updated. Thanks for your Comment

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nino6781

79495095

Date: 2025-03-08 22:02:20
Score: 4.5
Natty:
Report link

using element.get_attribute("href")

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fermín E. Estrada S.

79495093

Date: 2025-03-08 21:57:19
Score: 1
Natty:
Report link

Maybe this will be useful to someone. When you have several disks and one of them has a lot of free space, you can set the following jvm parameter so that temp files are saved there (temp files spark including):

-Djava.io.tmpdir=
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexei91482

79495086

Date: 2025-03-08 21:52:18
Score: 0.5
Natty:
Report link

The event_loop fixture is deprecated in pytest-asyncio (see here). One possible approach is to use the loop_scope marker with a group of tests.

For example:

@pytest.mark.asyncio(loop_scope="session")
class MyTestGroup:
    async def test_A(self):
        ...

    async def test_B(self):
        ...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ahmelq

79495080

Date: 2025-03-08 21:44:16
Score: 2.5
Natty:
Report link
public class Test {
    static class Parent {
        public <T> Object foo() { System.out.println("Parent"); return null; };
    }

    static class Child extends Parent {
        @Override
        public Object foo() { System.out.println("Child"); return null; };
    }

    public static void main(String[] args) {
        Parent p = new Child();
        p.foo(); // output: Child
    }
}

the above answer is great, just wanted to add a small addendum that technically, one can remove type parameters in the overriding method. i don't have enough reputation to comment so i'm writing here

Reasons:
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1.5): i don't have enough reputation to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chien Hao Tan

79495068

Date: 2025-03-08 21:33:14
Score: 0.5
Natty:
Report link

As @imi-miri points out, you can import stan but I realized that the API is quite different and I had to go back and forth with the AIs to even get some test code to work.

This runs:

import stan

model_code = """
data {
  int<lower=0> N;
  array[N] real y;  // NEW SYNTAX for arrays
}
parameters {
  real mu;
}
model {
  y ~ normal(mu, 1);
}
"""

# Compile and fit the model
posterior = stan.build(model_code, data={'N': 10, 'y': [1.2, 2.4, 1.5, 0.9, 3.2, 1.8, 2.7, 3.1, 1.6, 2.0]})
fit = posterior.sample(num_chains=4, num_samples=1000)

print(fit)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @imi-miri
  • Low reputation (0.5):
Posted by: Ben Ogorek

79495061

Date: 2025-03-08 21:27:12
Score: 3
Natty:
Report link

dude you sure the issue is your function - I have the issue and I have no code running on the only instance I have. I think the issue is much more global than that

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

79495059

Date: 2025-03-08 21:27:12
Score: 1.5
Natty:
Report link

As sourced from reddit https://www.reddit.com/r/bashonubuntuonwindows/comments/1b5mhd9/pyvirtualdisplay_hangs_forever_on_wsl2/?rdt=37413

First update your WSL

wsl --update
wsl --shutdown

Then in your python code set the PYVIRTUALDISPLAY_DISPLAYFD environment variable to 0 prior to attempting to start the virtual display.

import os
os.environ['PYVIRTUALDISPLAY_DISPLAYFD'] = '0'


from pyvirtualdisplay import Display

virtual_display = Display(visible=0)
virtual_display.start()
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: peter

79495056

Date: 2025-03-08 21:23:11
Score: 3.5
Natty:
Report link

https://stackoverflow.com/a/75282680/2726160

I eventually found this post. Amazing thank you!

Describes creating a new WebView class that provides access to appdata and replacwa the WebView in MainPage.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Rob White

79495051

Date: 2025-03-08 21:21:11
Score: 3
Natty:
Report link

the mistake was made in previous step - creation of storage object: https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-storage-POST/
wrong scope for accessToken was provided. Was data:write, has to be data:create

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

79495037

Date: 2025-03-08 21:08:09
Score: 3
Natty:
Report link

your GitHub has seemed that your GitHub is scared of you which can be fixed by restarting your device

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

79495029

Date: 2025-03-08 21:03:08
Score: 3.5
Natty:
Report link

alternate for Source is Call in Windows 10

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

79495026

Date: 2025-03-08 21:01:08
Score: 4.5
Natty:
Report link

Delete 'type=“text/javascript”'.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: pavurya

79495015

Date: 2025-03-08 20:54:06
Score: 2.5
Natty:
Report link

Turns out it works when I use RGBA image instead of greyscale image for the mask. Even though MoviePy docs explicitly mention that mask should always be greyscale image, but it seems to work with RGBA images only.

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

79495009

Date: 2025-03-08 20:47:05
Score: 0.5
Natty:
Report link

If you’re using the new Places API rather than the legacy version, ensure you’re making requests to the correct endpoint:

POST https://places.googleapis.com/v1/places:autocomplete

instead of the deprecated one.

For more details, refer to the official documentation: https://developers.google.com/maps/documentation/places/web-service/place-autocomplete

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

79495008

Date: 2025-03-08 20:47:05
Score: 3
Natty:
Report link

Apps installed from google play store are trusted. Any user downloading straight from the store will not get the app scan or any security warning.

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

79495005

Date: 2025-03-08 20:42:04
Score: 7.5 🚩
Natty:
Report link

does there are any solution? I am not able to use wx, when I try to import it the console exists without givingany error. I'm using the newest version of python 3.13.2t free threading. I still can not find the problem.

Reasons:
  • Blacklisted phrase (1): I am not able to
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: felix_weber

79495003

Date: 2025-03-08 20:41:04
Score: 1
Natty:
Report link

install using expo or npm

expo install react-native-safe-area-context

App.js

import { SafeAreaProvider } from 'react-native-safe-area-context';

<SafeAreaProvider>App Content</SafeAreaProvider>

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

79495002

Date: 2025-03-08 20:41:04
Score: 1
Natty:
Report link

Here is a Swift Package i wrapped up. It automatically updates, repackages, creates and releases a new Swift package every time Google releases a new version.

It allows you to use the raw MediaPipe Vision API, no wrapper, no opinionated API. All Open Source so you see how the repackaging is built.

Simply integrated with a Swift package. Works for me so far. Didn't wanna keep it for myself.

https://github.com/paescebu/SwiftTasksVision

Reasons:
  • Whitelisted phrase (-1): Works for me
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: paescebu

79494993

Date: 2025-03-08 20:34:02
Score: 1.5
Natty:
Report link

Whose Informix ODBC Driver are you using ?

Have you tried with OpenLink Informix ODBC Drivers, as they do work with Power BI, listing the Tables in the target database on connect and allowing them to be selected and queried within Power BI.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Hugh Williams

79494984

Date: 2025-03-08 20:26:00
Score: 6 🚩
Natty:
Report link

This is not an answer, but I have same problem. Just want to share some observations from my side
I think there is something wrong with the mintAuthority when minting
I'm able to run example from this document successfully https://developers.metaplex.com/candy-machine/guides/airdrop-mint-to-another-wallet#mint-without-guards, but if I replace this test wallet const walletSigner = generateSigner(umi); by my wallet, I will encouter this error

Reasons:
  • Blacklisted phrase (1): this document
  • Blacklisted phrase (1): not an answer
  • Blacklisted phrase (1): I have same problem
  • Has code block (-0.5):
  • Me too answer (2.5): I have same problem
  • Low reputation (1):
Posted by: Viet

79494978

Date: 2025-03-08 20:19:58
Score: 1.5
Natty:
Report link

You can find it like this:

\\192.168.x.y:1445\

or:

\\device-namme:1445\
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bokili Production

79494975

Date: 2025-03-08 20:15:58
Score: 2
Natty:
Report link

You can do arithmetic on a char pointer, so in next_addr,

return (void*) ((char*)ptr - 4)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Science D9000

79494950

Date: 2025-03-08 19:55:54
Score: 1.5
Natty:
Report link

I didn´t find the source of the problem, even after many (many!) attempts with the help of chatgpt, which wasn´t a great help, by the way!

The 'solution' was to uninstall Python, restart the computer (just in case!), and reinstall everything (I don´t use Anaconda!). It took me about 10 minutes... compared with the couple hours looking for a solution. However, it is puzzling what happened, and a bit worrying.

My guess it was a Windows related thing...

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

79494945

Date: 2025-03-08 19:53:53
Score: 3
Natty:
Report link

Updating the Intel HD Graphics driver was the solution.

I was assuming, that my application would run using the Nvidia GPU of my system, but that was not the case. Instead, the processor graphics of Intel was used. And its driver was outdated.

Thanks to Paweł Łukasik for the hint.

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

79494944

Date: 2025-03-08 19:51:53
Score: 1
Natty:
Report link

My programs were fine until I updated gspread to 6.x.x. and encountered this exact "transferownership" error. Downgraded to 5.4.0 and issue resolved.

pip install --upgrade gspread==5.4.0
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abel

79494943

Date: 2025-03-08 19:51:53
Score: 2.5
Natty:
Report link

Give me the QR code photo dghgvhdhzhdvshdhdhshdhshshhshshhhhhhdhdhdhdhdhddhdhhddhdhhhdhdhhdhdhdjsjsjxdhxvhxjksjsjdhxhxjsiejdhxhxydhsvdhxjsksjbshxhdsjjenndudhfjdwojejfbdiwjfhfjdjdhdhdhhd

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

79494936

Date: 2025-03-08 19:46:52
Score: 2
Natty:
Report link

The app UTM http://mac.getutm.app/ uses qemu for emulation. I am able to run an amd64 (x86/x64) VM with an AlmaLinux 9 OS minimal ISO on my arm64 silicon MacBook Pro. However I'm not getting passed the installation, it keeps installing and configuring forever. Of course emulation is slower than virtualisation, but it's so extremely slow that it's unusable :-(

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pieter Vogelaar

79494918

Date: 2025-03-08 19:35:50
Score: 2
Natty:
Report link

One option that requires a tiny bit of extra management is to use a combination of the original answer with project variables in the csproj file.

<Project>
    ...
    <PropertyGroup>
        <!-- mixed inclusive minimum and exclusive maximum version -->
        <EntityFrameworkCoreVersion>[8.0.12,9.0)</EntityFrameworkCoreVersion>
    </PropertyGroup>
    ...
</Project>

and then use the variable to set the version for any packages like this:

<PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(EntityFrameworkCoreVersion)" />

Now, if you use the package manager gui, nuget will still replace $(EntityFrameworkCoreVersion) with the new version (ex: 8.0.13)

However, (and this is the tiny bit of work part) instead of using the package manager gui to update the version(s)...just change the variable inside the csproj file instead.

Full Example: (after you already have it setup with package variables as explained above)
1. Open package manager to observe packages that have updates (in this case 8.0.12 > 9.0.0)
2. Edit the csproj project variable(s) to include the new version in the project variable (ex: [8.0.13,9.0)
3. Save csproj and you're done
4. Next time you look for updates, it will only show greater than 8.0.13, but less than (exclude) 9.0.0

<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFramework>net8.0</TargetFramework>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
        <EntityFrameworkCoreVersion>[8.0.12,9.0)</EntityFrameworkCoreVersion>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(EntityFrameworkCoreVersion)" />
        <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="$(EntityFrameworkCoreVersion)" />
        <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="$(EntityFrameworkCoreVersion)" />
    </ItemGroup>

</Project>

It really isn't much more additional/manual work, you can still update many packages at once.

You can also do this with central package management as well by using a Directory.Packages.props file. VS will look for this file in the folder hierarchy all the way to the root folder of the drive your project/solution resides on and a single change to this file will update all projects in a solution vs. just one project. However, I'm not sure when it was introduced...I think it has to be an sdk style project which I think was introduced in VS 2019???

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Mike

79494915

Date: 2025-03-08 19:33:50
Score: 1
Natty:
Report link

To answer some of my questions that were left unanswered:

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

79494910

Date: 2025-03-08 19:30:49
Score: 1.5
Natty:
Report link
  1. Syntactically speaking, there is no dependency between the Car class and the Gas class (Car depends on ISource), and therefore there is no realization relationship or aggregation relationship between Car and Gas.

  2. If we speak from the point of view of semantics, then as @Pepijn Kramer correctly noted, Car should not aggregate ISource, such a relationship would be appropriate between, say, Car and IEngine.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Pepijn
Posted by: nik0x1

79494900

Date: 2025-03-08 19:23:48
Score: 1
Natty:
Report link

Yes, you can do this by using the rollbackOnFailure and returnEditResults properties. The documentation have more details and limitations.

If you want the valid changes to be saved, you can turn off the rollbackOnFailure .

https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-layer/#request-parameters:~:text=true%20%7C%20false-,rollbackOnFailure,-(Optional)

If you want to see the result per feature, set both returnEditResults and rollbackOnFailure to true.
https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-layer/#request-parameters:~:text=true%20%7C%20false-,returnEditResults,-(Optional)

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bjorn Svensson

79494880

Date: 2025-03-08 19:06:45
Score: 3
Natty:
Report link

After trying different things , at the end i found out that this is an issue that issue is realated to the latest version of node so falling back to older version is a solution like node v20.18

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

79494873

Date: 2025-03-08 19:01:44
Score: 2
Natty:
Report link

I know this is an old question. But to anybody who's facing it, this might help you

You only saw the first part of the log; if you scroll down to almost the end of the log file, you'll see a more specific log pointing you toward the answer.

For example, if you use @Column instead of @JoinColumn in your @ManyToOne relationship, you get the same error. But if you look at the complete log, you'll see why it happened.

Error creating bean with name 'userRepository' defined in com.so.repository.UserRepository defined in @EnableJpaRepositories declared on Application: Cannot resolve reference to bean 'jpaSharedEM_entityManagerFactory' while setting bean property 'entityManager'
.
.
.
Caused by: org.hibernate.AnnotationException: Property 'com.so.domain.UserComment.user' is a '@ManyToOne' association and may not use '@Column' to specify column mappings (use '@JoinColumn' instead)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (0.5):
Posted by: Rujal Manandhar

79494866

Date: 2025-03-08 18:56:44
Score: 1.5
Natty:
Report link

we can take advantage of the base parameter of the URL constructor

window.location.href = (new URL("/newQS?string=abc", window.loaction)).href
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RoboProgramer2012

79494862

Date: 2025-03-08 18:52:43
Score: 1.5
Natty:
Report link

Your issue is caused by undefined behavior due to improper memory usage:

  1. Uninitialized str_of_evens → It contains garbage data, which causes strcat() to behave unpredictably
  2. Using atoi() on a single character → atoi() expects a null-terminated string, but you're passing a single character
  3. Buffer overflow in sum_to_strchar sum_to_str[3]; is too small for storing two-digit numbers safely

I'm attaching the corrected version:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_INPUT_LENGTH 255

int main(void) {

    char user_input[MAX_INPUT_LENGTH];
    char *p;
    printf("Welcome to the Credit Card Validator!!\n");
    printf("INSTRUCTIONS: At the prompt, please provide a CC number.\n");

    char example_card_num[] = "4003600000000014";

    int card_num_length = strlen(example_card_num);

    int skip_flag = 0;
    int sum_of_values = 0;
    char value_at_index;

    char str_of_evens[20] = {0};
   
    for (int i = card_num_length - 1; i >= 0; i--) {
        char sum_to_str[4] = {0};

        switch (skip_flag) {
            case 0:
                value_at_index = example_card_num[i];

                sum_of_values += value_at_index - '0';

                skip_flag = 1;
                break;
            case 1:
                value_at_index = example_card_num[i];
                
                int multiplied_value = (value_at_index - '0') * 2;
                
                sprintf(sum_to_str, "%d", multiplied_value);
                
                strncat(str_of_evens, sum_to_str, sizeof(str_of_evens) - strlen(str_of_evens) - 1);            
               
                skip_flag = 0;

                break;
        }
    }
    char value_at_index_two;
    for (size_t i = 0; i < strlen(str_of_evens); i++) {
        value_at_index_two = str_of_evens[i];
        sum_of_values += value_at_index_two - '0';
    }

    printf("~~~~~~~~~~~\n");

    printf("Sum of Values 01: %d\n", sum_of_values);

    return 0;
}
    
Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alphin Thomas

79494857

Date: 2025-03-08 18:49:42
Score: 3.5
Natty:
Report link

I'm getting the same results. You should definitely report this as a bug here.

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

79494855

Date: 2025-03-08 18:47:42
Score: 2.5
Natty:
Report link

You should not use atoi on a non string array char variable because there is no guarantee of it to be null terminated, so atoi would yield unpredictable results.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Matteo Vittorio Ricciutelli

79494853

Date: 2025-03-08 18:46:41
Score: 8.5
Natty: 7.5
Report link

Have you found the solution for this?

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found the solution for this
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tamil Selvan

79494850

Date: 2025-03-08 18:44:40
Score: 6 🚩
Natty: 5
Report link

I don't have enough reputation to vote or comment, but thank you Freddie32. You helped me a lot.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): helped me a lot
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fabien A

79494848

Date: 2025-03-08 18:42:39
Score: 0.5
Natty:
Report link

resolved it by updating the localstack version

 public void beforeAll(ExtensionContext context) throws IOException, InterruptedException {
    localStack = new LocalStackContainer(DockerImageName.parse("localstack/localstack:4.1.1"))
        .waitingFor(Wait.forListeningPort()
            .withStartupTimeout(Duration.ofMinutes(5)))
        .withServices(SQS);
    localStack.start();
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: riteshmaurya

79494842

Date: 2025-03-08 18:36:38
Score: 3.5
Natty:
Report link

Same problem

Android Studio (version 2024.2)

Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

Reasons:
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: m. a

79494838

Date: 2025-03-08 18:31:37
Score: 1
Natty:
Report link

I just changed the name keyword argument usage:

<%= icon(name: 'fa-arrow-down', width: '10px', height: '10px') %>

to

<%= icon(name: 'arrow-down', width: '10px', height: '10px') %>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Javier Botero

79494837

Date: 2025-03-08 18:31:37
Score: 2
Natty:
Report link

Thank you Steve for coming back to share your solution! Very helpful. I ran into a similar problem and about pulled my hair out even trying to identify the culprit - worked on one page, not another.

I just wanted to share one other mention, sourced from the official documentation on anti-forgery in ASP.NET Core: https://learn.microsoft.com/en-us/aspnet/core/security/anti-request-forgery?view=aspnetcore-9.0#antiforgery-in-aspnet-core

If you simply have a form with method="post" in one of your Razor pages, even without an action and even if not otherwise used for anything, it will automatically create the hidden input you referenced. Didn't have to add anything to Program.cs or form attribute additions.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Travis

79494831

Date: 2025-03-08 18:28:36
Score: 1
Natty:
Report link

To inlude and exclude files as defined in tsconfig.json at the time of starting the server, You have to use files option with ts-node as described in ts-node npmjs

use one of the following command to start the server:

npx ts-node --files ./src/index.ts

or

npx nodemon --exec "ts-node --files" ./src/index.ts

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

79494827

Date: 2025-03-08 18:26:36
Score: 2
Natty:
Report link

Please follow the Apple's tutorial on requesting App Store reviews.

Also, be aware that reviews on the App Store are version specific, as mentioned on this thread.

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

79494825

Date: 2025-03-08 18:24:35
Score: 1
Natty:
Report link

In my case, the nestjs cli was missing in the vm so I ran docker pull nestjs/cli and it worked. Pull the nestjs cli image and try running docker compose up --build. If the issue still remains, put RUN install -g @nestjs/cli to your docker file. It must be running fine now.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahmad Raza Khokhar

79494824

Date: 2025-03-08 18:22:35
Score: 2
Natty:
Report link

Try below in your src/polyfills.ts or you might need to use your angular.json file to add this. I am not sure though because this is a straight forward thing. Anyway read this as well. https://frontendinterviewquestions.medium.com/can-we-use-jquery-in-angular-d64e7d4befae https://www.geeksforgeeks.org/how-to-use-jquery-in-angular/


import * as $ from 'jquery';
(window as any).$ = $;
(window as any).jQuery = $;


Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shashika Silva

79494821

Date: 2025-03-08 18:20:35
Score: 0.5
Natty:
Report link

To fix it I have to create my subsegment and add the trace ID in the right format, this documentation helps me to find this missing part.

this is the final code:

    protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    {
        string traceId = AWSXRayRecorder.Instance.GetEntity()?.TraceId ?? "Not Available";
        AWSXRayRecorder.Instance.BeginSubsegment($"HttpRequest-{request.RequestUri}");

        try
        {
            _logger.LogInformation("XRayTracingHandler - Sending request to {Url}", request.RequestUri);

            var entity = AWSXRayRecorder.Instance.GetEntity();
            if (entity != null)
            {
                if (!request.Headers.Contains("X-Amzn-Trace-Id"))
                {
                    var subsegmentId = entity.Id;
                    var sampled = AWSXRayRecorder.Instance.IsTracingDisabled() ? "0" : "1";
                    var traceHeader = $"Root={traceId};Parent={subsegmentId};Sampled={sampled}";

                    request.Headers.Add("X-Amzn-Trace-Id", traceHeader);
                }
            }

            var response = await base.SendAsync(request, cancellationToken);
            AWSXRayRecorder.Instance.AddAnnotation("HttpRequest", request.RequestUri?.ToString() ?? "Unknown");
            AWSXRayRecorder.Instance.AddAnnotation("HttpStatus", response.StatusCode.ToString());

            return response;
        }
        catch (Exception ex)
        {
            _logger.LogError(ex, "XRayTracingHandler - Exception occurred");
            AWSXRayRecorder.Instance.AddException(ex);
            throw;
        }
        finally
        {
            AWSXRayRecorder.Instance.EndSubsegment();
        }
    }
Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Marco Nuñez

79494808

Date: 2025-03-08 18:10:33
Score: 1.5
Natty:
Report link

I came to this question since I want to do the same: include some static functions; not all. I didn't find an answer anywhere, but discovered a way regardless; on my own.

  1. Check EXTRACT_STATIC and HIDE_UNDOC_MEMBERS
  2. Ensure EXTRACT_ALL is unchecked
  3. Ensure each static func you want included has a special comment header (i.e. starts with /**)
  4. (Of course) the file must have @file at the top

IMO this is inconsistent (and therefore annoying) behavior of doxygen. In general, doxygen includes a declaration that has the special comment header (as well as in a file with @file). But, static funcs are treated differently. You have to tell it to include all static funcs. But, that includes static funcs that have no doc comments! Annoying. So, have to tell it to ignore any declaration that has no documentation (special header block). Note that if you want to include declarations (i.e. non-static) that have no docs, then you won't want to make that change and then this procedure won't work for you. But, if want undocumented declarations included then you probably want all static funcs included. In fact, you probably want to check EXTRACT_ALL.

Note that EXTRACT_ALL is inconsistent with EXTRACT_STATIC. EXTRACT_ALL overrides HIDE_UNDOC_MEMBERS, but EXTRACT_STATIC does not. Come on doxygen!

Note: In the doxygen GUI frontend (doxywizard), the settings are under Expert tab, Build topic.

As this is a older question I'm sure the OP has moved along a long time ago. But, doxygen is still used today.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @file
  • User mentioned (0): @file
Posted by: steve

79494804

Date: 2025-03-08 18:01:32
Score: 2
Natty:
Report link

React batches state updates inside event handlers to optimize performance.In React 18+, when multiple state updates occur inside an event handler, React batches them together and performs only one re-render instead of multiple

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shashika Silva

79494803

Date: 2025-03-08 18:00:32
Score: 0.5
Natty:
Report link

You can customize styling by using linkStyle with a comma separated list of link ids

For example

linkStyle 0,1,2,4,5,8,9 stroke-width:2px,fill:none,stroke:red;

Also there is a similar issue here

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

79494799

Date: 2025-03-08 17:58:31
Score: 1.5
Natty:
Report link

The current documentation of Vercel mentions to create a folder named api in the root directory. Then move the index.js (if you don't have this file you should rename your server starting file to this name) to the api folder. Then create a vercel.json file in the root directory and add the following code:

{ "version": 2, "rewrites": [{ "source": "/(.*)", "destination": "/api" }] }

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

79494770

Date: 2025-03-08 17:34:26
Score: 3
Natty:
Report link

It looks like the issue might be related to authentication. The logs show an 'Unauthenticated' error, which could be slowing things down. Try checking authentication with gcloud auth and make sure the VM's service account has the right permissions. Also, have you tested the network to see if there are any delays?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alessandro Chitarrini