79081107

Date: 2024-10-12 13:39:45
Score: 3.5
Natty:
Report link

I'd just like to add to what @Christoph suggested, because for some reason just using DIRS = $(wildcard */) did NOT work for me, so I ended up having to do $ROOT_DIR = ./ & then substituting that to do $DIRS = $(wildcard $(ROOT_DIT)*/)$ which gave me the appropriate output of the sub-folders/files

Reasons:
  • Blacklisted phrase (1): did NOT work
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Christoph
  • Single line (0.5):
  • Low reputation (1):
Posted by: FJ W

79081102

Date: 2024-10-12 13:38:44
Score: 1
Natty:
Report link

Just use the

`
var string = `<script> 
 var firstValue = " hello "; 
 var secondValue = "  bye "; 
 var thirdValue = " crazy "; 
 var forthValue = " night "; 
 </script> ";`

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

79081082

Date: 2024-10-12 13:27:43
Score: 2
Natty:
Report link

JavaScript input value will return string if you do var x = document.getElementById('demo').value; document.write(typeof(x));

will return string, to convert the value of x to number parseFloat(x); document.write(typeof(x)); This will return Number.

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

79081073

Date: 2024-10-12 13:22:41
Score: 0.5
Natty:
Report link

There is an APDU command just for that: PUT KEY

You can read up all the details in the GlobalPlatform Card Specification, https://globalplatform.org/specs-library/

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

79081061

Date: 2024-10-12 13:12:39
Score: 1
Natty:
Report link

The {STRING}.split method takes a {CHARACTER} and not a {STRING} as argument. The documentation here

So, the split call should be like:

line.split(',')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Louis M

79081055

Date: 2024-10-12 13:09:38
Score: 5
Natty: 6
Report link

What about if there are foreign keys in the table?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): What
Posted by: Darryl Wilson

79081049

Date: 2024-10-12 13:05:36
Score: 8 🚩
Natty: 4
Report link

Did you ever resolve this issue? I have the same situation. I can connect to the same RDS database from localhost but when deployed to Amplify, the app doesn't connect to database. I am using Next.js and develop it locally.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever resolve this
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • 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: SreeV

79081048

Date: 2024-10-12 13:04:36
Score: 1
Natty:
Report link

Just drop the GROUP BY clause and [Plan Code] column from your query. It works. tested on my machine.

SELECT COUNT(*) AS 'How Many' 
FROM Raw 
WHERE [Plan Code] LIKE '%01%' 

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Abu Ben Reaz

79081047

Date: 2024-10-12 13:03:35
Score: 2.5
Natty:
Report link

PHP is a "Shared Nothing Architecture", singletons don't persist across HTTP requests since the app is booted fresh on every request.

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

79081046

Date: 2024-10-12 13:03:35
Score: 6.5 🚩
Natty:
Report link

عدل على التنسيق الشرطى


عدل على التنسيق الشرطى

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: ahmed al sheikh

79081044

Date: 2024-10-12 13:03:35
Score: 2
Natty:
Report link

What about this:

var text = "CanCallGet()";
var temp = text.Split("CanCall");
var result = "CanCall" + "_" + temp[1];
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Lyubomir Lalov

79081040

Date: 2024-10-12 13:01:34
Score: 2.5
Natty:
Report link

1- remove br tags. 2- in parent of table tag (here left teg) use display: flex; and use of margin and padding instead of br

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

79081038

Date: 2024-10-12 12:59:33
Score: 2
Natty:
Report link

I've just created a simplified TypeScript implementation of PriorityQueue ported from .NET. Might work for you. https://github.com/VasilyIvanov/priority-queue/blob/master/src/app/priority-queue.ts

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

79081037

Date: 2024-10-12 12:57:33
Score: 1
Natty:
Report link

This worked in my mobile Chrome

<input type="date">   

CSS:

input[type="date"] {
    -webkit-appearance: none;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jun

79081007

Date: 2024-10-12 12:42:30
Score: 4
Natty:
Report link

Try to run like that?

npx cucumber-js

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Peter Lukić

79081006

Date: 2024-10-12 12:41:29
Score: 1
Natty:
Report link

Found a more compact solution

const output = value.map((v, index) => {return {...v, ...list[index]}})

the ... modifier strips objects of their outer brackets so like so:

key:value == ...{key:value}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sato

79081004

Date: 2024-10-12 12:40:29
Score: 0.5
Natty:
Report link

Update the babel.config.js like below:

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: ['react-native-reanimated/plugin']
};

and then run:

npm start -- --reset-cache

Running the above command is very important. This solved my issue.

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

79081003

Date: 2024-10-12 12:40:29
Score: 1
Natty:
Report link

There are many ways to do it. One is through script, which is already shared in an answer on this post, and another is through UI by adding another component, "Event Trigger", to the game object you have a button component on and then add new event type which will be "PointerDown" and then you can pass the reference if the script and call the Jump method. Sharing the steps with pictures below.

Step 1 Step 2

And you can also remove the button component if you don't want to show the highlighting of the button. It will work fine with just the "Event Trigger" component along with the image component.

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

79080982

Date: 2024-10-12 12:26:26
Score: 0.5
Natty:
Report link

Sorry for the late answer.

It happens because results of even very basic operations such as matrix multiplication depend on input matrices size and when you are using KV-caching you change the matrix shape (for instance, in attention block). And the models were not trained with accordance to rounding errors caused by using different matrix sizes.

This issue has been discussed in huggingface github repo: https://github.com/huggingface/transformers/issues/25420#issuecomment-1775317535

Using KV caches, assisted generation, left-padding, and batching will change the logits. This happens in most, if not all models at all precisions, but it is almost imperceptible in FP32. With 16 bits, the difference becomes non-negligible. The model was not trained with KV caches or left-padding, so this is introducing a distribution shift -- it’s part of the cost of using a lower precision and other related optimizations. The effect is more visible when do_sample=True, as greedy decoding (do_sample=False) often selects the same token despite the differences.

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

79080974

Date: 2024-10-12 12:22:25
Score: 4.5
Natty: 6
Report link

I am also doing the same course and stuck in the chapter 32 (Displaying notes in notes view). Did you complete the course? I need some guiding please. My notes view is empty and I am lost

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1): I need some guiding please
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Dev I

79080973

Date: 2024-10-12 12:22:25
Score: 4
Natty:
Report link

Samia, I think you have it backwards.

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

79080966

Date: 2024-10-12 12:15:24
Score: 3
Natty:
Report link

The HttpClient has different headers compared to others. For example, the User-Agent header will be empty, which might cause some errors.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: T.M.Q

79080961

Date: 2024-10-12 12:14:23
Score: 2
Natty:
Report link

SELECT DISTINCT a.name FROM actor a JOIN casting c ON a.id = c.actorid WHERE c.movieid IN ( SELECT movieid FROM casting WHERE actorid = (SELECT id FROM actor WHERE name = 'Art Garfunkel') ) AND a.name != 'Art Garfunkel';

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

79080956

Date: 2024-10-12 12:11:23
Score: 2.5
Natty:
Report link

So it seems that it is not possible with current webpack (5.95.0). According to the source in webpack/lib/javascript/JavascriptModulesPlugin.js Line 873+, an IIFE will always be set if I use more than 1 entry point (which in turn is needed to get all my source files in. Not using the import magic.) There is no config option to overwrite this and patching webpack is not an option. So using custom scripts to to 33% of webpack's job (combining the tsc output), I can let the scripts do 100% of the work and I get rid of webpack and back to stupid task runners :(

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

79080955

Date: 2024-10-12 12:10:23
Score: 2.5
Natty:
Report link

may this code helps you in PHP:

openssl_sign($yourInputString,$signature,$params['privateKey'],OPENSSL_ALGO_SHA256); $signature = base64_encode($signature);

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

79080952

Date: 2024-10-12 12:08:22
Score: 1
Natty:
Report link

You can add the vm flags -Dorg.codehaus.janino.source_debugging.enable=true or -Dcalcite.debug=true.

Janino will create temporary files in the system’s default location for temporary files, such as /tmp on Unix-based systems.

Refer to the documentation: https://calcite.apache.org/docs/howto.html

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

79080943

Date: 2024-10-12 11:59:21
Score: 0.5
Natty:
Report link

Delete tqdm and tqdm-4.11.2.dist-info folders from /usr/lib/dist-packages/pythonx.x or /usr/lib/pythonx.x where x.x is your latest used version.

then run : pip install tqdm --ignore-installed

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

79080934

Date: 2024-10-12 11:54:20
Score: 0.5
Natty:
Report link

add this to your build.grade (android)

subprojects {
    afterEvaluate { project ->
        if (project.hasProperty('android')) {
            project.android {
                if (namespace == null) {
                    namespace project.group
                }
            }
        }
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lewin Muzvonda

79080927

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

You can not use a variable defined in one of the subroutines since it is not defined in the other

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

79080923

Date: 2024-10-12 11:47:18
Score: 1
Natty:
Report link

I followed these steps and it works for me:

  1. Copy Dropbox link of CSS file
  2. Changed dl=0 to raw=1
  3. Followed the way of @Mordecai to change www. to dl.

It will look like this:

<link rel="stylesheet"
href="https://dl.dropbox.com/scl/fi/xxx/styles.css?rlkey=xxx&raw=1">
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Mordecai
  • Low reputation (1):
Posted by: yupn

79080920

Date: 2024-10-12 11:44:18
Score: 0.5
Natty:
Report link

This is the known error when using python 3.13.

a related GitHub issue on spacy/explosion https://github.com/explosion/spaCy/issues/13658

I am also getting the exact same error on python 3.13.

For now please use python 3.12 until this is fixed.

pip install -U spacy
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am also getting the exact same error
  • High reputation (-2):
Posted by: Free Palestine

79080919

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

You should initialise the variable named timefloat=0, which will be a global variable.

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

79080910

Date: 2024-10-12 11:36:16
Score: 8.5
Natty: 8
Report link

Could you please share your working code?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please share your
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bayzi

79080904

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

instead of input.float, Use input.price() for draggable horizantal lines and input.time for vertical lines.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TOLGA GÜLCAN

79080901

Date: 2024-10-12 11:33:15
Score: 9.5 🚩
Natty:
Report link

HAHAHAHAHAHHAAHHAHAHAHAHHAHAHAHAHAH

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low entropy (1):
  • Low reputation (1):
Posted by: wee

79080890

Date: 2024-10-12 11:27:13
Score: 3
Natty:
Report link

Had the same issue, just try implementing the same architecture with Functional API and it'll work.

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

79080883

Date: 2024-10-12 11:24:12
Score: 4.5
Natty: 6
Report link

File-Settings-Build - [1]: https://i.sstatic.net/g5EBaQIz.png**here**

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (0.5):
Posted by: Stanislav

79080878

Date: 2024-10-12 11:18:11
Score: 1
Natty:
Report link

You can convert any valid integer type using std::string::c_str(), which is compatible with PCSTR.
std::string(DEFAULT_PORT).c_str() is the easiest way to do it, but you need to make sure to have the string header included: #include <string>

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

79080867

Date: 2024-10-12 11:12:09
Score: 2.5
Natty:
Report link

function useSearchParams() actually it works correctly. Because this function runs on the client, you should set a log and then go to the browser to see the parameter changes. If you look in the console, it won't print

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

79080865

Date: 2024-10-12 11:11:09
Score: 1
Natty:
Report link

I have found a solution with this template :

Value VPLS (\d+)
Value VPLS_NAME (\S+)
Value Required SAP_LAG (lag-50:1923\.(6|7)\d+)
Value List SDP (\d+)

Start
 ^\s+vpls\s${VPLS}\sname\s${VPLS_NAME}\scustomer\s\d+\screate
 ^\s+sap\s+${SAP_LAG}\s+split-horizon-group\s+"SPLIT_HORIZON"\s+create -> Meshsdp

Meshsdp
 ^\s+mesh-sdp\s${SDP}:\d+\screate
 ^\s{12}exit -> Meshsdp
 ^\s{8}exit -> Continue.Record
 ^\s+vpls\s${VPLS}\sname\s${VPLS_NAME}\scustomer\s\d+\screate -> Start
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: finopat

79080864

Date: 2024-10-12 11:11:09
Score: 2
Natty:
Report link

The CTE table only exists for the first DELETE and is no longer available for the second. You should use a #TempTable or @VariableTable to collect deleted EmpIds. After that, you can use that table for joining and deleting rows that match with EmpIds.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @VariableTable
  • Single line (0.5):
  • Low reputation (1):
Posted by: T.M.Q

79080860

Date: 2024-10-12 11:09:08
Score: 3
Natty:
Report link

Perhaps you should consider to make a @SpringBootTest with a local dynamodb if you want to rely on @MockBean and Spring injection.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @MockBean
  • Single line (0.5):
  • Low reputation (1):
Posted by: gdevy

79080849

Date: 2024-10-12 11:02:07
Score: 2
Natty:
Report link

Figured out the problem. We had no control over creating the function and we found out that they had set it to .NET8 isolated worker, instead of .NET6 In-process.

Had to rewrite the code to .NET8 isolated, then it were able to run successfully.

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

79080848

Date: 2024-10-12 11:01:06
Score: 2
Natty:
Report link

As jquery is a library based on js.

There are things u dont need jquery for and u can save jquery load time.

You can have a look at https://youmightnotneedjquery.com/

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

79080829

Date: 2024-10-12 10:47:03
Score: 7 🚩
Natty: 5.5
Report link

Have you got solution? I also facing same error but First time my connection was ok and I was setup and live my project perfectly. Then I close my terminal and pc and try another time but not working.

Reasons:
  • Blacklisted phrase (1): but not working
  • RegEx Blacklisted phrase (1): I also facing same error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I also facing same error
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Masud Rana

79080825

Date: 2024-10-12 10:45:02
Score: 1.5
Natty:
Report link

Didn't find the description of the root-cause. The workable workaround happened to be push to remote branches in bundles, followed by git push --mirror:

git clone --mirror github.myorg.com/EXAMPLE-USER/REPOSITORY.git 
git remote add ssh_mirror github.myorg.com/EXAMPLE-USER/NEW-REPOSITORY.git git push ssh_mirror refs/heads/archive/2024/A* 
git push ssh_mirror refs/heads/archive/2024/B* 
.... 
git push ssh_mirror refs/heads/archive/2024/z* 
git push --mirror ssh_mirror 
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Did
  • Low reputation (1):
Posted by: vova25

79080823

Date: 2024-10-12 10:42:01
Score: 1
Natty:
Report link

This error often occurs due to a mismatch in the protocol used for API endpoints. For instance, if your backend server is running on http (e.g., http://localhost:5000/[YOUR_Endpoint]), but you mistakenly use https in your API endpoint (e.g., https://localhost:5000/[YOUR_Endpoint]), you are likely to encounter the Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR error.

To resolve this, ensure that the protocol (http or https) in your API requests matches the one your server is configured to use. If your server is not set up with SSL/TLS, make sure your requests use http instead of https.

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

79080810

Date: 2024-10-12 10:35:00
Score: 0.5
Natty:
Report link

You can publish them using php artisan vendor:publish --tag=laravel-errors. But I'll suggest you to use your custom view instead of modifying default views. Please refer to the official docs.

To create your custom error view create a new file with the error code like resources/views/errors/419.blade.php

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

79080800

Date: 2024-10-12 10:31:59
Score: 2
Natty:
Report link

how about

import re
sentence = "We eat, Granny"
re.split(r'[\s,]+', sentence)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): how
  • Low reputation (0.5):
Posted by: user5417363

79080798

Date: 2024-10-12 10:29:58
Score: 0.5
Natty:
Report link

The simplest solution will be:

const path = require("path");
const imageUrl = path.relative(__dirname, req.file.path);

With the help of pathh.relative pre-built function you will be able to extract the relative path easily.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Med Oussema Zaier

79080795

Date: 2024-10-12 10:28:58
Score: 3
Natty:
Report link

The corresponding Protobuf Java Version will be written at the top of the Java or Kotlin file generated by protoc, just use it

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

79080793

Date: 2024-10-12 10:26:58
Score: 0.5
Natty:
Report link

I know I could test "Does this string have an extension?" with an if-statement, then if it does have an extension I can use ${var:e}

You can do that without the if-statement like this:

${${var:e}:+.$var:e}

If the string resulting from the expansion of $var:e isn't empty, substitute .$var:e. This uses the ${name:+word} expansion (man zshexpn says "If name is … non-null, then substitute word; otherwise substitute nothing.") at the second layer of a nested expansion.

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

79080778

Date: 2024-10-12 10:19:56
Score: 1.5
Natty:
Report link

I tried the approach from @Aidin:

class Example<
    T extends (string extends T ? never : string),
> {}

Which gave me this error:

Type parameter 'T' has a circular constraint.ts(2313)

This fixed it for me:

class Example<
  T extends string & (string extends T ? never : unknown)
> {}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Aidin
  • Low reputation (0.5):
Posted by: Janek Eilts

79080777

Date: 2024-10-12 10:18:56
Score: 1
Natty:
Report link

For PySpark, You can use quinn which implemented a sort_column functions that support ordering both nested Struct and Array(Struct) fields. The implementation was originally inspired by @pault answer.

For Scala Spark, spark-daria sortColumnsBy which also support ordering nested Struct and Array(Struct). The scala API is a bit more flexible as it gives you ability to write your custom Ordering

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • No code block (0.5):
  • User mentioned (1): @pault
  • Low reputation (1):
Posted by: Tuan Pham

79080773

Date: 2024-10-12 10:17:55
Score: 4
Natty:
Report link

To address all this scenario i had implemented latest github repo Repo using Blazor UI or direct .cs link at GraphService

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

79080772

Date: 2024-10-12 10:16:54
Score: 7 🚩
Natty:
Report link

Is it necessary to find a solution in this table? If it is allowed, can we rely on the second table to solve it?

Reasons:
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: zd h

79080770

Date: 2024-10-12 10:16:54
Score: 1
Natty:
Report link

Reply to @JeffMiller's comment of 1st answer; If anyone is still running into that unexpected "filtered" situation

DONT

HttpClient httpClient = HttpClient.create();
httpClient.config1();
httpClient.config2();
httpClient.**wiretap**(..);

DO this instead

HttpClient httpClient = HttpClient.create()
    .config1();
    .**wiretap**("AnyLoggerNameWillBeOK"); // just remember to adjust the real log level

or you can also DO this

HttpClient httpClient = HttpClient.create(pooled);
httpClient = httpClient.config1(..);
httpClient = httpClient.wiretap(..);

The real reason behind this is the method: reactor.netty.transport.Transport#duplicate

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JeffMiller's
  • Low reputation (1):
Posted by: Xiaoye.Y

79080769

Date: 2024-10-12 10:15:54
Score: 0.5
Natty:
Report link

You might want to use Thread.currentThread().getContextClassLoader():

public static void dummymethod(String file1, String file2) {
  try (InputStream xsdStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(file1)) {
     // do something with file2
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrey Smelik

79080768

Date: 2024-10-12 10:14:54
Score: 1
Natty:
Report link

this is how i did using for each loop

buttons.forEach((button) => { 
button.addEventListener("click", () => {
    console.log("box was clicked"); //simply making print box was clicked each time user clicks it 
    if (turnO){
        button.innerText = ("O")// if first time a button is clicked it will show O
        turnO = false; // after player O has taken a turn it will then become false 
    } else 
    button.innerText = ("X")
    turnO = true;
});
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27764150

79080761

Date: 2024-10-12 10:10:53
Score: 0.5
Natty:
Report link

Yes, the idea about EXIF is very logical. You can try to forcefully use EXIF data via:

$image->orientate();

But check that the required php extension is installed

php -m | grep exif

if not, than

sudo apt-get install php-exif
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: vodevel

79080750

Date: 2024-10-12 10:05:52
Score: 1.5
Natty:
Report link

If you're looking for a native DatePicker that supports nullable, check this package https://www.nuget.org/packages/NPicker It was created based on the source code of .NET MAUI and fixes the non-nullable issue of that built-in control still has. Full support for Windows, Android, iOS and MacOS

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

79080747

Date: 2024-10-12 10:04:52
Score: 3
Natty:
Report link

dont copy the node_modules but rather npm ci

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mohammad ARZ

79080707

Date: 2024-10-12 09:49:49
Score: 2.5
Natty:
Report link

just run bunx eslint "src/**/*.{js,jsx,ts,tsx}"

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

79080700

Date: 2024-10-12 09:46:48
Score: 1.5
Natty:
Report link

Mark src as Sources Root: Right-click on the src folder, select Mark Directory as → Sources Root.

Check Run Configuration: Go to the run configuration dropdown, select Edit Configurations, and ensure Main class is set to CWA_01_INTRO.

Rebuild the Project: Go to Build → Rebuild Project.

Check Output Path: In File → Project Structure, verify the output path is correct.

Invalidate Caches: Go to File → Invalidate Caches / Restart, and choose Invalidate and Restart.

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

79080688

Date: 2024-10-12 09:42:47
Score: 1.5
Natty:
Report link

sudo will always prompt for a password, In most cases the prompt would be invisible, where you just type your password and press enter without seeing what characters you've actually typed.

Due to the fact that you've added no screenshots and no code, im assuming that: VSCode is prompting you for a password

I have no idea of the way you are running your program, however if you are running it from the terminal, Try entering your root password and pressing enter

Good luck!

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

79080684

Date: 2024-10-12 09:36:46
Score: 2.5
Natty:
Report link

I would like to add that the change path for the version "Android Studio Ladybug | 2024.2.1" is: "File > Settings>Build, Execution, Deployment >Build Tools >Gradle >General Settings>Gradle user home."

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

79080677

Date: 2024-10-12 09:32:46
Score: 2.5
Natty:
Report link

Issue you are facing is quite common with RabbitMQ deployment, we found a workaround i.e., create a new RabbitMQ virtual host (vhost) via admin page and give your RabbitMQ user complete rights to that new vhost. From your code, access RabbitMQ/vhost and create queues

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

79080674

Date: 2024-10-12 09:31:45
Score: 0.5
Natty:
Report link

If you use tailwind css apply to your overlay parent overscroll-contain

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

79080672

Date: 2024-10-12 09:27:45
Score: 10
Natty: 7.5
Report link

Have you managed to resolve this issue?

I have encountered the same problem trying to install Oracle 19c on RHEL 9.4

Appreciate any help or advice I can get

Regards, Santosh

Reasons:
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (1): any help
  • Blacklisted phrase (3): Have you managed
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Santosh Heranjal

79080671

Date: 2024-10-12 09:27:44
Score: 3
Natty:
Report link

Replace Vivo y20 with another test device Asus Max M1, the issue can not be duplicated.

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

79080669

Date: 2024-10-12 09:26:44
Score: 4
Natty: 4.5
Report link

please use hypercorn ! I have stack in this problem 2days! https://blog.csdn.net/gitblog_00116/article/details/141153910

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

79080668

Date: 2024-10-12 09:25:43
Score: 3
Natty:
Report link

Shortest possible code is:

.banner a { color: red; }

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

79080667

Date: 2024-10-12 09:25:43
Score: 0.5
Natty:
Report link
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Satyam

79080664

Date: 2024-10-12 09:22:43
Score: 3
Natty:
Report link

I second the direction issue with rtl langauges that @nimi mentioned.

I am just blown away by the lack of attention by the samsung team, if not for nimi's comment, I would never in a million years think to put my ip in backwards. Oh my god...

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

79080655

Date: 2024-10-12 09:19:42
Score: 2
Natty:
Report link

Ran into the same problem. The trick is to add the safe directory system-wide:

git config --system --add safe.directory <path/to/directory>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Dimitri

79080652

Date: 2024-10-12 09:17:41
Score: 1
Natty:
Report link

scientific notation for significant figures has been included as a function in numpy version 1.21.0. as of 18.08.2024:

import numpy as np
float(np.format_float_scientific(12.3456789, precision=4))

https://numpy.org/doc/stable/reference/generated/numpy.format_float_scientific.html

I think that makes most of the other answers redundant.

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

79080651

Date: 2024-10-12 09:17:41
Score: 3
Natty:
Report link

I used Import flat file wizard Import as csv file

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

79080649

Date: 2024-10-12 09:16:41
Score: 1
Natty:
Report link
CompilerInstance comp_inst;
comp_inst.createDiagnostics();
comp_inst.getDiagnostics().setSuppressAllDiagnostics( 1 );
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Zohar Levi

79080636

Date: 2024-10-12 09:12:40
Score: 3.5
Natty:
Report link

Re-adding the event listener creates a new function instance each time, causing Chrome to treat each as a separate listener, even though the function name is the same.

Why the same function adds and removes the listener at the same time? Shouldn't some other click remove the listener in another trigger?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: noobmaster69

79080635

Date: 2024-10-12 09:12:40
Score: 1.5
Natty:
Report link

If you want to correctly convert a timestamp into an input value, then do the following:

<?= date('Y-m-d', 1730332800); ?>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: woody180

79080629

Date: 2024-10-12 09:10:40
Score: 1
Natty:
Report link

Earlier provided solution is returning [7, 6, 3, 8, 9] whereas expected is [9, 7, 6, 3, 8]. Seems like logic is not working well. Here is the correct working code:

def solution(A, K):
K = (K % len(A))
return A[len(A) - K:] + A[:len(A) - K]
pass

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ashish Jain

79080627

Date: 2024-10-12 09:07:39
Score: 0.5
Natty:
Report link

If PHP is inside a Docker container, then composer commands should also be run inside the container.

You can also try to execute commands inside the container in the root directory of the symfony project.

php bin/console cache:clear

composer dump-autoload -o
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: vodevel

79080619

Date: 2024-10-12 09:04:39
Score: 0.5
Natty:
Report link

I think I should answer this question, quite late btw!

So, say if you are performing PCA on a dataset, which is a dimensionality reduction algorithm. And I have 100 datapoint into d-dimensional space. Just forget any training/testing thing for now. What would I do to those d-dimensional pts? I would find a line, an eigen vector, which could capture the maximum variance of those points if they are projected on that vector, it is PC. You now have a PC. Then you picks a random data point, you projects that projected point on PC, you reduced dimension of that data-point, then you trains your algo using that point and you may also save some space. Then you tries to find how much information you have lost? So you say, "well I can reconstruct that projected point", you do so, surprisingly the point you get is almost same as you had before projecting. Why so, should not it differ a lot? The reason is you included that point while making your covariance matrix. So, you comes to an idea, let's keep some points out while finding that PC. We say that in general, test data. So you did all that again and found a PC. NOW, you picks a point from test data, say t_pt, to get an idea of how much information I may lose if I uses that PC.

Step 1: We projected that point on PC, the point went from d to some c dimension.
Step 2: Then reconstruct that c-dimension point to d-dimension.

Now that new d-dimensional point should differ from the t_pt.

"how can I train on one dataset and test on another dataset?", and the answer is you uses that model, PC in our example, for prediction, but your data point may lie outside the training, but should have same number of features. You have a line!

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: MohitKumar020291

79080615

Date: 2024-10-12 09:02:38
Score: 2
Natty:
Report link

The "2 clicks" is a problem; try capturing the points on "down and up" instead:

  1. Handle "PointerPressed" / Mouse down event; capture first point
  2. Handle PointerMoved / MouseMoved event, if necessary
  3. Handle "PointerReleased" / Mouse up event; capture 2nd point; draw line.

(Tap line to delete?)

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

79080606

Date: 2024-10-12 08:56:37
Score: 3.5
Natty:
Report link

debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia; // comment it

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

79080585

Date: 2024-10-12 08:46:35
Score: 2.5
Natty:
Report link

Your URL probably contains the bucket name. Remove the bucket name from the URL when using the custom domain and it'll work.

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

79080573

Date: 2024-10-12 08:45:34
Score: 1.5
Natty:
Report link

If you're looking for a NATIVE DatePicker that supports nullable, check this package https://www.nuget.org/packages/NPicker It was created based on the source code of .NET MAUI and fixes the non-nullable issue of that built-in control still has. Full support for Windows, Android, iOS and MacOS

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

79080572

Date: 2024-10-12 08:45:34
Score: 1
Natty:
Report link

There is now a module for ESP32 that allows communicating with OV7670 and OV2640 cameras. See https://github.com/cnadler86/mp_camera/

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

79080534

Date: 2024-10-12 08:41:33
Score: 3.5
Natty:
Report link

WebView2 is part of Microsoft Edge, which source code can be searched in https://thirdpartysource.microsoft.com/

Source: https://github.com/MicrosoftEdge/WebView2Feedback/issues/2950

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

79080531

Date: 2024-10-12 08:40:33
Score: 2.5
Natty:
Report link

I faced this error when I try to open a pickle file. Initially I try to open with 'r' method it throws me the error. then I try to open with 'rb' method, my file opens and my code executes

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

79080502

Date: 2024-10-12 08:23:30
Score: 2
Natty:
Report link

Note that there is a high-level API for the ESP32 RMT peripheral in esp-idf. So you might not need to fiddle with memory mapped registers, at least for that purpose. See https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/peripherals/rmt.html

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

79080497

Date: 2024-10-12 08:21:30
Score: 1
Natty:
Report link

You can add a gap attribute. This will give you the look you want. The following code shows how to add it.

main {
  background-color: lightpink;
  text-align: center;
  display: flex;
  margin: 10%;
  padding: 20px;
  gap:50px;
} 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mustafa

79080492

Date: 2024-10-12 08:18:29
Score: 3.5
Natty:
Report link

What is the result of this code for you?

return Http::withHeaders($this->getHeaders())
            ->get($this->baseUrl . '/images')
            ->collect("images")
            ->where("name", "ubuntu-22.04");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): What is the
  • Low reputation (1):
Posted by: Milwad Khosravi

79080485

Date: 2024-10-12 08:15:28
Score: 1
Natty:
Report link

As you stated, IP has 20 bytes of overhead, UDP has 8 bytes of overhead making it 28, additionally you have your 8 bytes payload, making every packet 20+8+8 = 36 bytes if we stop at IP level.

If you have 10K pck/s then it will be 36 bytes/pck * 10000 pck/s = 36000 bytes/s

36000/1024 is about 350, so 350 kbytes/s. Not too far off I'd say.

Also, I don't know if the system network monitor considers the IP overhead or not in its calculation, but if we were to remove the IP overhead you would still get 28000 bytes/s which would mean 273 kbytes/s. So in any case i'd say what you see on your end is expected.

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

79080482

Date: 2024-10-12 08:14:28
Score: 0.5
Natty:
Report link
// Check if the "mobile" word exists in User-Agent 
$isMob = is_numeric(strpos(strtolower($_SERVER["HTTP_USER_AGENT"]), "mobile")); 
 
if($isMob){ 
    echo 'Using Mobile Device...'; 
}else{ 
    echo 'Using Desktop...'; 
}

Just test, It's working well

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

79080471

Date: 2024-10-12 08:08:26
Score: 1.5
Natty:
Report link

Try this Package https://www.nuget.org/packages/NPicker it's supports nullable Date? values. It was created based on the same source code of .NET MAUI and fixes the non-nullable issue of that built-in control.

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Eder Cardoso

79080465

Date: 2024-10-12 08:04:25
Score: 3.5
Natty:
Report link

Image of the error that I got

I got the error too, what fixed it for me was updating flutter.

flutter channel stable flutter upgrade https://docs.flutter.dev/release/upgrade

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

79080463

Date: 2024-10-12 08:03:25
Score: 1
Natty:
Report link

You can just remove the flag from makepanda/makepanda.py. Or check out the latest version of the panda3d source, where it has been removed.

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

79080439

Date: 2024-10-12 07:53:22
Score: 0.5
Natty:
Report link

This is the known error when using python 3.13.

a related GitHub issue on spacy/explosion : https://github.com/explosion/spaCy/issues/13658

I am also getting the exact same error on python 3.13.

For now please use python 3.12 until this is fixed.

pip install -U spacy
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am also getting the exact same error
  • High reputation (-2):
Posted by: Free Palestine

79080424

Date: 2024-10-12 07:44:21
Score: 2.5
Natty:
Report link

If you use pro Win meeting "Builder err" problem either like me, you can try my way. This problem has been resolved after I changing builder. Change Builder

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