79442099

Date: 2025-02-15 19:16:16
Score: 1
Natty:
Report link

In my opinion, the CSRF token should be stored in the main memory of your React application—as a variable held in react state, preferably within a global react context. Keep in mind that the CSRF token will be lost on a page refresh or when opening a new tab. To handle this, create an API endpoint (for example, GET /api/csrf-token) on your server that generates and returns a token using contextual data (like the user's email, session, or user ID).

This endpoint should be called during the initial setup of your React app. While you might consider using the useEffect hook, this can lead to race conditions. Instead, using useLayoutEffect is advisable because it executes synchronously before the browser paints, ensuring that your authentication flow remains seamless.

For additional context, check out this article which outlines a similar approach.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anish Karthik

79442084

Date: 2025-02-15 19:08:14
Score: 2
Natty:
Report link

(late answer) it's sorta cheating, but when i specified "https://" and did the advance-ignore warning, it works as well.

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

79442082

Date: 2025-02-15 19:08:14
Score: 2.5
Natty:
Report link

I found an answer for now So, for some reason, I should not add the dependency @tanstack/react-query on repos that will consume my shared repo. After it removed, it works fine

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: José Araújo

79442080

Date: 2025-02-15 19:06:14
Score: 2.5
Natty:
Report link

enter image description here

Changing default profile from zsh to bash fixed my problem

Settings -> terminal.integrated.default
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Danil

79442079

Date: 2025-02-15 19:05:13
Score: 1.5
Natty:
Report link

A big thank you for all your help, after configuring the shadow plug in and running ./gradlew shadowJar, the issue was resolved. Added these to the build.gradle

plugins {
    id 'java'
    id 'com.github.johnrengelman.shadow' version '8.1.1'
}
shadowJar {
    archiveClassifier.set('')
    manifest {
        attributes('Main-Class': 'org.example.Main')
    }
}
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nguyễn Nam Vinh

79442072

Date: 2025-02-15 19:01:12
Score: 2.5
Natty:
Report link

The code snippet doesn't actually enable the timer, or the peripheral clock to it. It should not work at all as is.

That said... An intermittently working timer could indicate some hardware problems. Try pressing on the IC or flexing the PCB a little. If it stops you have bad solder joints. Hit it with a cold spray... Are the voltage rails stable?

Try toggling an LED in the main loop with a delay. Does that also hang when timer 1 is not counting as expected?

Aside from hardware issues, you could be stuck in an interrupt routine from some code you haven't shown here. Are you sure you have only enabled the one interrupt?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Maximilian

79442070

Date: 2025-02-15 19:00:12
Score: 0.5
Natty:
Report link

It doesn't matter. Message listener is one of the modes of communication between your application and end systems, therefore Message listener can be in System layer or can be in experience layer, it depends on who are client of data/information and who are the producer. It means, if client of information wants to exchange data via messaging system, then ideally message listener/sender can be in experience layer, and if producer willing to exchange data via messaging system, then message listener/sender can be in system layer. So, first decide data client/users, and data producer, then put their mode of communication (i.e. API, File, Database connectors, JMS connector etc.) accordingly either in system layer or exp. layer. Any kind of client logic must in exp. layer doesn't matter what mode of connection/communication is..... and any kinds of data producer logic must be in system layer regardless of what modes of communications producers are using. Hope this helps.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ausaf Ahmad

79442058

Date: 2025-02-15 18:52:10
Score: 3.5
Natty:
Report link

def num(li): li=str(li) list1=list(li) print(list1) led = { '0':('###','# #','# #','# #','###'), '1':(' ##','###',' ##',' ##',' ##'), '2':('###',' #','###','# ','###'), '3':('###',' #','###',' #','###'), '4':('# #','# #','###',' #',' #'), '5':('###','# ','###',' #','###'), '6':('###','# ','###','# #','###'), '7':('###',' #',' #',' #',' #'), '8':('###','# #','###','# #','###'), '9':('###','# #','###',' #','###') } length = len(led[list1[1]]) for i in range(length): for j in list1: print(led[j][i], end='\t')

Thanks me later guys and enjoy

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: periyar

79442048

Date: 2025-02-15 18:45:09
Score: 2.5
Natty:
Report link

What you're describing is more of a polymorphic relationship. It's one-to-one-maybe. You have the same problem if you introduce a 3rd table called 'sysadmin' or similar and want to associate a user to ONE of them.

Relational databases don't really work like this. You can make it cascade so that if the user is deleted, then the admin or sysadmin is deleted with a foreign key constraint. But you can't delete the admin or sysadmin and cascade up to the user, because there's no way of saying on the user table that the relationship is one OR the other table. Relational databases make you choose only one per column.

So you can use multiple columns, but if you have 20 types of user, you'll have 19 null fields, and that sucks too. Most people just let it hang and take the one-way cascade as 'good enough'.

Sometimes coding languages and databases don't fit nicely.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): have the same problem
  • Starts with a question (0.5): What you
  • Low reputation (1):
Posted by: Willow

79442046

Date: 2025-02-15 18:45:08
Score: 8.5 🚩
Natty: 6
Report link

do you already fixed it? im facing the same problem anh try many way but maybe the response is fixing...

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (1.5): fixed it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Khôi Nguyễn Vũ

79442045

Date: 2025-02-15 18:43:07
Score: 1.5
Natty:
Report link

use this version of library it will work:

<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi-ooxml</artifactId>
    <version>3.9</version>
</dependency>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abhineet Mishra

79442037

Date: 2025-02-15 18:37:05
Score: 1
Natty:
Report link

Can you register a cors in configurations?

@Bean
public WebMvcConfigurer corsConfigurer() {
    return new WebMvcConfigurer() {

        @Override
        public void addCorsMappings(CorsRegistry registry) {
            registry.addMapping("/**").allowedMethods("POST", "GET");
        }
    };
}

after in securityFilterChain inset cors as default:

@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception {
    httpSecurity.authorizeHttpRequests(auth -> {
        auth.anyRequest().authenticated();
    });

    httpSecurity.cors(withDefaults()).formLogin()...


    return httpSecurity.build();
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Rafael N. Siqueira

79442032

Date: 2025-02-15 18:35:05
Score: 0.5
Natty:
Report link
The solution was to put the jsons in the public folder 

"use client";

import React from "react";
import loaderData from "@/public/lotties/Loader.json";
import dynamic from "next/dynamic";

function Loading() {
  const Lottie = dynamic(() => import("react-lottie"), { ssr: false });

  const defaultOptions = {
    loop: true,
    autoplay: true,
    animationData: loaderData,
    rendererSettings: {
      preserveAspectRatio: "xMidYMid slice",
    },
  };
  return (
    <div className="flex flex-col items-center justify-center h-screen">
      <Lottie
        options={defaultOptions}
        isClickToPauseDisabled
        style={{ width: "150px", height: "100px", cursor: "default" }}
      />
      <h6 className="text-2xl font-light text-center mt-4">Hang tight! We’re discovering your passion...</h6>
    </div>
  );
}

export default Loading;

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

79442031

Date: 2025-02-15 18:34:04
Score: 1
Natty:
Report link
res.status(200).json(randomFoodList);

It sends the response to user but doesn't stops the code execution and when your code is executing further it is returning the response again, that's why you're getting this error

Replace res.status with return res.status

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

79442027

Date: 2025-02-15 18:30:04
Score: 2
Natty:
Report link

Importing files in Tally Prime can sometimes lead to errors due to formatting issues, incorrect XML/Excel structures, or missing data. Here’s a step-by-step guide to troubleshoot and fix the problem:

1️⃣ Check the File Format Tally Prime supports XML & Excel (.xls/.xlsx) formats. Ensure the structure matches Tally’s required format. If the format is incorrect, Tally won’t process the import. 2️⃣ Verify Data Entries If your file contains wrong ledger names, missing account heads, or invalid dates, Tally may reject it. Open the file and cross-check all entries before importing. 3️⃣ Enable Import Permissions Go to Gateway of Tally → F12 (Configuration) → Data Configuration and check if import permissions are enabled. 4️⃣ Correct Path Issues If importing from an external location, ensure the file path is correct and the file is accessible. 5️⃣ Identify the Error Message Tally Prime usually provides an error log file specifying what went wrong. Check the log file, identify the issue, and correct it before re-importing. 6️⃣ Restart & Reattempt Import If the error persists, restart Tally Prime and try importing again. Sometimes, a simple restart fixes temporary glitches. 7️⃣ Use TDL for Custom Import If you’re dealing with bulk imports or complex data, using Tally TDL (Tally Definition Language) scripts can help in customizing imports without errors. 💡 Still Facing Issues? For expert guidance and Tally training, visit Excellent Infotech – where we help businesses and professionals master Tally with ease!

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

79442010

Date: 2025-02-15 18:03:59
Score: 1.5
Natty:
Report link

I have got the same issue , when working with GCP to extract the files and run a schedular In order to get away the error we can use

const credentialsPath = path.join(__dirname, "grand-practice-450211-k3-fd655f6f0a5f.json");

process.env.GOOGLE_APPLICATION_CREDENTIALS = credentialsPath;

This ensures the authentication to the GCP

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

79441997

Date: 2025-02-15 17:46:56
Score: 2.5
Natty:
Report link

try with "--module-root-dir", $JBOSS_HOME is your wildfly or JBoss installation folder module add --module-root-dir=$JBOSS_HOME/modules/system/layers/base --name=com.oracle --resources=ojdbc17.jar --dependencies=javax.api,javax.transaction.api

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

79441975

Date: 2025-02-15 17:32:52
Score: 0.5
Natty:
Report link

It is always good practice to clean up any memory leaks like timer apis, event handlers or any other external api which can potentially lead to any kind of memory leaks. But In case of local state, I believe there is not need to clean that manually. When the component unmounted, it's local variables are un-referenced Garbage collector will automatically detect un-referenced memory and clean that up (using algorithms like mark-and-sweep). There is no need to manually do that.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Muhammad Saqib

79441968

Date: 2025-02-15 17:25:51
Score: 3
Natty:
Report link

Any chance values non-numeric(ie. 5 vs "5")?

print(df.dtypes) maybe can help

df['TMDB Vote Average'] = pd.to_numeric(df['TMDB Vote Average'], errors='coerce') maybe needed

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

79441966

Date: 2025-02-15 17:23:50
Score: 1
Natty:
Report link

this is not possible. when your app is uninstalled it will remove all data associated with your app and this is by design. You can use cloud or a backend instead.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ali Sina Yousofi

79441961

Date: 2025-02-15 17:21:50
Score: 2
Natty:
Report link

This is what I use

strtotime(date('m/d/y h:00'));
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Randy Bailey

79441956

Date: 2025-02-15 17:17:49
Score: 2.5
Natty:
Report link

They are linked. With linked lists you can do whatever you want in any direction without any need in reverse. Just start from the end and build new list from end to head

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

79441951

Date: 2025-02-15 17:14:48
Score: 3
Natty:
Report link

This would be more helpful to me if I knew where the code belongs.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: tom.g.c

79441949

Date: 2025-02-15 17:14:48
Score: 4
Natty:
Report link

I installed anaconda and was then able to install Darts with no issue.

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

79441945

Date: 2025-02-15 17:10:47
Score: 1.5
Natty:
Report link

use this -> const api_key = import.meta.env.VITE_API_KEY; also in .env file use -> VITE_ in place of REACT_APP_ if you are using VITE in your project.

this works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Satyen272

79441943

Date: 2025-02-15 17:09:47
Score: 1
Natty:
Report link

I shall perform necromancy and raise this thread from the dead, for the sake of anyone else lead to this answer by an internet search.

The problem is was that ASE was used to try to do the restore/load, but it was not the backup of an ASE database.

The clue is in the question where it talks about "dbbackup" used to take the backup. That's not an SAP ASE command.

It is an SAP ASA (Adaptive Server Anywhere) command. Two different products, doomed to failure. "You can't get there from here."

ASE is quite reasonably complaining that what's asked to load isn't an ASE database. Use ASA to restore an ASA backup.

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

79441931

Date: 2025-02-15 17:03:45
Score: 2
Natty:
Report link

There is actually simple trick for this. On svg element add overflow

overflow:visible
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MarkJ

79441903

Date: 2025-02-15 16:50:43
Score: 1
Natty:
Report link

const objArray = [ { foo: 1, bar: 2}, { foo: 3, bar: 4}, { foo: 5, bar: 6} ];
const res = objArray.reduce((acc, curr) => {
  acc.push(curr.foo)
  return acc;
}, [])
console.log(res)

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

79441900

Date: 2025-02-15 16:49:42
Score: 4
Natty:
Report link

alright i find out i didn't use the right library , my bad, i used "vis-network/standalone" and i need to use :react-vis-network-graph"

Reasons:
  • Blacklisted phrase (0.5): i need
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: gabriel delset

79441899

Date: 2025-02-15 16:49:42
Score: 1
Natty:
Report link

Node.js is single-threaded in the sense that JavaScript execution runs on a single thread (the event loop). However, it is designed for non-blocking operations, meaning that time-consuming tasks like database queries, file I/O, and network requests do not block the main thread. Instead, Node.js delegates these tasks:

  1. Network calls (DB queries, API requests) → Handled by the OS or external servers asynchronously.
  2. CPU-intensive tasks (crypto, file operations) → Offloaded to the libuv thread pool, which consists of a fixed number of worker threads (not one per task).
  3. The event loop efficiently listens for task completion and schedules callbacks on the main thread, allowing high concurrency.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ayush Mandhana

79441892

Date: 2025-02-15 16:42:40
Score: 0.5
Natty:
Report link

#include <stdio.h>

int main() {

int max, x, n = 2; //init variables

printf("Enter max number: ");

scanf("%i", &max);

                    /*prints prime numbers while the max value
                       is greater than the number being checked*/

do {

   x = 0;           //using x as a flag

for (int i = 2; i <= (n / 2); i++) 

{

   if (n % i == 0) 

{

        x = 1;

        break;
    }
}

if (x == 0)     //if n is prime, print it!
    
   printf("the no %i is prime\n", n);

 else

    printf("the no %i is not prime\n", n);

     n++;        //increase number to check for prime-ness

}

while (n < max);


return 0;

}

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

79441887

Date: 2025-02-15 16:39:40
Score: 2
Natty:
Report link

"The Navigator window should be the window that is usually in the bottom left corner under the project window." When it is not in the bottom left corner you should open it in the NETBEANS menu WINDOWS and select NAVIGATOR (or use CTRL-7).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: C.W. Frentz

79441878

Date: 2025-02-15 16:34:39
Score: 1
Natty:
Report link

In case you want to append a slice

arr := new([][]string)
*arr = append(*arr, []string{"abc", "def"})
fmt.Println(*arr)

See playground

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

79441873

Date: 2025-02-15 16:31:37
Score: 6 🚩
Natty: 5.5
Report link

Maybe libiconv instead for conversion?

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

79441869

Date: 2025-02-15 16:28:35
Score: 3
Natty:
Report link

I think you should switch to the WebClient from Vertx.

See: https://quarkus.io/guides/vertx-reference#use-the-vert-x-web-client

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

79441852

Date: 2025-02-15 16:20:33
Score: 1.5
Natty:
Report link

Some of the newest and best programming languages for logic programming are precisely the modern versions of Prolog. Check out for example Ciao Prolog which, apart from the classic Prolog functionality, has many semantic and syntactic extensions and features including constraint logic programming, meta-programming, higher-order, functions, foreign interfaces, assertions/types with unified static and dynamic verification, auto-documentation, lots of libraries, execution in wasm, a very useful playground, notebooks, etc., etc.

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

79441843

Date: 2025-02-15 16:17:32
Score: 10 🚩
Natty:
Report link

Can you please provide the logs from Azure? Do they indicate any kind of error? Do you have access to a console in the Azure Web App? What does it say if you try ping the service from the webapp itself?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you please provide
  • RegEx Blacklisted phrase (2.5): Do you have a
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you please
  • Low reputation (1):
Posted by: Cowboy_Patrick

79441838

Date: 2025-02-15 16:13:31
Score: 2.5
Natty:
Report link

For me the error happened right after installing @mui/x-date-pickers

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

79441807

Date: 2025-02-15 15:57:27
Score: 1
Natty:
Report link

Your suggestion of flow into the network from the top-left corner works great!

I implemented it using four tables for the flows into a cell, from the top, the right, the bottom and from the cell to the left. These flows are constrained by zero flow through the outside boundaries, except for the single flow at the top left or second from left, by continuity across interior boundaries and zero flows through the boundaries of the black cells. I then “discovered” that the condition of a single unit of flow remaining in each uncovered cell and the zero flow condition for the covered cells correspond exactly to the mask I used to identify covered and uncovered cells. Then, by maximizing the number of cells where the remaining flow corresponds to whether the cells is covered or not, one finds the solution.

I tested my MiniZinc model on several instances, including a 15x15 hard one. Most of the solvers find the unique solution within half a second.

BTW, you must have quite some experience with network flow models to have realised that the connectedness condition could be modelled as network flow.

So, with great appreciation, thank you for your suggestions.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: donman

79441798

Date: 2025-02-15 15:53:26
Score: 2
Natty:
Report link

Remember to check if you have Strict Mode or noImplicitAny on: https://www.typescriptlang.org/tsconfig/#noImplicitAny

If you are using VS Code's built-in TypeScript without a tsconfig file, then Strict Mode is off by default.

This turned out to be my original problem.

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

79441797

Date: 2025-02-15 15:52:26
Score: 3
Natty:
Report link

Disabling VPN helped. For some weird reason the answer has a minimum character limit, so here you go.

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

79441794

Date: 2025-02-15 15:48:25
Score: 1
Natty:
Report link

You can create a static class called "New", then create a static function with your class name as the function name. To use, your syntax will be New.MyGeneratedClass(parameters).

'public static class New

{ public static MyGeneratedClass MyGeneratedClass(object parameters) { return new MyGeneratedClass(); } }'

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Dustin

79441792

Date: 2025-02-15 15:48:25
Score: 1
Natty:
Report link

Q Why create something for a custom user if I don't end up using it anyway because the form inherits from UserCreationForm. So, for example, form.save() does not use my manager.

Answer to you Question

You need a custom user manager because Django’s default one won’t handle your custom fields properly like using email instead of a username.

Even though UserCreationForm doesn’t use it by default, your its still needed when you either want to create user manually, or to ensure superuser are setup correctly

Q2 At what point should this create_user be executed?

Answer You should call create_user when you need to create a user manually, e.g, in your views or .py script Django's UserCreationForm ignores it unless you override save(), so tweak the form or call create_user manually when adding users outside it.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Idris Olokunola

79441779

Date: 2025-02-15 15:34:22
Score: 1.5
Natty:
Report link

Hope I´m getting this right ... you need just a one call inside the event card component? if that what you need yo probably need to pass an empty dependency array ... that way the api call will be triggered just once ...

useEffect(() => {
    async () => {
      setZones(await fetchZones());
    }
  }, [])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: martintorres

79441755

Date: 2025-02-15 15:18:19
Score: 2
Natty:
Report link

variation of @Gille's using getline

awk '{ "date +%d-%m-%Y --date=\""NR" day\""|getline theDate; print $0, theDate }' /tmp/File_1 
A 16-02-2025
B 17-02-2025
C 18-02-2025
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Gille's
  • Low reputation (0.5):
Posted by: ticktalk

79441754

Date: 2025-02-15 15:17:18
Score: 2.5
Natty:
Report link

I found that on my ~/.bashrc file there's a resize -s 50 50 that sets the terminal window lines and columns to 50. Commenting this out fixes the issue.

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

79441740

Date: 2025-02-15 15:09:17
Score: 0.5
Natty:
Report link

If you only want to identify dates which have 2 years difference then you can do with below query which will even not require self join:

DECLARE @MinDate DATE = (SELECT MIN(date_start) FROM t)
SELECT date_start
FROM t
WHERE DATEDIFF(DAY, @MinDate , date_start) % 365 = 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Harsh Varde

79441734

Date: 2025-02-15 15:01:16
Score: 0.5
Natty:
Report link

Looks like one of your JVMs is being killed because it exits. If your test threw an exception, called System.exit, it times out waiting for a non-daemon thread to complete or if the JVM just crashes these could be the reason test suites may not run.

https://maven.apache.org/surefire/maven-surefire-plugin/examples/shutdown.html

It's weird "killed" is all that is written to the console. I'd expect a little more feedback from surefire or maven about why the JVM was killed. Could someone have written a test that is doing something it shouldn't?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: chubbsondubs

79441732

Date: 2025-02-15 14:59:15
Score: 2
Natty:
Report link

Btw, see also the related discussion in the Prolog Community Discourse, which includes also a discussion of the Ciao Prolog hiord approach, based on call/n.

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

79441702

Date: 2025-02-15 14:38:11
Score: 0.5
Natty:
Report link

Per recommendation for JDK9+ with module-info.java I added this:

    <build>
        <plugins>
            ...
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <parameters>true</parameters>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                            <version>${lombok.version}</version>
                        </path>
                    </annotationProcessorPaths>
                </configuration>
            </plugin>
        </plugins>
    </build>

and mvn clean package start to work correctly

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

79441701

Date: 2025-02-15 14:38:11
Score: 1.5
Natty:
Report link

Ok it was easier than what I thought! Inspired by this example I changed the code to:

scipy.stats.kruskal(*[group["variable"].values for name, group in df.groupby("treatment") if group["variable"].values.size > 4])

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

79441695

Date: 2025-02-15 14:33:10
Score: 2
Natty:
Report link

all databases are being improved, even the php language, look at the differences between php 5.6 and php 8. you should adapt and php PDO is an application programming interface.. look at [enter link description here][1]https://en.wikipedia.org/wiki/Database_abstraction_layer so with the pdo you can manage more than the mysql and the sqlite. follow the php.net

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • No code block (0.5):
  • Low reputation (1):
Posted by: abbassi

79441681

Date: 2025-02-15 14:27:09
Score: 2.5
Natty:
Report link

I have granted the "Storage Blob Data Contributor" role to my "Access Connector for Azure Databricks". Then, when I try to create the External Location in the azure Databricks works fine.

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

79441677

Date: 2025-02-15 14:27:09
Score: 5
Natty: 5
Report link

regarding your question I guess you are trying to find angle between two parts ? Do you know if angle between two parts is stored as parameter in the STEP (STP) or OBJ files generated by Autocad, Autodesk ?

regards

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

79441675

Date: 2025-02-15 14:26:08
Score: 0.5
Natty:
Report link

This error means that Node is treating your file as a CommonJS module, but you're using ESM (import/export) syntax.

Change your import to a require:

const { PrismaClient } = require('@prisma/client');
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: A.Mohammed Eshaan

79441671

Date: 2025-02-15 14:22:07
Score: 3.5
Natty:
Report link

That is not possible with AKS and OMS. it will only collect STDOUT\STDERR from the containers.

Is this still true in 2025? Do I need to run sidecar container that does tail -f with my custom log file?

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: rufik

79441665

Date: 2025-02-15 14:18:05
Score: 6.5 🚩
Natty: 4
Report link

class MyHttpOverrides extends HttpOverrides { final String cert;

MyHttpOverrides(this.cert);

@override HttpClient createHttpClient(SecurityContext? context) { final SecurityContext securityContext = SecurityContext(withTrustedRoots: false); securityContext.setTrustedCertificatesBytes(cert.codeUnits); return super.createHttpClient(securityContext) ..badCertificateCallback = (X509Certificate cert, String host, int port) => true; }

I call this in main.dart:

final cert = await rootBundle.loadString('assets/certificates/dev-cert.pem'); HttpOverrides.global = MyHttpOverrides(cert);

I used this method but sometimes it works and sometimes it doesn't. Now it doesn't work anymore. I think maybe the certificate file has changed. please help me

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @override
  • Low reputation (1):
Posted by: ziba amri

79441662

Date: 2025-02-15 14:14:04
Score: 9 🚩
Natty: 5.5
Report link

did you find an answer for this question ?

Reasons:
  • RegEx Blacklisted phrase (3): did you find an answer
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): did you find an answer for this
  • Low reputation (1):
Posted by: Dinuka Jayalath

79441660

Date: 2025-02-15 14:13:02
Score: 6.5 🚩
Natty:
Report link

What version of InfluxDB are you using?

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

79441657

Date: 2025-02-15 14:12:02
Score: 2.5
Natty:
Report link

Try to add the import React from 'react' at the top in main.jsx file

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

79441653

Date: 2025-02-15 14:09:01
Score: 1
Natty:
Report link

The issue you're experiencing with the UI not updating immediately after login is likely due to how Next.js handles client-side navigation and state updates. When you use redirect in a server action, it performs a full page reload, which can cause the UI to appear "stuck" or unstyled until the page refreshes. To fix this, you need to ensure that the client-side state updates properly after a successful login without requiring a full page reload.

Use useRouter for Client-Side Navigation

Instead of using redirect in the server action, use Next.js's useRouter hook to handle navigation on the client side. This ensures a smoother transition and avoids the full page reload.

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

79441643

Date: 2025-02-15 14:05:00
Score: 2
Natty:
Report link

Agree with the comment above, multiplexing is necessary to forward multiple TCP connections over a single socket stream. Additionally we can try using existing protocols like SSH-style multiplexing SOCKS5 or QUIC-based tunneling to avoid reinventing the wheel.. a TUN/TAP interface could be an option as well.

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

79441640

Date: 2025-02-15 14:02:59
Score: 1.5
Natty:
Report link

As per the documentation, @quasar/app-vite/tsconfig-preset has been dropped, so update your tsconfig.json with:

{
    "extends": "./.quasar/tsconfig.json"
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nikko Mesina

79441629

Date: 2025-02-15 13:54:58
Score: 1
Natty:
Report link

With the latest nodejs.

import { setTimeout as sleep} from 'node:timers/promises';

(async () => {
   console.log('a');
   await sleep(2000);
   console.log('b');
})();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rahul Radhakrishnan

79441624

Date: 2025-02-15 13:49:57
Score: 1
Natty:
Report link
select
    t0.*,
    t2.id two_years_later_id, t2.date_start two_years_later_date
from t t0
left join t t2 on t2.date_start = dateadd(year, 2, t0.date_start)
--where t2.id is not null -- Uncomment if you are only interested the matching dates
;

See the results in a fiddle.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Guillaume Outters

79441622

Date: 2025-02-15 13:48:57
Score: 0.5
Natty:
Report link

I want provide some insight on the implementation.

balance_dirty_pages() (Linux kernel 6.10) is the function that is called by a process to check whether any of the thresholds have been crossed or not.

vm.dirty_background_ratio is the percentage of system memory which when dirty, causes the system to start writing data to the disk.

vm.dirty_ratio is the percentage of system memory which when dirty, causes the process doing writes to block and write out dirty pages to the disk.

(Ref: Snippet from accepted answer)

From above explanation, we may think that a possible implementation can be as following:

balance_dirty_pages()
{
     d = amount of dirty pages in available memory
     if(d > vm.dirty_ratio)
     {
           start synchronous write
     }
     else if (d > vm.dirty_background_ratio)
     {
           trigger background writeback thread to run
     }
     return
}

However, implementation is sort of like this (at an algorithmic level):

balance_dirty_pages()
{
     while(1)
     {
        d = amount of dirty pages in available memory
        if(d > vm.dirty_ratio)
        {
           trigger background writeback thread to run
           sleep(some time)
        }
        other stuff
   }
   return
}

i.e. the point I want to highlight is that writeback is performed by the background writeback thread irrespective of the threshold crossed.

In case of vm.dirty_background_ratio, process returns immediately after triggering background thread.

In case of vm.dirty_ratio, process sleeps for some time after triggering the writeback thread. After it wakes up, it again loops.

PS: This is my understanding of the code. More experienced people can pitch in and suggest corrections.

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

79441612

Date: 2025-02-15 13:43:56
Score: 0.5
Natty:
Report link

Laravel tests and Postman have different purposes when it comes to API testing.

Laravel tests (written using PHPUnit or Pest) allow developers to automate backend testing. These tests ensure that controllers, routes, and business logic function as expected. Laravel provides built-in support for unit tests (testing individual methods) and feature tests (testing the entire request-response flow). Running these tests helps catch bugs early in development and ensures stability when making changes.

Postman, on the other hand, is a manual API testing tool with a user-friendly interface. It is useful for quickly sending requests to endpoints, inspecting responses, and debugging APIs. While Postman allows basic automation with collections and scripts, it is more suited for exploratory testing and API documentation rather than fully automated test suites.

If the goal is to ensure long-term reliability with continuous integration, Laravel tests are the better option. If the focus is on quick testing and debugging, Postman is the more convenient tool. In practice, both are often used together—Postman for initial API exploration and Laravel tests for long-term maintainability.

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

79441606

Date: 2025-02-15 13:37:54
Score: 7.5 🚩
Natty:
Report link

Any solutions for this error / problem?

Reasons:
  • Blacklisted phrase (1.5): Any solution
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eclesiaste Lucien

79441602

Date: 2025-02-15 13:33:53
Score: 2
Natty:
Report link

I had this error even after whitelisting my IP and adding 0.0.0.0 it wasn't working and I got it fixed , The problem is with mongoose.

The latest version is having problems.

So downgrade it to 8.1.1

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

79441589

Date: 2025-02-15 13:25:51
Score: 2
Natty:
Report link

I went ahead and downloaded the repo and munched the pdf files... Here is the file for your reference documentation

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

79441576

Date: 2025-02-15 13:17:49
Score: 4
Natty: 4
Report link

silly naming. Or idiotic. Or trumpic. Or muskic.

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

79441572

Date: 2025-02-15 13:16:48
Score: 2.5
Natty:
Report link

You can use https://docs.jboss.org/hibernate/orm/current/javadocs/org/hibernate/dialect/MySQLDialect.html. It is recommended for MySQL 5.7 and above.

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

79441565

Date: 2025-02-15 13:16:48
Score: 3.5
Natty:
Report link

Found the problem! Don't know how it is possible, but it was selected @destination of the segue settings 'detailed split' instead of Current. I set Current and both the segues work well. Waste a lot of time to solve this stupid problem!!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @destination
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: marco.merci

79441556

Date: 2025-02-15 13:08:46
Score: 0.5
Natty:
Report link

Yes, but not without additional work.

A raw TCP socket (or an asyncio stream) is designed to carry one continuous stream of data—not several independent connections at once. When your software uses multiple TCP ports, it expects separate channels for each connection. To forward all that traffic through a single socket, you must build a multiplexing protocol on top of your existing channel.

Consider using or adapting existing multiplexing libraries or protocols (for example, SSH uses a similar concept with channels over a single connection). This can save you from reinventing the wheel and reduce potential bugs in your custom implementation.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: A.Mohammed Eshaan

79441541

Date: 2025-02-15 12:56:44
Score: 0.5
Natty:
Report link

There are ways to work around this limitation and achieve case-insensitive text search for elements.

  1. 1.Use XPath with translate()

    element = driver.find_element(By.XPATH, '//label[contains(translate(text(), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz"), "username")]')

  2. Find All, Then Filter.

  3. Use JavaScript Execution (execute_script)

    script = """ return Array.from(document.querySelectorAll("*")) .filter(el => el.innerText.toLowerCase().includes("username")); """ elements = driver.execute_script(script)

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

79441539

Date: 2025-02-15 12:55:43
Score: 1.5
Natty:
Report link

I have no idea what changed, but after a few hours of rebuild attempts and recreating git history it just started working. There were no changes to code, dependencies or solution/project files.

The only explanation I can think of is that dotnet has some per-project-guid cache somewhere that cleared at some point

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

79441526

Date: 2025-02-15 12:41:40
Score: 6.5 🚩
Natty: 5
Report link

I have the same problem and the code is similar to this above. Customized button in right-click menu is not visible in Excel 365 but I checked the code in Excel 2021 and it works. So maybe some option need to be turned on in Excel365 but I don't know which or maybe latest update of Excel365 broke something.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Guest123

79441525

Date: 2025-02-15 12:41:39
Score: 11.5
Natty: 7.5
Report link

Did you get the form to redirect to your own confirmation page, if so can you share?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you share
  • RegEx Blacklisted phrase (3): Did you get the
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: jo7er7 aka Looker

79441518

Date: 2025-02-15 12:36:37
Score: 9.5 🚩
Natty: 5.5
Report link

Did you find any ans for this ?

Reasons:
  • RegEx Blacklisted phrase (3): Did you find any
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find any
  • Low reputation (1):
Posted by: Nishchay Bhatt

79441515

Date: 2025-02-15 12:32:36
Score: 4.5
Natty: 5.5
Report link

Apollo: how would I adapt that formula to get the percent change. From what I can tell that is from the child div ((@class='JwB6zf') of a parent div ([@class='enJeMd')? Unfortunately, I am such a newb that the syntax eludes. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: texasmike

79441510

Date: 2025-02-15 12:29:35
Score: 2
Natty:
Report link

this is not a problem, monit try to find some data used for the disk statistic. Sometimes, depends to the used filesystem and Linux, the data is available on different places.

As long as you missed no data, every thing should work as expected. If you missed some data, create a ticket, see the mmonit.com homepage. With regards, Lutz

Reasons:
  • Blacklisted phrase (1): regards
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: lutzmad

79441508

Date: 2025-02-15 12:28:35
Score: 1.5
Natty:
Report link

in this case, the error disappeared mysteriously while adding and removing test code. Both the snippet posted here and the one on my computer diff identical. My best guess is that there must have been some junk Unicode character that either displayed as a space, or not at all, and that made the script choke, and in the doing and undoing, I may have at some point added a space or a newline manually that overrode the junk character. Or perhaps the editor got rid of it upon undoing. In case it helps someone in a similar situation...

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

79441504

Date: 2025-02-15 12:26:34
Score: 2
Natty:
Report link

I get this error when I try to do ` within a multiline ` block. Doing double or triple ` did not help. You have to escape them with a backslash, \`

Reasons:
  • RegEx Blacklisted phrase (1): I get this error
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Kyle H

79441503

Date: 2025-02-15 12:26:34
Score: 2.5
Natty:
Report link

It turns out that what was needed was to generate a new Refresh Token using the OAuth Playground, per these instructions: developers.google.com/google-ads/api/docs/oauth/playground

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

79441501

Date: 2025-02-15 12:22:34
Score: 3.5
Natty:
Report link

Livewire V3 now uses wire:model.live for live updates

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

79441498

Date: 2025-02-15 12:21:33
Score: 1.5
Natty:
Report link

run pip under python

example

python -m pip install --upgrade pandas
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nayaganov

79441493

Date: 2025-02-15 12:20:33
Score: 1.5
Natty:
Report link

run pip under python

example

python -m pip install --upgrade pandas
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nayaganov

79441486

Date: 2025-02-15 12:14:32
Score: 3
Natty:
Report link

Is there a reason you can't use the WCAG contrast ratio definition? Assuming your colours are within sRGB, you can calculate the relative luminance of the background colour from RGB values. You could check which foreground colour has a greater contrast with the background colour, and use that.

(It's the approach I use for the RGB text at the bottom of my colour picker)

Note that HSB's Brightness and HSL's Lightness don't represent what the eye perceives, they are just a reshaping of RGB.

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • Low reputation (0.5):
Posted by: Wacton

79441480

Date: 2025-02-15 12:12:31
Score: 3
Natty:
Report link

Go to SDK location find NDK folder and check the folders if one of them is empty or corrupted delete it and let the android studio use the latest version you have.

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

79441478

Date: 2025-02-15 12:10:31
Score: 3
Natty:
Report link

In Safari 17.6 this needs a right-mouse click on an element and then Log Element.

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

79441476

Date: 2025-02-15 12:09:30
Score: 2.5
Natty:
Report link

If you have installed the Code Runner extension, enable Run In Terminal option in Extensions settings.enter image description here

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

79441471

Date: 2025-02-15 12:07:30
Score: 3
Natty:
Report link

I have found the issue. The lack of Extensions and Run Command options in the Instances are caused by Orchestration Mode which was Uniform. Instances in the Uniform orchestration mode do not have Extension and Run Command. The Flexible orchestration mode has it.

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

79441469

Date: 2025-02-15 12:06:29
Score: 6.5 🚩
Natty: 6
Report link

How to know if the font is a variable font or a static font ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Bassam Kutet

79441465

Date: 2025-02-15 12:02:28
Score: 3
Natty:
Report link

Dim n as integer For n=( I=1; I<=20; I++) If( i%3==0&& i%5==5) then Else If ( i%3==0) Else If ( i%5==0) End End if End Sub

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

79441463

Date: 2025-02-15 12:01:27
Score: 4.5
Natty:
Report link

Sorry but I have some problem with my (newly created) account on Stack Overflow... I cannot operate on this post, it seems the system doesn't recognize me as the author: I asked Help Center to check my account in order to mark this post as "solved". @grawity_u1686 Thank you a lot!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @grawity_u1686
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dvd1975

79441462

Date: 2025-02-15 12:00:26
Score: 1
Natty:
Report link

Your method might be expired or banned . Try to use this one

const request = new XMLHttpRequest(); request.open('GET', 'https://restcountries.com/v3.1/name/deutschland'); request.send();enter code here

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

79441456

Date: 2025-02-15 11:56:25
Score: 1
Natty:
Report link

According to the errmsg you have already run rs.initiate(). Your replicaset has already been initialized. You can check your current configuration using rs.config() in the mongoshell(i.e. mongos) or using db.getSiblingDB('local').system.replset.findOne()(as mentioned by @Stennie in the comments).

If you did not get { "ok" : 1 }, its because you did not give members in initiate arguments. Its no problem mongo took default configuration and created the current database into a replset primary.

If you were having a problem with pushing to database using prisma in local something like Prisma needs to perform transactions, which requires your MongoDB server to be run as a replica set. in mongosh local instance,it should be fixed now.

You can add members to your replicaset refer documentation.

Some resources I refered:

PS: I am also new to mongo. This is what I understood after my research.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Stennie
  • Low reputation (1):
Posted by: Mastermindsap

79441448

Date: 2025-02-15 11:52:25
Score: 0.5
Natty:
Report link

I'm a beginner, so please don't judge me.

The solution is to serve your static files from the proper folder. In Nuxt, any file you want to be served as-is should be placed in the static folder (in Nuxt 3 you’d use the public folder). Files in these folders are copied directly to the root of your built site. For example, if you place hello_world.txt in the static folder, it will be accessible at http://yourdomain.com/hello_world.txt.

In your code, you’re trying to fetch from /server/static/hello_world.txt, which isn’t recognized by Nuxt as a static asset directory. Instead, simply:

Move your file to the static folder, and then change your fetch URL to:

const fileName = 'hello_world.txt'
const filePath = '/' + fileName  // or simply '/hello_world.txt'

Then I think your fetch call will correctly load the file.

Reference docs:

https://nuxt.com/docs/guide/directory-structure/public

Reasons:
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (2): I'm a beginner
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: A.Mohammed Eshaan

79441445

Date: 2025-02-15 11:50:24
Score: 1
Natty:
Report link
void main() {
  var x = -23;
  var y = -123.11;
  var a = x.abs();
  var b = y.abs();
  var sum = a + b;
  print('a : $a + b: $b = sum: ${sum}');
}

**Output :** a : 23 + b: 123.11 = sum: 146.11
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sadia 922

79441443

Date: 2025-02-15 11:48:23
Score: 1.5
Natty:
Report link

If u want to make form.submitted = true u need to use event

submitClicked(form: NgForm) {
    form.onSubmit(new Event('submit'));
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: PsiaMac