79231261

Date: 2024-11-27 17:18:14
Score: 1
Natty:
Report link

Previous response (@Isaac and @Slaweek) have some case of failure:

  1. If tag/column value is null (in json) return a string value "null" (and not the SQL NULL value) it's not an error, but we are working in sql...
  2. If json is an element of an array and is betwwen {...} last tag/column return value + "...}"
  3. Same of previous point if json is in "[...]"
  4. Tag with "partial name" corresponding are misunderstanding (for example if in your json have "fiscal_address": ... and below "address": ... and you are searching for "address" return the value of "fiscal_address" because contain "address")
  5. Commas in value are interpreted as a separated tag (example "price": "1,456.00")

Point nr 5 is not easy to solve: if the tag value is a text where comma/quote are important part of it ? (off course we can count quotes "... but we need to look at escape chars too)

For fix other points i modify in this way:

create or alter FUNCTION [dbo].[JSON_VALUE]
(
    @JSON NVARCHAR(3000),           -- contain json data
    @tag NVARCHAR(3000)             -- contain tag/column that you want the value
)
RETURNS NVARCHAR(3000)

AS
BEGIN

DECLARE @value NVARCHAR(3000);
DECLARE @trimmedJSON NVARCHAR(3000);

DECLARE @start INT
        , @end INT
        , @endQuoted int;

set @start = PATINDEX('%"' + @tag + '":%',@JSON) + LEN(@tag) + 3;
SET @trimmedJSON = SUBSTRING(@JSON, @start, LEN(@JSON));
Set @end = CHARINDEX(',',@trimmedJSON);
if (@end = 0)
    set @end = LEN(@trimmedJSON);
set @value = SUBSTRING(@trimmedJSON, 0, @end);

-- if is present a double-quote then the comma is not the tag-separator
if (len(@value) - len(replace(@value,'"','')) = 1)
begin
    set @endQuoted = CHARINDEX(',',  substring(@trimmedJSON, @end +1, LEN(@trimmedJSON) - @end +1))
    set @value = SUBSTRING(@trimmedJSON, 0, @endQuoted+@end);
end

SET @value = replace(@value,'"','');
-- remove last char if is a ]
IF (RIGHT(RTRIM(@VALUE), 1) = ']')
    SET @value = LEFT(RTRIM(@VALUE), LEN(RTRIM(@VALUE)) -1);
-- remove last char if is a }
IF (RIGHT(RTRIM(@VALUE), 1) = '}')
    SET @value = LEFT(RTRIM(@VALUE), LEN(RTRIM(@VALUE)) -1);

-- if tag value = "null" then return sql NULL value
IF UPPER(TRIM(@value)) = 'NULL'
    SET @value = NULL;

RETURN @value
END
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Slaweek
  • Low reputation (1):
Posted by: Superpepo

79231258

Date: 2024-11-27 17:17:14
Score: 1.5
Natty:
Report link

In Kotlin you can cast activity to AppCompatActivity using as

For example:

`activity as AppCompatActivity`
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Waqar

79231256

Date: 2024-11-27 17:17:14
Score: 3.5
Natty:
Report link

Do you have IdeaVim installed? Most likely yo just need to disable it.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Luis Talavera

79231254

Date: 2024-11-27 17:16:13
Score: 7.5 🚩
Natty: 4.5
Report link

Sorry to hijack here, but I have a very similar problem, in that I had a bunch of installations in my Mamp 5.2 and upgraded to Mamp 7.1. I didn't know that I had to export dbases like you describe and thought by just copying my htdocs file to the new Mamp App folder, it would be ok, (call me ignorant). So now, I have the new phpmyAdmin, sitting there empty, and I can't access my old installations.
Is there a 'safe' way of doing this? I'm a bit clueless when it comes to db handling, other than just creating a db and a new user.
Thanks in advance!!!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a very similar problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tony

79231238

Date: 2024-11-27 17:09:11
Score: 0.5
Natty:
Report link

What you are explaining is the actual Screen Reader behavior. When an image has an alt value, the screen reader will read it. If you want the image to not be accesible by the screen reader here are your options:

  1. Remove the value in the alt text.

<img src="..." alt="">

  1. Add the property role with the value presentation.

<img src="..." role="presentation">

Notes to consider:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you are
  • Low reputation (1):
Posted by: Osler Villegas

79231236

Date: 2024-11-27 17:08:10
Score: 0.5
Natty:
Report link

As I wrote on https://github.com/pdfminer/pdfminer.six/issues/1056#issuecomment-2504352023

The handling of unmapped glyphs is a method on PDFLayoutAnalyzer which can be overriden in a subclass or patched at runtime. So you can do this in your code for instance:

from pdfminer.converter import PDFLayoutAnalyzer
PDFLayoutAnalyzer.handle_undefined_char = lambda *args: ""
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dhdaines

79231234

Date: 2024-11-27 17:08:10
Score: 3
Natty:
Report link

How are we supposed to override the classes with custom styles if random numbers keep being added to every class? Am I missing something?

I'm working on a project running MUI 4 and I'm struggling to override the styles of some of the components.

Attached here is one component that I wish to override. In error state, the outline/border of the text field and the legend (the label that shrinks to the top left of the notched outline) is in default red color and I wish to override and change them to a different color.

https://i.sstatic.net/jyMcAIBF.png

Some guidance would be very much appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How are we
  • Low reputation (1):
Posted by: Lyo

79231221

Date: 2024-11-27 17:04:09
Score: 7 🚩
Natty: 6
Report link

Did you figure out a solution at the end? I really need this.

Reasons:
  • RegEx Blacklisted phrase (3): Did you figure out a solution
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Diar

79231219

Date: 2024-11-27 17:04:08
Score: 1
Natty:
Report link
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dieter Uthmann

79231211

Date: 2024-11-27 17:02:08
Score: 3
Natty:
Report link

So, I found a workaround for this.

Please see: GitHub issue #26114 for the solution.

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

79231209

Date: 2024-11-27 17:02:08
Score: 1.5
Natty:
Report link

Found it and sharing for future like-minded:

label_replace(aws_certificatemanager_days_to_expiry_average, "name", "$1", "dimension_CertificateArn", "(.*)") + on(name) group_left(tag_Name) aws_certificatemanager_info
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JvZoggel

79231208

Date: 2024-11-27 17:01:08
Score: 1.5
Natty:
Report link

In my case, the origin of the problem was quite simple: I was running the command flutter gen-l10n outside the root folder of my Flutter project.

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

79231206

Date: 2024-11-27 17:01:08
Score: 0.5
Natty:
Report link

Nico mentioned this in the comment but let me add. Your curl command does not have the additional header X-Requested-With which is set to XMLHttpRequest.

curl --header "x-requested-with: XMLHttpRequest" "https://www.starbucks.com/bff/locations?lat=46.6540153&lng=-120.5300666&place=Selah%2C%20WA%2C%20USA"

This article elborates why this is required, but here is a nutshell. The X-Requested-With header is a custom HTTP header used to indicate that the request was made via JavaScript, typically through an AJAX call rather than a traditional browser request and its value is usually set to XMLHttpRequest. This is done for a multitude of reasons for ex., to detect legitimate AJAX calls and/or add an extra layer of security against certain types of attacks etc.

Reasons:
  • Blacklisted phrase (1): This article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Monkey D Luffy

79231202

Date: 2024-11-27 17:00:07
Score: 8 🚩
Natty:
Report link

first of all many thanks for your answer. I followed all steps and changed all tables with a little script to the values you indicated. Anyway even if I change it manually in MySQL Workbench it shows utf8mb4_0900_ai_ci as Collation. is this correct?

But finally the result is still the same. It produces these strange binary blobs and running the restore script in order to import it in my local mysql server it gives this result:

ERROR at line 48: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\0' is expected.

Do you have any other tipp to solve this?

Greetings

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (1.5): solve this?
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Daniel Dinkel

79231196

Date: 2024-11-27 16:58:06
Score: 4.5
Natty:
Report link

It is much easier to use a vagrant box, for example https://portal.cloud.hashicorp.com/vagrant/discover/gbailey/al2023 It is working fine.

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: Ivan Berezanskiy

79231192

Date: 2024-11-27 16:57:05
Score: 3
Natty:
Report link

Reposted to dba.stackexchange.com

Please close or delete.

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

79231185

Date: 2024-11-27 16:55:04
Score: 1
Natty:
Report link

Currently, Rasa officially supports Python 3.7 to 3.10. Python 3.11 is not yet fully supported.

First install python version between 3.7 and 3.10 , and then retry pip install rasa command

For additional details, please refer to this. RASA docs

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

79231181

Date: 2024-11-27 16:53:03
Score: 6
Natty: 7
Report link

Same problem here, I haven't found any solution either and looks like a very rare problem

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bruno De Vivo

79231162

Date: 2024-11-27 16:48:02
Score: 3
Natty:
Report link

I think it’s worth restating what LCP is: this Web Vital measures the largest element rendered on the screen before user interaction. Given that you are running the Lighthouse test, it reports the largest component of the viewport—which happens to be the H1 tag. However, it may not be a problem with the element itself but rather with the preceding application loading steps.

To better understand the flow, I would suggest measuring (and sharing here) TTFB and Element Render Delay. Resource load delay and duration should be zero since it’s a text element.

I would expect that Element Render Delay will be bigger than TTFB; thus, to optimize LCP, you would need to focus on that.

The best way to improve it would be to debug which steps are happening before the H1 element shows up. Those might include:

•   Loading application code
•   Fetching data through API

If that’s the case, consider:

•   Splitting application code into chunks, loading the part that’s needed to render the initial UI first
•   Using pagination or decreasing server latency to speed up data load

Please share the performance report from the developer tools; we might be able to provide more specific recommendations.

Also, I would recommend reading this article: https://web.dev/blog/common-misconceptions-lcp

Reasons:
  • Blacklisted phrase (1): this article
  • RegEx Blacklisted phrase (2.5): Please share
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kirill

79231161

Date: 2024-11-27 16:48:02
Score: 0.5
Natty:
Report link

After a lot of struggle I found that in my case I was not swapping the drawing and rendering buffers at the end of rendering loop leading to GL_OUT_OF_MEMORY. So I think what might be happening is that renderer was continuously drawing to FrameBuffer which might be requesting memory every time we draw to it. Since, I was not swapping it so memory was not deleted and instead more memory was continuously accumulated...leading to GL_OUT_OF_MEMORY

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

79231155

Date: 2024-11-27 16:47:01
Score: 1.5
Natty:
Report link

Regression algorithms perform as a full-fledged model over well-defined relational data entities, but not much efficient for pulsating datasets. However, handling data with high irregularity is more complex, as its requirements are predominantly unavoidable. In this paper, a novel algorithm is proposed to estimate continuous outcomes for non-uniform or pulsating data using fluctuation-based calculations. The proposed unique approach for dealing with irregular data will address a key application of regression techniques.

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

79231151

Date: 2024-11-27 16:46:01
Score: 0.5
Natty:
Report link

TLDR: Please install VS Code extension Even Betterer TOML (Release Fork) and deactivate the "Even Better TOML" extension.


Longer Answer:

"Even Better TOML" isn't updated since 2023-07-15, because an CI token is expired and the only maintainer with access is not available anymore: see discussion on GitHub.

Therefore, a release fork was created and published as Even Betterer TOML (Release Fork).

In each release of the extension, all schemas from the JSON schema store are included. The schema store has support now for PEP 621 compliant pyproject.toml files for a while now. In the lastest update of the VS Code extension, the newest schema is included and the error message will disappear.

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

79231131

Date: 2024-11-27 16:44:00
Score: 1.5
Natty:
Report link

@noassl was correct with their comment. The real issue I was running into was with my incorrect assignment of the token. The authorization token was initially assigned undefined but I am not sure why I was unable to change it. I am assuming this has something to do with the way Axios instances function. To correct this issue, I moved the assignment of the instance inside the login function.

const fastify = require('fastify')({ logger: true });
const axios = require('axios');
const fs = require('fs');
require('dotenv').config();

const username = process.env.USERNAME
const password = process.env.PASSWORD
let token
let instance

async function login() {
    const response = await axios.post('/login', {username, password})
    token = response.data['token'];
    instance = axios.create({
        baseURL: process.env.URL,
        headers : {
            'Authorization': `Bearer ${token}`
        }
    })
    console.log(token);
}

async function me() {
    const response = await instance.get('/me')
    console.log(response.data);
}

login().then(me())
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @noassl
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Devin Bowen

79231122

Date: 2024-11-27 16:41:59
Score: 6.5 🚩
Natty: 6.5
Report link

I have migrated to coil3 and it has stopped working, does anyone know?

Reasons:
  • RegEx Blacklisted phrase (2): does anyone know
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: Rulogarcillan

79231119

Date: 2024-11-27 16:40:58
Score: 4
Natty:
Report link

Same here. Llama 3.1 8b modelfile not works.

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

79231117

Date: 2024-11-27 16:39:58
Score: 2
Natty:
Report link

Latest Updated command for main, not master:

  1. Create a repo on GitHub
  2. git init
  3. git add .
  4. git commit -m "Initial commit"
  5. git branch -M main
  6. git push -u origin main

These commands work properly for me on Windows to add existing projects on GitHub.

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

79231114

Date: 2024-11-27 16:39:58
Score: 1.5
Natty:
Report link

It looks like consistently moving the include of Pybind11 headers before QT Headers has fixed it.

However, this also goes for the full include tree. So if A includes B, and B includes Pybind, A should include B before including any QT Headers (QObject, QProcess, QVector, etc)

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

79231098

Date: 2024-11-27 16:35:57
Score: 1.5
Natty:
Report link

I just ran into this issue today.

One existing answer from Himanshu says his file name was not matching the expected value.

For me - the expected tab name within the Excel spreadsheet didn't match the expected tab name. A user accidentally fat-fingered in a space at the end of the tab name so the original error was thrown (Opening a rowset for "Sheet1$" failed. Check that the object exists in the database)

TL;DR - Check to make sure your tab names don't have typos or leading/trailing spaces!

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

79231088

Date: 2024-11-27 16:32:56
Score: 2
Natty:
Report link

Clear Cache works for me

Clear at the search area on ADS.

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

79231079

Date: 2024-11-27 16:28:55
Score: 2
Natty:
Report link

I've managed to sort this out.

Fortunately this occurred on a branch so I was able to create a new branch from the affected one at the point just before the mistake occurred. I could then inform people to switch to this one.

(The affected branch I've renamed with '_DoNotUse' suffix too.)

Doing this means that the file history of the affected files is no longer broken simply because this wasn't the case at the point that this new branch was made.

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

79231075

Date: 2024-11-27 16:26:55
Score: 1.5
Natty:
Report link

I've discovered that this is the default pose for a humanoid Rig in Unity. In other words, this does not appear to be a result of my setup.

I changed everything over to Generic in the model settings for the Rig and it retained the T-Pose.

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

79231074

Date: 2024-11-27 16:26:55
Score: 2.5
Natty:
Report link

you should give the value within the double quotes after the equal to. terraform plan -var-file="env-vars/dev.tfvars"

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

79231072

Date: 2024-11-27 16:25:54
Score: 4
Natty:
Report link

I have this problem. And it actually, didn't start until I updated to the most recent version of Slider Revolution 6.

Reasons:
  • Blacklisted phrase (1): I have this problem
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Angelo Logan TJackson25

79231069

Date: 2024-11-27 16:24:54
Score: 3.5
Natty:
Report link

Hey what was the final solve here. I have the same use case as yours

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

79231067

Date: 2024-11-27 16:24:54
Score: 2.5
Natty:
Report link
`const res = words.find((alpha) => alpha == words)`

// how i solve

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Abd.al

79231060

Date: 2024-11-27 16:22:53
Score: 1.5
Natty:
Report link

This was helpful to me when trying to upload a large file to S3 through code submitted via AWS Batch. I was encountering the following error:

"Unable to parse ExceptionName: InvalidArgument Message: Part number must be an integer between 1 and 10000, inclusive."

I had to figure out exactly what the default part size was and how many parts were being used for other uploads. The command suggested in the answer by Gery was helpful.

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

79231056

Date: 2024-11-27 16:20:52
Score: 1.5
Natty:
Report link

In case of GCP Compute instances I had add to use:

terraform import module.my_instances_module.google_compute_instance.my_resource_name project_id/region/instance_name
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: r2oro

79231055

Date: 2024-11-27 16:20:52
Score: 1
Natty:
Report link

Why checking huge listings? With photo files, normally only occurrence is of interest, not the former (possibly inactive) switch position of the camera! The effective flash event can therefore be queried with just a few binary comparisons (see code snippet below). Have fun!

    function effectiveFlash($flagval) {
/*
    This function uses just 4 major bit comparisons
    and responds with an easy-to-understand answer.
    However, the code could be even shorter, e.g.
    by returning simple symbols instead of text.
*/
    $result = 'not fired'; // First we assume nothing!
    // 1st check: Bit-1
    if(($flagval & 1) > 0) {
        $result = 'fired';
        // Prepare opening and closing text part for possible subsequent information:
        $sep = ' (Setting: ';
        $end = "";
        // 2nd check: Bit-16 plus possibly enclosed Bit-8
        if (($flagval & 24) > 0) {
            if (($flagval & 24) == 24) $result .= $sep . 'Auto';
            else $result .= $sep . 'Compulsory';
            $sep = ' + ';
            $end = ')';
        }
        // 3rd check: Bit-64
        if(($flagval & 64) > 0) {
            $result .= $sep . 'Red Eye Reduction';
            $sep = ' + ';
            $end = ')';
        }
        // 4th check: Bit-4 plus possibly enclosed Bit-2
        if(($flagval & 6) > 0) {
            if(($flagval & 6) == 6) $result .= $sep . 'Return Light';
            else $result .= $sep . 'No Return Light';
            $sep = ' + ';
            $end = ')';
        }
        // Now add the closing bracket ... that's it!
        $result .= $end;
    }
    return 'Flash ' . $result;
}

// Examples:
echo effectiveFlash(1)."<br>\n";
echo effectiveFlash(16)."<br>\n";
echo effectiveFlash(31)."<br>\n";
echo effectiveFlash(77)."<br>\n";

The Output would be like this:
  "Flash fired"
  "Flash not fired"
  "Flash fired (Setting: Auto + Return Light)"
  "Flash fired (Setting: Compulsory + Red Eye Reduction + No Return Light)"
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Why
  • Low reputation (1):
Posted by: ejomi

79231054

Date: 2024-11-27 16:19:52
Score: 1
Natty:
Report link

it is better to use pathlib

from pathlib import Path


folder_path = Path("path/to/folder/of/well/folders")

csv_files = list(folder_path.rglob("*.csv"))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Artem Strogin

79231039

Date: 2024-11-27 16:14:50
Score: 1.5
Natty:
Report link

This might be an issue of an extension, what you can do is disable all the extensions and then re-enable them ( https://www.reddit.com/r/vscode/comments/sdg8g9/ctrl_click_go_to_definition_not_working/) Screen shot of the comment in thread

This works mostly.

If that doesn't work, you can go to your user profile ( File> preferences > Profiles), and there you will find a settings.json file. You can remove its content, which worked in my case. The issue in my case was that an extension added the ctrl + click for multi cursor.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: 2K20 CO 151 Divyanshu Katyan

79231033

Date: 2024-11-27 16:12:50
Score: 1.5
Natty:
Report link

Same case, got this error after addin a new subproject to monorepo (yarn-4.0.2). Run this command from root of monorepo

yarn install --refresh-lockfile
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anna Danilova

79231024

Date: 2024-11-27 16:10:48
Score: 1.5
Natty:
Report link

Can you set NODE_ENV in your package script? Next should respond to this (https://nextjs.org/docs/app/building-your-application/configuring/environment-variables#environment-variable-load-order).

run_prod: NODE_ENV=production next dev

Do be aware that you can't really get a production bundle out of next dev so you'd need to do next build && next start to really be sure everything works... but you'd at least get your faster dev cycle this way by avoiding the constant stop start of build && start.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Bee Thee Unbutterable

79231019

Date: 2024-11-27 16:09:48
Score: 3
Natty:
Report link

Option "displayBatchSize" is not available in this environment. Display batch size setting is not working in mongoshell.

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

79231016

Date: 2024-11-27 16:08:48
Score: 1.5
Natty:
Report link

Dijkstra's algorithm's time complexity primarily depends on the data structure used to manage the "unvisited" nodes, most commonly a priority queue, and therefore different implementations can significantly impact its time complexity; with a basic array-based approach, the time complexity is O(V^2) (where V is the number of vertices), but using a priority queue, typically implemented with a heap, brings the complexity down to O(E log V) (where E is the number of edges) which is usually much more efficient for large graphs.

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

79231015

Date: 2024-11-27 16:08:47
Score: 4
Natty:
Report link

This is the document for adding custom control :

https://learn.microsoft.com/en-us/azure/devops/extend/develop/custom-control?toc=%2Fazure%2Fdevops%2Fmarketplace-extensibility%2Ftoc.json&view=azure-devops

and you can make it hidden from process change as in this link :

https://learn.microsoft.com/en-us/azure/devops/organizations/settings/work/customize-process-field?view=azure-devops#hide-a-field-or-custom-control

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: mohamed saeed

79231012

Date: 2024-11-27 16:07:47
Score: 1
Natty:
Report link

Thanks. I solved it by changing extension for the camel-routes file from .yml to .yaml and change in application.yml:

camel: springboot: routes-include-pattern: classpath:camel-routes.yaml

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mauro Meglio

79230996

Date: 2024-11-27 16:04:46
Score: 6 🚩
Natty: 5
Report link

Yeaah, this worked to me. Thankys Is it a new way to deal with it ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Gaabriel7

79230994

Date: 2024-11-27 16:03:45
Score: 1
Natty:
Report link

This works for me:

SELECT YEAR(date_column) AS column_alias FROM table_name;
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dansi Acharya

79230993

Date: 2024-11-27 16:03:45
Score: 1
Natty:
Report link

If you're using iOS and installing react-native-gesture-handler for the first time, make sure you kill the app in Xcode and rebuild it from there. Just reloading the app by running yarn react-native start --reset-cache is not sufficient to get a fully rebuilt app with the necessary RNGestureHandlerModule module installed.

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

79230991

Date: 2024-11-27 16:03:45
Score: 3.5
Natty:
Report link

Can you please try, if

use serde::{Deserialize, Serialize};
use surrealdb::engine::any::Any;
use surrealdb::{engine::any::connect, Surreal};
use surrealdb::{Error, RecordId};

#[derive(Debug, Serialize, Deserialize)]
pub struct Product {
    pub name: String,
    pub qty: i64,
    pub price: f64,
    pub category: RecordId,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct Category {
    pub name: String,
    pub id: RecordId,
}

pub async fn create_product(db: &Surreal<Any>) -> Result<(), Error> {
    let category: Option<Category> = db
        .query("CREATE category SET name = 'Equity'")
        .await?
        .take(0)?;

    let product: Option<Product> = db
        .create("product")
        .content(Product {
            name: "Banana".to_string(),
            qty: 100,
            price: 5.45,
            category: category.unwrap().id,
        })
        .await?;

    println!("Product created: {product:?}");
    Ok(())
}

#[tokio::main]
async fn main() -> surrealdb::Result<()> {
    let db = connect("mem://").await?;
    db.use_ns("ns").use_db("db").await?;

    db.query(
        "DEFINE TABLE category SCHEMALESS;
DEFINE FIELD name ON category TYPE string;
DEFINE TABLE product SCHEMALESS;
DEFINE FIELD name ON product TYPE string;
DEFINE FIELD price ON product TYPE float;
DEFINE FIELD qty ON product TYPE int;
DEFINE FIELD category ON product TYPE record <category>;",
    )
    .await?;

    create_product(&db).await?;
    Ok(())
}

solves the issue?

Reasons:
  • RegEx Blacklisted phrase (1.5): solves the issue?
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Can you please
  • Low reputation (1):
Posted by: TheUnknown

79230989

Date: 2024-11-27 16:02:45
Score: 2
Natty:
Report link

so i found the error pythonanywhere was trying to find the csv file in the folder where the mysite folder is located in

it basically created the csv file there and stored data it that file rather than saving it in the original file which is located inside the mysite folder

i simply deleted the the original one that i created and just added the headings to the csv file that pythonanywhere created

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

79230982

Date: 2024-11-27 16:01:45
Score: 2
Natty:
Report link

First of all the issue was coudn't resolved host which wasn't primary issue though. But after getting comments from this post i realized why that happened. Then the primaty issue i got which was server getting me timed out after certain time.

Well, the issue is the default server of php i am using for laravel which can handle only single request at a time so when i was making request through url it coudn't handle multiple request at a time (browser request + api request) so i have to switched apache server which solved the problem of the time out.

#thanks

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

79230981

Date: 2024-11-27 16:00:44
Score: 2.5
Natty:
Report link

Make sure you are running the required version of Node by running "node -v", the currently latest version of Playwright requires Node version 18 or higher.

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

79230979

Date: 2024-11-27 16:00:44
Score: 1
Natty:
Report link

Late Answer is that such features need a higher license fee than the basic here are related 2024 features where Language is a 60 Euros uplift.

enter image description here

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

79230978

Date: 2024-11-27 16:00:44
Score: 2.5
Natty:
Report link

I am not sure why Apple did this, but it is garbage to remove the entire app because it does not support one platform.

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

79230959

Date: 2024-11-27 15:53:43
Score: 2.5
Natty:
Report link

Android Studio will helpfully try to uninstall an existing application instance on the target device, except it doesn't seem to be completely working anymore. Disconnect device, uninstall app via Play Store, restart device, reconnect, relaunch Android Studio. That cleared the errors for me. HTH.

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

79230958

Date: 2024-11-27 15:52:42
Score: 2.5
Natty:
Report link

The simple solution was to simply reference the project folder when in debug mode as opposed to copying the db file to the bin folder. This allows updates to the schema and copies the same db to GitHub.

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

79230953

Date: 2024-11-27 15:52:42
Score: 1.5
Natty:
Report link

You need to make sure that your buildroot contains this commit 9e2128bf5, which fixes a problem with make 4.3.

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

79230952

Date: 2024-11-27 15:51:42
Score: 0.5
Natty:
Report link

We can retrieve text content using the "getAttributes" action.

Use it like so:

const attributes = await element(by.id('ElementId')).getAttributes();
console.log("text : ", attributes.text);
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Guian

79230950

Date: 2024-11-27 15:51:42
Score: 2
Natty:
Report link

The issue is likely caused by the order of variable overrides. Vuetify's styles are being loaded before your custom overrides. To fix this:

Ensure Custom SASS is Imported After Vuetify: Make sure your main.scss file is loaded after Vuetify's styles in your project.

Use Proper Vuetify SASS Overrides: Ensure the @use directive for Vuetify includes your custom variables before Vuetify is applied:

@use "vuetify/styles" with ( $grid-breakpoints: ( "md": 960px, "lg": 960px, "xl": 960px, "xxl": 960px ), $container-max-widths: ( 'md': 960px, 'lg': 960px, 'xl': 960px, 'xxl': 960px ) ); Double-Check Variable Scoping: Make sure your overrides are not being overridden elsewhere in your project.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @use
  • User mentioned (0): @use
  • Low reputation (1):
Posted by: Steve Rogers

79230942

Date: 2024-11-27 15:49:41
Score: 0.5
Natty:
Report link

I was used to the double shift in JetBrains products to search for symbols. Can add the same keybinding in VSCode keybindings.json with.

{
    "key": "shift shift",
    "command": "workbench.action.showAllSymbols"
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dustin Butler

79230940

Date: 2024-11-27 15:48:41
Score: 1.5
Natty:
Report link

I had the same issue using expo v52. Install expo v51 and it will work.

run: npx expo install expo@^51.0.0 and then: npx expo install --fix

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

79230939

Date: 2024-11-27 15:48:41
Score: 3
Natty:
Report link

I had a similar issue, but my issue was due to the use of a random value within the vlookup that should have returned a null value but returned a 0.

Substitute function worked like a charm.

=SUBSTITUTE(IF($B12<>$B11,VLOOKUP(RANDBETWEEN(1,22),Sheet1!$A$1:$J$22,5,FALSE),""),0,"")

Reasons:
  • Blacklisted phrase (1): worked like a charm
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mass imo

79230937

Date: 2024-11-27 15:48:41
Score: 0.5
Natty:
Report link

You can use this parameter in FormBuilderChoiceChip

showCheckmark: false,
Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dominik

79230934

Date: 2024-11-27 15:45:40
Score: 0.5
Natty:
Report link

After you have received several good answers and accepted one of them, I would like an additional subtle point. Even if you perfectly apply Object.freeze, you can modify the class object itself. Note that a class object is nothing but a constructor function on steroids, essentially, it is a constructor that can be implemented as a strictly equivalent non-class constructor function.

The problem is that the class object or the constructor function object can be re-assigned:

// If you use
class A {/* ... */}
function MakeA() {/* ... */}

// you could accidentally reassign the object A and MakeA
A = function() {
    throw new Error("A is no longer functional");
};
// or
MakeA = function() {
    throw new Error("MakeA is no longer functional, too");
};

I did not invent this reassignment trick, I've found it in another question, and it looked scary to me. And this is what you don't want. If you are trying to protect some objects with Object.freeze, you certainly would like to protect the constructor objects from reassigning.

But why is it possible? Unfortunately, this is how the class and function definitions shown above work. They create variables, not constants. In other words, they are equivalent to

let A = class {/* ... */}
let MakeA = function () {/* ... */}

That is, A and MakeA are actually variable. And this is not what you want Now, it is obvious that you can do better:

const A = class {/* ... */}
const MakeA = function () {/* ... */}

These const forms of the definition of constructor objects can replace the forms class A {} or function B() {} everywhere, except in some rare and marginal cases. These const forms can make the code more stable.

Of course, on top of this, Object.freeze still should be used where it is required.

Reasons:
  • Blacklisted phrase (1): another question
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79230925

Date: 2024-11-27 15:42:40
Score: 1.5
Natty:
Report link

It looks like that package is erroring out while testing on the Bioconductor build servers. As another commenter suggested, you can try installing the package directly from github, though I would contact the maintainers and see if they're still active. Alternatively, you can download a prior version of R and the correlated Bioconductor version and that should still work.

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

79230924

Date: 2024-11-27 15:42:40
Score: 3
Natty:
Report link

same problem 13 years later:

these VB-Codes don't work, have you an idea?

    '________________________________ T E S T S um den Standartwert AUTOMATISCH einzustellen _______________________________________________
    'SQLtext = "ALTER TABLE " & dtnamenstab1!Name & " ADD COLUMN ChangeDate2 DATETIME NOT NULL DEFAULT '" & Now() & "' AFTER preceding_col"
    'SQLtext = "ALTER TABLE " & dtnamenstab1!Name & " ADD COLUMN ChangeDate2 DATETIME NOT NULL DEFAULT 20241119143000 AFTER preceding_col"
    'SQLtext = "ALTER TABLE " & dtnamenstab1!Name & " ADD COLUMN ChangeDate2 DATETIME NOT NULL DEFAULT ""20241119143000"" AFTER preceding_col"
    'SQLtext = "ALTER TABLE " & dtnamenstab1!Name & " ADD COLUMN ChangeDate2 DATETIME NOT NULL DEFAULT 20241119143000"
    
    'SQLtext = "Alter Table " & dtnamenstab1!Name & " ALTER ChangeDate DATETIME DEFAULT set " & Now()
    'dbdatenbank.Execute "ALTER TABLE " & dtnamenstab1!Name & " ALTER Changedate DATETIME DEFAULT NOW() NOT NULL;"
    'SQLtext = "ALTER TABLE " & dtnamenstab1!Name & " Modify ChangeDate2 Datetime DEFAULT"
Reasons:
  • RegEx Blacklisted phrase (1): same problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ingo

79230920

Date: 2024-11-27 15:41:39
Score: 3
Natty:
Report link

Turns out I could just press the Restore button

Environment Terminal Options

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

79230918

Date: 2024-11-27 15:40:39
Score: 1.5
Natty:
Report link

Using Windows and IntelliJ IDEA 2024.3 I just added to

Run Configurations -> Add VM Options

this flag:

-Dlog4j.skipJansi=false
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: alexandros mantsakov

79230908

Date: 2024-11-27 15:36:37
Score: 2
Natty:
Report link

The best computer depends on your needs—whether it's for gaming, professional work, or general use. For gaming, high-performance PCs like the Alienware X17 or custom-built rigs with the latest GPUs shine. For creative professionals, the Apple MacBook Pro and iMac with M1 or M2 chips deliver impressive power and efficiency. For everyday tasks, reliable options like the Dell XPS series or Microsoft Surface Laptop provide great balance between performance and portability. Ultimately, it's about finding the right specs for your specific use case!

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

79230906

Date: 2024-11-27 15:35:37
Score: 1
Natty:
Report link

Simple one:

var timeNow = DateTime.Now;
var firstDayNextMonth = timeNow.AddDays(1 - timeNow.Day).AddMonths(1);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ebram Shehata

79230901

Date: 2024-11-27 15:34:36
Score: 1.5
Natty:
Report link

Add Button tag and set onclick to router push:

  <button @click="router.push('/')" disabled>
    MyButton-Text
  </button>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nader Naderi

79230896

Date: 2024-11-27 15:33:36
Score: 0.5
Natty:
Report link

After more research I found the IFeatureDefinitionProvider

Where we can get all the features and then search for the Desired Filter in the EnabledFor field.

var featureDefinitions = featureDefinitionProvider.GetAllFeatureDefinitionsAsync();
await foreach (var feature in featureDefinitions)
{
    // Lookup for a filter with desired name
    if (feature.EnabledFor.Any(filters => filters.Name == "FeatureForSpecificUser"))
    {
       // do something
    }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kaiwinta

79230890

Date: 2024-11-27 15:31:35
Score: 7
Natty: 7.5
Report link

I am stuck on the same issue. Any soultion yet?

Reasons:
  • RegEx Blacklisted phrase (1.5): I am stuck
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rishabh Singh

79230883

Date: 2024-11-27 15:27:34
Score: 0.5
Natty:
Report link

Had the same issue, looks like this is related to the existing demo config that overrode main config parameters:

https://github.com/opensearch-project/security/pull/4793

The fix was added to the version 2.18.0

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

79230881

Date: 2024-11-27 15:27:34
Score: 1
Natty:
Report link

"Any CPU" always was, still is and will always be a x86 32bit option with permission to run on x86_64 machine. So changing from "Any CPU" to "x86" changes nothing.

Verify if you have Microsoft.Dynamics.BusinessConnectorNet.dll that is for 32bit or 64bit architecture. Probably now you have 64bit version and this is why it cannot be loaded.

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

79230874

Date: 2024-11-27 15:24:34
Score: 1
Natty:
Report link

It might be different depending on your SwiftLint version, for me this one works:

cyclomatic_complexity:
  ignores_case_statements: true
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Konstantin Stolyarenko

79230855

Date: 2024-11-27 15:18:32
Score: 3
Natty:
Report link

Otherwise, you could use a Lambda Function to manage the event, and it will be automatically destroyed.

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

79230845

Date: 2024-11-27 15:15:31
Score: 1
Natty:
Report link

Add an environment to the PHP service in FrankenPHP, and configure the Phpstorm debug server with the same server name as PHP_IDE_CONFIG value.

php:
   environment:
      PHP_IDE_CONFIG: "serverName=whateveryouwant"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Minh Phuong

79230843

Date: 2024-11-27 15:14:31
Score: 4
Natty: 4
Report link

Ok this is an easy one. Go to the Roles section of IAM in the web console and search for the permission you care about. For example I want to know which roles get "networkservices.meshes.list". I search for "networkservices.meshes.list" and all the roles that have it are returned.

Reasons:
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: David Thornton

79230836

Date: 2024-11-27 15:12:30
Score: 1
Natty:
Report link

Tizen won't allow spaces in their filename. I suggest changing the project name and <name> value in config.xml. This fixed the issue for me.

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

79230828

Date: 2024-11-27 15:11:30
Score: 2.5
Natty:
Report link

This trick works great, but if you have many hosts in your inventory, you have to be sure the variables used (extra_vars and host inventory vars) are unique on every Custom Credential Type, otherwise they will be overwritten.

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

79230811

Date: 2024-11-27 15:08:29
Score: 1
Natty:
Report link

Based on the code you shared and your response, following might be the reason for the error you are getting:

  1. The /output/folder where you are trying to write the data in a pod is causing the pod to run out of storage. Fixes for this include: writing to a cloud based object storage, or to a directory that has a disk of appropriate size mounted to it.
  2. Assuming it is not because of the output being too large to store for the specified location, it could be due to the persist step. There you can play around with different storage level based on the documentation here here
  3. It might also be prudent to look at the spark dashboard to see if the memory issue is isolated to few executors or all of them or spark driver. If it only few executors then it is likely due to data skew, and you can repartition the data to factor for it.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aneesh

79230810

Date: 2024-11-27 15:08:29
Score: 2.5
Natty:
Report link

I finally get the token by using URLSearchParams and set again application/x-www-form-urlencoded instead of using JSON.stringify with application/json. I don't undestand why with application/json I got an Invalid request : Missing form parameter: grant_type that I was correctly set in the body.

Here is my final code to retrieve the token :

export default defineEventHandler(async (event) => {
  try {
    const token  = await fetch(`https://****/realms/test/protocol/openid-connect/token`,
      { 
        method : 'POST',
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
        },
        body: new URLSearchParams({
          'client_id': "****",
          'client_secret': "****",
          'grant_type': "password",
          'username': "****",
          'password': "****"
        })
      });

    return token;
  } catch (error) {
    sendError(event, createError({
      statusCode: 500,
      statusMessage: 'Internal Server Error: ',
      data: {
          error: error.message,
          stack: error.stack,
      }
    }));
  }

})

Thanks to @C3roe to help me to understand my problem.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Wasabi-sudo

79230808

Date: 2024-11-27 15:08:29
Score: 1.5
Natty:
Report link

I think this works

# ... your code
if complement in seen:
  pairs.add((num,complement))
# ... your code
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LilFunctional

79230806

Date: 2024-11-27 15:07:28
Score: 1
Natty:
Report link

You are correct: APIRouter is used to handle incoming HTTP requests for your FastAPI app. For (external) API calls, you use libraries like httpx instead, both synchronous and asynchronous.

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

79230804

Date: 2024-11-27 15:06:28
Score: 4.5
Natty: 5
Report link

Thanks bro, this is very helpful

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

79230801

Date: 2024-11-27 15:05:27
Score: 0.5
Natty:
Report link

The deinstallation of farm-haystack and the installation of pip install haystack-ai worked for me!

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: yaennu.s

79230800

Date: 2024-11-27 15:05:27
Score: 3.5
Natty:
Report link

You can try to useGLTF.preLoad('model.gltf') model

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

79230790

Date: 2024-11-27 15:02:27
Score: 3.5
Natty:
Report link

After a bit more digging I have come to the conclusion that SSIS is the best way to do this, so I have added a Transformation script component and done the work in there :)

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

79230781

Date: 2024-11-27 14:58:26
Score: 3.5
Natty:
Report link

The problem was solved after writing an accurate description of the application and its functions.

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

79230776

Date: 2024-11-27 14:56:25
Score: 5.5
Natty:
Report link

Same issue is solved and discussed here: /tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory Vercel.

There's many solution, so i do not know which one will fit on your case.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (1): Same issue
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Fedi Bounouh

79230775

Date: 2024-11-27 14:55:25
Score: 0.5
Natty:
Report link

Building on @StupidWolf solution, to have all columns:

import numpy as np
import pandas as pd
from IPython.display import display  # Optional
from sklearn.metrics import (
    classification_report,
    precision_recall_fscore_support,
)

res = []
for class_p in classes:
    prec, recall, fbeta_score, support = precision_recall_fscore_support(
        np.array(y_true) == class_p,
        np.array(y_pred) == class_p,
        pos_label=True,
        average=None,
    )
    res.append(
        [
            class_p,
            prec[1],
            recall[1],
            recall[0],
            fbeta_score[1],
            support[1],
        ]
    )

df_res  = pd.DataFrame(
    res,
    columns=[
        "class",
        "precision",
        "recall",
        "specificity",
        "f1-score",āˆ
        "support",
    ],
)

display(df_res)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @solution
  • Low reputation (0.5):
Posted by: SJGD

79230772

Date: 2024-11-27 14:55:25
Score: 1
Natty:
Report link

I was able to get rid of the warning by just overriding it in my globals css file (even though I also had zero instances of this in my code anywhere).

* {
  -ms-high-contrast: none !important;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Elijah

79230770

Date: 2024-11-27 14:54:24
Score: 10.5 🚩
Natty:
Report link

any solutions? im have same problem

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solutions?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): have same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anton

79230769

Date: 2024-11-27 14:53:24
Score: 1.5
Natty:
Report link

Using Windows and IntelliJ IDEA 2024.3 I just added to

Run Configurations -> Add VM Options

this flag:

-Dlog4j.skipJansi=false
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: alexandros mantsakov

79230768

Date: 2024-11-27 14:53:24
Score: 1
Natty:
Report link

Probably the best way to dynamically add components in your template is the "Dynamic Components" feature native of Laravel:

@foreach ($fields as $field => $param)
    <x-dynamic-component
        :component="sprintf('larastrap::%s', $param['type'])"
        :params="[
            'name' => $field, 
            'label' => $param['label'], 
            'options' => $param['options'] ?? null
        ]"
    />
@endforeach

This approach is also mentioned in the Larastrap documentation.

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: madbob

79230758

Date: 2024-11-27 14:50:23
Score: 4
Natty: 4
Report link

Hello many thanks for the last answer. But for the script running you must remove "break" at the end of the script. cheers C.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): cheers
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: crunchattak

79230757

Date: 2024-11-27 14:50:23
Score: 3
Natty:
Report link

As of 20 Nov 2024, scaling down to zero ACUs (auto pause) is now supported by serverless v2, making serverless v2 finally "serverless" in the way that v1 was:

https://aws.amazon.com/blogs/database/introducing-scaling-to-0-capacity-with-amazon-aurora-serverless-v2/

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

79230756

Date: 2024-11-27 14:50:22
Score: 10.5 🚩
Natty: 6.5
Report link

Did you find any solution for this? I'm facing a simular issue, using RN 0.73, and xCode 16.1

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): Did you find any solution
  • RegEx Blacklisted phrase (2): any solution for this?
  • Low length (1):
  • 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 for this
  • Low reputation (1):
Posted by: Luis Barroso