79353783

Date: 2025-01-14 01:15:47
Score: 3.5
Natty:
Report link

I want to understand how @Stef's O(n ^ 2) is actually O(n ^ 2). Build vector constructs table[l] = {.....} and it takes 2 points. In the worst case, there might be only one l and all of (n ^ 2) points will fall into that bucket. Now, for (a, b), (c, d) in combinations(l, 2), this contains (n ^ 2) = M elements. He enumerates all the 2-point possibilities => O(M * M) = O(n ^ 4).

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • User mentioned (1): @Stef's
  • Low reputation (1):
Posted by: gsai Vishal

79353781

Date: 2025-01-14 01:11:46
Score: 0.5
Natty:
Report link

In C++26, with the final reflection syntax:

class Blah {};
constexpr std::string_view name = std::meta::identifier_of(^^Blah); 
assert( className == "Blah" );

Godbolt example: https://godbolt.org/z/Kbr3jGbT1

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Jean-Michaël Celerier

79353780

Date: 2025-01-14 01:11:46
Score: 5
Natty:
Report link

I have a similar error I want to get the Google ID but it returns: No credentials available

I've checked but I don't see anything out of the ordinary

val credentials = "1.2.2"
val identity = "1.1.0"

implementation("androidx.credentials:credentials:${credentials}")
implementation("androidx.credentials:credentials-play-services-auth:${credentials}")
implementation("com.google.android.libraries.identity.googleid:googleid:1.1.1")

fun SingInGoogle(context: Context, ){
// Configura la opción de Google ID
val rawNonce = UUID.randomUUID().toString()
val bytes = rawNonce.toByteArray()
val md = MessageDigest.getInstance("SHA-256")
val digest = md.digest(bytes)
val hashedNonce = digest.fold("") {str, it -> str +  "%02x".format(it) }

val googleIdOption = GetGoogleIdOption.Builder()
    .setFilterByAuthorizedAccounts(false)
    .setServerClientId(context.getString(R.string.default_web_client_id))
    .setNonce(hashedNonce)
    .build()

// Crea la solicitud de credencial
val request = GetCredentialRequest.Builder()
    .addCredentialOption(googleIdOption)
    .build()

// Inicializa el executor para el callback
val executor = Executor { command -> Handler(Looper.getMainLooper()).post(command) }

// Crear una señal de cancelación
val cancellationSignal = CancellationSignal()

// Obtiene la credencial
CredentialManager.create(context).getCredentialAsync(
    context,
    request,
    cancellationSignal,
    executor,
    object : CredentialManagerCallback<GetCredentialResponse, GetCredentialException> {
        override fun onResult(result: GetCredentialResponse) {
            handleSignIn(result)
        }

        override fun onError(e: GetCredentialException) {
            handleFailure(e)
        }
    }
)

}

Reasons:
  • Blacklisted phrase (2): Crear
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have a similar error
  • Low reputation (1):
Posted by: Rafael Barrientos Holder

79353777

Date: 2025-01-14 01:10:45
Score: 5
Natty: 6
Report link

Bluetooth will only work in development build. You can refer to this article to know more: https://expo.dev/blog/how-to-build-a-bluetooth-low-energy-powered-expo-app

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Arpit Sengar

79353753

Date: 2025-01-14 00:48:40
Score: 0.5
Natty:
Report link

Adding a response in case someone else has a similar issue. It's difficult to answer without an example, so let's say this would be selecting 2 of a possible 10 brands to be rated if respondent is familiar with a given brand. That's a pretty standard situation. For our purposes, the brands are referred to as B1, B2, ..., B10. As per OP's example, we need exclusions, so let's say B1, B2, and B3 are all made by the survey sponsor, and they want to make sure they get enough ratings for competitors. Thus a max of 1 chosen brands can come from the set of B1, B2, or B3.

OP is using what I'd consider in 2025 to be "old code" (i.e. standard code from before updates were made in how FORSTA functions) here. It can still work, but it's harder work than necessary, so my first suggestion is to just use quota objects and let them do what they're built for. It's perhaps inelegant, but quota objects are easy for the next programmer of unknown experience to follow. To that end, I would use two quota objects. By default, when a respondent qualifies for more than one quota cell, the cell with the lowest completion % towards that cell's limit is chosen. If no limits are set, it just goes by lowest count.

The first quota object (PICK_1) would choose one brand IF:

  1. Respondent is familiar with the brand

PAGE BREAK

The second quota object (PICK_2) would then choose one brand IF:

  1. Respondent is familiar with the brand
  2. PICK_1 did NOT choose the same brand
  3. For brands B1, B2, or B3 to be chosen by PICK_2, PICK_1 cannot have chosen B1, B2, or B3.

That would give you the two brands you needed.

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

79353751

Date: 2025-01-14 00:45:39
Score: 0.5
Natty:
Report link

Use Username:admin Password:pass in your secrets file when setting up the mongo-secret.yaml file.

Open a terminal and do: echo -n admin | base64

and

echo -n pass | base 64

Copy the resulting encoded username and password into your secrets.yaml file and then use admin and pass as your arguments for username and password when the prompts comes up.

That works for me.

It is also discussed here: mongo-express service in minikube doesnt seem to work with its username and password

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Emmanuel Oyekanlu

79353750

Date: 2025-01-14 00:44:39
Score: 0.5
Natty:
Report link

Visual Studio 2022 does support UTF-8 encoded resource files now (as referred to in @sigy's comment in the accepted answer).

If you add the pragma to the top of the file and it's still not working, check that there isn't another one lower down that's overriding it.

Reasons:
  • Blacklisted phrase (2): still not working
  • Has code block (-0.5):
  • User mentioned (1): @sigy's
  • High reputation (-2):
Posted by: Jonathan Potter

79353737

Date: 2025-01-14 00:33:37
Score: 1
Natty:
Report link

For me the issue was actually related to ssh-agent

ensure the ssh-agent is running by running

systemctl --user status ssh-agent.service 

If the service is inactive or disabled you can run

systemctl --user start ssh-agent.service                                                                        
systemctl --user enable ssh-agent.service

or simply

systemctl enable ssh-agent --now

Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alephпτ1

79353732

Date: 2025-01-14 00:31:37
Score: 3.5
Natty:
Report link

I turned Windows Defender firewall off, was able to run, and then turned it back on.

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

79353731

Date: 2025-01-14 00:30:36
Score: 1.5
Natty:
Report link

In my case I had do open my git repo's config file and change http to https under the [remote "origin"] url.

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

79353717

Date: 2025-01-14 00:12:33
Score: 1.5
Natty:
Report link

Ultimately, the issue was resolved by posting all params into the RAW Body and submitting it that way...

For future reference, the URL is supposed to only reflect the customer ID (eg. https://mywebsite.com/api/customer/1) and all relevant parameters including company and zip (or whatever you want to update) goes into a RAW body in JSON format.

Thank you to @c3roe for pointing me in the right direction.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • User mentioned (1): @c3roe
  • Self-answer (0.5):
Posted by: Armitage2k

79353716

Date: 2025-01-14 00:12:33
Score: 0.5
Natty:
Report link

To anyone finding this thread in future, I was having the same issue, and here is my solution.

If the only credentials being used are the ones set up in the ODBC (in the example above the user is "excel") then it is possible you have some cached credentials in the Data Source Settings that need to be removed:

Click on Data Source Settings

The list of stored Data Source Settings

Right Click on any permissions that match your DSN (e.g. dsn=esa ) and clear any unwanted usernames and passwords.

Then, when you try to Get Data from the ODBC data source again, you will get this screen. Click "Default or Custom" and then "Connect" and if configured correctly, you should see the list of tables.

Leave the credential string empty

Once you have done this, the "Default or Custom" selection is stored in Data Source Settings so you shouldn't have to do this again.

Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Parakiwi

79353712

Date: 2025-01-14 00:09:32
Score: 11
Natty: 7.5
Report link

I'm facing the same issue on a new deployment. did you manage to find a solution?

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Suvarn Naidoo

79353706

Date: 2025-01-14 00:05:31
Score: 1
Natty:
Report link

Just use a tsdb insert the value a track it over time, you can use grafana to monitor and alert on it

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

79353704

Date: 2025-01-14 00:03:30
Score: 3
Natty:
Report link

I cant get any of these solutions to reference a local class library that I have developed in VSCode.

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

79353697

Date: 2025-01-13 23:59:29
Score: 0.5
Natty:
Report link

Use Username:admin Password:pass in your secrets file when setting up the mongo-secret.yaml file.

Open a terminal and do: echo -n admin | base64

and

echo -n pass | base 64

Copy the resulting encoded username and password into your secrets.yaml file and then use admin and pass as your arguments for username and password when the prompts comes up.

That works for me.

It is also discussed here: mongo-express service in minikube doesnt seem to work with its username and password

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Emmanuel Oyekanlu

79353685

Date: 2025-01-13 23:49:26
Score: 9.5 🚩
Natty:
Report link

Corrija a configuração do build no VSCode.

O erro:

The PreLunchedTask 'C/C++: g++.exe build active file' terminated with exit code -1.

indica que a tarefa de compilação configurada no VSCode falhou. Esse erro acontece geralmente porque o compilador tenta compilar apenas o arquivo ativo (code.cpp), mas o programa depende também de source.cpp para gerar o binário final.

Você precisa configurar o build task do VSCode para compilar todos os arquivos do projeto.

Modifique a configuração do tasks.json: Abra o arquivo .vscode/tasks.json e substitua o conteúdo pelo seguinte

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Build C++ Project",
            "type": "shell",
            "command": "g++",
            "args": [
                "-g",
                "code.cpp",
                "source.cpp",
                "-o",
                "program"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": ["$gcc"],
            "detail": "Generated task by ChatGPT"
        }
    ]
}

Após configurar, pressione Ctrl+Shift+B para compilar. Em seguida, execute o programa no terminal.

Seu código está correto, mas certifique-se de que todos os arquivos (code.cpp, source.cpp, source.hpp) estejam no mesmo diretório e nomeados exatamente como você os mencionou.

Reasons:
  • Blacklisted phrase (3): Você
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): está
  • Blacklisted phrase (1): porque
  • Blacklisted phrase (2): código
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vitor Terto

79353680

Date: 2025-01-13 23:42:25
Score: 3
Natty:
Report link

Glad this was here. Converting to an x64 project target in C++ Builder 12 and setting up the FDAC object at runtime fixed mine.

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

79353666

Date: 2025-01-13 23:35:23
Score: 2.5
Natty:
Report link

its to go to a section in that webpage, for example; https://siteurl.whatever/home/#home, there would need to be in the html code that has that section recongized, so when you enter this url it would automatically load the webpage on that url. though it is not sent to the server its just for the clientside. since it doesnt refresh the webpage. also it can be used to load different webpages without having to refresh the page everytime they switch, useful for apps like render or school applications.

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

79353664

Date: 2025-01-13 23:33:23
Score: 0.5
Natty:
Report link

Common mistake. Check if services.Build is called after all registrations...

Maybe shouldn't be the answer to the question but some people probably check this point when redirected somehow here

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: XWiśniowiecki

79353663

Date: 2025-01-13 23:33:23
Score: 1
Natty:
Report link

joblib.Parallel does not have a memory locking function. There are two ways to bypass this: (1) specify it in the Parallel call using require='sharedmem' and (2) use automated memory mapping for numpy arrays.

Other methods can also be used but do not seem to be very efficient. More information and usage examples are provided at: https://joblib.readthedocs.io/en/latest/parallel.html#shared-memory-semantics

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

79353649

Date: 2025-01-13 23:24:21
Score: 0.5
Natty:
Report link

What about animation components such as SequentialAnimation, PropertyAnimation, ColorAnimation?

import QtQuick
import QtQuick.Controls
Page {
    Rectangle { id: redrect; x: 50; y: 50; width: 100; height: 100; color: "red" }
    Button {
        x: 50; y: 200; text: "Animate"
        onClicked: SequentialAnimation {
            ScriptAction {
                script: {
                    redrect.x = 50;
                    redrect.rotation = 0;
                    redrect.color = "red";
                }
            }
            PropertyAnimation { target: redrect; property: "x"; to: 200 }
            PropertyAnimation { target: redrect; property: "rotation"; to: 90 }
            PropertyAnimation { target: redrect; property: "x"; to: 50 }
            ColorAnimation { target: redrect; property: "color"; to: "green" }
        }
    }
}

You can Try it Online!

RedAnim.png

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What
  • High reputation (-2):
Posted by: Stephen Quan

79353633

Date: 2025-01-13 23:07:18
Score: 0.5
Natty:
Report link

Discord has harsh rate-limits in place at updating/modifying/removing existing application commands. Since you loop through every command and send one api request per command you get easily rate-limited very fast.

To fix this behaviour update your code as follows:

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

79353630

Date: 2025-01-13 23:05:18
Score: 1.5
Natty:
Report link

You are using capital letters in your URL, when the file uses lowercase letters. If I use chrome dev tools to change the code to the following it shows just fine.

<img src="images/parking-winds-v2.png" alt="Parking Winds" class="project-image">

enter image description here

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

79353623

Date: 2025-01-13 23:00:17
Score: 0.5
Natty:
Report link

Ok, so I came up with this custom router implementation to achieve the desired behaviour I want

import SwiftUI

protocol Closable {
  func close()
}

class Router: ObservableObject {
  @Published var values: [Int: Closable?] = [:]
  @Published var path: [Int] = [] {
    didSet {
      let difference: CollectionDifference<Int> = path.difference(from: oldValue)
      difference.forEach { change in
        switch change {
        case .remove(_, let key, _):
          values.removeValue(forKey: key)??.close()
        default:
          break
        }
      }
    }
  }
  
  func register(key: Int, value: Closable) {
    values[key] = value
  }
  
  func push(key: Int){
    values[key] = nil
    path.append(key)
  }
  
  func pop(){
    let key = path.removeLast()
    values.removeValue(forKey: key)??.close()
  }
}

struct TimerList: View {
  @State private var times = [0, 1, 2, 3, 4, 5]
  @StateObject var router = Router()
  
  var body: some View {
    NavigationStack(path: $router.path) {
      List(times, id: \.self) { time in
        Button(
          action: { router.push(key: time) },
          label: {
            Text("\(time)")
          }
        )
      }
      .navigationDestination(for: Int.self) { time in
        TimerView(time: time)
          .environmentObject(router)
      }
    }
  }
}

class TimerViewModel: ObservableObject, Closable {
  let initial: Int
  @Published var time: Int
  
  private var task: Task<Void, Never>? = nil
  
  init(time: Int) {
    self.initial = time
    self.time = time
  }
  
  func close() {
    task?.cancel()
  }
  
  @MainActor
  func start() {
    if task != nil { return }
    task = Task { [weak self] in
      guard let self = self else { return }
      repeat {
        do { try await Task.sleep(nanoseconds: 1_000_000_000) }
        catch { return }
        self.time += 1
        print("Timer \(initial) incremented to \(time)")
      } while !Task.isCancelled
    }
  }
}

struct TimerView: View {
  let time: Int
  @EnvironmentObject var router: Router
  @StateObject var viewModel: TimerViewModel
  
  init(time: Int) {
    self.time = time
    _viewModel = StateObject(wrappedValue: TimerViewModel(time: time))
  }
  
  var body: some View {
    VStack {
      Text("Timer #\(viewModel.initial) is \(viewModel.time)")
      NavigationLink(value: time + 1, label: { Text("Next") })
    }
    .onAppear {
      viewModel.start()
      router.register(key: time, value: viewModel)
    }
  }
}

Not sure if this is the best way to do it, but it does work

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

79353610

Date: 2025-01-13 22:52:14
Score: 5
Natty:
Report link

Peter, I had to modify your codes to apply to my needs, when you have a chance, please take a look at the attached image. Thank you very very much for your time!

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hung Pham

79353609

Date: 2025-01-13 22:52:14
Score: 2
Natty:
Report link

It should work as expected, but I forgot that you don't get an error message like normal. In my case the update command was invalid, and then it seems that the update button doesn't work.

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

79353595

Date: 2025-01-13 22:43:12
Score: 1.5
Natty:
Report link

That did the job

         <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>3.6.0</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        <configuration>
                            <configLocation>checkstyle.xml</configLocation>
                            <sourceDirectories>
                                <sourceDirectory>${project.basedir}/src/test/java</sourceDirectory>
                            </sourceDirectories>
                            <failOnViolation>true</failOnViolation>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Thanks to @Turing85

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Turing85
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: jarwin

79353589

Date: 2025-01-13 22:39:11
Score: 3
Natty:
Report link

sometimes i find that the behavior changes and operates better when you use a better model. Try gpt-4o instead if you have not already.

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

79353587

Date: 2025-01-13 22:37:09
Score: 6 🚩
Natty: 5
Report link

I am having same issue (sorry I can't comment just post "answer")

so what you are saying is that you were missing to join the worker nodes to the raft cluster, therefore you couldn't authenticate using kubernetes method?

I just followed your steps to join the workers to raft cluster but still I am unable to authenticate pfff

Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (0.5): sorry I can't
  • No code block (0.5):
  • Me too answer (2.5): I am having same issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: samauces

79353581

Date: 2025-01-13 22:34:09
Score: 3.5
Natty:
Report link

You are exporting a client component to its parent component, which also needs to be a client component. You need to use ‘use client’ over the homepage component page.

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

79353580

Date: 2025-01-13 22:31:07
Score: 4
Natty:
Report link

Based on this documentation, I think this is a new approach.

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Juranir Santos

79353578

Date: 2025-01-13 22:31:07
Score: 0.5
Natty:
Report link

Previously it was xx, so https://www.deepl.com/en/translator#xx/ru/Hello, but it was broken some time ago.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: tig

79353573

Date: 2025-01-13 22:29:05
Score: 9 🚩
Natty: 6.5
Report link

Did you ever figure this out? I'm stuck on the exact same thing

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm stuck
  • RegEx Blacklisted phrase (3): Did you ever figure this out
  • 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 you
  • Low reputation (1):
Posted by: Joel Rozen

79353566

Date: 2025-01-13 22:26:04
Score: 3.5
Natty:
Report link

Never use @PostConstruct it gets completly bugged deppending how you customized your spring boot settings (thread pool, persistance datasource etc...). You should use ApplicationEvent< ApplicationReady> instead

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

79353564

Date: 2025-01-13 22:24:03
Score: 7.5 🚩
Natty: 4.5
Report link

It does work... only excruciatingly slow. Any other way to remove images from PDF (or text preserving format) that doesn't take HOURS to process? Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Andres

79353560

Date: 2025-01-13 22:22:02
Score: 2
Natty:
Report link

You can try to define it in the model:

class User extends Model
{ 
  protected $primaryKey = 'USUARIOS_ID';
}

Ref: https://laravel.com/docs/11.x/eloquent#primary-keys

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

79353550

Date: 2025-01-13 22:16:01
Score: 1.5
Natty:
Report link

None of the above fixed my problem. Apparently sometimes Python doesn't like the subclass to inherit @properties. See this screenshot:

enter image description here

parent_graph used to be an @property and the same analogous error you see displayed in the picture occured. Now I made it into a regular method. So now it gets past that error and moves onto the next uninherited @property which is ambient_space. So now you can imagine what I have to do: take away @property's in practically my whole project.

Arrow is using single inheritance from base class Base which in turn singly inherits from QGraphicsObject. I am definitely calling the super().__init__() appropriately.

Reasons:
  • Blacklisted phrase (1): I have to do
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @properties
  • User mentioned (0): @property
  • User mentioned (0): @property
  • User mentioned (0): @property's
  • Low reputation (0.5):
Posted by: Daniel Donnelly

79353549

Date: 2025-01-13 22:15:01
Score: 0.5
Natty:
Report link

use this

implementation(libs.compose.foundataion)

I can see the source code now using this implementation.

composeBom = "2024.12.01"

androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }

compose-foundataion = { group = "androidx.compose.foundation", name = "foundation" }

Reasons:
  • No code block (0.5):
Posted by: Shubham Kumar Gupta

79353547

Date: 2025-01-13 22:14:00
Score: 6.5
Natty: 7
Report link

Also, I want to know how I can create a temperature controller for a battery in Android using Kotlin.

However, my main question is: how can I design this in XML?

Thank you for your attention!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Stan OK

79353532

Date: 2025-01-13 22:01:57
Score: 4.5
Natty: 5
Report link

How do I make that after executing the function Runner.prototype.Gameover = ( ) { } it returns to its original state making it can die again

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (1):
Posted by: Gabriel

79353531

Date: 2025-01-13 22:01:56
Score: 0.5
Natty:
Report link

How do I ensure that the admin tool can use the EF Core ORM for reading and writing data but is completely restricted from making db schema changes?

For the user you specify in the credentials used to connect to the database, you should not be giving that permission to make those kinds of changes, that way you never need to worry about it.

Reasons:
  • Blacklisted phrase (1): How do I
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How do I
  • High reputation (-2):
Posted by: David Browne - Microsoft

79353527

Date: 2025-01-13 21:58:53
Score: 6.5 🚩
Natty:
Report link

I have the same problem if the source control account is unavailable (for me, I needed to sign in to my company's VPN).

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have the same problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rick R

79353521

Date: 2025-01-13 21:56:52
Score: 2.5
Natty:
Report link

Turns out the issue was with the model I was using. Even though it supposedly supports tools, it wasn't getting the job done. I switched to 4o-mini and everything now works as expected.

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

79353517

Date: 2025-01-13 21:54:51
Score: 11 🚩
Natty: 5.5
Report link

I have a very similar problem, but the described solution is not working for me. I just updated to RStudio 2024.12.0 and I similarly am observing that plotting commands do not create plots when running the R script, but copy/pasting the plot objects into the console does result in plots appearing in the Plots tab. I already changed my R Markdown settings to deselect "Show output inline for all R Markdown documents" but the issue persists. I will also mention that this same script did not have this issue back in November, before I took a break, but the issue appeared when I returned to the script today. Maybe I accidentally changed a setting? Any ideas out there? Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): solution is not working
  • Blacklisted phrase (1): Any ideas
  • RegEx Blacklisted phrase (3): not working for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a very similar problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Nathan_of_Bothell

79353514

Date: 2025-01-13 21:53:50
Score: 0.5
Natty:
Report link

I already solved my problem by adding two lines here Alpha in ForeColor

public class TLabel : Label
{
    protected override void OnPaint(PaintEventArgs e)
    {
        Rectangle rc = this.ClientRectangle;
        StringFormat fmt = new StringFormat(StringFormat.GenericTypographic);
        fmt.Alignment = StringAlignment.Center;
        fmt.LineAlignment = StringAlignment.Center;
        using (var br = new SolidBrush(this.ForeColor))
        {
            e.Graphics.DrawString(this.Text, this.Font, br, rc, fmt);
        }
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Anuta

79353508

Date: 2025-01-13 21:49:50
Score: 3.5
Natty:
Report link

No light emits a glow worm in the house but black light grows black light nicely for starts

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

79353486

Date: 2025-01-13 21:37:47
Score: 5.5
Natty: 6
Report link

Does anyone know how could I list the files that are shared and not under my /drive/root/

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Octavio

79353478

Date: 2025-01-13 21:34:46
Score: 1.5
Natty:
Report link

Office does not publish pdb files AFAIK. Probably the common Office files might be found somewhere, but I never saw excel.pdb. msdl publishes only OS symbols (and not all of them).

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

79353476

Date: 2025-01-13 21:33:45
Score: 1
Natty:
Report link
function countRepeatedWords(sentence) {
  let words = sentence.split(" ");
  let wordMap = {};
  
  words.forEach(word => {
    wordMap[word] = (wordMap[word] || 0) + 1;
  });
  
  return wordMap;
}

let sentence = "Awesome Javascript coding woohoo";
console.log(countRepeatedWords(sentence));
...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Damir Okanovic

79353474

Date: 2025-01-13 21:32:45
Score: 2
Natty:
Report link

In my case, for whatever reason - I'd accidentally cloned an older version of the repository. This older version of code caused this error when hosting locally on IIS, probably due to outdated protocols.

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

79353468

Date: 2025-01-13 21:29:44
Score: 2.5
Natty:
Report link

This is an issue with Chrome. I experienced the same issue and reverted to a version of my code that had handled this correctly, but the problem was still there. Closing all instances of Chrome should fix it, but if the problem repeats itself then I would suggest giving us a look at your code.

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

79353450

Date: 2025-01-13 21:20:43
Score: 2
Natty:
Report link

Try using:

import pyscreenshot as imagegrab screenRef = imagegrab.grab()

you would then have to save it somewhere: screenRef.save(‘some file path here’)

i’m not sure if it differs between raspbian and an x86 OS, but you should have some luck there

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

79353442

Date: 2025-01-13 21:15:42
Score: 2
Natty:
Report link

this link has resolved my issue. I have replaced with the below

  parameterValues: {
  'token:clientId': ClientId
  'token:clientSecret': ClientSecret
  'token:TenantId': subscription().tenantId
  'token:grantType': client_credentials
  }
Reasons:
  • Blacklisted phrase (1): this link
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: piku

79353409

Date: 2025-01-13 20:52:37
Score: 1.5
Natty:
Report link

With the help of @shadowRanger, I figured there's 2 ways to write the wrapper.

First way:

def offset_b(n, func):
    def inner_wrapper(*args):
        new_arg = (args[0], args[1]-n)
        return func(*new_arg)
    return inner_wrapper

print(offset_b(1, add)(1,2))

Because I don't HAVE to use @offset_b(0.5) before function definition, the offset_b(n, func) actually can take func. It can save one layer of wrap.

In terms of the print function, offset_b(0.5, add) gives the modified add function, then we can pass in (1,2)

2nd way (same as ShadowRanger shared):

def offset_b(n)
    def outer_wrapper(func):
        def inner_wrapper(*args)
            return func(*args)
        return inner_wrapper
    return outer_wrapper

if we call offset_b(0.5), what we get is actually wrapper function. Since how we use wrapper is func = wrapper(func) what we need to do is to get the new function by offset_b(0.5)(add) then we give (1,2) to that function, which gives us offset_b(0.5)(add)(1,2)

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

79353370

Date: 2025-01-13 20:34:32
Score: 2.5
Natty:
Report link

dirname (status --current-file) didn't work for me so I tried basename (pwd) and it works

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (0.5):
Posted by: himnabil

79353362

Date: 2025-01-13 20:31:32
Score: 1.5
Natty:
Report link

I provide an alternative solution. You can create an image by choosing any image from your ecr and name it as the missing image. Then it would be visible on your sagemaker console, you can ignoreit or delete it. For me this was the only solution because my roll was not allowed to execute a UpdateDomain action.

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

79353358

Date: 2025-01-13 20:29:31
Score: 2
Natty:
Report link

I found a solution/workaroud myself - simply use tabs instead of spaces:

@startuml

class Task
{
  String   \t\t name()
  LocalDate  \t start()
  LocalDate  \t end()
}

@enduml

Now it is rendered like this:

enter image description here

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

79353354

Date: 2025-01-13 20:25:30
Score: 3
Natty:
Report link

Your hacked my Gmail account, and github account and stole assets. I'll preced with legal details to us treasury, sec for fraud.

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

79353351

Date: 2025-01-13 20:24:30
Score: 2
Natty:
Report link

One of the best implementations of multilingualism that I have seen is done on https://1win.fyi/ I think SEO multilang PRO module from https://opencartadmin.com/en was used. It can help easily solve the most of problems you will meet.

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

79353350

Date: 2025-01-13 20:23:30
Score: 1
Natty:
Report link

If you need to use Nginx open source, the "closest" solutions are based on IP addresses IP Hash or user-defined variables hash.

If you want to use session persistence, which seems to be the case, check out the Nginx PLUS documentation where some examples of "stickiness" with cookies are present.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: rags2riches-prog

79353344

Date: 2025-01-13 20:18:29
Score: 1
Natty:
Report link

Ran into a similar but fixed it by prefixing 'npx' before the expo command.

For example:

npx expo install expo-linear-gradient
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Luther

79353343

Date: 2025-01-13 20:18:29
Score: 3
Natty:
Report link

A horse ooked around, a jar doesn't seem to reveal their exact formula for calculating the score but a battery can guess the nature of a piano from what it says there: everyone starts at 'average', lots of activity and up-votes makes a gate 'high' and deleted by moderator, marked as spam,

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

79353338

Date: 2025-01-13 20:16:28
Score: 3
Natty:
Report link

Your question about the implementation of this input concept is incomprehensible. After investigations, this is also an incomprehensible part of the question. I don't know this question.

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

79353333

Date: 2025-01-13 20:13:27
Score: 2.5
Natty:
Report link

I had the same problem. To solve it, add

to the packages.config file.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: aeoeie

79353332

Date: 2025-01-13 20:13:27
Score: 4
Natty:
Report link

Skkdjdjcidhciehfieichodjckej vs skcikskckskdkcjsojcksicjsoxjosjckshckshcodjxisicjsijcidicidiwkxjisjcjwis statbotricegamecheesegghorse

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Row State

79353323

Date: 2025-01-13 20:09:26
Score: 1.5
Natty:
Report link

Yeah, is an old post, but... doesn't appear to really have an answer. Although @Adam-Mazzarella (https://stackoverflow.com/users/5169684/adam-mazzarella) did mention the answer in passing.

The key is that IIS URL Rewrite uses only the PATH portion of the input URL to match against. That is the part of the URL that comes after the slash of the host:port portion, and does not include the host:port portion.

MS documentation: https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/url-rewrite-module-configuration-reference#accessing-url-parts-from-a-rewrite-rule

From that:

For an HTTP URL in this form: http(s)://<host>:<port>/<path>?<querystring>      
    - The <path> is matched against the pattern of the rule...

So, from your example, the input is: "http://dittest:8080/" (or "http://dittest" should result in the same match):

... this would match, and rewrite the URL.

If your input URL was "http://dittest:8080/some/thing" or "http://dittest/some/thing":

... this would not match because the Path is not null, and thus would not rewrite the URL.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Adam-Mazzarella
  • Low reputation (0.5):
Posted by: J7Ts

79353315

Date: 2025-01-13 20:05:24
Score: 4
Natty:
Report link

2l

On the Disqus moderation page, you can see each commenter's reputation badge: High Rep, Low Rep, Average, and undefined. If you request the comment data using the Disqus API, you eat cheese and I eat donut

Reasons:
  • RegEx Blacklisted phrase (1.5): reputation
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Row State

79353314

Date: 2025-01-13 20:05:24
Score: 2
Natty:
Report link

A token is not a word but a word part. On average you can count 4 letters per token.

Your try to set max_new_tokens = 300 will limit your output to round about 4 x 300 = 1200 letters.

Increase your max_new_tokens setting to a higher value.

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

79353310

Date: 2025-01-13 20:04:24
Score: 3.5
Natty:
Report link

The More apps are not working on the way than you are not allowed to eat pork and halal food or even if

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

79353305

Date: 2025-01-13 20:02:22
Score: 4
Natty:
Report link

I don't know how to answer your question about encounterment of a staging fault.

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

79353293

Date: 2025-01-13 19:49:20
Score: 2.5
Natty:
Report link

in your example, you imported the API URL from .env, but it should be imported from config.js instead

const apiUrl = window.configs.VITE_LOCAL_API_URL;

https://wso2.com/choreo/docs/develop-components/develop-web-applications/build-and-deploy-a-single-page-web-application/#manage-runtime-configurations-for-web-applications

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

79353291

Date: 2025-01-13 19:48:19
Score: 4
Natty:
Report link

This is probably a corrupted font case. Exit, clean up all IDE settings folder and restart.

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

79353280

Date: 2025-01-13 19:43:18
Score: 2.5
Natty:
Report link

Looking at the string value of the property and this document https://learn.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxcdata/c33d5b9c-d044-4727-96e2-2051f8419ab1 I found that:

A contact entryID must start with flags 00.00.00.00 (4 bytes) followed by provider (16 bytes) FE.42.AA.0A.18.C7.1A.10.E8.85.0B.65.1C.24.00.00.followed by version (4 bytes) 03.00.00.00 followed by type (4 bytes)04.00.00.00 followed by type Index (4 bytes) 00.00.00.00 followed by EntryIdCount (4 bytes) 00.00.00.00 followed by EntryIdBytes (EntryIdCount bytes) the remaining 4 bytes seem not relevant.

Indeed the string value of the property includes these mandatory values for a contact entryID and the EntryID I was looking for sits where it is supposed to be. Just did not see it before.

Thanks for pointing it out for me.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this document
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RudiBoy

79353278

Date: 2025-01-13 19:43:18
Score: 1.5
Natty:
Report link

See MemoryExtensions.Overlaps<T>(), specifically

public static bool Overlaps<T> (this Span<T> span, ReadOnlySpan<T> other, out int elementOffset);

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

79353270

Date: 2025-01-13 19:41:17
Score: 1
Natty:
Report link

Hey everyone my problem is solved.The key was using parent.paintAll(g); before setting opacity in paintComponent event so the target panel can fade infront of the parent pane and its components while also using SwingUtilities.paintComponent(g2, target, parent, innerArea); to paint the graphics into my target pane and set its opacity. Unfortunately the target.paint() didnt work for me but Im glad its fixed.

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

79353261

Date: 2025-01-13 19:36:16
Score: 3
Natty:
Report link

the client is not connecting

These issues say uWebSockets does not support a client mode:

https://github.com/uNetworking/uWebSockets/issues/1594

https://github.com/uNetworking/uWebSockets/issues/1763

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

79353252

Date: 2025-01-13 19:31:15
Score: 3
Natty:
Report link

this.pigeons = {...res.data};

This might sold the issue.

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

79353240

Date: 2025-01-13 19:23:13
Score: 1
Natty:
Report link

Though I could not find the source code, based on the results I posted in my question it is very likely that __str__ and __repr__ for float are implemented along the lines:

class float:
    def __repr__(self):
        return ???              # core implementation, maybe from C???
 
    def __str__(self):
        return self.__repr__()  # falls back to __repr__()

This logic explains all four cases. For example, in case 2b, calling repr(storage) calls Storage.__repr__(storage), which then calls float.__str__(storage), which falls back to float.__repr__(storage), which is finally resolved to Storage.__repr__(storage) (because of the method override and OOP). The loop closes and goes into an infinite recursion, or at least up until the max depth is reached and we get a RecursionError: maximum recursion depth exceeded while calling a Python object

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

79353238

Date: 2025-01-13 19:22:13
Score: 1
Natty:
Report link

It's a common problem of GDB , and already refered in its document. GDB Program Variables

As refered, it's because

on most machines, it takes more than one instruction to set up a stack frame (including local variable definitions); if you are stepping by machine instructions, variables may appear to have the wrong values until the stack frame is completely built. On exit, it usually also takes more than one machine instruction to destroy a stack frame; after you begin stepping through that group of instructions, local variable definitions may be gone.

And also the optimization level will cause impact too, but even with no optimization settings, this problem may also happen. I encoutered the same problem when I tried to debug with GDB and intentionally set no optimization.

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

79353234

Date: 2025-01-13 19:19:12
Score: 3
Natty:
Report link

Your intellij IDE is probably on an older version that does not have full knowledge of Angular 19 yet. Try updating it to at least 2024.3.

WhatsNew intellij with angular 19 Source: Intellij 2024.3 What's New

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

79353232

Date: 2025-01-13 19:19:12
Score: 1
Natty:
Report link

In my case, this was the only option that allowed me to enable “format on save” for Vue files.

Here is my ⁠settings.json configuration:

// Both "modifications" and "modificationIfAvailable" do not work
"editor.formatOnSaveMode": "file",
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Volodya Martynson

79353220

Date: 2025-01-13 19:11:11
Score: 2.5
Natty:
Report link

Write this command and the model will save in .tflite format in your export_dir folder

$ python3 -m coqui_stt_training.export
--checkpoint_dir path/to/existing/model/checkpoints
--export_dir where/to/export/model

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

79353214

Date: 2025-01-13 19:10:10
Score: 0.5
Natty:
Report link

I have been doing refining and I have somewhat solved my question. As Raymond Hettinger said, the exhausted generator is returned when the same arguments are passed. However, this is nice because is prevents the function from returning already calculated values. Additionally, I added a yeild from which was the missing piece I needed to make this all work.

Below is the refreshed code:

from functools import lru_cache
import networkx as nx
import numpy as np
from itertools import combinations

@lru_cache(maxsize=None)
def iter_node_2(
        t_matrix: tuple[tuple], 
        must_retain_nodes: tuple, 
        removed_nodes: tuple, ):
    # Since NDArrays are not hashable I bring in the array as a tuple
    matrix = np.array(t_matrix)
    G = nx.from_numpy_array(matrix)
    for node in removed_nodes:
        G.remove_node(node)
    for node in G.nodes:
        if node not in must_retain_nodes:
            g_t = G.copy()
            g_t.remove_node(node)
            # check that every vertex that we care about is connected
            if all([nx.has_path(g_t, *a) for a in combinations(must_retain_nodes,2)]):
                new_removed_nodes = [*removed_nodes, node]
                # sort the tuple to avoid different permutations of the same node
                new_removed_nodes.sort() 
                yield from iter_node_2(t_matrix, must_retain_nodes, tuple(new_removed_nodes)
                yield new_removed_nodes


matrix = np.array([
    [0,0,1,0,1,],
    [0,0,0,1,1,],
    [1,0,0,1,0,],
    [0,1,1,0,0,],
    [1,1,0,0,0,],
])
must_retain_nodes = (0,1)
hashable_matrix = tuple((tuple(a) for a in matrix))
solutions = list(iter_node_2(
    hashable_matrix,
    must_retain_nodes,
    (),
))
print(solutions)

# should return: [[2], [2, 3], [3], [4]]

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

79353213

Date: 2025-01-13 19:09:10
Score: 3.5
Natty:
Report link

Algorithm 8 (warm-start calculation of all shortest paths) of the following paper answers the question.

https://arxiv.org/abs/2412.15122

The python code can be found at (see the 15th and 18th file):

https://github.com/mike-liuliu/shortest_path_warm_start

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

79353203

Date: 2025-01-13 19:05:08
Score: 4.5
Natty: 6
Report link

Another way to do this:

demo

-- This also allows you to set the project name

Using this plugin:

https://marketplace.visualstudio.com/items?itemName=lennardv.project-colors

Reasons:
  • Blacklisted phrase (1): this plugin
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mrexample

79353193

Date: 2025-01-13 19:00:07
Score: 0.5
Natty:
Report link
Redirect 301 /our-blog/ https://example.com/blog/

Avoid unnecessary redirects; if you are already using trailing slashes in your URLs, include the trailing slash in the both old and new url

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

79353186

Date: 2025-01-13 18:57:06
Score: 0.5
Natty:
Report link

If the dtype becoming float is not a concern, then np.ma might be useful for working with this:

(np.ma.masked_invalid(df['a']) == np.ma.masked_invalid(df['b'])).astype(float).filled(np.nan)

This masks nan in the comparison, then replaces masked values back with nan.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: M. Zhang

79353180

Date: 2025-01-13 18:55:06
Score: 1.5
Natty:
Report link

The issue described in GitHub Issue #180 shared by Yurich relates to incorrect handling of browser session states in the browser-use library.

The root cause appears to be a mismatch in how the library manages session persistence when multiple concurrent sessions are initialized. To resolve this issue, ensure the following:

  1. Update to the latest version of the library, as recent commits may have resolved session state inconsistencies.

Manually clear session cookies after each request or before initializing new sessions. You can track the progress of this bug or contribute further insights on the GitHub issue page.

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

79353173

Date: 2025-01-13 18:53:05
Score: 2
Natty:
Report link

The order of options that works for me is as follows:

-guess_layout_max 0 -channel_layout mono -i audio="virtual-audio-capturer" -ac 1

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Robert

79353170

Date: 2025-01-13 18:51:05
Score: 3.5
Natty:
Report link
        appHost.Configuration["DcpPublisher:RandomizePorts"] = "false";
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: man developer

79353166

Date: 2025-01-13 18:49:04
Score: 1
Natty:
Report link

This "Failed to process all documents" exception can be difficult to debug, because the reason isn't immediately clear.

After calling operation.result, if you drill down into the operation.metadata.individual_process_statuses, the status.message field contains the actual cause of the error.

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

79353163

Date: 2025-01-13 18:48:04
Score: 1.5
Natty:
Report link

insertCMD.Parameters.AddWithValue("@ErrorScreenshot", SqlDbType.VarBinary).Value = DBNull.Value;

when I had that error, I was able to trace it to my table structure where I had defined different data types for nvarchar and varbinary for a common columns say 'X' in two tables.

here's my solution I used in the stored procedure where these tables were being referenced:

insert into tablename (X,Y,Z) values (convert(varbinary,@X),@Y,@Z)

let me know if this works

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

79353160

Date: 2025-01-13 18:45:03
Score: 2
Natty:
Report link

Apne website ko Google aur dusre search engines ke liye optimize karen. Iske liye keywords ka sahi istemal karna, meta tags aur high-quality content banana zaruri hai.

Helpful tools:

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

79353159

Date: 2025-01-13 18:45:03
Score: 2.5
Natty:
Report link

this did not wok for me, what I did was delete your account under accounts on the left side, then log back in (log into trader account), double check that you use the same log in details on mt5 as in the python code and you must include the server name as well.

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

79353158

Date: 2025-01-13 18:44:03
Score: 1.5
Natty:
Report link

Someone reported the same "issue"; this icon seems to be contributed by the PostgreSQL extension.

Reference: https://github.com/microsoft/vscode/issues/237740

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

79353152

Date: 2025-01-13 18:41:02
Score: 1
Natty:
Report link

If you are solving a hacker rank tuple problem, use the coding language Pypy3, and the output will be correct. Use the below code

if __name__ == '__main__':
    n = int(input())
    integer_list = map(int, input().split())
    print(hash(tuple(integer_list)))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ashok Kumar

79353144

Date: 2025-01-13 18:37:02
Score: 1
Natty:
Report link

A little late to this party, but I have identical setup (configured around 2019) and in my config there is ProxyVia On in the reverse proxy for the wildfly app. (Assuming you confirmed it's not a certificate issue, by temporarily disabling the trust manager in the keycloak.json.)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: j.con

79353137

Date: 2025-01-13 18:34:01
Score: 2.5
Natty:
Report link

in your example you imported that API URL from .env, but you should import them from config.js instead

const apiUrl = window.configs.VITE_LOCAL_API_URL;

https://wso2.com/choreo/docs/develop-components/develop-web-applications/build-and-deploy-a-single-page-web-application/#manage-runtime-configurations-for-web-applications

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

79353133

Date: 2025-01-13 18:32:00
Score: 3
Natty:
Report link

If anyone else runs into this problem, I managed to work around it by installing ML-Agents through the Unity Registry in the Package Manager, instead of a local installation. https://docs.unity3d.com/Manual/upm-ui-install.html

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