79104256

Date: 2024-10-19 05:29:15
Score: 2.5
Natty:
Report link

After much searching I used the following code and it works fine:

$db->query();

$lastInsertedId = $db->insertid();

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

79104244

Date: 2024-10-19 05:14:12
Score: 1
Natty:
Report link

I had the same question and did not find a solution until I asked my good friend ChatGPT. After a short conversation, now I have working solution. Please, read whole session if you are still interested.

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

79104243

Date: 2024-10-19 05:13:12
Score: 3
Natty:
Report link

On windows 11, simply install using pip v 24.2 and command pip install evals

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

79104237

Date: 2024-10-19 05:07:11
Score: 1
Natty:
Report link

I just use --force flag every time:

svn add --force example/folder/*

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Ilya Iksent

79104235

Date: 2024-10-19 05:05:10
Score: 1.5
Natty:
Report link

I created a new playground that demonstrates everything I wanted. Property names are customizable per form. I get full type-safety and auto-complete internally to SEACH_QUERY and releaseInclude and externally when using the final object.

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

79104221

Date: 2024-10-19 04:53:07
Score: 0.5
Natty:
Report link

You can reference the same class using quotation marks:

def __add__(self, other: 'Car') : 
        print(f"helo {self.name} {other.name}")

You can find more cool solutions here

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

79104213

Date: 2024-10-19 04:48:06
Score: 1
Natty:
Report link

Try calling it outside of the component, as it is recommended in docs.

import * as SplashScreen from 'expo-splash-screen';

SplashScreen.preventAutoHideAsync();

export default function App() {
 // ...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Devpool

79104209

Date: 2024-10-19 04:41:05
Score: 1
Natty:
Report link

put your id here

<meta name="google-signin-client_id" content="my client id">

in content="my client id"

also in your console there is an error of favicon not found. So load your favicon properly

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

79104208

Date: 2024-10-19 04:41:05
Score: 1
Natty:
Report link
for i, creature in pairs(creatureArray)

When looping through a table or dictionary, it returns a key/value pair. The i is considered the key, and the creature is considered the value.

Here's an example:

local t = {
    ["Item"] = "Value",
    ["Another Item"] = "Another Value",
}

for i, value in pairs(t) do
    print(i, value)
end

The output would be:

Item            Value
Another Item    Another Value
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: kexy123

79104200

Date: 2024-10-19 04:32:03
Score: 2
Natty:
Report link

There is a problem here, If you try to remove method.request. query string.tableid from method and integration lateron while applying the method param will be deleted and while updating the integration it will fail as the integration referencing the same parameter from method that has been just removed. Its annoying to add cache key to only integration resource. Just like UI these should be seperated.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sai Teja Makani

79104199

Date: 2024-10-19 04:30:03
Score: 1
Natty:
Report link

In your case,

I want to cache the response so that I can use the app even if it is offline

You need to implement a local database to save data on the user's device. and this is possible using the Room Database. This is how it works:

When Online

When Offline

Please check MVVM News App (retrofit) with local db

Reasons:
  • Whitelisted phrase (-1): In your case
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Milad Mohammadi

79104197

Date: 2024-10-19 04:29:03
Score: 3.5
Natty:
Report link

Upgrading Next.js to the latest version helped me.

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

79104190

Date: 2024-10-19 04:18:00
Score: 0.5
Natty:
Report link

The answer to this very straightforward.

class Restaurant:
    def __init__ (self, restaurant_name, cuisine_type):
        self.name = restaurant_name
        self.type = cuisine_type
        
    def describe_restaurant(self):
        print(f"This restaurant's name is: '{self.name.title()}' and serves {self.type}")
        
    def restaurant_open(self):
        print(f"'{self.name.title()}' is currently open")

res1 = Restaurant('pho hung', 'vietnamese pho')
res1.describe_restaurant()

res2 = Restaurant('macdonalds', 'american fast')
res2.describe_restaurant()
res2.restaurant_open()

Output would be:

This restaurant's name is: 'Pho Hung' and serves vietnamese pho
This restaurant's name is: 'Macdonalds' and serves american fast
'Macdonalds' is currently open

Reference:

  1. https://docs.python.org/3/library/stdtypes.html#str.title
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hariharan Ragothaman

79104187

Date: 2024-10-19 04:13:59
Score: 1
Natty:
Report link

Use This code as a Like

<b:widget-setting name='text-1'><![CDATA[<i class="fa-brands fa-facebook"></i>]]></b:widget-setting>

Integrate Fontasome cdn on head & use fontasome class when adding a widget in layout mode.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Md Siam Billah Forkan

79104186

Date: 2024-10-19 04:13:59
Score: 1
Natty:
Report link

By default, Flutter adds a visibility toggle icon when obscureText is set to true in a TextField. However, when you need to use a custom icon (e.g., with suffixIcon), you can simply provide your own widget in the suffixIcon parameter of the InputDecoration, and the default visibility icon will be replaced.

Here's how you can achieve this by using the TextField widget, setting obscureText, and adding a custom suffixIcon to handle toggling between visibility states:

Here are all the codes

If you want the suffixIcon to be optional (e.g., only show it for passwords but not for other input fields), you can add conditional logic inside the suffixIcon field to show or hide it based on the type of input.

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

79104154

Date: 2024-10-19 03:39:53
Score: 1.5
Natty:
Report link

I had The same issue I installed Andy And I got that same message The operation was canceled 10 hyper v is not enabled on my pc by the way i was on a handled pc it a Asus ROG Ally it has an AMD CPU and my operating system is windows 11 home 64 bit

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: Sussy baka

79104153

Date: 2024-10-19 03:34:52
Score: 10.5
Natty: 7.5
Report link

I also have the same problem, have you found a solution?

Reasons:
  • RegEx Blacklisted phrase (2.5): have you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I also have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DucK

79104129

Date: 2024-10-19 03:06:48
Score: 0.5
Natty:
Report link

It's great that you're aiming for clean code architecture and considering localization at a feature level.
While clean code, it's important not to over-complicate or tightly couple solutions. The common structure of having a centralized localization file is already optimized and sticks to clean code principles. Before restructuring, ask yourself:

From my experience, a centralized approach is easier because many strings are reused. It simplifies updates and makes localization management more efficient by handling everything from a single source.

Example:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: ankushlokhande

79104127

Date: 2024-10-19 03:06:46
Score: 12.5 🚩
Natty: 5.5
Report link

I know this is from over a year ago, but I was wondering if you could help me out with a portion of this. So over the summer I created a ERP software for the company I am working for using xampp, we have it running on a domain which is accessible from any computer anywhere, and is is being ran on a local server within our office. After a lot of development stages (they didnt know what they wanted so I had to keep building) it got to a point where they are all using it for all their info project tracking, inventory, timesheets, everything. Now they have found use for clients to use it and want it to come up as secure when the client goes to it. Right now it only comes up as secure if you go to the website on the server itself, because its a self signed certificate but the owner said he bought a godaddy ssl and i am struggling to get it running. Would you be willing to give instructions, like step by step on how to properly get it running?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): i am struggling
  • Blacklisted phrase (2): was wondering
  • RegEx Blacklisted phrase (3): you could help me
  • RegEx Blacklisted phrase (2): help me out
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alex Sullo

79104125

Date: 2024-10-19 02:58:44
Score: 7 🚩
Natty:
Report link

can you explain about csp? i use livewire and spatie, but all run as well

Reasons:
  • RegEx Blacklisted phrase (2.5): can you explain
  • Low length (1.5):
  • 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: nadhif ahmad

79104123

Date: 2024-10-19 02:56:44
Score: 3.5
Natty:
Report link

In my case I change the number from 1 to number of message you want to display at "Messages"option. Then click "Get Message" option and it showed. enter image description here

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

79104120

Date: 2024-10-19 02:49:43
Score: 3.5
Natty:
Report link
std::string name = "akash";
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pkzoid Token

79104119

Date: 2024-10-19 02:46:42
Score: 1
Natty:
Report link

this answer posted already worked for me:

an HTTP redirect is issued to the same URL with a slash appended.

Make sure your server and client are consistent with trailing slashes.

answered Jun 13, 2011 at 21:17

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

79104110

Date: 2024-10-19 02:37:41
Score: 2.5
Natty:
Report link

The tab view should contain the navigation view, not the other way around. This is true in UIKit apps as well.

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

79104105

Date: 2024-10-19 02:30:39
Score: 3
Natty:
Report link

A long time hasn't been back to StackOverflow, but today I think there is a better option to stop the CSV query connection.

Just uncheck Save query definition checkbox in External Data Range Properties popup and then, you are fine to do whatever you want with the data, Excel will only consider the data as text value only, without any data connection, validating or refreshing or such things.

Look at the screenshots below for more reference. (Sorry I can't post images yet) [1]: https://i.sstatic.net/WUV1RuwX.png [2]: https://i.sstatic.net/EDDKfU3Z.png

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • RegEx Blacklisted phrase (0.5): Sorry I can't
  • No code block (0.5):
  • Low reputation (1):
Posted by: chaos thunder

79104101

Date: 2024-10-19 02:23:38
Score: 2
Natty:
Report link

Playing an empty sound in between firing alerts has solved the issue. The app now is kept alive in the background and all sounds and vibrations fire as expected.

I understand this is very hacky, but I have seen no other viable solution.

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

79104094

Date: 2024-10-19 02:13:36
Score: 3
Natty:
Report link

In my case, upgrading org.jetbrains.kotlin:kotlin-stdlib-jdk7 to ver 1.9.20 solve this problem.

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

79104089

Date: 2024-10-19 02:10:35
Score: 3.5
Natty:
Report link

Found the answer to part 2: the choice between system.data.sqlclient and microsoft.data.sqlclient is made at the time of specifying the connection/data source.

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

79104078

Date: 2024-10-19 02:04:34
Score: 0.5
Natty:
Report link

When you run FastAPI app with uvicorn, it starts the app from main.py rather than directly executing your script. The working directory is likely set to the project root (project-astra), so python tries to find the prompts module from this folder. If it can't find it, you get the ModuleNotFoundError.

Try to add a . before prompts in classification_pipeline:

from .prompts import (
    json_example, json_extractor_prompt, 
    definitions
)

This will make python look for prompts inside the current pack where is classification_pipeline.py

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Michael SH

79104076

Date: 2024-10-19 02:02:33
Score: 1
Natty:
Report link

I deleted the Android SDK Build Tools-35 and installed them again and the error got removed. This is what you've to do:

Go to SDK Manager in Android Studio. Choose the tab 'SDK Tools'. If the Android SDK Build Tools will already be selected, it mean you've already downloaded them and you've to delete them and install them again. So uncheck that option, then click apply and okay. Then go to the same tab and this time, check the option "Android SDK Build Tools" and then click on apply. It will start downloading the Android SDK Build Tools for you.

PS. Restart your PC after doing this if the error will not be resolved. Also, run the command prompt as administrator.

Good Luck!

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

79104075

Date: 2024-10-19 02:01:33
Score: 1.5
Natty:
Report link

For those working in a Node environment and trying to obtain the authorization token in offline mode, I recommend checking if your local server is stuck. After the consent confirmation, the authorization process redirects to your callback API. If your local server is unresponsive, it won't be able to reach the callback API, which was the issue I encountered.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: davinder singh

79104072

Date: 2024-10-19 01:58:32
Score: 3
Natty:
Report link

I was able to resolve this by creating the Popup programmatically in my code-behind, instead of creating it in XAML and placing inside the the element as a child.

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

79104068

Date: 2024-10-19 01:52:31
Score: 1
Natty:
Report link

the problem comes from an incompatibility of the package with the new version of gradle to correct this you must change the version of gradle in the flutter project more precisely in "androïd/gradle/wrapper/gradle-wrapper.properties" it looks like this: "distributionUrl=https://services.gradle.org/distributions/gradle-7.6.3-all.zip". you must then go to the Settings.gradle file and modify the second line in the plugins like this: id "com.android.application" version "7.3.0" apply false. well before doing all these steps you must delete the .gradle folder located in the android folder

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

79104058

Date: 2024-10-19 01:41:29
Score: 0.5
Natty:
Report link

Instead of using 100% for both width and height of the pattern, set the dimensions to match the viewBox or path size that you're working with.

Use preserveAspectRatio="none": This will ensure that the image scales to fit the entire pattern area without maintaining its aspect ratio, preventing overflow.

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

79104034

Date: 2024-10-19 01:19:24
Score: 1
Natty:
Report link

Your compiler are using the following formula:

m = -4 - (Trunc(-4 / 5) * 5)
m = -4 - (Trunc(-0.8) * 5)
m = -4 - (0 * 5)
m = -4 - 0
m = -4

Instead of:

m = -4 - (Floor(-4 / 5) * 5)
m = -4 - (Floor(-0.8) * 5)
m = -4 - (-1 * 5)
m = -4 - (-5)
m = 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Caio Monteiro

79104028

Date: 2024-10-19 01:14:23
Score: 1
Natty:
Report link

@MichaelPetch provided this comment (Huge Appreciation)

Upon further inspection there is a similar casting issue (refering to previous comment) here as well: tag += tag->size; You could do something like tag = (mb2_tag *) ((uint8_t *) tag + ((tag->size + 7) & ~7)))

After adjusting the code to this new traversal in multiboot2.c

// multiboot2.c

void mb2_traverse(mb2_info_header *mbd, uint32_t magic)
{
    if (magic != 0x36D76289)
    {
        tty_printf("Multiboot2 Magic Number is invalid");
        asm volatile ("hlt");
    }
    tty_printf("MB2 [%d]\n", mbd->total_size);
    uint64_t mb2_end = mbd->total_size + (uint64_t)mbd;

    mb2_tag *tag = (mb2_tag*)(mbd + sizeof(mb2_info_header));
    while ((uint64_t)tag < mb2_end)
    {
        tty_printf("TAG %d\t[%d] @\t%x\n", tag->type, tag->size, tag);
        if (tag->type == 0)
            break;
        switch (tag->type) {
            // ...
            default: break;
        }
        tag = (mb2_tag *) ((uint8_t *) tag + ((tag->size + 7) & ~7));
    }
}

Yeilds the results:
Result Screenshot

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

79104022

Date: 2024-10-19 01:10:23
Score: 3.5
Natty:
Report link

Can we make a app or site whose control all social media aap which do not distract or attract student any social media aap when he/she studied in your mobile/tab .... https//. Control social media aap

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can we
  • Low reputation (1):
Posted by: Jatin Gangwar

79104013

Date: 2024-10-19 01:01:21
Score: 2.5
Natty:
Report link

If you have been scammed by fake crypto investors or lost your crypto coin, reach out to cryptospamhacker@gmail. com for your coin recovery solution. They just helped me to reverse my stolen coins.

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

79104010

Date: 2024-10-19 01:00:21
Score: 3
Natty:
Report link

In my case, just restarting wsl2 and docker desktop solved the problem.

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

79104003

Date: 2024-10-19 00:51:20
Score: 2.5
Natty:
Report link

When you push the url http://localhost:54977/student/Edit/1 you expect your first action which is GET to be executed, but your second action which has the [HttpPost] tag is called, to solve this problem just Change your request type from POST to GET.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: SHamedSS

79103994

Date: 2024-10-19 00:42:18
Score: 1
Natty:
Report link

I fixed my issue by opening my VsCode terminal -> ports and clicking "Forward a Port", then simply typing 5500 (default LiveServer port).

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Laizra

79103993

Date: 2024-10-19 00:41:17
Score: 7.5 🚩
Natty: 4.5
Report link

I am having this exact same issue but with VS2022 Version 17.11.5. Does anyone have a solution for this?

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have a solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nabil Akhlaque

79103992

Date: 2024-10-19 00:41:17
Score: 0.5
Natty:
Report link

I view this more of a math problem than a coding problem.

I will just illustrate how I am thinking about the problem with a couple examples and then generalize.

Consider the number 438:

In order to compute the number, the formula is:

410^2 + 310^1 + 8*10^0, or
400 + 30 + 8 = 438.

(Remember that any number to the zeroth power is 1, and that the numbers cycle in powers of 10.)


Similarly, how do you compute BFX for example?

Note that there are 26 letters in the alphabet.

The formula is similar:

B26^2 + F26^1 + X*26^0

Now replace B with 2, F with 6, and X with 24:

You get:

226^2 + 626^1 + 24*26^0

1352 + 156 + 24 = 1532


With those 2 examples in mind, here is a function (columnNumber) that will convert 3 letters to a number in the convention of excel columns. It takes up to a 3 letter string and converts the value to a number.

Note, per makers of excel, the last column is 'XFD' as there are a maximum number of columns of 16,384. Other than making the input upper case and ensuring 3 characters, I have not done any type of validation of the input as to not distract from the essence of the function.

function columnNumber(str) {
  //note that strings are zero based so the 
  //indexed position of the letter in the string
  //will tell you the letters numerical value
  //So A's index is 1, Z's index is 26
  let alphabet = "_ABCDEFGHIJKLMNOPQRSTUVWXYZ";

  //first ensure the string is 3 characters long
  //I do this by adding to the beginning of the 
  //string then slicing off the last 3 characters.

  str = "___" + str;
  str = str.slice(-3);
  str = str.toUpperCase(); //just in case

  //get the left middle and right letter/character
  let leftChar = str.substring(0, 1);
  let middleChar = str.substring(1, 2);
  let rightChar = str.substring(2);

  //convert the 3 letters to corrresponding numbers
  let leftCharValue = alphabet.indexOf(leftChar);
  let middleCharValue = alphabet.indexOf(middleChar);
  let rightCharValue = alphabet.indexOf(rightChar);

  //compute the numericalValue
  let numericalValue = leftCharValue * 26 * 26 + middleCharValue * 26 + rightCharValue;
  return (numericalValue);
}

function calculate() {
  let str = document.getElementById("char-input").value;
  document.getElementById("result").innerHTML = columnNumber(str);
}

document.getElementById("calc-button").addEventListener("click", calculate);
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Column String Heading Calculator</title>
  <style>
    input,
    button {
      display: block;
    }
  </style>
</head>

<body>
  <input id="char-input" type="text" value="XFD">
  <button id="calc-button">Calculate</button>
  <div id="result"></div>
  <script src="columnCalculator.js"></script>
</body>

</html>

Reasons:
  • Blacklisted phrase (1): how do you
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: garydavenport73

79103988

Date: 2024-10-19 00:34:15
Score: 5
Natty: 4
Report link

Echo "string">>filename .txt

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

79103978

Date: 2024-10-19 00:18:11
Score: 2.5
Natty:
Report link

SAP Runtime works with .NET Framework. You cannot use it with .NET Core or .NET

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

79103972

Date: 2024-10-19 00:11:09
Score: 9.5 🚩
Natty: 4.5
Report link

Were you able to solve it? I am interested in

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: juliandurand

79103962

Date: 2024-10-19 00:00:07
Score: 3
Natty:
Report link

So I realized that the reason why my #include didn't work was because I didn't add a slash after "C:"

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

79103961

Date: 2024-10-19 00:00:07
Score: 1.5
Natty:
Report link

You only need to specify a relative path to the include file. If the incldude file is in the same directory you just need to say:

#include "LinkedListCode.h"

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

79103948

Date: 2024-10-18 23:52:05
Score: 1.5
Natty:
Report link

I had the same issue, Upgrading to the latest version of Apex Charts (currently 3.54.1) solved the issue for me.

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

79103935

Date: 2024-10-18 23:36:01
Score: 1.5
Natty:
Report link

I can only speak for FMOD, but the only HRTF processing we do is via the Resonance Audio spatializer plugin. Resonance uses the SADIE database referenced here. All other spatialization is performed using VBAP (vector based amplitude panning).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Mathew Block

79103921

Date: 2024-10-18 23:26:00
Score: 0.5
Natty:
Report link

I finally got to connect to sonar from .net using the following code "sonar use Bearer token Authentication":

string responseBody = string.Empty;
var APIUri = "https://sonarcloud.io/";
var VSTSToken = "SonarToken";

// Obtener Listado de proyectos en Azure
uri = "api/issues/search?componentKeys=myproject&impactSeverities=HIGH";
try
{
    using (HttpClient client = new HttpClient())
    {
        client.DefaultRequestHeaders.Accept.Add(
            new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));

        client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", VSTSToken);
        using (HttpResponseMessage response = await client.GetAsync(APIUri + uri))
        {
            response.EnsureSuccessStatusCode();
            responseBody = await response.Content.ReadAsStringAsync();

        }
    }
}
catch (Exception ex)
{
    //_Logger.LogError(ex.Message);
    //Console.WriteLine(ex.ToString());
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Diego Ahumada Delvillar

79103912

Date: 2024-10-18 23:17:58
Score: 3.5
Natty:
Report link

I got the same issue but my error code is 403.

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

79103911

Date: 2024-10-18 23:16:58
Score: 0.5
Natty:
Report link

Just discovered the @overload tag, which seems to do what I need:

/**
 * Handles the value of "val" based on the "type" parameter.
 * @function example
 * @overload
 * @param {"number"} type - The type of the "val" parameter.
 * @param {number} val - The value to handle.
 * @returns {void}
 */
/**
 * Handles the value of "val" based on the "type" parameter.
 * @function example
 * @overload
 * @param {"string"} type - The type of the "val" parameter.
 * @param {string} val - The value to handle.
 * @returns {void}
 */
/**
 * Handles the value of "val" based on the "type" parameter.
 * @function example
 * @overload
 * @param {"boolean"} type - The type of the "val" parameter.
 * @param {boolean} val - The value to handle.
 * @returns {void}
 */
function example(type, val) {
  // handle "val" based on "type"
}

Not entirely sure why this isn't documented on the JSDoc website, but it seems to work with IntelliSense on VS Code.

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

79103907

Date: 2024-10-18 23:13:57
Score: 0.5
Natty:
Report link

Responding to this really late, but I had this issue and it ended up being a makefile error.

I had forgotten to include all: $(MODULE_NAME).o in my makefile.

Make sure to check your make file if you're someone stumbling across this same issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: My Code Made Me Suicidal

79103906

Date: 2024-10-18 23:12:57
Score: 1
Natty:
Report link

Besides doing,

const keyCode = event.code.replace('Key', '').replace('Digit', '');

I wasn't able to figure out a better solution but it's been working for now

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

79103905

Date: 2024-10-18 23:11:57
Score: 1
Natty:
Report link

I solved this with adding to .env AUTH0_BASE_URL=http://localhost:3000

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vlad Bogomolov

79103901

Date: 2024-10-18 23:09:56
Score: 2.5
Natty:
Report link
  1. How do I determine whether my program would benefit from setting a lower precision? Is this purely empirical?

By setting torch.set_float32_matmul_precision() you change the behavior (which includes performance and accuracy) of your matrix multiplications in FP32. If you know (via, e.g., profiling) your code is spending a reasonable amount of time multiplying matrices in FP32 and you have hardware that is able to perform mixed-precision matrix multiplications, you will probably see performance benefits in using the high or medium options. So, not purely empirical. In terms of accuracy, medium is the less accurate option. If you care about accuracy, you should have a way to measure it in your application even if you opt for using the higher option. It may be the case that FP32 (i.e., higher) is not accurate enough for your application.

  1. How do you determine which of the lower precisions ("high" or "medium") to use? Is this purely empirical? What's the suggested approach?

The option high, as the documentation says, enables the use of the type TF32 internally. As far as I know, this type is only supported by Nvidia GPUs, so the first limitation for you may be related to hardware. Although it seems the GPU you mentioned has it available. Option medium uses BF16. See https://blogs.nvidia.com/blog/tensorfloat-32-precision-format/ for a comparison between BF16 and TF32.

I suggest you measure the accuracy of your application regardless of the option you choose for torch.set_float32_matmul_precision(). If accuracy is under control, go with the fastest option, which I believe will be medium.

Reasons:
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (1): How do you
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (1):
Posted by: Weslley S. Pereira

79103897

Date: 2024-10-18 23:07:55
Score: 2.5
Natty:
Report link

I finally found how to do that: I must share the directory that have my files to the email of the service account!

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Stefano G.

79103886

Date: 2024-10-18 23:01:54
Score: 1
Natty:
Report link

so to provide a current data snapshot Hudi has to lookup all commits to obtain locations for all data files, is it right?

not really. the file location are present in the metatata table. the snapshot queries will use the timeline in order to identify valid commits (also exclude invalidated). hudi does not need to store all files in a given snapshot thanks to the ordered timeline design.

note that timeline is archived (keep say 200 commits max), then snapshot queries are not possible before the last non archived commit. btw all files written before are then considered to be read in the sbapshot queries.

last concept: data is stored in file groups. only one commited parquet file of each file group is considered during queries.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
Posted by: parisni

79103881

Date: 2024-10-18 22:56:52
Score: 4.5
Natty: 5
Report link

brew install --cask --no-quarantine (selected wine package) trying to install this command. i type it in as this. brew install --cask --no-quarantine (wine-stable) because these are the instuctions. To install wine the following command can be used; brew install --cask --no-quarantine (selected wine package) wine-stable, wine@devel or wine@staging packages can be installed using the above example. The advantage of installing via homebrew means wine is available from a standard terminal session The --no-quarantine line is to avoid brew adding the quarantine flag. but then get hit with this, zsh: unknown file attribute: i somebody please help. thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (3): please help
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pagonne

79103875

Date: 2024-10-18 22:52:51
Score: 3
Natty:
Report link

It was my IP which got changed and not getting allow listed but the error kept on saying invalid signature.

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

79103869

Date: 2024-10-18 22:46:50
Score: 4
Natty: 6.5
Report link

Goo Afternoon, I need to undo dynamic control added with ListView.ListItems.ListsubIten.FormsControl.Add("Frame.1".....) Method,I'm like to know the Code, Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Uriel Fajardo

79103863

Date: 2024-10-18 22:43:49
Score: 1.5
Natty:
Report link

It looks like the request you're sending through Postman is a GraphQL request. Are you certain that the API to which you're sending data is expecting it in JSON? There is a GraphQL package for .NET can add with:

dotnet add package GraphQL

here is the documentation for their tool: https://graphql-dotnet.github.io

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

79103861

Date: 2024-10-18 22:43:49
Score: 1.5
Natty:
Report link

Our problem here is, that the docker image that cross uses for our "aarch64-unknown-linux-gnu"-target is out of date - the maintainers said they'll update it soon - see https://github.com/cross-rs/cross/issues/1567

In the mean time we could try to use a custom image, but sadly my attempts to do so failed so far..

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

79103846

Date: 2024-10-18 22:37:46
Score: 4.5
Natty:
Report link

try deps = [":example.so"]

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

79103837

Date: 2024-10-18 22:30:45
Score: 3
Natty:
Report link

I've been having this issue with Visual Studio 2022 17.12.0 Preview 3.0, out of the blue, it started happening, and now it also happens on older versions of VS... The solution above (manually adding the includes and libraries to the project worked): https://stackoverflow.com/a/51555483/15250920

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Filippo Tarpini

79103831

Date: 2024-10-18 22:24:44
Score: 0.5
Natty:
Report link
$chunk_size = 10
@(1..100) | % { $c = @(); $i = 0 } { if ($i % $chunk_size -eq 0) { $c += ,@() }; $c[-1] += $_; $i++ } 
$c
$chunk_size = 10 # Set desired chunk size
@(1..100) | % `
    { # Initialize loop variables
        $c = @(); # Cumulating array of chunks
        $i = 0;   # Incrementing index
    } {
        if ($i % $chunk_size -eq 0) { # If the index is divisible by chunk size
            $c += ,@() # Add another chunk to the accumulator
        }
        $c[-1] += $_; # Add current element to the last chunk
        $i++          # Increment
    }
$c
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: posh

79103815

Date: 2024-10-18 22:18:42
Score: 3.5
Natty:
Report link

I am trying to create a Windows application, and I'm using React Native Windows as well. I have attached the website where I saw that react-native-sqlite-storage is not actively maintained for Windows, only for Android and iOS. The database I am testing is AsyncStorage.

Check it out: https://reactnative.directory/?windows=true&offset=30

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (0.5): Check it out
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Paul Reyes

79103808

Date: 2024-10-18 22:16:42
Score: 2.5
Natty:
Report link

ALTER TABLE <table_name> ADD PRIMARY KEY (column_name);

Replace the placeholders <table_name> with your table name and column_name with your column name

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: HaÙ…ad

79103807

Date: 2024-10-18 22:15:42
Score: 1
Natty:
Report link

To simple, GPU has multiple level of computation resources (workitem, subgroup, workgroup) so the more complicated representation is needed, like NDRange.

I talked some concepts in below video, https://www.youtube.com/watch?v=7HqbuMBUV7A&list=LL

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Patric

79103792

Date: 2024-10-18 22:06:39
Score: 3.5
Natty:
Report link

Thanks for the input, will update my posting. However, it’s a custom dataset, not COCO. The images are annotated using CVAT . 2 Objects per view. Each object annotated with 4 keypoints., hence: kpt_shape: [4,3] . Yolo replaces the [17,3] with [4,3] and nc=2 when it initializes, see below.

The labels have 12 columns but Yolo expects 14, so it must be looking for an additional 2 columns. Any suggestions??

Here is one sample label txt file: 0 0.671668 0.586995 0.126533 0.0187935 0.608402 0.577598 2 0.694217 0.584489 2 0.734935 0.596391 2 0.711239 0.593663 2 5 0.535234 0.610418 0.0907717 0.0387717 0.489848 0.629804 2 0.523033 0.622391 2 0.554239 0.606946 2 0.58062 0.591033 2

This looks ok to me, but adds up to 12, not 14: see below: Class: 5 Bbox: 0.535234 0.610418 0. 0907717 0.0387717 4 Keypoints: 0.489848 0.629804 2 0.523033 0.622391 2 0.554239 0.606946 2 0.58062 0.591033 2

Here is the initialization report: using YAML: /content/yaml_files/modelR.yaml Ultralytics 8.3.15 🚀 Python-3.10.12 torch-2.4.1+cu121 CPU (Intel Xeon 2.20GHz) engine/trainer: task=pose, mode=train, model=yolov8n-pose.yaml, data=/content/yaml_files/modelR.yaml, epochs=2, time=None, patience=100, batch=16, imgsz=640, save=True, save_period=-1, cache=False, device=None, workers=8, project=None, name=train4, exist_ok=False, pretrained=yolov8n-pose.pt, optimizer=auto, verbose=True, seed=0, deterministic=True, single_cls=False, rect=False, cos_lr=False, close_mosaic=10, resume=False, amp=True, fraction=1.0, profile=False, freeze=None, multi_scale=False, overlap_mask=True, mask_ratio=4, dropout=0.0, val=True, split=val, save_json=False, save_hybrid=False, conf=None, iou=0.7, max_det=300, half=False, dnn=False, plots=True, source=None, vid_stride=1, stream_buffer=False, visualize=False, augment=False, agnostic_nms=False, classes=None, retina_masks=False, embed=None, show=False, save_frames=False, save_txt=False, save_conf=False, save_crop=False, show_labels=True, show_conf=True, show_boxes=True, line_width=None, format=torchscript, keras=False, optimize=False, int8=False, dynamic=False, simplify=True, opset=None, workspace=4, nms=False, lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=7.5, cls=0.5, dfl=1.5, pose=12.0, kobj=1.0, label_smoothing=0.0, nbs=64, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, bgr=0.0, mosaic=1.0, mixup=0.0, copy_paste=0.0, copy_paste_mode=flip, auto_augment=randaugment, erasing=0.4, crop_fraction=1.0, cfg=None, tracker=botsort.yaml, save_dir=runs/pose/train4 Overriding model.yaml kpt_shape=[17, 3] with kpt_shape=[4, 3] Overriding model.yaml nc=1 with nc=2

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): Any suggestions?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Paul Petronelli

79103783

Date: 2024-10-18 22:02:38
Score: 4.5
Natty:
Report link

This github page releases LGPL builds with source codes: https://github.com/BtbN/FFmpeg-Builds/releases

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

79103768

Date: 2024-10-18 21:56:37
Score: 0.5
Natty:
Report link

The fix for me was to give Full Control permission on the wwwroot folder for the local user, per this link ("give the local user account (someuser) Full Control over the wwwroot directory").

Yes even though the user was an Administrator, and Admisitrators already had Full Control, still had to add the individual (admin) user/s...

NOTE this was after doing the fix outlined here by "Know Vision Studios", which for me only changed the error msg but then led me to this fix).

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • High reputation (-1):
Posted by: Seba Illingworth

79103756

Date: 2024-10-18 21:44:34
Score: 3
Natty:
Report link

ALTER TABLE your_table MODIFY created_date DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gustavo Adolfo Chavarro Ortiz

79103748

Date: 2024-10-18 21:38:33
Score: 2.5
Natty:
Report link

In React, the program is run via index.html and is located in src public, so camera.jpg is moved to public. Then call './camera.jpg'. It works.

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

79103730

Date: 2024-10-18 21:31:31
Score: 1
Natty:
Report link

From https://github.com/DioxusLabs/dioxus/blob/main/examples/read_size.rs:

use std::rc::Rc;

use dioxus::{html::geometry::euclid::Rect, prelude::*};

fn main() {
    dioxus::launch(app);
}

fn app() -> Element {
    let mut div_element = use_signal(|| None as Option<Rc<MountedData>>);
    let mut dimensions = use_signal(Rect::zero);

    let read_dims = move |_| async move {
        let read = div_element.read();
        let client_rect = read.as_ref().map(|el| el.get_client_rect());

        if let Some(client_rect) = client_rect {
            if let Ok(rect) = client_rect.await {
                dimensions.set(rect);
            }
        }
    };

    rsx!(
        document::Link { rel: "stylesheet", href: asset!("./examples/assets/read_size.css") }
        div {
            width: "50%",
            height: "50%",
            background_color: "red",
            onmounted: move |cx| div_element.set(Some(cx.data())),
            "This element is {dimensions():?}"
        }

        button { onclick: read_dims, "Read dimensions" }
    )
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: EByte

79103728

Date: 2024-10-18 21:30:31
Score: 8.5 🚩
Natty: 5
Report link

did you ever figure out a clean solution?

Reasons:
  • RegEx Blacklisted phrase (3): did you ever figure out a
  • 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 (0.5):
Posted by: uxxi

79103727

Date: 2024-10-18 21:30:30
Score: 2
Natty:
Report link

Check this: https://github.com/yzITI/srpc! I specifically designed a light-weight script to make this communication as easy as possible.

It's based on HTTP, and the design goal is to make this communication seamless.

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

79103724

Date: 2024-10-18 21:29:30
Score: 2.5
Natty:
Report link

if you go to the implementation you will see that, it needs the globalfeature enabled in order for it to execute the update operation.

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

79103720

Date: 2024-10-18 21:27:30
Score: 2
Natty:
Report link
s = "hello world"
sum([s.count(x) for x in ['l','o']])

Output: 5

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

79103713

Date: 2024-10-18 21:24:29
Score: 0.5
Natty:
Report link

For database administrators and developers focused on optimizing performance, understanding the nuances of data management commands is crucial. Both DELETE and TRUNCATE commands are used to remove data from tables, but their underlying mechanics and performance implications differ significantly. General Overview TRUNCATE: Generally faster than DELETE for removing all rows from a table. It deallocates entire data pages or tablespaces, making it a highly efficient operation when dealing with large datasets. DELETE: While slower than TRUNCATE for bulk row removal, it offers more control by allowing row-level deletion and is a logged operation, which means it can be rolled back if necessary.

When DELETE Outperforms TRUNCATE Surprisingly, there are scenarios where DELETE can outperform TRUNCATE:

Transactional Nature:

DELETE: As a logged operation, it allows for selective record deletion, especially effective when used with indexed columns. This can make DELETE more efficient in cases where only a small number of rows are affected, minimizing overhead compared to TRUNCATE. TRUNCATE: As a DDL operation, it involves deallocating data pages or tablespaces. In complex or heavily indexed tables, this can slow down the operation due to the need to reinitialize certain metadata.

Row-Level Deletion:

DELETE: With a WHERE clause, it allows for efficient row-level deletion, ideal for situations where only a subset of rows needs to be removed. TRUNCATE: Removes all rows in the table, making it less efficient for large tables when only partial data removal is needed.

Index and Constraint Rebuilding:

TRUNCATE: Often requires dropping and rebuilding indexes, resetting auto-increment (Like MSSQL or MYSQL) or recalculating index segments (in databases like Oracle ), which can add to execution time, especially . DELETE: Does not require index or constraint rebuilding, potentially making it quicker in certain scenarios.

Locks and Overheads:

DELETE: Acquires row-level locks, which can be less extensive than the table-level locks required by TRUNCATE. In systems with high concurrent access, this can lead to better performance.

Specific Scenarios in MPP Databases

In Massively Parallel Processing (MPP) databases, where data is distributed across multiple nodes, the following scenarios make DELETE faster than TRUNCATE:

Parallel Execution:

TRUNCATE: While typically faster, it may involve coordination across multiple nodes to reset metadata, introducing latency. DELETE: Can be parallelized across nodes, making it faster when dealing with small subsets of rows in large tables.

Data Skew:

TRUNCATE: Can be slower in cases of data skew, where some nodes hold significantly more data than others. DELETE: When targeting specific rows or conditions, can be faster, especially if it affects nodes with less data.

Conclusion In summary, the choice between DELETE and TRUNCATE depends on the specific use case:

Choose TRUNCATE:

When you need to quickly remove all rows from a table, especially in cases where the table structure is simple, and there are minimal concerns about index rebuilding or data skew.

Choose DELETE:

When you need to remove specific rows, particularly in environments with high concurrent access, or when operating within MPP databases with complex structures or data distribution challenges.

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

79103701

Date: 2024-10-18 21:21:29
Score: 1.5
Natty:
Report link

Today I have a issue similar at this post.

My scenario was

A parent entity class with @Inheritance strategy Joined. This parent class have got a OneToMany Set children with cascade All and orphanremoval at true.

The child class extends parent class with a common id to discrimination join

The objective is to save a child class entity cleanly without problem.

Well, the assert is a fail, the error was an hibernate orphanremoval null etc etc.

After various tests on junit I realize that the save work it only if the list of children on parent class must been initialized with an empty list.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Inheritance
  • Low reputation (0.5):
Posted by: Alessandro Modica

79103698

Date: 2024-10-18 21:20:28
Score: 4
Natty:
Report link

You can rename the attributes following this example extracted from otel documentation:

https://aws-otel.github.io/docs/components/ecs-metrics-receiver

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Claudiney Calixto da Silva

79103697

Date: 2024-10-18 21:20:28
Score: 3
Natty:
Report link

Be careful while using "cudaMemcpyToSymbol" it can introduce bugs if you are trying to copy a struct from CPU to GPU.

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

79103692

Date: 2024-10-18 21:18:27
Score: 0.5
Natty:
Report link

Checking on the support page for the GoDaddy payments plugin (https://wordpress.org/support/topic/gdp-overrides-customized-place-order-button-text/), they recommend doing the strategy you are using but they noted that it only works when you also are using the "Say What" plugin (https://wordpress.org/plugins/say-what/) with certain settings that are no longer apparent.

You will very likely need to install the "Say What" plugin, find the text domain that GoDaddy is using, then replace the GoDaddy wording with your wording through the Say What plugin interface.

Potentially you could also hack up the GoDaddy plugin but I wouldn't recommend that at all as then you wouldn't be able to easily update it when security issues inevitably get patched.

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

79103691

Date: 2024-10-18 21:17:27
Score: 1
Natty:
Report link

It could be due to SSL certificate issues, so you can try bypassing the checks as a workaround:

export NODE_TLS_REJECT_UNAUTHORIZED=0

After that I was finally able to deploy.

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

79103688

Date: 2024-10-18 21:16:26
Score: 7.5 🚩
Natty: 4.5
Report link

Did you find a solution to this? I'm running up against the same problem.

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution to this
  • 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 a solution to this
  • Low reputation (1):
Posted by: Mark Fackrell

79103677

Date: 2024-10-18 21:11:25
Score: 0.5
Natty:
Report link

If you are using a cloud solution provider and you don't have superuser rights, you can't drop postgres database. You can, however, try to drop public schema instead like:

DROP SCHEMA public CASCADE;
CREATE SCHEMA public;

I found this answer here.

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

79103676

Date: 2024-10-18 21:10:24
Score: 4
Natty:
Report link

I agree with the top answer, but equalsIgnoreCase also has a null-check to make sure your code doesn't throw an exception if the comparing string is null. Also - the tools are out there, why not use them instead of making your own?

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

79103670

Date: 2024-10-18 21:08:23
Score: 1
Natty:
Report link

15 years after

let form = document.querySelector('form');

// Listen for input events on the form
form.addEventListener('input', function (event) {
    // form change
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yoandre Saavedra

79103664

Date: 2024-10-18 21:06:23
Score: 0.5
Natty:
Report link

You have missed out the code for MainPage, but I'm going to assume the open() method performs a cy.visit() which changes the win returned from cy.window(), so you are stubbing too early.

See Window Before Load shows how to stub correctly using the window:before:load event.

You also do not need the noisy assignment to win, at least for static methods.

MainPage

import MyCustomClass from './my-class'

class MainPage {
  public open(): void {
    cy.visit('https://example.com')
      .then(() => {
        // make sure you console.log after the window:before:load event
        // i.e after the stub is set up
        console.log('From MainPage (myMethod): ', MyCustomClass.myMethod())
      })
  }
}
export default MainPage;

Test

let mainPage: MainPage;
describe('stubs the static method', () => {

  beforeEach(() => {

    Cypress.on('window:before:load', () => {
      console.log('From "window:before:load" event')
      cy.stub(MyCustomClass, 'myMethod').returns('stubbed static value')
    })

    mainPage = new MainPage()
    mainPage.open() 
  })

  it('Test something', () => {
    console.log('From the test: ', MyCustomClass.myMethod()) 
    expect(MyCustomClass.myMethod()).to.eq('stubbed static value')
  })
})

Cypress runner

enter image description here

Console

enter image description here

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

79103659

Date: 2024-10-18 21:04:23
Score: 0.5
Natty:
Report link
$ch = curl_init();

$data = array(
    "cc" => "COUNTRY_CODE",
    "phone_number" => "PHONE_NUMBER_WITHOUT_COUNTRY_CODE",
    "method" => "sms", // or "voice"
    "cert" => "VERIFIED_NAME_CERT_IN_BASE64",
    "pin" => "EXISTING_6_DIGIT_PIN" // required if two-step verification is enabled
);

curl_setopt($ch, CURLOPT_URL, "https://graph.facebook.com/v1/account");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json'
));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
} else {
    echo $response;
}

curl_close($ch);

Exact same thing. Code above results in:

{"error":{"message":"Unknown path components: \/account","type":"OAuthException","code":2500,"fbtrace_id":"APrxxxxxxxxxxxxxlxux"}}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Alex

79103658

Date: 2024-10-18 21:04:23
Score: 3
Natty:
Report link

This can be configured via the property:

mp: openapi: extensions: smallrye: maximumStaticFileSize:

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

79103641

Date: 2024-10-18 20:57:21
Score: 0.5
Natty:
Report link

In my case i was using Vite to build my Vue project and I added a new component. After adding the component i received the build error error during build: RollupError: Expression expected

The solution for me was removing lang="" from my component

<style lang="">
.badge-body {
}
.badge-text {
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stanley Backlund

79103627

Date: 2024-10-18 20:52:20
Score: 4
Natty:
Report link

simple

use className="stripe-button-el"

class name is present in https://checkout.stripe.com/checkout.js

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

79103610

Date: 2024-10-18 20:45:18
Score: 1
Natty:
Report link

With most iOS devices, iCloud Private Relay is now enabled by default. This blocks Metro on some public networks.

You can disable this on your iPhone by navigating to Settings > (Apple Account) > iCloud > iCloud+ Features - Private Relay > "Turn Off Until Tomorrow".

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

79103587

Date: 2024-10-18 20:36:15
Score: 1
Natty:
Report link

It's way more complicated than folks might think.

  1. Buffer should be page boundary aligned.
  2. Offset for the access must be sector size aligned.
  3. Transfer size must be a multiple of sector size.
  4. There is NO API for asking from POSIX system calls, what is the sector size of a file system. Further more, the filesystem may have an array of disks, where each may have a different sector size. 512, or 4096 ...
  5. If one tries a read() for 512 bytes it could fail, if the drive is a 4k sector drive, or it could succeed if the drive supports 512e (emulated 512 byte sectors) However, the emulation may have an impact on the performance, and produce significantly lower performance when using 512e.
  6. There is again no standard POSIX system call for asking if the drive, or drives are using 512e.

Yes, it's very complicated indeed, and without asking the owner of the hardware what is the optimal sector size to use, across all of the drives that are involved in the filesystem, there is no way to predict the behavior, in both success or failure, or the performance aspects.

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

79103579

Date: 2024-10-18 20:33:14
Score: 3
Natty:
Report link

Hey This is the Page Where Captch is generating Get Captcha Page integrate that to ur web or mobile app and enter the captch on ur project input field and post to this Post Page Page. I hope it will work

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

79103578

Date: 2024-10-18 20:31:14
Score: 4.5
Natty: 5.5
Report link

Imvu one two weeksKkkkkkkkkkkkkkkjgfcvbjudsxcvnkutss

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): Kkkkkkkkkkkkkkk
  • Low reputation (1):
Posted by: Treasure walston

79103573

Date: 2024-10-18 20:30:13
Score: 2
Natty:
Report link

I had the same issue and fixed it by downgrading the Java extension from v23.0.0 to v22.1.2 (although, I have java 22, not 23)

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