79597230

Date: 2025-04-28 20:22:22
Score: 3
Natty:
Report link

check if your enum has not setter method and check the value of enum is final

private final String value;

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

79597221

Date: 2025-04-28 20:13:21
Score: 1.5
Natty:
Report link

Solution for me

from  keras import layers
layers.RandomFlip("horizontal")

OR

from keras.layers import RandomFlip
RandomFlip("horizontal")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: HeroLikeNoOther

79597215

Date: 2025-04-28 20:10:16
Score: 7.5 🚩
Natty:
Report link

This is not working for me. Tough life :(

Reasons:
  • Blacklisted phrase (1): :(
  • RegEx Blacklisted phrase (3): not working for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abdullahi Oladimeji

79597212

Date: 2025-04-28 20:09:16
Score: 2
Natty:
Report link

i think the problem is your memset is trying to 1. doesnt have enough space to allocate or 2. the memory got corrupted somehow. you may even mallocated more memory for the kernel directory than you can, but thats the only things i can think of. when dealing with low level stuff it is hard to debug. the mapping may not be correct, im sorry i couldnt answer tho

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

79597211

Date: 2025-04-28 20:07:15
Score: 1
Natty:
Report link

axis aligned solution 3D: maximum of chessboard distance transform

diagonal solution 3D: maximum of taxicab distance transform

largest inner sphere: maximum of Euclidean distance transform

*SciPy ndimage has them all^

Rotated cube:

Using the following facts:

  1. The largest sphere that fits inside a cube has radius L/2.

  2. The largest cube that fits inside a sphere has length r/sqrt(3).

  3. Thresholding the distance transform of a cube returns a cube

The center of the cube must lie at least r/sqrt(3) away from any boundary. Thresholding the Euclidean distance transform EDT at this value will retain at most Volume(shrunk largest cube) = ([1-1/sqrt(3)]N)^3 = 0.0755..N^3. Updating the threshold new_max = (previous_max + current_max)/sqrt(3) and recompute the EDT. Iterate until convergence.

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

79597208

Date: 2025-04-28 20:04:14
Score: 4
Natty:
Report link

Я просто снёс все старое и с нуля написал, набрал всё новое. Ушло дня три, но всё работает. Возможно, так будет проще, за одно и рефакторинг проведёте, вспомните, узнаете что-то новое )

А там много чего там есть и чего-то нет, в двух словах не опишешь. Но необходимые вещи для работы описаны на самом сайте Кейклока (нужные 3-4 либы). Там все инструкции должны быть.

Reasons:
  • No code block (0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: Kira 狐39

79597196

Date: 2025-04-28 19:58:12
Score: 2
Natty:
Report link

EDIT: Turned out I was too lazy to read the source code. Of course, looking at the implementation code, we can find the getNode(Object o) method which is called by get(Object o) method. Inside of it, indeed, the correct bucket is first accessed by calculating the following formula: (n-1) & hash, where n is the length of the internal array. Then for the first node (and each of the rest if there are more) we are comparing the hash of the Object o passed into the method with the hash of the Node/entry. If the hashes are equal, then the equals() method runs to make sure it's the same. If the hashes are not equal, well, then it skips to the next node (if the .next property is not null).

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

79597191

Date: 2025-04-28 19:53:11
Score: 2
Natty:
Report link

Hydra: Shield çöktü artık gölgelerde saklanan hydra yeryüzüne çıkabilir ve dünyanın hakimi olabilir Red Skull'un bıraktığı işi bitirmeye çok az kaldı çok yaşa Hydra Not: Kış Askeri programı kapatılmalı ve Buck Barnes'ın beyin yıkaması bırakılmalı artık huzur içinde uyuyabilir bide T.A.H.I.T.I programını tekrar devreye sokmak gerekebilir Yaşa Hydra

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Phil J. Coulson

79597186

Date: 2025-04-28 19:47:09
Score: 3
Natty:
Report link

Sorry for going somewhat off-topic, but that looks like the exact sort of extension I've been trying to create, and I'm also (horribly) new to TypeScript, so it hasn't gone well. Do you happen to have it on your GitHub or somewhere? I'd be interested in taking a look and/or collaborating.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TMA-2

79597182

Date: 2025-04-28 19:45:09
Score: 1
Natty:
Report link

It is a technique used to optimize a certain class of DP problems that involve the minimum (or maximum) of linear functions. You can read more about CHT here

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

79597180

Date: 2025-04-28 19:43:08
Score: 0.5
Natty:
Report link

As Gino Mempin said, you need to install Pylance via a .VSIX file, but, as written in this GitHub issue, you need to install the 2023.6.40 version.

In any case, it worked for me, unlike the last version.

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

79597178

Date: 2025-04-28 19:42:08
Score: 2
Natty:
Report link

When I moved over the IIS settings from one server to another, it did not automatically set the certificate correctly. So there was a blank certificate setup for https in IIS. Setting the certificate for the website fixed this error.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When I
  • High reputation (-1):
Posted by: Cryptc

79597157

Date: 2025-04-28 19:23:04
Score: 2
Natty:
Report link
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>simple-java21-maven</artifactId>
<version>1.0.0</version>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Maruf Ahmed

79597145

Date: 2025-04-28 19:14:01
Score: 4.5
Natty:
Report link

you can use navigator.deviceMemory

for more info, please watch this video. https://youtu.be/zcxA1kVza4Q?si=pQX1OfADZlmS4-wy

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hareram Ray

79597136

Date: 2025-04-28 19:07:59
Score: 4
Natty:
Report link

Thanks to @Clemens, the answer was to set Stretch="Uniform" on the Paths

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • Has code block (-0.5):
  • User mentioned (1): @Clemens
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: JoshQuake

79597134

Date: 2025-04-28 19:02:58
Score: 2.5
Natty:
Report link

Nope..the above scenario is totally change from the text.In the above pic they are talking about the textform field which is difficult to place in one row.In my opinion take one row and then add two TextformField

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

79597129

Date: 2025-04-28 18:59:57
Score: 1.5
Natty:
Report link

Monolithic and layered system (n-layer) are not mutually exclusive. The former is an architectural style, while the latter is a way to separate responsibilities.

Your Visual Studio solution sounds like a monolithic, multi-layer system.

Microservices is an n-tier pattern where each subsystem is autonomous and handles a different business activity.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: U. Malik

79597124

Date: 2025-04-28 18:56:56
Score: 0.5
Natty:
Report link

I think your problem is because your vector is rotating around its origin, and that is (0, 0), so you'll need to add up the two vectors, and you don't need to increase the rotating angle, as that makes the clock spin faster and faster.

This is how I implemented it in code:

import pygame, sys
from pygame import Vector2

pygame.init()
screen = pygame.display.set_mode((500, 500))
clock = pygame.time.Clock()
SCREEN_UPDATE = pygame.USEREVENT
pygame.time.set_timer(SCREEN_UPDATE, 100)

vector = Vector2(250, 100)
center = Vector2(250, 200)

while True:
    for event in pygame.event.get():

        if event.type == pygame.QUIT:
            pygame.quit()
            sys.exit()

        if event.type == SCREEN_UPDATE:
            vector.rotate_ip(1)


    screen.fill('black')
    pygame.draw.line(screen, 'white', center, center+vector)

    pygame.display.flip()
    clock.tick(60)

Please correct me if I am wrong.

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

79597123

Date: 2025-04-28 18:56:55
Score: 7.5 🚩
Natty: 4
Report link

Which version of SQLite are you using? I'm facing the same problem but the anwsers above are not helping me

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Which
  • Low reputation (1):
Posted by: José Leite da Cruz

79597111

Date: 2025-04-28 18:46:53
Score: 1
Natty:
Report link
app = Flask(__name__)
# ...
with app.app_context():
    app.logger.info(f"Running {os.environ.get('FLASK_APP')} on http://{os.environ.get('FLASK_RUN_HOST')}:{os.environ.get('FLASK_RUN_PORT')} ...")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Leszek Pachura

79597106

Date: 2025-04-28 18:41:52
Score: 2
Natty:
Report link

That's because both serve different purposes. There are many tasks in NLP where you simply need to tokenize by word. Handling multi-word expressions where there are certain pre-defined phrases you would like to keep fixed during tokenization, you use MWEtokenizer. If you use n-grams, then you might get irrelevant combinations, which requires additional time in filtering the unwanted ones, unless there is an exploration aspect to your task, where you are looking for a specific phrase.

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

79597105

Date: 2025-04-28 18:40:52
Score: 2
Natty:
Report link

From your description and the provided screenshots, it's challenging to pinpoint the exact cause of your problem, because the issue can result from multiple possible issues. To effectively debug this, additional information would be helpful, such as:

However there are multiple problems that I can see in your code:
$emails['WC_Email_Customer_Doi_Xac_Nhan_Order'] = include get_stylesheet_directory() . '/woocommerce/emails/class-wc-email-customer-doi-xac-nhan-order.php';

This approach is incorrect because you're directly using include, which returns only a boolean (true) or the return statement from the included file—not the actual instantiated object you need for WooCommerce emails.

I would use it like this:

add_filter('woocommerce_email_classes', 'add_custom_order_status_emails');

function add_custom_order_status_emails($emails) {
    // Include your email class files
    require_once get_stylesheet_directory() . '/woocommerce/emails/class-wc-email-customer-doi-xac-nhan-order.php';
    require_once get_stylesheet_directory() . '/woocommerce/emails/class-wc-email-admin-da-cap-nhat.php';
    require_once get_stylesheet_directory() . '/woocommerce/emails/class-wc-email-customer-da-cap-nhat.php';

    // Properly instantiate each email class
    $emails['WC_Email_Customer_Doi_Xac_Nhan_Order'] = new WC_Email_Customer_Doi_Xac_Nhan_Order();
    $emails['WC_Email_Admin_Updated']               = new WC_Email_Admin_Updated();
    $emails['WC_Email_Customer_Updated']            = new WC_Email_Customer_Updated();

    return $emails;
}

// Trigger custom emails on order status change
add_action('woocommerce_order_status_changed', 'trigger_custom_order_email', 10, 4);

function trigger_custom_order_email($order_id, $old_status, $new_status, $order) {
    if ($new_status === 'doi-xac-nhan') {
        WC()->mailer()->emails['WC_Email_Customer_Doi_Xac_Nhan_Order']->trigger($order_id);
    }

    if ($new_status === 'da-cap-nhat') {
        WC()->mailer()->emails['WC_Email_Admin_Updated']->trigger($order_id);
        WC()->mailer()->emails['WC_Email_Customer_Updated']->trigger($order_id);
    }
}

WooCommerce expects e-mail specific CSS to be available in the following files:
your-theme-folder/woocommerce/emails/email-styles.php

Before doing a real test, you can test it in WooCommerce -> Settings -> Emails -> [Your Custom Email] -> View Template

Please let me know how you progress - and if you provide more information, it will be handled easily.

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

79597102

Date: 2025-04-28 18:39:51
Score: 1.5
Natty:
Report link

Thanks to Reinderien's comment, I was able to figure this out - I had no idea what a Kronecker product was until now. sp.kron does exactly what I want, with the added benefit of being able to multiply each block by a coefficient.

For the contrived example, the code to specify the pattern would be:

import scipy.sparse as sp
import numpy as np

# Setup subarray and big array parameters
a, b, c, d = 1, 2, 3, 4
sub = sp.coo_array([[a, b], [c, d]])
N = 8

# Setup block locations for our arbitrary pattern
row_idx = np.hstack((np.arange(N/sub.shape[0], dtype=int), np.arange(N/sub.shape[0]-1, dtype=int)))
col_idx = np.hstack((np.arange(N/sub.shape[1], dtype=int), np.arange(N/sub.shape[0]-1, dtype=int)+1))
coeff = np.ones_like(row_idx) # Multiply blocks by coefficients here
locs = sp.csc_array((coeff, (row_idx, col_idx))) # Array of coefficients at specified locations

# Not necessary, but shows what's going on.
print(f'Placing block top left corners at rows{row_idx*sub.shape[0]}, cols {col_idx*sub.shape[1]}')

Actually creating the sparse array is a one-liner once the locations and subarray are specified:

arr = sp.kron(locs, sub)

print(arr.toarray()) yields:

[[1 2 1 2 0 0 0 0]
 [3 4 3 4 0 0 0 0]
 [0 0 1 2 1 2 0 0]
 [0 0 3 4 3 4 0 0]
 [0 0 0 0 1 2 1 2]
 [0 0 0 0 3 4 3 4]
 [0 0 0 0 0 0 1 2]
 [0 0 0 0 0 0 3 4]]

This implementation...

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

79597100

Date: 2025-04-28 18:39:51
Score: 1
Natty:
Report link

If you simply want to check is the distance is less than a certain number, you can simply omit the sguare root altogether and just square the constant.

Math.hypot() might be useful too.

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

79597087

Date: 2025-04-28 18:32:50
Score: 1
Natty:
Report link

There's some documentation about contributing to CTS here:

https://source.android.com/docs/compatibility/cts#components

https://source.android.com/docs/setup/contribute/submit-patches

It's encouraged to contribute, but for the final certification it's not allowed to have local CTS patches as it needs to be run with the official binaries.

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

79597081

Date: 2025-04-28 18:27:48
Score: 3
Natty:
Report link

Try putting your entries into a scroll view that goes high enough on the screen to be visible when the keyboard is. Also try .net 9 as well, as it made some changes in this area.

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

79597078

Date: 2025-04-28 18:24:47
Score: 1
Natty:
Report link

Gotcha!

So, i was navigating through the docker container and found the container name in this file path -> /var/lib/gridstore/conf/gs_cluster.json and the clustername written in json like this

{
  "clusterName":"dockerGridDB",
  ...
}
docker exec -it griddb-server bash
cat /var/lib/gridstore/conf/gs_cluster.json
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: hordlaw

79597074

Date: 2025-04-28 18:21:46
Score: 4
Natty:
Report link

I have the same problem, but in NextJS 14.2.25

I tried the other: { 'apple-mobile-web-app-capable': 'yes' } workaround, but it didn't work for me.

I eventually added them manually to the <head> in my root layout.tsx like this

export default function RootLayout({
  children,
  params: { locale },
}: {
  children: React.ReactNode;
  params: { locale: string };
}) {
 
  return (
    <html>
      <head>
 
        {/* Apple Splash Screens */}
        <link rel="apple-touch-startup-image" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/splash/apple-splash-2048-2732.jpg"/>
        <link rel="apple-touch-startup-image" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/splash/apple-splash-2732-2048.jpg"/>
        
        {/* Rest of the Splash Screens ... */}



 </head>

  {*/ Rest of your code */}
</html>
 

Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Blacklisted phrase (1): I have the same problem
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (0.5):
Posted by: Remy Jouni

79597067

Date: 2025-04-28 18:17:45
Score: 1
Natty:
Report link
  $server = IoServer::factory(
            new HttpServer(
                   $wsServer= new WsServer(
                            new MyChat()
                    )
            ),
            8080,
            '0.0.0.0'
    );
   $wsServer->enableKeepAlive($server->loop, 5);
    $server->run();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Умный Дом Астрахань

79597059

Date: 2025-04-28 18:11:44
Score: 0.5
Natty:
Report link

Found the solution by using the union function.
basically, outside of the forEach loop, I created an array variable varComplete and then inside the loop after each call to a web activity, I set another variable varTempResponse as

@union( activity('Web1').output, varComplete)

Then, I reset the varComplete to the value of varTempResponse.
varComplete = varTempResponse

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

79597045

Date: 2025-04-28 17:59:41
Score: 0.5
Natty:
Report link

I found a clear way to get it using only existing methods without any formatting:

from datetime import UTC, datetime

int(datetime.now(UTC).timestamp())  # 1745862751

Please, feel free to tell me that I'm wrong, I'm not an python expert.

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

79597043

Date: 2025-04-28 17:59:40
Score: 11.5 🚩
Natty: 5.5
Report link

Did you solve it?
I have the same problem.

https://github.com/hyperledger-labs/minifabric/issues/161

As shown here, it is stated that it is possible, but it does not explain how.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): Did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you solve it
  • Low reputation (1):
Posted by: Theo Pedras

79597039

Date: 2025-04-28 17:56:39
Score: 2.5
Natty:
Report link

By setting the scrollpane background color to transparent, it is now seamless like this:

.scroll-pane {
    -fx-background-color: transparent;
}

enter image description here

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

79597038

Date: 2025-04-28 17:56:39
Score: 0.5
Natty:
Report link

I see this issue is coming regularly with newer versions

refer this solution for fix in Android Studio after Koala

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Amin Pinjari

79597036

Date: 2025-04-28 17:55:39
Score: 1
Natty:
Report link

Latest Android and XCode version has fixed this issue

refer this solution

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

79597034

Date: 2025-04-28 17:52:38
Score: 4.5
Natty:
Report link

Does it stay resident in memory even when you close that powershell session you used to set it?

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

79597030

Date: 2025-04-28 17:49:36
Score: 6 🚩
Natty:
Report link

Is the profile you used for signing a public trust one?

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): Is the
  • Low reputation (1):
Posted by: Jaxel Rojas

79597029

Date: 2025-04-28 17:48:35
Score: 4
Natty:
Report link

By removing dataloader_drop_last=True in TrainingArguments, the code worked

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

79597028

Date: 2025-04-28 17:48:35
Score: 1
Natty:
Report link

I was able to figure this out and thought I would post it here if anyone has the same issue. As described in this answer here which is what solved my problem, under the hood, SwiftUI uses view controllers which can only display one sheet or alert at a time. The problem was that in testing I was trying to display both the alert and sheet and only the alert displayed. Even if you put the sheet first, the alert will take precedence. Commenting out the alert, permitted the sheet to display.

SwiftUI - Cannot show alert over sheet

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: user6631314

79597027

Date: 2025-04-28 17:47:35
Score: 4.5
Natty: 5
Report link

Hi I found this site https://troll-winner.com/blog/woocommerce-variation-description-visual-editor/ and has plugin I'm using on some of my sites and it is working for me

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

79597026

Date: 2025-04-28 17:47:35
Score: 1
Natty:
Report link

So I found that PowerShell was acting up with my git as well.

I ran these commands to find that PowerShell recognized a broken version of git still buried in my Windows system 32 folder: "C:\Program Files\Git\bin> (Get-Command git).CommandType

\>>

Application

C:\Program Files\Git\bin> (Get-Command git).Source

\>>

C:\windows\system32\git

C:\Program Files\Git\bin> (Get-Command git).Definition

\>>

C:\windows\system32\git".

After I found and deleted the bad git.exe file in my system32 folder, I was able to run: "git -v" anywhere in powershell because it then was able to recognize the source folder for my main git installation in my "C:\Program Files\Git\bin".

Other terminals like CMD and Git Bash can find the right location right away, even if you have your environment variables set up properly, but then PowerShell is very particular, which is both a pro and con depending on how you look at it. It just forces you to clean up your system when working at runtime with it.

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

79597019

Date: 2025-04-28 17:44:34
Score: 1
Natty:
Report link

I have to add the file nuget.config in the project root folder with the following content:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration> 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: pguzman

79597016

Date: 2025-04-28 17:41:33
Score: 2
Natty:
Report link

Bit late to this but I'm getting this message when I use the prompt() javascript funtion so of course it takes longer than a few milliseconds for the user to type in the response. THis is perfectly valid and I realize this is just a warning but it's still annoying.

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

79597011

Date: 2025-04-28 17:37:32
Score: 0.5
Natty:
Report link

SOLVED!

Hey everyone, I managed to solve the issue and wanted to share the solution.

The Main Reason: The whole problem was happening because I was trying to use rustup (even though installed via Nix) alongside the Rust tools (rustc, cargo, rust-analyzer, rustfmt) also installed via Nix. The conclusion is: on NixOS, you generally shouldn't install rustup if you're managing your Rust toolchain directly with Nix.

Explanation:

Nix/NixOS already does the "job" that rustup would do on a traditional system, but in a declarative way that's integrated with the Nix package system. rustup is designed to manage different Rust versions and components in its own directory (~/.rustup), acting as a proxy for commands like rustc, cargo, etc.

When I installed rustup via Nix, it was placed in the system path, but it still tried to act like rustup, looking for toolchains managed by itself and expecting commands like rustup default stable or rustup component add.

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

79597010

Date: 2025-04-28 17:35:32
Score: 2
Natty:
Report link

the gorm official documentation doesn't mention the difference between the three ways of initialize a new *gorm.DB instance. But it seems WithContext is the one I need and Session is giving me all kinds of weird behavior.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Quan Ding

79597009

Date: 2025-04-28 17:34:31
Score: 1
Natty:
Report link

this solved my problem. delete node_modules and package-lock.json and then run:

npm install
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: amir seraj

79597000

Date: 2025-04-28 17:28:30
Score: 12.5
Natty: 8
Report link

Can anyone help me out here. I'm facing the same issue but only with .NET Framework 4.8.

More details here:

Azure Functions V1 on .NET Framework 4.8: TimerTrigger isn’t discovered [ No job functions found. Try making your job classes and methods public ]

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can anyone help me
  • RegEx Blacklisted phrase (2): help me out
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Starts with a question (0.5): Can anyone help me
  • Low reputation (1):
Posted by: tripler25

79596998

Date: 2025-04-28 17:28:30
Score: 4
Natty: 5
Report link

OttScott. You're right on. Enable Windows Firewall rule "Remote Event Log Management (RPC)" did it for me, even after 2 years. Thanks for taking the time to answer.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: tggandaff

79596989

Date: 2025-04-28 17:21:28
Score: 2.5
Natty:
Report link

When using npm init, separate keywords with commas (or spaces).

Based on @rsp's example

/caught $ npm init
...
keywords: promise async, UnhandledPromiseRejectionWarning, PromiseRejectionHandledWarning

...
# You cannot escape the space with a `\`. 

Adding this because npm is tagged

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @rsp's
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Jesulayomi

79596988

Date: 2025-04-28 17:20:28
Score: 2
Natty:
Report link

In my case, it was a bug in the older versions I was using quasar=2.14.2", with quasar/app-vite=1.7.1".
I upgraded those packages and it worked.

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

79596985

Date: 2025-04-28 17:19:27
Score: 3
Natty:
Report link
optimized_clips = []
for img_path in image_files:
    clip = (ImageClip(img_path)
            .set_duration(duration_per_image)
            .resize(height=480)  # Reducimos resolución
            .fadein(0.3)
            .fadeout(0.3))
    optimized_clips.append(clip)

# Concatenar los clips
optimized_video = concatenate_videoclips(optimized_clips, method="compose")

# Exportar el video optimizado
optimized_output_path = "/mnt/data/feliz_cumple_sin_texto_optimizado.mp4"
optimized_video.write_videofile(optimized_output_path, fps=24)
Reasons:
  • Blacklisted phrase (3): solución
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jefferson sierra

79596983

Date: 2025-04-28 17:18:27
Score: 2
Natty:
Report link

thanks for opening the issue!

I have looked at fixing in your github code and seems I made the same thing but it still gives me this error. If you have any idea why, I would be thankful! It works in useEffects, try catch block

Code:

            function generateUUID() {
                return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(
                    /[xy]/g,
                    function (c) {
                        const r = (Math.random() * 16) | 0;
                        const v = c === 'x' ? r : (r & 0x3) | 0x8;
                        return v.toString(16);
                    }
                );
            }

            async function copyAssetToAppDocs(): Promise<string> {
                const uuid = generateUUID();

                const asset = Asset.fromModule(
                    require('../../assets/images-notifications/image0.png')
                );
                await asset.downloadAsync();

                if (!asset.localUri) {
                    console.error('Asset localUri is missing');
                    throw new Error('Asset localUri is missing');
                }

                console.log('Asset localUri:', asset.localUri);
                console.log(asset.type, 'asset.type');

                const docsDir = FileSystem.documentDirectory;

                if (!docsDir) {
                    console.error('Document directory is missing');
                    throw new Error('Document directory is missing');
                }

                const targetPath = `${docsDir}${uuid}.png`; // random unique file

                console.log(targetPath, 'targetPath');
        
                await FileSystem.copyAsync({
                    from: asset.localUri.startsWith('file://')
                        ? asset.localUri
                        : `file://${asset.localUri}`,
                    to: targetPath,
                });

                const fileInfo = await FileSystem.getInfoAsync(targetPath);
                if (fileInfo.exists) {
                    console.log('File exists, using existing path:', targetPath);
                }
                console.log('File copied to:', targetPath);
                return targetPath.substring('file://'.length);
            }

            const attachmentUrl = await copyAssetToAppDocs();

            if (!attachmentUrl) {
                console.error('Failed to copy asset to app docs');
                return;
            }

            console.log(attachmentUrl, 'attachmentUrl');

            setImageurl(attachmentUrl);
            console.log(imgurl, 'imgurl');

            await Notifications.scheduleNotificationAsync({
                content: {
                    title: 'Finish your profile',
                    body: 'Ready to find your perfect match? Complete your profile now and start your journey to love!',
                    attachments: [
                        {
                            identifier: 'lalala',
                            url: attachmentUrl,
                            type: 'image/png',
                            typeHint: 'public.png',
                            hideThumbnail: false,
                        },
                    ],
                    data: { route: 'imageScreen' },
                },
                trigger: {
                    type: Notifications.SchedulableTriggerInputTypes.TIME_INTERVAL,
                    seconds: 5,
                },
            });

            console.log('Notification scheduled');
Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (2): I would be thankful
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zhibek Abdykalykova

79596981

Date: 2025-04-28 17:17:27
Score: 0.5
Natty:
Report link

I don't know what they did in the later versions of Godot (I think around version 4.4), but in one the versions earlier, after I turned on emulate 3 button mouse I could rotate the camera around the center by holding alt and moving the mouse.

Maybe I am missing something but after some update the only way I can turn around the camera around the center is through the axis icon in the top right corner by holding the mouse key and moving the mouse on it.

So in my case the options are a downgrade and possibly also redoing some work or getting used to the annoying movement system when I'm on the go in a bus or train (or even at home since I can't sit still in once place) where I can't easily pull out a mouse.

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

79596980

Date: 2025-04-28 17:16:26
Score: 2.5
Natty:
Report link

Make sure the dir. and Folder a are correctly assigned secondly check whether too executed the command in same Dir in which the Folder and Files are

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

79596978

Date: 2025-04-28 17:15:26
Score: 2.5
Natty:
Report link

please try the below command.

dmpmqmsg -m <queue manager name> -i <queue name> |grep MSI |grep <message id>

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

79596975

Date: 2025-04-28 17:13:25
Score: 0.5
Natty:
Report link

What does the PrimeVue DatePicker return? A date object or a formatted string? If PrimeVue parses it automatically, it's a Date, and your string regex validation gets skipped. This could be why your validations are having issues. Your form schema seems to expect a string. If they are expecting different types, this could be where the issue is happening.

If it does return a date object then could you simply do:

const formSchema = z.object({
  start_date: z
    .date()
    .refine((date) => date !== null, "Start date is required."),
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What do
  • Low reputation (0.5):
Posted by: David

79596972

Date: 2025-04-28 17:08:24
Score: 5
Natty:
Report link

Fortunately, there is a package that does this. You can read more about it at this link:


https://dev.to/dutchskull/poly-repo-support-for-dotnet-aspire-14d5

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

79596963

Date: 2025-04-28 17:03:22
Score: 1
Natty:
Report link

So, as of late, I haven't found any solution similar to the @PostConstruct one.

In the end, here's how I made it work without inheritance or @BeforeEach setups:

This is what the custom IntegrationTest annotation looks like:

@Retention(RetentionPolicy.RUNTIME)
@SpringBootTest(classes = SpringSecurityTestConfig.class)
@ActiveProfiles("test")
@Sql(scripts = "classpath:sql/clearTables.sql", executionPhase = ExecutionPhase.AFTER_TEST_METHOD)
@AutoConfigureMockMvc
@EnableWireMock({
    @ConfigureWireMock(name = "localazy-client", baseUrlProperties = "i18n.localazy.cdnUrl", filesUnderClasspath = "wiremock/localazy-client")
})
@MockitoSpyBean(types = {JavaMailSender.class, LocalazyService.class})
public @interface IntegrationTest {

}

Using Wiremock is a bit heavier than I would have liked, and I might lose a few seconds when running tests individually, but it's a compromise I can accept.

I don't need the IntegrationTestConfig configuration class anymore, as it's now empty.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: M4veR1K

79596960

Date: 2025-04-28 17:01:22
Score: 1
Natty:
Report link

For anyone still looking for a solution, the fix I found was to assign the shortcut to a button on my Razer mouse with the Razer Synapse app. In Synapse, click on the button you want to change, select "Launch" and select the "Website" option. Paste the filepath from your Windows shortcut into the field (e.g. "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Users\kekus\Documents\scripts\audio_switcher.ps1"). Save.
For whatever reason, the startup time is reduced to a few milliseconds.

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

79596956

Date: 2025-04-28 17:00:22
Score: 1.5
Natty:
Report link

Fixed it.

var viewer;
var options = {
    env: 'AutodeskProduction2',
    api: 'streamingV2',
    accessToken: ''
};

needed to be. 

var viewer;
var options = {
    env: 'AutodeskProduction2',
    api: 'streamingV2_EU',
    accessToken: ''
};


region of stroage was set to europe
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Doctor J

79596930

Date: 2025-04-28 16:46:18
Score: 2.5
Natty:
Report link

What would be the use for this ? Python already has built-in "templating". The main reason c++ requires templating is because everything needs type unlike in Python. In a way, C++ is a fairly dumb language compared to Python. It is overly complicated now with lots of bells and whistles that makes coding slow, laborious and brittle . A stripped down version of C++ like Python (or C) would be sufficient for all tasks,

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What would
  • Low reputation (0.5):
Posted by: whadhack

79596929

Date: 2025-04-28 16:45:17
Score: 1
Natty:
Report link

The problem was my trick to + or - 90 degrees to get the forward wall direction, which was backwards on the opposite side of the wall. Thanks to Sanjay Nakate for the solution. Here's the updated code for any wondering:

private void WallStick()
    {
        Vector3 normal = Vector3.zero;

        if (leftWall) normal = leftWallHit.normal;
        else if (rightWall) normal = rightWallHit.normal;

        // Calculate the wall-facing direction only on the XZ plane
        Vector3 wallForward = Vector3.Cross(normal, Vector3.up);  // Vector perpendicular to the wall normal
        if (rightWall) wallForward = -wallForward;

        float targetYRotation = Mathf.Atan2(wallForward.x, wallForward.z) * Mathf.Rad2Deg;

        playerMovement.rotationScript.yRotation = targetYRotation;
    }
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shog

79596928

Date: 2025-04-28 16:45:17
Score: 5.5
Natty: 5
Report link

If you had found the answer for this question please explain it . I am also working on document automation project.

Reasons:
  • RegEx Blacklisted phrase (2.5): please explain
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user30342609

79596927

Date: 2025-04-28 16:45:17
Score: 1
Natty:
Report link

When you run the ALTER DEFAULT PRIVILIGES statement, it only applies to objects created by the user who ran the command. If your table is getting recreated by a different user, then you need to run the command with the FOR USER clause. This will now target objects created by the specified user.

EX: I have schema_a.table_a, user_a, and user_b. Logged in as user_admin I ran the following to grant select privileges on table_a for user_a:

GRANT SELECT on schema_a.table_a TO user_a;

user_a now has select permissions as long as table_a is not recreated. If I want to maintain those permissions I could run something like this:

ALTER DEFAULT PRIVILEGES IN SCHEMA schema_a GRANT SELECT ON TABLES TO USER user_a;

However, this only applies to any tables created by my current logged in user user_admin. When an ETL process that uses user_b recreates the table, the privileges are lost. To achieve my desired behavior I would have to run the following:

ALTER DEFAULT PRIVILEGES FOR USER user_b IN SCHEMA schema_a GRANT SELECT ON TABLES TO USER user_a;

Now when user_b recreates the table user_a maintains their permissions.

AWS Docs: https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_DEFAULT_PRIVILEGES.html

Good blog post talking about this:
https://medium.com/@bob.pore/i-altered-my-redshift-schemas-default-privileges-why-can-t-my-users-query-my-new-tables-4a4daef11572

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Mr. Spock

79596923

Date: 2025-04-28 16:44:16
Score: 1
Natty:
Report link

One way to achieve this is to handle the navigation using state management, for example you have a high level screen with multiple screens as fragments once the deeplink is triggered in the app you can change the current selected frame and in that specific frame (in your case "chat screen") you navigate using Navigator or any other API to the desired screen with the data present in the deeplink metadata

Reasons:
  • Whitelisted phrase (-1): in your case
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Badr Kouki

79596920

Date: 2025-04-28 16:42:16
Score: 3.5
Natty:
Report link

From my conversation with the team, they are refusing to support (which is new because EVERY web server does this) https://github.com/spring-projects/spring-framework/issues/34834#issuecomment-2834546422

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

79596912

Date: 2025-04-28 16:35:15
Score: 3.5
Natty:
Report link

The solution was basically to add a while loop to retry the paste operation with a waiting interval between each attempt, until it succeeds.

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

79596906

Date: 2025-04-28 16:33:14
Score: 2.5
Natty:
Report link

I had this morning the same problem that https://repo.eclipse.org/content/groups/releases/org/eclipse/rcptt/ returned HTTP code 403. But now it works again, so I would assume that your problem is also fixed (the latest release version is 2.5.5, latest Snapshot version is 2.6.0-SNAPSHOT)

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

79596904

Date: 2025-04-28 16:32:13
Score: 13 🚩
Natty: 5
Report link

Hi I have the similar issue, I have done the cloud trail setup but I am not getting any LOG info for DeleteObject through an API but I am getting the info for PutObject and DeleteObjects. Can someone help me out what I might have missed

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can someone help me
  • RegEx Blacklisted phrase (2): Hi I have the
  • RegEx Blacklisted phrase (2): help me out
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the similar issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: fardeen shaikh

79596901

Date: 2025-04-28 16:29:12
Score: 2
Natty:
Report link

Make sure that

  1. The user on the server have permissions to open sockets

  2. SSH server is configured to allow creating sockets.

Try to connect via SSH as root or do su after you log in and try to use proxy.

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

79596896

Date: 2025-04-28 16:25:10
Score: 4
Natty:
Report link

Before executing

parted -s /dev/sda resizepart 3 100% 3 Fix Fix 3 \n

try to run:

sgdisk -e /dev/sda

You will move your GPT header to the end of the disk

(Sorry i cannot comment cause of low reputation :) )

Reasons:
  • Blacklisted phrase (0.5): i cannot
  • RegEx Blacklisted phrase (1): cannot comment
  • RegEx Blacklisted phrase (1.5): low reputation
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lucas

79596891

Date: 2025-04-28 16:22:10
Score: 0.5
Natty:
Report link

I haven't used this specific Testcontainers module, but it looks very promising: https://java.testcontainers.org/modules/mockserver/.

Overall, my experience with Testcontainers has been quite positive, and I would recommend it as a whole.

One challenge that may persist is the duration of tests, which can be difficult to manage, when implementing integration tests.

Reasons:
  • No code block (0.5):
Posted by: IgorekPotworek

79596888

Date: 2025-04-28 16:21:09
Score: 0.5
Natty:
Report link

Rather than using these front dependencies, I used the google and cdn publics librairies, this is not mandatory

<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>jquery</artifactId>
    <version>3.4.1</version>
</dependency>
<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>bootstrap</artifactId>
    <version>4.3.1</version>
</dependency>
<dependency>
    <groupId>org.webjars</groupId>
    <artifactId>webjars-locator-core</artifactId>
</dependency>

values in static/index.html

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css"/
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.min.js"></script>

I wrapped the get user code in a getUser() function to refresh the dom

    <script type="text/javascript">
        $.get("/user", function(data) {
            $("#user").html(data.name);
            $(".unauthenticated").hide()
            $(".authenticated").show()
        });
    </script>

To

    var getUser = function() {
                $.get("/user", (data) => {
                    if (data.name) {
                        $("#span-user").html(data.name);
                        $(".unauthenticated").hide();
                        $(".authenticated").show()
                    } else {
                        $(".unauthenticated").show();
                        $(".authenticated").hide()
                    }})
                }
    // call on load and after logout
     getUser();

For the section Making the Home Page Public, you can no longer extend the WebSecurityConfigurerAdapter and override configure(), instead you have to create a SecurityFilterChain bean, in a @Configuration & @EnableWebSecurity class

@Bean
public SecurityFilterChain filterChain(HttpSecurity http) { ...}

for the exception handling with 401 response in the guide, it's not working, and I replaced it

http 
...
.exceptionHandling(e -> e
                .authenticationEntryPoint(new HttpStatusEntryPoint(HttpStatus.UNAUTHORIZED))

with this custom endpoint /access/denied and its controller

http
...
.exceptionHandling((exceptionCustomizer) -> 
            exceptionCustomizer
            .accessDeniedPage("/access/denied")

the controller

@RestController
@RequestMapping("/access")
public class AccessController {

    @PostMapping("/denied")
    public ResponseEntity<Map<String, String>> accessDenied() {
        return ResponseEntity
        .badRequest()
        .body(Map.of("access", "denied"));
    }
}

And also add the pattern to requestMatchers() to allow the endpoint and the page to be accessed without login

.requestMatchers("/static/access-**", "/access**" ...).permitAll()

I tested this by commenting the _csrf token in the logout $.post() in the next step of the guide in index.html, the redirection to a custom error page is handled by the frontend (jquery/js here) in index.html

oauth2Login() is deprecated, instead use

http...
.oauth2Login(withDefaults())

In the next section Adding a Logout Endpoint I added a call to delete oauth cookies and invalidate the session, and replaced the Add a Logout Button $.post("/logout") .. in index.html

.logout(logoutCustomizer -> logoutCustomizer
            .invalidateHttpSession(true)
            // .logoutUrl("/logout") // default is /logout
            .logoutSuccessUrl("/") // redirect to homepage after logout
            .deleteCookies("JSESSIONID", "XSRF-TOKEN")
            .permitAll())

and changed http.csrf(c -> c.csrfTokenRepository(..)) to http....csrf(withDefaults()) and added a custom csrf endpoint called by frontend

@RestController
public class CsrfController {
    @GetMapping("/csrf")
    public CsrfToken getCsrf(CsrfToken csrfToken) {
        return csrfToken;
    } 
}

In the next section Adding the CSRF Token in the Client, I used the cdn library instead of the dependency

<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.min.js"></script>

And replaced the $.ajaxSetup(beforeSend: ) that adds a CSRF cookie before sending with $.post() that calls the /csrf endpoint to get a valid csrf token, and the oauth2 /logout default endpoint, it didn't work otherwise

var logout = function() {
            $.get("/csrf", (data) => {
                var csrfHeader = data.headerName
                var csrfValue = data.token
                $.ajax({
                    url: "/logout",
                    type: 'POST',
                    data: {
                        '_csrf': csrfValue
                    },
                    success: (s) => {
                        $("#span-user").html('');
                        $(".unauthenticated").hide();
                        $(".authenticated").show()
                        getUser() // refresh dom
                    },
                    error: (e) => {
                        if (e.status == 400 && e.responseJSON.access == 'denied') {
                            window.location.href = "/access-denied.html"
                        }
                    }
                })
            })
            return true;
        }

the next section Login with GitHub is to add a google auth, and requires you to configure a client and secret in the google cloud console

in the sub section How to Add a Local User Database I added a small in memory map that contains the users to simulate the described case

In the next section Adding an Error Page for Unauthenticated Users I didn't add the js in Detecting an Authentication Failure in the Client or override the /error endpoint, instead I created a custom static/access-401.html with the message retrieved with js in the url as a query param.

<div class="container text-danger error"></div>
    <script>
        let searchParams = new URLSearchParams(location.search)
        if (searchParams.has('error')) {
            $(".error").html(searchParams.get('error'))
        }
    </script>

In the sub section Adding an Error Message I replaced the failure handler to send a redirect to the 401 page instead of setting an attribute, note that setting the attribute might work but the message cannot be seen as it requires the user to login

http...
.failureHandler((request, response, exception) -> {
  response.sendRedirect("/access-401.html?error=".concat(exception.getMessage()));
})

In the next sub section Generating a 401 in the Server, it uses reactive but I used RestClient as a preference with some changes like the use of a reactive function .attributes(oauth2AuthorizedClient(client)) with .attributes((attributes) -> attributes.put(OAuth2AuthorizedClient.class.getName(), authorizedClient))

or the .bodyToMono() with .toEntity(new ParameterizedTypeReference<List<Map<String, Object>>>(){});

For the last part creating a WebCLient bean I made a basic RestClient without .filter()

@Bean
  public RestClient restClient(RestClient.Builder builder) {
    return builder
      .build();
  }

And here is the link to my github repo with the full project : url

Reasons:
  • Blacklisted phrase (1): here is the link
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: IKeepForgettingAccsMail

79596882

Date: 2025-04-28 16:17:08
Score: 4.5
Natty: 4
Report link

COMEME LOS HUEVOS ZORRA DE MRD

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

79596874

Date: 2025-04-28 16:12:07
Score: 0.5
Natty:
Report link

It turned out to be a mistake on my end, even though I've added PHP and Apache to PATH, I added them to the user's PATH variable, which will not be recognized when running Apache as a service.

So I ended up adding them to the System's PATH variable and everything worked just fine.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: AL-Kateb

79596857

Date: 2025-04-28 16:01:04
Score: 2
Natty:
Report link

import matplotlib.pyplot as plt

import numpy as np

# تعريف المتغير x وتجنب القسمة على صفر

x = np.linspace(-10, 10, 1000)

x = x[x != 0] # لتجنب x = 0

# تعريف الدالة وخط التقارب المائل

f_x = (6 * x**2 - 3 * x + 2) / x

asymptote = 6 * x - 3

# رسم الدالة وخط التقارب المائل

plt.figure(figsize=(10, 6))

plt.plot(x, f_x, label=r'$f(x) = \frac{6x^2 - 3x + 2}{x}$', color='blue')

plt.plot(x, asymptote, label=r'خط التقارب المائل: $y = 6x - 3$', linestyle='--', color='red')

# إعدادات الرسم

plt.axhline(0, color='black', linewidth=0.5)

plt.axvline(0, color='black', linewidth=0.5)

plt.ylim(-100, 100)

plt.xlim(-10, 10)

plt.grid(True)

plt.legend()

plt.title('تمثيل الدالة مع خط التقارب المائل')

plt.xlabel('x')

plt.ylabel('f(x)')

plt.show()

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

79596856

Date: 2025-04-28 15:59:03
Score: 1
Natty:
Report link

This is a bug in mypy versions prior to 1.12.0. Upgrading to 1.12 or better allows for proper handling of multiple inheritance.

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

79596839

Date: 2025-04-28 15:50:01
Score: 1
Natty:
Report link

I think you need to enable the Geocoding API from the Google Maps Platform in your GCP project.
Make sure you have the right project selected and you have permission (like Project Owner or Editor) to enable APIs.

You can find it here: https://console.cloud.google.com/marketplace/product/google/maps-backend.googleapis.com

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

79596836

Date: 2025-04-28 15:47:01
Score: 3
Natty:
Report link

The official way to attribute Purchase events correctly, is to use campaign_id, adset_id and ad_id and a custom tracking method

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

79596833

Date: 2025-04-28 15:47:01
Score: 1
Natty:
Report link

GrasTHC stands out as a premier destination for cannabis enthusiasts in Germany
and Europe, offering a curated selection of high-quality products such as

THC vape pens, authentic Cali weed, and potent HHC liquids.

Their THC vape pens provide a discreet and flavorful cannabis experience,

catering to both recreational and medicinal users.

The Cali weed in Germany collection features renowned strains like

Girl Scout Cookies, Blue Dream, and OG Kush, all cultivated without chemicals to ensure purity and potency. Additionally,

https://grasthc.com/cali-weed-deutschland/

https://grasthc.com/product/sour-diesel/

GrasTHC’s HHC liquids offer an alternative cannabinoid experience for those seeking variety.

With a commitment to premium quality, discreet cannabis shipping, and

customer satisfaction, GrasTHC has become a

trusted cannabis shop in Germany.

For more information and to explore their offerings, visit GrasTHC's official website.

https://grasthc.com/product-category/thc-produkte/vape-pen/

https://grasthc.com/about-us/

https://grasthc.com/cali-weed-deutschland/

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

79596829

Date: 2025-04-28 15:44:00
Score: 5.5
Natty:
Report link

Have you used any firewall component like Akeeba and redirect all 404?

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

79596819

Date: 2025-04-28 15:36:58
Score: 0.5
Natty:
Report link

If the units are consistent between terms, then FiPy doesn't care.

Yes, in [examples.diffusion.mesh1D](https://pages.nist.gov/fipy/en/latest/generated/examples.diffusion.mesh1D.html#module-examples.diffusion.mesh1D), Cp is specific heat capacity and rho is mass density.

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

79596809

Date: 2025-04-28 15:33:57
Score: 3.5
Natty:
Report link

Well it isn't a proper fix but more of a bypass, however adding verify=False seems to have gotten me through. It seems the issue is with the verification of the certificate rather than the authorisation

 requests.get("https://website/api/list", verify=False, headers={"Authorization": f'Bearer {key}'})

But it does still leave me with an error in console.

raise SSLError(e, request=request)

requests.exceptions.SSLError: HTTPSConnectionPool(host='website', port=443): Max retries exceeded with url: /api/list(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))

If someone knows/could explain how to make the verification work that would be appreciated especially as I cannot find my pem file

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1.5): I cannot find
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: DrunkenPipeBomb

79596803

Date: 2025-04-28 15:29:56
Score: 2.5
Natty:
Report link

canvas{

position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

}

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): can
  • Low reputation (1):
Posted by: OLC Yousra

79596802

Date: 2025-04-28 15:28:55
Score: 3
Natty:
Report link
  1. Open GitHub Copilot SettingsConfigure Code Completions.

  2. Click Edit Settings....

  3. Find GitHub › Copilot: Enable.

  4. Click the ✏️ next to the list.

  5. Set * from true to false.

  6. Click OK to save.

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yassine Magri

79596801

Date: 2025-04-28 15:27:55
Score: 1.5
Natty:
Report link

There is an example of exactly this use case in the current version of the Django (5.2) documentation: https://docs.djangoproject.com/en/5.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model

class ArticleAdmin(admin.ModelAdmin):
    def save_model(self, request, obj, form, change):
        obj.user = request.user
        super().save_model(request, obj, form, change)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike

79596798

Date: 2025-04-28 15:25:54
Score: 2
Natty:
Report link

import matplotlib.pyplot as plt

import numpy as np

t = np.linspace(0, 2 * np.pi, 100)

x = 16 * np.sin(t) ** 3

y = 13 * np.cos(t) - 5 * np.cos(2 * t) - 2 * np.cos(3 * t) - np.cos(4 * t)

plt.plot(x, y, color='red')

plt.title('Trái Tim')

plt.show()

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

79596789

Date: 2025-04-28 15:21:53
Score: 2.5
Natty:
Report link

Works for me. To open a file by double-clicking I had to create a custom command by copying the command for Chromium from the application menu and appending this option.

Reasons:
  • Whitelisted phrase (-1): Works for me
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Peter

79596787

Date: 2025-04-28 15:21:53
Score: 4.5
Natty: 6
Report link

I'm trying to set up my first flow (MS forms > Excel) and keep getting the error "Argument 'response_id" must be an integar value. I copied the part in the URL between ID= and &analytics... what am I doing wrong? I'm using this same ID for the Form ID and Response ID.

Reasons:
  • Blacklisted phrase (1): what am I doing wrong?
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ashley

79596774

Date: 2025-04-28 15:16:51
Score: 1
Natty:
Report link

You need to compile both the classes in the same satatement like below

javac -cp "./*" DataSetProcessor.java Driver.java

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

79596772

Date: 2025-04-28 15:15:50
Score: 4
Natty:
Report link

This GitHub repository gives you a full set of commands, which you can base yours off.

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

79596760

Date: 2025-04-28 15:10:49
Score: 1.5
Natty:
Report link

you must disable location for EXPORT DATA query using a pre-existing bigquery external connection.

So remove or comment location arg

# location="EU",
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: raphaelauv

79596745

Date: 2025-04-28 15:04:48
Score: 1
Natty:
Report link

I've had the same problem after updating to Angular Material 17.
Addionally the dialog window was placed at the bottom left of the screen.

The solution was to add the line @include mat.core(); inside the theme file after
@include mat.all-component-themes(...);

source: devgem.io: Navigating Angular Material 17 Update Issues: Ensuring Smooth Functionality for Selects, Dialogs, and More

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

79596742

Date: 2025-04-28 15:02:47
Score: 0.5
Natty:
Report link

Your available number of connections is 25 * [GBs of RAM on Postgres] - 3. Then the maximal number of connections that you use is [number of Django workers] * [max_size set in settings.py]. If the first one is bigger that the second one, then everything will work. See how many workers of Django you run (no way that's only one worker if you are over the limit) and adjust the number.
If you did not set this number, then Gunicorn runs [number of CPUs] * 2 + 1 workers by default. So even 1vCPU on your server would mean that you actually go over the limit.

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

79596737

Date: 2025-04-28 14:59:46
Score: 2.5
Natty:
Report link

I do this with a two pronged approach sort of way. I use our domain join account, but I use a password obfuscator script to convert the "real" password into a different encrypted one then use that as new password in the script.

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

79596736

Date: 2025-04-28 14:59:46
Score: 1.5
Natty:
Report link

There is no existing official documentation from Google explicitly detailing the lack of this feature or providing methods to implement it.

However, the absence of any relevant methods in the Google Chat API documentation and the presence of feature requests indicate that this is a limitation of Google Chat. A related feature request on the Google Issue Tracker can be found here:

Issue Tracker Link - Support Typing Indicators via Hangouts Chat API

You may subscribe by clicking on the star next to the issue number in order to receive updates and click +1 to let the developers know that you are impacted and want this feature to be available.

Please note that this link points to an older issue related to Hangouts Chat, which has since evolved into Google Chat. While the specific issue might be closed or merged, it reflects the historical request for this functionality. You might find more recent or related discussions by clicking the Google Issue Tracker link above.

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jats PPG

79596730

Date: 2025-04-28 14:55:46
Score: 0.5
Natty:
Report link

If you kept the basic port of Backstage for local development (3000 for Frontend and 7007 for Backend) you are exposing the endpoint on the Frontend instead of the Backend of Backstage, which doesn't work I think.

So maybe try to remove the "port: 3000" line in your app-config.yaml for the configuration of the proxy.

Could you try a configuration like this :

proxy:
 endpoints:
   /graphql:
     target: 'http://localhost:8083/graphql'
     allowedMethods: ['GET', 'POST']

You can try to make a test with this then :

POST http://localhost:7007/api/proxy/graphql

Here is an example on how to call the proxy endpoint within Backstage:

// Inside your component
const backendUrl = config.getString('backend.baseUrl'); // e.g. http://localhost:7007
fetch(`${backendUrl}/frobs-aggregator/summary`)
  .then(response => response.json())
  .then(payload => setSummary(payload as FrobSummary));

Source

If you could provide more information on your configuration it could help pin down the problem 🙂 (like the full app-config.yaml, the code where the proxy endpoint is actually used in backstage, maybe in a plugin or a React component)

Regards,

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

79596728

Date: 2025-04-28 14:55:46
Score: 1
Natty:
Report link

I actually was going through the exact same issue as you. Had everything set up correctly but the notification was not showing, tried refactoring my code as i doubted myself but it still didn't work.. i realised i had chrome notification turned off in my system settings. I am using Mac so i turned it back on. Restarted my local sever and re-registered my service worker and it worked... best of luck!

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

79596727

Date: 2025-04-28 14:55:46
Score: 3
Natty:
Report link

I will contract this work out to a third party (too complex for me). Thanks to all those who responded with comments, especially Lajos

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ralph

79596725

Date: 2025-04-28 14:52:45
Score: 4.5
Natty:
Report link

Apparently, the answer to this is NO

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