79501684

Date: 2025-03-11 17:54:12
Score: 4
Natty:
Report link

How do I refresh the related UI after passing data into a server component in Next.js 15 (without full page refresh)? Problem I'm working with Next.js 15 and trying to update a server component's UI after a client component triggers a server action.

Here's the simplified setup: Client Component

'use client';

import { updateText } from './parent_comp';

export default function ClientComp() {
 const handleClick = async () => {
  await updateText('devtz007'); // Sends new data to the server
};
return (
 <button
  onClick={handleClick}
  style={{ color: 'black', background: 'coral' }}
 >
  Send Text
 </button>
 );
}

Server Component + Action

'use server';

import ClientComp from './client_comp';
import { revalidatePath } from 'next/cache';

let text = 'initial text';

export async function updateText(newText: string): Promise<string> {
 text = newText;
  // revalidatePath('/example_page'); // This re-renders the page, but I want a 
 more targeted update!
  return text;
}

export default async function ParentComp() {
  return (
    <>
      <p style={{ color: 'green', backgroundColor: 'coral' }}>
         Received Text: {text}
        </p>
       <ClientComp />
     </>
    );
}

What I’ve Tried

And the component:

export default async function ParentComp() {
   return (
     <>
      <p style={{ color: 'green', backgroundColor: 'coral' }}>{text}</p>
      <ClientComp />
     </>
    );

  }

Issue

  1. Is revalidateTag() re-rendering just the related portion (e.g.,

    Received Text

    ) or the whole page?
  2. If I use ClientComp on another page, clicking the button does not immediately update the ParentComp without a manual page refresh.
  3. I don’t want to use router.refresh() because it refreshes the full page.
  4. What's the intended pattern in Next.js 15 to partially refresh components after an action without reloading the whole page?
Reasons:
  • Blacklisted phrase (1): How do I
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How do I
  • Low reputation (1):
Posted by: Ch Farrukh

79501683

Date: 2025-03-11 17:54:12
Score: 4.5
Natty: 6
Report link

What you want may be to "Mute inline plotting" as described here https://docs.spyder-ide.org/current/panes/plots.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What you
  • Low reputation (0.5):
Posted by: Fırat Kıyak

79501681

Date: 2025-03-11 17:54:12
Score: 1
Natty:
Report link

A version of the code by @crazy2be which also respects newline characters already in the string, so that for example "Hello\nWorld!" becomes [ "Hello", "World" ]

function getLines(ctx, text, maxWidth) {
    const groups = text.split('\n');

    let lines = [];

    groups.forEach((group) => {
        const words = group.split(' ');

        let currentLine = words[0];

        for (let i = 1; i < words.length; i++) {
            const word = words[i];
            let width = ctx.measureText(currentLine + ' ' + word).width;
            if (width < maxWidth) {
                currentLine += ' ' + word;
            } else {
                lines.push(currentLine);
                currentLine = word;
            }
        }
        lines.push(currentLine);
    });

    return lines;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @crazy2be
  • Low reputation (1):
Posted by: limes.pink

79501671

Date: 2025-03-11 17:51:11
Score: 2
Natty:
Report link

I encountered this today and it was due to the server datetime being way off. The date was March 11, 2025 at the time of this screenshot:

enter image description here

Once I corrected this, it started working again

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

79501662

Date: 2025-03-11 17:46:10
Score: 0.5
Natty:
Report link

The way I was able to adjust this was to ustilize their "attach='true'" property on those methods within vitest. When setting up my mounts I would have to import vuetify into the global plugins:

const vuetify = createVuetify({
  components,
  directives
})

The trick was to set the defaults for those properties in here:

const vuetify = createVuetify({
  components,
  directives,
  defaults: {
    VTooltip: {
      attach: true,
    }
  }
})

This may not be a good way to get around the teleport problems, but so far it has been working well.

I found a work around to my problem and wanted to share with people

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

79501661

Date: 2025-03-11 17:46:10
Score: 0.5
Natty:
Report link

In the Nuitka page you can read that

Nuitka Standard
The standard edition bundles your code, dependencies and data into a single executable if you want. It also does acceleration, just running faster in the same environment, and can produce extension modules as well. It is freely distributed under the Apache license.

Nuitka Commercial
The commercial edition additionally protects your code, data and outputs, so that users of the executable cannot access these. This a private repository of plugins that you pay to get access to. Additionally, you can purchase priority support.

So to encrypt all traceback outputs you have to buy the Commercial version.

In this Nuitka Commercial you can see the features only Nuitka Commercial offers.

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

79501660

Date: 2025-03-11 17:46:10
Score: 3.5
Natty:
Report link

Did you add the following tag in manifest?

<service
    android:name=".yourpackage.MyFirebaseMessagingService"
    android:directBootAware="true"
    android:exported="true">
    <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT" />
    </intent-filter>
</service>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you add the
  • Low reputation (1):
Posted by: Phan Tuan

79501657

Date: 2025-03-11 17:45:09
Score: 2
Natty:
Report link

I downloaded your sheet and found that it would not properly sum. So I recreated it from "nearly scratch. The cost for an line item is calculated as the total cost of all items ($200) times the number of units in the line item all divided by the total of all the units in all of the line items. Hopefully you can get to my copy of your spreadsheet here : https://docs.google.com/spreadsheets/d/1yP7bFN-vV5W3RAPUSt3VSdDhE9JF2rWZV9lLTHi0_8c/edit?gid=0#gid=0

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

79501654

Date: 2025-03-11 17:45:09
Score: 1
Natty:
Report link

In researching App Pool Identities, I came across your question - late to the discussion but passing this on in case anyone else runs into it: the system doesn't create a user profile when using Application Pool Identity. According to Microsoft:

"However, with the switch to unique Application Pool identities, no user profile is created by the system. Only the standard application pools (DefaultAppPool and Classic .NET AppPool) have user profiles on disk. No user profile is created if the Administrator creates a new application pool."

Full documentation here: https://learn.microsoft.com/en-us/iis/manage/configuring-security/application-pool-identities#application-pool-identity-accounts

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

79501644

Date: 2025-03-11 17:42:09
Score: 1.5
Natty:
Report link

As it turns out, the solution was simpler than I expected.

Since those files are not necessary, I could simply remrove them from the repo and add them to .gitignore:

.gitignore

...

venv/
__pycache__/
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Maurício Schwartsman

79501630

Date: 2025-03-11 17:35:06
Score: 6.5 🚩
Natty:
Report link

what LLM provider are you using?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: LangChain4j

79501628

Date: 2025-03-11 17:35:06
Score: 1
Natty:
Report link

I was using WiFi (internet) and Ethernet networks. Docker was trying to use the latter, shutting it down solved the problem.

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

79501626

Date: 2025-03-11 17:35:06
Score: 1.5
Natty:
Report link

It worked for me to disable optimization with: "buildOptimizer": false,

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

79501623

Date: 2025-03-11 17:33:06
Score: 1.5
Natty:
Report link

In order to revert changes, you can perform two different actions:

  1. Manually changing the migration produced by the execution of this command

  2. Manually removing that migration file

Probably, you should also update the interested database tables, depending on your situation.

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

79501613

Date: 2025-03-11 17:30:05
Score: 2.5
Natty:
Report link

In the nearest Playwright version (1.52) there will be an option to set up the number of workers per specific project: https://github.com/microsoft/playwright/issues/21970

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

79501611

Date: 2025-03-11 17:29:05
Score: 1.5
Natty:
Report link

Check this out https://github.com/ekasetiawans/flutter_background_service/issues/285#issuecomment-1683243726

you may need to:

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

79501596

Date: 2025-03-11 17:19:02
Score: 3
Natty:
Report link

### Issue:

You are setting up an OpenSearch cluster using LocalStack on a Kubernetes pod, exposing it via a Kubernetes service. When making a search request, you encounter the error:

exception during call chain: Unable to find operation for request to service es: POST /api-transactions/_search

### Possible Causes & Fixes:

#### 1. Verify OpenSearch Domain Exists

Run the following command to confirm that the domain was created successfully:

awslocal opensearch list-domain-names --endpoint-url http://localhost:4566

Ensure that api-transactions appears in the output. If not, try recreating it.

#### 2. Check the OpenSearch Endpoint

Get the domain details and check its Endpoint:

awslocal opensearch describe-domain --domain-name api-transactions --endpoint-url http://localhost:4566

Ensure you are making requests to the correct endpoint.

#### 3. Ensure LocalStack Recognizes OpenSearch

Since you have specified both opensearch and es in the LocalStack SERVICES environment variable:

name: SERVICES

value: "dynamodb,s3,sqs,opensearch,es"

Try setting only opensearch:

name: SERVICES

value: "dynamodb,s3,sqs,opensearch"

Then restart the LocalStack pod.

#### 4. Verify Your OpenSearch Request Format

Your Go code is signing the request with:

signer, err := requestsigner.NewSignerWithService(awsCfg, "es")

Try changing "es" to "opensearch":

signer, err := requestsigner.NewSignerWithService(awsCfg, "opensearch")

LocalStack may expect opensearch instead of es for signing requests.

#### 5. Manually Test OpenSearch API

Test OpenSearch directly to check if the issue is with LocalStack or your application:

curl -X POST "http://localhost:4566/api-transactions/_search" -H "Content-Type: application/json" -d '{ "query": { "match_all": {} } }'

If you get the same error, the issue is likely with LocalStack’s OpenSearch service.

#### 6. Check LocalStack Logs for Errors

Run:

kubectl logs <localstack-pod-name> | grep "opensearch"

Look for any errors indicating OpenSearch initialization issues.

#### 7. Specify the OpenSearch Endpoint Explicitly in Your Code

Instead of relying on auto-discovery, explicitly set the OpenSearch endpoint in your Go client:

osCfg, err := opensearchapi.Config{ Addresses: []string{"http://localhost:4566"}, Transport: signer, }

This ensures your application is hitting the right OpenSearch URL.

#### 8. Restart LocalStack if Necessary

If nothing works, restart the LocalStack pod:

kubectl delete pod <localstack-pod-name>

Then, redeploy with:

helm upgrade --install localstack localstack/localstack

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (1):
Posted by: Rahul Bansod

79501577

Date: 2025-03-11 17:11:01
Score: 1
Natty:
Report link

Try using SeleniumBase, it worked fine for me and it bypasses cloudflare with the CDP mode.

you can find examples on the cdp mode here, https://seleniumbase.io/examples/cdp_mode/ReadMe/#cdp-mode-api-methods

it also passes AntiCaptchaV2, and AntiCaptchaV3 like most of the time but not always, good luck trying.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahmed Elshahat

79501568

Date: 2025-03-11 17:09:00
Score: 6 🚩
Natty:
Report link

Its is a loading issue I think so but not sure I have also face same issues

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): also face same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: king

79501553

Date: 2025-03-11 17:05:59
Score: 1.5
Natty:
Report link

Some CAs interpret the CA/B forum rules more strictly than others. Some require attestation proof that chains up to a hardware root of trust while others just require you to pinky promise that you use an HSM. A while back I asked our CA why they don't require the attestation and they said it isn't strictly required by the CA/B rules.

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

79501550

Date: 2025-03-11 17:05:59
Score: 2.5
Natty:
Report link

In my case, I was trying to create Amason Machine Image (AMI), and by default aws reboot the instance, which cause a disconnection.

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

79501549

Date: 2025-03-11 17:05:59
Score: 1.5
Natty:
Report link

Affective computing is a field that comprises systems that recognize, interpret, process, or simulate human feeling, emotion, and mood.[65] For example, some virtual assistants are programmed to speak conversationally or even to banter humorously; it makes them appear more sensitive to the emotional dynamics of human interaction, or to otherwise facilitate human–computer interaction.

However, this tends to give naïve users an unrealistic conception of the intelligence of existing computer agents.[66] Moderate successes related to affective computing include textual sentiment analysis and, more recently, multimodal sentiment analysis, wherein AI classifies the effects displayed by a videotaped subject.[67]

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

79501536

Date: 2025-03-11 17:01:58
Score: 2
Natty:
Report link

https://github.com/adamstark/Chord-Detector-and-Chromagram

This library is real-time and performs well enough to play along.

Usage with JACK Audio Connection Kit can be seen here: https://github.com/relascope/chordola

@herzmeister: the guys from melodyne don't talk much, but I think they are using the stuff from the experience around Sonic-Visualizer and Tony (https://sonicvisualiser.org/tony/)

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @herzmeister
  • High reputation (-1):
Posted by: relascope

79501529

Date: 2025-03-11 16:59:57
Score: 0.5
Natty:
Report link

Thanks to Alix for the general solution. Here's a version that doesn't depend on the Location header being in a fixed position.

$context = array
(
    'http' => array
    (
        'method' => 'GET',
        'max_redirects' => 1,
    )
);

@file_get_contents('https://YOUR-SHORTCUT-URL', null, stream_context_create($context));

$urlRedirect = NULL;
foreach ($http_response_header AS $header)
{
    $rec = explode(': ', $header);
    if (count($rec) == 2 && $rec[0] == 'Location')
        $urlRedirect = $rec[1];
}

if ($urlRedirect != NULL)
    echo "redirects to $urlRedirect";
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tom Saxton

79501522

Date: 2025-03-11 16:58:57
Score: 1
Natty:
Report link

I resolved in Visual Studio by going to Properties > Build then turn on 'Prefer 32-bit'.

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: RevitArkitek

79501519

Date: 2025-03-11 16:57:57
Score: 1.5
Natty:
Report link

Recreating an entire list of dates with a framework that can be quite slow loading, like Ext JS 3.x, sounds counter intuitive. But that's how to resolve this.

I copied my Browser Fixture properties that create the the first Programmatic List. And named these as Secondary Programmatic Dates, etc.

One saves the date whether it is going to be Post(ed) (activated, checked) or Deactivated (unchecked). Then using the secondary list, the date is returned to its pre-test value.

Working with the already existing list seems much faster an approach but IReadOnlyCollection is just that.

Jeff C, Diego, DeLaphante, thanks for the input.

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

79501515

Date: 2025-03-11 16:57:57
Score: 1.5
Natty:
Report link

you could try to add onClick conditionally:

<div {...!disabled && {onClick}}>{children}</div>

this way there will not be onClick added to the div if it is disabled

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

79501514

Date: 2025-03-11 16:56:56
Score: 2
Natty:
Report link

You should explicitly specify the certificate you want to sign with via its thumbprint by using the /sha1 switch. You can get the thumbprint by double clicking on the certificate in your certificate store, clicking on Details, then scroll down to the Thumbprint value.

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

79501512

Date: 2025-03-11 16:56:56
Score: 2.5
Natty:
Report link

If you're using context isolation as recommended by Electron, each window should have its own context and window object. That would prevent the leak as each window object is separate and would be removed alongside the closed window.

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

79501501

Date: 2025-03-11 16:52:55
Score: 11.5
Natty: 7
Report link

Were you able to resolve this? I have multiple data disks to add to this, any suggestions for the data disk and attachment code?

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve this?
  • RegEx Blacklisted phrase (2): any suggestions
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: cloudseeker

79501499

Date: 2025-03-11 16:52:55
Score: 1
Natty:
Report link

We do something similar at my work where the code signing keys are generated in the HSM and we leverage a signing platform called GaraSign to do the actual signing. We don't have to RDP to the various servers to do the signing, although you could implement it that way. In our environment each developer can sign from their own workstation using the centralized key, and SSO from our AD Domain controls authentication and authorization. We don't allow many developers to sign anymore as we try to control that all from our CI/CD pipeline, although exceptions have been made for certain legacy use cases. Since we are a large company we have a few different HSMs that we use, Azure Key Vault being one of them but also Luna HSM.

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

79501489

Date: 2025-03-11 16:47:54
Score: 1.5
Natty:
Report link

1 - Assessment is the action to verify the token sent by reCAPTCHA and assess the risk. So only the token verification will be calculated (whatever with a BACKEND or with WAF)
https://cloud.google.com/recaptcha/docs/implementation-workflow
2 - The free 10,000 assessments are per organization. The limit aggregates use across all accounts and all sites.
https://cloud.google.com/recaptcha/docs/compare-tiers

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

79501488

Date: 2025-03-11 16:47:54
Score: 1
Natty:
Report link

Application gateway inserts six additional headers to all requests before it forwards the requests to the backend. These headers are x-forwarded-for, x-forwarded-port, x-forwarded-proto, x-original-host, x-original-url, and x-appgw-trace-id. X-original-host header contains the original host header with which the request arrived. This header is useful in Azure website integration, where the incoming host header is modified before traffic is routed to the backend. If session affinity is enabled as an option, then it adds a gateway-managed affinity cookie. For more info, please see this link: https://learn.microsoft.com/en-us/azure/application-gateway/how-application-gateway-works#modifications-to-the-request

The above is according to the Microsoft's Azure Application Gateway webpage. You can capture the X-Original-Host header and redirect to it in your Startup.cs; something like this:

app.Use(async (context, next) =>
{
  if (context.Request.Headers.GetValues("X-Original-Host") != null)
  {
    var originalHost = context.Request.Headers.GetValues("X-Original-Host").FirstOrDefault();
    context.Request.Headers.Set("Host", originalHost);
  }
  await next.Invoke();
});
Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): see this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SoftwareDveloper

79501479

Date: 2025-03-11 16:40:52
Score: 3.5
Natty:
Report link

The answer given was very helpful, however an easier way to turn on and off is buy just using the 'Stop If True' checkbox.

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

79501468

Date: 2025-03-11 16:34:51
Score: 3
Natty:
Report link

Sorry for late reply. The improvements were made on February 4, but released a bit later than you encountered the problem. If you try again, the problem should not occur.

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

79501465

Date: 2025-03-11 16:33:51
Score: 1.5
Natty:
Report link

after every row of code make sure to do Ctrl + Enter and i think check through the R library using data() to make sure the starwars dataset or tibble is there , I hope it works for you

Reasons:
  • Whitelisted phrase (-1): hope it works
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Peter

79501463

Date: 2025-03-11 16:32:51
Score: 1.5
Natty:
Report link

The vendor fixed (at least in part) their COM implementation in a recent release: the dynamic keyword now works as expected. So does the dynamic view when debugging the COM objects.

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

79501460

Date: 2025-03-11 16:30:50
Score: 2.5
Natty:
Report link

Apparently the latency is added because of mp4 container and its internal file structure. Instead of trying to tweak its properties I decide to make it simpler and now Im sending the actual jpeg frames. Final solution can be found here: https://github.com/bymoses/linux-phone-webcam

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

79501458

Date: 2025-03-11 16:30:50
Score: 1
Natty:
Report link

It really depends on your use case.

Pro JSON:

Contra JSON:

I would recommend ONLY using JSON columns if the data stored in it is only there to be read and saved in the database, while the rest would be handled by your programming language of choice. If you want data that is actually accessible via the DB itself, DO NOT use JSON.

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

79501456

Date: 2025-03-11 16:29:50
Score: 1.5
Natty:
Report link

That's a FinCEN SAR form. If you want to fill that out, your best bet is https://hummingbird.co

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

79501452

Date: 2025-03-11 16:28:50
Score: 4.5
Natty: 5
Report link

It looks like this param does not cover Direct buffer memory OOME.

See this post: -XX:+ExitOnOutOfMemoryError ignored on 'java.lang.OutOfMemoryError: Direct buffer memory'

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Hugo Martinez

79501448

Date: 2025-03-11 16:27:49
Score: 1
Natty:
Report link

Adding for search algorithm: Marshal.GetTypeLibGuidForAssembly works for "new" SDK style csproj C# Projects where there is no ProjectGuid specified in a AssemblyInfo.cs file (they moved it to the solution .sln file only).

Using GetCustomAttributes(typeof(GuidAttribute), false) was returning no results, even if <ProjectGuid> was specified in the .csproj.

The posts https://stackoverflow.com/a/62988275/2299427 and https://github.com/dotnet/msbuild/issues/3923 brought me to understand the project GUID is no longer in use.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Isaac Baker

79501442

Date: 2025-03-11 16:25:49
Score: 2.5
Natty:
Report link

You just need to change the connection string: "Foreign Keys=False"

    private static void LoadDbContext()

    {
        var connectionstring = "data source=D:\\Repos\\ERP_WPF\\ERP_WPF\\chinook.db;Foreign Keys=False";
        var optionsBuilder = new DbContextOptionsBuilder\<ChinookdbContext\>();
        optionsBuilder.UseSqlite(connectionstring);
        context = new ChinookdbContext(optionsBuilder.Options);
    }

https://stackoverflow.com/a/40289265/2064937

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Brummell

79501437

Date: 2025-03-11 16:23:49
Score: 3
Natty:
Report link

This is where I founded mine:

app/build/intermediates/apk

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

79501436

Date: 2025-03-11 16:23:49
Score: 0.5
Natty:
Report link

Use type parameters to eliminate code duplication:

// GetJson decodes the resource at url to T and returns the result.
func GetJson[T any](url string) (T, error) {
    req, err := http.NewRequest("GET", url, nil)
    // commented out error handling

    resp, err := myClient.Do(req)
    // commented out error handling

    defer resp.Body.Close()

    var target T
    err = json.NewDecoder(resp.Body).Decode(target)
    // commented out error handling

    return target, err
}

// GetJsons decodes each resource at urls to a T and returns
// a slice of the results.
func GetJsons[T any](urls []string) ([]T, []error) {
    errors := make([]error, len(urls))
    targets := make([]T, len(urls))
    var wg sync.WaitGroup
    wg.Add(len(urls))
    for i, url := range urls {
        go func() {
            defer wg.Done()
            targets[i], errors[i] = GetJson[T](url)
        }()
    }
    wg.Wait()
    return targets, errors
}

Example use:

hashmaps, errors := GetJsons[Map](urls)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Tulsi Kennedy

79501434

Date: 2025-03-11 16:22:48
Score: 0.5
Natty:
Report link

SaveChanges was missing. That was the issue. It is now working. Result still returns -1 but it executes the CL program.

   context._formRepository.Add(item);
   context.SaveChanges();
   var result = context.Database.ExecuteSqlRaw("Call ProgramLibrary.CLProgram");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Nakres

79501425

Date: 2025-03-11 16:19:47
Score: 2
Natty:
Report link

There is an example here using the go client but it could easily be adapted to the C# client. You will need to decide on a data store to store the lock and create an implementation of the C# client's ILock interface. For my case I am considering using this DistributedLock package but I haven't implemented it yet.

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

79501418

Date: 2025-03-11 16:17:46
Score: 8.5 🚩
Natty: 4
Report link

I have the same issue, only terrain shadow are deep dark while objects are fine; suggestion by aidangig does not affect these dark shadows on terrain but only other's shadows. by trying various parameters, terrain shadows act like Penumbra tint is checked... any suggestions are welcome, thanks :)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (2): any suggestions
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arch N Game

79501414

Date: 2025-03-11 16:16:46
Score: 3
Natty:
Report link

Setting encapsulation=View.Encapsulation.None in the @Component header will also do the trick. It basically does what the ::ng-deep does, but for the whole SCSS file.

I prefer this over adding to the global, because that way is not as organized in terms of referencing things.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Component
  • Low reputation (1):
Posted by: Craig Warford

79501412

Date: 2025-03-11 16:14:45
Score: 1
Natty:
Report link

Simply:

all(np.diff(x) >= 0) 

If it should be strictly increasing, then use > instead of >=.

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

79501411

Date: 2025-03-11 16:14:45
Score: 1.5
Natty:
Report link

Try this template: https://github.com/jupyter-widgets/widget-ts-cookiecutter.

Run:

pip install cookiecutter
cookiecutter https://github.com/jupyter-widgets/widget-ts-cookiecutter.git
Reasons:
  • Whitelisted phrase (-1): Try this
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yuelong Li

79501409

Date: 2025-03-11 16:13:45
Score: 1
Natty:
Report link
guard let clientID = FirebaseApp.app()?.options.clientID else {
    print("Error: Firebase Client ID not found")
    return
}

let config = GIDConfiguration(clientID: clientID)  // ✅ Correct way to set client ID
GIDSignIn.sharedInstance.configuration = config

this is latest way

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

79501397

Date: 2025-03-11 16:08:44
Score: 2
Natty:
Report link

According to the toolbar in your screenshot, you're currently using Python 3.9.
The problem can be solved by switching the Python version in the toolbar.
image1]

If the preferred environment is not found, you can add it by your own:

image2

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

79501383

Date: 2025-03-11 16:02:43
Score: 3
Natty:
Report link

Using Keras 3.8.0 and even 3.7.0 and tensorflow 2.18 causes this issue. This was fixed after I downgraded keras to 3.6.0.

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

79501382

Date: 2025-03-11 16:02:43
Score: 0.5
Natty:
Report link

This might be late, but it works for me (M3 chipset). This is for future use:
refer

1. https://developer.ibm.com/tutorials/mq-connect-app-queue-manager-containers/

2.https://community.ibm.com/community/user/integration/blogs/richard-coppen/2023/06/30/ibm-mq-9330-container-image-now-available-for-appl?utm_source=ibm_developer&utm_content=in_content_link&utm_id=tutorials_mq-connect-app-queue-manager-containers&cm_sp=ibmdev-developer--community

you needs to have

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Nuwan Walisundara

79501357

Date: 2025-03-11 15:56:41
Score: 1.5
Natty:
Report link

Please execute de doctor inside your android folder

npx react-native doctor
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Marlaurita

79501355

Date: 2025-03-11 15:55:41
Score: 3.5
Natty:
Report link

he means n^3-n^2 which is different from just n^2

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

79501354

Date: 2025-03-11 15:54:41
Score: 2
Natty:
Report link

Similar issue.

The syntax you are using is GitLab's shorthand route used within GitLab's web interface to access raw file contents directly. But the official Rest interface fails as well:

curl --header "JOB-TOKEN: <token>" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/files/<file>/raw?ref=<git-ref>"
Reasons:
  • RegEx Blacklisted phrase (1): Similar issue
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kristofer

79501350

Date: 2025-03-11 15:53:40
Score: 1.5
Natty:
Report link

Believe it or not, I found the answer after much digging. I needed to add the following to my index.html

<base href="/">

That was it. That caused the weird behaviour.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Username_null

79501322

Date: 2025-03-11 15:44:37
Score: 7 🚩
Natty:
Report link

your Rust code looks fine and the error is not related to the SurrealDB Rust SDK itself. Could you please provide more information?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please provide
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: TheUnknown

79501321

Date: 2025-03-11 15:44:37
Score: 2
Natty:
Report link

I ran into the same AccessDeniedException. The problem was that I had not specified a filename for the --output parameter, only a path. It took me a while to figure that out. AccessDeniedException does not point you in the right direction for a solution.

It looks like you did not specify a filename either.

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

79501319

Date: 2025-03-11 15:44:37
Score: 3
Natty:
Report link

Try the image production url with HTTPS . http is not working with production environment.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Md . Rakibul Islam

79501312

Date: 2025-03-11 15:42:36
Score: 13 🚩
Natty:
Report link

did anyone got anything on this? Any solution / help would be greatly appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1.5): Any solution
  • RegEx Blacklisted phrase (3): did anyone got
  • RegEx Blacklisted phrase (3): help would be greatly appreciated
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did anyone
  • Low reputation (1):
Posted by: Ranvijay Patel Amarnath

79501303

Date: 2025-03-11 15:40:36
Score: 1.5
Natty:
Report link

Feel free to use my github action https://github.com/qoomon/actions--context is determines the current job and its id by requesting the github api for all current job of the current workflow and find the current job by matching the current runner name.

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

79501300

Date: 2025-03-11 15:40:36
Score: 1
Natty:
Report link

I have tried to print a graph. Here´s my solution:

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.patches import Arc

# Calculating the angle in radians
club_path = np.radians(5.89)  # Club Path
face_angle = np.radians(3.12)  # Face Angle

# Create a figure and an axis
fig, ax = plt.subplots()

# Axis limits
ax.set_xlim(-1, 1)
ax.set_ylim(-1, 1)

# Draw x- and y-axis
ax.axhline(0, color='black', linewidth=0.5, ls='--')
ax.axvline(0, color='black', linewidth=1.5, ls='--')

# Draw angles
club_vector = np.array([np.sin(club_path), np.cos(club_path)])
face_vector = np.array([np.sin(face_angle), np.cos(face_angle)])

ax.quiver(0, 0, club_vector[0], club_vector[1], angles='xy', scale_units='xy', scale=1, color='blue', label='Club Path (5.89°)')
ax.quiver(0, 0, face_vector[0], face_vector[1], angles='xy', scale_units='xy', scale=1, color='orange', label='Face Angle (3.12°)')

# Calculte angle between the to vectors
dot_product = np.dot(club_vector, face_vector)
norm_club = np.linalg.norm(club_vector)
norm_face = np.linalg.norm(face_vector)

# Calculating the angle in radians
angle_radians = np.arccos(dot_product / (norm_club * norm_face))
angle_degrees = np.degrees(angle_radians)

# Add angle in ledgend
ax.legend(title=f"Face to Path: {angle_degrees:.2f}°")

# Delete diagram frame
for spine in ax.spines.values():
    spine.set_visible(False)

# Delete x- and y-axis
ax.set_xticks([])
ax.set_yticks([])

# Print diagram
plt.show()

The plot looks like this:

enter image description here

Does anybody now how to extend the Arrow like this:

enter image description here

And does anybody now how I make a table which is clickable and the row is shown in the plot?

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-2): solution:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: 0x53olution

79501292

Date: 2025-03-11 15:34:34
Score: 3
Natty:
Report link

You have PowerFX enabled, so the standard %CustomFormData['URL']% notation will not work.

I believe you need to do something like CustomFormData.URL to get the same functionality.

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

79501291

Date: 2025-03-11 15:34:34
Score: 2.5
Natty:
Report link

You probably need to add

authenticator=snowflake_jwt;

to your connection string as mentioned in the documentation
https://github.com/snowflakedb/snowflake-connector-net/blob/master/doc/Connecting.md

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

79501285

Date: 2025-03-11 15:33:34
Score: 2.5
Natty:
Report link

CMD+SHIFT+DOT will generate <%= %>
CMD+SHIFT+COMMA will generate <% %>

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hassan el ashram

79501282

Date: 2025-03-11 15:33:34
Score: 4.5
Natty: 4
Report link

@Chriag Sheth - NEVER use a static class to store user information. The reason is the static data is NOT user specific. Every user is going to be using the exact same dictionary. This means users are going to see and modify each others' data.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Chriag
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Mike Kurz

79501280

Date: 2025-03-11 15:31:33
Score: 2
Natty:
Report link

To me, @regilero's answer looks to be a pretty good overview of the proxy protocol, for example, pointing out rfc referneces for keep-alive unsolved issue like at https://github.com/chimurai/http-proxy-middleware/issues/472.

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

79501260

Date: 2025-03-11 15:27:33
Score: 1.5
Natty:
Report link
def remove_char(s):
    print(s[:-1]) #if you want to remove first letter use s[0:-1]
remove_char('Your_string_Here')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gautam

79501251

Date: 2025-03-11 15:24:32
Score: 3.5
Natty:
Report link

If your file name is 'agno.py' rename it to something else.

Answer based on this comment https://github.com/agno-agi/agno/issues/2204#issuecomment-2676275023

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

79501246

Date: 2025-03-11 15:21:31
Score: 2.5
Natty:
Report link

It's prompted to use PyQt5 library, not PySide6 as PyQt5 is more modern.

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

79501245

Date: 2025-03-11 15:21:31
Score: 2.5
Natty:
Report link

Fixed by modifying the lifecycle rules to:

condition = {
  age = 1
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: abdo98

79501239

Date: 2025-03-11 15:17:30
Score: 2.5
Natty:
Report link

But this works well on my own Chrome:

> console.log(1); (() => {})();
VM97:1 1
undefined

What is your JS environment, please.

Reasons:
  • Blacklisted phrase (1): What is your
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29964827

79501227

Date: 2025-03-11 15:12:29
Score: 1.5
Natty:
Report link

In my opinion the first break statement executes only when if condition is correct that is b==1 and exits the switch case not while(1), as well as the second break statement also exits only the switch case not while(1).

So, the conclusion is that the while(1) loop will be continue running indefinitely or in infinite loop until the explicit break statement out of the switch case is written.

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

79501226

Date: 2025-03-11 15:12:29
Score: 1
Natty:
Report link

Your syntax is not correct

data.forEach(consoleItem())  // this is wrong syntax 

Correct syntax is

data.forEach(consoleItem)   // this is correct

In forEach you dont need to call the function. It only require function as an argument.

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

79501223

Date: 2025-03-11 15:11:29
Score: 0.5
Natty:
Report link

From my understanding, making a defer that wait a certain timing. Either based on the trigger or the placeholder.

As @Matthieu Riegler explained, the main cause is that my application SSR does not render the same as the client side. Fow now I can't do anything about it.

So here my goal is to make the timing between the answer received from the server and the stability as low as possible.

I found a workaround which was to create my own defer.

In the component where I have a defer I added the following code inside the ngOnInit:

  constructor(
    private appRef: ApplicationRef, 
    private cd: ChangeDetectorRef
  ) {}

  ngOnInit() {

    this.appRef.isStable.pipe( first((isStable) => isStable) ).subscribe((isStable) => {
      setTimeout(() => {
        this.shouldShow = true;
        this.cd.markForCheck();
      },10000);
    });

  }

This is waiting for the application to be stable, once it is, it start a timer (in the example 10seconds), and then change the boolean that is used inside the html as a condition to show the elements.

<app-child /> 


@if(shouldShow){
 defered components
}@else{
  placeholder
}

It's not perfect since it's still doing the same, but the delay between is smaller as this is not waiting for the defered components to be rendered.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Matthieu
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gregory Boutte

79501222

Date: 2025-03-11 15:10:28
Score: 4
Natty:
Report link

Autoconfiguration classes should not enable Component Scanning, as stated in the official Spring documentation.

See https://docs.spring.io/spring-boot/reference/features/developing-auto-configuration.html#features.developing-auto-configuration Note in paragraph “Location Auto-configuration Candidates”. The correct way should make use of @Import

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Import
  • Low reputation (1):
Posted by: Marco Cinus

79501218

Date: 2025-03-11 15:09:28
Score: 1.5
Natty:
Report link

Do the following:

  1. Make sure you have the latest chrome browser installed on your machine

  2. Make sure you have the latest Selenium Support and WebDriver referenced in your project

  3. Do not add any chromedriver options arguments or specify driver versions - keep everything simple and at its default

  4. Run your tests and they should work as Selenium Manager is built in which handles the latest browser driver download automatically

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

79501207

Date: 2025-03-11 15:05:27
Score: 1.5
Natty:
Report link

Try to directly backup and edit the lines around the line 63 of convert.py:

...
print(key, mapping)
assert key in mapping
...

And then give me the output, please.

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

79501199

Date: 2025-03-11 15:04:27
Score: 2.5
Natty:
Report link

When developing and there's no need for debugging, for example while working on markup, you could choose for 'Start without debugging'. Leaves all windows open, you can create files, and you can compile on the fly.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Guido A.

79501179

Date: 2025-03-11 14:56:24
Score: 6.5 🚩
Natty: 6
Report link

which is the import for PlanApi java object?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): which is the
  • Low reputation (1):
Posted by: user29964778

79501172

Date: 2025-03-11 14:55:24
Score: 3.5
Natty:
Report link
        PickerHandler.Mapper.AppendToMapping("Background", (handler, view) =>
        {
            var border = new Android.Graphics.Drawables.GradientDrawable();
            border.SetShape(Android.Graphics.Drawables.ShapeType.Rectangle);
            border.SetStroke(4, Android.Graphics.Color.Red);
            border.SetCornerRadius(12);

            handler.PlatformView.Background = border;
        });

Is this the result are you looking for?

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is this the
  • Low reputation (0.5):
Posted by: galex

79501160

Date: 2025-03-11 14:52:23
Score: 2.5
Natty:
Report link

SOLVED:

The issue was in package.json i had libcurl on version 4.1.0 cause i wanted to go with latest but that version doesnt seem to work with Windows (yet, or maybe never), do downgrading to 4.0.0 fixed it all.

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

79501155

Date: 2025-03-11 14:51:23
Score: 1.5
Natty:
Report link

Check this article from aws: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.html. It states: "The Init phase ends when the runtime and all extensions signal that they are ready by sending a Next API request. The Init phase is limited to 10 seconds. If all three tasks do not complete within 10 seconds, Lambda retries the Init phase at the time of the first function invocation with the configured function timeout.". Consider all the lifecycle as it would not be a fixed delay, if SnapStart is activated, the function will be cached and the delay will be reduced.

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ricardo

79501148

Date: 2025-03-11 14:48:22
Score: 9.5
Natty: 8
Report link

Did you figure out how to make the code work?

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

79501147

Date: 2025-03-11 14:48:22
Score: 0.5
Natty:
Report link

To "download" (checkout) a remote branch and incorporate it into your local copy as is, without merging with an existing branch:

  1. Fetch the remote branch
git fetch origin b1
  1. Checkout the remote branch as a new local branch (called b1 too):
git checkout -b b1 origin/b1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: alexhg

79501146

Date: 2025-03-11 14:48:22
Score: 3
Natty:
Report link

you could use more like "constraint satisfaction", or "KNearestNeighbors" ...always remember, ML in this case would be less viable than simple search algorithms

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

79501142

Date: 2025-03-11 14:47:22
Score: 3
Natty:
Report link

in a table, you can in the preceeding row add a border-bottom: solid black 1px; and in the next row border-top: solid black 1px; it may be possible to do this with other elements ensuring the space between elements is 1px, then you will get a double line

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

79501138

Date: 2025-03-11 14:46:21
Score: 2
Natty:
Report link

I cannot comment, but I just want to leave my information here. The answer from VKolev doesn't work if the lists have the exact same number of elements, in that case you have to use loop.index0. Since in jinja, loop.index is 1-indexed and loop.index0 is 0-indexed.

{% for concepto in conceptos %}
<tr>
  <td>{{concepto.0}}</td>
  <td>{{operas[loop.index0]}}</td>
  <td>{{concepto.1}}</td>
  <td>{{operas[loop.index0]}}</td>
  <td>...</td>
</tr>
{% endfor %}
Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): cannot comment
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sasjafor

79501137

Date: 2025-03-11 14:46:21
Score: 1
Natty:
Report link

This may sound really strange, but I have at least two cases when the similar issue with Access interop was fixed by double Office full/online repair.

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

79501135

Date: 2025-03-11 14:44:21
Score: 2.5
Natty:
Report link

try use the lib oracledb for node npm install oracledb

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rafael N. Siqueira

79501130

Date: 2025-03-11 14:42:20
Score: 2
Natty:
Report link

I have decided to share the answer I've come up with on my own in case someone else after me has the same question and hopes to find an answer here:

    document.querySelector("body").onscroll = function() {
    const main             = document.querySelector("main");
    const backgroundHeight = main.offsetWidth * (3.0/2.0);
    const screenHeight     = Math.max(window.screen.availHeight, window.innerHeight);
    const mainHeight       = main.offsetHeight;
    
    const factor = 1.0 - ((backgroundHeight - screenHeight) / (mainHeight - screenHeight));
    const yvalue = - main.getBoundingClientRect().top * factor;
    const xvalue = "center";
    main.style.backgroundPosition = xvalue + " " + yvalue + "px";
    }

const main = document.querySelector("main");

I do this because the background image I want the parallax effect to work on applies to the main element.

const backgroundHeight = main.offsetWidth * (3.0/2.0);

The formula I came up with to always align the background image's bottom with the page's bottom requires the height of the background image. For that I use main.offsetWidth (I set main to take up 100% of the width of the page so this works) multiplied with the height/width ratio of the background image. In the case of the parrot image I used as example, it's 3/2.

screenHeight = Math.max(window.screen.availHeight, window.innerHeight);

One also needs the height of the screen. The problem is that I cannot use a single value as sometimes it gives me a too small result. However, using the maximum of either window.screen.availHeight or window.innerHeight always seems to work to me.

mainHeight = const mainHeight = main.offsetHeight;

And one needs the height of the element you want to apply the parallax effect on.

const factor = 1.0 - ((backgroundHeight - screenHeight) / (mainHeight - screenHeight));

This is the formula I came up with thanks to a geometric sketch.

const yvalue = - main.getBoundingClientRect().top * factor;

I found out that "- main.getBoundingClientRect().top" seems to work better than "const scrolltotop = document.scrollingElement.scrollTop" I used before. main.getBoundingClientRect().top basically returns the distance from the top of the main element to the top of the screen and becomes a negative value once you have scrolled past main's top. This is why I added a minus but Math.abs() works too.

const xvalue = "center"; main.style.backgroundPosition = xvalue + " " + yvalue + "px";

Here you just insert the values into the background.

Right now this function is executed everytime you scroll. main, backgroundHeight, screenHeight and mainHeight stay constant while just scrolling so it would make sense to initialise those values in a separate function executed on load or on resize but not on scroll - unless main changes its size automatically or upon user interaction. I also learnt first-hand while testing that Chrome has massive performance issues with repositioning background images larger than 1000x1000 so please keep this in mind.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Lily

79501128

Date: 2025-03-11 14:42:20
Score: 3.5
Natty:
Report link

I've done it for my integration test, so maybe is a good idea

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pipe San Martín

79501127

Date: 2025-03-11 14:41:20
Score: 2
Natty:
Report link

Many React devs prefer Hooks over Higher-order Components (HoCs), and for good reasons. But sometimes, direct usage of hooks for certain logic—like authentication redirects—can clutter components and reduce readability.

Full context and examples here https://frontend-fundamentals.com/en/code/examples/login-start-page.html

Common Hook approach:

function LoginStartPage() {
  const { isLoggedIn } = useAuth();
  const router = useRouter();

  useEffect(() => {
    if (isLoggedIn) router.push('/main');
  }, [isLoggedIn, router]);

  return <Login />;
}

HoC as an alternative:

export default withLoggedOut(LoginStartPage, '/main');

Wrapper Component as another alternative:

function App() {
  return (
    <AuthGuard>
      <LoginStartPage />
    </AuthGuard>
  );
}

But here's the thing:

Many React developers strongly dislike HoCs, finding them overly abstract or cumbersome. Yet, could the issue be how we use HoCs, rather than HoCs themselves?

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

79501112

Date: 2025-03-11 14:37:19
Score: 1
Natty:
Report link

Update: using git version 2.32.0.windows.2 this works as well - including sub-sub-projects!

git clone --recurse-submodules [email protected]:project/project.git

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

79501106

Date: 2025-03-11 14:35:19
Score: 1
Natty:
Report link

After updating docker desktop to the latest version, the Kubernetes failed to start error went away.

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

79501105

Date: 2025-03-11 14:35:19
Score: 2
Natty:
Report link

I had exactly the same issue and stumbled across your post.

Silly question: Why do you muck around with the gradient to get the normal ?

Why the division by the noise and the position messing around.

I thought that the gradient of a surface is the normal itself (you might be able to normalize)

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

79501102

Date: 2025-03-11 14:34:18
Score: 4
Natty:
Report link

You need to create a wrapper or method that will catch the exception and locate the element again as shown below:

enter image description here

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