79269403

Date: 2024-12-10 18:48:33
Score: 9 🚩
Natty:
Report link

Have you solved this one? Some reason I cannot comment and ask you. I have the exact same problem - and seemingly no way to debug.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): cannot comment
  • RegEx Blacklisted phrase (1.5): solved this one?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the exact same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ajalberd

79269398

Date: 2024-12-10 18:46:32
Score: 3
Natty:
Report link

the correct syntax to get the new macro to trigger is:

Application.Run "'" & newWorkbook.Name & "'!PartEntryFormShow"

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

79269391

Date: 2024-12-10 18:44:32
Score: 3
Natty:
Report link

Regarding the above css script for the button which has an x as check mark - It works, but I struggle to create a value for each check box. I have tried adding a value to the html part as follow which does not seem to work: <input id="demo_box_2" class="css-checkbox" type="checkbox" checked/> <label for="demo_box_2" value="true" name="demo_lbl_2" value="true" class="css-label">Selected Option</label> Please advise as this does not make sense why it should not be working.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please advise
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Schalk Lombard

79269388

Date: 2024-12-10 18:43:31
Score: 0.5
Natty:
Report link

The correct answer, a couple of years later, is to use the reset function.

mutation.reset()

https://tanstack.com/query/v4/docs/framework/react/guides/mutations

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

79269387

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

This error can also happen in case of inheritance. If class A inherits from B and you are using

MockedStatic<A> mockAStatic = Mockito.mockStatic(A.class);

and you try to mock a method which is inherited from B, you'll get the above mentioned error. To fix it use the mock for B.

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

79269378

Date: 2024-12-10 18:39:30
Score: 5.5
Natty: 5.5
Report link

Is 500,000 (comma added for human-reading) 5x10^5 kilobytes?

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

79269375

Date: 2024-12-10 18:38:29
Score: 1
Natty:
Report link

I managed to find a solution, just add this to your PodFile, under post_install:

unless target.name == 'Runner'
    config.build_settings['SKIP_INSTALL'] = "YES"
  end

This fixed my problem 100%

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

79269371

Date: 2024-12-10 18:36:28
Score: 1
Natty:
Report link

Add in android/local.properties this line (you can create this file if it not exist):

sdk.dir=C:\\Users\\yourusername\\AppData\\Local\\Android\\Sdk

Or in your custom android sdk path. You can find it in:

Android Studio > More Actions > Sdk Manager > Languages & Frameworks > Android SDK > Android SDK Location

Like this: enter image description here

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

79269369

Date: 2024-12-10 18:35:28
Score: 1
Natty:
Report link

This command worked for me sftp -o PubkeyAcceptedAlgorithms=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa -o Port=PORTNUMBER -o IdentityFile=IDENTITYFILENAME USER

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

79269366

Date: 2024-12-10 18:34:28
Score: 0.5
Natty:
Report link

Addition to @Barmar comment and a slight change

install:
    pip install -r requirements.txt

You should use

make install
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Barmar
  • High reputation (-1):
Posted by: Bhargav

79269365

Date: 2024-12-10 18:33:25
Score: 4.5
Natty:
Report link

This can work python CLI screenshot

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

79269359

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

Comment of M. Deinum is an answer that helped

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

79269355

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

Maybe you can check as follows

Enable Google Login:

Open Firebase Console. Select your project. Navigate to Authentication > Sign-in method. Enable the Google option in the Sign-in providers section. Check SHA-1 Fingerprint:

Add the SHA-1 Fingerprint of your keystore in Firebase Console at Project Settings > General.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hari Agus W

79269345

Date: 2024-12-10 18:24:22
Score: 2
Natty:
Report link

The editor.stickyScroll.enabled setting introduced in February 2024 (version 1.87) should be set to false.

If you want to disable the same behavior on tree views, there is a separate setting available since January 2024 (version 1.86), where you need to set workbench.tree.enableStickyScroll to false.

Reasons:
  • Blacklisted phrase (1): not an answer
  • Blacklisted phrase (0.5): Why?
  • Blacklisted phrase (1): StackOverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: rozsazoltan

79269323

Date: 2024-12-10 18:16:20
Score: 0.5
Natty:
Report link

It looks like you are trying to create a spider web (or radar) chart using Highcharts in a React component. The fact that it did not work, even inside useEffect, suggests there might be some issues with the setup, especially when initializing Highcharts with additional modules like highcharts-more.

Here are steps to address the issue and ensure compatibility with the latest Highcharts version:

Updated Code Example

  1. Loading HighchartsMore Properly: The HighchartsMore module should be registered before you create the chart. It's generally a good practice to import and integrate your libraries both in the global context and within component lifecycle methods when you need them.

  2. Use Effect Dependencies: Ensure your useEffect has correct dependencies to avoid running it unnecessarily.

  3. Check Data Types: Make sure that your data inputs match expected types for Highcharts.

Here's an updated version of your code; I made a few adjustments to ensure it runs correctly:

import React, { useEffect } from 'react';
import Highcharts from 'highcharts';
import HighchartsMore from 'highcharts/highcharts-more';
import HighchartsReact from 'highcharts-react-official';
import { spiderWeb } from 'feature/analytics/config';

// Define the props for SpiderWeb component
export type SpiderWebProps = {
    data?: Array<Record<string, string | boolean | number | Array<any>>>;
};

// Initialize HighchartsMore only once
HighchartsMore(Highcharts);

// Configure spider web (radar) options
const options = spiderWeb();

export const SpiderWeb: React.FC<SpiderWebProps> = ({ data }: SpiderWebProps) => {
    // If data is provided, use it, otherwise use dummy data
    const dummyData = data || [
        {
            name: 'Category A',
            data: [80, 90, 70, 85, 60],
            pointPlacement: 'on',
        },
        {
            name: 'Category B',
            data: [70, 85, 60, 75, 95],
            pointPlacement: 'on',
        },
    ];

    // Chart options
    const chartOptions = {
        ...options,
        chart: {
            polar: true,
            type: 'line',
        },
        yAxis: {
            visible: false,
        },
        series: dummyData,
    };

    // Render HighchartsReact component
    return <HighchartsReact highcharts={Highcharts} options={chartOptions} />;
};

Key Changes

  1. Imports: HighchartsMore is now loaded outside of the component, which prevents multiple executions and potential initialization issues.

  2. Data Input: If no data is provided, the component now falls back to dummyData.

  3. No useEffect: In this case, since we are initializing HighchartsMore outside of the component, the useEffect hook isn't needed.

Additional Tips

With these changes, your spider web chart should work as expected with the latest Highcharts version.

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

79269322

Date: 2024-12-10 18:16:20
Score: 0.5
Natty:
Report link

Requests for token endpoint generated by OpenIddict client differ from those created by Postman. For instance, OpenIddict client includes Accept-Charset: utf-8 header.

In some cases, that particular header might cause the problem. WAF in front of certain identity providers might not expect it, which leads to forbidden requests.

One way to fix it, is to configure OpenIddict client to skip that particular header:

options
    .AddEventHandler<OpenIddictClientEvents.PrepareTokenRequestContext>(builder =>
        builder.UseInlineHandler(context => {
            HttpRequestMessage? r = context.Transaction.GetHttpRequestMessage();
            r?.Headers.Remove("Accept-Charset");
            return default;
        }));
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: u81494

79269314

Date: 2024-12-10 18:15:20
Score: 2
Natty:
Report link

I had this issue too. Today I upgraded deno and found out I had two different installations.

Default Terminal: /Users/userName/.deno/bin/deno (version 2.1.3)

Vscode using homebrew: /opt/homebrew/bin/deno (version 1.44.4)

I know you use windows. But for mac I needed to brew uninstall deno and then the correct version was available in vscode.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Low reputation (1):
Posted by: Buckaroo

79269313

Date: 2024-12-10 18:15:20
Score: 3.5
Natty:
Report link

/(&.+?;)/ig works better. You may have multiple html entities in your string. If so, /(&.+;)/ig will match only once with everything between the first & and the last ; since + is a greedy find and +? is lazy.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sergio Leite

79269312

Date: 2024-12-10 18:14:20
Score: 2.5
Natty:
Report link

For me I needed to delete the bin and obj folders and it then started ok. I believe there are some artifacts left behind when switching from in-process that seems to mess up the isolated start-up process.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: David Baker

79269310

Date: 2024-12-10 18:14:20
Score: 0.5
Natty:
Report link

None of the answers really explain the problem. The real issue here is the exception code

} catch (e: Exception) {
    e.message?.let { Log.e(Constants.TAG, e.message!!) }
}

This entire expression evaluates to returning Boolean?. Why? It returns null (not Unit) when e.message is null. Otherwise it returns the Boolean from Log.e() because Log.e() returns a Boolean. Kotlin treats any final expression that evaluates to something other than Unit as a return expression. That means the entire function has an implied Boolean? return value.

There are a number of ways to address this. Calling return after the log expression is the easiest fix. This explicitly tells the compiler that nothing should be returned.

I frequently get caught out by this because the logging functions returns a Boolean value or when using the ?. operator on the last line of a conditional expression.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Colorado.Rob

79269304

Date: 2024-12-10 18:12:19
Score: 5
Natty: 6.5
Report link

What if we create a third component like a mediator (updateService, responsible for reading and writing to db through A, get information from B), that is able to encapsulate the direct interaction between A and B?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What if we
  • Low reputation (1):
Posted by: Shanta Kumar das

79269303

Date: 2024-12-10 18:12:19
Score: 1
Natty:
Report link
total_qty = data_table.select(pl.col("qty").sum())

with pl.Config(
    tbl_cell_numeric_alignment="RIGHT",
    thousands_separator=",",
    decimal_separator=".",
    float_precision=3,
    ):

    print(total_qty)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ubaid Mallah

79269299

Date: 2024-12-10 18:12:18
Score: 3.5
Natty:
Report link

I was able to create a pdf without linking my google drive, posted my solution in another section, kindly click link and check. https://stackoverflow.com/a/79269261/15132261

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pavn

79269294

Date: 2024-12-10 18:10:17
Score: 4
Natty:
Report link

I also have the same issue . I have been working with the same model and system . Most of the time my kernal will die or the system will hang for longtime . I believe it because of the mac spec and its Gpu Intel UHD Graphics 630 1536 MB is not sufficient for many llama models . To address this I have few suggestions .

  1. Use Quantized llama models . These are lightweight models .
  2. if possible try to get an EGPU for your mac .
  3. upgrade to PC with better specifications .
Reasons:
  • No code block (0.5):
  • Me too answer (2.5): I also have the same issue
  • Low reputation (1):
Posted by: Abishek m

79269292

Date: 2024-12-10 18:08:17
Score: 0.5
Natty:
Report link

As @C3roe mentioned, the error you're getting is apparently because you're using <script type="module" ... for your script.js. You were doing this because on script.js, you imported addtoCart function from another script (cart.js).

script.js

import { addtocart } from "./cart";            // <-- THIS PART
addtocart(quantity, name, price, imgurl);

//for fun
var fun =0
//loading the html file first cus to get empty spans
document.addEventListener('DOMContentLoaded',()=>{

// ...

One quick fix that can be done is to just redeclare that addtoCart function inside your script.js so you don't have to import it.

script.js

// import { addtocart } from "./cart";             // <-- NO LONGER NEEDED
function addtocart(quantity, name, price, imgurl) {
  const li = document.createElement('li');
  li.textContent = `${name} - ${quantity} x ₹${price} - ${imgurl}`;
  cart.appendChild(li);
}

addtocart(quantity, name, price, imgurl);

//for fun
var fun = 0
//loading the html file first cus to get empty spans
document.addEventListener('DOMContentLoaded', () => {
  //getting all span files as ids
  // ....

Now on your index.html, you don't need to specify type='module' for your script.js.

index.html

<script type="module" src="script.js"></script>  <!-- CHANGE THIS PART -->
<script src="script.js"></script>                <!-- TO BE LIKE THIS -->

I've tested this on my local machine and it doesn't throw the error you specified but instead pops up an alert: enter image description here

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Low reputation (1):
Posted by: Daffa' Alexander

79269286

Date: 2024-12-10 18:06:16
Score: 3.5
Natty:
Report link

I was able to create a pdf without linking my google drive, posted my solution in another section, kindly click link and check. https://stackoverflow.com/a/79269261/15132261

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pavn

79269284

Date: 2024-12-10 18:06:16
Score: 2
Natty:
Report link

You have to define operator==(const A& a0, const A& a1) which IS NOT member of class A:

inline bool operator==(const A& a0, const A& a1) const {
    return a0.isEqual(a1);
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kedan

79269283

Date: 2024-12-10 18:05:16
Score: 3
Natty:
Report link

I was able to create a pdf, posted my solution in another section, kindly click link and check. https://stackoverflow.com/a/79269261/15132261

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

79269282

Date: 2024-12-10 18:05:16
Score: 3
Natty:
Report link

Slight correction to Doug's answer, cygpath -wa should be cygpath -ua . cygpath -wa converts from unix paths to windows paths. See docs

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

79269279

Date: 2024-12-10 18:04:15
Score: 1
Natty:
Report link

I solved my problem in a strange way. I clicked on the cursor name (Step 3) with the right mouse button, clicked on the repeating resource. I got cursor1, and in the resources there was cursor : byte[] and cursor1 : byte[] (fourth picture). Now I can delete cursor1 and use Properties.Resources.cursor

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

79269278

Date: 2024-12-10 18:04:15
Score: 4
Natty: 5.5
Report link

NOT AN ANSWER, Follow on Question. How would this work if you are remotely connecting to a secured QMGR on an MQ appliance? I don't seem to be able to add credentials to the command line. I am successfully using this user ID to do other MQ operation like remove runmqsc commands and reading queue depths. On those I need to add a -u userName then < the password > save.output.file

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): NOT AN ANSWER
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: RayMN

79269273

Date: 2024-12-10 18:03:14
Score: 2.5
Natty:
Report link

So may have found a solution to my own question but please feel free to pick holes in it as the conditional statement for an empty First Name field remains untested.

<#assign firstname=Recipient.contact.firstname[0]!""/><#if firstname=="??">Customer<#else>${"${Recipient.contact.firstname[0]}"?replace("[^\w]|_", "", "r")?capitalize}</#if>

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alex

79269270

Date: 2024-12-10 18:03:14
Score: 0.5
Natty:
Report link

I am currently investigating a similar matter and stumbled upon a possible explanation/solution, saying that "required" and "nullable" are different notions in OpenAPI spec. The property "surname" being declared optional (required:false) does not make it nullable, it just allows it to be omitted entirely. To be able to include it but with a null value, you set it as "nullable: true" (and it can still be set to "required: true" even in that case, meaning that it has to be included even it's null).

Haven't tested that yet, though. Neither do I know if Swagger UI will handle this schema correctly, actually emitting the property as null when applicable.

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

79269264

Date: 2024-12-10 18:01:11
Score: 4.5
Natty:
Report link

Which version do you use it ? check the last version you use in project

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Which
  • Low reputation (1):
Posted by: Mehrdad Bozorgmehr

79269263

Date: 2024-12-10 18:01:11
Score: 1.5
Natty:
Report link

I experienced something similar. With gtsave, I think the other calls like vwidth and vheight are not being properly carried into the webshot function. I tried something similar with the webshot2::webshot function and it did not seem to respect any of the calls like vwidth when converting to pdf, as it outputted the same files regardless of what I put in. I had some success using the first version of webshot and converting to pdf. It might take some tinkering with vwidth, vheight, and the zoom function. I have not tried it with png files though.

https://wch.github.io/webshot/index.html

If there is a fix using webshot2::webshot that would be great.

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

79269262

Date: 2024-12-10 18:01:11
Score: 2
Natty:
Report link

Use the Linux i2cdetect tool to confirm that the Grove LCD RGB Display is correctly detected on the I2C bus

sudo i2cdetect -y 1

addresses 0x62 and 0x3E should appear (the addresses for the backlight and text, respectively). If they don’t, check the wiring and connection.

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

79269254

Date: 2024-12-10 17:59:10
Score: 2.5
Natty:
Report link

Looks like there is a -t option, so you could do:

gpioset -t0 My-led=1

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

79269251

Date: 2024-12-10 17:58:09
Score: 7.5 🚩
Natty: 6
Report link

does anyone have an actual answer to this? The answer just says to use another option, but this is not possible for me.

Reasons:
  • Blacklisted phrase (1): answer to this?
  • RegEx Blacklisted phrase (3): does anyone have an actual
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: molinaluciana

79269249

Date: 2024-12-10 17:58:08
Score: 4
Natty:
Report link

JeffC answer worked, the problem was that i was using google colaboratory

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

79269248

Date: 2024-12-10 17:57:08
Score: 2
Natty:
Report link

It seems the problem was adding fonts editor.fontFamily. I had a typo. Lucida Console was not surrounded with quotes.

bad: "editor.fontFamily": "Cambria, 'Cascadia Code', 'Lucida Console, Consolas, 'Courier New', monospace",

good: "editor.fontFamily": "Cambria, 'Cascadia Code', 'Lucida Console', Consolas, 'Courier New', monospace",

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

79269244

Date: 2024-12-10 17:56:07
Score: 4
Natty:
Report link

I found a resource that does a nice walkthrough on how to do this: https://tantainnovatives.com/blog/how-to-guides-and-tutorials/integrating-spotify-in-android-apps-a-developers-guide-to-the-spotify-web-api-and-sdk

Followed it up until the end of the "Add the Spotify SDK to Your App" and the imports work now.

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

79269243

Date: 2024-12-10 17:56:07
Score: 2
Natty:
Report link

I tried to replicate the same configuration as yours and ended up fetching the entire JSON instead of the specific value. Check this existing public feature request and feel free to upvote on the feature to prioritize it accordingly.

For additional reference regarding the issue, you may refer to Extract JSON key-value pairs from secrets.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: miracle

79269242

Date: 2024-12-10 17:54:06
Score: 1
Natty:
Report link

Use this command - npx expo run:ios --device and choose the devices you want.

  1. :ios - for iOS OS
  2. :android - for android OS
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rokas Rudzianskas

79269230

Date: 2024-12-10 17:51:05
Score: 1
Natty:
Report link

Use the output from configure export-credentials to find the session expiration. This works for profiles that use a sso-session whereas aws configure get x_security_token_expires does not.

Example

expires=$(aws configure export-credentials | jq -r '.Expiration')
echo "current session expires: $expires"

I've incorporated the above into a gist that configures shell completions for activating AWS_PROFILE and optionally refreshes its sso-session (if it expires in 2 hours or less). See https://gist.github.com/briceburg/f9b485dc0fa75fac0b2b169652e422b3

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

79269228

Date: 2024-12-10 17:51:05
Score: 3
Natty:
Report link

I'm experiencing the exact same issue in Angular 18. I modified the Stackblitz by @Owen Kelvin to replicate this issue. Note that wrapping it in form tags is what causes the issue. If you take away the form tags it works as expected. https://stackblitz.com/edit/angular-ivy-jp3hur1k

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Owen
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: DannyP

79269215

Date: 2024-12-10 17:48:05
Score: 2
Natty:
Report link

No, your only choice for a default input net type is `default_nettype.

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

79269194

Date: 2024-12-10 17:42:02
Score: 1.5
Natty:
Report link

When you add a '?' making the second group optional, your group 1 will match as much as possible (see about Greedy or Lazy). So, in your group 1, adding a '?' like that (.*?) will make it matches as less as possible.
Then add a $ to match until the end of the line.

1\.2\.\d\s+(.*?)(?:\s*\((\d+-\d+-\d+-[A-Z])\))?$
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When you add a
  • Low reputation (0.5):
Posted by: Wace

79269176

Date: 2024-12-10 17:36:00
Score: 1
Natty:
Report link

One method without using the index and by linearly interpolating on the additional days:

display(df)

df

df2 = pd.DataFrame({
    'A': None, 
    'B': pd.date_range('1/1/2010', periods = 7, freq = '1B') })

dico = {b:a for (a, b) in zip(df["A"], df["B"])}

df2["A"] = df2.apply(lambda row: dico.get(row["B"], np.nan) , axis=1).interpolate()
display(df2)

df2

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

79269174

Date: 2024-12-10 17:36:00
Score: 0.5
Natty:
Report link

After a lot of trial & error and a lot of Grace I worked out following workaround that really works regardless of OneDrive synchronization status.

Explainer of the situation: When OneDrive for Desktop is synchronizing an Excel workbook (let's call it Data Workbook), and that workbook is trying to be accessed from another workbook (let's call it Analysis Workbook) via PowerQuery or even directly by regular pivot table (not even PowerPivot) - Excel will regularly throw out error The process cannot access the file because it is being used by another process. That happens because the import/reading mechanism wants exclusive access to the Data Workbook (even though it is reading it only). You can't do a thing about it.

Workaround: You have to "fool" the import mechanism into thinking it is not accessing another workbook. There is a good enough solution for this which can be applied and automated in most situations:

set up a simple single formula in Analysis Workbook that pulls all relevant data from Data Workbook, and then set up import mechanism to use that as a source. This successfully circumvents any and all issues with OneDrive. Details on the example of using regular pivot table as the data consumer in Analysis workbook:

Let's say your data workbook is My Data.xlsx, and an Excel table in that data workbook is the source of your data, and that table is named source_data. For the sake of simplicity, I'm presuming all workbooks are in the same folder. in Analysis workbook, add a worksheet "ds_trick", and in A1 cell place formula ='My Data.xlsx'!source_data[#All] (no matter how large the source data table is, it is going to fit into this worksheet because the formula is in A1 and there cannot be more rows in Data workbook's worksheet then in the Analysis workbook worksheet so you are safe on that side) Let's say that this data table fills columns from A to N. Change the pivot table data source to 'ds_trick'!$A:$N. Notice that you are not specifying the rows in this reference - you are referencing whole columns! make sure that whatever automation mechanism you are creating is opening the Data workbook before you are ordering pivot cache refreshing. Notes:

Pivot tables do not support named ranges as source so you cannot directly reference the data workbook's Excel table in it. It also won't work if you try to create a named range in analysis workbook that references table in data workbook. You have to pull the data via formula in Analysis workbook. Without named range as data source for pivot table you are left with "fixed" number of rows to define which is not good, so the trick for that is to reference whole columns - luckly pivot tables are good with trimming empty rows so this actually is done without any latency in processing input data. This way you are successfully faking dynamic named range as source for pivot table (in terms of rows)

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

79269173

Date: 2024-12-10 17:36:00
Score: 3.5
Natty:
Report link

In a multi-sensor system, you are working to minimize the calibration error E(x, y), where x and y are calibration parameters. The calibration error is modeled as: E(x, y) = x2 7y2 - 2xy + 3x + 4y - 15. Determine the critical points and classify them as minima or maxima. How will minimizing this calibration error improve the accuracy of your sensor readings?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Kutty

79269163

Date: 2024-12-10 17:32:59
Score: 0.5
Natty:
Report link

The answer posted above works perfectly but here is another approach I found

apex.jQuery("span[data-style]").each(
  function()
  { 
    apex.jQuery(this).
      parent().parent().attr( 'style'
                   , apex.jQuery(this).attr('data-style')
                   ); 
  }
);

The only difference being that you are targeting the "grandparent" element by including an extra use of .parent()

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

79269151

Date: 2024-12-10 17:27:58
Score: 1.5
Natty:
Report link

The question is about identifying shared objects in Python's multiprocessing.managers.SyncManager when used by remote processes.

Simple Explanation: When you use SyncManager in Python to manage shared objects, the objects you share (e.g., dictionaries, lists) can be used across processes, even remotely. Each shared object is assigned a unique ID or "key" when it is created.

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

79269143

Date: 2024-12-10 17:25:57
Score: 4
Natty: 6
Report link

The same happened to me, your solution works, thanks!!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eileen Pardo Hernández

79269141

Date: 2024-12-10 17:24:56
Score: 0.5
Natty:
Report link
I needed to add event in the code. It's more or less the same. But took me some time to figure out.
   



  

rule.addTarget(new
         cdk.aws_events_targets.CodeBuildProject(codeBuildProject, {
              event: cdk.aws_events.RuleTargetInput.fromObject({
                environmentVariablesOverride: [
                  {
                    name: 'TAG',
                    value: tag,
                    type: 'PLAINTEXT',
                  },
                 ],
              }),
             }));

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

79269133

Date: 2024-12-10 17:22:56
Score: 1.5
Natty:
Report link

I will just add on that I made sure targetframework was .net9.0 in all projects. It didn't build, just complained about The current .NET SDK does not support targeting .NET 9.0. Either target .NET 6.0 or lower, or use a version of the .NET SDK that supports .NET 9.0.

Just changing base and build in the DockerFile from 6.0 to 9.0 fixed the problem. The error message wasn't even close to what the issue was.

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

79269127

Date: 2024-12-10 17:20:55
Score: 3.5
Natty:
Report link

Greeting Grasshopper;

I think what you are looking for is a windowing function also called 'over'

Take a peek at this and see if this is what you are looking for. https://learn.microsoft.com/en-us/sql/t-sql/queries/select-over-clause-transact-sql

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

79269125

Date: 2024-12-10 17:20:55
Score: 1
Natty:
Report link

I was able to resolve this by specifying output.type="text" to the stat_cor command. This successfully exported the negative sign as a text box, instead of an object that did not display in powerpoint. Code below:

   stat_cor(label.y.npc="top", label.x.npc = "left",
   size=7,
   method="pearson",  output.type = "text")
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: gsm

79269124

Date: 2024-12-10 17:20:55
Score: 0.5
Natty:
Report link

The url that works is in the format of:

[api]/[ControllerName]

I was trying urls that were variations of:

[api]/[ControllerName]/[MethodName]

NOTES:

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

79269119

Date: 2024-12-10 17:18:54
Score: 1.5
Natty:
Report link

For anyone who has recently encountered this issue, according to this article from Microsoft System.Text.Json started supporting serialization of the derived classes since .NET7.

You can achieve this by adding attribute annotations to the main class

[JsonDerivedType(typeof(DerivedExtensionA))]
public abstract class Extension
Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Roozbeh

79269116

Date: 2024-12-10 17:17:54
Score: 3.5
Natty:
Report link

I have the same issue in nodejs

const jspdf = require('jspdf');
const file = new jspdf.jsPDF("p", "mm", "a4");

and it worked as intended

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: merrais

79269100

Date: 2024-12-10 17:09:52
Score: 5
Natty:
Report link

It appears the RcppGallery already has the answer, thanks to the author: https://gallery.rcpp.org/articles/dynamic-dispatch-for-sparse-matrices/

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

79269094

Date: 2024-12-10 17:05:50
Score: 1
Natty:
Report link

I encountered this issue when trying to fetch from a local repo:

git fetch /my/local/path my_branch

This syntax gets rid of the warning:

git fetch file:///my/local/path my_branch

But I would prefer a way to tell git to not store anything in my config about this local path.

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

79269093

Date: 2024-12-10 17:05:50
Score: 0.5
Natty:
Report link

To clear the Material-UI DatePicker input when the value is invalid, make sure to pass null to the value prop when the input doesn't meet your validation criteria. For example:

<DatePicker
  value={isValidDate ? selectedDate : null}
 ...
/>

This approach ensures the DatePicker input resets appropriately

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

79269088

Date: 2024-12-10 17:03:50
Score: 2.5
Natty:
Report link

Android Gradle plugin is not the same as gradle. Use [https://docs.gradle.org/current/userguide/compatibility.html][1]. Be sure that gradle versions and Java versions match up. Update your Path and JAVA_HOME in System Environmental Variables and then restart your computer.

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

79269085

Date: 2024-12-10 17:02:49
Score: 2
Natty:
Report link

For any one who stumbles across this, solution was to use Spring Custom Scopes.

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

79269083

Date: 2024-12-10 17:02:49
Score: 1
Natty:
Report link

The problem can be solved - as CodingWithMagga has suggested - by using the rate_func option in the animate command. Here is how you can modify the command:

animations = [circle.animate(rate_func=linear, run_time=0.01).move_to(new_pos) for circle, new_pos in zip(circles, new_positions)]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: eeqesri

79269080

Date: 2024-12-10 17:01:49
Score: 3
Natty:
Report link

I have the same difficult to understand Informatica API documentation. Thanks to ask about that.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gilson Carciofi

79269067

Date: 2024-12-10 16:59:48
Score: 1
Natty:
Report link

In my case, I was working on a different project than the one my service account had permissions for, the following command was enough:

gcloud config set project [PROJECT_ID_SA]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Cristian Q

79269061

Date: 2024-12-10 16:57:48
Score: 3
Natty:
Report link

We managed to fix it in SB 3.1 by creating a TomcatConnectorCustomizer implementation based on the one given by Hakan54 here https://stackoverflow.com/a/78347946/5468484.

But, since we upgraded to SB 3.2, we movev the solution to use SSL bundles. It is much cleaner and works perfectly. https://spring.io/blog/2023/06/07/securing-spring-boot-applications-with-ssl

So, if ou are using SB >= 3.2, go for the second solution. If you are stuck in <3.2, go for the first one.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alexandre Hermida

79269059

Date: 2024-12-10 16:57:48
Score: 2.5
Natty:
Report link

First of all, for your case, you may want to use global dependencies which are covered in fastapi's documentations (link).

About testing, you may wanna go through this issue in sqlalchemy's repo or If you just want an example:

from typing import AsyncGenerator, Generator

import pytest
from httpx import ASGITransport, AsyncClient
from sqlalchemy import create_engine, event, text
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine
from sqlalchemy.orm import Session, SessionTransaction

from api.config import settings
from api.database.registry import *  # noqa: F403
from api.database.setup import (
    async_database_url_scheme,
    get_session,
    sync_database_url_scheme,
)
from api.main import app

pass  # Trick to load `BaseDatabaseModel` the last, since all database models must be imported before base model.
from api.database.models import BaseDatabaseModel  # noqa: E402


@pytest.fixture
def anyio_backend() -> str:
    return "asyncio"


@pytest.fixture
async def ac() -> AsyncGenerator:
    transport = ASGITransport(app=app, raise_app_exceptions=False)
    async with AsyncClient(transport=transport, base_url="https://test") as c:
        yield c


@pytest.fixture(scope="session")
def setup_db() -> Generator:
    engine = create_engine(
        sync_database_url_scheme.format(
            settings.DATABASE_USERNAME,
            settings.DATABASE_PASSWORD,
            settings.DATABASE_HOST,
            settings.DATABASE_PORT,
            "",
        )
    )
    conn = engine.connect()
    # Terminate transaction
    conn.execute(text("commit"))
    try:
        conn.execute(text("drop database test"))
    except SQLAlchemyError:
        pass
    finally:
        conn.close()

    conn = engine.connect()
    # Terminate transaction
    conn.execute(text("commit"))
    conn.execute(text("create database test"))
    conn.close()

    yield

    conn = engine.connect()
    # Terminate transaction
    conn.execute(text("commit"))
    try:
        conn.execute(text("drop database test"))
    except SQLAlchemyError:
        pass
    conn.close()
    engine.dispose()


@pytest.fixture(scope="session", autouse=True)
def setup_test_db(setup_db: Generator) -> Generator:
    engine = create_engine(
        sync_database_url_scheme.format(
            settings.DATABASE_USERNAME,
            settings.DATABASE_PASSWORD,
            settings.DATABASE_HOST,
            settings.DATABASE_PORT,
            "test",
        )
    )

    with engine.begin():
        BaseDatabaseModel.metadata.drop_all(engine)
        BaseDatabaseModel.metadata.create_all(engine)
        yield
        BaseDatabaseModel.metadata.drop_all(engine)

    engine.dispose()


@pytest.fixture
async def session() -> AsyncGenerator:
    # https://github.com/sqlalchemy/sqlalchemy/issues/5811#issuecomment-756269881
    async_engine = create_async_engine(
        async_database_url_scheme.format(
            settings.DATABASE_USERNAME,
            settings.DATABASE_PASSWORD,
            settings.DATABASE_HOST,
            settings.DATABASE_PORT,
            "test",
        )
    )
    async with async_engine.connect() as conn:
        await conn.begin()
        await conn.begin_nested()
        AsyncSessionLocal = async_sessionmaker(
            autocommit=False,
            autoflush=False,
            expire_on_commit=False,
            bind=conn,
            future=True,
        )

        async_session = AsyncSessionLocal()

        @event.listens_for(async_session.sync_session, "after_transaction_end")
        def end_savepoint(session: Session, transaction: SessionTransaction) -> None:
            if conn.closed:
                return
            if not conn.in_nested_transaction():
                if conn.sync_connection:
                    conn.sync_connection.begin_nested()

        def test_get_session() -> Generator:
            try:
                yield AsyncSessionLocal
            except SQLAlchemyError:
                pass

        app.dependency_overrides[get_session] = test_get_session

        yield async_session
        await async_session.close()
        await conn.rollback()

    await async_engine.dispose()

Let me explain the piece of code that I have written:

If you need more detail about what I have done, please let me know.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (1): I have done, please
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: thisisjab

79269055

Date: 2024-12-10 16:56:48
Score: 1.5
Natty:
Report link

I had the same issue (changes to html not reflected when running project in Visual Studio debugger). Although the IIS server was running, the computer was not connected to the internet. After connecting to the internet, the updates were available.

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

79269051

Date: 2024-12-10 16:55:47
Score: 3
Natty:
Report link

Try downgrading your Xcode to 15.x.x version for now, the issue happens on Xcode 16.

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

79269050

Date: 2024-12-10 16:54:47
Score: 3.5
Natty:
Report link

Some of us CANT use jquery... ie like Defense Contractors... and using a package is not the answer to a problem that should be known in the language itself.

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

79269049

Date: 2024-12-10 16:54:47
Score: 2
Natty:
Report link

Answering my own question, I was able to install the RPM using "rpm":

rpm -ivh --nodeps xorg-x11-apps-7.7-21.el8.x86_64

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

79269048

Date: 2024-12-10 16:54:46
Score: 4
Natty:
Report link

This working EntityFramework6\Add-Migration

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

79269037

Date: 2024-12-10 16:49:45
Score: 1
Natty:
Report link

Here's a simple code for a virtual coin flip in Python:

import random

def flip_coin():
    result = random.randint(0, 1)
    if result == 0:
        return "Heads"
    else:
        return "Tails"

print(flip_coin())
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gori Saxena

79269022

Date: 2024-12-10 16:45:44
Score: 3
Natty:
Report link

In my regex I dropped the colon (:) in the url https// instead of https://.

If anyone else comes across this you have something to check now.

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

79269015

Date: 2024-12-10 16:44:43
Score: 0.5
Natty:
Report link

After a lot of trial & error and a lot of Grace I worked out following workaround that really works regardless of OneDrive synchronization status.

Explainer of the situation: When OneDrive for Desktop is synchronizing an Excel workbook (let's call it Data Workbook), and that workbook is trying to be accessed from another workbook (let's call it Analysis Workbook) via PowerQuery or even directly by regular pivot table (not even PowerPivot) - Excel will regularly throw out error The process cannot access the file because it is being used by another process. That happens because the import/reading mechanism wants exclusive access to the Data Workbook (even though it is reading it only). You can't do a thing about it.

Workaround: You have to "fool" the import mechanism into thinking it is not accessing another workbook. There is a good enough solution for this which can be applied and automated in most situations:

  1. set up a simple single formula in Analysis Workbook that pulls all relevant data from Data Workbook, and then
  2. set up import mechanism to use that as a source.

This successfully circumvents any and all issues with OneDrive. Details on the example of using regular pivot table as the data consumer in Analysis workbook:

  1. Let's say your data workbook is My Data.xlsx, and an Excel table in that data workbook is the source of your data, and that table is named source_data. For the sake of simplicity, I'm presuming all workbooks are in the same folder.
  2. in Analysis workbook, add a worksheet "ds_trick", and in A1 cell place formula ='My Data.xlsx'!source_data[#All] (no matter how large the source data table is, it is going to fit into this worksheet because the formula is in A1 and there cannot be more rows in Data workbook's worksheet then in the Analysis workbook worksheet so you are safe on that side)
  3. Let's say that this data table fills columns from A to N. Change the pivot table data source to 'ds_trick'!$A:$N. Notice that you are not specifying the rows in this reference - you are referencing whole columns!
  4. make sure that whatever automation mechanism you are creating is opening the Data workbook before you are ordering pivot cache refreshing.

Notes:

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

79269014

Date: 2024-12-10 16:44:43
Score: 0.5
Natty:
Report link

I've done even a different approach of other answers and added environment variable

export NODE_OPTIONS='--network-family-autoselection-attempt-timeout=500'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: morhook

79269013

Date: 2024-12-10 16:43:43
Score: 3.5
Natty:
Report link

The solution I fond is to use taylor expansions for the first moment of functions of random variables. The details can be found here: vignette_taylor_series

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

79269010

Date: 2024-12-10 16:41:42
Score: 4
Natty:
Report link

Hello i am new to AI stuff and also going through this example of using transformer block for time series classification.

Aside from the padding issue, may i ask why it use "channels_first" rather than "channels_last" in GlobalAveragePooling2D layer?

I have a 2D data like yours and reshape it to (batch, height, width, 1). "channel_first" give me a high accuracy to 9X% but not "channel_last".

The Keras example use 1D data, using "channel_last" but also result in a poor accuracy. But according to the definition "channels_last" should be correct

Reasons:
  • Blacklisted phrase (1): may i ask
  • RegEx Blacklisted phrase (1.5): i am new
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jerson

79269003

Date: 2024-12-10 16:40:41
Score: 0.5
Natty:
Report link

I had this issue and (it feels like a hack) was able to resolve it by limiting overflow:

html {
  overflow-x: hidden;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: fafrd

79269001

Date: 2024-12-10 16:40:41
Score: 2
Natty:
Report link

everyone! The simplest and easiest way to implement a date-time picker is by using the input element with the datetime-local type. I highly recommend trying it out. Creating a custom component or using third-party libraries can be quite complicated due to compatibility issues with the latest Angular versions.

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

79268985

Date: 2024-12-10 16:34:40
Score: 2
Natty:
Report link

Try use:

npx create-electron-app my-new-app -- —-template=webpack
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Paul Alfonso Cuéllar Prieto

79268968

Date: 2024-12-10 16:28:38
Score: 2
Natty:
Report link

This feature is relatively new and can be utilized by adding a new header comment to your plugin - Requires Plugins.

You can learn more about how to use it in the official WordPress.org announcement.

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

79268966

Date: 2024-12-10 16:27:38
Score: 0.5
Natty:
Report link

Create a Snowflake TASK to execute the COPY INTO command and execute that task from your process. This runs the COPY INTO commands serially as needed, eliminating the concurrency issue. Per the EXECUTE TASK documentation:

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Brandon

79268963

Date: 2024-12-10 16:26:37
Score: 3.5
Natty:
Report link

The problem was solved by adding Str::random(16) to the keys :key="'ad-profile-'.$item->id.'-tab4-'.Str::random(16)"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Тарас Гаврилюк

79268955

Date: 2024-12-10 16:24:37
Score: 3.5
Natty:
Report link

SOLUCIÓN PROBADA

https://www.cloudways.com/blog/increase-media-file-maximum-upload-size-in-wordpress/#:~:text=1.%20Update%20.htaccess%20File

Vaya a este sitio, y haga la primera opción. Cargar al htaccess. No necesitas hacer nada más

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Juan Pablo Pérez Toro

79268931

Date: 2024-12-10 16:15:34
Score: 2.5
Natty:
Report link

To help the guys coming after us, instead of implementing your own 'Stack2', take a look at the 'UnboundStack' from ux_improvements

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

79268920

Date: 2024-12-10 16:11:33
Score: 2.5
Natty:
Report link

Check the hash that you got, if its e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 then you have a network stability issue. That hash corresponds to an empty file, you need to switch to a different network connection. This kind of thing can be caused by funky firewalls etc issues, so just find an alternative way to connect.

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

79268919

Date: 2024-12-10 16:11:33
Score: 1
Natty:
Report link

In my case I had a syntax error in my k8s pre-start hook that was causing the SIGWINCH message.

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

79268913

Date: 2024-12-10 16:08:32
Score: 2
Natty:
Report link

I know this is an old question, but I happened here and thought of another alternative. You could return the mime type of the media file, so clients interested in that could just display it. The metadata could be added as a custom response header (with a JSON value if you prefer) so that metadata aware clients could extract the relevant information for the exact image returned without a race condition or double lookup.

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

79268911

Date: 2024-12-10 16:07:31
Score: 4.5
Natty: 4
Report link

I upgraded my laravel 8 backend for SPA (vue.js, sanctum) to laravel 11, and post request /broadcasting/auth returns HTML response instead of json like { auth: "..." }

In previous version Broadcast::routes has been called from BroadcastServiceProvider, but not is it under the hood of laravel framework in ApplicationBuilder.php, and previously I've added sanctum middleware like this Broadcast::routes(['middleware' => ['auth:sanctum']]);

How should I do it in laravel 11?

Reasons:
  • Blacklisted phrase (1): How should I
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Eugene B.

79268903

Date: 2024-12-10 16:03:30
Score: 0.5
Natty:
Report link

panelTitle is the one which is changing color of Details, features, changelog labels in extensions panel . Let me know if this is what you looking for.

Modifications in settings.json :

"workbench.colorCustomizations": {
"editorGroupHeader.foreground": "#f40808",  
"textLink.foreground": "#f40808",          
"editor.foreground": "#f40808",             
"panelTitle.inactiveForeground": "#f40808",
"panelTitle.activeForeground":"#f40808"

}

and got this result :

enter image description here

enter image description here

You can refer to this for further information : https://code.visualstudio.com/api/references/theme-color

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

79268898

Date: 2024-12-10 16:02:29
Score: 0.5
Natty:
Report link

Add empty lines in your Source file. It worked for me, I had the same problem.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): I had the same
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: phil00

79268891

Date: 2024-12-10 16:00:29
Score: 3.5
Natty:
Report link

I also need need this. It is so inconvenient to loop all the symbol.

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

79268882

Date: 2024-12-10 15:57:28
Score: 1
Natty:
Report link

In the end, it was due to a component higher up in the web page's structure with the style height: 100vh;. For a normal page, this worked; the page was globally not scrollable, and my sidebar's div was made scrollable, as well as the main content div, which could be scrolled within as well.

However, for printing, it is important that height of content is not limited or set in a hardcoded pixels value.

TLDR: Make sure the container's height is set to height: auto; with @media print { ... }

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

79268870

Date: 2024-12-10 15:51:24
Score: 7 🚩
Natty:
Report link

This is stated clearly in the documentation. Please check this link.

https://api.flutter.dev/flutter/dart-async/FutureOr-class.html#:~:text=FutureOr%20class%20abstract,resolved%20to%20the%20internal%20type.

Reasons:
  • Blacklisted phrase (1): Please check this
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MotoMatt5040

79268858

Date: 2024-12-10 15:47:22
Score: 5.5
Natty:
Report link

I am having the same error. It seems like NextJS v14.2 have changed the types definitions and @clerk/nextjs is not able to catch up.

I would say, give it a few days until clerk team release a minor update to fix this linting error.

Reasons:
  • RegEx Blacklisted phrase (1): I am having the same error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same error
  • Low reputation (1):
Posted by: Alaa ElSaman

79268855

Date: 2024-12-10 15:45:22
Score: 1.5
Natty:
Report link

Actually I want to post my solution here, thanks for the help from ZaidMalek.

As for the official documentation on Routing, it seems that we need to add the route of api.php in bootstrap/app.php. So the code in app.php would be:

<?php

use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;

return Application::configure(basePath: dirname(__DIR__))
    ->withRouting(
        web: __DIR__.'/../routes/web.php',
        api: __DIR__.'/../routes/api.php', 
        commands: __DIR__.'/../routes/console.php',
        health: '/up',
    )
    ->withMiddleware(function (Middleware $middleware) {
        //
    })
    ->withExceptions(function (Exceptions $exceptions) {
        //
    })->create();
Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Taiwan No.1