79602007

Date: 2025-05-01 14:26:06
Score: 1
Natty:
Report link

You can make any function concurrent using goroutines:

for instance, instead of session.onReadyEnterWorld() , you could run go session.onReadyEnterWorld() .

This will run the function separately from the main thread, that way time.sleep will only freeze the goroutine and not the main thread.

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

79601999

Date: 2025-05-01 14:17:04
Score: 1
Natty:
Report link

The above mentioned Dependency Walker has not been updated to handle Windows API-sets. A newer tool called Dependencies.exe has been released on GitHub that can hndle Windows API-sets.

From the Dependency Walker wiki article,:

As of Windows 7, Microsoft introduced the concept of Windows API-sets, a form of DLL redirection. Dependency Walker has not been updated to handle this layer of indirection gracefully, and when used on Windows 7 and later it will likely show multiple errors. Dependency Walker can still be used for some application level debugging despite this.

As of October 2017 an Open Source C# rewrite of Dependency Walker called Dependencies.exe has been released on GitHub. It does not yet offer the full range of Dependency Walker features, but has been updated to handle Windows API-sets and WinSxS (side-by-side assemblies).

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

79601996

Date: 2025-05-01 14:13:02
Score: 3
Natty:
Report link

I changed to another version of bash shell at /bin/bash.

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

79601993

Date: 2025-05-01 14:11:53
Score: 2.5
Natty:
Report link

This is solved now. It was a process.
1 Created variables for every piece of the Patch(). That did not work.
2 What' going on with the variables?
3 Created Text boxes for the variables and then created a gallery to see the record target for the patch(). Everything Displayed correctly. That did not work. How could variables, ALL correct not allow the patch()?
4 Asked for help in a DOD chat for coders.
5 Someone provided a solution that used the control.text properties set in #2 above.

That worked. Crazy! They said it has something to do with Power Apps being Async. and maybe the variables not being fully baked. Even though you can see the correct values in the controls in the boxes before you even pressed the buttons. I used other controls to set the variables and populate the boxes. Because I thought it was an Order of Operations issue. So that should have made the variables resolve and display their values. So when I pushed the Submit button to get results using just variable set beforehand, somehow did not work; only picking up the Control.Text values worked.

I guess if your patch() is acting up maybe try setting variables, create text boxes to hold the variables, the use the control.Text property to pull the Text properties directly in the Patch(). That is the only difference between the code I submitted in OP and the solution.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kevin

79601991

Date: 2025-05-01 14:10:53
Score: 1.5
Natty:
Report link

WIndows 11, VSC 1.99.3 had trouble. Key point is that when VSC directs user to Eclipse Temurin JDK it comes defaulted to NOT "Set or override JAVA_HOME var" and NOT "JavaSoft (Oracle) registry keys..."

Updated both of those to do these things.

Looking at left hand panel of VSC there is a statement (you need to scoll down from "Get Started with Java Development") you will see the line that says, "To verify it is installed, create a new terminal (hyperlink) and try running the following command:

java - version

This may help confirm that the Java SDK did install, and may help show that without the JAVA_HOME or keys VSC may not know how to find the Java install.

Not sure this was the problem for the user above, but if this helps anyone then it's good.

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

79601977

Date: 2025-05-01 14:03:49
Score: 0.5
Natty:
Report link

Remove the column attribute from <key-property> mapping. It is not referenced by documentation to have such attribute if you are using <composite-id>.

<composite-id name="id" class="com.gs.jxx.util.ConfigParameterKey" mapped="true"><key-property name="category"/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: TevinS

79601970

Date: 2025-05-01 14:01:49
Score: 3.5
Natty:
Report link

you should update! not downgrade to version:

langchain: 0.3.24

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

79601966

Date: 2025-05-01 13:59:48
Score: 0.5
Natty:
Report link

Try from scipy.signal.windows import gaussian

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

79601965

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

i tried using the swift-create-xcframework command after installing the swift package, but i get this error:

sdk-funfun-ios % swift create-xcframework

warning: unable to restore workspace state: unknown 'WorkspaceStateStorage' version '6' at '/Users/fun/Coding/CLionProjects/sdk-funfun-ios/.build/workspace-state.json'

debug: evaluating manifest for 'sdk-funfun-ios' v. unknown

error: missingKey("product_type")

debug: evaluating manifest for 'sdk-funfun-ios' v. unknown

error: missingKey("product_type")

Error: fatalError

Any idea how to fix this issue?
What we have is a swift package library, it isn't inside an xcode proj, its just a library project.

Reasons:
  • RegEx Blacklisted phrase (1.5): how to fix this issue?
  • RegEx Blacklisted phrase (1): i get this error
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: theLittleBox

79601946

Date: 2025-05-01 13:43:44
Score: 1
Natty:
Report link

You can use selectionDisabled() in iOS 17.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Efe Mesudiyeli

79601943

Date: 2025-05-01 13:40:44
Score: 1.5
Natty:
Report link

Changed Parent element of whole page was <div className="w-screen h-screen bg-neutral-950 flex justify-center items-center "> and when i changed items-center to items-start it got fixed

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

79601937

Date: 2025-05-01 13:35:43
Score: 1
Natty:
Report link

Try $ pyinstaller --contents-directory lib --name MyApp MyApp.py

This can also be done using a .spec file by adding contents_directory to the EXE call

exe = EXE(
    ...
    contents_directory='lib',
    ...
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: EverDee

79601936

Date: 2025-05-01 13:35:43
Score: 1
Natty:
Report link

A nicer way of doing this is by using the std::chrono library.

// Needed for `1s` syntax
using namespace std::chrono_literals;

// Your code
auto const old = last;
last = steady_clock::now();
const duration<float> frameTime = last - old;

// Use `frameTime` as your delta time
auto fps = 1s / frameTime;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gabor Galgoczy

79601932

Date: 2025-05-01 13:32:42
Score: 1.5
Natty:
Report link

Shoes doesn't natively support tooltips, but you can create one using mouse events like hover to show and hide a text element. If this solution doesn't work for you, consider submitting a feature request to the Shoes team for official tooltip support in future versions.

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

79601930

Date: 2025-05-01 13:29:41
Score: 0.5
Natty:
Report link

According to the documentation at https://support.google.com/merchants/answer/6324448?hl=en, the value you set for availability should be 'in_stock'. You have a space in your provided value. Please change the call to the below and try again:

$product->setAvailability('in_stock');
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: L0uis

79601913

Date: 2025-05-01 13:21:38
Score: 1
Natty:
Report link

I am unable to comment on the previous comment from Nick K9 so quoting here for those who get alarmed by this statement.

That's a very important caveat, thank you Ram! The first 1000 invalidations per month are free. After that it's $0.005 per path. So if your bucket has 1MM objects in it, invalidating * will cost you $5,000! Be very careful with this.

– Nick K9

CommentedJan 24 at 13:26

This is not true. invalidating /* is the same as invalidating a very specific path. CF charges you by number of invalidations (or paths) not number of urls within that path. So unless you're invalidating each file individually, you will only be charged for one invalidation (0.005$).

When to invalidate /* vs individual paths
- Invalidate /* when you dont care about the cache. You just want to reset everything. Like when you're in a dev or non-prod env.
- Invalidate the individual path or parent path if you need to retain the cache to other paths on the same domain. Example, I have a distribution where i fetch /price and /static/asset. The price endpoint runs expensive queries on by DB and only refreshes once every hour with a job. So it makes sense to retain the cache and only clear the cache to /static/asset when I make a change to the asset. In this case, my origin is not loaded and I set the CF cache policy maxTTL to 60 mins. So CF will automatically fetch data after an hour without the need for invalidation.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sandeep Baynes

79601912

Date: 2025-05-01 13:21:38
Score: 0.5
Natty:
Report link

Perhaps you are overlooking a more obvious answer.

def main():
# blah blah
    if want_to_leave_quietly:
        return #no mess

if __name__ == "__main__":
    main()

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Ben A.

79601905

Date: 2025-05-01 13:14:37
Score: 1.5
Natty:
Report link

Since Dataflow workers operate in a different environment than your local machine, they can't find files using relative paths. I think the best approach is to upload it to a Google Cloud Storage bucket like gs://your-bucket/your-cert.pem. Then, within your Apache Beam pipeline, you'll need to use the apache_beam.io.gcp.gcsio.GcsIO tool to read the content of this file from GCS and then pass that content to the tlsCertificateKeyFile setting for your MongoDB connection. Don't forget to give the Dataflow service account permission to access the file in GCS.

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

79601904

Date: 2025-05-01 13:13:36
Score: 10.5 🚩
Natty: 6
Report link

I have the same problem. I have a download.php file with the above mentioned header-rules. I can download in my xampp-installation without any problems. Once I upload my files to remote machine (hosted webspace) instead of downloading the text file, it will be displayed on screen.

Is there a solution yet?

Reasons:
  • Blacklisted phrase (3): Is there a solution
  • Blacklisted phrase (1): I have the same problem
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: mcsahmaran

79601902

Date: 2025-05-01 13:12:35
Score: 4
Natty:
Report link

you can get your answer by visiting here : https://github.com/Sayan520/AnyCode-Anywhere/blob/main/deployment/angular-flask-deploy-render-guide.md

here fully explained how to deploy angular project using flask backend.

hopefully this will help you. thanks. :)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sayan Ghosh

79601899

Date: 2025-05-01 13:11:34
Score: 0.5
Natty:
Report link

So my misunderstanding was, that I thought that it would be possible to pass values via XAML to a ViewModel / POCO.

If I understand your comments correctly, I have (at least?) two options:

a) Create a DependencyProperty directly in the code-behind of my UserControl Child and pass the filename by binding. Just as if I were to use e.g. <TextBox Text={Binding ., Mode=OneWay} /> instead of my Child component.

b) Create instances of ChildViewModel in ParentViewModel and hold a property ObserveableCollection<ChildViewModel> in ParentViewModel.

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

79601894

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

the GUI is well closed, but it never prints "done" and the program never terminate.

on line 26, move print() command inside while/else condition.

Snippet:

while not tk.done():
    tk.spot( random.randint( 0,800 ),random.randint( 0,600 ))
    print('done')

Output:

done
done
done
done
exit loop
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adios Gringo

79601889

Date: 2025-05-01 13:02:31
Score: 3.5
Natty:
Report link

If anyone is still interested. I had a similar problem. Turns out the drawImage was working fine but the img tag had to have the style "object-Fit: scale-down" or something similar or else it was cropped. -Sammy

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

79601884

Date: 2025-05-01 12:58:31
Score: 3
Natty:
Report link

after

using Microsoft.EntityFrameworkCore;

using Pomelo.EntityFrameworkCore.MySql.Infrastructure;

the options.UseMySql is still not valid statement

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

79601883

Date: 2025-05-01 12:57:30
Score: 1.5
Natty:
Report link
grep -Eo '[0-9]{4}' file.txt

Tested on Linux and Mac OSX

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Martin Luther ETOUMAN NDAMBWE

79601881

Date: 2025-05-01 12:56:30
Score: 0.5
Natty:
Report link

I added below code to a script to automate it on mac in zsh

#!/bin/zsh

expect << EOF
  spawn ssh-add -s <your_command>
  expect "Enter passphrase*"
  send "<your_passphrase>\r"
  expect eof
EOF
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Updesh Srivastava

79601869

Date: 2025-05-01 12:43:27
Score: 1
Natty:
Report link

What are the best practices to be followed when implementing the sensitivity label?

  1. Define a clear label taxonomy by starting with an intuitive structure like Public, Internal, Confidential and Highly Confidential.
  2. Let Microsoft Purview automatically detect sensitive information (e.g., credit card numbers, passport numbers), and base your labels on these classifications.
  3. Enable auto-labeling policies wherever applicable.

For reference - 1. Sensitivity Label Overview, 2. Labelling Best Practices

Who will provide the persona to create the sensitivity label? Is it something I should ask the requirement provider/requester or, do I need to go via MSFT best practice document and create the sensitivity label?

For reference - 1. Get started with sensitivity labels, 2. Creat and configure labels

Is creating a sensitivity label a part of "data discovery and classification"?

Step-by-Step approach in your case:

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): in your case
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What are the
  • Low reputation (1):
Posted by: Mihir Saxena

79601862

Date: 2025-05-01 12:36:26
Score: 3
Natty:
Report link

I see missing '}}' on same line (Line 35) . Please add that and see if it fixes the issue.

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

79601854

Date: 2025-05-01 12:32:25
Score: 2.5
Natty:
Report link

Need more help -An unexpected error has occurred. Please try again later. [OR-C3SSH-02]

When i add the credit card on the google Work Space

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

79601849

Date: 2025-05-01 12:27:24
Score: 1
Natty:
Report link
Replace

subprojects {
    project.evaluationDependsOn(":app")
}
with

subprojects {
    afterEvaluate {
        project ->
            if (project.plugins.hasPlugin("com.android.application") || project.plugins.hasPlugin("com.android.library")) {
                project.android {
                    compileSdkVersion 34
                }
            }
    }
}


subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    project.evaluationDependsOn(":app")
}
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Tafadzwa Chitanga

79601843

Date: 2025-05-01 12:26:23
Score: 6
Natty: 8.5
Report link

can you share a little bit of code about how you send identifier to server when app is closed ?

I have same requirement about to have a geofence that triggers an http request when app is closed.

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): can you share
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): can you share a
  • Low reputation (1):
Posted by: Ufoloko

79601838

Date: 2025-05-01 12:23:22
Score: 1
Natty:
Report link

In 2025.. python 3.12 version, It works effectively.

But your code have problems..
the function should be in lowercase provide_access, run_match
should be like

class Access:
    def __init__(self, user, password):
        self.user = user
        self.password = password


class Run:
    def __init__(self):
        self.passwords = {}

    def add_user(self, user):
        if user.user in self.passwords:
            print("❌ User already exists.")
        else:
            self.passwords[user.user] = user.password
            print(f"✔ User: {user.user}, Password: {user.password} added successfully!")

    def show_pass(self, user):
        if user in self.passwords:
            print(f"✔ User: {user}, Password: {self.passwords[user]}")
        else:
            print("❌ User not found.")


run = Run()

while True:
    print("""
Hi there, You have three options:
1️⃣ Add user
2️⃣ Show password
3️⃣ Exit
""")
    choice = input("Enter your choice: ").strip().title()

    if choice == "1":
        username = input("Enter your username: ").strip().title()
        if username in ["Om", "Vishal"]:
            print(f"{username} is not allowed.")
        else:
            password = input("Enter your password: ").strip()
            access = Access(username, password)
            run.add_user(access)

    elif choice == "2":
        username = input("Enter your username: ").strip().title()
        run.show_pass(username)

    elif choice == "3":
        print("Exiting... Have a good day!")
        break

    else:
        print("❌ Invalid choice.")

I wrote it for you.. more advanced & clean..

Reasons:
  • Blacklisted phrase (0.5): Hi there
  • Blacklisted phrase (1): good day
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kaite

79601837

Date: 2025-05-01 12:23:22
Score: 2.5
Natty:
Report link

I didn't see anyone mention it, but Grokking Simplicity is a functional programming book that uses JavaScript for it's examples.

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

79601828

Date: 2025-05-01 12:15:20
Score: 0.5
Natty:
Report link

OK, I'm adding this here because I was still getting the error even when using the answers here. Greg Ennis' answer looks to cover my case but it didn't work.

The problem is that mocking Log.e gives an error when testing resulting in a "Log.e not mocked" error ... and other levels can too, even with the mock. The issue is that there are multiple methods you need to mock, as you can see below (two version of Log.e, and the error in testing occurs when you are hitting the Log.e which you haven't mocked!):

This is for Kotlin, and it goes in your @Before block in the testing class:

        mockkStatic(Log::class)
        every { Log.v(any(), any()) } returns 0
        every { Log.d(any(), any()) } returns 0
        every { Log.i(any(), any()) } returns 0
        every { Log.e(any(), any()) } returns 0
        every { Log.e(any(), any(), any()) } returns 0
        every { Log.w(any(), any<String>()) } returns 0
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Before
  • Low reputation (0.5):
Posted by: MacD

79601819

Date: 2025-05-01 12:08:18
Score: 3.5
Natty:
Report link

When using FlowableWithSingle<Mqtt5Publish,Mqtt5SubAck> subscribePublishes, it can result is a few different states depending on the result of the subscription. It with either :

As for the implementation here, could you please explain your intention with this configuration a little more fully so that we can better provide implementation suggestions? It sounds like you are using this flowable in place of confirming subscription success via the returned SubAck, where we would typically recommend utilizing SubAck as definition confirmation of a successful subscription.

Let us know your thoughts, or feel free to reach out on the HiveMQ Community Forum for some more specific help with the HiveMQ Client!

Best,

Aaron from the HiveMQ Team

Reasons:
  • RegEx Blacklisted phrase (2.5): could you please explain your
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Aaron Franz

79601818

Date: 2025-05-01 12:08:18
Score: 2
Natty:
Report link

You have not add any zakaznici.id_lieky
If this column exists it is NULL. Null joins on anything is always NULL

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

79601816

Date: 2025-05-01 12:06:18
Score: 4.5
Natty:
Report link

I have another question about a memory leak.

After predicting labels, the memory is never released—even after the function finishes executing.

What should I do? I tried the following code, but it didn't work.

I use CPU and don't have any gpu.

import gc

tf.keras.backend.clear_session()
del predictions
gc.collect() 
Reasons:
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (2): What should I do
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Azin Ekrami

79601815

Date: 2025-05-01 12:05:17
Score: 0.5
Natty:
Report link

Add any() or all(), if this is work.

Snippet:

if df['twitter'].str.lower().str.contains('windows 11').any():
        return 'windows 11'     
    elif df['twitter'].str.lower().str.contains('windows 10').any():
        return 'windows 10'    
    return 'windows 8 or older'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adios Gringo

79601808

Date: 2025-05-01 11:59:16
Score: 2.5
Natty:
Report link

This behavior is coming from Device preview package. Which is clearly seen in the screen shot . So that is for test environment only. in prod there is no device preview so there is no issue.

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

79601794

Date: 2025-05-01 11:43:07
Score: 0.5
Natty:
Report link

I had the same problem.
I opened the file etc/hosts and commented all hosts.
After rebooting Xcode is able to download new sdk.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Valentyn Hlyvich

79601793

Date: 2025-05-01 11:41:06
Score: 0.5
Natty:
Report link

"For others" (probably not jquery or vanilla javascript ?) response by basickarl did the trick for me.

I was looking for a simple script that is able to uncheck all "vendor" list in cookie popups, from Firefox / Chrome devtools > console tab.

The solution with $(jquery) didn't do the trick, since all implies that that website has jquery loaded.

In my case jquery was not present, so the simple oneliner solution that did the batch unchecking was the one menitoned:

document.querySelectorAll('input[type=checkbox]').forEach(el => el.checked = false);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jorel

79601779

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

For those who wondering about full example.

import { ExecutionContext, Injectable } from '@nestjs/common';
import { ThrottlerGuard } from '@nestjs/throttler';

function getIp(req): string {
  const forwarded = req.headers['x-forwarded-for'];
  if (typeof forwarded === 'string') {
    return forwarded.split(',')[0].trim();
  }
  return req.ips?.[0] || req.ip;
}

@Injectable()
export class ThrottlerBehindProxyGuard extends ThrottlerGuard {
  protected async getTracker(req: Record<string, any>): Promise<string> {
    return getIp(req);
  }

  protected getRequestResponse(context: ExecutionContext): {
    req: Record<string, any>;
    res: Record<string, any>;
  } {
    const httpContext = context.switchToHttp();
    return {
      req: httpContext.getRequest(),
      res: httpContext.getResponse(),
    };
  }
}

Then in your app.module providers array put this

providers: [
    {
      provide: APP_GUARD,
      useClass: ThrottlerBehindProxyGuard,
    },
  ],

After that, all @Throttle you will use, will follow rules of custom guard.

@Throttle({
    default: {
      limit: 1,
      ttl: 60 * 1000,
    },
  })
  @Post('forgot-password')
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Throttle
  • Low reputation (1):
Posted by: Artem

79601774

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

We have achieved this using cdxgen and BEAR - read detailed text in my blog here - https://worklifenotes.com/2025/04/30/practical-guide-to-ntia-compliant-sbom/

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

79601772

Date: 2025-05-01 11:26:03
Score: 1.5
Natty:
Report link

what works for me as the following
from .handshake import *

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: wajid

79601764

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

I have a similar issue with the error message : Cloud SQL connection failed. Please see https://cloud.google.com/sql/docs/mysql/connect-run for additional details: certificate had CN "", expected "<project_id>:<instance_id>"

I have a simple setup where I deploy my Ruby backend API on a Cloud RUN Service using an artifact, and I connect it to a PostgreSQL database on Cloud SQL. I try to connect both through a UNIX socket as it seems to be the correct way to do it (rather than TCP).

In my Cloud Run configuration, I specifically selected the database instance to automatically establish the socket in the background (according to Google Cloud documentation). According to the documentation, I'm not supposed to setup a Cloud Auth Proxy with this setup, however, I can't make it work, the connection always fails.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a similar issue
  • Low reputation (1):
Posted by: user30418711

79601759

Date: 2025-05-01 11:19:01
Score: 4.5
Natty:
Report link

This is indeed a bug. The discussion is continued under https://github.com/spring-cloud/spring-cloud-stream/issues/3067

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Cédric Schaller

79601753

Date: 2025-05-01 11:14:59
Score: 1.5
Natty:
Report link

iam able to identify the issue. it is bcz ipv4 loopback address is not reachable

ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:
General failure.
General failure.
General failure.
General failure.

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MUSLIH K

79601740

Date: 2025-05-01 11:04:57
Score: 1
Natty:
Report link

Removed unique=True

from

 id = Column(String, unique=True, nullable=False, primary_key=True)

and it solved the problem

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

79601738

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

Alternatively use fs::dir_copy()

https://www.rdocumentation.org/packages/fs/versions/1.3.1/topics/copy

Also seems to be faster...

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

79601737

Date: 2025-05-01 11:02:56
Score: 1.5
Natty:
Report link

Is it possible to create a Toplevel window in tkinter that is initially withdrawn without flashing

Yes. You can add the argument top.deiconify and use root.after().

snippet:

def dlg():
    top = tk.Toplevel(root)
    top.withdraw()
    # do more stuff and later deiconify top
    top.after(1000, top.deiconify)
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Has code block (-0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (0.5):
Posted by: Adios Gringo

79601735

Date: 2025-05-01 11:02:56
Score: 2
Natty:
Report link

What I found is that I needed to force the inclusion in the build of my @BindingAdapters, which were on their own in a separate .kt. I did this in a hacky but adequate way, by having a global boolean variable in the bindings file e.g. INCLUDE_DATA_BINDINGS and setting it somewhere that's definitely included, in my case the onCreate() of my Application subclass.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • User mentioned (1): @BindingAdapters
  • Single line (0.5):
  • Starts with a question (0.5): What I
  • High reputation (-1):
Posted by: JulianSymes

79601732

Date: 2025-05-01 10:54:55
Score: 0.5
Natty:
Report link

Not exactly the perfect answer, but setting the CORS AllowedOrigins to a wildcard does work:

new Bucket(this, "MyBucket", new BucketProps()
{
    BucketName = "myBucketName",
    //....
    Cors = 
    [
        new CorsRule()
        {
            AllowedHeaders = //...
            AllowedMethods = //...
            AllowedOrigins = ["https://webapp-*.transfer-webapp.<REGION>.on.aws"]
        }
    ]
});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: danwag

79601731

Date: 2025-05-01 10:53:54
Score: 1
Natty:
Report link

I have solved this problem. It is because I also installed MySQL on my Windows side and started the MySQL server. After I shut down the MySQL server on the Windows side, I can install it successfully. (If it doesn't work, you can try to uninstall the MySQL on the Windows side)

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

79601725

Date: 2025-05-01 10:44:52
Score: 2.5
Natty:
Report link

Today I notice a new user could registered with admin rights.

I think I’m infected by the same.

Out site title was changed, too.

The automatic register status was changed to Admin, for every new registed user.

-> Now I have updated the plugIn (Order Delivery pro)

-> I’ve deleted the new user ‚fallinlove‘

Have everybody more information about this new vulnerability?

Should I do everthing more, or is it fixed with the update.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: MatNie

79601712

Date: 2025-05-01 10:33:50
Score: 2.5
Natty:
Report link

"it wouldn't be reliable" "what if you had 2 identical resources" - it doesn't matter. the man just wanted to do that. he doesn't need an existential question or an opinion about it, just how to do it.

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

79601709

Date: 2025-05-01 10:32:50
Score: 1.5
Natty:
Report link

Currently this is all you need, (according to MDN Only Samsung Internet browser does not support this):

.vertical-text {
    writing-mode: sideways-lr;
}

https://developer.mozilla.org/en-US/docs/Web/CSS/writing-mode#:~:text=10.3-,sideways%2Dlr,-132

Works nicely even when wraping vertical text.

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

79601708

Date: 2025-05-01 10:32:50
Score: 1
Natty:
Report link

It seems Cloud SQL Auth Proxy failed to set up proxy connections to the instance. It is likely because the language connectors/ auth proxy version is too old. Have you tried upgrading your Cloud SQL proxy version? If you are using Cloud SQL Auth Proxy, make sure you are using the most recent version, see keeping the Cloud SQL Auth Proxy up to date.

You can also check this documentation about Requirements for using the Cloud SQL Auth Proxy, it mentions connections to Cloud SQL instances using (shared/ customer-managed) Certificate Authority (CA) with the recommended Cloud SQL Auth Proxy version.

If upgrading the proxy version doesn't work for you and if you have a support package, I would recommend you getting help through reaching out to Google Cloud Support for a more in-depth analysis of your issue.

Reasons:
  • Blacklisted phrase (1): this document
  • Whitelisted phrase (-1): Have you tried
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: HerPat

79601702

Date: 2025-05-01 10:30:49
Score: 0.5
Natty:
Report link

FastAPI expects to return something JSON-serializable, so instead of returning a plain string, return a dictionary:

from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def first_api(): 
    return {"message": "Hello World"}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dmitriy Danylov

79601694

Date: 2025-05-01 10:23:48
Score: 1
Natty:
Report link

if the error is from implementation of firebase push notification the i just updated the packages to

"@react-native-firebase/app": "^19.0.1",
"@react-native-firebase/messaging": "^19.0.1",
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jerry Azubuike

79601691

Date: 2025-05-01 10:23:48
Score: 1.5
Natty:
Report link

I'd propose an alternative solution that I've used when calculating rising block tariffs that avoids the complication of array formula. This allows you to drag across all cells on the block for a prorata calculation.

=IF(MIN(C11-($B5:B5),B5)>0,MIN(C11-($B5:B5),B5),0)

This might be slightly less elegant but easier to understand and troubleshoot. I used this logic when create a business electricity rates calculator for my website.

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

79601682

Date: 2025-05-01 10:15:46
Score: 1
Natty:
Report link
SELECT p.*, c.description, s.company_name
from products p
join categories c on p.category_id = c.category_id
Join suppliers s on p.supplier_id = s.supplier_id

I tried above in https://www.sql-practice.com/ this way u can do it, but plz post your schema to understand the issue you are facing
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ganesh Mohane

79601675

Date: 2025-05-01 10:05:44
Score: 2.5
Natty:
Report link

Creating a forum inside an application involves integrating features like user registration, post creation, commenting, and moderation. It’s best to use a scalable backend and intuitive UI. Partnering with a reliable mobile app development company can simplify the process and ensure a smooth, secure, and feature-rich forum experience.

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

79601669

Date: 2025-05-01 10:02:43
Score: 2
Natty:
Report link
dent(x,y,z):
   result = {}
   result[roll_no] = [std_name, marks]
   print(result)


n = int(input("Enter No of Students:"))
for i in range(n):

   roll_no = int(input("Roll No: "))
   std_name = input("Student Name: ")
   marks = int(input("Marks: "))
   student(std_name, roll_no, marks)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abhay Verma

79601648

Date: 2025-05-01 09:44:39
Score: 2
Natty:
Report link

it removes the error when you return it separately but what about await function it says 'await' expressions are only allowed within async functions and at the top levels of modules.ts(1308)

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

79601641

Date: 2025-05-01 09:38:38
Score: 4.5
Natty:
Report link

Eric Freitas has an excellent working solution to my issue as per the link below. Thank you Eric.

E. Freitas hit test on scenekit

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): the link below
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user23510612

79601633

Date: 2025-05-01 09:25:35
Score: 2
Natty:
Report link

I actually work for Cloudinary, and while this plugin is third-party (so we can't provide support for it directly), I wanted to provide a workaround.

If this, or any other plugin doesn't support a feature, you could always look into applying the functionality via an Upload Preset instead. In this instance, you should be able to create/update the default upload preset used for API uploads so that it calls the addons you need

Reasons:
  • Blacklisted phrase (1): this plugin
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Danny V

79601618

Date: 2025-05-01 09:11:32
Score: 1.5
Natty:
Report link

Executor has been removed from aiogram since version 3.
https://docs.aiogram.dev/en/latest/migration_2_to_3.html'

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

79601587

Date: 2025-05-01 08:44:25
Score: 1.5
Natty:
Report link

If you have both Lightsail and EC2 instances like me, make sure you are not mixing up the usernames. For EC2 instances, the default username may be ec2-user Try it out...

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

79601578

Date: 2025-05-01 08:34:22
Score: 2.5
Natty:
Report link

I didn't find either how to exclude a package. But I'm using the option --ignore-vuln with the vulnerability ID, which serves the same purpose.

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

79601576

Date: 2025-05-01 08:33:22
Score: 1
Natty:
Report link

diff command is great!

However, I have to speak against the md5 command, as it is crucial to understand that MD5 is not considered collision-resistant, meaning it's possible, albeit with a low probability, for different inputs to produce the same hash value, which is called a collision.

If you really have to generate a hash out of the file for some purpose, considering lowering the collision by using sha256 or better algorythm.

Refernce: https://security.stackexchange.com/questions/203344/how-likely-is-a-collision-using-md5-compared-to-sha256-for-checking-file-integr

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

79601574

Date: 2025-05-01 08:32:22
Score: 2.5
Natty:
Report link

It's an iOS 18 simulator issue. I tried the iOS 17.0 simulator, and it worked.

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

79601572

Date: 2025-05-01 08:29:21
Score: 1
Natty:
Report link

Perhaps, this is more generic for you:

TRIM(Both '_' FROM REGEXP_SUBSTR(Member_Target_Name), '_[^_]+_', 3, 1,'i') ) as ThirdElement

Lets say Member_Target_Name has this structure (values in square brackets are objects with values (including the brackets) :

x_[service]_[name]_[date_in_isostyle]_[type]

so a value sample would be:
s_myDB_MyApp_20250501_t

then the suggested code snippet pick up the third [name] element with text 'MyApp'.

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

79601566

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

I got this Flatpickr error on an ASP.net project because a new connection to Jquery was automatically create in the application, so it looks as though this is created by a conflict. Because of the page flow construct jQuery.noConflict() did not work when using web form validation; a combination of asp.net 4.5 Web Forms Unobtrusive Validation jQuery Issue and this <asp:ScriptManager in Asp.Net webforms, how it works? should have worked, but only a partial success. Although not directly relevant to anyone not using the Microsoft stack, it is relevant to people using Flatpickr this may allow someone to understand what is going on and where the error "$('.selector').Flatpickr is not a function" is occurring and find a solution in their project idiom.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: aegsomweb

79601558

Date: 2025-05-01 08:14:18
Score: 0.5
Natty:
Report link

Listing only Archive blobs using Az CLI

I had workaround in my environment using the same command

az storage blob list --account-name accountname --container-name container-name --account-key "account-key" --query "[?properties.blobTier=='Archive'].name" --output tsv

Also, I added ForEach-Object to get the "rehydrate" information with print messages.

az storage blob list --account-name <account name> --container-name <container name> --account-key "<account key>" --query "[?properties.blobTier=='Archive'].name" --output tsv | ForEach-Object { Write-Output "Blob: $_ | Tier: Archive"; Write-Output "Rehydrating blob: $_" }

I successfully got the list of archived blobs

Output:

Image

Image1

It may be due to there were no Archive-tier blobs at the time, or the wrong property access tier was used earlier.

Reference:

az storage blob list

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

79601553

Date: 2025-05-01 08:06:15
Score: 7 🚩
Natty: 4
Report link

Hi is this config you gave above to sample http status codes working?
Also any metrics are there to verify this?

Reasons:
  • RegEx Blacklisted phrase (2): working?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30419346

79601551

Date: 2025-05-01 08:01:14
Score: 0.5
Natty:
Report link

Node Setup

You can use this setup, but you need to tweak the "Extrude Mesh" scale and "Scale Element" scale. You could use maths nodes to compute them from a single thickness parameter if needed

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Joseph Linden

79601547

Date: 2025-05-01 07:57:13
Score: 1.5
Natty:
Report link

Adding <additionalModelTypeAnnotations>@lombok.Data</additionalModelTypeAnnotations> to the openapi-generator-maven-plugin's config section did the trick for me.

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

79601545

Date: 2025-05-01 07:52:12
Score: 1
Natty:
Report link

I agree this css file. Your fault will be only due to wrong css.

.card img {
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Darrian Tomlinson

79601543

Date: 2025-05-01 07:48:11
Score: 1
Natty:
Report link

A (hopefully) helpful tip:

Send links to @webpagebot to refresh the preview for everyone in Telegram 🙂

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Lucas Caton

79601542

Date: 2025-05-01 07:45:10
Score: 1
Natty:
Report link

My two cents on this :)

Why do we use salt for passwords?

If here are two users who use "HelloWorld" as they password. We will have two identical hashes in database.

And if hacker who got our database have premade bilions of passwords with they hashes. He can compare them with our database and find hash in our database coresponding with hash in they database and will find users password. No need for brute force.

We add salt to make all passwords unique. So, two users who used "HelloWorld" as they password will have two diffirent hashes if salt is used.

It also makes premade password hash databases less useful, or maybe worthless. So, haker who got our database will need to use brute force to find each password in database, but because he will know salt used for password, it will not be hard to do if user used "HelloWorld" as they password.

In both cases security mostlly depends at user. If he used "HelloWorld" as they password, it is same as not using password at all. But if he used >30 long and made from random letter, numbers and special simbols password, even without salt it will be secure.

But lets be real, most passwords are "HelloWorld" or similar.

Pepper can make password longer and more complex, but question is how to use them. Your example to me looks like double salted password. You first salt it with server salt, get hash and salt hash with password salt.

In my case I would just make pepper made from random special symbols (because most not secure passwords only use latters and maybe some numbers). Make pepper about 32 symbol length. Forcing user passwordto be at last 10 symbol long. If I just add them together I will have 42 symbols password. If user password is 20 symbol long, I will add only 22 symbols from pepper to make password 42 symbol long. And salt this password to make hash.

In this case if hacker got my database only he will not able to brute force passwords. Because salted password will be not "HelloWorld", but "!@#&^%+-&%$@#!#$#%HelloWorld" or something similar.

But if hacker got my pepper too and knows how I add it to passwords he may be able to brute force passwords, but this means more work for hacker. And this is meaning of crypto. To make hackers work more. Here are no security impossible to breach.

And pepper makes it more secure, here are no question about it. Which is easier to brute force?

"HelloWorld" or "!@#&^%+-&%$@#!#$#%HelloWorld"

Or are they equal?

In response to other answer:

"Your implementation of peppers precludes the ability to rotate the pepper key."

Why would I need to rotate my pepper? If hacker is able to steal my pepper, it means my server is compromised so much I need to deleted all password hashes from my database and make all users to recover they accounts. It is not important if I use pepper or not. I will need to do it in both cases. So, I don't see any meaning in rorating pepper.

"It Requires You To Roll Your Own Crypto"

Why would I need to roll my own crypto? All I need to do is to hash(pepper + password); in simplest case. In more complex case I would just make funtion to add pepper and password in more complex way and use standert hash. hash(add_pepper(password));

add_pepper() will not encrypt it will just add more symbols to password and maby make somthing like this:

"!@#&^%+-&%$@#!#$#%HelloWorld" or "!@#&^%+-HelloWorld&%$@#!#$#%"

It just needs to add pepper same way for same string (for same length of string).

As I said before my function to add papper just makes password 42 symbol long. No other unnecessary things. Pepper just makes password brute forcing harder. No more, no less.

If I add pepper depending at length of users password, getting only pepper is also not as useful, because hacher will not know how much of it was added and where. At front, at back, at both ends of password? Hacker will need to get my add_pepper() too. But if hacker can get them, all security is meaningless.

Pepper don't make unbreakable security, it just makes some part of security better. So, I will use pepper.

P.S. Maybe answers against pepper is writen by hackers who don't want they work made harder? ;)

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

79601540

Date: 2025-05-01 07:41:09
Score: 1.5
Natty:
Report link

I recommend you to check the following;

  1. The image has been updated

  2. The path of the image (you may see it as /image.png on your device, while the server you upload it to may need to see it as /file/image.png).

  3. Make sure the name of the image consists entirely of English characters.

These would be the solutions I would check.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hakan Yılmaz

79601531

Date: 2025-05-01 07:33:07
Score: 2.5
Natty:
Report link

items = [0.5, 0.44779812982819833, 0.4688469401495954]

print((len(items)*"{:.2f},").format(*items)[:-1])

=> 0.5, 0.45, 0.47

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

79601529

Date: 2025-05-01 07:30:07
Score: 1.5
Natty:
Report link

Ok, found the problem. I moved some code to a new function that is used in almost every start of a new test: logging in. First line in the try{}catch{} was setting the timeout to 60 seconds.......

Found this while setting up a new environment for the minimal reproducible answer and discovered the debug-function of Playwright.

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

79601526

Date: 2025-05-01 07:26:06
Score: 2.5
Natty:
Report link

my time is correct but I am still having the mongodb atlas issue
It is still saying my IP is not whitelisted

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

79601525

Date: 2025-05-01 07:25:05
Score: 2.5
Natty:
Report link

You need to use python at some point. Erindale made a tutoriel about bringing a csv in blender that you can use for this : https://www.youtube.com/watch?v=xWwoWi_vPTg

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joseph Linden

79601518

Date: 2025-05-01 07:17:04
Score: 1.5
Natty:
Report link

You need to add the following dependency to your maven pom.xml:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-configuration-processor</artifactId>
    <version>3.4.5</version>
</dependency>

And also an annotation on the main class @ConfigurationPropertiesScan

@SpringBootApplication
@ConfigurationPropertiesScan
public class DemoApplication {

   public static void main(String[] args) {
      SpringApplication.run(DemoApplication.class, args);
   }

}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @ConfigurationPropertiesScan
  • Low reputation (1):
Posted by: Andrew Samsonov

79601510

Date: 2025-05-01 07:09:02
Score: 2.5
Natty:
Report link

Update 05/2025 - PhpStorm 2025.1

File > Settings > Editor > Code Style > {Language} > Code Generation > Comment Code > (uncheck) Line comment at first column

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

79601509

Date: 2025-05-01 07:08:01
Score: 0.5
Natty:
Report link

See wxQueueEvent for safely posting an event from a secondary thread to an event handler, to be handled in the main thread.

Examples using it are in samples folder of wxWidgets. One is samples/thread/thread.cpp.

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

79601508

Date: 2025-05-01 07:07:01
Score: 0.5
Natty:
Report link

Creating a custom Linux-based speaker that appears as a Google Chromecast device is technically feasible, but there are several important aspects to consider:

  1. Technical Feasibility

mDNS and DIAL Protocols: You are correct that Chromecast relies on mDNS for discovery and DIAL for launching applications. Implementing these protocols will allow your device to be detected by Google Cast-enabled apps.

Receiver Implementation: You can create a receiver that mimics the behavior of a Chromecast receiver. This involves implementing the Cast Application Framework (CAF) to handle media playback commands and other functionalities.

  1. Building a CAF Receiver

CAF Receiver: You can build a custom receiver using the Cast SDK. This receiver will need to handle various media types and control protocols (like play, pause, stop) similar to official devices.

Development: You'll need to implement the necessary APIs defined by Google, which may include handling messages and media information sent from sender apps.

  1. Licensing and Certification

Google Licensing: To officially integrate with Google Cast services, you must comply with Google's licensing and certification requirements. This often includes: Registering your device with Google. Passing certification tests to ensure compatibility with Google Cast standards. Whitelisting: Google typically requires devices to be whitelisted. This means you may need to go through a formal application process to have your device recognized as a valid Google Cast receiver. 4. Additional Considerations

Compliance: Ensure you adhere to Google’s branding and operational guidelines to avoid potential legal issues.

Community and Resources: Leverage existing open-source projects or communities that have worked on similar integrations. There are repositories and forums that can provide guidance.

Steps to Implement

Set Up mDNS: Implement mDNS on your Linux device to announce itself as a Chromecast receiver.

Implement DIAL: Set up the DIAL protocol for launching applications on your device.

Develop CAF Receiver: Follow the CAF documentation to create a receiver that can handle media playback and communication with sender apps.

Testing: Test extensively with various Google Cast-enabled apps to ensure compatibility.

Certification Process: Once your device is operational, begin the certification process with Google.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: شهد عبدالله

79601507

Date: 2025-05-01 07:05:00
Score: 2
Natty:
Report link

As I understand you want sum of values according to dates if dates are changed then values should be changed automatically. I have answer for this '=SUMPRODUCT((B2:AF2>=B24)*(B2:AF2<=B25)*B3:AF3)'. Use this formula in your sheet First select the rows where your dates are present and match it with starting date or end date which is written in your sheet on B24 or B25. when you do change in date at B24 or B25 it will automatically update the values in total value cell.

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

79601503

Date: 2025-05-01 07:02:00
Score: 1
Natty:
Report link

I encountered the exact same problem, and was able to fix it by including this in the Allowed Origins (CORS) configuration in my auth0 app:

capacitor://localhost
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Brian Carpenter

79601500

Date: 2025-05-01 06:55:57
Score: 6.5 🚩
Natty: 5
Report link

How would you access those keys from info.plist or androidmanfiest.xml?

Reasons:
  • Blacklisted phrase (1): How would you
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How would you
  • Low reputation (0.5):
Posted by: Dev Gaud

79601493

Date: 2025-05-01 06:52:57
Score: 0.5
Natty:
Report link

I have found a solution that worked for me. It was provided by an Intel Community Employee and involves deleting system registry keys.

***Please make a backup by Export to .reg file, before deleting. As making incorrect changes to the Registry may cause issues to Windows and may cause programs crashing or no longer start***

Press "Windows+R" to open the run window, enter 'regedit', find the path HKEY_CURRENT_USERS\Software\ModelTechnology Incorpporated\Modelsim, and delete all the folders.

I also uninstalled quartus and modelsim before I ran this process then restarted my computer then reinstalled quartus and modelsim.
I don't know if the uninstalling and reinstalling was necessary but after that I no longer got the invalid time string issue.

As expected, it was not a code related issue or even a Quartus/modelsim version issue as I tried upgrading to the most recent quartus and using questa rather than modelsim but I still ran into the same error.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: youlexa

79601477

Date: 2025-05-01 06:34:53
Score: 1
Natty:
Report link

My Enter Key Also Wasn't Working and when I heard that for many people it is caused by the extension "vscode-styled-components" which I didn't have so I ended up installing it and then disabling it.

and somehow, it worked.

edit: I think it was because of python indent as I also disabled that extension.

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

79601476

Date: 2025-05-01 06:32:52
Score: 5.5
Natty:
Report link

i got this what can i do?

1|sapphire:/ $ pm uninstall -k --user 0 co.sitic.pp
Failure [-1000]
Reasons:
  • Blacklisted phrase (1): can i do
  • Blacklisted phrase (1): what can i do
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Keima Katsursagi

79601475

Date: 2025-05-01 06:32:52
Score: 5
Natty: 6.5
Report link

I got the same issue. But I didn't see USB port anymore after I flash new firmware and repower following information from QDL tools. My questions are:
1.Do I need to install android drivers before shorting the module Boot?
2. What kind of android drivers do I need to install?

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Peter

79601473

Date: 2025-05-01 06:29:51
Score: 1
Natty:
Report link

If you want to manipulate the timezone per test:

beforeEach(() => {
  vi.stubEnv('TZ', 'UTC');
});

afterEach(() => {
  vi.unstubAllEnvs();
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jasha

79601464

Date: 2025-05-01 06:18:49
Score: 0.5
Natty:
Report link

There is a really nice way to recover the file's content if you are using Visual Studio Code. First, create a file with the same name as the one before it, then open it. The TIMELINE option is now visible in the bottom left corner. Select the most recent "File Saved" option to see the most recent information you saved.

enter image description here

- I've tried this for code file file and it works fine.

Reasons:
  • No code block (0.5):
Posted by: Rohit Chauhan

79601456

Date: 2025-05-01 06:07:46
Score: 0.5
Natty:
Report link

There is a dedicated datasource for this, namely data "azurerm_function_app_host_keys" "functionkeys"

By using this, you should be able to access the key with azurerm_function_app_host_key.functionkeys.default_function_key

If you need further information, please have a look at the documentation:

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

79601449

Date: 2025-05-01 06:01:45
Score: 1.5
Natty:
Report link

The issue is with the way that the memory amount is formatted.

Previously, it was "2GB", It is now "2GiB"

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