79228098

Date: 2024-11-26 20:01:40
Score: 1.5
Natty:
Report link

you can remove the ubuntu user, create the container as usual, connect to the terminal with sail root-shell, after that php artisan sail:publish

go to the docker folder on the project's root, and change the docker file, adding this line right after FROM ubuntu:22.04:

RUN userdel ubuntu && groupdel ubuntu || true

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

79228077

Date: 2024-11-26 19:57:39
Score: 0.5
Natty:
Report link

Just either type: backtrace, bt or where.

For a full backtrace type: backtrace full or type: bt full

See also: https://visualgdb.com/gdbreference/commands/backtrace

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Melroy van den Berg

79228075

Date: 2024-11-26 19:56:38
Score: 1
Natty:
Report link

Just keep in mind any time EditText.setText() is called the TextWatcher overrides will be called.

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

79228074

Date: 2024-11-26 19:56:38
Score: 3
Natty:
Report link

For me the solution above worked! I replaced 'METHOD:PUBLISH' with 'METHOD:CANCEL' in header. I replaced all 'STATUS:CONFIRMED' with 'STATUS:CANCELLED' using the Replace option.

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

79228056

Date: 2024-11-26 19:48:36
Score: 0.5
Natty:
Report link

The image is declared inside build function, so it is a local variable and is reset in the rebuild. It should be a property of the State instead.

File? image;
Widget build(BuildContext context) {

Future pick() async {
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PurplePolyhedron

79228055

Date: 2024-11-26 19:48:36
Score: 2.5
Natty:
Report link

workaround:

driver.execute_cdp_cmd('Page.setDownloadBehavior', { 'behavior': 'allow', 'downloadPath': 'path\' })

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

79228054

Date: 2024-11-26 19:47:36
Score: 1.5
Natty:
Report link

Use ContentProposalAdapter from JFace. Available out of the box.

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

79228050

Date: 2024-11-26 19:46:35
Score: 0.5
Natty:
Report link

When using lightweight-charts, it’s important to note that series initialization happens when you call methods like .addAreaSeries() or .addCandlestickSeries(), not at .setData(). The .setData() method is used to populate the series with data after it has been created.

Therefore you should assign

const riskZoneSeries = chart.addAreaSeries({
            lineColor: 'transparent',  // No border for the block
            topColor: 'rgba(252, 215, 218, 0.7)',  // Transparent red
            bottomColor: 'rgba(252, 215, 218, 0.7)', // Same color as top for solid fill
        });

before

const candlestickSeries = chart.addCandlestickSeries({
            upColor: '#26a69a',
            downColor: '#ef5350',
            borderVisible: false,
            wickUpColor: '#26a69a',
            wickDownColor: '#ef5350',
        });
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Prabhu Egorus

79228040

Date: 2024-11-26 19:44:35
Score: 1.5
Natty:
Report link

the issue you're facing is maybe cause of discord's limitation on interaction responses, which become invalid after 15 minutes.

this means you can't directly update the same interaction after this time, and you need to implement a workaround to maintain the functionality...

you might:

you can refer - https://docs.discordnet.dev/faq/int_framework/general.html#:~:text=TimeoutException:%20'Cannot%20respond%20to%20an,false%20in%20the%20%5BDiscordSocketConfig%5D.

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

79228036

Date: 2024-11-26 19:43:34
Score: 3.5
Natty:
Report link

From the Xero documentation - https://developer.xero.com/documentation/api/accounting/invoices

when "summaryOnly" parameter is used, pagination is enforced by default.

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

79228034

Date: 2024-11-26 19:42:34
Score: 2
Natty:
Report link

Finally found it...

https://developer.android.com/studio/publish/preparing#:~:text=For%20Google%20Play%20Store%2C%20all%20apps%20created,are%20required%20to%20use%20Play%20App%20Signing.

SO, as of August 2021 all new apps distributed on the Google Play Store must use Google App Signing.

Oh well, that's that, then.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Fat Monk

79228032

Date: 2024-11-26 19:42:34
Score: 3
Natty:
Report link

Try changing your AWS ec2instance type because random failing of jenkins test and chromeheadless failing to connect is often due to lack of resources

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

79228025

Date: 2024-11-26 19:40:34
Score: 2
Natty:
Report link

First loop

foreach ($root in $array.data)

Inside loop (inside the root loop)

foreach ($item in $root.items)

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

79228012

Date: 2024-11-26 19:35:32
Score: 0.5
Natty:
Report link

I had/Have this similar issue too. My Work around is to use a 14 month old hard coded date and zeros for time as a flag to my code that user wants to use today's date and time. Make a standard to compare to :

tDefault = timestamp("01 Oct 2023 00:00:00 -0400")  

Then the user input.time MUST match exactly :

backtestStartDate_raw = input.time(timestamp("01 Oct 2023 00:00:00 -0400"),    
    title="Strategy Start Date+Time ",
    tooltip="This start date is in the time zone of the exchange " + 
    "where the chart's instrument trades. It doesn't use the time " + 
    "zone of the chart or of your computer." , group = "Trading Options" 
) 

Now just compare the two:

(backtestStartDate_raw == tDefault) 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: FGZ.Rick

79228006

Date: 2024-11-26 19:33:31
Score: 2.5
Natty:
Report link

If you're using Google chrome, in the rendering tab. of the devtools, you can "Emulate a focused page", this will make it so that the page stays focused even when clicking elsewhere.

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

79228001

Date: 2024-11-26 19:30:31
Score: 1
Natty:
Report link

Type keyboard to see symbols..my key mapping is default.. And the short cut is, as other said, ⌥ + ⌘ + B enter image description here

enter image description here

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

79227991

Date: 2024-11-26 19:23:29
Score: 1.5
Natty:
Report link

One approach is to reverse the array and then take the first element of reversed array.

select(array_reverse(array_construct(0,1,2,3,4,5,6))[0]);  --returns 6
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kevin Ray

79227982

Date: 2024-11-26 19:18:28
Score: 1
Natty:
Report link

LuxGiammi's answer is correct with good advise.

RE: how to accurately install Python packages? Should I use pip, pacman or yay?

(1) User or Virtual Environment: Great for development.

There is a dozen virtual environment managers available.

I recommend pyenv:

Example:

# Install pyenv and install desired Python version directly into user directory:
$ pacman -S pyenv
$ pyenv install 3.12 # Builds Python version specified

# Select which python version or environment you would like to use:
$ pyenv [local|global] 3.12 

# (Optional) Point pycharm to your environment. e.g. ~/.pyenv/versions/3.12/bin/python
# (Optional) Create virtualenvs

(2) System-Wide: Arguably a more accurate method. Clean, distributable.

Installed with pacman or an AUR helper such as yay. Easy and great if your project already has packages.

RE: Is it necessary to add the python- prefix?

Recommended and you should, but not required.

Reasons:
  • RegEx Blacklisted phrase (1.5): fix?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: mathewguest

79227976

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

2 Advantages of CTE: Improved Query Readability:

CTEs help break down complex queries into smaller, more manageable parts, making the code easier to read and maintain. This is especially helpful when dealing with complicated joins or subqueries, as you can isolate the logic in a CTE and refer to it later in the main query. Reusability within a Query:

2 Disadvantages of CTE: You can reference the same CTE multiple times within a single query, which avoids the need to repeat complex logic. This makes the query more efficient and cleaner since you define the logic once and use it wherever needed.

Performance Issues with Large Data:

CTEs are recalculated each time they are referenced, which can lead to performance overhead, especially when dealing with large datasets. This can be less efficient compared to using temporary tables, which may persist in memory or be indexed for faster access. Limited Scope:

CTEs are only available within the query in which they are defined. Once the query is completed, the CTE is discarded. This means you can't reuse the result of a CTE across different queries or sessions.

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

79227971

Date: 2024-11-26 19:13:24
Score: 6 🚩
Natty:
Report link

what's the updated code after making the array thread-safe?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): what's the
  • Low reputation (1):
Posted by: iOS-Chotu

79227961

Date: 2024-11-26 19:10:20
Score: 6 🚩
Natty:
Report link

Instead of doing that you can just

display a small image of the character

as found here Is there a "glyph not found" character?

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: user1

79227952

Date: 2024-11-26 19:04:18
Score: 0.5
Natty:
Report link

For the Oracle side, consider defining the id field as an identity column, and setting it to auto-generate (introduced in Oracle Database 12c).

This has the effect of populating the id field on the database side, without needing to define a database sequence:

id number generated always as identity primary key

This article also has some good information about using identity columns in Oracle Database: https://oracle-base.com/articles/12c/identity-columns-in-oracle-12cr1

This can give you a good alternative to sequences and triggers. Hope this helps!

Reasons:
  • Blacklisted phrase (1): This article
  • Whitelisted phrase (-1): Hope this helps
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anders Swanson

79227943

Date: 2024-11-26 18:59:17
Score: 2
Natty:
Report link

Not perfect, but if you have a separate process that monitors whether your main process is alive, then when it dies, you can get the active process from windows and guess that it was responsible. This generally works if it is killed by Task Manager, etc. Also, have your main process send a message to the monitoring process just before it is going to exit normally so you don't log those cases.

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

79227942

Date: 2024-11-26 18:58:17
Score: 0.5
Natty:
Report link

you can use the storage_options with the s3_additional_kwargs attribute

df.to_json(destination, storage_options={"s3_additional_kwargs": {
        "Tagging": "key1=value1&key2=value2"
    }}

https://pandas.pydata.org/docs/user_guide/io.html#reading-writing-remote-files https://s3fs.readthedocs.io/en/latest/search.html?q=s3_additional_kwargs

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nathanagez

79227925

Date: 2024-11-26 18:50:15
Score: 2.5
Natty:
Report link

I think that when we execute the operations in For in parallel using multi-threading, the desired performance will be achieved.

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

79227919

Date: 2024-11-26 18:48:14
Score: 5
Natty: 4
Report link

Use .editorconfig, to see my answer to another question: https://stackoverflow.com/a/79227845/8163839

Reasons:
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jervis

79227918

Date: 2024-11-26 18:47:14
Score: 2
Natty:
Report link

Thanks to: badrshs https://github.com/codebude/QRCoder/issues/577#issuecomment-2355421626

[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
private Bitmap GenerateQrCode(string text, int size)
{
    using var qrGenerator = new QRCodeGenerator();
    using QRCodeData qrCodeData = qrGenerator.CreateQrCode(text, QRCodeGenerator.ECCLevel.Q);
    using var qrCode = new PngByteQRCode(qrCodeData);
    byte[] qrCodeAsPngByteArr = qrCode.GetGraphic(size);

    using var ms = new MemoryStream(qrCodeAsPngByteArr);
    return new Bitmap(ms);
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: GrasM4n

79227916

Date: 2024-11-26 18:47:14
Score: 1
Natty:
Report link

Shortening Abhas' answer, this is what I do:

int count = new List<T>(theEnumerableList).Count;

One line and done.

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

79227912

Date: 2024-11-26 18:45:12
Score: 4
Natty:
Report link

Excellent discussion on this here.

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

79227906

Date: 2024-11-26 18:43:12
Score: 5.5
Natty:
Report link

Hi everyone ı got same problem and ı solved that here is the link https://www.youtube.com/watch?v=3WueA6ZJV5c .Its so simple to understand and do you are only should assignt the folder on the visual studyo and after that you can reach go live have a good day

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): good day
  • Blacklisted phrase (1): here is the link
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ömer Yasin Karabağ

79227904

Date: 2024-11-26 18:42:11
Score: 2
Natty:
Report link

I think the updated version Answer to this question is:

"the API does not explicitly provide a separate "Added/Excluded" column, so you'll need to analyze the data to determine the status based on whether the search term is present in your negative keyword list."

so you have to pull the search term and compared to see if it is already in the adgroup, adgroup negative keyword, campaign negative keyword and or 'Shared Library' 'Exclusion lists'

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

79227891

Date: 2024-11-26 18:38:10
Score: 1
Natty:
Report link

i was able to get this to work for my aws aurora postgresql instance by running the following command first:

grant set on parameter log_statement to <master_user>;

then i was able to run the alter role command

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

79227887

Date: 2024-11-26 18:37:10
Score: 1.5
Natty:
Report link

I had the same problem. Removing app.UseHttpsRedirection(); in program.cs made it work.Se code here Github ApireDaprPubSubDemo

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: bromose

79227886

Date: 2024-11-26 18:37:10
Score: 0.5
Natty:
Report link

If I correctly understood your question, you have a tank which is composed of a body, which moves with WASD, and a turret linked with the camera which move with mouse movement. Since you haven't posted code, I suppose you wanna hear the concept more than the code.

The problem is how you structured your tree. You said:

I have a tank on the scene with a turret attached as a child object

Since the turret is a child of the tank, EVERY rotation, POSITION, scale update on father are applied to childs (for Godot's logic). So this is a problem, because if you rotate the tank, even the turret will rotate even if you haven't moved the mouse.

In order to fix this, you should have a tree where the father is a generic Node with two childs (two nodes), one for the turret and the camera and one for the body, both with their own script to change with user input.

This should fix this

I implemented something similar, but when the tank rotates, the turret rotates with it,

To do something "smoothly rotate" I suppose you want a system where camera rotates and after a "delay" turret rotates too. You can do so using lerp. I link to the official documentation for more

As isherwood mentioned, your question is incomplete. Please, provide more informations (and some code) if you need more assistance/what I said is not what you are searching for.

Greetings

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

79227885

Date: 2024-11-26 18:36:09
Score: 1
Natty:
Report link

The issue I thought I had with generating a uuid from my octave script was a red herring. Within the the function I was calling, I'm doing extract(epoch from tts.timestampt); it was the numeric value returned by postgres that was actually giving octave trouble. Changing that data type allowed my function to execute as expected with a uuid parameter.

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

79227882

Date: 2024-11-26 18:33:09
Score: 5
Natty:
Report link

yes it works. I think this is what I am looking for, however, it creates a fake URL entry point that cannot be linked back to if you copy and paste the address directly.

Reasons:
  • Blacklisted phrase (2): I am looking for
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bushra Rauf

79227878

Date: 2024-11-26 18:30:08
Score: 5
Natty: 4.5
Report link

A better Way I think is Using COllama here is a Video explain How

https://youtu.be/3tkmnItNXJM?si=SPIqTlYYjROv4m0d

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mono job

79227877

Date: 2024-11-26 18:29:07
Score: 5
Natty: 6.5
Report link

Resolve your Google Sheets Slicer/ Pivot Table Issues- Read this blog -

https://fixyourdatatools.blogspot.com/2024/11/resolving-google-sheets-slicer-issues.html

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abhay Agastya

79227865

Date: 2024-11-26 18:24:05
Score: 0.5
Natty:
Report link

This can be due to a WAF (web application firewall) rule that blocks a NonBrowserUserAgent (Postman).

See here for how you can make an exception to that rule on aws

This would explain why using the Postman web app works (as noted here). While the Postman Desktop Application, VS Code extension or Jetbrains http client will be blocked, as those aren't Browser User Agent's.

Reasons:
  • No code block (0.5):
Posted by: shmuels

79227859

Date: 2024-11-26 18:22:05
Score: 1.5
Natty:
Report link

I'm posting an answer here because your question is recent and highly ranked on Google Search at the moment.

First, you need an actual git binary installed in your runtime. This is mentioned in the GitPython docs:

GitPython needs the git executable to be installed on the system and available in your PATH for most operations. If it is not in your PATH, you can help GitPython find it by setting the GIT_PYTHON_GIT_EXECUTABLE=<path/to/git> environment variable.

Unfortunately, the Python Lambda runtime does not include git by default. We fix this by using a docker image, then building that during a cdk deploy.

Dockerfile

FROM public.ecr.aws/lambda/python:3.12

RUN dnf -y install git

COPY requirements.txt .

RUN  pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"

WORKDIR ${LAMBDA_TASK_ROOT}
COPY *.py .

CMD [ "index.handler" ]

Your lambda code will be called index.py

import shutil
from git import Repo
from aws_lambda_powertools import Logger

logger = Logger()
REPOSITORY_URL = "https://github.com/gitpython-developers/QuickStartTutorialFiles.git"
LOCAL_CODE_DIRECTORY = "/tmp/repo"


@logger.inject_lambda_context(log_event=True)
def handler(event, context):

    logger.info("Cloning repository...")

    repo = Repo.clone_from(
        url=REPOSITORY_URL,
        to_path=LOCAL_CODE_DIRECTORY,
        allow_unsafe_protocols=True,
        allow_unsafe_options=True,
    )
    logger.info("Repository cloned!")

    # Get the last 10 commits and print them.
    commits = repo.iter_commits("main", max_count=10)

    for commit in commits:
        logger.info(
            f"{commit.message} - {commit.author} - {commit.authored_date}"
        )

    tree = repo.head.commit.tree

    # Print files to confirm it works and we have the right repo.
    files_and_dirs = [(entry, entry.name, entry.type) for entry in tree]
    logger.info(files_and_dirs)

    # Docs here: https://gitpython.readthedocs.io/en/stable/quickstart.html#git-repo

    shutil.rmtree(LOCAL_CODE_DIRECTORY)

Deploy all this with CDK code:

from aws_cdk.aws_lambda import (
    Architecture,
    DockerImageFunction,
    DockerImageCode
)
from aws_cdk import Duration


_lambda = DockerImageFunction(
    self,
    "SourceCodeThingy",
    description="Updates the source code repository with some cool changes.",
    code=DockerImageCode.from_image_asset(
        directory='path/to/your/function/code'
    ),
    memory_size=128,
    architecture=Architecture.X86_64,
    retry_attempts=1,
    timeout=Duration.seconds(15)
)
Reasons:
  • RegEx Blacklisted phrase (3): you can help
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Mr. C

79227858

Date: 2024-11-26 18:22:04
Score: 4
Natty:
Report link

I am writing a paper on results of a model I used. I am not sure how to cite it as my professor wrote most of it and I can't find the actual model online since the prof just sent it to us as an .ipynb file.

Does anyone know how I would cite something like this in a paper? I really only know the name of the file, the Professors name (who wrote the code), and version of python I am using.

I figured I could just put the professors name, year, title of model since this is just a project for class.

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Tanuj Grandhi

79227845

Date: 2024-11-26 18:17:03
Score: 0.5
Natty:
Report link
  1. use .editorconfig file:

    [**/Migrations/**.cs]
    generated_code = true
    dotnet_analyzer_diagnostic.severity = none
    
  2. or use .csproj:

    <Project>
        <ItemGroup>
        <Compile Remove="Migrations\**\*.cs" />
        <None Include="Migrations\**\*.cs" />
        </ItemGroup>  
    </Project>
    
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jervis

79227842

Date: 2024-11-26 18:16:02
Score: 0.5
Natty:
Report link

The official docs explain it quite well. Simply import the quote function with:

from prefect.utilities.annotations import quote

Then, within your flow use:

def my_flow():
    # ...
    large_item = task_1()
    result = task_2(quote(large_item))
    # ...

instead of directly passing large_item to the next task.

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

79227838

Date: 2024-11-26 18:14:02
Score: 1
Natty:
Report link

Jdk-23 will not work. Try jdk17 or jdk11 of jetbrains (android studio).

Further more:

1- Clean flutter and generated build files in your projects android side.

If it does not work then:

1-Update your flutter version, dart version and your .yaml dependencies.

2- Clean flutter and generated build files in your projects android side.

If it does not work and you have not done gradle migration:

1-You should change settings.gradle, build build.gradle and app build.gradle according to documentation. https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply ( Alternatively you can update your (1)android studio and (2)flutter plugin of android studio to create a new flutter project. (3)Then compare files that I stated. ( java and kotlin versions stated in documentation))

2- Clean flutter and generated build files in your projects android side.

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

79227837

Date: 2024-11-26 18:14:02
Score: 2.5
Natty:
Report link

I had taken a course from learncloudguru on Azure data engineering which was really helpful. please checkout

https://www.learncloudguru.com/#/home

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

79227832

Date: 2024-11-26 18:13:02
Score: 3
Natty:
Report link

export all data from the tables you need from Oracle into csv files and use DBeaver to import to your HSQLDB schema

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

79227831

Date: 2024-11-26 18:11:01
Score: 3
Natty:
Report link

Sometime it is as simple as not having "www" on the domain name you're calling.

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

79227829

Date: 2024-11-26 18:11:01
Score: 2.5
Natty:
Report link

Not working in UWP, giving systematic error

Failed to assign to property 'Windows.UI.Xaml.Media.GradientBrush.GradientStops'

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

79227818

Date: 2024-11-26 18:07:00
Score: 1
Natty:
Report link

i was able to get this to work for my aws aurora postgresql instance by running the following command first:

grant set on parameter log_statement to <master_user>;

then i was able to run the alter role command

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

79227816

Date: 2024-11-26 18:03:59
Score: 1
Natty:
Report link

Looks like this config in Angular.json fixes the issue for Angular 17

"stylePreprocessorOptions": {
              "includePaths": [
                "."
              ]
            }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oleh Kosar

79227804

Date: 2024-11-26 17:58:58
Score: 4.5
Natty:
Report link

I have the same issue.

Or you using turbopack, like that for dev : next dev --turbopack ? I tried without and the 'error' disappeared.

And of course I've awaited my params like that for exemple :

export default async function Blog({
  params,
}: Readonly<{
  params: Promise<{ lang: Locale }>;
}>) {
  const { lang } = await params;

I haven't found any issue on github about this, I'll think about opening one.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: R2u26A1

79227803

Date: 2024-11-26 17:58:55
Score: 6.5 🚩
Natty:
Report link

I have exactly the same error. Run the given command

pip install --upgrade openai

Reasons:
  • Blacklisted phrase (0.5): exactly the same error
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have exactly the same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28499661

79227797

Date: 2024-11-26 17:56:54
Score: 0.5
Natty:
Report link

I advise against continuing this research. WebAssembly, which would have to use the same WebSocket API's as JavaScript (via web-sys), is totally irrelevant to whether HTTP is allowed. You cannot use tungstenite in WebAssembly because it requires a raw TCP stream, and browsers don't offer them due to security concerns.

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

79227795

Date: 2024-11-26 17:55:54
Score: 1.5
Natty:
Report link

From what I can gather, there isn't a real way outside of creating a map for everything. With Rune, I find most of the 1/2 byte looking characters have Plane set to 0 and BMP is set to True, but that isn't in all cases.

You will notice that \u23f0 has an extra space and \ud83c\udd8f is missing the space. I guess I'll just map out the ones I'll support and leave it to the user to append a space when they need it.

Examples I used, where it states Padded: True, means I added \ufe0f: enter image description here

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

79227792

Date: 2024-11-26 17:55:54
Score: 3
Natty:
Report link

Add --pyi_out=. to the parameters. This will generate .pyi files with the necessary information for intellisense.

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

79227782

Date: 2024-11-26 17:52:53
Score: 0.5
Natty:
Report link

We can use FlatList to generate grid view and space evenly.

<FlatList
  data={ITEMS}
  numColumns={3}
  keyExtractor={(item) => item.key}
  renderItem={({ item }) => <Item instance={item} style={styles.item}/>}
  contentContainerStyle={styles.flat_list}
  columnWrapperStyle={styles.flat_list}
/>


const styles = StyleSheet.create({ 
  flat_list: {
    gap: 16,
  },
item: {
   flex: 1,
   padding: 16,
   borderRadius: 8,
   alignItems: 'center',
   justifyContent: 'center',
  },
});

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: SaimumIslam27

79227781

Date: 2024-11-26 17:52:53
Score: 1
Natty:
Report link

change parentFragment.viewLifecycleOwner to this

if you want to keep observe in onCreate

viewModel.responseState.observe(this, Observer {
    updateUI(it)
})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Satendra Behre

79227773

Date: 2024-11-26 17:49:52
Score: 4
Natty:
Report link

While thinking about possible solution, it was realized that PGADMIN is sending NULL for valid_until parameter and hence function is failing to execute. This is because the account for which I was trying to reset password has no expiry set. I then added an expiry date to the account and then tried to change password and function worked as expected and extended expiry date to current_date + 90 days. Thank you @adrian for your valuable input.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • No code block (0.5):
  • User mentioned (1): @adrian
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: girish chalke

79227772

Date: 2024-11-26 17:48:52
Score: 3.5
Natty:
Report link

I ended up downloading the community edition of 2022 version and selecting it instead of our current version.

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

79227770

Date: 2024-11-26 17:48:52
Score: 1
Natty:
Report link

Run php artisan route:list first to confirm that your code can see the route. If it exists, it could be a laravel route cache issue. run the following command to clear the cache

php artisan route:clear
php artisan cache:clear
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Motunrayo Koyejo

79227769

Date: 2024-11-26 17:48:52
Score: 1
Natty:
Report link

It seems you want that option set for any test that you run.

To do that, open the Run/Debug Configurations window (select Edit Configurations from the drop down), click on Edit configuration templates, then add the option to the appropriate kind of configuration (JUnit, TestNG, or whatever is used to run the tests).

New test runs will use the option, but existing configurations will not be changed.

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

79227768

Date: 2024-11-26 17:48:52
Score: 3.5
Natty:
Report link

The only EFS metrics I find today are:

BurstCreditBalance

PermittedThroughput

PercentIOLimit

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: sceptapular

79227766

Date: 2024-11-26 17:46:49
Score: 8.5 🚩
Natty:
Report link

I am facing the same issue and is unable to solve it with headerTemplate and footerTemplate, their results have weird behaviour. Is there any else solution or can you provide the solution code you applied.

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (2.5): can you provide the solution code you
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: LAIQUE MIRZA

79227762

Date: 2024-11-26 17:45:48
Score: 3
Natty:
Report link

Just type sudo mount in your Linux wsl It will mount itself in home folder

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

79227757

Date: 2024-11-26 17:44:48
Score: 2.5
Natty:
Report link

One other common spot to look at is to check your connection string for any issues. Even capital and small letters (letter case issue) can falsely flag as DTC issue. Make sure the connection string parameters are spelled/cased properly. In doing so, you can compare them with a working connection string.

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

79227743

Date: 2024-11-26 17:37:46
Score: 1
Natty:
Report link

Finally hired support since I was in a hurry. Seems that at some point the port set somewhere in Docker (don't ask me where exactly) was changed and was not anymore the one set also in CloudFront associated to the instance. This was discovered with the command: docker ps Which printed something like: 0.0.0.0:8081->8080/tcp, :::8081->8080 8081 was the value in the Docker configuration, but in CloudFront we had a 8080. I changed this last to 8081 too and now it works. Certainly the error messages were quite confusing.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ángel Fas

79227737

Date: 2024-11-26 17:36:46
Score: 1
Natty:
Report link

I found that decreasing the "background sampling duration" in instruments preferences helped. The default value is 5, I think, and I set it to 3s.

instruments preferences panel highlighting the Background sampling duration setting

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

79227732

Date: 2024-11-26 17:34:45
Score: 3.5
Natty:
Report link

I did something similar by overriding the render method from RoutablePageMixin. Here is a gist of my implementation.

Reasons:
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: cnk

79227726

Date: 2024-11-26 17:31:42
Score: 7.5 🚩
Natty:
Report link

Can you share the your solution? I'm running into a similar issue

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you share the you
  • Low reputation (1):
Posted by: Ahmad Hasan

79227724

Date: 2024-11-26 17:30:41
Score: 1
Natty:
Report link

i was able to get this to work for my aws aurora postgresql instance by running the following command first:

grant set on parameter log_statement to <master_user>;

then i was able to run the alter role command

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

79227716

Date: 2024-11-26 17:28:41
Score: 2
Natty:
Report link

How some reason nothing worked for me, I had to manually annotate my class with @@JsonSerializable(). Then only build_runner is generating the .g.dart file

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How some
  • Low reputation (0.5):
Posted by: Saravanan

79227712

Date: 2024-11-26 17:27:41
Score: 3
Natty:
Report link

It looks like you have the view field declared in radians from 0 to pi (180°) changing that to your desired radians could fix it

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

79227708

Date: 2024-11-26 17:25:40
Score: 1.5
Natty:
Report link

For new versions: File | Manage IDE Settings | Export Settings

RubyMine printscreen

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

79227707

Date: 2024-11-26 17:25:40
Score: 2
Natty:
Report link

You should explore accessing InventoryAllocDetEnq, setting the filter with your inventory values and availability rules to come up with Quantities

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

79227706

Date: 2024-11-26 17:25:40
Score: 5.5
Natty: 4
Report link

I have the same question. My best guess is that it's only useful when polling from multiple servers to filter the ones that are closer to the client. Apart from that, I don't see how can it be useful to calculate the "proper client time" considering that both formulas use the same parameters, though I might be missing something, it's annoying the lack of explanation on what to do with those variables to sync the client time.

Reasons:
  • Blacklisted phrase (0.5): how can i
  • Blacklisted phrase (1): I have the same question
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: César Muñoz

79227701

Date: 2024-11-26 17:24:39
Score: 1
Natty:
Report link

Open the asset catalog file in Xcode - it's usually named Assets.xcassets. Find the AccentColor entry there - it's automatically generated. Set it to the color you need.

Asset catalog opened in Xcode

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

79227698

Date: 2024-11-26 17:23:39
Score: 3
Natty:
Report link

What I did is I shifted the updating and reordering logic on backend, so my frontend would send only edited item, not the whole state of items.

And based on the nearest right item id I update position of changed item on backend

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (1):
Posted by: IJustStartedLearningCode

79227693

Date: 2024-11-26 17:21:38
Score: 3
Natty:
Report link

According the official RabbitMQ website, messages can be lost for network connection problems and congestions. You do need configure a retry loop if there an error.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sanderson Corrêa

79227686

Date: 2024-11-26 17:17:37
Score: 0.5
Natty:
Report link

Not sure if this is the best way but it works by using the InsertHeader transformer and setting the header name prefixed with "CamelHeader." so that it gets picked up by the connector.

Example yaml configuration:

  class: org.apache.camel.kafkaconnector.https.CamelHttpsSinkConnector
  config:
    transforms: addContentTypeHeader
    transforms.addAuthHeader.type: org.apache.kafka.connect.transforms.InsertHeader
    transforms.addAuthHeader.header: CamelHeader.Content-Type
    transforms.addAuthHeader.value.literal: application/json
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: mkueng

79227684

Date: 2024-11-26 17:17:37
Score: 1
Natty:
Report link

You can create a target/deployment directory within each module that contains a thin jar of the code of that module, plus the dependencies of that module, then invoke gcloud functions deploy with --source=modulename/target/deployment.

Check out the documentation for Build and deploy a thin JAR with external dependencies for the pom.xml adjustments needed.

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

79227682

Date: 2024-11-26 17:16:37
Score: 1
Natty:
Report link

dont return the res. instead use void return after res. like

res.status(400).send({ message: 'You are not valid for this website.' });
return;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Samiul Karim

79227677

Date: 2024-11-26 17:14:36
Score: 2.5
Natty:
Report link

Not sure if relevant after all this time but I have found that setting "R8 code shrinker" under the Android settings for the project will produce a mapping.txt file. May help somebody :)

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

79227674

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

there's a couple ways you can do N dimensional keep, some of them better suited for some problems than others, here's some examples

these can all probably be improved and tweaked in different ways to better fit a specific problem, for more information consider joining our discord, linked in uiua.org

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

79227673

Date: 2024-11-26 17:14:36
Score: 2.5
Natty:
Report link

I compiled LLVM/Clang for rooted aarch64 cellphone following BLFS instructions with LLVM_TARGETS_TO_BUILD="host", which is aarch64 and not using DEFAULT_TARGET_TRIPLE. The build crashed Termux until I made and did swapon for 20G swap file and ran the build with "-j1"

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

79227662

Date: 2024-11-26 17:10:35
Score: 2
Natty:
Report link

You can often directly access the tokenizer from the pipe and call it with your string to get the attention mask:

>>> pipe.tokenizer("Blah blah blah.")
{'input_ids': [101, 27984, 27984, 27984, 1012, 102], 'attention_mask': [1, 1, 1, 1, 1, 1]}

>>> pipe.tokenizer("Blah blah blah.")['attention_mask']
{'attention_mask': [1, 1, 1, 1, 1, 1]}

But even if that's not an option, it looks like you have access to the tokenizer at initialization. Why not use that directly?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Joseph Catrambone

79227648

Date: 2024-11-26 17:04:34
Score: 2.5
Natty:
Report link

You should download the command line tools first from Android Website then using SDK Manager install the SDK

Note: the command line tools include the AVDManager as well See More

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

79227647

Date: 2024-11-26 17:03:34
Score: 4
Natty: 4.5
Report link

As of 2024, Twilio has released a portability api: https://www.twilio.com/docs/phone-numbers/port-in/portability-api

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

79227640

Date: 2024-11-26 17:00:33
Score: 1
Natty:
Report link

If you get on Windows this error:

failed building wheel for qiskit aer

then you need to replace Python in your conda env:

conda install python=3.12

And now you can install qiskit_aer:

pip install qiskit_aer
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oleksii Sylichenko

79227637

Date: 2024-11-26 16:59:33
Score: 3.5
Natty:
Report link

Use NMKD Typescale from OpenModelDB. it's really good one.

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

79227628

Date: 2024-11-26 16:57:32
Score: 3.5
Natty:
Report link

downgrading to numpy version 1.25.1, solved the error!

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

79227625

Date: 2024-11-26 16:56:32
Score: 1
Natty:
Report link

I agree that there is no hard-margin SVM in scikit-learn.

To make our soft-margin SVM closer to a hard-margin SVM

SVC solves the following primal problem:

\begin{align}\begin{aligned}\min_ {w, b, \zeta} \frac{1}{2} w^T w + C \sum_{i=1}^{n} \zeta_i\\begin{split}\textrm {subject to } & y_i (w^T \phi (x_i) + b) \geq 1 - \zeta_i,\ & \zeta_i \geq 0, i=1, ..., n\end{split}\end{aligned}\end{align}

https://scikit-learn.org/1.5/modules/svm.html#svc

$C$ is called the penalty parameter. $C$ is a hyperparameter and will not be changed when training or running the model. The minimiser will only control the $\zeta_i$ parameters.

If $C$ is high, the minimiser gives more importance to reducing the sum of errors. A hard margin classifier has $0$ error. So we need to set $C$ to $\infty$ to make our Soft Margin Classifier act like one.

(However, due to integer value limits in computer programming, we won't be able to set it to $\infty$ itself. We can instead set it to a very large value, which isn't perfect, but replicates the effects)

Higher $C$: Prioritising getting more classifications correctly

Lower $C$: Prioritising having a larger margin

Further Reference:

  1. https://youtu.be/lva5Xn85fHs?si=VBYONQASCg7-YnnM
Reasons:
  • Blacklisted phrase (1): youtu.be
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Andhavarapu Balu

79227620

Date: 2024-11-26 16:55:31
Score: 3.5
Natty:
Report link

Since the dependencies in the answer above are deprecated, I suggest this dependency that does the job.

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

79227611

Date: 2024-11-26 16:52:31
Score: 3.5
Natty:
Report link

Use the point tool to paint a fireball sprite! Shrink your sprite using the size field in the sprite menu if necessary

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

79227609

Date: 2024-11-26 16:51:30
Score: 2
Natty:
Report link

do you change your configMap manually? how do you install the operator into your cluster? how is the operator webhook configured? can you list all settings you defined? what is operator version?

when you asked it restart sometimes do you mean K8sDeployment restarts ? - in this case it is totally normal and your job should take state of your previous job (of course if you set property job.upgradeMode = 'last-state') unless you mean FlinkDeployment restarts - in this case it is treated as a newly created job.

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

79227604

Date: 2024-11-26 16:50:29
Score: 0.5
Natty:
Report link

For anyone looking to test overriding an existing js file:

I realize this is not the exact nature of the question here, but this is the post I found when looking for how to override a js file in Chrome, so maybe it'll help someone else.

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

79227601

Date: 2024-11-26 16:50:29
Score: 8
Natty: 7
Report link

Can anyone help me to build like groupsor.link

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can anyone help me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can anyone help me to
  • Low reputation (1):
Posted by: John Paul

79227600

Date: 2024-11-26 16:50:29
Score: 4
Natty:
Report link

If unauthenticated users should use your post request, there are several ways:

  1. Add RECAPTCHA. Just use this package react-google-recaptcha-v3 in your form, and verify user on submit.
  2. Use FingerprintJS or alternative one to identify abusive users and store the fingerprint in your database to track requests.
  3. And read this issue as well: How effective is the honeypot technique against spam?
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Akbarjon

79227599

Date: 2024-11-26 16:50:29
Score: 3
Natty:
Report link

FIXED: Since I was always checking if the team already exists, the new colors could never be set

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

79227598

Date: 2024-11-26 16:50:29
Score: 4
Natty:
Report link

Given that you are making four separate function calls for each Event ID that you iterate through, 3000 records in 30 seconds might be an optimal result already.

What is it those function calls are doing to return the status? Is there any way you can combine them into fewer functions to save on the amount of exec statements that need to be evaluated and processed?

If there is any way you can avoid a cursor in the first place, you will probably see significant performance improvements. Cursors are handy but typically slower. Could you replicate what the entity function is doing in a CTE or temp table and then join that table to the access/privilege tables to determine the access for each user?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ryan Smith

79227590

Date: 2024-11-26 16:47:28
Score: 2.5
Natty:
Report link

it worked for me, deleted all folders

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kavita