79416516

Date: 2025-02-06 00:29:43
Score: 0.5
Natty:
Report link

basically Promise.allSettled is a function that kind of explains itself, it basically takes a list, or multiple arguments, and looks though each of these promises and checks if the promises are “settled”, basically yes(true), no(false), so the reason why it ignores this false is that false is a expected state, in this example the allSettled never passes, due to the key word await being included before it so its always waiting for the argument to be true all around , i’ve used it before in my code, i can assure you that its perfectly safe to use

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: The Heavy

79416513

Date: 2025-02-06 00:26:41
Score: 14 🚩
Natty: 6.5
Report link

did you found some solution about this issue? I have the same problem.

Scenario:

dxp.2024.q4 blade version 7.0.2.202411120004 gradle 8.5 with Java 17.

I modified TransformUtil for this package:

com.liferay.petra.function.transform.TransformUtil but I receive same error.

Thanks in advanced.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Thanks in advanced
  • RegEx Blacklisted phrase (3): did you found
  • RegEx Blacklisted phrase (1): I receive same error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: Diego

79416503

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

Esbuild should now support all the 3 types of decorators: Feature request: Decorators support #104: JS Decorators, TS experimental decorators and metadata decorators.

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

79416491

Date: 2025-02-06 00:08:37
Score: 2
Natty:
Report link

i found the problem.

I was using context(viewModelScope) with context-receiver, and it doesn't work with Koin. Either it doesn't work for the moment, either there is a special setup i didn't found !

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

79416482

Date: 2025-02-05 23:59:35
Score: 2.5
Natty:
Report link

Figured it out - I added this snippet at the bottom before "hyperlinks generated". Thanks @Tim Williams

 For Each dcell In drg.Cells
        dFormat = dcell.Worksheet.Evaluate("=CELL(""format""," & dcell.Address & ")")
        IsFormatValid = False
        If dFormat = "F6" Then
            dcell.Font.Color = RGB(255, 255, 255)
        End If
    Next dcell
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • User mentioned (1): @Tim
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rhedogian

79416478

Date: 2025-02-05 23:56:35
Score: 2.5
Natty:
Report link

When the data at char 6 is not 5-9, the check digit must be recalculated. It won't just be the data at char 7. digits sABCDEFc multipy by 31313131 s3 plus A1 + B3 + C1 + D3 + E1 + F3 + c1 will be a multiple of 10 So in the case of 5-9: sABCDEFc becomes sABCDE0000Fc and the check digit is the same. All other cases the c (check digit) has to be recalculated.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): When the
  • Low reputation (1):
Posted by: weldon bailey

79416476

Date: 2025-02-05 23:54:34
Score: 0.5
Natty:
Report link

Yes, you can add it in the following way:

interface IExample {
    get name(): string;
}

class Example implements IExample {
    private _name: string = "Bob";

    public get name() {
        return this._name;
    }

    public set name(value) {
        this._name = value;
    }
}

Greetings.

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

79416463

Date: 2025-02-05 23:45:32
Score: 0.5
Natty:
Report link

You need to use fmt::runtime for your string.

class Logger
{
private:
    std::shared_ptr<spdlog::logger> m_logger;

public: 

    template<typename... Args>
    void Info(std::string format, Args&&... args)
    {
        m_logger->info(fmt::runtime(format), std::forward<Args>(args)...);
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chip Brommer

79416459

Date: 2025-02-05 23:44:32
Score: 2.5
Natty:
Report link

it seems that xcode 16.2 this solution "Adding both the file path you are editing and an entry for $DERIVED_FILE_DIR into your output files for the matching file path will fix this issue" no longer works, I've temporarily reverted to setting "User Script Sandboxing" to "No". In build settings.

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

79416455

Date: 2025-02-05 23:42:32
Score: 1.5
Natty:
Report link

I believe the issue is a simple as passing a non-numeric value to the mcw variable:

mcw = list(PO3_Ex = levels(us_data$PO3_Ex)))

Check to see what the output of list(PO3_Ex = levels(us_data$PO3_Ex))) is and make sure its the data type process expects which I believe is a numeric data type since its trying to use the trunc() function against it.

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

79416446

Date: 2025-02-05 23:37:31
Score: 3.5
Natty:
Report link

I wanted to post that due to help from @dave_thompson_085, I was able to use the following to solve my problem:

openssl pkeyutl -sign -pkeyopt rsa_padding_mode:pkcs1 -inkey private.pem -in applicat_aes_key_iv.bin -out applicat_aes_key_iv.enc

Thanks Dave.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @dave_thompson_085
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RickyBobby

79416439

Date: 2025-02-05 23:32:30
Score: 1.5
Natty:
Report link

Although it doesn't offer much customizability, most browsers will render an alternative, darker version of the audio element if you specify the following:

audio {
    color-scheme: dark;
}
color-scheme: light color-scheme: dark
Light Dark
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tikolu

79416438

Date: 2025-02-05 23:32:30
Score: 1.5
Natty:
Report link

Although it doesn't offer much customizability, most browsers will render an alternative, darker version of the audio element if you specify the following:

audio {
    color-scheme: dark;
}
color-scheme: light color-scheme: dark
Light Dark
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tikolu

79416434

Date: 2025-02-05 23:28:29
Score: 3
Natty:
Report link

I am uing class aproach. Please, refer some tutorial how to register ajax handler on class.

When ajax request is sent I am facing with admin-ajax.php 400 http error. @Deepak Rajpal said to move handler into main plugin file. I am wondering how to achive a goal with class aproach.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Deepak
  • Low reputation (1):
Posted by: Jacek Śmiel

79416431

Date: 2025-02-05 23:26:29
Score: 2.5
Natty:
Report link

It is imperative to set the namespace correctly in the designer and code file. The namespace must match a namespace pertinent to the project that receives the files you try to add

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

79416425

Date: 2025-02-05 23:24:28
Score: 0.5
Natty:
Report link

How can you run the script even in blank tabs?

Content scripts do not run in about: pages by default, even with <all_urls> specified. To make content scripts run in about:blank, you must specify it explicitly with match_about_blank.

  ...
  "content_scripts": [ {
    "js": [ "content.js" ],
    "matches": [ "<all_urls>" ],
    "match_about_blank": true
  } ],
  ...

Be aware that the content script cannot be made to run in any other about: page, including about:newtab, which is what new tabs are (not about:blank).

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How can you
  • Low reputation (0.5):
Posted by: Nanigashi

79416422

Date: 2025-02-05 23:24:28
Score: 3.5
Natty:
Report link

I dropped a viable solution that i tested due to the question you raised. That solution works well. Try it out. https://stackoverflow.com/a/79413764/29508248

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: One Lost Dev

79416408

Date: 2025-02-05 23:13:27
Score: 1.5
Natty:
Report link

Hello I implemented this and it works great but WPCode keeps turning it off saying that the last line is causing an error:

return method_exists( $product, 'get_dimensions' ) ? wc_format_dimensions($product->get_dimensions(false)) : '';
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ben

79416405

Date: 2025-02-05 23:11:26
Score: 1.5
Natty:
Report link

I had the same problem.

I found this answer that solved it for me:

https://github.com/snakemake/snakemake-executor-plugin-slurm/issues/18#issuecomment-2072977168

So it appears you have to quote each option for some reason:

slurm_extra: "'--qos=gpu1day' '--gpus=1'"

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: J.J.

79416399

Date: 2025-02-05 23:08:25
Score: 3
Natty:
Report link

As said in snakecharmerb's answer, define naming convention in the metadata to avoid this problem entirely: https://alembic.sqlalchemy.org/en/latest/naming.html

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

79416395

Date: 2025-02-05 23:06:24
Score: 9 🚩
Natty: 5.5
Report link

@ Chris Barlow

I am looking for cognito backup solution. It would be helpful if you could help me with the migration lambda. Currently i have two lambda one to export tye users and groups and store it in s3 and another lambda to import users. I am currently facing issue while importing with below error.

Users have different number of values than the headers .

It would be helpful if you could guide me. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): guide me
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (2): I am looking for
  • RegEx Blacklisted phrase (3): you could help me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Harvind Kumar

79416390

Date: 2025-02-05 23:01:22
Score: 0.5
Natty:
Report link

I needed to add a jest-setup.ts with the import '@testing-library/jest-dom' to make the test runner happy.

The missing piece for my IDE (Rider) was to add that jest-setup.ts to the include array in my tsconfig.json:

  "include": ["src/**/*", "jest-setup.ts"]

as documented here: https://github.com/testing-library/jest-dom?tab=readme-ov-file#with-typescript

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Johann

79416379

Date: 2025-02-05 22:53:21
Score: 1.5
Natty:
Report link

For anyone coming across this in the future.

Try escaping the hyphen with a backslash:

pattern=^\d{10}$|^\d{3}([\s\-\.])\d{3}\1\d{4}$

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

79416378

Date: 2025-02-05 22:53:21
Score: 1
Natty:
Report link

MAX5144 Driver Code

#include "MAX5144.h"
#include <wiringPi.h>
#include <wiringPiSPI.h>
#include <stdexcept>
#include <iostream>

// Constructor
MAX5144::MAX5144(int spiNumber, int spiChannel, int csPin, int speed, int mode)
    : spiNumber(spiNumber), spiChannel(spiChannel), csPin(csPin) {
    // Initialize GPIO for CS
    if (wiringPiSetup() < 0) {
        throw std::runtime_error("Failed to initialize WiringPi!");
    }
    pinMode(csPin, OUTPUT);
    digitalWrite(csPin, HIGH); // Default to deselected state

    // Initialize SPI
    if (wiringPiSPIxSetupMode(spiNumber, spiChannel, speed, mode) < 0) {
        throw std::runtime_error("SPI initialization failed for SPI" + std::to_string(spiNumber) +
                                 ", Channel " + std::to_string(spiChannel));
    }
    std::cout << "SPI initialized on SPI" << spiNumber << ", Channel " << spiChannel << std::endl;
}

// Set DAC Output
void MAX5144::setDacOutput(int value) {
    if (value < 0 || value > 16383) {
        throw std::invalid_argument("DAC value out of range! Must be between 0 and 16383.");
    }

    // Prepare data
    int dataWord = value << 2; // Align 14-bit value
    unsigned char buffer[2] = {
        static_cast<unsigned char>((dataWord >> 8) & 0xFF), // MSB
        static_cast<unsigned char>(dataWord & 0xFF)         // LSB
    };

    // SPI Transfer
    digitalWrite(csPin, LOW); // Select chip
    if (wiringPiSPIxDataRW(spiNumber, spiChannel, buffer, 2) < 0) {
        throw std::runtime_error("SPI data transfer failed!");
    }
    digitalWrite(csPin, HIGH); // Deselect chip

    std::cout << "DAC output set to: " << value << std::endl;
}

// Destructor
MAX5144::~MAX5144() {
    wiringPiSPIClose(spiChannel); // Close SPI channel
}

mic drop :)

welcome to visits my github https://github.com/dcl920108/MAX5144-SPI-Driver/blob/main/MAX5144.cpp

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

79416373

Date: 2025-02-05 22:51:20
Score: 5
Natty: 5
Report link

are oracle maintaining and improving this tool ?

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

79416372

Date: 2025-02-05 22:50:19
Score: 4
Natty:
Report link

I just realized adding a tab or space on the html converts it to a text

Example image

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

79416371

Date: 2025-02-05 22:48:18
Score: 1
Natty:
Report link

I got the same error code due to rust was installed via brew: brew install rust,
try to run . "$HOME/.cargo/env"
In case it doesn't help, follow the whole instruction https://www.anchor-lang.com/docs/installation

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

79416366

Date: 2025-02-05 22:46:17
Score: 0.5
Natty:
Report link

You can use WAF on Azure Application Gateway or Azure Front Door to block or log requests from known malicious IP addresses. The bot protection rule set is part of the managed rules and can be enabled to protect against known bad bots. You can use the WAF to create custom rules that block or rate limit requests to those paths.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Joel Odey

79416362

Date: 2025-02-05 22:44:17
Score: 2.5
Natty:
Report link

I've got the point.

After deactivating the virtual environment, I tried installing gettext.

Now it is okay.

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

79416353

Date: 2025-02-05 22:40:16
Score: 2
Natty:
Report link

Have you tried looking in the documentation for tdweb?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Dan Crews

79416350

Date: 2025-02-05 22:38:16
Score: 1
Natty:
Report link

You can do this:

screenOptions={{
          tabBarStyle: {
            elevation: 0,
          },
        }}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ilir

79416342

Date: 2025-02-05 22:35:15
Score: 3.5
Natty:
Report link

No. The Gitlab GraphQL API does not include commits on Blobs (the files of a Tree), so you cannot do this in one call.

Also, please don't post images of data. Why should I not upload images of code/data/errors?

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

79416341

Date: 2025-02-05 22:34:15
Score: 1
Natty:
Report link

The body of Test is a normal function. It calls useSWR on fetch1, then on fetch2. getData1 and getData2 are React server actions which are designed to run sequentially. So once getData1 is queued up it will block all other server actions until it finishes, then it will dispatch the next one.

If you want to make calls in parallel you can do it with useSWR but you'll have to make a "normal" fetch style request. You can't use server actions in parallel.

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

79416338

Date: 2025-02-05 22:33:15
Score: 1.5
Natty:
Report link

This should fix it:

sudo chmod +x /usr/bin/ksh
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Celuk

79416332

Date: 2025-02-05 22:28:13
Score: 0.5
Natty:
Report link

In my case (@react-native-google-signin/google-signin v13), I just didn't add expo.ios.googleServicesFile in app.config.js. Adding the googleServicesFile (plist) solved the problem.

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

79416330

Date: 2025-02-05 22:26:12
Score: 7 🚩
Natty: 6.5
Report link

Which is more secure: auth= or headers= ???

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Which is
  • Low reputation (1):
Posted by: RazorSharp5621

79416327

Date: 2025-02-05 22:22:11
Score: 0.5
Natty:
Report link

With David's help, I found a few issues with my code.

I had dataType: 'json' in my ajax set up. This is for the expected response, not the request. I removed it.

I used JSON.stringify( err ) to open up the xhr error object. This revealed the error I was missing originally: "Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was 'blob')."

I removed xhrFields: { responseType: 'blob' } from my ajax set up. This allowed the xml file from the server to be read and land in the success handler. But still, the file was not loading.

I added a console log of xhr.getAllResponseHeaders() which revealed that the Content-Disposition was missing from xhr. I switched instead to content-type to discern if the response was an XML file (application/octet-stream) or JSON (application/json).

After this, when trying to convert the blob to a file, I got this error: "Failed to execute 'createObjectURL' on 'URL': Overload resolution failed."

This question gave me the final answer I needed. The body of the response has to be explicitly converted to a blob object.

Here is the final, working code. (I have not tested the IE and Safari hacks.)

$.ajax( {
    url: m_APIURL,
    method: 'POST', type: 'POST',
    data: JSON.stringify( formData ),
    contentType: 'application/json',
    crossDomain: true,
    success: function( body, status, xhr )
    {
        console.log( "success! headers=" + xhr.getAllResponseHeaders() + " xhr=" + JSON.stringify( xhr ) ); // DEBUG
        var header = xhr.getResponseHeader( 'content-type' );
        if( header && header.indexOf( 'octet-stream' ) !== -1 )
        {
            // If success, returns a file. Trigger the file save.
            var filename = 'license.xml';
            var blob = new Blob( [body], { type: "application/octetstream" } );
            if( typeof window.navigator.msSaveBlob !== 'undefined' )
            {
                // IE hack.
                window.navigator.msSaveBlob( blob, filename );
            }
            else
            {
                var URL = window.URL || window.webkitURL;
                var downloadUrl = URL.createObjectURL( blob );
                var a = document.createElement( "a" );
                if( typeof a.download === 'undefined' )
                {
                    // Safari hack.
                    window.location.href = downloadUrl;
                }
                else
                {
                    a.href = downloadUrl;
                    a.download = filename;
                    document.body.appendChild( a );
                    a.click();
                }
                setTimeout( function() { URL.revokeObjectURL( downloadUrl ); }, 100 );
            }
        }
        else
        {
            // If validation failed, returns JSON. Display the errors.
            if( body )
            {
                if( ( body.ErrorMessage && body.ErrorMessage != "OK" ) || ( !body.Content || body.Content == '' ) )
                {
                    alert( "Error getting license file. " + body.ErrorMessage );
                }
                else
                {
                    alert( "Error getting license file. " + body.Content );
                }
            }
            else
            {
                console.log( "returned null" ); //DEBUG
                alert( "Error getting license file." );
            }
        }
    },
    error: function( err )
    {
        if( err != null && err.length > 0 )
        {
            console.log( "Error in response: " + JSON.stringify( err ) );
        }
        else
        {
            console.log( "Error in response but nothing returned." );
        }
    }
} );
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Trint

79416324

Date: 2025-02-05 22:21:11
Score: 1
Natty:
Report link

I needed something similar. After trial and error and multiple google searches I came away with this curl method:

curl -s "https://api.github.com/users/GITHUB_USERNAME/events" | jq '[.[] | select(.type=="PushEvent") | .payload.commits[].url] | .[]' | xargs curl -s | jq '[.files[].additions, .files[].deletions] | add'

parsing it with jq was what really helped.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Donnie McNeil

79416319

Date: 2025-02-05 22:19:10
Score: 0.5
Natty:
Report link

Since I can't simply comment, still wanted to share an additional couple endpoints that helped out greatly. @bright's answer is still right on the money, but in addition to the tags, I wanted to know the underlying agent's capabilities.

GET https://dev.azure.com/{organization}/_apis/distributedtask/pools/{poolId}/agents?api-version=7.1&includeCapabilities=true

/agents API Docs

Pool id can be found from "id" property returned from:

GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/environments/{environmentId}/providers/virtualmachines/pool?api-version=7.2-preview.1

/pool API Docs

P.S. That /agents endpoint has a demands query property where you can pre-filter your list of agents with certain capabilities (i.e. demands=Agent.OS), although it doesn't seem to check against the value itself, just if the capability exists by name. It will also return a collection of capabilities with just the demands you specified, which will lighten the returned payload quite a bit in most cases, which is exactly what I wanted.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @bright's
  • Low reputation (1):
Posted by: gerneio

79416310

Date: 2025-02-05 22:13:09
Score: 4
Natty: 4.5
Report link

same issue even when i use context: ({ req, res }) => ({ req, res }) i can only able to get the req object the res is undefined

Reasons:
  • RegEx Blacklisted phrase (1): same issue
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Moganesan M

79416306

Date: 2025-02-05 22:10:08
Score: 0.5
Natty:
Report link

stmt1 is slow because assigning x to product (df["product"] = "x") first forces Pandas to store product as an object dtype column initially.

df.loc[i, columns] = 0 is also slow because Pandas updates rows one by one, triggering copies.

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

79416303

Date: 2025-02-05 22:08:07
Score: 2.5
Natty:
Report link

Try copy lzma.h directly into libarchive root folder (next of configure.ac file).

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

79416297

Date: 2025-02-05 22:04:05
Score: 8 🚩
Natty: 5
Report link

I'm running into the same issue, did you ever find a resolution?

Reasons:
  • RegEx Blacklisted phrase (3): did you ever find a
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Derrick Bowen

79416294

Date: 2025-02-05 22:04:05
Score: 2.5
Natty:
Report link

Determine the release version of Red Hat or Rocky.

awk '{match($0, "[0-9][.][0-9]+");print substr($0,RSTART, RLENGTH)}' /etc/redhat-release

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

79416286

Date: 2025-02-05 21:59:04
Score: 1.5
Natty:
Report link
<script>

let tg = window.Telegram.WebApp;
tg.requestFullscreen();
tg.lockOrientation("landscape");

</script>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Золотушкин

79416285

Date: 2025-02-05 21:59:04
Score: 0.5
Natty:
Report link

If you're not running Docker Desktop but Rancher Desktop, check out these minor, but required changes (run in host PowerShell):

docker run -it -v /mnt/wslg:/mnt/wslg `
               -e DISPLAY=:0 `
               -e WAYLAND_DISPLAY=wayland-0 `
               -e XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir `
               -e PULSE_SERVER=/mnt/wslg/PulseServer `
               guitest:1.0

I'm not sure, if /tmp/.X11-unix:/tmp/.X11-unix is helpful, but it runs without.

Found the equivalent command in this issue: https://github.com/rancher-sandbox/rancher-desktop/issues/7299#issuecomment-2488273892

Acutally, this is closer to @chrillof answer :)

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

79416282

Date: 2025-02-05 21:57:04
Score: 3
Natty:
Report link

IronPython or Python.Net alternative in 2025 maybe:

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

79416280

Date: 2025-02-05 21:55:03
Score: 2.5
Natty:
Report link

There are other alternatives to IronPython which might be easier to integrate:

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

79416266

Date: 2025-02-05 21:47:02
Score: 3
Natty:
Report link

I'm encountering the same error when I connect PostgreSQL to my app and run migrations. Even though I set the port to 5402, the error still persists.

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

79416263

Date: 2025-02-05 21:45:01
Score: 0.5
Natty:
Report link

You can get it like this, it will also work with keys containing dots :

ConfigObject getConfigObjectFromKey(String key) {
    List<String> keyParts = key.split('\\.')
    ConfigObject conf = Holders.config
    keyParts.each { String part -> conf = conf[part] as ConfigObject }
    return conf
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Skirlyx

79416259

Date: 2025-02-05 21:43:00
Score: 3.5
Natty:
Report link

Can you move it to new org as Attachment and then use the Magic mover app exchange tool from SF Labs to convert to files.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Anand Narayan

79416256

Date: 2025-02-05 21:40:59
Score: 4
Natty:
Report link

Thank you for your reply. I added 1 resourcepool and a Doctor agent with name and schedule parameters. I am still encountering initialisation error. Could you please explain step by step if i need to do more or a different approach? Should i use a doctor population or should i change doctors' names from string to integer?

I have written a list to the Main's On startup section as :

List<Doctor> doctorList = new ArrayList<>(Arrays.asList(                                       
    new Doctor("doctorX", schedule_doctorX),
    new Doctor("doctorY", schedule_doctorY),                              
    new Doctor("doctorZ", schedule_doctorZ)
));
doctorPool.set_capacity(doctorList.size());
doctorPool.resourceUnits().clear();  
doctorPool.resourceUnits().addAll(doctorList);

and added a "createDoctor" function

Doctor doctor = new Doctor();
doctor.name = name;
doctor.schedule = schedule;
return doctor;

also on seize block, i used your code but the simulation cant be initialized with the error of:

Error during model startup:

UnsupportedOperationException

java.lang.UnsupportedOperationException

at java.base/java.util.AbstractList.add(AbstractList.java:153)

at java.base/java.util.AbstractList.add(AbstractList.java:111)

at java.base/java.util.AbstractCollection.addAll(AbstractCollection.java:336)

at multiple_pathyways_mech.Main.onStartup(Main.java:4087)

at com.anylogic.engine.Agent.h(Unknown Source)

at com.anylogic.engine.Agent.start(Unknown Source)

at com.anylogic.engine.Engine.start(Unknown Source)

at com.anylogic.engine.ExperimentSimulation.e(Unknown Source)

at com.anylogic.engine.ExperimentSimulation.run(Unknown Source)

at com.anylogic.engine.ExperimentSimulation.h(Unknown Source)

at com.anylogic.engine.internal.m$m.run(Unknown Source)
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (2.5): Could you please explain
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Selin Ozen

79416250

Date: 2025-02-05 21:38:59
Score: 1
Natty:
Report link

I tried to solve it on the same website (Test dome), and the answer was interesting. Try to solve it with recursion and no problems; therefore your code can run on negative test cases too!

#include <stdlib.h>
#include <stdio.h>

int inspect_bits(unsigned int number)
{
    if(number == 0) return 0;
    if((number & 3) == 3) return 1;
    return inspect_bits((number>>1));
}

#ifndef RunTests
int main ()
{
    printf("%d", inspect_bits(13));
}
#endif
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Hussein Barakat

79416248

Date: 2025-02-05 21:36:57
Score: 12.5 🚩
Natty: 6.5
Report link

did you solve the problem? I have the same problem right now

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you solve the problem
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you solve the
  • Low reputation (1):
Posted by: Javier Yahir

79416246

Date: 2025-02-05 21:35:56
Score: 1.5
Natty:
Report link

This worked for me (.NET Framework 4.8.1) VS 2022 C# The JSON or any serializer object need to be generated with not to include typeinformation settings. Below is an example:

var settings = new DataContractJsonSerializerSettings();
settings.EmitTypeInformation = EmitTypeInformation.Never;

var serializer = new DataContractJsonSerializer(yourType, settings);

or

var serializer = new DataContractJsonSerializer(yourType, new DataContractJsonSerializerSettings() {EmitTypeInformation=EmitTypeInformation.Never});

Thanks to: Daniel https://stackoverflow.com/users/572644/daniel-hilgarth in

How do I tell DataContractJsonSerializer to not include the "__type" property

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dr. Venkata Goli

79416245

Date: 2025-02-05 21:35:56
Score: 2
Natty:
Report link

Although @FiloCara 's answer is reliable, it did not work for me until I put the warning-generating code in a context:

with warnings.catch_warnings():
    warnings.simplefilter("ignore", category=pd.errors.PerformanceWarning)
    # code that generates warnings ...
Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @FiloCara
Posted by: The other other Alan

79416243

Date: 2025-02-05 21:31:56
Score: 0.5
Natty:
Report link

Since it’s working on other functions, few factors for this behavior could be, there is a mismatch in the topic name, a small difference can prohibit the trigger to execute, check for the case sensitivity or even a whitespace could make a difference. Same project ID is a must also, verify if you have the same on both .firebaserc file and Pub/Sub Trigger topic. Also, try to clear the cache of the emulator at your firebase.

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

79416235

Date: 2025-02-05 21:26:55
Score: 1.5
Natty:
Report link

In python if a variable has a value if will return True, using not inverses the result.

The variable "is_not_dna" is being set as a bool when you use the "not" before the d_n_a in the following line. "is_not_dna = not d_n_a"

If you are wanting to compare values I would recommend looking into sets or list comprehensions.

As a note it is easier to read and understand the question if the code snippet is formatted correctly rather than squashed into one line.

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

79416230

Date: 2025-02-05 21:23:54
Score: 1.5
Natty:
Report link

Now it can be fixed with setting modal={false]

<DropdownMenu modal={false}>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: IMRAN H

79416215

Date: 2025-02-05 21:14:51
Score: 4
Natty: 4.5
Report link

Here is a good sample with using Python, Kivy:

https://github.com/mathpathconsole/DrumPad-with-Kivy

Music Pad with kivy

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

79416211

Date: 2025-02-05 21:13:50
Score: 4.5
Natty: 4.5
Report link

Refer this code for streams in bloc

https://github.com/tejasthonge/Flutter-Bloc-State-mangement/blob/main/4_streams/_1streas/lib/stream1/bloc/streams_bloc.dart

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TEJAS RAJENDRA THONGE

79416188

Date: 2025-02-05 21:05:48
Score: 2
Natty:
Report link

You should download signed and notarized framework directly from vendor. If it is not possible, you have to sign it yourself (with your certificate), but there are lot of challenges because you must know which entitlements this framework need (vendor's documentation might help).

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

79416177

Date: 2025-02-05 21:00:47
Score: 0.5
Natty:
Report link

Have you tried setting the locale?

locale: const Locale('en', 'GB'), // GB changes it to "dd/MM/yyyy"

It goes right before builder. It will change it only for that date picker

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: luenib

79416173

Date: 2025-02-05 20:58:46
Score: 2
Natty:
Report link

heres what I did, my lazy fix. renamed "Cloud SDK" to "Cloud". went into "AppData\Local\Google\Cloud\google-cloud-sdk" and ran install.bat.

then under windows user variables edit path to have an entry for " C:\Users\username\AppData\Local\Google\Cloud\google-cloud-sdk\bin"

windows is retarded that you have to put spaces in quotes. Use command "gcloud info" after install.bat to check the gcloud installation path name is accurate without the spaces now.

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

79416165

Date: 2025-02-05 20:54:45
Score: 3
Natty:
Report link

You just need to switch sm for max-sm

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

79416154

Date: 2025-02-05 20:49:44
Score: 3
Natty:
Report link

The default dateformat of en-US is mm/dd/yyyy, this is why the conversion fails.

If your string-date is always formatted as dd/mm/yyyy hh:mm:ss you should use DateTime.ParseExact as shared on this StackOverflow-post:

How to Convert a Date String with Format "dd/MM/yyyy" to OS Current Culture Date Format

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: lordofcode

79416150

Date: 2025-02-05 20:45:43
Score: 1.5
Natty:
Report link

In a situation like this, I'd typically create an invisible h1, like:

<h1 style={{ display:none }}>Login</h1>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joss Gitlin

79416146

Date: 2025-02-05 20:44:42
Score: 1
Natty:
Report link

If this is matplotlib, you can change the default font in plots using this:

import matplotlib.pyplot as plt
plt.rcParams["font.family"] = "Arial"

Then you can match that font to your LaTeX settings

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

79416135

Date: 2025-02-05 20:39:41
Score: 1
Natty:
Report link

It will only use values found in import.meta.env.

You could do something like this:

define: {
 ...,
 'import.meta.env.REACT_APP_BACKEND_URL': 'the-url'
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jonathan

79416134

Date: 2025-02-05 20:39:41
Score: 1
Natty:
Report link

2025, I fix same problem by add "geometry"

script src="https://maps.googleapis.com/maps/api/js?libraries=geometry,places&key=123&loading=async&callback=initMap"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: hoogw

79416127

Date: 2025-02-05 20:36:40
Score: 1
Natty:
Report link

It seems the issue was with my curl command. and the resolve

curl -kLvv  --resolve httpbin.example.com:444:XXX.XXX.XXX.XXX https://httpbin.example.com:444/get?foo=bar

Use the resolve option and changing from the IP address to the actual hostname works. Not sure what the difference is.

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

79416123

Date: 2025-02-05 20:34:40
Score: 2
Natty:
Report link

Ok... knew I just neeeded more coffee: Solution with @media

added to css:

@media (max-width: 817px) {
  .header {
    width: 100%;
    min-width:auto;
  }
  .main {
    width: 100%;
    min-width:auto;
  }
  .mainCol { min-width: auto; }
}

this resets things so unwanted min widths etc go away, I also added:

@media (max-width: 649px) {
  #sideNav { display: none;}
}

to remove the side bar if screen is very small...

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @media
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Paul

79416113

Date: 2025-02-05 20:28:37
Score: 9 🚩
Natty:
Report link

Can you share the GitHub repository?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you share the
  • Low reputation (1):
Posted by: twjaymes

79416109

Date: 2025-02-05 20:26:36
Score: 1.5
Natty:
Report link

Today i had two new ideas.

  1. Seperated the tables in to two tables, deleted the body 0 margins to get back reply paddings and pushed the second table to the left edge:

<table1 width="100%">email regular text</table>

<table2 width="120%" style="margin-left: -30px;">footer signature</table>

Result: Works, reply text has normal paddings again, but on some email clients still tiny small white paddings. Because of the width 120% the email window gets scrollable horizontally:

  1. Deleted the body 0 margins and seperated the tables in to two also. Put a fat outline around the second table, colored in footer bg color

<table1 width="100%">email regular text</table>

<table2 width="100%"style="outline: solid 25px #98DBCE;">footer signature</table>

Result: Works, but on some email clients still tiny small white paddings too.

I am searching for better Ideas :(

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

79416107

Date: 2025-02-05 20:25:36
Score: 2
Natty:
Report link

In my case, I opened the wrong file (opened the .xcodeproj instead of .xcworkspace). In case someone else suffers the same lapsus 😅

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Pablo Quemé

79416103

Date: 2025-02-05 20:23:36
Score: 3
Natty:
Report link

The solution provided by Cristian above works also for CoreUI, which is based on Bootstrap 5. Definitely the right answer

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

79416098

Date: 2025-02-05 20:20:35
Score: 3.5
Natty:
Report link

For Jupyter notebook the keybind to change indentation is CTRL+ { and CTRL + }. Highlight the lines you wish to change.

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

79416090

Date: 2025-02-05 20:15:34
Score: 0.5
Natty:
Report link

An Access application option Move After Enter exists, with three alternatives:

These can be set programmatically but it's easiest to go to Access Options > Advanced > Editing and tick the appropriate button. This option applies application-wide.

TextBox.EnterKeyBehavior has two options, Default and "New Line In Field". The latter overrides the application-wide Access option for that text box, and doubtless is the better choice for any multi-line text box.

Better to trigger the Submit button otherwise. Clicking on it is always an option. If it follows the text box in the tab order, then tabbing from the text box will highlight it and then, pressing Enter will trigger it.

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

79416074

Date: 2025-02-05 20:09:32
Score: 1.5
Natty:
Report link

This is an updated version of @Anjali 's answer

    import PyPDF2

    pages = [] 
    pdf_file = <Enter your file path> 
    reader = PyPDF2.PdfReader(pdf_file) 
    number_of_pages = len(reader.pages) 
    for page_number in range(number_of_pages):   
        page = reader.pages[page_number].extract_text().split(" ")  # Extract page wise text then split based on spaces as required by you
        pages.append(page)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Anjali
  • Low reputation (1):
Posted by: dawndance

79416070

Date: 2025-02-05 20:08:32
Score: 0.5
Natty:
Report link

For context, not another answer: As @Evert said there is no place for a TimeZone in an iCAL date value, just a year, month and day:

https://www.rfc-editor.org/rfc/rfc2445#section-4.3.4

Formal Definition: The value type is defined by the following
notation:

 date               = date-value

 date-value         = date-fullyear date-month date-mday
 date-fullyear      = 4DIGIT
 date-month         = 2DIGIT        ;01-12
 date-mday          = 2DIGIT        ;01-28, 01-29, 01-30, 01-31
                                    ;based on month/year

...

 Example: The following represents July 14, 1997:

 19970714
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Evert
  • Low reputation (0.5):
Posted by: Craig.C

79416060

Date: 2025-02-05 20:05:31
Score: 1.5
Natty:
Report link
unset NODE_OPTIONS

If you're using Node.js 18+, you probably don't need --openssl-legacy-provider anymore.

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

79416058

Date: 2025-02-05 20:05:31
Score: 4
Natty: 4.5
Report link

here is good sample with using Python Kivy:

https://github.com/mathpathconsole/ChessApp-with-Kivy

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

79416057

Date: 2025-02-05 20:05:31
Score: 1
Natty:
Report link

I use windsurf and to support not just line numbers but also a column number,

I've set my Semantic History command to this:

~/.codeium/windsurf/bin/windsurf -g \1:\2:\(semanticHistory.columnNumber)

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

79416046

Date: 2025-02-05 20:00:29
Score: 1.5
Natty:
Report link

you forgot to register the ScrollToPlugin

try gsap.registerPlugin(ScrollTrigger, ScrollToPlugin);

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

79416038

Date: 2025-02-05 19:56:28
Score: 1
Natty:
Report link

By adding cssMinify to my vite build configuration and setting it to 'lightningcss' it seems to get it working again.

import tailwindcss from "@tailwindcss/vite";

export default defineNuxtConfig({
  vite: {
    plugins: [
      tailwindcss()
    ],
    build: {
      cssMinify: 'lightningcss'
    }
  },
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Patrick van Marsbergen

79416036

Date: 2025-02-05 19:55:28
Score: 2.5
Natty:
Report link

I figured this out - somehow I managed to get Python 2.7 and 3.9 on my machine, and the plain 'python' command was invoking Python 2. By using the command 'python3 myscript.py' it is now working as expected

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

79416035

Date: 2025-02-05 19:54:28
Score: 1.5
Natty:
Report link

In addition to all the other answers, it's worth remembering that an ICMP packet contains content of its own. In the case of my ping request, it's 32 bytes: the alphabet and then the message "hi." Depending on the implementation, different data can be placed here — even your own MAC address — though that is more of a hypothetical scenario. Traditionally, random data or something similar is placed here.

ICMP packet content

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

79416024

Date: 2025-02-05 19:49:26
Score: 1
Natty:
Report link

A video file in a request but it's not being received. Try it out

   <form action="{{ route('upload.video') }}" method="POST" enctype="multipart/form-data">
    @csrf
    <input type="file" name="video" required>
    <button type="submit">Upload</button>
</form>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: zain malik

79416023

Date: 2025-02-05 19:48:26
Score: 1.5
Natty:
Report link

Super easy solution without using VBA. This works if you have dates for your x-axis. Use UNIQUE and FILTER to populate the values needed for your x-axis.

Chart using unique axis

Chart using original axis

In this example, the original x-axis values are in F9:F25. The data values are in G9:G25. In K9, I am using the formula UNIQUE(FILTER(F9:F25,G9:G25<>"")), which results in showing the dates for only the data values that are not empty. Even though the x-axis range is from K9:K25, the chart will stop at the last value in column K.

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

79416014

Date: 2025-02-05 19:46:25
Score: 2.5
Natty:
Report link

i faced the same issue, i switched gradle version to 8.9 and it worked

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pankaj Yadav

79416011

Date: 2025-02-05 19:45:25
Score: 2
Natty:
Report link

I am not sure if I understood the question correctly. Here is what I thought: You have two groups of images (group A and group B). Each group contains 100 images. You want to measure the similarity between group A and group B. Maybe one thing you can look into is the Wasserstein distance, which quantifies the dis-similarity between two distributions.

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

79416010

Date: 2025-02-05 19:45:25
Score: 0.5
Natty:
Report link

This is not how Hasura works. You cannot omit a required role header. Hasura will not "try" out each role. Your request must specify a role to run as. As the developer, you should have no problem knowing which role you should be requesting as for a given request. If you are running multiple queries or actions in one request that depend on different roles, I can hear why you'd want to do this. But you shouldn't still. Just break them into different requests. Composite, or Inherited Roles might be helpful to you but I can't say for certain as you haven't specified why you'd want to do it your way.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Abraham Labkovsky

79415994

Date: 2025-02-05 19:36:23
Score: 2
Natty:
Report link

https://www.rfc-editor.org/rfc/rfc2445#section-4.6.1

The "DTSTART" property for a "VEVENT" specifies the inclusive start
of the event. For recurring events, it also specifies the very first instance in the recurrence set.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Craig.C

79415991

Date: 2025-02-05 19:35:23
Score: 3.5
Natty:
Report link

How about this?

fn flatten_vectors(vectors: Vec<Vec<i32>>) -> Vec<i32> {
    let mut result = Vec::new();
    let max_len = vectors.iter().map(|v| v.len()).max().unwrap_or(0);

    for i in 0..max_len {
        for vec in &vectors {
            if let Some(&val) = vec.get(i) {
                result.push(val);
            }
        }
    }

    result
}

fn main() {
    let v = vec![vec![1, 2, 3], vec![4, 5, 6], vec![7, 8, 9]];
    let flattened = flatten_vectors(v);
    println!("{:?}", flattened);
}


Output: [1, 4, 7, 2, 5, 8, 3, 6, 9]

Playground

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: Ron Slosberg

79415990

Date: 2025-02-05 19:34:22
Score: 2.5
Natty:
Report link

Check out the javascript library called "SuperMarquee".

It has a lot of features you are looking for (speed, direction). Check out the example of their website.

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

79415981

Date: 2025-02-05 19:31:21
Score: 1.5
Natty:
Report link

Sometimes, you don’t always know what you're after or what direction you're heading in, and that’s perfectly fine. There's something refreshing about that uncertainty, where the possibilities are endless. It's like jumping into the unknown, where you don't need a plan – just a willingness to see where things go. Maybe it's a random idea, a little adventure, or just a moment to embrace that you don’t have it all figured out. Sometimes, it's about trying things without knowing the end result, and discovering along the way. That’s where you learn new things, stumble upon unexpected treasures, and realize that the journey is worth more than the destination itself.

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

79415977

Date: 2025-02-05 19:30:21
Score: 2
Natty:
Report link

Check if the "cnp" field exists in the model. If so, you know that at least the module is installed. If not check that the status is "Installed" and not something like "Pending" or "Updating".

If the "cnp" field does exist, check if you're correctly referencing the view file in the manifest https://www.odoo.com/documentation/18.0/developer/tutorials/define_module_data.html?highlight=manifest#data-declaration

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

79415975

Date: 2025-02-05 19:29:20
Score: 2.5
Natty:
Report link

A lightweight and easy-to-use module for implementing native in-app updates for Android and iOS

https://github.com/SohelIslamImran/expo-in-app-updates

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: Sohel Islam Imran

79415969

Date: 2025-02-05 19:28:20
Score: 3.5
Natty:
Report link

The library must be listed as public and you have to add it to your manifest.

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

79415965

Date: 2025-02-05 19:27:20
Score: 0.5
Natty:
Report link

Check if all pixels rgba data is zero.

function isEmptyCanvas(canvas) {
    let imageData = canvas.getContext('2d', { willReadFrequently: true }).getImageData(0, 0, canvas.width, canvas.height);

    return imageData.data.every(p => p === 0);  // true if all pixels are zero
} 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: stomtech