79419036

Date: 2025-02-06 18:54:04
Score: 5
Natty:
Report link

Encircle the largest number or smallest number In Java

Refer this video for detailed logic on this.

https://youtu.be/96Ct576OHg8

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29517147

79419028

Date: 2025-02-06 18:51:04
Score: 2.5
Natty:
Report link

I have tag names with pattern; YYYYYMM.{4 digits autoincrement}, e.g;

I want to keep the track of tags on;

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jean Villete

79419025

Date: 2025-02-06 18:49:03
Score: 1
Natty:
Report link

You need to reintall the dependencies. Just follow the given steps:

Step I:

npm install @react-navigation/native @react-navigation/native-stack

Step II:

npm install react-native-screens react-native-safe-area-context

Step III:

cd ios && pod install && cd ..

Thanks to the MultiClick article that helped me to fix my issue.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mian Aamir Shehzad

79419024

Date: 2025-02-06 18:48:03
Score: 1
Natty:
Report link

Spigot addressed this concern and said following:

As of 1.18+, the main spigot.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api--SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Now, i am fully aware that he is running version 1.17, so it might be something else but this is important since most people wont think about reading that section.

you can find that quote from their Buildtools Frequently asked questions part. BuildTools

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

79419020

Date: 2025-02-06 18:45:02
Score: 3.5
Natty:
Report link

Honestly, i'd just make one entity and then add an extra attribute called "type"

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

79419016

Date: 2025-02-06 18:44:02
Score: 3.5
Natty:
Report link

use "npx gltfjsx public/model.glb -o src/components/ComponentName.jsx -r public"

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

79419011

Date: 2025-02-06 18:43:02
Score: 2
Natty:
Report link

strtok3 is an ECMAScript modules (ESM). In a CommonJS (CJS) project (it looks like that is what you have) can use dynamic import to load an ESM module.

(async () => {
  const strtok3 = await import('strtok3');
})();

I will demonstrate how to do that. I use URLs instead of module names here, as I cannot import from local installed dependencies.

const strtok3 = 'https://cdn.jsdelivr.net/npm/[email protected]/+esm';
const token_types = 'https://cdn.jsdelivr.net/npm/[email protected]/+esm';

async function run() {
  const {fromBuffer} = await import(strtok3);
  const {UINT32_BE} = await import(token_types);
  
  const testData = new Uint8Array([0x01, 0x00, 0x00, 0x00]);
  const tokenizer = fromBuffer(testData);
  const number = await tokenizer.readToken(UINT32_BE);
  console.log(`Decoded number = ${number}`);
}

run().catch(err => {
  console.error(`An error occured: ${err.message}`);
})

But you are using TypeScript, and gives additional challenge, as the TypeScript compiler does not respect the dynamic import, in CJS project.

import {loadEsm} from 'load-esm';
    
(async () => {
  const strtok3 = await loadEsm<typeof import('strtok3')>('strtok3');
})();

As per StackOverflow policies I need disclose that I am the owner of all the used dependencies: strtok3, token-types and load-esm.

But rather then get this to work in your CJS project, it better to migrate your project to ESM. In your ESM project, you more easily load both ESM and CJS dependencies.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): StackOverflow
  • Blacklisted phrase (0.5): I cannot
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Borewit

79419007

Date: 2025-02-06 18:40:01
Score: 2.5
Natty:
Report link

Avoid using pre-compiled headers, it obscures your project's dependencies and your understanding of the dependencies.

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

79418993

Date: 2025-02-06 18:32:58
Score: 5
Natty:
Report link

Thanks @Zeros-N-Ones!

This works to find the record to update. My next issue is the updateContact() (at the bottom), which fails. Any additional help will be greatly appreciated.

      if (contact) {
    Logger.log("Contact found");
    const updatedContact = { // Create a *new* contact object
      names: [{
        givenName: personData.firstName || (contact.names && contact.names.length > 0 ? contact.names[0].givenName : ""),
        familyName: personData.lastName || (contact.names && contact.names.length > 0 ? contact.names[0].familyName : "")
      }],
      phoneNumbers: [], // Initialize phoneNumbers as an empty array
      emailAddresses: [], // Initialize emailAddresses as an empty array
      organizations: [], // Initialize organizations as an empty array
      addresses: [], // Initialize addresses as an empty array
      birthdays: contact.birthdays ? [...contact.birthdays] : []
    };
    Logger.log("updatedContact created");

    // Update other fields - phone numbers, email, organizations, addresses, and birthdays
    if (personData.homePhone) {
      updatedContact.phoneNumbers.push({ value: personData.homePhone, type: "Home" });
    }
    if (personData.mobilePhone) {
      updatedContact.phoneNumbers.push({ value: personData.mobilePhone, type: "Mobile" });
    }

    if (personData.email) {
      updatedContact.emailAddresses.push({ value: personData.email, type: "Personel" });
    }

    if (personData.company) {
      updatedContact.organizations.push({ name: personData.company });
    }

    if (personData.address) {
      updatedContact.addresses.push({ formattedValue: personData.address });
    }

    if (personData.birthdate) {
      try {
        const parsedDate = parseDate(personData.birthdate);
        if (parsedDate) {
          const birthday = People.newBirthday();
          const date = People.newDate();

          date.year = parsedDate.year || null;
          date.month = parsedDate.month || null;
          date.day = parsedDate.day || null;

          birthday.date = date;
          updatedContact.birthdays = [birthday];
        } else {
          Logger.log("Warning: Invalid birthdate format: " + personData.birthdate);
        }
      } catch (error) {
        Logger.log("Error setting birthdate: " + error);
        Logger.log("Error Details: " + JSON.stringify(error));
      }
    }
    Logger.log("Contact object BEFORE update: " + JSON.stringify(updatedContact, null, 2));

    var updatePersonFields = "updatePersonFields=names,emailAddresses,phoneNumbers,addresses,organizations,birthdays";
    const finalContact = People.People.updateContact(updatedContact, resourceName, {updatePersonFields: "names,emailAddresses,phoneNumbers,addresses,organizations,birthdays"});
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): help will be greatly appreciated
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Zeros-N-Ones
  • Low reputation (1):
Posted by: shimoda

79418986

Date: 2025-02-06 18:29:57
Score: 4
Natty:
Report link

What do you mean about does not load? Do the request fail or do you get the old code?

I'm also wondering if you're using "outputHashing": "all" in angular.json?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What do you mean
  • Low reputation (1):
Posted by: Gugge

79418983

Date: 2025-02-06 18:28:57
Score: 0.5
Natty:
Report link

Forwarding the respective port worked for me e.g. cap run android --forwardPorts 5173:5173

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: groetzi

79418980

Date: 2025-02-06 18:27:56
Score: 0.5
Natty:
Report link

Problems like this still exist in 2024, and this was the closet post I found to my failing search seeking a way to help me resolve a path with any number of unknown symbolic links. So, I offer my hack leveraging (Get-Item ).Target, working through the syntactic pain, in case it is a helpful starting point for someone else. Note: I only tested with "mklink /d" symbolic folders in the path.

PowerShell command lines to demo resolving input $Path in place ($Path is “resolved” as $Path, $DIR and $DIRs is stolen for scratch space):

$Path,$DIRs=(Resolve-Path $Path).Path.Split("\");
while($null -ne $DIRs){ $DIR,$DIRs=$DIRs; $Path=$Path+"\"+$DIR; $DIR=(Get-Item $Path).Target; if ($DIR.GetType().Name -eq "String[]"){$Path=$DIR[0]}; };

Batch command to use this gets more complex, having to escape some text and demoes here with input/output as %CDResolvePath% since %Path% is reserved in batch context:

for /f "delims=" %%a in (
'powershell -command "$Path,$DIRs=(Resolve-Path '"%CDPathResolved:)=^^^)%'").Path.Split('"\'");
while($null -ne $DIRs){ $DIR,$DIRs=$DIRs; $Path=$Path+'"\'"+$DIR; $DIR=(Get-Item $Path).Target; if ($DIR.GetType().Name -eq '"String[]'"){$Path=$DIR[0]}; } $Path;"'
) do set "CDPathResolved=%%a"

Batch notes: the “for loop” just gets back the output returned by the “ $Path;” at the end of the PowerShell which is “write-output”. Injection of single quotes are to escape the double quotes and pass them through to Powershell. The batch “String Replace” syntax “:)=^^^)” on the input CDPathResolved is needed to escape and pass Powershell any “)” in a pathname as “^)” since “Program Files (x86)” in file paths broke things.

Use case: I'd a build failing when I was forced to move my Jenkins build project with "mklink /d" to another drive. I worked around by setting my Current Working Path to resolved before kicking off "node.exe", though I later diagnosed that Angular’s "ng https://angular.dev/cli/build" has a handicap addressed by "preserve-symlinks" (or is it “node.exe” that is challenged? I’m not well enough educated on these matter to distinguish, and I don’t care anymore to learn more). So one could contemplate my case to see how my hack applies, but then perhaps even find out about the node/angular switches or some other context may with similar options that might more cleanly work around your case before going down the rabbit hole like me.

Reasons:
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Cris Mooney

79418976

Date: 2025-02-06 18:26:56
Score: 2
Natty:
Report link

The redirect_uri parameter may refer to the OAuth out-of-band (OOB) flow that has been deprecated and is no longer supported. This documentation explains how the redirect_uri determines how Google’s authorization server sends a response to your app. You can also refer to the migration guide for instructions on updating your integration.

Also, I found this post that has the same concern as yours, which might be helpful to you.

Reasons:
  • Blacklisted phrase (1): This document
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: HerPat

79418965

Date: 2025-02-06 18:20:55
Score: 1
Natty:
Report link

for git bash, add/modify like that in c:/Users/YOUR_NAME/.bash_profile:

export PATH="$HOME/AppData/Roaming/pypoetry/venv/Scripts:$PATH"

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

79418959

Date: 2025-02-06 18:17:54
Score: 1
Natty:
Report link

Ok, I found a solution. Instead an otoco trade, I needed an oto one

response = requests.post(f"{base_url}/sapi/v1/margin/order/oto", headers=headers, params=params)

where there is no need to provide a stop loss. So the params would look like this:

params = {
        "symbol": "BTCUSDT",
        "isIsolated": "FALSE",
        "sideEffectType": "MARGIN_BUY",
        "workingType": "LIMIT",
        "workingSide": "BUY",
        "workingPrice": 80000,
        "workingQuantity": 0.0002,
        "workingTimeInForce": "GTC",
        "pendingType": "LIMIT",
        "pendingSide": "SELL",
        "pendingQuantity": 0.0002,
        "pendingPrice": 110000,
        "pendingimeInForce": "GTC",
        'timestamp': int(time.time() * 1000), 
    }

This allows a limit-type as a follow-up order.

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

79418956

Date: 2025-02-06 18:16:54
Score: 1.5
Natty:
Report link

I had the Same Proplem, Just Save your File before Running the Code , Press Ctrl + S and then run the code back in terminal in this form "node code.js" and its going to work inshallah

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

79418945

Date: 2025-02-06 18:12:53
Score: 0.5
Natty:
Report link

While the accepted answer works(*), I think that there is a simpler solution:

install.packages(c("ada", "ipred", "evd"))
install.packages("http://cran.r-project.org/src/contrib/Archive/RecordLinkage/RecordLinkage_0.4-1.tar.gz")

That is, install.packages can take a URL, and so you don't need to manually download, install and delete the tarball. However, you do need to manually install the dependencies.

*The original answer was written 4 years ago and now generates this error:

ERROR: dependencies ‘e1071’, ‘RSQLite’, ‘ff’, ‘ffbase’ are not available for package ‘RecordLinkage’
 * removing ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RecordLinkage’

Presumably this is because the package's dependencies have changed. I get the same error with my solution. Also note that the ffbase package is also now archived.

Reasons:
  • Whitelisted phrase (-2): solution:
  • RegEx Blacklisted phrase (1): I get the same error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I get the same error
Posted by: Ari

79418944

Date: 2025-02-06 18:12:53
Score: 3.5
Natty:
Report link

I have the same problem when running my CLI tools against SAP HANA database using Sap.Data.Hana.Net.v8.0.dll with .Net8.

When PublishingSingleFile=True i got error :

<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract> does not help.

When PublishingSingleFile=False no problem, but i would like to keep a single exe file not hundreds on dlls...

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (0.5):
Posted by: Romain Ferraton

79418934

Date: 2025-02-06 18:08:52
Score: 0.5
Natty:
Report link

Fixed the issue.

    try:
        location = pyautogui.locateOnScreen('1.png', confidence=0.9)
        if pyautogui.locateOnScreen('1.png', confidence=0.9):
            call_count = 0
            if pyautogui.locateOnScreen('1.png', confidence=0.9):
                while call_count <= 7:
                    logging.info(call_count)
                    call_count += 1
                if has_restarted:
                    return
        restarting_function(True)
        restarting_function()
    except pyautogui.ImageNotFoundException:
        pass
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: D3AD_SHOT

79418933

Date: 2025-02-06 18:08:52
Score: 1
Natty:
Report link

Browsers use navigator.geolocation, but it's often imprecise because they don't access GPS directly. Instead, they rely on:

Wi-Fi networks (accuracy depends on external databases). Cell towers (less precise, can be off by hundreds of meters). IP address (very inaccurate, can be off by kilometers)

Because browsers don’t have direct GPS access, no JavaScript library can guarantee pinpoint accuracy. I faced this challenge in one project, and I just drew squares in my database. This doesn’t solve the problem but can be useful in some situations. You could also develop a phone app, as the phone app provides better accuracy if the user grants the permissions."

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

79418931

Date: 2025-02-06 18:07:52
Score: 0.5
Natty:
Report link

I had the same problem, but in reverse. My setup project insisted on compiling as "x86" and I couldn't make it change to "x64".

I just got the answer from Stack Overflow.

Why does the Visual Studio setup project always build as x86

Left-click on the setup project file, then look in the properties window. You can set the target platform for the installation there.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Francine DeGrood Taylor

79418927

Date: 2025-02-06 18:06:51
Score: 1
Natty:
Report link

More of a workaround, but you can try installing it via conda as well.

conda install pandas

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

79418906

Date: 2025-02-06 18:00:49
Score: 4.5
Natty:
Report link

I am facing a similar problem. The issue lies where the github:repo:push action uses a helper that initializes a git repo, https://github.com/backstage/backstage/blob/master/plugins/scaffolder-backend-module-github/src/actions/github.ts#L275, and uses this helper function here: https://github.com/backstage/backstage/blob/master/plugins/scaffolder-node/src/actions/gitHelpers.ts#L49-L52 My suggestion is to follow the GitHub issue https://github.com/backstage/backstage/issues/28749 to allow an action like: github:branch:push.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am facing a similar problem
  • Low reputation (1):
Posted by: Michael Foster

79418897

Date: 2025-02-06 17:56:48
Score: 1
Natty:
Report link

Hello everyone 👋 so I recently had my Facebook account hacked, which was frustrating and disappointing. Unfortunately, Meta doesn't have a dedicated support team, despite many accounts being compromised daily. Fortunately, I managed to contact a member of the Meta recovery department, @ Rothsteincode, through X formally known as Twitter, and Gmail. [email protected] They helped me regain access to my account. I'm grateful for their assistance, but I believe Meta needs to improve their security measures and provide better support for users.

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

79418894

Date: 2025-02-06 17:54:47
Score: 9
Natty: 7
Report link

I am trying to fetch cpu % using jtopenlite, however I am getting cpu % as zero for all the jobs? Can someone pls help here?

Reasons:
  • Blacklisted phrase (1): I am trying to
  • RegEx Blacklisted phrase (3): pls help
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Poojan Shah

79418892

Date: 2025-02-06 17:53:47
Score: 2.5
Natty:
Report link

I ended up changing my user interface to use a tab controller and searching the separate algolia indexes in their own respective tabs. My repository and notifiers are essentially the same as the posted code other than adding an 'indexName' parameter and removing one of the HitsSearchers in the search function. I'm still not sure why the code in my question doesn't work as I thought it should, but for now this update has solved my issue.

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

79418890

Date: 2025-02-06 17:53:47
Score: 0.5
Natty:
Report link

Not the best answer but at least so you can test that you converter works you can force it:

var options = new JsonSerializerOptions();
options.Converters.Add(new FooConverter());

var foo = JsonSerializer.Deserialize<Foo>(json, options);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CaseyHofland

79418875

Date: 2025-02-06 17:47:45
Score: 1
Natty:
Report link

I had the same issue and couldn't figure out what was going on. I tried all the settings mentioned here and on other posts. But it made no difference. In the end I disabled and re-enabled Pylance and that fixed it. Just in case that's of use to anyone else struggling with this.

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

79418874

Date: 2025-02-06 17:47:45
Score: 2.5
Natty:
Report link

This is a big issue today, specially for big codebase projects. Flutter lint for example is automatic for all the project, even if files are closed

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

79418848

Date: 2025-02-06 17:37:42
Score: 6 🚩
Natty:
Report link

was the bug really solved? I added the /bin folder to the MANIFEST but it seems like only the cannot load class problem is solved. The NullPointer Bug still exists.

Reasons:
  • RegEx Blacklisted phrase (1.5): solved?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): was the
  • Low reputation (1):
Posted by: Ingrid

79418844

Date: 2025-02-06 17:36:42
Score: 1.5
Natty:
Report link

Make sure to include "storage" in the manifest file specifically in the permission section:

"permissions": ["storage"]

Hope that would help.

More detail in here.

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

79418836

Date: 2025-02-06 17:32:40
Score: 4
Natty: 4.5
Report link

I think this will help you, yes i know its a old post, but~ for others maybe.

https://github.com/Makunia/Googleform-to-Discord-Webhook-Post-Thread/blob/main/Googleform.js

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

79418834

Date: 2025-02-06 17:31:40
Score: 1.5
Natty:
Report link

It seems there is a parser and formatter compliance between .Net framework and .NET (or .Net Core). .NET uses the standard IEEE 754-2008 it seems.

I've tried your code in .Net framework and .NET (from 3.1 onwards) it behaves as you mentioned.

The reason is already answered in the below stackoverflow question: Rounding issues .Net Core 3.1 vs. .Net Core 2.0/.Net Framework

Hope this helps!

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): Hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Francis

79418826

Date: 2025-02-06 17:30:39
Score: 3
Natty:
Report link

Thank you for sharing this! I've been working on this all afternoon. Creating a new FieldIdentifier was the missing part for me to get validation to re-fire!!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Flinkman

79418815

Date: 2025-02-06 17:26:39
Score: 2
Natty:
Report link

I just created a simple tool using Node.Js to run locally to test opengraph data.

Github Repo, Live Preview

It has a live preview

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: alianjum0

79418810

Date: 2025-02-06 17:25:38
Score: 0.5
Natty:
Report link

Please find below my code, I'm getting null exception in my controller

var apiHost = $"{Request.Scheme}://{(string)Request.Headers["X-Original-Host"] ?? Request.Host.Value}";

[Fact]
public async Task Get_ShouldReturnOk_WhenXOriginalHostIsMissing()
{
    // Arrange
    var mockHeaderNavigationModel = new Mock<IHeaderNavigationModel>();
    var mockNavigationService = new Mock<INavigationService>();

    // Mock HttpRequest
    var request = new Mock<HttpRequest>();
    request.Setup(x => x.Scheme).Returns("https");
    request.Setup(x => x.Host).Returns(HostString.FromUriComponent("localhost:5001"));
    request.Setup(x => x.PathBase).Returns(PathString.FromUriComponent("/api"));

    var httpContext = Mock.Of<HttpContext>(_ =>
        _.Request == request.Object
    );

    //Controller needs a controller context 
    var controllerContext = new ControllerContext()
    {
        HttpContext = httpContext,
    };

    //assign context to controller
    var controller = new NavigationController(mockHeaderNavigationModel.Object, mockNavigationService.Object)
    {
        ControllerContext = controllerContext,
    };

    // Mock navigation service (for example, returning some mock content)
    mockNavigationService.Setup(ns => ns.GetNavigationContentAsync(It.IsAny<string>(), It.IsAny<string>()))
                         .ReturnsAsync(UnitTestsTestData.MockNavigationContent);

    // Act
    var result = await controller.Get();

    // Assert
    var okResult = Assert.IsType<OkObjectResult>(result);  // Should return OkObjectResult
    Assert.NotNull(okResult.Value); // Check that the result has content
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Developer

79418809

Date: 2025-02-06 17:25:38
Score: 1.5
Natty:
Report link

On Azure AD B2C, we need to filter by mail instead. (Thanks zoke for most of this)

    var graphUser = (await graphClient.Users.GetAsync(
        config => config.QueryParameters.Filter = $"mail eq '{user.Email}'"))?
        .Value?
        .FirstOrDefault();
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Michael Ulloa

79418805

Date: 2025-02-06 17:23:38
Score: 1
Natty:
Report link

This works with WooCommerce 9.5.2.

$products_already_in_cart = WC()->cart->get_cart_item_quantities()[$product_id];

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

79418789

Date: 2025-02-06 17:20:36
Score: 9 🚩
Natty: 5.5
Report link

did you ever find out how to insert the event data?

Reasons:
  • RegEx Blacklisted phrase (3): did you ever find out
  • 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: Ísis Yasmim

79418786

Date: 2025-02-06 17:18:35
Score: 1
Natty:
Report link

answer by u/tetrahedral on Reddit:

My hunch is that you are passing the text back as a MutableList somewhere and calling .clear() on it without realizing that it’s a reference to the storage. Modify getText and addText to copy into a new array and see if the problem goes away.

I was creating an alias to the mutableList when I was passing it as a parameter. when I called .clear() on it, the list was deleted in both files.

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

79418784

Date: 2025-02-06 17:18:35
Score: 0.5
Natty:
Report link

I guess avoiding ! simplifies logic for reading

public boolean isBetween(LocalTime start, LocalTime end, LocalTime target) {
    return start.isAfter(end) ?
            (target.isAfter(start) || target.isBefore(end)) :
            (target.isAfter(start) && target.isBefore(end));
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Geba

79418773

Date: 2025-02-06 17:14:34
Score: 3
Natty:
Report link

If you don't need or actually plan to utilize R Server, then don't select the options during the installation to install R Server. You can deselect R Server during the install process, and when deselected, it will allow the SQL installation to proceed.

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

79418770

Date: 2025-02-06 17:12:34
Score: 0.5
Natty:
Report link

If you're trying to use a C# DLL in a Node.js application, the challenge is that C# runs in the .NET runtime, while Node.js runs in a JavaScript environment. You can't directly load a C# DLL in Node.js without some interop mechanism.

How to Make It Work

Here are some ways you can get this working:

  1. Use Edge.js (Best for Simple Calls)

Edge.js is a library that allows you to call C# code from Node.js.

Steps:

1. Install Edge.js:

    npm install edge-js


2. Use it in your Node.js app:

    const edge = require('edge-js');
    
    const myDllMethod = edge.func({
        assemblyFile: 'path/to/your.dll',
        typeName: 'YourNamespace.YourClass',
        methodName: 'YourMethod' // Must be a public static method
    });
    
    myDllMethod(null, function (error, result) {
        if (error) throw error;
        console.log(result);
    });

Pros: Simple to set up Good for small projects

Cons: Only works with synchronous static methods Doesn't support advanced .NET features

  1. Create a .NET Web API and Call It from Node.js

If your DLL has dependencies or needs a runtime, it's better to expose it as an API.

Steps:

1. Create a Web API in .NET Core:



  [ApiController]
    [Route("api/[controller]")]
    public class MyController : ControllerBase
    {
        [HttpGet("call")]
        public IActionResult CallCSharpMethod()
        {
            var result = MyLibrary.MyClass.MyMethod();
            return Ok(result);
        }
    }
  1. Call the API from Node.js using Axios:

    const axios = require('axios');
    
     axios.get('http://localhost:5000/api/MyController/call')
         .then(response => console.log(response.data))
         .catch(error => console.error(error));
    

Pros: Works for complex logic No need to load DLLs in Node.js

Cons: Requires hosting the API

  1. Run a C# Console App from Node.js

If Edge.js doesn’t work and an API is overkill, you can run a C# console app and get its output.

Steps:

  1. Create a Console App in C#:

    class Program { static void Main() { Console.WriteLine(MyLibrary.MyClass.MyMethod()); } }

  2. Call the EXE from Node.js:

    const { exec } = require('child_process');

     exec('dotnet myConsoleApp.dll', (error, stdout, stderr) => {
         if (error) console.error(error);
         console.log(stdout);
     });
    

Pros: No need to modify the DLL Works with any C# logic

Cons: Slower due to process execution

Which One Should You Choose?

 For simple method calls → Use Edge.js
 For a scalable solution → Use a .NET Web API
 If Edge.js doesn’t work → Use the Console App approach
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: BSG

79418749

Date: 2025-02-06 17:02:31
Score: 2
Natty:
Report link

it depends! It depends on what you need.

Check out what forms are for with this awesome guides: https://angular.dev/guide/forms/reactive-forms

And for everything else, you can also use inputs without forms!

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

79418740

Date: 2025-02-06 17:00:31
Score: 2.5
Natty:
Report link

look in https://github.com/SWNRG/ASSET for such implementations. There are 3 different versions of contiki, you compile them seperately, and you utilize the nodes from each one.

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

79418736

Date: 2025-02-06 16:59:31
Score: 2
Natty:
Report link

I found the answer on AWS doc:

The pending-reboot status doesn't result in an automatic reboot during the next maintenance window. To apply the latest parameter changes to your DB instance, reboot the DB instance manually.

Source: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_RebootInstance.html

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

79418725

Date: 2025-02-06 16:55:30
Score: 1
Natty:
Report link

This type of error usually occurs when there is a problem with the Flutter and Kotlin dependencies in your Android project. In this case, the FlutterFragmentActivity class cannot be resolved correctly.

-Review your dependencies: Make sure that the required dependencies are included in your app's build.gradle file in the dependencies section

implementation 'io.flutter:flutter_embedding_debug:<flutter_version>'

-Update Flutter and Gradle

import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity: FlutterFragmentActivity() { }

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Josu Alejandro Hernndez Castel

79418723

Date: 2025-02-06 16:55:30
Score: 2
Natty:
Report link

You can simplify AtLeastTwoElements from @jcalz answer to

type AtLeastTwoElements<K extends PropertyKey> =
  { [P in K]: Exclude<K, P> }[K]

AtLeastTwoElements<"a" | "b"> evaluates to {a: "b", b: "a"}["a" | "b"] which is "a" | "b".
But AtLeastTwoElements<"a"> is {a: never}["a"] which is never.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jcalz
  • Low reputation (1):
Posted by: KuSh

79418714

Date: 2025-02-06 16:50:28
Score: 1
Natty:
Report link

for git bash, add/modify like that in c:/Users/YOUR_NAME/.bash_profile:

export PATH="$HOME/AppData/Roaming/pypoetry/venv/Scripts:$PATH"

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

79418713

Date: 2025-02-06 16:50:28
Score: 1
Natty:
Report link

I needed to create a copy of my current python 3.11 environment but with python 3.10.

trying

conda install python=3.10

resulted in conda telling me that it couldn't figure stuff out because python_abi and thing dependent on it were the problem.

So...

steps needed:

conda create --name py-3.10 --clone py-3.11
conda activate py-3.10
conda remove python_abi  <--- this was the blocker stopping me
conda install python=3.10
conda install python_abi keyboard levenshtein

When I removed python_abi it warned me that the packages keyboard and levenshtein would be removed, so the last step that adds the python_abi back had to add these back too.

It's better than having to reload ALL of your packages

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Steve

79418701

Date: 2025-02-06 16:45:27
Score: 2.5
Natty:
Report link

If none of the answers here worked, try changing .gitignore encoding to UTF-8.

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

79418691

Date: 2025-02-06 16:41:26
Score: 0.5
Natty:
Report link

JSON Patch works exactly as your request if you change json from array to Map<ID, Object>

JSON Patch use index for array and key for map

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Alessandro Scarozza

79418686

Date: 2025-02-06 16:40:26
Score: 1
Natty:
Report link

If you get this in windows when trying to open applications in a web browser, which worked for me. windows to system settings > change date and time > turn set the time automatically setting off then on again. turn adjust for daylight savings time automatically setting off then on again. Refresh your browser and it should then log you in probably.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kris

79418677

Date: 2025-02-06 16:36:24
Score: 4
Natty:
Report link

use the PowerShell instead of the cmd

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

79418672

Date: 2025-02-06 16:35:23
Score: 1.5
Natty:
Report link

You can also try the simpler syntax

repo.heads['feature-generate-events']
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: globglogabgalab

79418669

Date: 2025-02-06 16:34:23
Score: 1
Natty:
Report link

Both approaches you described are working solutions with own pros and cons. The right choice depends on your needs.

1. Pre-baked Template (manual, but reliable)

Pros:

Cons:

When to use:

2. Lightweight Template & Startup Script (automated, but dependent)

Pros:

Cons:

When to use:


However, I cannot fail to mention that the approaches above only make sense for stateful apps where local data persistence.

From your description, it’s unclear whether your «simple app running on Node.js» is stateful or not. If it’s stateless, consider using Cloud Run or App Engine, depending on your specific requirements (scalable by design, minimal maintenance, and most likely much cheaper than MIG).

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

79418665

Date: 2025-02-06 16:33:23
Score: 1.5
Natty:
Report link

To achieve the desired JOLT transformation, you need to check if body.Contract.stayRestrictions[].restrictionType equals "ClosedToArrival", and if so, set body.Block.stayRestrictions[].isClosedToArrival to true; otherwise, it should be false. This ensures that the transformation accurately reflects the condition specified in the input JSON. Just like how a well-structured Texas Roadhouse menu helps diners easily navigate through different meal options, organizing JSON transformations efficiently makes data processing seamless. Whether it's structuring a menu with clear categorie

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

79418664

Date: 2025-02-06 16:33:22
Score: 5.5
Natty: 5
Report link

How could know wich flags are deprecated in jvm 17 for example with this command line java -XX:+PrintFlagsFinal -version?

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

79418663

Date: 2025-02-06 16:32:21
Score: 6.5 🚩
Natty: 5
Report link

here's my setting

capabilities: [{ // capabilities for local Appium web tests on iOS platformName: 'iOS', 'appium:deviceName': 'iPad mini (6th generation)', 'appium:platformVersion': '17.5', 'appium:automationName': 'XCUITest', 'appium:udid': '713D25D6-E4EF-4E9D-B4BE-0B43BBFBB4F6', 'appium:noReset': true, 'appium:fullReset': false, 'appium:app': join(process.cwd(), 'app/iOS-NativeDemoApp-0.1.0.app'), 'appium:bundleId': 'com.apple.xcode.dsym.org.reactjs.native.example.wdioDemoAppTests', 'appium:appWaitDuration': 90000, 'appium:appWaitActivity': 'SplashActivity, SplashActivity,OtherActivity, *, *.SplashActivity', 'appium:newCommandTimeout': 600 }],

and still face this issue

ERROR webdriver: Error: WebDriverError: The operation was aborted due to timeout when running "http://127.0.0.1:4723/session" with method "POST" and args "{"capabilities":{

anyone can help?

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

79418662

Date: 2025-02-06 16:32:21
Score: 2
Natty:
Report link

The answer from @kEks above is the solution to your question.

However, I'd further suggest that you are missing the point of Snakemake rules having those four rules that all contain shell loops. Is there any reason why you are making a rule that triggers once and runs every command in a loop, rather than having a rule that applies to any individual output file and letting Snakemake do the work? Your code would be considerably simpler if you wrote it this way. You could also then use the touch() output type of Snakemake to save you explicitly running the touch ... command in the shell part.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @kEks
  • Low reputation (0.5):
Posted by: Tim Booth

79418658

Date: 2025-02-06 16:31:20
Score: 5
Natty: 5
Report link

I ran it and it bricked my browser.

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

79418650

Date: 2025-02-06 16:28:19
Score: 1.5
Natty:
Report link

I found this repository, which is part of the jetpack compose course from Google, which implements the same approach:

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

79418648

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

Using wget:

for i in {1..15}; do wget --show-progress -c --limit-rate=3M "https://huggingface.co/unsloth/DeepSeek-R1-GGUF/resolve/main/DeepSeek-R1-Q8_0/DeepSeek-R1.Q8_0-0000${i}-of-00015.gguf?download=true" -o "DeepSeek-R1.Q8_0-0000${i}-of-00015.gguf"; do
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: smake

79418646

Date: 2025-02-06 16:27:17
Score: 12 🚩
Natty: 6.5
Report link

did you find any solution yet? I want to implement an reward-based ad on my site too.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did you find any solution
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (2): any solution yet?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you find any solution
  • Low reputation (1):
Posted by: Prince Singh

79418640

Date: 2025-02-06 16:26:17
Score: 0.5
Natty:
Report link

The problem here was the name of the parameter passed to the confirmPayment function. It should have looked like the below:

const {error} = await stripe.confirmPayment({
                elements: expressElements,
                clientSecret,
                confirmParams: {
                    return_url: window.location.href,
                },
                redirect: 'if_required',
            });
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Josh Bolton

79418624

Date: 2025-02-06 16:20:14
Score: 9.5 🚩
Natty: 6
Report link

have you found any solurion? i have the same problem

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • RegEx Blacklisted phrase (2.5): have you found any solurion
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Djihad

79418620

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

I found problem. I did not added expire time for token. Because of that when I tried to send it to api it did not understood what it was.

app.config['JWT_ACCESS_TOKEN_EXPIRES'] = timedelta(days=7)

Another option why it was no working because I did not added required extension get_jwt

from flask_jwt_extended import JWTManager, create_access_token, jwt_required, get_jwt_identity, get_jwt
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: santeri pohjaranta

79418617

Date: 2025-02-06 16:18:14
Score: 3
Natty:
Report link

I got this error when I copied javafx.graphics.jar to a new project but didn't also copy all of the dlls in the bin directory of the JavaFX SDK.

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

79418614

Date: 2025-02-06 16:17:13
Score: 0.5
Natty:
Report link

Ok, I fixed this myself with a really really ugly hack.

My DuplicateFilterSink class now looks like this:

public class DuplicateFilterSink : ILogEventSink
{
    private readonly ILogEventSink _innerSink;
    private LogEvent? _prevLogEvent;
    private int _duplicateCount = 0;

    public DuplicateFilterSink(ILogEventSink innerSink)
    {
        _innerSink = innerSink;
    }

    public void Emit(LogEvent logEvent)
    {
        // Check if the message is the same as the previous one
        if (_prevLogEvent != null && logEvent.MessageTemplate.Text == _prevLogEvent.MessageTemplate.Text)
        {
            _duplicateCount++;
        }
        else
        {
            // If the message has changed, log the previous duplicate count
            if (_duplicateCount > 0 && !logEvent.MessageTemplate.Text.StartsWith("  * The previous message occurred"))
            {
                string dupmsg = $"  * The previous message occurred {_duplicateCount} times";

                Log.Information(dupmsg, _duplicateCount);

                _duplicateCount = 0;
            }

            // Log the new message
            _innerSink.Emit(logEvent);
            _prevLogEvent = logEvent;
        }
    }
}

Since I have not figured out a way to create a valid MessageTemplate with a valid MessageTemplateToken, I tried using the Log.Information() line, but that created an infinite recursion loop because the Log method kept calling the Sink which called the Log method which called the... well, you get it.

I combated this problem by adding the "&& !logEvent.MessageTemplate.Text.StartsWith(..." condition to the if statement so that the second time through it would not Log method again.

This works, but is horribly Kludgy. I will be greatful if anyone can solve my original problem in a "best-practices" way.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • RegEx Blacklisted phrase (2): I will be greatful
  • RegEx Blacklisted phrase (0.5): anyone can solve
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dogulas

79418611

Date: 2025-02-06 16:16:13
Score: 0.5
Natty:
Report link
final_array = final_array.map { college in
    College(id: college.id, colData: college.colData.map { student in
        Student(name: student.name.uppercased(), age: student.age)
    })
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Frankie Baron

79418607

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

I've got 'username' field in yaml, and value had a backslash symbol '\', it must be escaped with another backslash '\\'

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

79418602

Date: 2025-02-06 16:14:12
Score: 1
Natty:
Report link

Had the same problem. What solved it was Rsge's comment:

use that (aka. py.exe) to open Python

So I changed the *.py file association to C:\Windows\py.exe

(using pythonw.exe or python.exe had no effect)

(Edit: formating)

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

79418594

Date: 2025-02-06 16:10:10
Score: 6 🚩
Natty:
Report link

I have similar issue, when executing simple select query text values get ", but when i use function array_agg it adds another ", so values lools like ""hello""; i this is something from new postgres version

Reasons:
  • Blacklisted phrase (1): I have similar
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have similar issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Panda

79418592

Date: 2025-02-06 16:09:09
Score: 0.5
Natty:
Report link

Creating an API that returns true/false based on a hardcoded query doesn't seem such a good solution, because it isn't flexible at all and doesn't fit into REST, because it doesn't represent an action on a resource.

Sure it does - the resource is some named collection of information (aka "a document", although you can implement that any way you like behind the api facade), and the action on the resource is GET (please send me a copy of the current representation of the document).

As REST is designed to be efficient for large-grained hypermedia, you're more likely to want a design that returns a bunch of information all bundled together, rather than a document that describes a single bit, but that's something you get to decide for yourself.

How do I create an api that checks if a certain condition is met, while making it as flexible as possible and adhering to REST principles?

In that case, you're probably going to end up defining a family of resources, each of which has their own current representation (but under the covers might be implemented using a single "request handler" that knows how to choose the correct implementation from the target resource of the request).

So REST is going to tell you that you can do that (it's your own resource space) and that you'll probably want to use some readily standardizable form for describing the space of identifiers (ie: choosing identifiers that can be described using URI Templates).

As a general rule, you'll want to avoid using identifiers that couple you to tightly to a particular implementation of handler unless you are confident that the particular implementation is "permanent".

In terms of the spelling conventions you use to encode the variations of resources into your identifiers -- REST doesn't care what spelling conventions you use.

Reasons:
  • Blacklisted phrase (1): How do I
  • RegEx Blacklisted phrase (2.5): please send me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: VoiceOfUnreason

79418585

Date: 2025-02-06 16:08:09
Score: 1.5
Natty:
Report link

You guys can use this

export const isServer: boolean = typeof window == "undefined";
 if (!isServer) {
    return JSON.parse(localStorage.getItem("user") || "{}");
  }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Himanshu Taviyad

79418580

Date: 2025-02-06 16:07:08
Score: 11 🚩
Natty: 6
Report link

Do you solve this question?

I think I have the same problem

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (1.5): solve this question?
  • RegEx Blacklisted phrase (2.5): Do you solve this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Marcos Marques

79418578

Date: 2025-02-06 16:06:07
Score: 1
Natty:
Report link

Without knowing more about your architecture, this would come down to whether or not you want to expose logging database to your frontend. Your options are:

  1. As you said, make a subsequent request to the server, which may or may not succeed, but probably has a higher likelihood of succeeding. I would chose this if I didn't want to expose my log storage to the frontend
  2. Setup a clientside log storage. AWS Rum is what I've used in the past. In fact, I'm using AWS Rum with a Vue application for a client right now

By using Rum, you can choose to store only Frontend errors in the frontend log storage, and reserve the backend log storage for server side issues.

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

79418564

Date: 2025-02-06 16:02:06
Score: 2
Natty:
Report link

One option is to do it in one line:

Sheets("Sheet1").Range("A1:Z9").copy Sheets("Sheet2").Range("A1")

In general, working with the Active Sheet (using Range("a1") without specifying the sheet) or using the active Selection can lead to problems since the starting state is not known or controlled.

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

79418556

Date: 2025-02-06 16:00:06
Score: 3
Natty:
Report link

You need to remove the slash from the end of the path on the right side of the map. i.e -v C:\folder:D:

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

79418549

Date: 2025-02-06 15:57:05
Score: 3.5
Natty:
Report link

Here it is example how to expose Flask app as a single Cloud Function

https://firebase.google.com/docs/functions/http-events?gen=2nd

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

79418543

Date: 2025-02-06 15:55:05
Score: 2.5
Natty:
Report link
import { ECharts } from 'echarts/core';
echartsInstance: ECharts;

documentation : https://echarts.apache.org/en/api.html#echarts

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

79418542

Date: 2025-02-06 15:55:05
Score: 1.5
Natty:
Report link

I recommend discarding nextjs-progressbar since it is no longer maintained and seamlessly switching to next-nprogress-bar. The usage remains exactly the same - you only need to update your imports.

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

79418540

Date: 2025-02-06 15:54:05
Score: 2.5
Natty:
Report link

For newer versions of Jenkins, the required Maven configuration can be found under Dashboard > Manage Jenkins > Tools. In the Maven section, select the desired version and ensure that the name you assign to the Maven version matches exactly with the name in the tool section. The name must be an exact match.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Recep Karayiğit

79418539

Date: 2025-02-06 15:54:05
Score: 2.5
Natty:
Report link

Can you share your top level CMakeLists.txt where you call add_subdirectory() for the SDL libraries? I don't know for sure, but I suspect that targets from those SDL_* subdirectories are clashing with eachother.

This has a more complete sample to build just about what you're describing: https://github.com/Ravbug/sdl3-sample/blob/main/CMakeLists.txt#L65

SDL2-image build also outputs this somewhere in the process:

To this problem, that's happening here: https://github.com/libsdl-org/SDL_image/blob/release-2.8.x/cmake/FindSDL2main.cmake#L6

I think you can fix that by setting SDL2_DIR variable to point to your build directory.

Also I think its finding libSDL2main.a in /usr/local/lib because that's where cmake installs built libraries by default, so I suspect this SDL subdirectory is getting built then installed there.

This line prevents that from happening

set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}" CACHE INTERNAL "")

Also from that sample https://github.com/Ravbug/sdl3-sample/blob/main/CMakeLists.txt#L8-L9

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share your
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you share you
Posted by: GandhiGandhi

79418530

Date: 2025-02-06 15:52:04
Score: 2
Natty:
Report link

Turns out that there were a few possible solutions to my problem. The easiest was to let puppeteer start the server by adding the server command to the jest-puppeteer.config.js file. I also added a command flag (--puppeteer) as described in the stackoverflow question:

server: {
  command: "node server.js --puppeteer",
  port: 5000,
  launchTimeout: 10000,
  debug: true,
},

I then added a check in the server.js file for the flag so that the server is not started for any unit tests other than those using puppeteer:

if (process.env['NODE_ENV'] === 'test'
    && !process.argv.slice(2).includes('--puppeteer')) {
  module.exports = {
    'app': app,
  };
} else {
  http.listen(port);
}

I also put my react (puppeteer) tests in a separate file just for good measure.

jest.config.js:

module.exports = {
  preset: "jest-puppeteer",
  testMatch: [
    "**/__tests__/test.js",
    "**/__tests__/testReactClient.js"
  ],
  verbose: true
}

Feel free to comment if you have a better solution.

Reasons:
  • Blacklisted phrase (1): to comment
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rob Gravelle

79418527

Date: 2025-02-06 15:52:04
Score: 1
Natty:
Report link

You’ll want to use TimelineView for this. .everyMinute updates on the minute so you can update your clock

TimelineView(.everyMinute) { timelineContext in
    let minute = Calendar.current.component(.minute, from: timelineContext.date)
    …
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Peter of the Norse

79418522

Date: 2025-02-06 15:51:04
Score: 3.5
Natty:
Report link

There is now an option to click "Stage block", which can be more convenient than selecting lines and using the "Stage Selected Ranges" command:

Screenshot showing stage block functionality

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

79418518

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

Yes, this behavior is intentional and is due to Canvas' privacy settings and permissions model.

Why Is the Email Missing for Regular Users?

  1. Privacy Settings in Canvas:
    Canvas hides user email addresses by default unless the requesting user has the correct permissions. Admin users have broader access, so they can see emails, but regular users do not necessarily have permission to view their own or others' email addresses via the API.

  2. Account-Level Settings:
    Your Canvas instance may have settings that restrict email visibility for non-admin users. For example, Canvas administrators can configure whether email addresses are visible through the API under:
    Admin > Settings > Security (or similar)

  3. Scope of OAuth Tokens:
    Even though you have disabled enforce scopes, Canvas still applies certain internal privacy rules. The email field might require additional permissions, such as Users - manage login details.

  4. User Visibility & Role Permissions:
    The visibility of user emails may also depend on the specific role settings under:
    Admin > Roles & Permissions

    Look for permissions related to "Users" or "Profile" and check if there are any restrictions on email visibility.

Possible Solutions

Final Thought

Even with global developer key access, Canvas enforces privacy policies for regular users. You may need to adjust role permissions or request emails via a different endpoint (/profile) or with additional API scopes.

Would you like help testing specific API calls or adjusting Canvas settings?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Александр Шарапов

79418513

Date: 2025-02-06 15:47:03
Score: 3
Natty:
Report link

BeeGFS is an example where df -l returns 0.

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

79418508

Date: 2025-02-06 15:45:02
Score: 1
Natty:
Report link

I set the constraint to Not Enforced in project2 and I was able to execute the command successfully.

This answer works for us, but in our case, we have to change the constraint to 'Not Enforced' in project1.

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

79418505

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

you can change the name of one variable with assignin

assignin ('base', 'new_name_variable', old_name_variable)

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

79418487

Date: 2025-02-06 15:37:00
Score: 3.5
Natty:
Report link

I know this is super old but if anyone comes across this, once your files that you are reading get to big you will need to setup something else. I have 4 files I am trying to read into my test all over 30,000 lines so reading them into the 1000 vus that runs my test crashes the test on the init stage

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alex centorbi

79418481

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

I've look at all your suggestions ... And it more simple than that ... Basically sqlite3 has a text field that NEED TO BE DEFINED BY IT LENGTH ... without this the field is so long , DBgris need to adapt and opt for a memo file the display ...

De fine the field length and the problem is solved... 👍👍👍👍👍

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

79418476

Date: 2025-02-06 15:30:59
Score: 0.5
Natty:
Report link

jinsoul

SCDF by default uses Java 8 when running apps. You can adjust this by setting BP_JVM_VERSION to -jdk17 (e.g...)

export BP_JVM_VERSION=-jdk17
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: onobc

79418455

Date: 2025-02-06 15:24:57
Score: 10
Natty: 8
Report link

Can you tell me what changes you did to get it working? I am stuck in exactly same scenario.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you tell me what
  • RegEx Blacklisted phrase (1.5): I am stuck
  • RegEx Blacklisted phrase (2): working?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Kunal Mitra

79418423

Date: 2025-02-06 15:13:54
Score: 2
Natty:
Report link

The solution, at least in this case, turned out to be having to place a new control on the Design screen rather than typing it in. I still have no idea what the difference is, or how the control on the UI and the control in the codebehind are connected, since there is no designer file; if I simply copy the modified .aspx and .aspx.cs files, and nothing else, to a different copy of the site, it works.

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

79418413

Date: 2025-02-06 15:10:54
Score: 2.5
Natty:
Report link

If you want to extract a date from a GUID you must use UUID V1 to do so. It's not possible with V4.

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

79418409

Date: 2025-02-06 15:08:53
Score: 3.5
Natty:
Report link

Thanks for your help on this. I'm having the same issue as the poster and although I try to understand how to change my formulae to add Blank()" not null I'm struggling. I'm not an advanced user. Here is my formulae: Sort(ForAll(Distinct(Table1,SVP), {Result: ThisRecord.Value}),Result). This is for the first drop down box that shows only UNIQUE names. This formulae keeps giving me this warning that is driving me insane: "Error when trying to retrieve data from the network: Expression "SVP eq null" is not supported. clientRequestId:"

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-0.5): Thanks for your help
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Low reputation (1):
Posted by: Alma

79418405

Date: 2025-02-06 15:06:53
Score: 3
Natty:
Report link

In the Yaml file, You can add a condition to the task that updates the build number to check if a variable is set to false. If the variable is false, the task will be skipped.

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

79418402

Date: 2025-02-06 15:05:52
Score: 2
Natty:
Report link
gridOptions={{
   rowHeight: 10
}}

In my case removing rowHeight solved the problem

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