79111128

Date: 2024-10-21 17:29:49
Score: 4
Natty:
Report link

Are you terminating the chat before iterating through the messages? I got the same error when doing so.

You might want to check if the chat is still alive before iterating.

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

79111119

Date: 2024-10-21 17:25:48
Score: 1
Natty:
Report link

Spring Cloud Contract is the culprit.

https://github.com/spring-cloud/spring-cloud-contract/blob/v3.1.7/pom.xml#L599C17-L599C34

As @karim-tafik have posted, we could fix it by overriding all repositories inherited from dependencies to central.

Since we know which repo is the culprit, instead of overriding all repositories to central, we should preferably disable the bad repository only.

<settings>
    <mirrors>
        <mirror>
            <id>central-for-bad-restlet</id>
            <mirrorOf>maven-restlet</mirrorOf>
            <url>https://repo.maven.apache.org/maven2/</url>
        </mirror>
    </mirrors>
</settings>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @karim-tafik
  • Low reputation (1):
Posted by: Chi Kim

79111118

Date: 2024-10-21 17:25:48
Score: 3.5
Natty:
Report link

after a lots of searching 'glue = {"runners.run"}' was the error,it was supposed to be just 'glue = {"runners"}'. (just the package name)

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

79111117

Date: 2024-10-21 17:24:47
Score: 3.5
Natty:
Report link

Cannot be done. Schema registry (scala cliënt) requires the cert to be available on the file system

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Cannot
  • Low reputation (1):
Posted by: Erik

79111103

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

This is the solution that I ultimately went with:

const OTCookieName = 'OptanonConsent';

const OTCookieMatch = document.cookie.match(new RegExp('(^| )' + OTCookieName + '=([^;]+)'));
if (OTCookieMatch) {
    const OTCookieValue = OTCookieMatch[2];

    // replaxe C0003 with whatever OT value we need to check for
    if (OTCookieValue && OTCookieValue.includes('C0003')) {
        // user has opted-in
    }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Darren Gates

79111097

Date: 2024-10-21 17:17:46
Score: 3.5
Natty:
Report link

Oh, thank you very much. Sometimes you don't see the simplest things. I've been trying for a long time and when I read your answers, it's totally clear. It is an array.

Sorry and thanks for your time and answers.

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

79111075

Date: 2024-10-21 17:11:44
Score: 0.5
Natty:
Report link

Both these keywords can be combined. Please refer to the example below

RunKeywordstest
[Tags]    t1
${var_true}=    Set Variable    True
${var_true}=    Convert to Boolean    ${var_true}
${var_false}=    Set Variable    False
${var_false}=    Convert to Boolean    ${var_false}
${status_var}=    Run Keyword If    ${var_true}
...               Run Keyword and Return Status    Should Be Equal    2  2
# Should be True
Log    ${status_var}
${status_var}=    Run Keyword If    ${var_true}
...               Run Keyword and Return Status    Should Be Equal    2  1
# Should be False
Log    ${status_var}
${status_var}=    Run Keyword If    ${var_false}
...               Run Keyword and Return Status    Should Be Equal    2  2
# Should be None as due to var_false, next line wouldn't run
Log    ${status_var}

Output: Code Output

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

79111052

Date: 2024-10-21 17:04:41
Score: 2.5
Natty:
Report link

i cant even reply with the code updates, i got rid of all errors so i need you to try this, how do indent with 4 spaces, i have tried every button and even manually put 4 x spaces......

Or if you have reddit message me and i can send you this updates XML

AcademicMistake

Reasons:
  • Blacklisted phrase (1): how do i
  • Blacklisted phrase (0.5): i need
  • Whitelisted phrase (-1): try this
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Robert Hartley

79111051

Date: 2024-10-21 17:04:41
Score: 2
Natty:
Report link

This is supposed to be helpful, but I wasn't able to leverage it in my case. Hope it helps you: https://microsoft.github.io/autogen/0.2/docs/notebooks/JSON_mode_example/

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Milad

79111046

Date: 2024-10-21 17:03:41
Score: 2.5
Natty:
Report link

Import the csv file using the Import/Export data option, Select the file you want to Import Go to Options, scroll down to "Escape" select double quotes instead of single quotes "

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

79111043

Date: 2024-10-21 17:02:40
Score: 2.5
Natty:
Report link

Title has nothing to do with your actual problem. Neither does your code, except for import statement. Search for "python no module named", there are plenty of possible reasons. This might help.

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

79111040

Date: 2024-10-21 17:01:40
Score: 1.5
Natty:
Report link

(1) Simply install the LTS version of Node.js instead of the current/latest; that alone will solve any problems.

(2) If you want to use the newest version of Node here's what you can do:

install an extra package from npm with this command:

npm install cross-env

Then, adjust your "start" and/or "dev" script in your package.json file to instead be this:

"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider wp-scripts start"

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

79111039

Date: 2024-10-21 17:01:40
Score: 3.5
Natty:
Report link

The solution above to downgrade to 1.26.4 fixed my problem

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

79111038

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

If you have the pom.xml file, you can easily check it on the Vulert playground. It will list all vulnerabilities caused by the dependencies in the pom.xml.

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

79111037

Date: 2024-10-21 17:00:40
Score: 2.5
Natty:
Report link

For those who still reach this post...

Try using #pragma warning disable S1118

Preprocessor Directives - Pragmas (Microsoft Learn)

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

79111034

Date: 2024-10-21 16:59:39
Score: 1.5
Natty:
Report link

Could you use NotificationCenter observers? https://developer.apple.com/documentation/foundation/notificationcenter/1415360-addobserver



let audioSession = AVAudioSession.sharedInstance()

NotificationCenter.default.addObserver(self, selector: #selector(handleVolumeChange(_:)), name: AVAudioSession.volumeChangedNotificationName, object: nil)


Then handle your logic to pop-up the alert for changing volume in another function handleVolumeChange

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Anonymous

79111030

Date: 2024-10-21 16:59:39
Score: 3.5
Natty:
Report link

Just tried it with an Ubuntu Image and it works... strange... Seems to be a problem with Debian Bookworm.

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

79111027

Date: 2024-10-21 16:58:39
Score: 3
Natty:
Report link

Thanks @rioV8! I have found a workaround to this in case anyone need :) I override the key in the following way

{
        "key": "tab",
        "command": "insertSnippet",
        "when": "editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus"
}

i.e., remove !inSnippetMode

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @rioV8
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yuanhao JIANG

79111023

Date: 2024-10-21 16:57:39
Score: 2.5
Natty:
Report link

Just read the textbook and study for your own class and do your own homework. You somehow managed to not even post the question either. Your question was copy and pasted from your assignment for class and you didn't even paste the whole question.

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

79111011

Date: 2024-10-21 16:54:38
Score: 3
Natty:
Report link

Bundle overflow can be managed using a library https://github.com/kernel0x/bundlesaver that caches data, so only the UUID is passed to the Binder

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

79110994

Date: 2024-10-21 16:50:36
Score: 5.5
Natty: 6.5
Report link

This Blog will clear all of your doubts about Coalesce: Mastering COALESCE in SQL: A Comprehensive Guide

Reasons:
  • Blacklisted phrase (1): This Blog
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dishant Singh

79110992

Date: 2024-10-21 16:50:36
Score: 3.5
Natty:
Report link

I have figured out how to create this new customer.

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

79110985

Date: 2024-10-21 16:48:35
Score: 1
Natty:
Report link

Try to add the line below to your Dockerfile, it will install perl:

RUN micromamba install -y -n base -c conda-forge perl
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: poisoned_monkey

79110981

Date: 2024-10-21 16:47:35
Score: 0.5
Natty:
Report link

In my case i was using unrar program to extract a file in ubuntu which might be under the hood using some kind of script that throws this error inappropriate ioctl for device.

Turns out i was running out of space, clearing space caused it to extract properly.

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

79110974

Date: 2024-10-21 16:44:34
Score: 0.5
Natty:
Report link

For anyone else suffering from Apple,try playsinline attribute on video tag. In some rare cases, check whether the phone is in low battery (Adam Comment).

It was working fine for me up until I observed it broken on iphone on one of my apps. So it seems like it's a recent thing.

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

79110972

Date: 2024-10-21 16:43:34
Score: 1
Natty:
Report link

Support for import.meta was added in eslint 7.2.0 (June 2020) however in order to make it work I had to edit .eslintrc.json and change ecmaVersion from 2018 to 2020.

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

79110945

Date: 2024-10-21 16:34:31
Score: 0.5
Natty:
Report link

Use <wbr> in stead of %nbsp; or <nobr>.

<wbr> works like <br> but it will only trigger where necessary.

Simply replace all commas "," with ",<wbr>".

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr

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

79110942

Date: 2024-10-21 16:33:31
Score: 0.5
Natty:
Report link

In my case the problem was someone implemented Map<list<T1>, list<T2>>. Same case after update for .NET8 and AutoMapper 13 I encountered similar message (not too much descriptive for me).

My solution was removing the list and "assume" AutoMapper is enough smart to map the list. Map<T1, T2>

I said "assume" because I added this in the startup:

public static List<TDestination> MapList<TSource, TDestination>(this IMapper mapper, List<TSource> source)
{
   return source.Select(x => mapper.Map<TDestination>(x)).ToList();
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Juanan

79110941

Date: 2024-10-21 16:33:31
Score: 3.5
Natty:
Report link

See also https://defkey.com/, which lets you search for a specific shortcut and see if any known application uses it. E.g., https://defkey.com/search?s=win%2Bctrl%2Ba.

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

79110938

Date: 2024-10-21 16:33:31
Score: 3
Natty:
Report link

The INSERT statement conflicted with the CHECK constraint "CHK_MobileLength". The conflict occurred in database "ga_labour", table "sms.SMS_Spooler_MPSEDC"

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

79110933

Date: 2024-10-21 16:32:31
Score: 1.5
Natty:
Report link

Yes, you can avoid publishing on npm by installing the package directly from a GitHub or GitLab private repository. Simply use the command: npm install <git remote url>.

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

79110931

Date: 2024-10-21 16:31:28
Score: 6 🚩
Natty:
Report link

You need to ensure that you have the PHP Extension "PDO" installed. Laravel is not providing your PHP installation. I assume that you are using Windows here is how to install it: How do I install PDO drivers for PHP on Windows?

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Genetic

79110929

Date: 2024-10-21 16:31:28
Score: 2
Natty:
Report link

You're looking for the CSS property display: contents. This property effectively makes the parent element transparent, allowing the children to be rendered directly in the layout.

It has good support, except for buttons. https://caniuse.com/css-display-contents

Cheers! :)

Reasons:
  • Blacklisted phrase (1): Cheers
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Monika Kołodziejczyk

79110919

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

The UI steps to get the raw file appear to have changed, but when I'm looking at a certain branch or commit, I have to click the 3-dot menu at the top right of the file diff, then click "View entire file".

Once I'm at the file, I click its 3-dot menu and select "Open in Source". That should take you to a page with the committed file version, but that may not be easy to copy-paste if you need to.

To view just the file contents as text on a web page, click the 3-dot menu at the top right of the file path, then select "Open raw". This makes it easy to select all text or get the full path.

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

79110914

Date: 2024-10-21 16:26:26
Score: 1
Natty:
Report link

I added these lines to the file application.properties & then in that page (login page show below) i give the respective user-name and password. Then my page is showing..

spring.security.user.name=<your_username>
spring.security.user.password=<your_password>
spring.security.user.roles=USER,ADMIN

The Login Page is : https://i.sstatic.net/xFlFlvOi.png

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

79110910

Date: 2024-10-21 16:24:26
Score: 2
Natty:
Report link

I ended up placing the modal inside the html of CoreUI's default-layout component, and making it accessible through a service, so that it was possible to show it from within the header component. I still couldn't figure out why hosting the modal itself inside the header component produces this odd behavior. This effectively serves the same purpose as in Naren's answer (which is correct), and still makes it possible to show the modal from child components such as the header.

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

79110894

Date: 2024-10-21 16:21:25
Score: 4.5
Natty: 4.5
Report link

Check out this make-use-of article about Types and another one like it; Default Programs Editor.

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

79110892

Date: 2024-10-21 16:20:24
Score: 1
Natty:
Report link

File permission issue for me - executed below and worked fine

chmod 755 /path/to/java_sdk_17/bin/java

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

79110891

Date: 2024-10-21 16:20:24
Score: 1.5
Natty:
Report link

For scripts it's better to use the following:

export KUBERNETES_SERVICE_CIDR="$(az aks show --resource-group $RG --name $AKSNAME --query networkProfile.serviceCidr -o tsv)"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrey Babushkin

79110885

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

Computing a line-plane intersection is a well known problem. Check this Wikipedia page and this post and this other post.

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

79110882

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

You can try re-building or cleaning the solution again before trying to run it. What happens is the debugger detects difference between your current source code versus the current build so the debugger is not attached.

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

79110876

Date: 2024-10-21 16:15:22
Score: 5
Natty: 7
Report link

Entre français on peut se comprendre mais je n'ai pas tout à fait compris la solution, pourrais tu m'expliquer ?

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

79110862

Date: 2024-10-21 16:10:21
Score: 1.5
Natty:
Report link

Here are some useful commands:

  1. dump out current changelist specs where you can save it to a text file: p4 change -o #CL > backup.txt
  2. modify your backup.txt maybe via sed -i so you can automate
  3. p4 change -i < backup.txt to overwrite the existing files.
  4. p4 change -o #CL to double check everything is done cleanly.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Quantum

79110854

Date: 2024-10-21 16:07:19
Score: 0.5
Natty:
Report link

Aside from stopping the compiler error by disabling ASSIMP_TOOLS, you may still want to build the assimp viewer as it's very useful for debugging. Even with DirectX installed, assimp may block the tool from being compiled. If you believe DirectX is properly installed, you can delete the check for DirectX; the way assimp checks for DirectX seems to be wrong. Removing the BUILD_ASSIMP_VIEW setting based on if "FIND_PACKAGE" returns true allows me to build assimp viewer image

https://github.com/assimp/assimp/blob/ce0a50ec21bfa4bb2535a4fbd87b67feadc0cea0/CMakeLists.txt#L753-L758

I created a GitHub issue as well https://github.com/assimp/assimp/issues/5820

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

79110849

Date: 2024-10-21 16:05:19
Score: 3.5
Natty:
Report link

I'm not sure this is enough information to help.

can you share the output of prefect version and some actual code / tracebacks that illustrate what you're trying to do and how exactly it's going wrong?

feel free to join the Slack if that'd be easier for you

Reasons:
  • RegEx Blacklisted phrase (2.5): can you share
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Stoat

79110847

Date: 2024-10-21 16:05:19
Score: 3.5
Natty:
Report link

Как вариант ещё можно использовать функцию CAST для преобразовани типа, если используете SQLAlchemy 2.0

Название_модели.название_поля.cast(Text)

Естественно нужно все импортировать:

from sqlalchemy import cast, Text

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Виктор Веретнов

79110846

Date: 2024-10-21 16:05:19
Score: 0.5
Natty:
Report link

I think what I've seen is similar to Performance reviews, where you need to get the report data source and plug it into the BIRT report design to generate the document.

There is a contributed solution that gets Merit Statements that can be imported. Here is the community link that has more information on that: Attachment Extraction Utility for HCM.

Reasons:
  • No code block (0.5):
Posted by: Wyatt Shipman

79110840

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

The problem is as someone commented. The original code (I'm taking the class as well) did prescribe changing COPD$Diabetes from an integer to a factor for a previous test. The course assumes that you retain your same R program and coding session and are starting exactly where you left off in each subsequent activity.

Run COPD$Diabetes as a factor and then run the new script.

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

79110828

Date: 2024-10-21 16:00:17
Score: 2.5
Natty:
Report link

même combat :(

In file included from c:\Users\Eric\Documents\Arduino\libraries\ESP32TimerInterrupt\src/ESP32TimerInterrupt.h:60, from C:\Users\Eric\Documents\Arduino\Debug_RGB_Relay_web_StructRGB_FanRPM3\Debug_RGB_Relay_web_StructRGB_FanRPM3.ino:39: c:\Users\Eric\Documents\Arduino\libraries\ESP32TimerInterrupt\src/ESP32TimerInterrupt.hpp: In member function 'bool ESP32TimerInterrupt::setFrequency(const float&, bool (* const&)(void*))': c:\Users\Eric\Documents\Arduino\libraries\ESP32TimerInterrupt\src/ESP32TimerInterrupt.hpp:347:23: error: 'TIMER_BASE_CLK' was not declared in this scope 347 | _frequency = TIMER_BASE_CLK / TIMER_DIVIDER; //1000000; | ^~~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1

Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): ~~~~~~~~~~~~~
  • Low reputation (1):
Posted by: SI Quidam31

79110827

Date: 2024-10-21 15:59:17
Score: 0.5
Natty:
Report link

In my case the problem was that I removed a needed .Net package. I solved by opening Visual Studio Installer and checking again the box "Game Development with Unity", doing this it will download again all the missing packages.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Max Di Fraia

79110824

Date: 2024-10-21 15:59:17
Score: 0.5
Natty:
Report link

I would choose the simple way:

CREATE TABLE calls
(
    call_id SERIAL PRIMARY KEY
    /* other fields */
);

CREATE TABLE files
(
    file_id SERIAL PRIMARY KEY,
    call_id INT REFERENCES calls (call_id) ON DELETE CASCADE
    /* other fields */
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nik0x1

79110822

Date: 2024-10-21 15:58:17
Score: 1
Natty:
Report link
def create_chunks(set_of_emails, chunk_size):
    """Create chunks from queryset."""
    for i in range(0, len(set_of_emails), chunk_size):
        yield itertools.islice(set_of_emails, i , i + chunk_size)

# uses:
for chunk in create_chunks(invalid_emails_, chunk_size):

and you can iterate over set

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

79110821

Date: 2024-10-21 15:58:17
Score: 3
Natty:
Report link

Update in 2024, there is a library that can help fix the TransactionTooLargeException by efficiently managing the size of data. This library ensures that the data being saved in the Bundle does not exceed the transaction buffer limit.

You can find the BundleSaver library on GitHub: https://github.com/kernel0x/bundlesaver

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

79110815

Date: 2024-10-21 15:57:16
Score: 2
Natty:
Report link

One solution is not to use the switch and keep the lookup to perform the select with a case (if possible) or use a stored procedure if the switch and lookup are on teh database it is possible

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

79110810

Date: 2024-10-21 15:55:16
Score: 1
Natty:
Report link

you can use template instead of layout but the component of template should be client component , you can not access search params in this components directly props of the component

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abderrahmane BOUHIR

79110804

Date: 2024-10-21 15:54:15
Score: 2
Natty:
Report link

I found a solution on my end, basically, I just added 2 Policies for my USERS table, for INSERT and SELECT. Let me know if this works!

INSERT - Enable insert for authenticated users only

SELECT - Enable users to view their own data only

CHECK HERE FOR THE POLICY DESCRIPTIONS

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

79110803

Date: 2024-10-21 15:54:15
Score: 1
Natty:
Report link
Dim tokenHTTP As Object
Set tokenHTTP = CreateObject("MSXML2.ServerXMLHTTP")
Dim tokenJSON As String
Dim tokenURL As String
Dim accessToken As String
tokenURL = "https://googlesample.api.google/okta"
tokenHTTP.Open "POST", tokenURL, True
tokenHTTP.setRequestHeader "Content-type", "application/json"
tokenHTTP.setRequestHeader "username", "myusername"
tokenHTTP.setRequestHeader "password", "mypassword"

tokenHTTP.send (tokenURL)
tokenJSON = tokenHTTP.responseText 
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Eli

79110795

Date: 2024-10-21 15:52:15
Score: 1.5
Natty:
Report link

I'm a little late to this thread and have just run into this problem also.

For me, the right solution was to change the ServiceBusReceivedMessage to ServiceBusReceivedMessage[] and set "IsBatched = true" on the ServiceBusTrigger

Yeah, it's a tiny change, but I overlooked it for a good few hours!

enter image description here

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

79110791

Date: 2024-10-21 15:51:14
Score: 1
Natty:
Report link

Yep. you need to serialize those operations. Even though you're using std::atomic for is_shutdown, there's still a race condition.

This is what can happen:

Thread t2 checks is_shutdown and sees it's false (#2).

Before t2 calls use(fd), thread t1 sets is_shutdown to true and closes fd (#1).

Now t2 calls use(fd) (#3) on a closed fd.

This means t2 might use fd after it's closed, which can cause errors. The check (is_shutdown.load()) and the action (use(fd)) are not happening together atomically.

You should use a mutex or some synchronization to make sure that when one thread is using fd, the other isn't closing it. That way either the thread sees that shutdown has happened and doesn't use fd, or it safely uses fd without worrying about it being closed.

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

79110788

Date: 2024-10-21 15:51:14
Score: 1
Natty:
Report link

Try

Dim wsSheet As Worksheet

For Each wsSheet In Worksheets
wsSheet.Unprotect
    wsSheet.Protect DrawingObjects:=False, UserInterfaceOnly:=True
Next
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Red Hare

79110783

Date: 2024-10-21 15:48:14
Score: 1.5
Natty:
Report link

Update: The solution is to disable vMotion on the VM where Kafka is deployed.

It seems that whenever vMotion perform a live migration, Kafka will be impacted and will result in broken pipe error. According to this link, Confluent also recommends to disable the vMotion as it can cause cluster outage.

After disabling the vMotion, my Kafka cluster never encounters any broken pipe issues again. This still doesn't answer why it won't automatically rejoin the cluster after encounter broken pipe error, but at least it does solve the broken pipe error.

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Darwin

79110762

Date: 2024-10-21 15:44:13
Score: 2
Natty:
Report link

In recent zod, You can get them by keyof().options.

const keys = schema.keyof().options

enter image description here

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

79110755

Date: 2024-10-21 15:42:12
Score: 1
Natty:
Report link

I figured it out. I had to add 'grid-flow-col' to my element that has the 'grid-rows-5' on it.

Reasons:
  • Whitelisted phrase (-2): I figured it out
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: apex2022

79110753

Date: 2024-10-21 15:41:10
Score: 6 🚩
Natty:
Report link

enter image description here

Each section is component.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: John Roby

79110747

Date: 2024-10-21 15:39:09
Score: 1
Natty:
Report link

Thancks for @ascendants 's mention, I found a other way in sciPy.

from scipy.spatial import cKDTree

data: list[] = ...
kdtree = cKDTree(data)

# `query_ball_point` return `list[list[int]]`, it is a list of neighbors indeces
neighbors = kdtree.query_ball_point(data, r=Radius, workers=-1) # set workders to infinity many be quikly

# settle a for loop to fix it
num: list[int] = []
for i in neighbors:
    num.append(len(i)-1)  # look like it will count itself, so decrease 1

I had run it with a lammps result, the performance is good with 4300 atom

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

79110740

Date: 2024-10-21 15:38:09
Score: 3
Natty:
Report link

Every time I make a git commit, I'm at a loss for what to write. But knowing that there's AI, someone developed this: autocommit.top

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

79110737

Date: 2024-10-21 15:37:08
Score: 0.5
Natty:
Report link

sass should be reinstalled with gem intall sass or npm install -g sass.

After running one of above commands, try to install project again by running bundle install or bin/setup in Rails 7.

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

79110732

Date: 2024-10-21 15:35:08
Score: 1
Natty:
Report link

PERFECT SOLUTION BELOW

This post might be dead and I know it already has an accepted answer. However, after a couple of hours of research I found the perfect solution.

You can just subclass the PopupMenuButton and override it's handleTap method like so:

class NonDismissingPopupMenuItem<T> extends PopupMenuItem<T> {
  const NonDismissingPopupMenuItem(
      {super.key,
      super.value,
      super.onTap,
      super.enabled = true,
      super.height = kMinInteractiveDimension,
      super.padding,
      super.textStyle,
      super.labelTextStyle,
      super.mouseCursor,
      super.child});

  @override
  PopupMenuItemState<T, PopupMenuItem<T>> createState() => _NonDismissingPopupMenuItem<T, PopupMenuItem<T>>();
}

class _NonDismissingPopupMenuItem<T, W extends PopupMenuItem<T>> extends PopupMenuItemState<T, W> {
  @override
  void handleTap() {
    widget.onTap?.call(); // this override prevents popup menu to close
  }
}

This doesn't call the parent's handleTap and therefore doesn't close the PopupMenu while still enabling you to use a tap callback.

Credits to this SO post (which I wish I could've found earlier): How not to dismiss a PopUpMenuButton after selecting an item?

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

79110730

Date: 2024-10-21 15:35:08
Score: 2.5
Natty:
Report link

Try this tool! You can select / load deformers from an origin geometry and apply the same deformers to other selected geos! https://estrolapax.gumroad.com/l/NWDefLoader

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nick

79110727

Date: 2024-10-21 15:35:08
Score: 1.5
Natty:
Report link

To get back the whole IDE theme

Open IDE settings > Appearance & Behavior > Appearance

Select Theme Darcula

To get back only code fonts and colors:

Open IDE settings > Editor > Color Scheme

Select Scheme Darcula

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

79110723

Date: 2024-10-21 15:34:08
Score: 0.5
Natty:
Report link

ImageCodecException: Failed to load network image

Connected to the VM Service. Error loading image: ImageCodecException: Failed to load network image. Image URL: https://firebasestorage.googleapis.com/v0/b/phuong-7fa75.appspot.com/o/images%2F1729172605732.jpg?alt=media&token=7bac1161-0d34-4e14-a067-da5b894007bf Trying to load an image from another domain? Find answers at: https://flutter.dev/docs/development/platform-integration/web-images


Two working simple solution for this error , the actual problem is we cant load network image in an web especialy chrome(web-javascript), i don't know any other will work, but in chrome it will not work, for this you can do is, just run this code in terminal in VSCODE

 flutter run -d chrome --web-renderer html

If it works just give me a like....

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Abhishek R

79110717

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

I found a decent solution. The downside is that it stops the scroll completely after exiting the carousel. Meaning, it does not take into account any momentum from the mouse velocity; it just stops immediately. However, in my opinion, it's a style choice rather than a downside.

By using style={{ overflowX: "auto", scrollSnapType: 'none' }} in the carousel div and style={{ scrollSnapAlign: 'none' }} for each carousel item, I was able to 'solve' the multiple carousel bug.

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

79110711

Date: 2024-10-21 15:29:06
Score: 2
Natty:
Report link

Solsniffer API’s are enterprise-grade, fit for any Solana project. The on-chain intelligence insights are a game-changer for optimized decision making when trading by accessing analyzed data from the Solana blockchain via APIs.

The scans are fast and accurate, delivering reliable results quickly with its optimized algorithms. Get this detailed data on any Solana token, such as the security analysis, liquidity pools tracking, and the top holders analysis.

Some use cases are for security and compliance, for token security alerts, automated token vetting for new listings, detect scammers in top holders and more.

Try the free plan: https://solsniffer.com/api-services/

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

79110708

Date: 2024-10-21 15:28:06
Score: 4.5
Natty: 4
Report link

Applying map_reduce()... SUCCESS! $ tar -zcvf password.zip *.password = *******| $ Success! Username is: + https://www.instagram.com/amore_o4o7_?igsh=MWszc2d5bDcwczJ3bw== +/encryption/4055001556657& $_GET_password from the link below| _Successfully accessed. to <& date $

Reasons:
  • Blacklisted phrase (1): the link below
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ali Tojaliyev

79110696

Date: 2024-10-21 15:24:04
Score: 1
Natty:
Report link

You can use "react-native-rsa-native" how have metods to generate RSA public and private keys... an verify and sing. from https://www.npmjs.com/package/react-native-rsa-native

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

79110686

Date: 2024-10-21 15:21:03
Score: 3
Natty:
Report link

Wow, Albert, this is above and beyond, can't thank you enough for taking the time. The email analogy might be a common thing in ASP.NET circles but it's bloody brilliant, best description I've seen, thanks for that too.

After some trouble I decided to try your code verbatim and from my test page removed the master page dependency and pasted in your code, the page shows the zero but it never changes because the session variable in the tick event is always zero. :o/

Details of my overall setup:

The first page of my app is a login page. Currently it simply redirects to my test page using Response.Redirect("TestForm.aspx", True) in it's _LoadComplete event.

Early on with this project Session variables weren't working in VisualStudio, I'd set it one place but it wasn't available in another, though they worked when I published to the webserver. After turning on the "ASP.NET State Service" and updating my web.config with mode="StateServer" I haven't had a problem since.

But, something isn't right, the result on the page shows the zero, but it doesn't change and the Session variable is always zero in the _Tick event. The code below is your code with only the two Debug.Print lines added and the interval of the loop reduced from 20 to 5. When I run this code I'm getting this result in the Immediate window, with the "Exception thrown:" line being the redirection to the test page, of course:

Exception thrown: 'System.Threading.ThreadAbortException' in mscorlib.dll
Session var in the loop: 1
iStep in Timer1_Tick: 0
Session var in the loop: 2
iStep in Timer1_Tick: 0
Session var in the loop: 3
iStep in Timer1_Tick: 0
Session var in the loop: 4
iStep in Timer1_Tick: 0
Session var in the loop: 5
iStep in Timer1_Tick: 0
iStep in Timer1_Tick: 0
iStep in Timer1_Tick: 0
.
.
.

What am I missing?!

Thanks again

XML:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestForm.aspx.vb" Inherits="TekntypeUpDownLoad.TestForm" %>

<html xmlns="http://www.w3.org/1999/xhtml">
    <body>
        <form id="TstForm" runat="server">

            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

            <asp:Button ID="cmdStart" runat="server" Text="Start"
                OnClick="cmdStart_Click" />

            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    Current Progress:
                    <asp:Label ID="Label1" runat="server" Text=""></asp:Label>

                    <asp:Timer ID="Timer1" runat="server"
                        Enabled="False"
                        Interval="1000"
                        OnTick="Timer1_Tick">
                    </asp:Timer>

                </ContentTemplate>
            </asp:UpdatePanel>
        </form>
    </body>
</html>

VB:

Public Class TestForm
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub cmdStart_Click(sender As Object, e As EventArgs)

        Session("Progress") = 0

        Dim MyThread As New Threading.Thread(
        Sub()

            For i = 1 To 5
                Session("Progress") = i
                System.Threading.Thread.Sleep(1000)
                Debug.Print("Session var in the loop: " & Session("Progress"))
            Next

        End Sub)

        MyThread.Start()
        Timer1.Enabled = True

    End Sub

    Protected Sub Timer1_Tick(sender As Object, e As EventArgs)

        Dim iStep As Integer = Session("Progress")

        Debug.Print("iStep in Timer1_Tick: " & iStep)

        Label1.Text = iStep

        If iStep >= 5 Then
            Timer1.Enabled = False
        End If

    End Sub
End Class
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Ken Krugh

79110682

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

the only stupidest problem was that I had written UseCors() after UseAuthentication() and UseAuthorization() methods and after I changed the order like this in config files everything was fixed. I almost waste 2 days for this problem. which was of course my fault.

    app.UseCors("AllowSpecificOrigins");

    app.UseAuthentication();

    app.UseAuthorization();
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: b. tsutskiridze

79110676

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

The error suggests that chat.get() returns a list, which can be iterated like so:

for c in chat.get():
    # do what you need to here
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sam

79110673

Date: 2024-10-21 15:17:02
Score: 5
Natty: 5.5
Report link

I know this is an old topic, but it is perpetually relevant. I am seeing a weird phenomenon on one of my Joomla sites that appears to have the behavior of a p:first-of-type or p:nth-of-type styling where the first and second paragraphs in an article have different font sizes. This only appear to happen on mobile devices where an otherwise un-styled "p" ends up rendering with a larger font than the preceding "p".

So my question is, how can this be overridden without changing the default font for "p"?

Thanks in advance, Bruce

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Bruce S

79110671

Date: 2024-10-21 15:17:02
Score: 2.5
Natty:
Report link

You can skip the header while reading like this.

TextIO.read().from("CsvFilePath").withSkipHeaderLines(1)

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

79110669

Date: 2024-10-21 15:16:01
Score: 4
Natty:
Report link

Could it use 0-based numbering? (i.e., try 0 instead of 1)

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

79110661

Date: 2024-10-21 15:14:00
Score: 5
Natty:
Report link

I can't upvote or add a comment but Alberto, your solution was my solution, we are working in a school so have Lightspeed doing web filtering, added the address enterpriseregistration.windows.net into a NO SSL Decrypt list and happy days instantly started working!

Thanks :)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): upvote
  • RegEx Blacklisted phrase (2): can't upvote
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user27914490

79110656

Date: 2024-10-21 15:11:59
Score: 3
Natty:
Report link

The problem I had was customizing the home or main page, so I put index.tsx in the file name and called it and it was resolved immediately.

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

79110652

Date: 2024-10-21 15:11:59
Score: 2
Natty:
Report link

To solve this issue, you must be using either Node 18 or 20 as mentioned in the Backstage documentation.

nvm use 18 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shreeya Nallagonda

79110645

Date: 2024-10-21 15:10:59
Score: 2.5
Natty:
Report link

You will need expo config plugin that copies your widget Swift UI code when running expo prebuild. I believe this config plugin will resolve your roadblocks https://github.com/EvanBacon/expo-apple-targets

For creating lock screen ios widgets. Here's some tutorial references. https://www.createwithswift.com/creating-a-lock-screen-widget-with-swiftui/

Highly recommend you go through this arcticle. https://evanbacon.dev/blog/apple-home-screen-widgets

Hopefully it resolves your problem.

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

79110643

Date: 2024-10-21 15:09:59
Score: 2.5
Natty:
Report link

Yes, they are allowed. This is not an interpretation of Make by vim. If something is wrong with auto indent or syntax highlighting you should try watching your vim's plugins and dotfiles, maybe you are missing something.

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

79110638

Date: 2024-10-21 15:08:58
Score: 1
Natty:
Report link

Using a Set seems like a good idea but in js when you add arrays to a Set, it checks them by reference, not by value. So even if two arrays have the same numbers, they are considered different if they are different objects.

That's why when you do coordinateSet.has([1,2]), it returns false, even though [1,2] is in the set. Because [1,2] is a new array.

Common way to fix this is to convert the coordinates to strings, like "1,2", and store those in the Set. Then you can check if the Set has "1,2". Feels like a hack, but it's a common in js.

js doesn't have immutable tuples like some other languages. So using arrays or objects won't solve the problem unless you can ensure you're using the same instances.

Another option is to create a unique key for each coordinate. e.g. you combine the x and y values into a single number or string that uniquely represents the coordinate.

Using strings as keys is simple and works well. It's also efficient because string comparisons are fast.

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

79110637

Date: 2024-10-21 15:08:58
Score: 2.5
Natty:
Report link

So i found a Postman video on setting up Google OAuth, followed that, found out i had some information in the Auth URL wrong in the OAuth 2.0 set up on postman along with a Client Authentication was toggled to the wrong setting for me. Ran that. Received a token, used as bearer and no error anymore. Onto the next step! TY so much for everyone's help.

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

79110628

Date: 2024-10-21 15:04:55
Score: 10.5 🚩
Natty: 6.5
Report link

Burak Abi did you find any solution? Im tryna solve this problem for a month :)

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did you find any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Semih Çakır

79110627

Date: 2024-10-21 15:04:55
Score: 0.5
Natty:
Report link

the new #Preview macro does not support it but you can go back to the PreviewProvider struct and achieve exactly what you want:

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
            .previewDevice(PreviewDevice(rawValue: "iPhone 16"))
            .previewDisplayName("iPhone")
        
        ContentView()
            .previewDevice(PreviewDevice(rawValue: "iPad Air 5"))
            .previewDisplayName("iPad")
    }
}

enter image description here

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

79110624

Date: 2024-10-21 15:03:55
Score: 4
Natty:
Report link

Use something other than FreeMarker

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

79110622

Date: 2024-10-21 15:02:54
Score: 9.5
Natty: 8
Report link

Did you manage to figure out the issue and find a solution?

Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to figure out the
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Parth Parakh

79110620

Date: 2024-10-21 15:02:54
Score: 1.5
Natty:
Report link

You should just initialize the coins in GameController, and also instead of resetting the coin balance inside gameReady(), pass the current coins from GameController to View when restarting the game.

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

79110618

Date: 2024-10-21 15:01:54
Score: 8.5
Natty: 7
Report link

I'm trying to import an SVG file into Adobe Illustrator using the Variable Importer tool, but I'm a bit confused about how to do it. I understand how to use the Variables panel, but I'm not sure how to structure my SVG file or data file (like CSV or XML) so that Illustrator can import it properly.

Could someone provide a step-by-step guide or perhaps a screenshot showing how to link an SVG to variables in Illustrator?

Thanks in advance for your help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Could someone provide
  • RegEx Blacklisted phrase (3): Thanks in advance
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27914333

79110611

Date: 2024-10-21 15:00:53
Score: 1.5
Natty:
Report link

Check your web.xml configuration. Be careful on how you write your XML. For example: <servlet></servlet> instead of <servelet></servelet> can cause this error.

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

79110610

Date: 2024-10-21 15:00:53
Score: 1
Natty:
Report link

in my case I was setting content type header to 'application/json' and returning "something like a json response" processResults fired just when I forced my response as "json_encode" (PHP)

i.e. returning

{results:[{id: 1,text:"one option"},{id: 2, text: "another option"}]}

did not work. But

{"results":[{"id":"1","text":"one option"},{"id":"2","text":"another option"}] }

did. So as of PHP returning

json_encode( (object)array('results'=>array((object)array('id'=>1, 'text'=>'opt.1'))))

worked OK

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Enrique Vizioli

79110609

Date: 2024-10-21 15:00:53
Score: 2
Natty:
Report link

So, I need to access the self.savedpasswords instance, but over in the CreatePassword(self) component.

Ok, I don‘t know of I got that correctly, but I think what you want is just a way to have a reference to an object of another type. In Python, objects are usually treated as references, so you can have an object “stored” at two locations at the same time.

So if you need to access the savedpasswords from a CreatePassword object, I’d recommend just storing that savedpasswords inside createpassword like this:

class App(tk.Tk):
    def __init__(self):
        # your previous code..

        self.savedpasswords = SavedPasswords(self)
        self.createpassword = CreatePassword(self)
        # save savedpasswords in createpassword
        self.createpassword.saved_pw_ref = self.savedpasswords

Then, inside CreatePassword, you can access that reference:

class CreatePassword:
    # some method that needs access to savedpasswords
    def some_method(self):
        self.saved_pw_ref.do_something()
        self.saved_pw_ref.do_something_else()
        # …

If you don’t like setting attributes from outside, you can also create a method to save the reference:

class CreatePassword:
    def set_saved_pw_ref(self, ref):
        self.saved_pw_ref = ref

and then inside App you can call

self.createpassword.set_saved_pw_ref(self.savedpasswords)

Or you can also pass savedpasswords to the constructor of CreatePassword and then store it, etc..

I think for your code this is the easiest solution, however there might be other options if you refactor the code, it also depends on what savedpasswords and createpassword need to do at the end of the day, but this solution should work for you.

Please tell me if you have any questions or if I understood something wrong.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2.5): Please tell me
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: axolotlKing0722

79110596

Date: 2024-10-21 14:57:52
Score: 2
Natty:
Report link

This was added: https://github.com/GoogleCloudPlatform/prometheus-engine/blob/v0.12.0/doc/api.md#exportspec

You can access the operatorconfig:

kubectl get -n gmp-public operatorconfig/config
NAME     AGE
config   165d

Here is the example they provided: https://github.com/GoogleCloudPlatform/prometheus-engine/blob/v0.12.0/examples/export-write/README.md

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

79110595

Date: 2024-10-21 14:57:50
Score: 6 🚩
Natty:
Report link

Have you looked at/tried this doc?

https://www.howtographql.com/graphql-js/8-filtering-pagination-and-sorting/

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

79110575

Date: 2024-10-21 14:52:48
Score: 4.5
Natty:
Report link

I tried in cmd and in git bash, in both I was able to verify the version of "node". But I still have the same problem when running "npm run start".

I have in path "C:\Program Files\nodejs", but I noticed and I don't know if it's relevant that there is a line for npm "C:\Users\xx\AppData\Roamming\npm

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (1):
Posted by: Adrian Quevedo