79165078

Date: 2024-11-07 05:09:48
Score: 2
Natty:
Report link
change  the function return type
public funciton phpDemo():void{
//
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hemil

79165076

Date: 2024-11-07 05:09:48
Score: 10.5
Natty: 7.5
Report link

Im facing the same issue, have you found the solution for this?

Reasons:
  • RegEx Blacklisted phrase (2.5): have you found the solution for this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jonas

79165075

Date: 2024-11-07 05:08:48
Score: 1
Natty:
Report link

Using od:

echo "[$(echo -n "hey" | od -An -tu1 | awk -v OFS=', ' '{$1=$1;print}')]"

will print

[104, 101, 121]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Akhil

79165061

Date: 2024-11-07 04:59:46
Score: 1
Natty:
Report link

You can also add importProvidersFrom([BrowserAnimationsModule]) in appConfig and load bootstrapApplication along with appConfig,

export const appConfig: ApplicationConfig = {
  providers: [
    // other providers
    importProvidersFrom([BrowserAnimationsModule])
  ]
    
};

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

79165059

Date: 2024-11-07 04:58:46
Score: 2
Natty:
Report link

You have to use d-flex for first point and flex-grow-1 to make the horizontally and vertically centered.

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap demo</title>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>

<body>
    <div class="flex flex-column vh-100">
    <header class='fixed-top d-flex justify-content-around'>
        <div class="d-flex align-items-center gap-5 justify-content-center">
            <h3 class="float-md-start mb-0">Ethan Leyden</h3>
            <nav class="nav nav-masthead justify-content-center float-md-end">
                <a class="nav-link fw-bold py-1 px-0 active" aria-current="page" href="#">Home</a>
                <a class="nav-link fw-bold py-1 px-0" href="#">Features</a>
                <a class="nav-link fw-bold py-1 px-0" href="#">Contact</a>
            </nav>
        </div>
    </header>
<div class="mx-auto flex-grow-1 d-flex justify-content-center align-items-center h-100 mt-5">
    <main class="">
        <h1>Welcome to the site</h1>
        <p class="lead">It's definitely still under construction. Do you know how to vertically center
            content with Bootstrap? I sure don't</p>
        <p class="lead">
            <a href="#" class="btn btn-lg btn-light fw-bold border-white bg-white">Learn more</a>
        </p>
    </main>
</div>
    <div class="mx-auto my-auto">
     
    </div></div>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
        crossorigin="anonymous"></script>
</body>

</html>

Reasons:
  • RegEx Blacklisted phrase (2.5): Do you know how
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Suman

79165052

Date: 2024-11-07 04:51:45
Score: 0.5
Natty:
Report link

Just like you, I wonder why there is no CommandLineToArgvA() function. Anyway, normally there should be an ANSI version for each wchart version. At last, I found the answer on Microsoft website. https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinea

"The command line returned by GetCommandLineA is a conversion of the Unicode command line to the 8-bit process code page.

For most code pages this conversion is lossy and the converted command line can differ from the Unicode command line, creating possible security issues like the following:

The conversion may alter strings intended for use as file names. For example, if the ANSI code page is Windows-1252, the Unicode character U+0100 (Latin capital letter A with macron: Ā) converts to 0x41 (the Latin capital letter A). If a user passes a file name containing the character Ā, a program that uses GetCommandLineA will receive it with the character A and operate on the wrong file. The conversion may alter how the command line is parsed. For example, if the ANSI code page is Windows-1252, the Unicode character U+FF02 (Fullwidth quotation mark: ") converts to 0x22 (the ASCII quotation mark) and the Unicode character U+2010 (Hyphen: ‐) converts to 0x2D (the ASCII minus sign). Both of these can result in command line file arguments being misinterpreted as command line options. To avoid this problem, use the GetCommandLineW function to receive the Unicode command line, or use an application manifest (on Windows Version 1903 or later) to set UTF-8 as the process code page."

The string from GetCommandLineA is a conversion of the Unicode command line to the 8-bit process code page. If we use it in CommandLineToArgvA() function, there might be a security problem. Hence, Microsoft don't want us to have CommandLineToArgvA() function. In fact, all ANSI version functions would convert ANSI strings into wchart strings under the hood of windows. When I use GetCommandLineA to get an ANSI command line, I just do it myself to reinvent the wheels to build my own function to handle it.

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

79165046

Date: 2024-11-07 04:49:44
Score: 5
Natty:
Report link

enter image description here

Police arrest -selling and making fake notes gang

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aditya Chougule

79165044

Date: 2024-11-07 04:48:43
Score: 3
Natty:
Report link

I got the same issue, seems like it is related to permissions, so try to apply the a basic Authentication enable as Anonymous too, with a service account that has full access

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

79165038

Date: 2024-11-07 04:40:42
Score: 3.5
Natty:
Report link

Dude i've been trying to figure this out for like months and i got it fixed by doing brew install mongoose

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

79165027

Date: 2024-11-07 04:34:40
Score: 3.5
Natty:
Report link

I second Anwar ul Haq. That is the correct solution for this.

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

79165024

Date: 2024-11-07 04:32:40
Score: 2
Natty:
Report link

Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more

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

79165015

Date: 2024-11-07 04:24:39
Score: 1
Natty:
Report link

Try using

page.locator('//ui-input[@label="First Name"]/descendant::input')

as

page.getByLabel('First Name').getByRole('textbox'); is not working.

If this is also not working, Can you check if there is no iframe at the top level of this form?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: HemChe

79165009

Date: 2024-11-07 04:21:38
Score: 1.5
Natty:
Report link

You can also just pull the image, and docker will use it as a cached image if you just want to test locally:

docker pull public.ecr.aws/lambda/python:3.11

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

79165008

Date: 2024-11-07 04:20:38
Score: 3
Natty:
Report link

Just Check your properties file because of some changes in code properties files also updates seems u forgot to merge in your local from remote properties file.

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

79165006

Date: 2024-11-07 04:19:38
Score: 1.5
Natty:
Report link

Maybe it will still be helpful to someone - changing the minSdkVersion from 21 to 24 helped me

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

79164990

Date: 2024-11-07 04:08:36
Score: 1.5
Natty:
Report link

Currently, the most efficient exact answer is Depth-First Graph Edit Distance (DF-GED), from An Exact Graph Edit Distance Algorithm for Solving Pattern Recognition Problems. An implementation exists in Python's networkx library.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: I'll Eat My Hat

79164985

Date: 2024-11-07 04:06:35
Score: 1.5
Natty:
Report link

Thank you! updating RVM equally worked for me. More specifically, updating with head rather than stable.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: teneeto

79164976

Date: 2024-11-07 04:01:34
Score: 2
Natty:
Report link

Try to whitelist your IP address from MongoDB Atlas. Use below steps to do it.

  1. Login to MongoDB Atlas and go to Cluster page.
  2. Click on Network Access -> Add IP Address -> Add current IP Address.
  3. Alternatively, to allow access from any IP and save changes. ( Enter 0.0.0.0/0 as the IP address )
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tharuka Deshan

79164973

Date: 2024-11-07 04:01:34
Score: 3.5
Natty:
Report link

i don't know asmdasdjm'alskdjalskdjaslkjdasdjsapodasojopfjpoajsfpoafpasfpaspfafsjjfpasjfsoapjfaspifjsarhpashlfknlknclknklnslaknlkd

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Cường Phạm

79164971

Date: 2024-11-07 03:58:33
Score: 1.5
Natty:
Report link

Instead of { params }: { params: Record<string, string> } you can try: { params }: { params: string }.

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

79164965

Date: 2024-11-07 03:55:33
Score: 8.5
Natty: 7.5
Report link

Have you found the solution for this?

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found the solution for this
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jonas

79164959

Date: 2024-11-07 03:53:32
Score: 1
Natty:
Report link

Simply add a time.sleep(3) statement between driver.get() and actually pulling results from the table. Some items are loaded with JavaScript and require some pause time for them to load in. Tested out your exact code but with a sleep statement and it worked as you want it too. Best of luck with your project.

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

79164957

Date: 2024-11-07 03:53:32
Score: 2.5
Natty:
Report link

I followed Dilhan's suggestion about Windows firewall. I am using Laragon and running Ngix and Mysql. I noticed after I have added Laragon, Ngix and Mysql to the Windows Defender Firewall and checked both Private and Public checkboxes, it seems to have solved the Wordpress slow loading on localhost.

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

79164952

Date: 2024-11-07 03:48:31
Score: 1
Natty:
Report link

There is a very useful way: set:

$this->app['request']->server->set('HTTPS','on');

instead of:

URL::forceScheme('https');

only this can slove the page link http to https. when use proxy.

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

79164951

Date: 2024-11-07 03:48:31
Score: 3.5
Natty:
Report link

Use basic code to connect the mongoose instead of complex code , if it does work tell me.

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

79164948

Date: 2024-11-07 03:47:31
Score: 0.5
Natty:
Report link

scipy.stats.multivariate_normal.cdf works on rectangular regions, giving the probability that components of a random vector would be less than components of the given vector. If we instead want the probability that a sample lies inside the ellipsoid determined by Mahalanobis distance, this can be done using chi2.cdf (see this article):

from scipy.stats import chi2
import numpy as np

mean = np.array([1, 2])
covariance = np.array([[1, 0.8],[0.8, 1]])
x = np.array([2, 3])
y = x - mean
r2 = y @ np.linalg.inv(covariance) @ y
print(chi2.cdf(r2, len(x))) # 0.4262465792625671
Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: HackerBoss

79164926

Date: 2024-11-07 03:29:27
Score: 2.5
Natty:
Report link

Nu Html Checker This tool is an ongoing experiment in better HTML checking, and its behavior remains subject to change

Showing results for https://developer.mescius.com/blogs/rss-feeds Checker Input Show sourceoutlineimage report

Check by address https://developer.mescius.com/blogs/rss-feeds

Warning: text/* type without a charset parameter seen. Defaulting to US-ASCII per section 3.1 of RFC 3023.

https://developer.mescius.com/blogs/rss-feeds

Warning: External encoding information specified US-ASCII, but XML declaration specified UTF-8. Allowing external to override per RFC 3023. The well-formedness status of this document may change when decoupled from the external character encoding information.

At line 1, column 36

encoding="UTF-8" ?>↩<rss versi

Schema Error: XML document with no namespace; cannot determine any schema to use for validation.

https://developer.mescius.com/blogs/rss-feeds

The result cannot be determined due to a non-document-error.

Total execution time 603 milliseconds.

About this checker • Report an issue • Version: 24.10.31

Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Ezequiel Leiuqeze

79164923

Date: 2024-11-07 03:26:26
Score: 3
Natty:
Report link

Just put the target folder outside your project folder could solve the problem.

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

79164922

Date: 2024-11-07 03:25:25
Score: 4
Natty:
Report link

awesome You need to change 設定のモード:上級者

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

79164920

Date: 2024-11-07 03:23:25
Score: 2.5
Natty:
Report link

using UniqueKey() for tab, the tab will rebuild every time you call it.

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

79164917

Date: 2024-11-07 03:21:24
Score: 0.5
Natty:
Report link

As of Sphinx 7.4, there's the SphinxDirective.parse_content_to_nodes() method to handle rst inside the content of a directive. It obviates directly using self.state.nested_parse(self.content, self.content_offset, node), as was linked in the other answer.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Jake Stevens-Haas

79164915

Date: 2024-11-07 03:20:24
Score: 2
Natty:
Report link

After days of trying to find out, the reason for all this chaos is because some of the libraries that I was using in the project are no longer available or supported in jitpack or maven. So I had to check if removing them had any impacts. I was able to permanently remove some libraries while I had to find the jar / aar files for others and put them into my project. Then I was able to build and run successfully.

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

79164911

Date: 2024-11-07 03:17:23
Score: 0.5
Natty:
Report link

In a convenient location or a new tab, set up 3 ranges, Macro1, Macro2, and Macro3. Then at the end of the code for each macro, include the statement

Range("Macro<1 2 or 3>") = Now()

Add Labels around those ranges to indicate which macro they refer to, and the tag "Last Run".

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

79164909

Date: 2024-11-07 03:15:23
Score: 1.5
Natty:
Report link

Step 1: npx @next/codemod@latest next-async-request-api --force

Step 2: 'On which files or directory should the codemods be applied?': '.'

Also we need to make sure that the function is declared as async, otherwise the changes won't take effect.

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

79164889

Date: 2024-11-07 03:06:21
Score: 2
Natty:
Report link

You can use https://wordpress.org/plugins/cptsm-slug-manager/ , This plugin provides a simple and powerful interface for managing custom post type slugs.

Reasons:
  • Blacklisted phrase (1): This plugin
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: luis urdaneta

79164888

Date: 2024-11-07 03:05:21
Score: 1
Natty:
Report link

After my test, this problem does exist. But you can avoid it by the following methods:

1: Right-click the project and select Properties.

2: In the Debug tab, manually set the Start External Program path to the compiled file, for example:

Set to bin\Debug\WpfAppDebug.exe for Debug configuration

Set to bin\Release\WpfAppRelease.exe for Release configuration

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

79164884

Date: 2024-11-07 03:01:20
Score: 3.5
Natty:
Report link

In Vite you can install vite-plugin-svgr, also check out this answer.

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

79164883

Date: 2024-11-07 03:01:19
Score: 4
Natty:
Report link

Because {% load static %} will not work for email template, Use the below format

https://www.your-domain.com/static/path_to_image/image_file_name.extension

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

79164874

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

In any case, if one of those packages is at fault, what's the fix?

This is because the iisnode module itself is using the Buffer() method, you may need to update the Interceptor.js file. Simply refer to this thread:https://github.com/Azure/iisnode/issues/60

If you simply don't want to see these warning messages, you can disable them via configuration. Something like:

<iisnode nodeProcessCommandLine="your/path/to/node.exe --no-deprecation --no-warnings"/>
Reasons:
  • RegEx Blacklisted phrase (1.5): fix?
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Xudong Peng

79164872

Date: 2024-11-07 02:52:17
Score: 1.5
Natty:
Report link

CREATE TABLE products ( product_id INT AUTO_INCREMENT PRIMARY KEY, product_name VARCHAR(255), brand VARCHAR(100), model VARCHAR(100), size VARCHAR(50), price DECIMAL(10,2), quantity INT, description TEXT, image VARCHAR(255), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: DARAYA SHOP DRY

79164870

Date: 2024-11-07 02:51:17
Score: 2.5
Natty:
Report link

As Multer Module is not a global module, so the setting in the app.module.ts not work! It should set at the module which used the file upload.

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

79164866

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

@user18610347 I tested a similar setup, and here’s a version that works for me:


variables:
  ${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release')) }}:
    branchName: 'master'
  ${{ else }}:
    branchName: 'develop'

stages:
  - stage: Build
    jobs:
      - job: BuildJob
        steps:
          - script: echo "branchName is $(branchName)"

enter image description here Here is the pipeline for your review: https://dev.azure.com/nacho-chukwu/Infrastructure%20As%20A%20Code/_build/results?buildId=167&view=logs&j=a314f22c-0d8d-5f4e-2e5a-7023d7141778&t=afcbd69d-6218-5d12-27f7-cd8c790f2eca

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Contains signature (1):
  • Has code block (-0.5):
  • User mentioned (1): @user18610347
  • Low reputation (0.5):
Posted by: nacho

79164859

Date: 2024-11-07 02:44:15
Score: 1
Natty:
Report link

I just had to work through the same issue.

My solution (applied to the code in your original question) was to add an e.preventDefault() statement to the onButtonClick function.

...

const onButtonClick = (e) => {
  e.preventDefault()
  inputFile.current?.click();
};

return (
  ...
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thomas

79164858

Date: 2024-11-07 02:44:13
Score: 8 🚩
Natty: 4.5
Report link

Any luck.? I am facing same issue and looking for answer.

Reasons:
  • Blacklisted phrase (1.5): Any luck
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sagar Potdar

79164848

Date: 2024-11-07 02:34:10
Score: 1
Natty:
Report link

VS2022, in git changes window,

if you alread double clicked the file and diff window opened, CLOSE the diff window first!

select the file, hold Shift and double click the file.

It will go to the source file, instead of diff window.

Cons: it cannot right click the content of the file and go to the exact line.

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

79164840

Date: 2024-11-07 02:28:08
Score: 2.5
Natty:
Report link

It says that your PROJECT_ID doesn't match or your project doesn't exist.

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

79164838

Date: 2024-11-07 02:27:08
Score: 1.5
Natty:
Report link

For anyone else who sees this - the solution I'm using for the time being is as follows.

Instead of saving GoogleTest as GoogleTest, I am saving GoogleTest as GoogleTest/src and saving my build file as GoogleTest/Build-GoogleTest.lua.

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

79164826

Date: 2024-11-07 02:21:07
Score: 3.5
Natty:
Report link

Try a longer interval like, schedule=60 to give the task more time to start and run

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

79164820

Date: 2024-11-07 02:16:06
Score: 0.5
Natty:
Report link

Step 1. Calculating the number of multiplications needed using N = log(Z/X, Y)

Step 2. Using scan to multiply X by Y for N times.

Like below: Formula in cell B7: =B1

Formula in cell B8:

=LET(x, B1, y, B2, z, B3, num_operations, ROUNDUP(LOG(z / x, y), 0), SCAN(x, SEQUENCE(num_operations), LAMBDA(current,dummy, current * y)))

enter image description here

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

79164816

Date: 2024-11-07 02:13:05
Score: 1
Natty:
Report link

While @nucleon's answer works, if you want to let users toggle layer's visibility on and off, setting visibility to visible can trigger unnecessary tile requests to the server, even for layers already loaded into the map.

To avoid that, I keep layers visible all the time and toggle their visibility by setting opacity to 0 (invisible) or 1 (to make them visible again). Note that a layer must be initially loaded before its visibility can be toggled:

// [email protected]
const show = true;
const layers = map.getStyle().layers;
layers
  // Filter for symbol layers with "-label" suffix (modify as needed)
  .filter(layer => layer.type === 'symbol' && layer.id.includes('-label'))
  .forEach(layer => map.setPaintProperty(layer.id, 'text-opacity', show ? 1 : 0));
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @nucleon'sworks
  • Low reputation (1):
Posted by: lekoshimura

79164812

Date: 2024-11-07 02:11:05
Score: 0.5
Natty:
Report link

Remove "position: relative;" and you get this css:

.tooltip {
}

.tooltip .tooltiptext {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

   .tooltip {
}

.tooltip .tooltiptext {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
<a class="tooltip">
        Hover
        <div class="tooltip tooltiptext">
                Tooltip Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
        </div>
</a>

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

79164802

Date: 2024-11-07 02:05:03
Score: 2.5
Natty:
Report link

happened to me, in the end I think there are 2 options:

  1. use real object instead of mock object.
  2. mock the getName behavior, not setName behavior.
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: RococoBernini

79164796

Date: 2024-11-07 01:58:02
Score: 2.5
Natty:
Report link

I was finally able to bitbake the recipe :) The problem was that I needed to use SRC_URI +=, instead or SRC_URI = Then, I read on another post that qt6-cmake added the assets without needing to explicitly tell it to do it, but I had to add them with SRC_URI =+ because they weren't being found. Then, I had a typo and that was it, the recipe bake successfully :)

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

79164794

Date: 2024-11-07 01:56:02
Score: 1
Natty:
Report link

For A Url in jquery:

You Could Try The prop Method:

$(location).prop('href')

Or Try The attr Method:

$(location).attr('href')

Snippet:

function oneurl(){
alert($(location).prop('href'))
}
function twourl(){
alert($(location).attr('href'))
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<button onclick="oneurl()">#1</button>
<button onclick="twourl()">#2</button>

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

79164792

Date: 2024-11-07 01:55:59
Score: 9 🚩
Natty:
Report link

Have you found the answer? Can you share it? I also encountered the same problem, thank you

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (2.5): Can you share
  • RegEx Blacklisted phrase (2.5): Have you found the answer
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Try Ding

79164790

Date: 2024-11-07 01:54:58
Score: 3.5
Natty:
Report link

I use this in user data, not work:

#!/bin/bash
# Variables
VOLUME_TAG_KEY="Purpose"
VOLUME_TAG_VALUE="MyAppData"
DEVICE_NAME="/dev/sdf"  # Update as needed

# Get instance details
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
REGION=$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)

# Locate the correct EBS volume by tag
VOLUME_ID=$(aws ec2 describe-volumes --region $REGION --filters "Name=tag:$VOLUME_TAG_KEY,Values=$VOLUME_TAG_VALUE" "Name=status,Values=available" --query "Volumes[0].VolumeId" --output text)

# Attach volume if found
if [ "$VOLUME_ID" != "None" ]; then
    echo "Attaching volume $VOLUME_ID to $INSTANCE_ID at $DEVICE_NAME"
    aws ec2 attach-volume --region $REGION --volume-id $VOLUME_ID --instance-id $INSTANCE_ID --device $DEVICE_NAME

    # Wait until the volume is attached
    while [ "$(aws ec2 describe-volumes --volume-ids $VOLUME_ID --query "Volumes[0].Attachments[0].State" --output text)" != "attached" ]; do
        echo "Waiting for volume to attach..."
        sleep 5
    done

    # Mount the volume
    mkdir -p /data
    mount $DEVICE_NAME /data
    echo "$DEVICE_NAME /data ext4 defaults,nofail 0 2" >> /etc/fstab
    echo "Volume $VOLUME_ID attached and mounted at /data"
else
    echo "No available volume found with tag $VOLUME_TAG_KEY=$VOLUME_TAG_VALUE. Exiting."
    exit 1
fi

Actually, I would like to mount to the /dev/sda1, could anyone help?

Thank you very much.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (3): could anyone help
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ปลาวาฬทราย

79164778

Date: 2024-11-07 01:47:57
Score: 1
Natty:
Report link

In Guess the Card, you’re given a deck of cards and asked to guess the color of the first card (red or black). If you guess correctly, you then need to guess whether the next card is higher or lower than the previous card. If you guess correctly, you then need to guess what the suit of the card is (spades ♠ /hearts ♡ /diamonds ♢/clubs ♣). If you guess correctly, you win! If at any point you guess incorrectly, the game resets and you’ll be asked to guess the color of the card.

Cards in this game will only be from 2 to 10.

Your solution will require the use of random numbers. The code used to generate random numbers has been provided to you.

Use random.randint(2,10)

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

79164777

Date: 2024-11-07 01:46:57
Score: 3.5
Natty:
Report link

Try to convert slug to lowercase using .lower()

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

79164769

Date: 2024-11-07 01:41:56
Score: 1
Natty:
Report link

It might be the problem with your internet service provider. You can change mirror to download by selecting option "Problem Downloading" on SourceForge and then under "Choose a different mirror" select "Auto Select".

This method worked for me.

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

79164747

Date: 2024-11-07 01:21:52
Score: 2
Natty:
Report link

https://socketry.github.io/async/guides/asynchronous-tasks/index.html

I know this is an old question but, You may want to check this.

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

79164739

Date: 2024-11-07 01:15:50
Score: 2
Natty:
Report link

(IF YOUR NOT USING MAVEN) Well in this scenario you will need to download the JAR files in zip, extract it and later add the External JAR files in the 'build-path' under the 'Classpath' section. Download the slf4j-api JAR and slf4j-simple JAR from the given website, yeah its not secure but its safe I have used it to download these JAR files when I run into the same problem, http://www.java2s.com/

enter image description here

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

79164732

Date: 2024-11-07 01:10:49
Score: 2
Natty:
Report link

C sharp divides integers like a child. Throwing away any leftover fractional part. Simply cast the denominator as a double or a float and it will work the way you expect. When you divide by a constant integer remember to put a .0 after the integer to make it a double.

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

79164725

Date: 2024-11-07 01:06:48
Score: 3.5
Natty:
Report link

Update your platforms\android\cdv-gradle-config.json "SDK_VERSION":35 and "MIN_BUILD_TOOLS_VERSION":"35.0.0"

enter image description here

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

79164724

Date: 2024-11-07 01:05:48
Score: 0.5
Natty:
Report link

Sorry, the issue was with the semicolon in Google Spreadsheet. It has to be ;, not ,. So this one worked: =(IF(ISBLANK(C2);B2;C2)+E3)*(1+H2)

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

79164719

Date: 2024-11-07 00:58:45
Score: 10 🚩
Natty: 5
Report link

Please help me 🙏😭 and I can feedback on this weekend to time do you want to URL and I didn't no idea please let me know 🥺

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): 🙏
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (3): Please help me
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ariel Florendo

79164704

Date: 2024-11-07 00:44:42
Score: 1.5
Natty:
Report link

Thanks for bringing this to our attention! It appears that due to a recent update to libphonenumber (which is used by Identity Verification to validate phone number input prior to attempting verification), the phone number for the Ben Wyatt test user no longer works. The team is looking at this issue to replace the phone number for Ben, but for right now, this test user cannot be used. (When Ben's number is updated, I'll edit this answer and leave a comment.)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Single line (0.5):
Posted by: Alex

79164703

Date: 2024-11-07 00:43:42
Score: 2
Natty:
Report link

Here's another possibility: if you use symlinks (symbolic link to a another file in your solution), and you delete the original file without getting rid of the link, you will get this error. You can delete the link in the .csproj file.

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

79164701

Date: 2024-11-07 00:43:42
Score: 0.5
Natty:
Report link

First, declare your gtag in the component:

declare var gtag;

Secondly, trigger your gtag conversion using your gtag id and label id (after your payment is successful):

makeAGoogleConversion(){
  gtag('event', 'conversion', {
    'send_to': 'AW-123456789/8a4588Tfd23646',
  });
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sheikh Wahab Mahmood

79164697

Date: 2024-11-07 00:42:42
Score: 1
Natty:
Report link

As of 2024-11-06, the accepted answer is outdated.

According to the same documentation linked in that answer (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.Copying.html), the updated command is:

aws rds copy-db-parameter-group \
    --source-db-parameter-group-identifier "${SOURCE_ID}" \
    --target-db-parameter-group-identifier "${TARGET_ID}" \
    --target-db-parameter-group-description "${TARGET_DESCRIPTION}"
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: andreswebs

79164693

Date: 2024-11-07 00:38:40
Score: 5.5
Natty:
Report link

React has its own built in environmental variable system. check this link for more.

Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tsogang Mosweswe

79164683

Date: 2024-11-07 00:29:38
Score: 2.5
Natty:
Report link

I faced the same issues. In the end it turned out some of my packages were using View Engine libraries, whose support was removed in angular 16 since the Angular Compatibility Compiler (ngcc) is removed in v16.

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

79164677

Date: 2024-11-07 00:27:37
Score: 1
Natty:
Report link

I was using custom font in angular 17, First I import custom font in style.scss and then i used the piece of code and just changed font variable in mat.define-typegraphy-config($font-family: '"custom_font_name"').

@use '@angular/material' as mat;

$open-sans-typography: mat.define-typography-config($font-family: '""');

@include mat.typography-hierarchy($open-sans-typography);

$app-theme: mat.define-light-theme(( typography: $open-sans-typography ));

@include mat.all-component-themes($app-theme);

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @use
  • User mentioned (0): @include
  • User mentioned (0): @include
  • Low reputation (0.5):
Posted by: MHK

79164675

Date: 2024-11-07 00:25:36
Score: 0.5
Natty:
Report link

This issue only occurs in Play Billing Library 7.1.1. It does not occur in Play Billing Library 7.0.0.

This issue has also been reported in the issue tracker, but there has been no official response yet.
[Play Billing Library 7.1.1] launchBillingFlow() does not work on Android 6 (Marshmallow)

As @Robert mentioned, Play Billing Library 7.1.1 seems to use classes available starting with Android 7 (Java 8).

Luckily, we have an Android 6 test device. We tested it by turning on the desugaring option in build.gradle.kts as below and confirmed that the issue is resolved.

I think this should be documented in the Play Billing Library 7.1.1 release notes.

build.gradle.kts

android {
    ...

    compileOptions {
        isCoreLibraryDesugaringEnabled = true
    }
}

dependencies {
    ...

    implementation( "com.android.billingclient:billing:7.1.1" )

    coreLibraryDesugaring( "com.android.tools:desugar_jdk_libs:2.1.2" )
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Robert
  • Low reputation (0.5):
Posted by: Blue Ocean

79164674

Date: 2024-11-07 00:25:36
Score: 1.5
Natty:
Report link

It sounds like updates can cause compatibility issues between Microsoft Edge and Power Automate Desktop. Here’s a troubleshooting suggestion: try using the Chrome browser instead, as it’s known to work smoothly with Power Automate.

To get started, install and activate the Chrome Power Automate Desktop extension. You can follow the instructions here: Dicas de Como Instalar a Ferramenta de RPA Power Automate. I apologize that this guide is in Portuguese, but you could translate it, and probably it should walk you through each step.

Switching to Chrome should help resolve the communication issue in your Power Automate flows!

Reasons:
  • Blacklisted phrase (1): this guide
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Gabriel Braico Dornas

79164673

Date: 2024-11-07 00:24:36
Score: 1
Natty:
Report link

Since the mixin is not being applied correctly, a workaround is to call the mixin function directly:

await PlaybackMixin.playAsync.call(sound);

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

79164672

Date: 2024-11-07 00:24:34
Score: 7.5 🚩
Natty: 6
Report link

Did you figure out the answer. I am hitting the same problem and same error

Reasons:
  • RegEx Blacklisted phrase (3): Did you figure out the answer
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Cindy

79164671

Date: 2024-11-07 00:23:33
Score: 2
Natty:
Report link

I came across this issue very recently. This was fixed by changing the single quotation marks to double quotes!

'APPL' -> "APPL".

Not sure why this is the case, maybe someone else can share more information on the reason behind this!

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

79164661

Date: 2024-11-07 00:14:32
Score: 0.5
Natty:
Report link

According to the docs, you need to specify the types of pull requests you are opening.

   on:
     push:
       branches: [main]
     pull_request:
       types: [opened, reopened]
       branches: [main]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rafael Fernandes

79164645

Date: 2024-11-07 00:00:29
Score: 2
Natty:
Report link

Check out this simpler version.

x = eval(input("Enter a number: "))
s = 0
for i in range(1, x):
    if x % i == 0:
        s += i
        
print(s)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Prince Mensah

79164638

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

inert attribute

$('.myLink').prop('inert', true);
.myLink {
  &[inert] { opacity: .5 }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: KABA

79164635

Date: 2024-11-06 23:51:26
Score: 1
Natty:
Report link

It looks like you are missing trying to exchange userPlatform.authToken for a long-living token. However, you first need to update userPLatform.authToken with the value from tokenResponse.access_token. Or, just use it directly in your userLongLiveTokenApi request.

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

79164628

Date: 2024-11-06 23:47:26
Score: 1
Natty:
Report link

Like Kalindu, adding import "./index.scss" at the top of remote components is the simplest way to fix the issue for me.

My this index.scss is including:
    @tailwind base;
    @tailwind components;
    @tailwind utilities;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dominic Lee

79164619

Date: 2024-11-06 23:46:25
Score: 1
Natty:
Report link

Change the homepage name!!! I had similar problem - homepage not looking right missing images / modules. I (logged in)went into the template - homepage settings changed homepage to a completely different page with same modules and with different name , saved that setting and logged out, then viewed the new page on the browser(whilst logged out). The new page displayed correctly then (logged in )reset the homepage back to original and logged out and checked on browser. The original page now looked correct. So it is to do with cache(database , browser or otherwise) I think although I refreshed database etc the browser or database was referring to a previous version cached and not displaying the page correctly.

This is probably because my site was being developed and I was building and testing the page continuously (same thing on my mobile phone it was not displaying because I was also testing on that too). The homepage switch fixed that as well.

You could rename the page and that would trick/force the browsers/database to rewrite the final version which is basically what I did. I also tested on another computer prior and had noted similar problem even though the page had not even be loaded which leads me to believe that by switching between pages helped rewrite the data files correctly on the server end.

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

79164604

Date: 2024-11-06 23:36:23
Score: 0.5
Natty:
Report link

TL;DR: Wrap the dependency and stub your wrapper; don't try to stub the dependency.

The solution I found was to:

// My wrapper module, PubSub.ts
const pubSub = new PubSub()
export async function publishBytes(topicName: string, bytes: Uint8Array): Promise<void> {
    const topic = pubSub.topic(topicName)
    const data = Buffer.from(bytes)
    await topic.publishMessage({ data })
}

// My test code
import * as PubSub from "./PubSub"
sinon.spy(PubSub, "publishBytes")...
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Christopher Simmons

79164586

Date: 2024-11-06 23:27:20
Score: 5
Natty: 4
Report link

Windows server 2008 R2 Itanium 2 based problem is only two roles are available such iis web services and framework 3.5, impossible to promote as PDC active directory, DHCP, DNS, wins server services are not delivered, gprep tool on the dvd but what for? Discontinued product ok why Microsoft who knows everything didn't provide us development tools such c++ c# or importation toolbox why? Microsoft must pay for that. .iso can't be installed under virtual box on windows 11 64 bits why one more time?regards

Reasons:
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (0.5): why?
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thierry Trouillet

79164583

Date: 2024-11-06 23:27:20
Score: 0.5
Natty:
Report link

You didn't edit the following line to include the name of your .env file. I used the name virus_total.env

# load_dotenv will look for a .env file and if it finds one it will load the environment variables from it
load_dotenv("virus_total.env")

"""
/////  IMPORTANT  /////
ADD .env to gitignore to keep it from being sent to github
and exposing your API key in the repository
"""

In this .env file, you need a line as follows (as an example only):

API_KEY1="5da36e3aa622a8b6d81dd168334ef12379bdad4d1fa7f11ce3f75829ccc5e9ac"

You get this api key from your account on the virus total website.

Then, you will get the following result

python vt-ip-url-analysis.py -s google.com

                                                            google.com
community score      0/96  :  security vendors flagged this as mali...
last_analysis_date                            Wed Nov  6 16:04:21 2024
last_analysis_stats  {'malicious': 0, 'suspicious': 0, 'undetected'...
redirection_chain                                 [http://google.com/]
reputation                                                        2700
times_submitted                                                 200860
tld                                                                com
virustotal report    https://www.virustotal.com/gui/url/cf4b367e49b...
Reasons:
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Charles Knell

79164582

Date: 2024-11-06 23:27:20
Score: 2
Natty:
Report link

Try Image hashing it creates a compact, fixed-length hash that represents an image's visual features. I have used it on images of BIOS it worked well in my case.

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

79164575

Date: 2024-11-06 23:23:18
Score: 2.5
Natty:
Report link

Debug is broken in the latest version of VS Code (1.95.1). (https://github.com/microsoft/vscode/issues/232651). You need to deactivate AutoUpdate and install the 1.94.2 version until they repaired it (1.95.2?)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Frédéric Chauvière

79164574

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

Thank you Glassy. changing it to function deactivate() worked for me

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: chaitanya

79164563

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

It turns out the original variable assignment was the problem. I should have used single quotes instead of double quotes. This code:

$Passwd = 'StringWith`Character'      # <-- entered by user
$new_pw = $Passwd.replace('`','``')
write-output "Passwd = $Passwd"
write-output "New_pw = $new_pw"

Produces this output:

Passwd = StringWith`Character
New_pw = StringWith``Character
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ken

79164559

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

I guess that each command creates its own shell, just like make does.

Try merging it into a single, ugly, line

cd $READTHEDOCS_OUTPUT/; pwd; ls -lt; cmake ..; make html; exit 0
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Paweł Wójcik

79164551

Date: 2024-11-06 23:15:16
Score: 2
Natty:
Report link

No, I don't think this is possible.

I've been trying to implement it for a few days because I have a code base I am refactoring to use ag-grid, which had previously used <ng-template to render its cell components. The most logical way to go about it would be to set a @viewChild() to bring the ng-template reference into the component layer and then set it as the cellRenderer of the column, but I have been unable to make this work.

I think we have to take the more long winded approach and set up Components with their own templates. They have pretty good documentation on how to do it (https://www.ag-grid.com/angular-data-grid/components/) and I was able to use the child to parent communication to reduce the amount of refactoring required to split ng-templates out to their own components.

I agree, it would be awesome if they add support for ng-template references for all the times we need relatively simple cell components.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @viewChild
  • Low reputation (1):
Posted by: Zane Geiser

79164548

Date: 2024-11-06 23:12:16
Score: 0.5
Natty:
Report link

To expand on Redim's answer - your code didn't work. Here I made it better:

from google.cloud import bigquery_datatransfer

transfer_client = bigquery_datatransfer.DataTransferServiceClient()
project_id = "your_project"
region_id = "your_region"
parent = transfer_client.common_location_path( project_id, region_id)
configs = transfer_client.list_transfer_configs(parent=parent)
print("Got the following configs:")
for config in configs:
    print(f"\tID: {config.name}, Schedule: {config.schedule}")
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Franek Szczytnicki

79164547

Date: 2024-11-06 23:11:15
Score: 3.5
Natty:
Report link

Why not create a Context outside and import the in the App.js so that the child with useParams can consume the states

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (1):
Posted by: Hammed Sanni

79164531

Date: 2024-11-06 23:02:13
Score: 5
Natty:
Report link

Excellent explanation. Deklaration i the h and definition in the c file. https://youtu.be/Wqm1tSzmqkY?si=AgafuyCB6DnRnz2c

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jonas W

79164515

Date: 2024-11-06 22:58:12
Score: 1
Natty:
Report link

The HDF5 global lock is not shared across separate processes on a single machine. Each process that opens an HDF5 file has its own instance of the HDF5 library and thus maintains its own separate global lock. This means that the lock only applies within a single process and does not affect other processes accessing the same file.

So did you mean actual processes on the same OS or hardware machine? Or did you mean processes in shared memory such as multiple threads?

You mention later needing to write to two files in the same process, which is completely different that the first specification.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Richard Keene

79164508

Date: 2024-11-06 22:55:11
Score: 4.5
Natty:
Report link

Could any of you may help me another time? Thanks for the link, but it didnt brought me any further. I have tried to integrate Modelaniamtor and wanted to import ModelAnimator with import com.google.ar.sceneform.animation - didnt work. Do I need to change build.gradle? What do I need to chnage in the code? Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: salomon

79164507

Date: 2024-11-06 22:55:11
Score: 1
Natty:
Report link

No, f-strings are of no use here.

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

79164505

Date: 2024-11-06 22:54:09
Score: 10 🚩
Natty: 5.5
Report link

I'm facing this same error in executing my spring-boot app.

I have already tried clearing the Maven repository and forcing updates with the -U switch, but the issue persists. This error prevents any Maven build from completing successfully. Does anyone have insights on what might be causing this issue or how to resolve it? Here are some of the environment settings and actions I've tried:

-Switching between Java JDK versions -Using different Maven versions -Clearing the .m2 repository -Running Maven with -X for debug output -No Blocks in firewall or Anti-Virus

Any suggestions or guidance from anyone would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): I have already tried
  • RegEx Blacklisted phrase (1.5): how to resolve it?
  • RegEx Blacklisted phrase (2): Any suggestions
  • RegEx Blacklisted phrase (3): Does anyone have
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Vishwanath Rajasekaran

79164503

Date: 2024-11-06 22:53:08
Score: 1.5
Natty:
Report link
last_month = df['month'].max()
excl = df[df['month']==last_month]['ID'].values
df[df.apply(lambda r: not r['ID'] in excl,axis=1)]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ThxAlot