79178897

Date: 2024-11-11 19:33:47
Score: 1
Natty:
Report link

I have one half of an answer, and two full answers if you allow a frame challenge.

Half an answer

Load has a constructor that allows injecting your own factory into the deserialization process, and the functions where have access to Node objects that do carry the anchor.
So the approach would be something like this:

  Map<Object, ?> metadata = new HashMap<>();
  Load loader = new Load(
    settings,
    // Inject a StandardConstructor; BaseConstructor does not know about Map etc.
    new StandardConstructor(settings) {
      @Override
      protected Object constructObjectNoCheck(Node node) {
        // Let it construct the Pojo from the Node normally.
        final Object result = super.constructObjectNoCheck(node);
        // Now that you have both Pojo and internal Node,
        // you can exfiltrate whatever Node info that you want
        // and do metadata.put(result, someInfoGleanedFromNode)
        return result;
      }
    });

The snag is: The Node created for the anchor does not generate a Pojo.
I.e. you have an anchor, but you don't really know to which object in your deserialized nested Map/List that anchor corresponds; you'll likely have to walk the Node tree and find the correct node. So, maybe somebody else wants to add instructions how to walk the Node tree; I do not happen to know that.

Frame challenge: Do you really want the anchor name?

If this is just about error messages, each Node has a startMark attribute that's designed specifically for error messages that relate to the Node, so you can do this:

  Map<Object, String> startMarks = new HashMap<>();
  Load loader = new Load(
    settings,
      @Override
      protected Object constructObjectNoCheck(Node node) {
        final Object result = super.constructObjectNoCheck(node);
        node.getStartMark().ifPresent(mark -> startMarks.put(result, mark));
        return result;
      }
    });

e.g. for this YAML snippet:

servers:
  - &hetzner
    host: <REDACTED>
    username: <REDACTED>
    private_ssh_key: /home/<REDACTED>/.ssh/id_rsa

the servers label has this start mark:

 in config.yaml, line 1, column 1:
    servers:
    ^

To get this output, I initialized the settings like this:

var settings = LoadSettings.builder().setUseMarks(true).setLabel(path.toString()).build();

setUseMarks makes it generate start and end marks so you have these texts. setLabel is needed to give the in config.yaml output; otherwise, you'll see something like in reader (if you pass in a stream reader), which is pretty unhelpful.

Frame challenge: Maybe give the anchored subobject a name?

Something like this:

unit:
  &kg
  name: Kilogram
  shorthand: kg
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: toolforger

79178887

Date: 2024-11-11 19:28:46
Score: 1.5
Natty:
Report link

I couldn't reproduce the images not loading issue, but if you are having trouble with the view resizing, have you considered delegating the same frame size (particularly the height) to the text as well?

As in,

if isImageVisible {
            Image(imageName)
                .resizable()
                .scaledToFit()
                .frame(width: 100, height: 100)
                .background(Color.gray.opacity(0.2))
        } else {
            Text("Image is hidden")
                .frame(width: 200, height: 100)
        }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Luck_Duracell

79178868

Date: 2024-11-11 19:21:44
Score: 2.5
Natty:
Report link

The only thing you have to do is toggle the drop down:

  1. enter image description here
  2. Change dropdown to "GitHub Actions" enter image description here
  3. Change dropdown back to "Deploy from a branch" enter image description here
  4. Finally you will see it auto select main branch. It is odd but it works. enter image description here
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Nathaniel Hibbler

79178867

Date: 2024-11-11 19:21:42
Score: 6.5 🚩
Natty: 5
Report link

Can somebody give new answer, matching new Vaadin docs

Reasons:
  • RegEx Blacklisted phrase (2.5): Can somebody give
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can somebody give
  • Low reputation (1):
Posted by: user28246116

79178866

Date: 2024-11-11 19:21:41
Score: 3
Natty:
Report link

I was facing a similar issue and then found out that there's a search-bar below the section where we add the environment variables. It's essentially a section which links your variables to a project. By selecting the relevant project I was able to solve this issue.

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

79178865

Date: 2024-11-11 19:21:41
Score: 2.5
Natty:
Report link

This answer is for anyone with the same issue. Try to change views to see the result. For me, when I opened the 3D view, I found the impact of changing height, and width of an element.

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

79178864

Date: 2024-11-11 19:21:41
Score: 1.5
Natty:
Report link

This is the right way to pre-grant permissions: https://source.android.com/docs/core/permissions/runtime_perms#creating-exceptions.

But an accessibility service isn't controlled by a permission. A service is enabled if it's in this list in settings: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/core/java/android/provider/Settings.java;drc=ad46de2aa9707021970cb929d016b639f98a1ac7;l=8615.

Modify the code maintaining that setting to pre-enable your service. Or using the existing defaultAccessibilityService configuration (set it with a product overlay file) might work.

The simplest way to stop a user from turning it off is probably to modify the accessibility settings UI.

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

79178853

Date: 2024-11-11 19:14:39
Score: 4
Natty:
Report link

Is there any advantage or disadvantage to using a prime number as the length of a password? For example use a password that is 11, 13, 17, 19, 23 etc characters long. The AI-driven google search says maybe. I interpret that to mean absolutely not.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (0.5):
Posted by: mnemotronic

79178843

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

google sheet with solution

the solution is in this formula :

=map(B2:B, C2:C, lambda(time, weight, if(isbetween(time, value("20:55"), value("21:05")), weight - offset(C2,counta(C3:C99999),0,1,1), iferror(ø) ) ))

thank you so much!!!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Akis T

79178829

Date: 2024-11-11 19:04:36
Score: 14.5
Natty: 7.5
Report link

I have the same problem, but s3api command as above doesn't work, could you help me please?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): could you help me
  • RegEx Blacklisted phrase (2): help me please
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Karina

79178825

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

I think there might be a small misunderstanding. With Standalone Components in Angular, you don't actually need to import them into App.component.ts. The key benefit is that Standalone Components are self-contained, meaning you can directly use them in templates or reference them in other components without needing an intermediary NgModule.

The idea of "importing into App.component.ts" makes more sense when you're dealing with components inside a traditional NgModule, where you would register components in the module. However, Standalone Components work independently, so there's no need for that extra step.

Regarding the benefits of NgModules, they offer fine-grained control over things like dependency injection, routing, and lazy loading, which is especially useful in larger, more modular applications.

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

79178824

Date: 2024-11-11 19:01:35
Score: 2
Natty:
Report link

don't know why, but on Raspberry

from   picamera2 import Preview

solved it

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

79178815

Date: 2024-11-11 18:55:34
Score: 2.5
Natty:
Report link

The operator ["/"][1] can be used for the concatenation by row of matrices. In this case my $sp=$dense_unit_matrix/$ar; $sp=$sp/extended_matrix; $sp=$sp/$arr3; works as well.

[1]: https://polymake.org/doku.php/user_guide/howto/matrix_classes#:~:text=GenericVector%26%2C%20const%20GenericVector%26)%3B-,Create%20a%20block%20matrix,-%2C%20virtually%20appending%20the

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jovana Dubak Ivanović

79178812

Date: 2024-11-11 18:55:34
Score: 0.5
Natty:
Report link

Use a mutex to read the current value of a variable. The mutex approach is simpler than communicating by channel.

type sensor struct {
    mu    sync.Mutex
    value int
}

func (s *sensor) run() {
    for {
        s.mu.Lock()
        s.value += 1
        s.mu.Unlock()
        time.Sleep(100 * time.Millisecond)
    }
}

func (s *sensor) get() int {
    s.mu.Lock()
    defer s.mu.Unlock()
    return s.value
}

Call like this:

temperature := &sensor{value: 42}
go temperature.run()
log.Println("EARLY TEMP READING:", temperature.get())
time.Sleep(3 * time.Second) //LET SOME ARBITRARY TIME PASS
log.Println("LATER TEMP READING:", temperature.get())

https://go.dev/play/p/SBKHAS6dqn9

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mersa Dingwat

79178811

Date: 2024-11-11 18:55:34
Score: 2
Natty:
Report link

It looks like there’s a small issue with the syntax in your command. You have curly braces {} in the file paths, which are causing the error. Try removing them and make sure your paths are correctly formatted. Here’s an updated version of your command:

@echo off cd C:\Users\misha\Desktop\performance_monitor C:\Users\misha\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\app.py pause

Make sure to double-check that the file paths are correct and that Python is installed properly on your system

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @echo
  • Low reputation (1):
Posted by: Josephine Sanchez

79178808

Date: 2024-11-11 18:52:33
Score: 0.5
Natty:
Report link

After doing a lot of digging, i found a solution

first, right click on your main project directory folder thingy, and click properties https://i.sstatic.net/jymk7xmF.png

then, you want to go into c/c++ https://i.sstatic.net/nuxGOd4P.png

after that, go into additional include directories and edit https://i.sstatic.net/E45T38EZ.png

last, you want to enter the directory of the folder containing your header file, for example $(SolutionDir)Dependencies\GLEW\include where solutiondir is the path to the main folder (in this case engine) and then we path to the folder containing the header https://i.sstatic.net/O9crjAl1.png

hope this helps

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jakub Kania

79178803

Date: 2024-11-11 18:50:31
Score: 10 🚩
Natty: 5.5
Report link

I also have this problem, did you fix it?

Reasons:
  • RegEx Blacklisted phrase (3): did you fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Programmer

79178802

Date: 2024-11-11 18:50:31
Score: 2
Natty:
Report link

Here Steps to follow:

  1. Rtools is installed on your system to compile source packages.

  2. Ensure that the path provided points to the correct location of rcompanion_2.4.36.tar.gz

For example

install.packages("E:\download\rcompanion_2.4.36.tar.gz", repos = NULL, type = "source")

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

79178799

Date: 2024-11-11 18:49:30
Score: 0.5
Natty:
Report link

I forced java version into build.gradle.kts like this

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(17)
    }
}

which fixed the problem. I could remove the snippet later and build would work without it. I guess idea or gradle cache everything forever.

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

79178798

Date: 2024-11-11 18:48:30
Score: 1.5
Natty:
Report link

All this is demotivating. I'm getting this (for python 3.6):

I type "pip3 install pillow" and get:

Collecting pillow Could not fetch URL https://pypi.python.org/simple/pillow/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) - skipping Could not find a version that satisfies the requirement pillow (from versions: ) No matching distribution found for pillow

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

79178781

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

With Gradle

For me the issue solved after I packed the jar including all dependencies by customizing the "jar" task (pay attention also to the guidance in the comments)

see guidance in this answer

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Adir Dayan

79178773

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

For me, using Windows 11 + WSL, i had to do the following steps:

First I visited NVIDIA's website to download CuDNN for Ubuntu ( https://developer.nvidia.com/rdp/cudnn-archive ). After logging in, my browser automatically started downloading it, but i had the option to copy the full download link from the download that was in progress. It was quite long.

Then, on my Ubuntu terminal (WSL) I typed the following to download the deb package in there (please replace the long link with whatever you copied on the step above):

wget -O cudnn-local-repo.deb "https://developer.download.nvidia.com/compute/cudnn/secure/8.9.7/local_installers/12.x/cudnn-local-repo-ubuntu2204-8.9.7.29_1.0-1_amd64.deb?Wr2dTCzXY1M3FuHmuQIxUK9phLLYKkG8BCndRJ4TPwJPO3R_E9SAiojXcPKK7ivtaPbHXj49L1MqhjqfQKyuZF7B33dx5y8XDUz96_EPovRBytbRIwyNgSsNzQNxHoTeUQXrMcCGkogKQ8yADLABUQb4eIoO0HcuSDrKwbdKJvDHVJ-NboNM3kr9DGkQkUlGJ82oyQEM2vO_b51L7LN91DboWEo=&t=eyJscyI6IndlYnNpdGUiLCJsc2QiOiJkZXZlbG9wZXIubnZpZGlhLmNvbS9yZHAvY3Vkbm4tYXJjaGl2ZSJ9"

After the download was finished, I installed CuDNN like this:

sudo dpkg -i cudnn.deb

The command failed telling me to copy the certificates to a certain path before proceeding: sudo cp /var/cudnn-local-repo-/cudnn-local--keyring.gpg /usr/share/keyrings/

Then i retried:

sudo dpkg -i cudnn.deb sudo apt-get update sudo apt-get install libcudnn8 sudo apt-get install libcudnn8-dev

Now I need to copy one of the installed files inside the specific python that's being used with pyenv. I didn't know where it was so I used this command to find it:

sudo find / -name "libnvrtc*"

I learned that the file I needed was: ~/.pyenv/versions/3.10.15/lib/python3.10/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.11.2

I needed a file called libnvrtc.so only, not libnvrtc.so.11.2, so i created a symbolic link:

ln -s ~/.pyenv/versions/3.10.15/lib/python3.10/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.11.2 libnvrtc.so

After that, when I tried the program I wanted again, the warning "Applied workaround for CuDNN issue, install nvrtc.so" was gone.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thiago Garcia

79178772

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

I think you can just add a big margin to the bottom div, and it will do what you want. In my case, I added mt-64.

<div class="mt-64 h-24 w-full bg-red-400">BOTTOM DIV</div>

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

79178770

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

I found a very easy solution to handle this. Docs: https://clerk.com/docs/references/nextjs/auth

import React from "react";
import { auth } from "@clerk/nextjs/server";
import { getDictionary } from "@/locales/dictionary";
import TenantTable from "@/components/TenantTable/TenantTable";

export default async function Page() {

  const dict = await getDictionary();
  const { userId, redirectToSignIn } = await auth();
  if (!userId) return redirectToSignIn();
  return (
    <div>
     Hello, ${userID}
    </div>
  );
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shristi Gupta

79178766

Date: 2024-11-11 18:32:25
Score: 0.5
Natty:
Report link

in vue3 this works for me without warning

const emit = defineEmits({
    IDialogConfirmComponentEvents: "IDialogConfirmComponentEvents",
});
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Марк Мина

79178764

Date: 2024-11-11 18:31:25
Score: 4
Natty:
Report link

Very interresting approach, i have a similar issue. My problem is that i need to use sticky-sessions for two upstreams, each having the same number of upstream targets, but i need to have them pairwise. From your example above that would mean that a user is forwarded to server "server1:8080" and "server1:9080" and not to "server2:9080". So some kind of affinity between the upstream hosts. I could not find a way to make this work.

Reasons:
  • Blacklisted phrase (0.5): i need
  • No code block (0.5):
  • Me too answer (2.5): i have a similar issue
  • Low reputation (0.5):
Posted by: T-Regex

79178762

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

dude! In Postman, your JSON looks correct, but are you sure that this.puppy.race is really not undefined? You don't need to convert your object, because the Angular HTTP Client will handle that for you. Let Angular handle it.

 const puppyJson = {
  id: null,
  puppyId: this.puppy.puppyId,
  name: this.puppy.name,
  color: this.puppy.color,
  weight: this.puppy.weight,
  height: this.puppy.height,
  image: this.puppy.image,
  characteristic: this.puppy.characteristic,
  race: { id: null, race: this.puppy.race?.race }, 
  price: this.puppy.price
 };

You can also debug your object to make sure everything looks correct before sending it.

console.log(puppyJson)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mateus Oliveira

79178753

Date: 2024-11-11 18:27:23
Score: 1
Natty:
Report link

Patchwork is good at aligning plots:

library(patchwork)
g1 + g2
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Michiel Duvekot

79178751

Date: 2024-11-11 18:27:23
Score: 3
Natty:
Report link

Listen to webhooks on backend then connect your server to your frontend through websockets

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

79178738

Date: 2024-11-11 18:21:21
Score: 1
Natty:
Report link

As per the comments from paleonix, the solution is the compile option:

-arch=sm_75
Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: bigcodeszzer

79178735

Date: 2024-11-11 18:19:21
Score: 1.5
Natty:
Report link

You can use an anti-spam bot (such as https://kolas.ai/kolasaibot/) which recognizes spam and blocks spammers.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Aleksandr Mendel

79178717

Date: 2024-11-11 18:14:20
Score: 3
Natty:
Report link

Of course repositorie can be deleted. the whole JCenter repository was “deleted” and gone for good now.

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

79178713

Date: 2024-11-11 18:12:19
Score: 3
Natty:
Report link

This also (mostly) fixed my issue with jumping content while using the KeyboardAvoidingView FYI.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: some-dude-on-the-internet

79178695

Date: 2024-11-11 18:06:18
Score: 0.5
Natty:
Report link

The outline isn’t showing on the first <a> tag because <a> tags are inline by default, meaning they only take up as much space as their content. When you put a larger block element, like a <div>, inside an inline <a>, the outline doesn’t wrap around it correctly. Setting display: flex on the <a> tag fixes this by making it behave like a block element, allowing the outline to cover the entire content.

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

79178694

Date: 2024-11-11 18:06:18
Score: 2
Natty:
Report link

Use compressed layout - https://matplotlib.org/stable/users/explain/axes/constrainedlayout_guide.html#compressed-layout

fig, axs = plt.subplots(2, 2, layout='compressed')

It resizes the entire figure to remove redundant white space.

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

79178688

Date: 2024-11-11 18:05:18
Score: 1
Natty:
Report link

In case you land here because you wanted to put a UserControl into something and it doesnt stretch.

Change the following in your XAML

Height="600" Width="800"

to

d:DesignHeight="600" d:DesignWidth="800"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roli

79178685

Date: 2024-11-11 18:04:17
Score: 1.5
Natty:
Report link

Change your indentation

graph LR
  A-->B
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kategorically

79178683

Date: 2024-11-11 18:03:17
Score: 1.5
Natty:
Report link

Perhaps you are after IAR's C-RUN runtime heap analysis. It automatically instruments the code so that preventable leaks can be detected on the fly.

It is available as an add-on though there is a trial version as well.

https://github.com/iarsystems/crun-evaluation-guide?tab=readme-ov-file#heap-checking-capabilities

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

79178669

Date: 2024-11-11 17:57:16
Score: 1.5
Natty:
Report link

https://learn.microsoft.com/en-us/powershell/module/pki/new-selfsignedcertificate?view=windowsserver2022-ps

$params = @{DnsName = 'www.fabrikam.com', 'www.contoso.com' 
CertStoreLocation = 'Cert:\LocalMachine\My' } 

New-SelfSignedCertificate @params 

OR

New-SelfSignedCertificate -DnsName 'www.fabrikam.com','www.contoso.com' -CertStoreLocation Cert:\LocalMachine\My

These two examples create a self-signed SSL server certificate in the computer MY store with the subject alternative names www.fabrikam.com and www.contoso.com and the Subject and Issuer name set to www.fabrikam.com. (First one will be set to subject/Issuer unless otherwise indicated.

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

79178664

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

I spent a week trying to solve a similar problem. Turned out to be the bundler gem. The system bundler on my server was a different version than the bundler version on my development machine. Check your Gemfile.lock file. If last line says BUNDLED WITH a different version as "bundle -v" from the command-line, you should work to get them on the same version.

BTW, I found the answer in this long ticket: https://github.com/phusion/passenger-docker/issues/409

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

79178657

Date: 2024-11-11 17:53:15
Score: 1.5
Natty:
Report link

I found a solution, although not the most elegant.

Just set the backgound color with style sheet with 1/255 opacity:

window.setStyleSheet('background-color: #01000000;')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jacky

79178652

Date: 2024-11-11 17:51:15
Score: 2
Natty:
Report link

in my case the problem was $attributes, I had protected $attributes = ['my_attribute'];, but I didn't have a method for that attribute

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

79178639

Date: 2024-11-11 17:49:14
Score: 1
Natty:
Report link

Something that worked for me was to do the following: For Linux:

So .test works fine without redirection to http when using Selenium

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

79178638

Date: 2024-11-11 17:49:14
Score: 1
Natty:
Report link

Im not entirely sure how I would go about this but I feel like the main issue youre running into is that the highlights in the input image are too blown out. I would start by evening out the lighting in the original image before extracting the fingerprints. You could either bring the whites down in brightness or do a more complicated approach with highlights.

You could probably find an open source image editor with that functionality and just copy over what you need into a function in your script then run the rest of your script on the modified image.

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

79178631

Date: 2024-11-11 17:46:13
Score: 2
Natty:
Report link

There is a known bug when local value might not be taken into effect

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

79178629

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

You normally want to change the group list, rather than to drop it, to match your new identity after the suid/sgid-assisted switch. You need the group list to match your new uid (and actually gid too, as the group list usually includes gid itself).

Unfortunately, as was already mentioned, currently you need CAP_SETGID for calling initgroups(). However in an attempt to solve that, I posted a few proposals to LKML. This one allows to "restrict" a group list, which is somewhat similar to dropping it, but doesn't give you any extra access rights if they were blocked by one of the groups in a list. This one actually allows you to get the correct group list, but you need a privileged helper process to assist you with that task.

I personally prefer the second solution as it gives you a correct group list, but the first one is at least very simple and doesn't require any helper process or extra privs.

Unfortunately both patch-sets only yielded 1 review comment each, which means the lack of an interest to this problem among LKML people. Maybe those who are interested in this problem here, can evaluate my patches and offer some more discussion of them in LKML.

Reasons:
  • Blacklisted phrase (1): any help
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: stsp

79178623

Date: 2024-11-11 17:44:13
Score: 1
Natty:
Report link

Add the API Key to the environment variable. Environment variable key should be "NVIDIA_API_KEY", and provide your API key as the value. Update the version of langchain-nvidia-ai-endpoints package to 0.3.5. This works for me with your code. Please check if it works for you.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shanmugam Sudalaimuthu

79178621

Date: 2024-11-11 17:43:13
Score: 2
Natty:
Report link

Stupid mistake...had a stray createSupabaseClient() in the form.tsx component, when it only belonged in the api route. Deleted from form.tsx, and everything is working.

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

79178618

Date: 2024-11-11 17:42:12
Score: 3
Natty:
Report link

You should check the namespace in the file and ensure it is pointing to the right directory where the UserAccessMiddleware is located.

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

79178615

Date: 2024-11-11 17:41:11
Score: 9
Natty: 7.5
Report link

I also want to know the same thing if you find anything regarding this could you please share it with me as well? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): could you please share
  • RegEx Blacklisted phrase (1): I also want to know the same thing if you find anything regarding this could you please
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: CosmicMarine

79178604

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

I ended up needing to navigate further down the DOM to a parent element that didn't have so much stuff in it. Then, I waited for a button to populate within that specific parent div:

                await myPageSection.waitForSelector('button', { timeout: 15000 }).catch(() => {
                console.log('No buttons found within pageSections[3] after waiting.');
            });

And finally, I ran through all the buttons to find the one I needed. I think classes and innerText were dynamically changing, which is part of the reason why I couldn't target it:

const allButtons = await myPageSection.$$('button')
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MrBuchmas

79178593

Date: 2024-11-11 17:32:09
Score: 1
Natty:
Report link

If you will use same way to implement i18n to next.js app with App Router (on next.js v13+), good to know:

The locale, locales, defaultLocales, domainLocales values have been removed because built-in i18n Next.js features are no longer necessary in the app directory.

Taken from Migrating Routing Hooks documentation.

Usefull links for implement i18n with App Router:

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: DarkDomian

79178582

Date: 2024-11-11 17:29:08
Score: 3.5
Natty:
Report link

From the requirements you've put forth, have you looked at/considered WCF + PowerShell? This would be far easier to control access and limit what can be run on the remote end.

I have an example of how to do this, both in the PowerShell commandlet and the WCF Service Activity side.

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

79178579

Date: 2024-11-11 17:28:08
Score: 4
Natty:
Report link

I spent almost half day fixing the similar issue. Turns out I didn't run the commit on the oracle database. This link helped me.

Reasons:
  • Blacklisted phrase (1): This link
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nitin

79178567

Date: 2024-11-11 17:23:03
Score: 7 🚩
Natty: 6.5
Report link

@wimpix - this is the solution I was looking for - do you know if there is a way to save my macro to the personal macro workbook if I previously created it in a regular workbook? Or do I have to record it again?

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • User mentioned (1): @wimpix
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Liz Evans

79178565

Date: 2024-11-11 17:22:03
Score: 2.5
Natty:
Report link

Disable certificate and install nltk.download() command.

It will work for me. It will open pop-up window and click on download button.

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

79178557

Date: 2024-11-11 17:19:02
Score: 0.5
Natty:
Report link

At the end I found the solution admin should be initialized with admin.initializeApp, better if as global

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: arpho

79178553

Date: 2024-11-11 17:17:01
Score: 2.5
Natty:
Report link

Solved! Visual Studio 2022 > Tools > Comman Line > Developer Command Prompt

enter image description here

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

79178547

Date: 2024-11-11 17:16:01
Score: 0.5
Natty:
Report link

Yes, it is possible to use inline conditional statements in concatenation in JavaScript, but you need to ensure the correct use of parentheses to avoid syntax errors. The issue in your example is due to the precedence of the + operator and the ternary operator ? :.

Here is the corrected version of your code:

console.log("<b>Test :</b> " + ("null" == "null" ? "0" : "1") + "<br>");

By wrapping the conditional statement in parentheses, you ensure that it is evaluated correctly before concatenation.

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

79178533

Date: 2024-11-11 17:11:00
Score: 2
Natty:
Report link

My issue is with date-fns 2.9.0 not installing. I went to Heroku and tried to npm install manually and it sits there until sometimes timing out after a long period of time.

Then sometimes it says

The authenticity of host 'http://github.com (140.82.113.3)' can't be established.acted to /app/server/node_modules/.staging/date-fns-74841dec (4779ms)
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names

I searched on Github here and the SHA256 data does match ok. So I wonder if this is a Heroku issue where known_hosts needs an additional entry?

I can't find the known_hosts on my dyno and not confident it would stick around even if I found it.

This could be a situation where npm install is going to github instead of a regular npm repository. I'm new and not sure. But I am loading a specific tag of a github repository right after date-fns which may be the real issue.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kevin Triemstra

79178530

Date: 2024-11-11 17:11:00
Score: 0.5
Natty:
Report link

These are good answers, but I would also suggest checking the NUnit documentation, since the setup might change over time: https://docs.nunit.org/articles/nunit/technical-notes/usage/Trace-and-Debug-Output.html

Today, when I was looking at the same problem in VS 2022, I got it working by

a) Adding the code in the 2nd example from the page page referenced:

    [OneTimeSetUp]
    public void StartTest()
    {
        if (!Trace.Listeners.OfType<ProgressTraceListener>().Any())
            Trace.Listeners.Add(new ProgressTraceListener());
    }

b) Change the output in from "Debug" to "Tests" in Visual Studio:

Screen clipping of Visual Studio output drop-down.

c) Then I was able to see the Console.WriteLine("Whatever!") output that's inside my test.

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

79178517

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

Problem was in syscall function as @JhonBollinger noticed mp_parent is index of parent in mproc. So it should be

if ((child->mp_flags & IN_USE) && mproc[child->mp_parent].mp_pid == proc->mp_pid) {
                child_count++;
            }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JhonBollinger
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ivashchenko Matvii

79178515

Date: 2024-11-11 17:05:58
Score: 2
Natty:
Report link
mask = np.full(arr.shape, True)
mask[1:-1, 1:-1] = False
print(arr[mask])
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Paul Rademacher

79178514

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

The problem you're running into is a common pitfall, stemming from the fact that your AppSheet app is using a cache service to try and make things efficient and run faster.

When you open a file in your AppSheet app for the first time, the file is downloaded from wherever and then stored on your device for 6 hours.

When you make changes to the file, unfortunately the file is not updated in the cache. There is no mechanism that triggers to all devices that have ever opened the app that they then need to discard their current version of the file and download the new one. (You can see how that might be a bit of a heavy thing, with a whole bunch of pitfalls and problems to make that a smooth running thing 100% of the time. That's why they haven't made it, and they just stick with the fact that it's stored in cache for 6 hours.)


After the 6 hours elapses, you will see the changes inside the file if you try and open it again.

You can rest assured though, whenever you use that file for an email or something, whenever you send it out, the system will use the file from the data source not what you have cached on your device. It can be a little disconcerting when you open the file after you just made changes and you don't see any changes, I totally feel you on that. 🤓

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

79178511

Date: 2024-11-11 17:04:58
Score: 1
Natty:
Report link

The expression looks good except kubernetes="*". Are you sure it should be like this, and not like kubernetes=~".*"?

The expression will trigger if any new job with tmp word in its value will be written to VictoriaMetrics. It will continue returning > 0 value up to 15min.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: hagen1778

79178499

Date: 2024-11-11 17:00:57
Score: 0.5
Natty:
Report link

Don't flush the serial port buffers. I just spent about a week trying to determine where data was getting lost. I think behavior is different between various serial ports, take the ESP32-S2, which has native CDC, and also a serial converter chip. I think the OS driver may implement port methods differently. On the ESP32-S3 CDC port, if flushIOBuffers() is called immediately after a write(), the data may never be transmitted.

I haven't researched all of the issues, and there are some things that could be monitored like buffer sizes, setting to blocking, etc.

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

79178498

Date: 2024-11-11 17:00:57
Score: 3
Natty:
Report link

I managed to find it out by getting a link from 3 dots -> "Copy link to task"

screenshot showing card of a task

which got me

https://planner.cloud.microsoft/**company**/Home/Task/**abcdefghijklmnopqrstufwxyzab**?Type=TaskLink&Channel=Link&CreatedTime=638669404935190000

... the bold part being the taskId, e.g. as seen in export to excel format. The url query parameters can apparently be discarded as well and still work.

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

79178482

Date: 2024-11-11 16:56:56
Score: 0.5
Natty:
Report link

But VM doesn't appear to support fan-out federated query or using object storage, so I can't just drop it in to replace Thanos too.

In VM ecosystem fan-out queries aren't needed. Usually, Prometheus (or stateless scrape agents) is used for scraping and delivering metrics to central VM cluster. Data usually has about 30-60s freshness and can be queried right away from central cluster, providing global query view.

Yes, VictoriaMetrics doesn't support object storage for historical data. But it is very efficient in terms of data compressing, so probably storing everything on disks would cost the same money and will provide better query performance.

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

79178475

Date: 2024-11-11 16:53:55
Score: 3
Natty:
Report link

I have a big problem with the 30 seconds also. It's very difficult to read the numbers and type them into the app asking for them within that limited time. It's completely unreasonable especially for people with physical disabilities. Would love to change it to (at least) one minute. Is there any way to do that?

In fact, due to this issue I would not use Google Authenticator at all if it weren't mandated by the government agency that now requires it for logins.

Reasons:
  • Blacklisted phrase (1): Is there any
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Catherine Schevon

79178470

Date: 2024-11-11 16:52:55
Score: 1.5
Natty:
Report link

very confusing code... and it's not entirely clear what exactly is needed. If you want to constantly add new values, then try removing

this.other_dynamic_filters = [];

I hope this helps, or please describe the problem in more detail

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • RegEx Blacklisted phrase (2.5): please describe
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Dmitriy Ivanko

79178467

Date: 2024-11-11 16:51:55
Score: 2.5
Natty:
Report link

Nov 2024. Monitor and Improve > Policy & Programmes > App Content.

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

79178460

Date: 2024-11-11 16:50:55
Score: 1
Natty:
Report link

a suggestion for Apache HTTPD and mod_jk:

If you prefer "anonymous" as REMOTE_USER for Tomcat

    <Location unprotectedURL>
    RewriteEngine On
    RewriteRule .* - [E=JK_REMOTE_USER:anonymous]
    </Location>

https://tomcat.apache.org/connectors-doc/common_howto/proxy.html

To disable Shibboleth session requirement

    <Location unprotectedURL>
    ShibRequestSetting requireSession 0
    </Location>

https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/2065335062/Apache#Enabling-the-Module-for-Authentication

The combination should give you a publicly accessible URL with a user set behind the scenes.

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

79178454

Date: 2024-11-11 16:48:54
Score: 4
Natty:
Report link

Running the same command in the cmd (run as admin), did the job.

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

79178450

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

This can be achieved using Render Hooks: https://filamentphp.com/docs/3.x/support/render-hooks For this you would use: TablesRenderHook::TOOLBAR_SEARCH_AFTER - After the search container

Here's a guide on how to implement this. See #6 https://laraveldaily.com/lesson/filament-visual-customize/render-hooks-custom-code-in-forms-header-footer-sidebar

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

79178431

Date: 2024-11-11 16:41:52
Score: 1.5
Natty:
Report link

SCIM is a REST API-based protocol. Requests for SCIM are performed via HTTP requests (GET, POST, PATCH..) and need an HTTP URL. Even if the application is hosted "on-prem", it needs to have an HTTP server running to handle the HTTP request/response processing. The URL doesn't need to be externally resolvable, but does need to be accessible to the provisioning agent and resolvable via the internal DNS available to the server the agent is running on.

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

79178428

Date: 2024-11-11 16:40:52
Score: 1
Natty:
Report link

Just a little bit math:

img = ImageGrab.grab()
# crop with correct scale
screen_width = self.master.winfo_screenwidth()
screen_height = self.master.winfo_screenheight()
x1 = x1 / screen_width * img.width
x2 = x2 / screen_width * img.width
y1 = y1 / screen_height * img.height
y2 = y2 / screen_height * img.height
img = img.crop(box=(x1, y1, x2, y2))

In addition, don't use bbox because it will reduce the quality. Use img.crop() instead.

Btw your code is not usable on mac. But I have a cross platform version of a snipping tool, DragScreenshot.py:

"""
Ver 1.0

StackOverflow answer: https://stackoverflow.com/a/79166810/18598080

Bruh. Finally made it.
it mainly supports Mac(tested) and Windows(not tested but supposed to work). In Linux (not tested), the dragging view will not be totally transparent.

Example:

import tkinter as tk
import TkDragScreenshot as dshot

root = tk.Tk()
root.withdraw()

def callback(img):
    img.save("a.png")
    quit()
def cancel_callback():
    print("User clicked / dragged 0 pixels.")
    quit()

dshot.drag_screen_shot(root, callback, cancel_callback)

root.mainloop()
"""

import platform
import tkinter as tk
from PIL import ImageGrab

using_debug_mode = None

class DragScreenshotPanel:  
    def __init__(self, root: tk.Tk, master: tk.Toplevel | tk.Tk, callback = None, cancel_callback = None):
        self.root = root
        self.master = master
        self.callback = callback
        self.cancel_callback = cancel_callback
        self.start_x = None
        self.start_y = None
        self.rect = None
        self.canvas = tk.Canvas(master, cursor="cross", background="black")
        self.canvas.pack(fill=tk.BOTH, expand=True)  
        self.canvas.config(bg=master["bg"])
        self.canvas.bind("<Button-1>", self.on_button_press)
        self.canvas.bind("<B1-Motion>", self.on_mouse_drag)
        self.canvas.bind("<ButtonRelease-1>", self.on_button_release)

    def on_button_press(self, event):
        self.start_x = event.x
        self.start_y = event.y
        self.rect = self.canvas.create_rectangle(self.start_x, self.start_y, self.start_x, self.start_y, outline='white', width=2)  

    def on_mouse_drag(self, event):  
        self.canvas.coords(self.rect, self.start_x, self.start_y, event.x, event.y)

    def on_button_release(self, event):
        x1 = min(self.start_x, event.x)
        y1 = min(self.start_y, event.y)
        x2 = max(self.start_x, event.x)
        y2 = max(self.start_y, event.y)
        self.canvas.delete(self.rect)
        dy = abs(y2-y1)
        dx = abs(x2-x1)
        if dy*dx != 0:
            self.master.withdraw()
            img = ImageGrab.grab()
            screen_width = self.master.winfo_screenwidth()
            screen_height = self.master.winfo_screenheight()
            x1 = x1 / screen_width * img.width
            x2 = x2 / screen_width * img.width
            y1 = y1 / screen_height * img.height
            y2 = y2 / screen_height * img.height
            img = img.crop(box=(x1, y1, x2, y2))
            if using_debug_mode: print("Screenshot taken!")
            self.root.after(1, self.callback(img))
            self.master.deiconify()
            self.master.focus_force()
        else:
            if using_debug_mode: print("Screenshot canceled!")
            self.root.after(1, self.cancel_callback())
        
        self.master.destroy()
        


def set_bg_transparent(toplevel:tk.Toplevel, invisible_color_Windows_OS_Only= '#100101'):
    if platform.system() == "Windows":
        toplevel.attributes("-transparentcolor", invisible_color_Windows_OS_Only)
        toplevel.config(bg=invisible_color_Windows_OS_Only)
    elif platform.system() == "Darwin":
        toplevel.attributes("-transparent", True)
        toplevel.config(bg="systemTransparent")
    else:
        if using_debug_mode: print(f"Total transparency is not supported on this OS. platform.system() -> '{platform.system()}'")
        window_alpha_channel = 0.3
        toplevel.attributes('-alpha', window_alpha_channel)
        toplevel.lift()
        toplevel.attributes("-topmost", True)
        toplevel.attributes("-transparent", True)


def drag_screen_shot(root:tk.Tk, callback = None, cancel_callback = None, debug_logging = False):
    global using_debug_mode

    using_debug_mode = debug_logging

    top = tk.Toplevel(root)
    top.geometry(f"{root.winfo_screenwidth()}x{root.winfo_screenheight()}+0+0")
    top.overrideredirect(True)
    top.lift()
    top.attributes("-topmost", True)

    set_bg_transparent(top)
    DragScreenshotPanel(root, top, callback, cancel_callback)

just make a root with tk and then call drag_screen_shot(root, on_capture, on_cancel)

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jacky

79178421

Date: 2024-11-11 16:38:52
Score: 0.5
Natty:
Report link

For me it was the <table role="presentation"> Changing it to <table role="doc-pagebreak"> fixed the problem.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Leo Leoncio

79178416

Date: 2024-11-11 16:35:51
Score: 2.5
Natty:
Report link

using this command you can select the template in react native setup

npx create-expo-app --template

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

79178401

Date: 2024-11-11 16:32:50
Score: 2.5
Natty:
Report link

Differentiate between Just in Time (JIT)and Just in Case (JIC). JUST IN TIME (JIT) vs JUST IN CASE (JIC)

Just-in-Time:- It is a reactive strategy in inventory management whose main focus is efficiency and is done by reducing waste and costs by only bringing in inventory when it is needed for production. JIT is more commonly used where demand is stable and supply chains are in perfect shape with no disruptions.

Just-in-Case It is a proactive strategy in inventory management whose main focus is responsiveness and customer satisfaction with aims to meet potential demand quickly and avoiding the risks of shortages by stocking up on inventory in advance. Basically, JIC prioritizes risk management over cost reduction by keeping extra stock in hand. It is more commonly used in industries with unpredictable demand and supply chain disruptions.

Key differences between JIT and JIC include:

• Inventory Management: In JIT, order is placed and inventory is received, only as it's needed for production, while JIC stocks up inventories ahead of time. • Types of Suppliers : JIT requires reliable and much developed suppliers, while in JIC, have to rely on less reliable or local suppliers.
• Strategy to mitigate supply chain disruptions: JIC can rely on excess inventory to mitigate supply chain disruptions, while JIT needs supplier reliability and full collaboration to servev their customers. • Pull and Push Strategy:- JIT in inventory management is used for a Pull strategy of Supply Chain Management where goods are produced when an order is received, whereas JIC is used for Push strategy of Supply Chain Management and goods are stocked or produced before order received based on Demand Forecasting. • Types of Products:- JIT model is used where the products are specific, valuable or not commonly used or consumed. On the other hand JIC is used for necessary and commonly used goods (consumer goods), those are urgently on time needed.

Hybrid Models:-

Both strategies have advantages and disadvantages, particularly after pandemics like COVID-19, there is strategic pivot towards hybrid models that blend elements of both JIT and JIC strategies to build resilience against future crises like pandemics or natural disasters. This way, companies can strike a balance between cost reduction goals and risk mitigation objectives while keeping their operations running smoothly amidst unexpected challenges.

So, to face these adversities, businesses have reevaluated the inventory management strategies and adapt them for a more uncertain world.

Reasons:
  • RegEx Blacklisted phrase (2): urgently
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Israr Raja

79178394

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

I couldn't connect to my instance. VCN is ok, instance is ok but i don't know why ssh port 22 doesn't work :/

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

79178387

Date: 2024-11-11 16:25:49
Score: 2
Natty:
Report link

Dry cat food following on from the q about CPL and iams cat food, there is no way i'm giving my little terror iams anymore but what to replace with, I can't use purina products or felix as these are companies...

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

79178382

Date: 2024-11-11 16:24:48
Score: 2
Natty:
Report link

I had this issue that started after updating XCode to v16. I updated everything under the sun to the latest versions - XCode, the iPhone itself, Appium, Appium Inspector, and XCUITest Driver. Still got this error. Finally, I went into the Developer Settings on the iPhone and tapped "Clear Trusted Computers", and then re-trusted the computer when it prompted. Ta-da, Appium Inspector suddenly worked again!

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

79178379

Date: 2024-11-11 16:23:48
Score: 1
Natty:
Report link

You need an extra \n at the end to tell the system the header is done. Otherwise it can't know if there will be more header fields.

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

79178378

Date: 2024-11-11 16:23:48
Score: 1
Natty:
Report link

For anyone running into similar problems, I want to document what I found out about a similar challenge, and the error messages I saw. In my app, I have several short MIDI tracks that I need to play back based on the user interaction. Like the OP, I used a separate AVAudioSequencer for each track, all using a single AVAudioEngine. In one version of the code, each sequencer was started when it was time to play the track, but then it was never actively stopped, continuing to "run" in parallel with the more recently started tracks, but not actually playing any notes (since there weren't any left on the track). This worked correctly the first time the entire setup was executed, but the second time I get a series of errors of the type

from AU (0x102907d00): auou/rioc/appl, render err: -1
          CAMutex.cpp:224    CAMutex::Try: call to pthread_mutex_trylock failed, Error: 22

and in this case I often hear no sound.

Further issues arise when some of the sequencers are restarted from the beginning of their track after already having played, just like what the OP describes. When other sequencers are running in parallel (again, not actually playing any notes in parallel), I observe two problems:

  1. The track with the active notes is played back much faster than its configured rate
  2. On the next call to sequencer.stop(), the UI thread freezes, waiting for a mutex that is never released (call to CADeprecated::CAMutex::Lock).

Tested on iPadOS 17.6.1

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

79178373

Date: 2024-11-11 16:21:48
Score: 2
Natty:
Report link

Relative specifiers for import statements have to use a file extension: https://nodejs.org/api/esm.html#esm_import_specifiers

Just import { AppService } from './app.service.js'; TypeScript is clever enough to figure out what you want is app.service.ts during compilation.

A workarround could be https://www.npmjs.com/package/tsc-alias as mentioned in https://stackoverflow.com/a/76678279/517319

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Raphael Bossek

79178366

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

Scenario for those using AWS codePipeline;

Basically my problem was solved by editing/setting the input artifact from the deploy stage to the artifact output from the build stage.

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

79178344

Date: 2024-11-11 16:13:43
Score: 10 🚩
Natty: 6
Report link

Did anybody ever figure this out?

Reasons:
  • RegEx Blacklisted phrase (3): Did anybody ever figure this out
  • Low length (2):
  • 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 anybody
  • Low reputation (1):
Posted by: LLMIssues

79178340

Date: 2024-11-11 16:11:43
Score: 0.5
Natty:
Report link

You can use:

zypper in gcc11-c++

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex D

79178338

Date: 2024-11-11 16:10:43
Score: 3
Natty:
Report link

SecureString type for parameter: name and value and type encryp

"URI": "/?token=${name}&type=fargate",

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

79178326

Date: 2024-11-11 16:05:41
Score: 5
Natty:
Report link

@trincot, assuming that q5 is the final (accepting) state of your Turing machine above (given in JavaScript transitions), does it mistakenly accept aabcbc ?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @trincot
  • Single line (0.5):
  • Looks like a comment (1):
Posted by: user3134725

79178321

Date: 2024-11-11 16:03:40
Score: 1.5
Natty:
Report link

info.model is not null in Nov, 2024:

Future<bool> isIpad() async {
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
IosDeviceInfo info = await deviceInfo.iosInfo;
if (info.model.toLowerCase().contains("ipad")) {
  return true;
}
return false;

}

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

79178313

Date: 2024-11-11 16:01:40
Score: 3.5
Natty:
Report link

python starts from left so here 3 is not greater than 2 which is why it is showing as false. I hope you understand.

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

79178307

Date: 2024-11-11 16:00:40
Score: 2
Natty:
Report link

INCHES_TO_CM = 2.54

CM_TO_METERS = 0.01

FEET_TO_INCHES = 12

function start(){

def convert_height_to_meters(feet, inches):

feet_in_meter = feet FEET_TO_INCHES INCHES_TO_CM * CM_TO_METERS

inches_in_meter = inches INCHES_TO_CM CM_TO_METERS

meter = feet_in_meter + inches_in_meter

print(str(feet) + " feet, " + str(inches) +" inches = " + str(meter) + " meters" )

convert_height_to_meters(6, 4)

convert_height_to_meters(5, 8)

convert_height_to_meters(5, 2) }

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

79178305

Date: 2024-11-11 15:58:39
Score: 2.5
Natty:
Report link

I encountered the same error. In my case, I was pointing to the incorrect path for the private key. It was resolved after correcting it.

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

79178301

Date: 2024-11-11 15:56:38
Score: 4
Natty:
Report link

it helped me: How to Create Spaced Lists in Flutter Using LayoutBuilder and SingleChildScrollView

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Діма Шимко

79178289

Date: 2024-11-11 15:52:37
Score: 2.5
Natty:
Report link

When I run 'rake assets:precompile' I get output like this 'Warning: You are precompiling assets in development. Rails will not serve any changed assets until you delete public/assets/.manifest.json'

So I ran 'rm public/assets/.manifest.json' from the root of my project and it fixed it

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: isaiah paget

79178288

Date: 2024-11-11 15:51:37
Score: 2.5
Natty:
Report link

I found the problem.

As @EstusFlask mentioned, I should not use the index as key.

After further investigation, I replaced :key="index" with :key="route".

Now it works fine.

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

79178279

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

It's not completely clear from the documentation, but the gap utility is just for use with the CSS grid layout module, not columns and rows as you've tried to use it here. For that, you'll need to use the margin and padding utilities for each row.

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

79178268

Date: 2024-11-11 15:44:35
Score: 4.5
Natty: 5.5
Report link

https://bugreports.qt.io/browse/QTBUG-131008 (but was rejected as it's a non public class)

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

79178263

Date: 2024-11-11 15:43:34
Score: 1.5
Natty:
Report link

Similar issue I fixed by adding below property in Kafka configuration:

ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class

Reasons:
  • Whitelisted phrase (-2): I fixed
  • RegEx Blacklisted phrase (1): Similar issue
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: avendra sahu