79684670

Date: 2025-06-30 11:14:56
Score: 0.5
Natty:
Report link

How can I check if the userNumbers array contains all the same numbers as the winningNumbers array, in any order?

sort, convert to string,compare

function checkWin() {
    const winningNumbers = [3, 5, 8];
    const userNumbers = [
        parseInt(document.lotteryForm.input1.value),
        parseInt(document.lotteryForm.input2.value),
        parseInt(document.lotteryForm.input3.value),
    ];
    //console.dir(winningNumbers.sort().toString());
    //console.dir(userNumbers.sort().toString());

    // Need logic to compare both arrays in any order
    if (winningNumbers.sort().toString()==userNumbers.sort().toString()) {
        alert("Congratulations! You matched all the winning numbers!");
    } else {
        alert("Sorry, try again!");
    }
}
<form name="lotteryForm">
<input type="text" name="input1" value="3">
<input type="text" name="input2" value="5">
<input type="text" name="input3" value="8">
</form>
<hr>
<button onclick="checkWin()">test</button>

Is it better to use sort() and compare, or should I loop through and use .includes()?

sort and compare is the best option or you'll need nested loops ( .includes() will loop the whole array so you have nested loop)

What’s the cleanest and most efficient method?

i think: sort both, start the loop for i<ceil(l/2) and compare a[i]==b[i] && a[l-i]==b[l-i] exit on first false

function checkWin() {
    const winningNumbers = [3, 5, 8];
    const userNumbers = [
        parseInt(document.lotteryForm.input1.value),
        parseInt(document.lotteryForm.input2.value),
        parseInt(document.lotteryForm.input3.value),
    ];
    //console.dir(winningNumbers.sort().toString());
    //console.dir(userNumbers.sort().toString());
    let a=winningNumbers.sort();
    let b=userNumbers.sort();
    let res=a.length==b.length;
    if(res){
      for(i=0;(i<Math.ceil(a.length/2) && res);i++){
        res=(a[i]==b[i] && a[a.length-i]==b[a.length-i]);
      }
    }

    // Need logic to compare both arrays in any order
    if (res) {
        alert("Congratulations! You matched all the winning numbers!");
    } else {
        alert("Sorry, try again!");
    }
}
<form name="lotteryForm">
<input type="text" name="input1" value="3">
<input type="text" name="input2" value="5">
<input type="text" name="input3" value="8">
</form>
<hr>
<button onclick="checkWin()">test</button>

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How can I
  • Low reputation (0.5):
Posted by: emilianoc

79684668

Date: 2025-06-30 11:12:56
Score: 1.5
Natty:
Report link

You didn't mention the exact place you are referring to. But the official documentation made it clear that the API does not use any kind of triangulation.

The Geolocation API uses cellular device data fields, cell tower data, and WiFi access point array data to return latitude/longitude coordinates and an accuracy radius.

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

79684654

Date: 2025-06-30 11:03:53
Score: 1
Natty:
Report link

I took a closer look and it looks like the issue was happening for me at the display() part, so I removed that and saved the results to a csv and that worked!

        .load() \
        .write \
        .format("csv") \
        .option("header", "true") \
        .mode("overwrite") \
        .save(output_path)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: KristiLogos

79684642

Date: 2025-06-30 10:49:50
Score: 1
Natty:
Report link

Have an HTA file, with the following code (replace any placeholder names accordingly):

<!doctype html>
<html lang=en>
  <head>
    <title>Window_Title_Here</title>
    <script type="text/JavaScript">
      const WshShell = new ActiveX object("WScript.Shell");
    </script>
  </head>
  <body>
    <button onclick="WshShell.Run('batch1.bat')">Batch1</button>
<button onclick="WshShell.Run('batch2.bat')">Batch2</button>
<button onclick="WshShell.Run('batch3.bat')">Batch3</button>
  </body>
</html>

This will basically open a window with three buttons, each one runs the specified batch file.

Enjoy using this .hta file template!

Post Script: If this example does not work, feel free to downcomment or downupvote.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Unoheaken

79684635

Date: 2025-06-30 10:43:48
Score: 0.5
Natty:
Report link

Solution for "flutter doctor not running in CMD"

To fix the issue where flutter doctor fails in CMD (e.g., showing errors like "dd93de6fb1776398bf586cbd477deade1391c7e4 was unexpected"):

  1. Uninstall Git and Flutter:

    • Uninstall Git via Windows Programs and Features.

    • Delete the Flutter folder (e.g., C:\flutter or wherever it was installed).

  2. Reinstall Git:

    • Download Git from https://git-scm.com/download/win and install to C:\Program Files\Git.

    • Select "Git from the command line and also from 3rd-party software" during setup.

    • Verify with git --version in CMD or PowerShell.

  3. Reinstall Flutter in User Directory:

  4. Run flutter doctor:

    • In CMD or PowerShell (run as Administrator), execute flutter doctor -v to verify the setup.

This resolved the issue by completely reinstalling Git and moving Flutter to the user directory (C:\Users\<YourUsername>\flutter). No additional Git configuration (e.g., safe.directory) was needed in my case.

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

79684632

Date: 2025-06-30 10:41:48
Score: 0.5
Natty:
Report link

When you're pulling data straight from your database within a Server Component and want to send it over to a Client Component, You need to serialise it to turn it into a simple, readable format for the client component.

A common way to do this is by using JSON.parse(JSON.stringify(data))

const property = JSON.parse(JSON.stringify(dbProperty))
<PropertyDetailsClient property={property} />

This flattens the complex database object into something the client component can easily understand.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: UncleBigBay

79684623

Date: 2025-06-30 10:30:45
Score: 0.5
Natty:
Report link

Thanks to Richard Huxton to point the right documentation.

Using it, it is possible to condition the prepared statement code lines with this test :

$rs = pg_query($link, "select * from pg_prepared_statements");
if ($rs && pg_num_rows($rs) == 0) {
    // prepared statements here
}

The test is not verifying that the known prepared statement are the ones in the if.

In my case, I prepare all of them them just after the pg_pconnect so no need to check. But it can be more aligned to your case using WHERE name IN ('name1', 'name2') and testing the number of lines is not equals to number of provided names.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: P. Duveau

79684617

Date: 2025-06-30 10:26:44
Score: 1.5
Natty:
Report link

Please try to Terminate your .bat file with:

pause

And Save it.

Stop and start your service....DONE!!

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

79684615

Date: 2025-06-30 10:24:43
Score: 1.5
Natty:
Report link

I found a working solution. Liberty 23.x does not expose TransactionManager over JNDI, you need to use reflection to obtain TransactionManager.

This bean definition helped me configure JtaTransactionManager.

    @Bean
    public JtaTransactionManager transactionManager() throws Exception {
        InitialContext context = new InitialContext();

        UserTransaction utx = (UserTransaction) context.lookup("java:comp/UserTransaction");

        TransactionManager ibmTm = (TransactionManager) Class
            .forName("com.ibm.tx.jta.TransactionManagerFactory")
            .getDeclaredMethod("getTransactionManager")
            .invoke(null);

        return new JtaTransactionManager(utx, ibmTm);
    }

I found the answer here: https://stackoverflow.com/a/79363034/30908754

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

79684613

Date: 2025-06-30 10:22:42
Score: 2
Natty:
Report link

Q: "Alpine has NO benchmarks or specific profiles to scan the Alpine Docker image"

A. Right, that the case because of the design of the distribution.

Q: "Does someone know why it is? Why are none of them supporting Alpine hardening?"

A: Because it is a Linux distribution built around musl libc⁠ and BusyBox⁠ for Power Users, smaller and with more security in mind.

You'll probably need to "ask other questions" regarding Alpine Linux compliance, means in example like Hardening: the Apache Alpine Docker Container. And that's why some own work might be necessary

Reasons:
  • RegEx Blacklisted phrase (2): Does someone know
  • Probably link only (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: U880D

79684611

Date: 2025-06-30 10:19:41
Score: 0.5
Natty:
Report link
it was the manifest.json it work now because i updated it here the working version  {
"uuid": "tracknum",
"author": "Mohamed Subarashi",
"name": "Add Track Number",
"description": "Provides Numbers for Tracks in Playlist Donwlaod",
"version": "1.0.0",
"icon": "icon.png",
"mediaParser": true,
"mediaListParser" : true,
"scripts": ["msparser.js",
"msbatchparser.js"],
"permissions": ["LaunchPython"],
"dependencies": {"Python": {"minVersion": "3.0"}},
"minApiVersion": 1,
"minFeaturesLevel": 1,
"updateUrl": ""
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mohamed

79684608

Date: 2025-06-30 10:19:41
Score: 0.5
Natty:
Report link

You're seeing this error because removeEventListener was removed in Expo SDK 53.

Don't use:

BackHandler.removeEventListener(...)

Do this instead:

const sub = BackHandler.addEventListener('hardwareBackPress', handler);
return () => sub.remove(); // correct way to remove

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

79684606

Date: 2025-06-30 10:18:41
Score: 3
Natty:
Report link

# Define the range of numbers numbers = list(range(1, 37)) # Generate all combinations of 5 numbers all_combinations = combinations(numbers, 5)

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

79684600

Date: 2025-06-30 10:16:41
Score: 0.5
Natty:
Report link

Unreliable Datagram (UD) has an MTU limit because its primary goal is minimal latency. Processing packets larger than the MTU would require fragmentation and reassembly, adding complexity and latency, which goes against UD's design.

To send data larger than the UD MTU:

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

79684594

Date: 2025-06-30 10:10:39
Score: 3.5
Natty:
Report link

After installing Microsoft Reporting Services Project it appeared for me.

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

79684593

Date: 2025-06-30 10:09:39
Score: 1
Natty:
Report link

The first statement will always perform the UPDATE and only perform the INSERT if the IF NOT EXISTS evalutates to TRUE.

The 2nd statement will only perform the UPDATE if the IF NOT EXISTS statement evaluates to FALSE and only insert the records if it evalutes to TRUE.

In summary, the first statement will insert the missing record and the immediately update it. This will provide the correct result, but it is processing the same record twice, which is pointless and creates unnecessary overhead in terms of processing. The 2nd approach is definitely correct, as it only updates existing records and only inserts new records, so no duplicated effort.

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

79684591

Date: 2025-06-30 10:09:39
Score: 2.5
Natty:
Report link

You can export your filtered data to new table in the database. This should be an empty table created from your source table's schema. Then you can export that new table in full with pg_dump

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael N.K

79684585

Date: 2025-06-30 10:05:37
Score: 3.5
Natty:
Report link

I just updating sqlite on my computer to last version (now 3.13.1), and it's fix this error!

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

79684584

Date: 2025-06-30 10:05:37
Score: 2
Natty:
Report link

Ok, I need just normal bracket:

print(db:execute([[SELECT title FROM Table1 WHERE char1 =]] .. [[ "JI";]] ))
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nikulok

79684582

Date: 2025-06-30 10:03:36
Score: 1
Natty:
Report link

Ensure that the private_key_path is correct and points to the valid .p8 private key file. If the private key is not valid or mismatched, the JWT cannot be signed correctly.

---------------
Before sending the request, print out the JWT (gen_jwt) and verify that it looks correct. You can decode it locally using a tool like jwt.io to verify its contents.

Reasons:
  • Has code block (-0.5):
  • Filler text (0.5): ---------------
  • Low reputation (1):
Posted by: Darshit Rakhasiya

79684581

Date: 2025-06-30 10:03:36
Score: 2.5
Natty:
Report link

On Ubuntu 24.04 this comment from – wolfmanx Commented Aug 18, 2022 at 19:46 still did the trick

sudo apt-get install libreoffice-java-common

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

79684558

Date: 2025-06-30 09:42:31
Score: 4
Natty:
Report link

yeah even i am facing the same , even though you do this
canConfigureBusOff(3, 0x153, 1);
canConfigureBusOff(3, 0x153, 0);

still in the bus stat it'll switch bw passive and active error state , it'll not come to Bus Off

Reasons:
  • RegEx Blacklisted phrase (2): even i am
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: GONAHAL NANDISH

79684557

Date: 2025-06-30 09:40:30
Score: 3.5
Natty:
Report link
iOS 18.3 iOS 26
iOS 18.3 iOS 26

Same issue.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Quoc Huynh

79684552

Date: 2025-06-30 09:37:29
Score: 0.5
Natty:
Report link

it works for me and beware on the project name it must be the same as in your package.json

ng add @angular/pwa --project <project-name>
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arbi Jridi

79684549

Date: 2025-06-30 09:35:29
Score: 2.5
Natty:
Report link

You can refer the link it gives complete information about
macOS: fatal error: 'sql.h' file not found #215
https://github.com/alexbrainman/odbc/issues/215

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

79684548

Date: 2025-06-30 09:35:29
Score: 3.5
Natty:
Report link

The issue has been documented here.
Some workarounds

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: RaunaK Madan

79684547

Date: 2025-06-30 09:35:28
Score: 5.5
Natty: 4
Report link

This solution is not working practically. I tried with ConfuserEx2 obfuscation. as the multiple i tried with
[Obfuscation(Exclude = true, ApplyToMembers = true,StripAfterObfuscation =false)]
Also , Not working Practically usefull. please suggest something else .

Reasons:
  • Blacklisted phrase (1): solution is not working
  • RegEx Blacklisted phrase (2.5): please suggest some
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sashikanta Panda

79684546

Date: 2025-06-30 09:34:28
Score: 3
Natty:
Report link

It is Base64 encoded, you could write a Python Script or use Tools to convert the Base64 String to a readable format

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

79684543

Date: 2025-06-30 09:33:27
Score: 4
Natty:
Report link

Please someone help. Im getting Database error: Transaction not connected while I try to connect Sql anywhere 17 from my PB app

Reasons:
  • RegEx Blacklisted phrase (1): Im getting Database error
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: babatunde giwa

79684539

Date: 2025-06-30 09:32:27
Score: 2
Natty:
Report link

This issue is likely due to the application template type you used during application creation. I assume you created the application using the Traditional Application template. Could you try creating the application using the Standard-Based Application template instead? It should allow you to select the Password grant type.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Deshan Koswatte

79684538

Date: 2025-06-30 09:31:26
Score: 4.5
Natty:
Report link

This was answered here in the end :)

https://github.com/alexbrainman/odbc/issues/215

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

79684537

Date: 2025-06-30 09:30:26
Score: 1
Natty:
Report link

I believe that you can use KQL. I created the KQL below example of how to achieve this

let T = datatable(column1:string, column2:string)
[
   "www.Jodc.com", "www.J0dc.com"
];
T
| extend array1 = to_utf8(column1)
| extend array2 = to_utf8(column2)
| extend inter=set_intersect(array1,array2)
| extend un=set_union(array1,array2)
| extend jaccardSimilarity = iff(isempty(un), todouble(0), todouble(array_length(inter)) / todouble(array_length(un)))
| where jaccardSimilarity != 1
| distinct column1, column2, jaccardSimilarity
| sort by jaccardSimilarity desc;

KQL code can be used to create a Sentinel Analytics Rule that calculates the similarity rate between two domains and detects when the similarity calculation results are above a certain level. The code uses the Jaccard similarity algorithm to compare the two domains.
To use the Query above in a Sentinel Analytics Rule, you would need to adapt the query to work with your actual log data.

If you find the answer above helpful, please Accept the answer to help anyone in the community who might have a similar question to quickly find the solution.

Reasons:
  • Blacklisted phrase (1): how to achieve
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): have a similar question
  • Low reputation (0.5):
Posted by: pauline mbabu

79684527

Date: 2025-06-30 09:25:24
Score: 0.5
Natty:
Report link

In LESS you need to write

height: ~"calc(100vh - 80px)";

It brings STR to css, so css calc() function caculates meaning (not LESS)

height: ~calc(100vh - 80px) - it tries to calculate inside LESS instruments

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

79684522

Date: 2025-06-30 09:21:23
Score: 1.5
Natty:
Report link

You are getting this error because you are trying to call .metric for the log reg model, but it's not a method of logistic regression. A metric in the loop is just a function, like the confusion matrix and precision score, etc., which are imported from scikit-learn. Here's a quick fix up; use this

for metric in metrics: print(f"Metric: {metric.name}\nScore: {metric(y_test, y_preds)}

You call the metrics with the predicted labels, aka results

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

79684507

Date: 2025-06-30 09:11:21
Score: 0.5
Natty:
Report link

This should become possible in .NET 10. Basically, you will be able to dotnet run app.cs.

What is dotnet run app.cs?

Until now, executing C# code using the dotnet CLI required a project structure that included a .csproj file. With this new capability, which we call file-based apps, you can run a standalone .cs file directly, much like you would with scripting languages such as Python or JavaScript.

Source

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

79684505

Date: 2025-06-30 09:10:21
Score: 3.5
Natty:
Report link

You can just remove it from Woocommerce > Settings > Advanced remove the it from Account endpoints and you will not see it

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

79684493

Date: 2025-06-30 09:02:19
Score: 0.5
Natty:
Report link

To ensure compatibility, use the latest TensorFlow (2.x) version. Since eager execution is the default in newer versions, use TensorFlowV2Classifier instead of KerasClassifier with the Adversarial Robustness Toolbox (ART), as it's designed for TensorFlow 2.x's execution model. Please refer to this gist for your reference.

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

79684490

Date: 2025-06-30 09:00:18
Score: 2
Natty:
Report link

First

You try to invoke composable (AppData()) in the regualr lambda onClick. Remove composable annotation.

Second

Do not do database operations right in the composable functions. Move it to your viewModel. Such operations should be proceeded there.

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

79684483

Date: 2025-06-30 08:54:17
Score: 1
Natty:
Report link

I had a similar error, and the reason was because I mistakenly installed both pysnmp and pysnmplib which are both forks of the same repo etingof/pysnmp, so to fix this I did pip3 uninstall pysnmplib.

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

79684477

Date: 2025-06-30 08:49:16
Score: 0.5
Natty:
Report link

Nope, you aren’t spawn assorted coin types (like bTokens or dTokens) from Curve/Maker directly through your personal module—they’re generated via their unique services. Nonetheless, you may operate with them by invoking their stake/lend methods inside your blueprint and directing the coins to the holder's wallet. You don’t require another module per asset; instead, craft a flexible logic that supports transfers depending on the asset's framework (e.g., Curve’s stake() or Maker’s generate()), and assign tracked assets suitably.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Satyam Gupta

79684474

Date: 2025-06-30 08:47:15
Score: 1
Natty:
Report link

Note : if you use Angular HttpClient to get your document, you must set

responseType : 'blob'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ludovic Jutant

79684469

Date: 2025-06-30 08:46:15
Score: 3
Natty:
Report link

yes it is possibe to do so that most of the India based top blockchain game development in delhi ncr were doing this in database functional part.

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

79684467

Date: 2025-06-30 08:46:15
Score: 2.5
Natty:
Report link

You can disable this behavior by clearing Auto-format on Enter checkbox under Settings | Editor | General | Typing Assistance → Razor.

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

79684453

Date: 2025-06-30 08:37:12
Score: 1
Natty:
Report link

Do you use the cookie parser in the backend?

const cookieParser = require('cookie-parser');

and

app.use(cookieParser());

you should also omit domain. especially since you should write ‘localhost’ and not just localhost (must be string)

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

79684446

Date: 2025-06-30 08:31:10
Score: 3
Natty:
Report link

the string u wanna add should be safe, u make him safe this way:

"=\"" + theValue + "\""

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ‫שביט‬‎

79684440

Date: 2025-06-30 08:28:09
Score: 0.5
Natty:
Report link

You're encountering a hang because Python’s Global Interpreter Lock (GIL) is not correctly managed in a multithreaded context. When Py_Initialize() is called, the main thread holds the GIL by default. However, if you later call PyGILState_Ensure() from other threads (like Taskflow tasks) without releasing the GIL in the main thread first, you cause a deadlock — the other threads block forever waiting for the GIL.

After Py_Initialize(), immediately release the GIL using PyEval_SaveThread() before spawning threads:

Py_Initialize();

PyEval_InitThreads(); // deprecated in Python 3.9+, but harmless

PyThreadState* tstate = PyEval_SaveThread(); // releases GIL

Then in each task/thread that wants to run Python code:
PyGILState_STATE gil = PyGILState_Ensure();

// ... run Python code

PyGILState_Release(gil);

Finally, before Py_FinalizeEx(), restore the GIL to the main thread:
PyEval_RestoreThread(tstate);

Py_FinalizeEx();

Notes:

Regards

Reasons:
  • Blacklisted phrase (1): Regards
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ishtiak

79684439

Date: 2025-06-30 08:27:09
Score: 1.5
Natty:
Report link

Hei, simply by following exactly guide, you already has the active class working:

https://codesandbox.io/p/devbox/upbeat-glitter-7j2lzn

The customise code that you added possibly mess up the reactive. I would suggest to simplify it as the guideline unless you want to add custom logic there.

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

79684434

Date: 2025-06-30 08:23:08
Score: 0.5
Natty:
Report link

ehm...

you just let everything through regardless of the token or whether you are logged in or not.

callbacks: {
        async authorized() {
            return true; // Allow all requests to pass through
        },
    }, 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Torben G

79684433

Date: 2025-06-30 08:23:07
Score: 6.5
Natty: 5.5
Report link

did you manage to solve this in the meantime? Not sure what support meant by ignore it :D but sounds to me that your account is not fully set up yet or that you have not registered the sender/made necessary checks for the country you are sending to. Check here - https://www.infobip.com/docs/essentials/getting-started/sms-coverage-and-connectivity

Reasons:
  • RegEx Blacklisted phrase (3): did you manage to solve this
  • Low length (0.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: Sara Zorović

79684427

Date: 2025-06-30 08:21:06
Score: 0.5
Natty:
Report link
loaded_dict = {
    'model_name': 'efficientdet-lite3', 
    'uri': './local_dl', 
    'batch_size': 64, 
    'strategy': None, 
    'tflite_max_detections': 25, 
    'moving_average_decay': 0, 
    'var_freeze_expr': '(efficientnet|fpn_cells|resample_p6)', 
    'verbose': 0, 
    'profile': False, 
    'steps_per_execution': 1, 
    'model_dir': 'C:\\Users\\username\\AppData\\Local\\Temp\\tmpunzugbps',
    'tf_random_seed': 111111, 
    'debug': False
}

new_spec = object_detector.EfficientDetLite3Spec(**loaded_dict) 

model = object_detector.create(
    train_data, 
    model_spec=new_spec, 
    batch_size=4, 
    train_whole_model=True, 
    epochs=200, 
    validation_data=val_data
) 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dodo

79684408

Date: 2025-06-30 08:04:01
Score: 0.5
Natty:
Report link

None of these answers seem to work for me, but this did:

.v-field.v-field--focused {
    i {
        color: #1976D2 !important;
    }

    .v-label {
        color: #1976D2 !important;
    }

    .v-field__outline {
        &__start, &__notch, &__end {
            color: #1976D2 !important;
        }
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Max

79684406

Date: 2025-06-30 08:02:00
Score: 1.5
Natty:
Report link

If you are looking for a reliable and fast hosting service with excellent customer support and competitive pricing, I highly recommend ProHoster. They offer unlimited hosting plans suitable for both small and large websites, as well as high-performance SSD VPS with DDoS protection. Additionally, they provide free SSL certificates and easy-to-use site management tools. You can check out more details here:

https://prohoster.info/hosting/unlim-khosting

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

79684399

Date: 2025-06-30 07:58:58
Score: 5
Natty:
Report link

Should the marginal effects be plotted as additive components (i.e., centered at zero mean), or absolute trends over time?

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

79684396

Date: 2025-06-30 07:55:55
Score: 11
Natty: 6.5
Report link

Is there a solution? I have the same problem recently...

Reasons:
  • Blacklisted phrase (3): Is there a solution
  • Blacklisted phrase (1): I have the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there a solution
  • Low reputation (1):
Posted by: siukei_tsang

79684392

Date: 2025-06-30 07:51:53
Score: 1
Natty:
Report link

A not-null assertion operator is not defined equally in all languages. In some languages, it will throw an Exception if the value is null, hence the "assertion" in the name. Such thing does not exist in PHP as of 8.4, but theres the Null Safe Operator since PHP 8.0 (which works more like the "not-null assertion operator" in TypeScript.

I find this blog post good https://php.watch/versions/8.0/null-safe-operator

Reasons:
  • Blacklisted phrase (1): this blog
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: VerteXVaaR

79684379

Date: 2025-06-30 07:38:46
Score: 1.5
Natty:
Report link

There is a way to do this in a bulk kind of way I found. When browsing the files on the server you can select objects like .rpts and images (but not all objects), there is an Organise > Send > File Location context menu option that will let you save them to a network path. The limit here is it doesn't work on folders so it's limited to batching on a per folder basis. Also note if you have a report called x/y.rpt it will export it to a report called y.rpt in a folder called x wherever you sent it to. Note there are also SFTP and FTP options. Not the perfect solution but at least it allows partial bulk saving of objects off a Crystal Enterprise Server.

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

79684376

Date: 2025-06-30 07:35:45
Score: 1.5
Natty:
Report link

For VS code pip installation, check the correct path for installation at python interpreter.
Before choosing the right path, create virtual environment for the project folder.

After creating virtual environment, now select the right path for your python interpreter where your python.exe is located.

Restart the vs code, run python -m pip --version.
happy coding!

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

79684369

Date: 2025-06-30 07:32:43
Score: 14
Natty: 7
Report link

How did you solved it then?

Can you help me with this?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): did you solved it
  • RegEx Blacklisted phrase (1.5): solved it then?
  • RegEx Blacklisted phrase (3): Can you help me
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How did you solve
  • Low reputation (1):
Posted by: MD FAZLE HAQUE SHAIKH

79684361

Date: 2025-06-30 07:27:40
Score: 2
Natty:
Report link

Yes, absolutely! If you're looking for tour options that can accommodate a large group, I highly recommend checking out NZ Tourism Tours. They specialize in New Zealand train tour packages and offer flexible group options perfect for families, friends, corporate teams, or travel clubs.

Their tours can handle both small and large groups comfortably, with options to customize itineraries, accommodations, and even meal plans. Plus, traveling by train—like the scenic TranzAlpine or Northern Explorer—makes it easy to keep everyone together while enjoying breathtaking views across New Zealand.

With NZ Tourism Tours, you're in good hands for a seamless, scenic, and well-coordinated group travel experience!
Visit now:https://www.nz-tourism.com/train-tour-packages/ For more information

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: NZ Tourism Tours

79684357

Date: 2025-06-30 07:22:38
Score: 1
Natty:
Report link

For me, the problem was the gradle JVM not the Project SDK.

I had to remove the line <option name="gradleJvm" value="openjdk-24" /> in .idea/gradle.xml

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

79684348

Date: 2025-06-30 07:11:32
Score: 4.5
Natty: 5
Report link

i also got the same error but i am using directus as a CMS i dont know what cauing the error i have tried many solution

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ovesh Mulla

79684342

Date: 2025-06-30 06:59:28
Score: 1
Natty:
Report link
configurations.all {
    exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
}

Adding this in build.gradle solved my problem.

I am using Flutter.

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

79684341

Date: 2025-06-30 06:59:28
Score: 2.5
Natty:
Report link

Amplitude contains information about contrast, texture, and fine details.

Phase determines the spatial layout of image features.

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

79684319

Date: 2025-06-30 06:34:21
Score: 0.5
Natty:
Report link

import random

from colorama import init, Fore

init(autoreset=True)

choices = ["rock", "paper", "scissors"]

def get_winner(player, computer):

if player == computer:

    return "draw"

elif (player == "rock" and computer == "scissors") or \\

     (player == "scissors" and computer == "paper") or \\

     (player == "paper" and computer == "rock"):

    return "player"

else:

    return "computer"

print(Fore.GREEN + "🎮 Welcome to Rock, Paper, Scissors!")

player_name = input("Enter your name: ")

player_score = 0

computer_score = 0

while True:

print(Fore.YELLOW + "\\nChoose one: rock, paper, or scissors")

player_choice = input("Your choice: ").lower()

if player_choice not in choices:

    print(Fore.RED + "❌ Invalid choice. Try again.")

    continue

computer_choice = random.choice(choices)

print(Fore.CYAN + f"🤖 Computer chose: {computer_choice}")

result = get_winner(player_choice, computer_choice)

if result == "draw":

    print(Fore.BLUE + "It's a draw!")

elif result == "player":

    print(Fore.GREEN + "🎉 You win this round!")

    player_score += 1

else:

    print(Fore.RED + "💻 Computer wins this round!")

    computer_score += 1

print(Fore.MAGENTA + f"Score → {player_name}: {player_score} | Computer: {computer_score}")

again = input("\\nDo you want to play again? (yes/no): ").lower()

if again != "yes":

    print(Fore.CYAN + f"\\n🏁 Final Score → {player_name}: {player_score} | Computer: {computer_score}")

    if player_score \> computer_score:

        print(Fore.GREEN + "🎉 You are the overall winner!")

    elif player_score \< computer_score:

        print(Fore.RED + "💻 Computer wins overall!")

    else:

        print(Fore.YELLOW + "It's a tie overall!"import random

from colorama import init, Fore

init(autoreset=True)

choices = ["rock", "paper", "scissors"]

def get_winner(player, computer):

if player == computer:

    return "draw"

elif (player == "rock" and computer == "scissors") or \\

     (player == "scissors" and computer == "paper") or \\

     (player == "paper" and computer == "rock"):

    return "player"

else:

    return "computer"

print(Fore.GREEN + "🎮 Welcome to Rock, Paper, Scissors!")

player_name = input("Enter your name: ")

player_score = 0

computer_score = 0

while True:

print(Fore.YELLOW + "\\nChoose one: rock, paper, or scissors")

player_choice = input("Your choice: ").lower()

if player_choice not in choices:

    print(Fore.RED + "❌ Invalid choice. Try again.")

    continue

computer_choice = random.choice(choices)

print(Fore.CYAN + f"🤖 Computer chose: {computer_choice}")

result = get_winner(player_choice, computer_choice)

if result == "draw":

    print(Fore.BLUE + "It's a draw!")

elif result == "player":

    print(Fore.GREEN + "🎉 You win this round!")

    player_score += 1

else:

    print(Fore.RED + "💻 Computer wins this round!")

    computer_score += 1

print(Fore.MAGENTA + f"Score → {player_name}: {player_score} | Computer: {computer_score}")

again = input("\\nDo you want to play again? (yes/no): ").lower()

if again != "yes":

    print(Fore.CYAN + f"\\n🏁 Final Score → {player_name}: {player_score} | Computer: {computer_score}")

    if player_score \> computer_score:

        print(Fore.GREEN + "🎉 You are the overall winner!")

    elif player_score \< computer_score:

        print(Fore.RED + "💻 Computer wins overall!")

    else:

        print(Fore.YELLOW + "It's a tie overall!"import random

from colorama import init, Fore

init(autoreset=True)

choices = ["rock", "paper", "scissors"]

def get_winner(player, computer):

if player == computer:

    return "draw"

elif (player == "rock" and computer == "scissors") or \\

     (player == "scissors" and computer == "paper") or \\

     (player == "paper" and computer == "rock"):

    return "player"

else:

    return "computer"

print(Fore.GREEN + "🎮 Welcome to Rock, Paper, Scissors!")

player_name = input("Enter your name: ")

player_score = 0

computer_score = 0

while True:

print(Fore.YELLOW + "\\nChoose one: rock, paper, or scissors")

player_choice = input("Your choice: ").lower()

if player_choice not in choices:

    print(Fore.RED + "❌ Invalid choice. Try again.")

    continue

computer_choice = random.choice(choices)

print(Fore.CYAN + f"🤖 Computer chose: {computer_choice}")

result = get_winner(player_choice, computer_choice)

if result == "draw":

    print(Fore.BLUE + "It's a draw!")

elif result == "player":

    print(Fore.GREEN + "🎉 You win this round!")

    player_score += 1

else:

    print(Fore.RED + "💻 Computer wins this round!")

    computer_score += 1

print(Fore.MAGENTA + f"Score → {player_name}: {player_score} | Computer: {computer_score}")

again = input("\\nDo you want to play again? (yes/no): ").lower()

if again != "yes":

    print(Fore.CYAN + f"\\n🏁 Final Score → {player_name}: {player_score} | Computer: {computer_score}")

    if player_score \> computer_score:

        print(Fore.GREEN + "🎉 You are the overall winner!")

    elif player_score \< computer_score:

        print(Fore.RED + "💻 Computer wins overall!")

    else:

        print(Fore.YELLOW + "It's a tie overall!"import random

from colorama import init, Fore

init(autoreset=True)

choices = ["rock", "paper", "scissors"]

def get_winner(player, computer):

if player == computer:

    return "draw"

elif (player == "rock" and computer == "scissors") or \\

     (player == "scissors" and computer == "paper") or \\

     (player == "paper" and computer == "rock"):

    return "player"

else:

    return "computer"

print(Fore.GREEN + "🎮 Welcome to Rock, Paper, Scissors!")

player_name = input("Enter your name: ")

player_score = 0

computer_score = 0

while True:

print(Fore.YELLOW + "\\nChoose one: rock, paper, or scissors")

player_choice = input("Your choice: ").lower()

if player_choice not in choices:

    print(Fore.RED + "❌ Invalid choice. Try again.")

    continue

computer_choice = random.choice(choices)

print(Fore.CYAN + f"🤖 Computer chose: {computer_choice}")

result = get_winner(player_choice, computer_choice)

if result == "draw":

    print(Fore.BLUE + "It's a draw!")

elif result == "player":

    print(Fore.GREEN + "🎉 You win this round!")

    player_score += 1

else:

    print(Fore.RED + "💻 Computer wins this round!")

    computer_score += 1

print(Fore.MAGENTA + f"Score → {player_name}: {player_score} | Computer: {computer_score}")

again = input("\\nDo you want to play again? (yes/no): ").lower()

if again != "yes":

    print(Fore.CYAN + f"\\n🏁 Final Score → {player_name}: {player_score} | Computer: {computer_score}")

    if player_score \> computer_score:

        print(Fore.GREEN + "🎉 You are the overall winner!")

    elif player_score \< computer_score:

        print(Fore.RED + "💻 Computer wins overall!")

    else:

        print(Fore.YELLOW + "It's a tie overall!"import random

from colorama import init, Fore

init(autoreset=True)

choices = ["rock", "paper", "scissors"]

def get_winner(player, computer):

if player == computer:

    return "draw"

elif (player == "rock" and computer == "scissors") or \\

     (player == "scissors" and computer == "paper") or \\

     (player == "paper" and computer == "rock"):

    return "player"

else:

    return "computer"

print(Fore.GREEN + "🎮 Welcome to Rock, Paper, Scissors!")

player_name = input("Enter your name: ")

player_score = 0

computer_score = 0

while True:

print(Fore.YELLOW + "\\nChoose one: rock, paper, or scissors")

player_choice = input("Your choice: ").lower()

if player_choice not in choices:

    print(Fore.RED + "❌ Invalid choice. Try again.")

    continue

computer_choice = random.choice(choices)

print(Fore.CYAN + f"🤖 Computer chose: {computer_choice}")

result = get_winner(player_choice, computer_choice)

if result == "draw":

    print(Fore.BLUE + "It's a draw!")

elif result == "player":

    print(Fore.GREEN + "🎉 You win this round!")

    player_score += 1

else:

    print(Fore.RED + "💻 Computer wins this round!")

    computer_score += 1

print(Fore.MAGENTA + f"Score → {player_name}: {player_score} | Computer: {computer_score}")

again = input("\\nDo you want to play again? (yes/no): ").lower()

if again != "yes":

    print(Fore.CYAN + f"\\n🏁 Final Score → {player_name}: {player_score} | Computer: {computer_score}")

    if player_score \> computer_score:

        print(Fore.GREEN + "🎉 You are the overall winner!")

    elif player_score \< computer_score:

        print(Fore.RED + "💻 Computer wins overall!")

    else:

        print(Fore.YELLOW + "It's a tie overall!")

    print("👋 Thanks for playing!")

    break)

    print("👋 Thanks for playing!")

    break)

    print("👋 Thanks for playing!")

    break)

    print("👋 Thanks for playing!")

    break)

    print("👋 Thanks for playing!")

    break
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30927006

79684313

Date: 2025-06-30 06:25:18
Score: 1
Natty:
Report link

Oh, or just add one more label for both node type, named Node then

FOR (n:Node) ON (n.text)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jupyter

79684310

Date: 2025-06-30 06:22:17
Score: 1
Natty:
Report link

This issue was happening because the application was run using gradle with the run task defined by the application plugin.

The issue was fixed when I ran the program (executable jar) directly via the terminal, without using gradle.

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

79684307

Date: 2025-06-30 06:21:17
Score: 1
Natty:
Report link

This Works for me:
pip install "autogen-core"

Reasons:
  • Whitelisted phrase (-1): Works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: amrita yadav

79684297

Date: 2025-06-30 06:01:13
Score: 1
Natty:
Report link
openssl zlib -d < .git/objects/4b/3083256dedabd68e839d7717aa785424119990

If you have openssl, no need for Perl or extra packages. You can dump object content with this command.

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

79684293

Date: 2025-06-30 05:56:11
Score: 2.5
Natty:
Report link

To fix this, you need to set the CSS property transform: perspective(0) for the scroll container.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: The Splatt

79684267

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

The solution that worked for me, with the aid of chatGPT -> Flutter's compute() function to resize images in background threads, plus caches resized images to avoid reprocessing the same files. Respecting the max image size setting from display settings, this automatically resizes large images to prevent crashes.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Luthermilla Ecole

79684249

Date: 2025-06-30 04:21:53
Score: 2
Natty:
Report link

I needed polymorphism in my application so much. I even wanted to replace entire MessagePack infrastructure, and find another way to perform serialization and polymorphism with SignalR.
Fortunately realized that if put abstract data inside another parent type like in data container, it has overcome Hub method signature without any problem, and can be used as expected.

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

79684247

Date: 2025-06-30 04:19:52
Score: 1
Natty:
Report link

Toán tử == thực hiện chuyển đổi kiểu ngầm định (implicit type conversion) vì C++ cho phép các toán tử hoạt động trên các toán hạng khác kiểu bằng cách chuyển đổi chúng về cùng một kiểu để so sánh. Khi bạn viết: cpp Sao chép mã int a = 5; double b = 5.0; if (a == b) ... Trình biên dịch tự động ép a từ int sang double rồi thực hiện phép so sánh: cpp Sao chép mã (double)a == b → 5.0 == 5.0 → true Điều này được gọi là standard conversion và xảy ra để đảm bảo toán tử có thể xử lý các kiểu khác nhau một cách nhất quán. 2. 🧠 Mục tiêu của chuyển đổi ngầm định Tính linh hoạt: Cho phép so sánh giữa nhiều kiểu khác nhau (int với float, char với int, ...) Đơn giản hóa code: Không yêu cầu bạn phải ép kiểu thủ công mỗi lần. 📌 Lưu ý quan trọng ✅ Các trường hợp được phép chuyển đổi: Giữa các kiểu nguyên thủy (int, float, double, char, bool, ...) Giữa lớp có hàm chuyển đổi (conversion operator) Giữa lớp với constructor có explicit/implicit ❌ Cẩn thận với: Mất độ chính xác: int x = 1000000; float y = 1000000.1f; if (x == y) có thể sai. Gọi constructor không mong muốn: Nếu bạn định nghĩa lớp có constructor nhận 1 đối số, == có thể ép kiểu đối số đó về đối tượng lớp. 📦 Ví dụ gây hiểu nhầm: cpp Sao chép mã class A { public: A(int x) : val(x) {} bool operator==(const A& other) const { return val == other.val; } private: int val; }; int main() { A a(10); if (a == 10) // hợp lệ: 10 được ép kiểu thành A(10) std::cout << "Equal\n"; } Nếu constructor không có từ khóa explicit, 10 sẽ tự động chuyển về A(10) => ép kiểu ngầm định xảy ra. ✅ Cách chặn ép kiểu ngầm định nếu không mong muốn Dùng explicit: cpp Sao chép mã explicit A(int x); // Không cho phép ép kiểu ngầm định từ int → A Dùng == có kiểm soát kiểu với std::enable_if (advanced) ✅ Tóm tắt: Câu hỏi Trả lời Toán tử == có chuyển kiểu không? Có – theo quy tắc chuyển kiểu ngầm định của C++ Tại sao lại có? Để giúp so sánh giữa nhiều kiểu dữ liệu trở nên tiện lợi hơn Khi nào nên tránh? Khi có thể gây mất dữ liệu hoặc kết quả so sánh không chính xác Cách kiểm soát? Dùng explicit, kiểm tra kiểu trước khi ép, hoặc overload cẩn thận Bạn muốn mình đưa thêm ví dụ với class, struct, hoặc hàm tự định nghĩa cho == không? Các trường hợp được phép chuyển đổi: Giữa các kiểu nguyên thủy (int, float, double, char, bool, ...) Giữa lớp có hàm chuyển đổi (conversion operator) Giữa lớp với constructor có explicit/implicit Cẩn thận với:

Mất độ chính xác: int x = 1000000; float y = 1000000.1f; if (x == y) có thể sai.

Gọi constructor không mong muốn: Nếu bạn định nghĩa lớp có constructor nhận 1 đối số, == có thể ép kiểu đối số đó về đối tượng lớp

.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thành Công Đỗ

79684246

Date: 2025-06-30 04:15:51
Score: 3.5
Natty:
Report link

I found that I need to create a specific service in android platform to handle method channel from flutter. This service must be a background service to handle method from flutter.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: CoolNa

79684241

Date: 2025-06-30 04:07:49
Score: 3.5
Natty:
Report link

command line need to download seperately.
https://portal.perforce.com/s/downloads?product=Helix%20Command-Line%20Client%20%28P4%29

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

79684236

Date: 2025-06-30 04:02:48
Score: 3.5
Natty:
Report link

I faced the same error and i found that i forget [HttpGet] annotation

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

79684231

Date: 2025-06-30 03:52:45
Score: 5
Natty: 5
Report link

Что бы исправить это поведение нужно для скролл контейнера прописать css свойство transform: perspective(0);

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: The Splatt

79684226

Date: 2025-06-30 03:42:43
Score: 3
Natty:
Report link

Using another approach with JUnit Platform Launcher, there is a more detailed assertions way:

https://stackoverflow.com/a/47982480/7213979

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

79684225

Date: 2025-06-30 03:40:43
Score: 1.5
Natty:
Report link

angle = (angle + offset + 180) % 360 - 180

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

79684220

Date: 2025-06-30 03:33:41
Score: 1
Natty:
Report link

if you wanna get from HTML

  1. open browser DevTools
  2. select the <iframe>
  3. go to the Console, type $0.contentWindow.location.href
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Graham Quan

79684212

Date: 2025-06-30 03:24:39
Score: 5.5
Natty: 6.5
Report link

I was also having issue connecting I followed this blog.

Please see the blog below:

https://medium.com/@khan.abdulwasey99/step-by-step-process-on-how-to-connect-a-spring-boot-application-to-supabase-f1791e1d2402

Reasons:
  • Blacklisted phrase (1): this blog
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abdul Wasey Khan

79684207

Date: 2025-06-30 03:15:37
Score: 0.5
Natty:
Report link

Big thanks to @jcalz, whose answer set me on the right path!

I was getting some strange behavior when arrays are involved. I think what was happening is that the resulting type was including a union of array properties. This could be what @jcalz was referring to when they said:

\> you will probably have some use cases where this definition does things you don't expect or like.

Here's an example of the array index / property issue I was facing:

result:
albumMedias: number | ShareAlbum_shared_album_album_medias_cursor_album_medias[] | (() => ArrayIterator<never>) | ... 38 more ... | ((index: number, value: never) => never[])

I modified the solution to properly handle arrays without including all the Array properties.

type GetDeepProp<T, K extends string> =
  K extends keyof T
    ? T[K]
    : T extends Array<infer U>
      ? GetDeepProp<U, K>
      : T extends object
        ? {
          [P in keyof T]:
          P extends string
            ? GetDeepProp<T[P], K>
            : never
        }[keyof T]
        : never

Thanks @jcalz!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @jcalz
  • User mentioned (0): @jcalz
  • User mentioned (0): @jcalz
Posted by: animatedgif

79684202

Date: 2025-06-30 02:58:33
Score: 2.5
Natty:
Report link

Each compiler uses different internal data structures, hashing algorithms, and optimizations Differences in how memory is allocated and managed can impact Each compiler applies different optimizations during compilation.

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

79684198

Date: 2025-06-30 02:50:31
Score: 4
Natty:
Report link

According to my understanding, you are making some issues.
I ever faced similar issue before so please try it with my experience.
config.py**
SESSION_COOKIE_SAMESITE = "None"

SESSION_COOKIE_SECURE = True
app.py****

CORS(app, supports_credentials=True, resources={
    r"/*": {
        "origins": [
            "http://localhost:3000",
            "https://453c-162-199-93-254.ngrok-free.app"
        ]
    }
})

if it is still unauthorized, then please let me know.

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (1): I ever faced similar issue before so please
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29378984

79684197

Date: 2025-06-30 02:48:30
Score: 4
Natty:
Report link

some try... maybe version 1.0.0-M6 of springAI can work.

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

79684196

Date: 2025-06-30 02:47:30
Score: 0.5
Natty:
Report link

My problem was with nested async. I needed to comment out that import:

# nest_asyncio.apply()

It looked like a memory issue but in my logs for the jupyter service it was clear that it was async issue:

`

sudo systemctl status jupyter
[sudo] password for demo:
● jupyter.service - Jupyter-Notebook Daemon
     Loaded: loaded (/etc/systemd/system/jupyter.service; enabled; preset: enabled)
     Active: active (running) since Mon 2025-06-30 01:57:29 UTC; 37min ago
   Main PID: 1204921 (jupyter-noteboo)
      Tasks: 16 (limit: 153561)
     Memory: 150.0M (peak: 220.6M)
        CPU: 24.173s
     CGroup: /system.slice/jupyter.service
             ├─1204921 /home/demo/jupyter_env/bin/python3 /home/demo/jupyter_env/bin/jupyter-notebook --no-browser --notebook-dir=/home/demo
             └─1218765 /home/demo/rag/bin/python -Xfrozen_modules=off -m ipykernel_launcher -f /home/demo/.local/share/jupyter/runtime/kernel-c293a975-19f7-443a-801b-00>

Jun 30 02:30:51 demo bash[1218711]:   File "/usr/lib/python3.12/asyncio/base_events.py", line 1972, in _run_once
Jun 30 02:30:51 demo bash[1218711]:     handle = self._ready.popleft()
Jun 30 02:30:51 demo bash[1218711]:              ^^^^^^^^^^^^^^^^^^^^^
Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: texasdave

79684192

Date: 2025-06-30 02:41:28
Score: 6
Natty:
Report link

Shouldn't be using WPF in 2025 you fucking retard

Reasons:
  • Blacklisted phrase (2): fuck
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jonathan Mayers

79684188

Date: 2025-06-30 02:32:26
Score: 3.5
Natty:
Report link

Djjd is sh is mddn songs HD shsj and the same time I xhhd shyd apko bhi nahi hai to offi the same time I will be

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

79684184

Date: 2025-06-30 02:27:25
Score: 2.5
Natty:
Report link

The most likely problem is that the browser is clipping your cube; the 'receding' will be caused by a rectangular clip. If you run the cube in a different environment, the problem will (most likely) disappear.

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

79684177

Date: 2025-06-30 02:14:22
Score: 3.5
Natty:
Report link

nice to meet you all! Today, we are going to talk about the custom dialog "openCustomDialog" in HONOR OS. I believe that many of you will need to use pop-up windows in your development process, and it should not be coupled with the page during use. Today, I will help you all analyze the usage of "openCustomDialog" in detail.

一、First, let's analyze the settings for pop-up windows in Harmony OS. Harmony OS provides some basic design for pop-up windows, but it cannot meet the requirements for diverse designs of pop-ups. However, it offers the method "openCustomDialog" which can be used. This method is based on the "PromptAction" under the UIContext.

1、First, define a context

// Applying Context
private context: common.UIAbilityContext = getContext() as common.UIAbilityContext;
// Tips for Methodology
private promptAction: PromptAction = context.windowStage.getMainWindowSync().getUIContext().getPromptAction()

2、Let's take a look at the parameters of penCustomDialog. dialogContent refers to the content to be displayed, which is the component. options are the parameters related to the pop-up window, such as closing the pop-up window, etc. You can refer to the Harmony OS documentation for detailed descriptions. Here, we mainly discuss the custom components that need to be displayed.

this.promptAction().openCustomDialog(custom,options);

二、The ComponentContent of the custom component has three parameters. Among them, the T type parameter is the key data for data interaction.

uiContext: This is the context of the UI. getUIContext()

builder: It is the WrappedBuilder<[T]> component decorated with @builder.

args: is a parameter of type T

1、"Builder" is a global component, which is the custom component we need to write. The generic type "T" represents the data object type that we need to pass, and "args" represents the data object that needs to be passed.

// custom component
@Builder
export function customBuilder(params: DialogBuilderParams) {
    Text("custom component")
}
// create component
let custom = new ComponentContent(getUIContext(), wrapBuilder,params)
// show component
this.promptAction().openCustomDialog(custom,options);

2、So, basically, this is the completion of a basic pop-up window. Next, let's talk about the parameters that the component needs to pass in. The parameters need to be displayed as 'params', and there are also the close method 'close' and other parameters 'status'.

export interface DialogBuilderParams<T,R>{
  params: T
  close: (data: R) => void
  status?: DialogStatus
}

3、After obtaining the data, it is displayed in the component. The code of the group definition component is modified. params.params is used to display the data, and params.close(true) is used to close the pop-up window.

// custom component
@Builder
export function customBuilder(params: DialogBuilderParams) {
  Column() {
    Text(params.params).width('90%').textAlign(TextAlign.Center).padding(10)
    Blank()
    Divider()
    Text('确认')
      .onClick(() => {
        params.close(true)
      })
      .width('100%')
      .aspectRatio(6)
      .textAlign(TextAlign.Center)
  }
  .width('70%')
  .backgroundColor(Color.White)
}

4、Implement the method for closing the popup window. When it is necessary to pass parameters for processing the close method.

// create component
let custom = new ComponentContent(getUIContext(),wrapBuilder,{
    params: "This is the data to be presented.",
    close: (data: R) => {
        // close dialog
        this.promptAction().closeCustomDialog(custom)
    }
})

Note: The complete code has been submitted to the HarmonyOS Third-Party Library. Use the following command to install.

ohpm install @free/dialog

Calling method

// Prompt Pop-up Window 
Dialog.alert({data:"alert"})
// Middle pop-up window 
Dialog.open({data:"open"})
// Bottom pop-up window 
Dialog.sheet({data:['sheet']})
// Selector Popup Window 
Dialog.picker({data:['picker']})
// Phone call pop-up window 
Dialog.tel("168********")
// Input box popup window 
Dialog.input({data:"input"})
// Time Selection Dialog Box 
Dialog.time({data:new Date()})
// Date selection dialog box 
Dialog.date({data:new Date()})
// Calendar Selection Dialog Box 
Dialog.calendar({data:new Date()})
// Custom Pop-up Window 
Dialog.custom(wrap, params)

If you like this content, please give a little heart!

Reasons:
  • RegEx Blacklisted phrase (2.5): please give
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @builder
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user30867031

79684152

Date: 2025-06-30 01:05:08
Score: 6.5
Natty: 5.5
Report link

for some reason if i have 2 email with with similar subject (i.e email 1 with Subject= #general" & email 2 with subject= #enterprise-general"), the apps Script take the 2 subjects and insert them in the sheet "#general". Is there a way to insert it when is the exact subject into the code? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Is there a way
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user30925303

79684150

Date: 2025-06-30 01:04:07
Score: 1
Natty:
Report link

Since Angular 20 doesn't have a script with @NgModule, you can just import the RouterModule per component like so:

import { Component } from '@angular/core';
import { RouterModule } from '@angular/router';

@Component({
  selector: 'navbar',
  imports: [RouterModule],
  templateUrl: './navbar.html',
  styleUrl: './navbar.scss'
})

export class Navbar {

}

That fixed the error of "Can't bind to 'routerLink' since it isn't a known property of 'a'"

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

79684148

Date: 2025-06-30 00:51:05
Score: 2.5
Natty:
Report link

Here's a fast rolling median implementation that I wrote.

Some people seem to like it:

"We are aware of only one general-purpose median filter implementation that consistently outperforms R: an open source C implementation by AShelly"

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (2):
  • No code block (0.5):
  • High reputation (-2):
Posted by: AShelly

79684129

Date: 2025-06-29 23:52:53
Score: 1
Natty:
Report link

We saw this error periodically when our Varnish cache was full. Increase the size of the cache fixed it.

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

79684128

Date: 2025-06-29 23:51:53
Score: 2.5
Natty:
Report link

The codeless environment is terrible at doing anything like looping, you can't nest loops for example. I ended up grouping my results into sets of 25, and having a separate zap for each page.

In my data I needed a column with section + page number, section name being the dynamic element and the page number hard coded in, an awful solution but fortunately a working one at least. Fortunately two pages were sufficient.

Both zaps respond to the same (sub-item added) event and fire simultaneously, I can now add 41 subitems in one go.

Finally, I'm new to Monday so I'm sure there are lots of tricks that I have yet to pick up on. A lot of the concepts of how it organise my projects haven't been explained, I just jumped it (had to...) and self taught by playing. A more experienced user might not have quite so fraught experience.

With some equally ugly work arounds it could be possible that looping might be avoidable. My one thought would be to use prepopulated template items with subitems already in place. This lacks flexibility though so is probably only useful in very static environments.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RogerB

79684127

Date: 2025-06-29 23:42:51
Score: 3.5
Natty:
Report link

I faced a similar issue while following this VS Code Tutorial of Using GCC with MinGW.

When Clicked on "Run C/C++ file", it threw me the following error:

Executing task: C/C++: g++.exe build active file 
Starting build...
cmd /c chcp 65001>nul && C:\msys64\ucrt64\bin\g++.exe -fdiagnostics-color=always -g "C:\Users\Joy\Documents\VS CODE\programmes\helloworld.cpp" -o "C:\Users\Joy\Documents\VS CODE\programmes\helloworld.exe"
Build finished with error(s).
 *  The terminal process failed to launch (exit code: -1). 
 *  Terminal will be reused by tasks, press any key to close it. 

Also, there was this following pop - up error:
enter image description here

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

Here is my source code:

#include <iostream>
#include <vector>
#include <string>

using namespace std;

int main()
{
    vector<string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!"};

    for (const string& word : msg)
    {
        cout << word << " ";
    }
    cout << endl;
}

My USER Path Variables has- C:\msys64\ucrt64\bin

When I pass where g++ in my command prompt, i get C:\msys64\ucrt64\bin\g++.exe

Even I made sure it was EXACTLY how VS Code website said to do it. I have even uninstalled both MSYS2 and VS Code and then reinstalled them. But still, I am not encountering this error. Please help!

Reasons:
  • Blacklisted phrase (1): enter image description here
  • RegEx Blacklisted phrase (3): Please help
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Joy Khandelwal

79684117

Date: 2025-06-29 23:24:47
Score: 4
Natty:
Report link

I can confirm @Kevinoid's suggestion works. What also works is prefixing "%h" instead of or replacing $HOME in the path of file/directory in systemd unit files.

see URL: https://bbs.archlinux.org/viewtopic.php?id=297777

"%h"equivalent to "$HOME", so can make work without /bin/bash -c 'exec part

Both work for me.

Cheers.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Kevinoid's
  • Low reputation (1):
Posted by: TheWickerman666

79684105

Date: 2025-06-29 23:02:42
Score: 3.5
Natty:
Report link

i got these error because of the exist of pages and app in src

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

79684103

Date: 2025-06-29 22:52:40
Score: 2.5
Natty:
Report link

This site can’t be reached

localhost refused to connect.

Try:

ERR_CONNECTION_REFUSED

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

79684097

Date: 2025-06-29 22:43:38
Score: 1
Natty:
Report link

The following worked for me,
Apache Spark 3.5.5 is compatible with Python 3.8 to 3.11 (Python 3.11.9 is recommended). Also make sure to add PYSPARK_PYTHON=python as an env variable.

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

79684089

Date: 2025-06-29 22:27:35
Score: 3
Natty:
Report link

Verify if variabile TWO_TASK is set

If it is set, reset it

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