79610050

Date: 2025-05-07 08:02:31
Score: 1
Natty:
Report link

In my case, I executed the run from create-jest-runner using file from git diff instead of the real file.

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

79610042

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

A faster way to solve this problem is to use set operations to check what numbers already exist in a certain row/column/box instead of always iterating over them.

You could start by iterating over the entire board, constructing a set for each row/column/box, and then use a similar backtracking algorithm that uses those sets to check if a value at a certain position is valid.

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

79610030

Date: 2025-05-07 07:51:28
Score: 2.5
Natty:
Report link

In agreement with E-Berry, using Qt 6.8 on Ubuntu 22.04, clicking on the + sign resulted in "import QtQuick.Controls 2.15" getting added (automatically) to the top of my main.qml, which seems to be equivalent to the manual editing mentioned in the original post.

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

79610017

Date: 2025-05-07 07:42:26
Score: 2
Natty:
Report link
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser-arcade-physics.min.js"></script>
    <style>
        body {
            margin: 0;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <script>
        const config = {
            type: Phaser.AUTO,
            width: window.innerWidth,
            height: window.innerHeight,
            scene: {
                preload: preload,
                create: create,
                update: update
            },
            physics: {
                default: 'arcade',
                arcade: {
                    gravity: { y: 0 },
                    debug: false
                }
            }
        };

        let player;
        let enemy;
        let joystick;
        let score = 0;
        let scoreText;
        let gameOver = false;

        const game = new Phaser.Game(config);

        function preload() {
            this.load.image('player', 'assets/sprites/player.png');
            this.load.image('enemy', 'assets/sprites/enemy.png');
        }

        function create() {
            // Создание игрока
            player = this.physics.add.sprite(400, 300, 'player');
            player.setScale(0.5);
            player.setCollideWorldBounds(true);

            // Создание врага
            enemy = this.physics.add.sprite(100, 100, 'enemy');
            enemy.setScale(1.5);
            enemy.setTint(0xff0000);

            // Виртуальный джойстик
            joystick = this.plugins.get('virtual-joystick').add(this, {
                radius: 50,
                x: 100,
                y: config.height - 100,
                base: this.add.circle(0, 0, 50, 0x888888).setAlpha(0.5),
                thumb: this.add.circle(0, 0, 25, 0xcccccc).setAlpha(0.5)
            });

            // Текст счета
            scoreText = this.add.text(20, 20, 'Score: 0', {
                fontSize: '24px',
                fill: '#fff',
                backgroundColor: '#000'
            });

            // Коллизия игрока с врагом
            this.physics.add.overlap(player, enemy, hitEnemy, null, this);
        }

        function update() {
            if (gameOver) return;

            // Движение игрока
            const speed = 200;
            if (joystick.force > 0) {
                player.setVelocityX(joystick.velocityX * speed);
                player.setVelocityY(joystick.velocityY * speed);
            } else {
                player.setVelocity(0);
            }

            // Преследование врага
            this.physics.moveToObject(enemy, player, 250);

            // Обновление счета
            score += 0.1;
            scoreText.setText(`Score: ${Math.floor(score)}`);
        }

        function hitEnemy() {
            gameOver = true;
            player.setTint(0xff0000);
            this.physics.pause();
            this.add.text(config.width/2 - 100, config.height/2, 'Game Over!\nTap to restart', {
                fontSize: '32px',
                fill: '#fff',
                backgroundColor: '#000'
            }).setInteractive()
              .on('pointerdown', () => location.reload());
        }

        // Плагин для виртуального джойстика
        class VirtualJoystickPlugin extends Phaser.Plugins.BasePlugin {
            constructor(pluginManager) {
                super(pluginManager);
                pluginManager.registerGameObject('virtualJoystick', this.createJoystick);
            }

            createJoystick(config) {
                return new VirtualJoystick(this.scene, config);
            }
        }

        class VirtualJoystick {
            constructor(scene, { radius, x, y, base, thumb }) {
                this.scene = scene;
                this.radius = radius;
                this.base = base.setPosition(x, y);
                this.thumb = thumb.setPosition(x, y);
                this.position = new Phaser.Math.Vector2(x, y);
                this.force = 0;
                this.velocityX = 0;
                this.velocityY = 0;

                this.pointer = scene.input.activePointer;
                this.isDown = false;

                scene.input.on('pointerdown', this.onDown, this);
                scene.input.on('pointerup', this.onUp, this);
                scene.input.on('pointermove', this.onMove, this);
            }

            onDown(pointer) {
                if (Phaser.Geom.Circle.ContainsPoint(this.base.getBounds(), pointer)) {
                    this.isDown = true;
                }
            }

            onUp() {
                this.isDown = false;
                this.thumb.setPosition(this.position.x, this.position.y);
                this.force = 0;
                this.velocityX = 0;
                this.velocityY = 0;
            }

            onMove(pointer) {
                if (this.isDown) {
                    const deltaX = pointer.x - this.position.x;
                    const deltaY = pointer.y - this.position.y;
                    const angle = Math.atan2(deltaY, deltaX);
                    const distance = Math.min(Phaser.Math.Distance.Between(
                        this.position.x,
                        this.position.y,
                        pointer.x,
                        pointer.y
                    ), this.radius);

                    this.thumb.setPosition(
                        this.position.x + Math.cos(angle) * distance,
                        this.position.y + Math.sin(angle) * distance
                    );

                    this.force = distance / this.radius;
                    this.velocityX = Math.cos(angle);
                    this.velocityY = Math.sin(angle);
                }
            }
        }

        // Регистрация плагина джойстика
        Phaser.Plugins.PluginManager.register('virtual-joystick', VirtualJoystickPlugin, 'virtualJoystick');
    </script>
</body>
</html>

Для работы игры вам нужно:

  1. Разместить этот код в HTML-файле
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser-arcade-physics.min.js"></script>
    <style>
        body {
            margin: 0;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <script>
        const config = {
            type: Phaser.AUTO,
            width: window.innerWidth,
            height: window.innerHeight,
            scene: {
                preload: preload,
                create: create,
                update: update
            },
            physics: {
                default: 'arcade',
                arcade: {
                    gravity: { y: 0 },
                    debug: false
                }
            }
        };

        let player;
        let enemy;
        let joystick;
        let score = 0;
        let scoreText;
        let gameOver = false;

        const game = new Phaser.Game(config);

        function preload() {
            this.load.image('player', 'assets/sprites/player.png');
            this.load.image('enemy', 'assets/sprites/enemy.png');
        }

        function create() {
            // Создание игрока
            player = this.physics.add.sprite(400, 300, 'player');
            player.setScale(0.5);
            player.setCollideWorldBounds(true);

            // Создание врага
            enemy = this.physics.add.sprite(100, 100, 'enemy');
            enemy.setScale(1.5);
            enemy.setTint(0xff0000);

            // Виртуальный джойстик
            joystick = this.plugins.get('virtual-joystick').add(this, {
                radius: 50,
                x: 100,
                y: config.height - 100,
                base: this.add.circle(0, 0, 50, 0x888888).setAlpha(0.5),
                thumb: this.add.circle(0, 0, 25, 0xcccccc).setAlpha(0.5)
            });

            // Текст счета
            scoreText = this.add.text(20, 20, 'Score: 0', {
                fontSize: '24px',
                fill: '#fff',
                backgroundColor: '#000'
            });

            // Коллизия игрока с врагом
            this.physics.add.overlap(player, enemy, hitEnemy, null, this);
        }

        function update() {
            if (gameOver) return;

            // Движение игрока
            const speed = 200;
            if (joystick.force > 0) {
                player.setVelocityX(joystick.velocityX * speed);
                player.setVelocityY(joystick.velocityY * speed);
            } else {
                player.setVelocity(0);
            }

            // Преследование врага
            this.physics.moveToObject(enemy, player, 250);

            // Обновление счета
            score += 0.1;
            scoreText.setText(`Score: ${Math.floor(score)}`);
        }

        function hitEnemy() {
            gameOver = true;
            player.setTint(0xff0000);
            this.physics.pause();
            this.add.text(config.width/2 - 100, config.height/2, 'Game Over!\nTap to restart', {
                fontSize: '32px',
                fill: '#fff',
                backgroundColor: '#000'
            }).setInteractive()
              .on('pointerdown', () => location.reload());
        }

        // Плагин для виртуального джойстика
        class VirtualJoystickPlugin extends Phaser.Plugins.BasePlugin {
            constructor(pluginManager) {
                super(pluginManager);
                pluginManager.registerGameObject('virtualJoystick', this.createJoystick);
            }

            createJoystick(config) {
                return new VirtualJoystick(this.scene, config);
            }
        }

        class VirtualJoystick {
            constructor(scene, { radius, x, y, base, thumb }) {
                this.scene = scene;
                this.radius = radius;
                this.base = base.setPosition(x, y);
                this.thumb = thumb.setPosition(x, y);
                this.position = new Phaser.Math.Vector2(x, y);
                this.force = 0;
                this.velocityX = 0;
                this.velocityY = 0;

                this.pointer = scene.input.activePointer;
                this.isDown = false;

                scene.input.on('pointerdown', this.onDown, this);
                scene.input.on('pointerup', this.onUp, this);
                scene.input.on('pointermove', this.onMove, this);
            }

            onDown(pointer) {
                if (Phaser.Geom.Circle.ContainsPoint(this.base.getBounds(), pointer)) {
                    this.isDown = true;
                }
            }

            onUp() {
                this.isDown = false;
                this.thumb.setPosition(this.position.x, this.position.y);
                this.force = 0;
                this.velocityX = 0;
                this.velocityY = 0;
            }

            onMove(pointer) {
                if (this.isDown) {
                    const deltaX = pointer.x - this.position.x;
                    const deltaY = pointer.y - this.position.y;
                    const angle = Math.atan2(deltaY, deltaX);
                    const distance = Math.min(Phaser.Math.Distance.Between(
                        this.position.x,
                        this.position.y,
                        pointer.x,
                        pointer.y
                    ), this.radius);

                    this.thumb.setPosition(
                        this.position.x + Math.cos(angle) * distance,
                        this.position.y + Math.sin(angle) * distance
                    );

                    this.force = distance / this.radius;
                    this.velocityX = Math.cos(angle);
                    this.velocityY = Math.sin(angle);
                }
            }
        }

        // Регистрация плагина джойстика
        Phaser.Plugins.PluginManager.register('virtual-joystick', VirtualJoystickPlugin, 'virtualJoystick');
    </script>
</body>
</html>
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Плд

79610014

Date: 2025-05-07 07:41:25
Score: 0.5
Natty:
Report link

You can Add Visual Studio editor support for another language.

VS2022 uses TextMate Grammars for this, which seems to support comments, so you can add a new language with files of extension ".txt" or ending with "CMakeLists.txt" and set wraps of # and \n as its comment wrapper. There is a tag, if you struggle implementing that.

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

79610012

Date: 2025-05-07 07:38:25
Score: 0.5
Natty:
Report link

You can try below annotation on doSomething() method:

@Retryable(retryFor = MyRetryableException.class, notRecoverable=JustGiveUpException.class, maxAttempts = 3, backoff = @Backoff(delay = 2000))

Most probably, the spring-retry version that you are using, requires "notRecoverable" attribute to specify the Exception(s) which needs to be excluded from retry logic.

Hope it works.

Reasons:
  • Whitelisted phrase (-1): Hope it works
  • No code block (0.5):
  • Low reputation (1):
Posted by: user2791367

79610010

Date: 2025-05-07 07:38:24
Score: 7.5 🚩
Natty:
Report link

We have same issues here. No Info on https://status.firebase.google.com/

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): have same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Patrick

79610009

Date: 2025-05-07 07:38:24
Score: 1
Natty:
Report link
Thanks everyone for the insightful discussion! After reviewing all the responses and experimenting myself, I found that the original issue comes from counting the letters from the two names separately for "TRUE" and "LOVE". According to Dr. Angela Yu’s 100 Days of Code (Day 3), the correct logic is to combine both names first, then count how many times each letter from "true" and "love" appears in the combined string. Here's a simplified and corrected version of the logic that works accurately:

python
Copy
Edit
print("Welcome to the Love Calculator!")
name1 = input("What is your name?\n").lower()
name2 = input("What is their name?\n").lower()
combined_names = name1 + name2

true_count = sum(combined_names.count(letter) for letter in "true")
love_count = sum(combined_names.count(letter) for letter in "love")

score = int(str(true_count) + str(love_count))

if score < 10 or score > 90:
    print(f"Your score is {score}, you go together like coke and mentos.")
elif 40 <= score <= 50:
    print(f"Your score is {score}, you are alright together.")
else:
    print(f"Your score is {score}.")
This approach follows the course logic and produces the expected result (53 for “Angela Yu” and “Jack Bauer”). Hopefully this clears it up for anyone still confused.
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): What is your
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kazeer

79609987

Date: 2025-05-07 07:28:21
Score: 2.5
Natty:
Report link

It's not --experimenta-https but --experimental-https your forgot the l

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

79609978

Date: 2025-05-07 07:24:19
Score: 2.5
Natty:
Report link

Same thing happened to me, but with <CR>: "Illegal base64 character d".
Same solution with the MimeDecoder applies

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Wim van der Veen

79609977

Date: 2025-05-07 07:22:19
Score: 3.5
Natty:
Report link

After forcing the update on Debian, I no longer have the problem.

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

79609968

Date: 2025-05-07 07:16:17
Score: 2
Natty:
Report link
Хуй
  1. header 1 header 2
    cell 1 cell 2
    cell 3 cell 4
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Work

79609961

Date: 2025-05-07 07:13:16
Score: 4
Natty: 4
Report link

Right click on .pom file and add as Maven project... solved for me.

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

79609960

Date: 2025-05-07 07:12:15
Score: 2
Natty:
Report link

Try using ListView() instead of Column()

this makes next screen scrollable, and no more overflow error.

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

79609959

Date: 2025-05-07 07:11:14
Score: 6 🚩
Natty: 6
Report link

Is there any update on this?

I also would like to build an app that can identify/suggest object in view.

Reasons:
  • Blacklisted phrase (1): update on this
  • Blacklisted phrase (1): Is there any
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Guest

79609950

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

woow nice <a href="https://www.divinesahajyog.com/how-to-meditate/

" rel="follow">how to meditate </a>

<a href="https://www.divinesahajyog.com/the-16-names-of-shri-radha-krishna/

" rel="follow">16 namaes of shir radha krishna </a>

<a href="https://www.divinesahajyog.com/being-aware-of-vibrations/

" rel="follow">aware of vibration </a>

<a href="https://www.divinesahajyog.com/swadishthan-chakra/" rel="follow">swadishthan chakra </a>

<a href="https://www.divinesahajyog.com/how-we-should-stay-in-a-realized-state/

" rel="follow">how we should stay in a realized state </a>

<a href="https://www.divinesahajyog.com/balance-our-subtle-vishuddhi-chakra/" rel="follow">balance our subtle vishuddhi chakra </a>

<a href="https://www.divinesahajyog.com/swadishthan-chakra/

" rel="follow">swadishthan chakra </a>

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

79609948

Date: 2025-05-07 07:07:13
Score: 2
Natty:
Report link

It looks like Google Cloud Service Issue. Experiencing same issues.

Workaround: Customers can move the workload to any other region outside of europe-west3. We moved functions to europe-west1 and it fixed issues for us.

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

79609938

Date: 2025-05-07 07:03:11
Score: 3.5
Natty:
Report link

To resolve issues with Visual Studio not recognizing Unity code, you should check the integration between Unity and Visual Studio. Here are a few steps you can follow:

If any of these are misconfigured or missing, Visual Studio may not properly recognize Unity code, resulting in build errors or missing references. Once everything is correctly set up, Unity and Visual Studio should work together seamlessly.

If you've verified all the above settings and it still doesn't work, please provide more details about the specific errors or build issues you're encountering. That would help in diagnosing the problem further.

Also, keep in mind that when using tools like ILSpy to reverse-engineer or decompile Unity games, the resulting code may be incomplete or corrupted, which can often lead to various unexpected errors when trying to rebuild or modify the project.

Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • RegEx Blacklisted phrase (2): it still doesn't work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SoulSystem

79609931

Date: 2025-05-07 06:59:10
Score: 3.5
Natty:
Report link

Your JSON is not well-formed. You may need to check the JSON string you posted.

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

79609928

Date: 2025-05-07 06:57:09
Score: 0.5
Natty:
Report link

I refer to other answers and comments why your code did not compile.

What I want to mention is that you do not need the std::vector if you have only one bitmap.

Create the bitmap directly on the stack

Gdiplus::Bitmap bitmap(L"images.png");
nWidth  = bitmap.GetWidth();
nHeight = bitmap.GetHeight();
graphics.DrawImage(&bitmap, 950, 200, nWidth, nHeight);

Create the bitmap on the heap

auto bitmap = std::make_unique<Gdiplus::Bitmap>(L"images.png");
nWidth  = bitmap->GetWidth();
nHeight = bitmap->GetHeight();
graphics.DrawImage(bitmap.get(), 950, 200, nWidth, nHeight);

bitmap is an object (and not a pointer) of type std::unique_ptr<Gdiplus::Bitmap>. During destruction, the Gdiplus::Bitmap object it points to will also be destroyed. There is no need to put the unique_ptr into a container.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: michael3.14

79609923

Date: 2025-05-07 06:55:09
Score: 2
Natty:
Report link

How about

def contigious_subarrays(A:list):
    for i in range(len(A)):
        temp=[]
        for ii in range(i,len(A)):
            temp.append(A[ii])
            print(temp)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: TaDa

79609920

Date: 2025-05-07 06:53:08
Score: 1.5
Natty:
Report link

There were some mentions here of using --preview and being demoted to --unstable , but just wanted to say that if you only want the single specific unstable feature these days you can do: black --preview --enable-unstable-feature string_processing .

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

79609914

Date: 2025-05-07 06:47:06
Score: 2
Natty:
Report link

You can set the setting for CELERY_MONGODB_SCHEDULER_CONNECTION_ALIAS to something other than default. and it will work just fine.

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

79609913

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

I think it's good. My suggestion is to use ValueObjects to make your code more readable and also easier to implement validations and also compare their values. Example for description, phone, address etc.

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

79609902

Date: 2025-05-07 06:39:04
Score: 2.5
Natty:
Report link

You’re wrong in 2’nd join. Change it to “join article_categories on article_categories.category_id=category.Id”.

Good luck 👍

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

79609901

Date: 2025-05-07 06:39:04
Score: 3
Natty:
Report link

Here is the path:
/etc/ssl/certs/ca-certificates.crt

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

79609896

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

Even after calling perf_event_open for multiple different PIDs and attaching with bpf_program__attach_perf_event_opts, it still fails with the error: failed to create BPF link for perf_event FD 22: -17 (File exists).

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

79609883

Date: 2025-05-07 06:22:58
Score: 0.5
Natty:
Report link

There's a discussion at the following link about how to solve this issue: https://github.com/metafizzy/flickity/issues/691

The solution is to configure the imagesLoaded property and it is documented at: https://flickity.metafizzy.co/options.html#imagesloaded

Here's example usage:

<div data-flickity='{"imagesLoaded": true}' class="carousel">
    <div class="carousel-cell">
        <img src="..."/>
    </div>
</div> 
Reasons:
  • Blacklisted phrase (1): how to solve
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Neal

79609880

Date: 2025-05-07 06:17:57
Score: 1
Natty:
Report link

You can use nltk as well. I have two examples to show here by variable named as text. One is english and other one is spanish with some edge cases that are often seen, especially in sceintific texts where unit symbols might have period in it.

!pip install nltk
import nltk
from nltk.tokenize import sent_tokenize
nltk.download('punkt_tab')
text = "This is the first sentence 2m.g. of medicine used. And this is the second one!"
text = "La masa del cuerpo era de 5.0 kg y se movía a una velocidad de 3.2 m/s. La energía total (E) se calculó con la fórmula E = mc². La aceleración fue de 9.81 m/s², equivalente a la gravedad terrestre. Se utilizó una solución de 0.25 mol de NaCl. La temperatura alcanzó los 37.5 °C en tres minutos."
sentences = sent_tokenize(text)
print(sentences)

# Output is an array of seperate sentences
# ['La masa del cuerpo era de 5.0 kg y se movía a una velocidad de 3.2 m/s.', 'La energía total (E) se calculó con la fórmula E = mc².', 'La aceleración fue de 9.81 m/s², equivalente a la gravedad terrestre.', 'Se utilizó una solución de 0.25 mol de NaCl.', 'La temperatura alcanzó los 37.5 °C en tres minutos.']
Reasons:
  • Blacklisted phrase (3): solución
  • Whitelisted phrase (-1.5): You can use
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Saifullah

79609869

Date: 2025-05-07 06:06:54
Score: 1.5
Natty:
Report link

I tried to run it on a server in the United States, but it worked normally, but when I ran it on a device in China, it showed that I couldn't access it. I guess I might have directly rejected the ip device in China.

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

79609867

Date: 2025-05-07 06:04:54
Score: 2
Natty:
Report link

ARC Foundation is Kerala’s No.1 GATE coaching center, located in Calicut and Cochin. We specialize in top-quality coaching for GATE, LET, and other technical entrance exams. With expert faculty, updated materials, and consistent results, we ensure success.

https://gatecoachingarc.com/

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

79609852

Date: 2025-05-07 05:44:49
Score: 3
Natty:
Report link

I think scrollbar-gutter is the best replacement, so the scrollbar can appear and disappear without causing movement of the content.

https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter

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

79609848

Date: 2025-05-07 05:42:48
Score: 2
Natty:
Report link

I got this working, but the actual problem was a floating point error. There may have been other issues, but I have since resolved them if you would like the asset you can find it here: https://assetstore.unity.com/packages/vfx/shaders/sprite-renderer-palette-swap-shader-urp-316189.

Also as buttermilch said I may have been passing incorrectly using vertex color, although I think it's used here for the purposes of lighting since this is a lit sprite shader, idk this is like 75% copy pasted from the default unity sprite lit shader.

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

79609847

Date: 2025-05-07 05:39:47
Score: 5.5
Natty:
Report link

Follow this blog to setup extensions with flavors.

https://medium.com/@itchange.nw/flutter-tips-to-add-ios-notification-service-extension-with-flavor-the-right-way-f12344a23b25

Reasons:
  • Blacklisted phrase (1): this blog
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ragul PR

79609839

Date: 2025-05-07 05:29:45
Score: 4
Natty:
Report link

Booking::where('id',$request->id)->update(['status'=>$request->status);

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sidharth Kashyap

79609838

Date: 2025-05-07 05:28:44
Score: 2.5
Natty:
Report link

In your controller action method, you can explicitly return a JsonResult() with custom settings:
return new JsonResult(obj, options);

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

79609837

Date: 2025-05-07 05:26:44
Score: 1.5
Natty:
Report link

You can delete the Android folder and then run
flutter create . command, and this might help

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

79609836

Date: 2025-05-07 05:25:43
Score: 3
Natty:
Report link

This is an appreciation comment! I was working all night asking chatgpt how to do this. Couldn’t find any documentation either on this. You saved me and my sanity.

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

79609834

Date: 2025-05-07 05:22:43
Score: 1.5
Natty:
Report link

You may wish to try

Either capture the process id you want to kill via stdin or replace $pid with the process id.

echo kill -9 $pid`;

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

79609829

Date: 2025-05-07 05:17:41
Score: 4.5
Natty: 7
Report link

Thank you, you save my carreer

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Atanasius Tendy

79609827

Date: 2025-05-07 05:14:40
Score: 2
Natty:
Report link

If you're seeking a way to beautify SQL queries as you type directly within MySQL Workbench, I developed a lightweight tool that can assist this. Please go through MySQL Workbench Beautifier. Hope this helps. Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bishal Shrestha

79609819

Date: 2025-05-07 05:08:39
Score: 2
Natty:
Report link

I think problem is with conflicting types which already exists. Try to declare a global interface - interface UserRequestBody, for example and use in your route

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

79609805

Date: 2025-05-07 04:50:34
Score: 3
Natty:
Report link

try reloading the window

use ctrl + shift + p and then search for reload window

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

79609799

Date: 2025-05-07 04:43:32
Score: 4
Natty:
Report link

How much heap size is given Xmx and Xms ? sometimes providing huge heap size also will cause OOM issues.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: Krishna Alapati

79609791

Date: 2025-05-07 04:35:30
Score: 0.5
Natty:
Report link

Create new role (cosmos db has their own roles)

This have full access:

New-AzCosmosDBSqlRoleDefinition -AccountName aircontdb -ResourceGroupName aircontfullstack -Type CustomRole -RoleName MyReadWriteRole -DataAction @( 'Microsoft.DocumentDB/databaseAccounts/readMetadata', 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/*', 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/*') -AssignableScope "/"

For development (Using powershell):
Find your object Id:

Portal Azure->Microsoft Entra->Admin->Users (MyUser)->Properties->Id Object

export variables:

$resourceGroupName = "aircontfullstack"

$accountName = "aircontdb"

$readOnlyRoleDefinitionId = "/subscriptions/028c155e-3493-4da4-b50e-309b4cd1aaca/resourceGroups/aircontfullstack/providers/Microsoft.DocumentDB/databaseAccounts/aircontdb/sqlRoleDefinitions/6514e4c8-eef0-46bc-a696-d2557742edd0" # as fetched above

# For Service Principals make sure to use the Object ID as found in the Enterprise applications section of the Azure Active Directory portal blade.

$principalId = "your-obj-id"

Assign the created role to your ObjectID:
New-AzCosmosDBSqlRoleAssignment -AccountName $accountName -ResourceGroupName $resourceGroupName -RoleDefinitionId $readOnlyRoleDefinitionId -Scope "/" -PrincipalId $principalId

For producton (Using powershell):
Set up roles managed by system
Only change your PrincipalId using your identity id object.

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

79609784

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

The feature you describe is not exactly a Route 53 feature. It is a domain search order that is configured on your workstation/EC2. If you configure the list of domains to go through, it will let you find your host. Depending on your EC2 OS, it is configured differently. Let's say you have a Linux host. if you navigate to /etc/resolv.conf and edit it, you can configure search order like:

nameserver x.x.x.x

search example.com prod.example.com

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

79609783

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

The idea of single page application is that you never leave first loaded page. This means it's impossible only with php. All other data is loaded by ajax and changes the contents of current page. It speeds up your site only in case when you can preload next page while showing the first one. But if your next part of data depends on input from the first one it cannot be faster anyway. But with single page you can preload all other files pictures, fonts, css, js etc. And after input you should not loose time for that stuff, but only for response.

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

79609778

Date: 2025-05-07 04:20:27
Score: 2
Natty:
Report link

Thanks a lot for your answer. I had the same issue when running an old version of ruby on rails with a newer postgres database. I substituted d.adsrc with pg_get_expr(d.adbin, d.adrelid) in de ruby postgres adapter and the problem went away.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luis Tavera

79609774

Date: 2025-05-07 04:16:26
Score: 3
Natty:
Report link

Create new billing account with US address and currency by USD, Google Map service will create new project and link to your new bill. Problem solve

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

79609769

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

This tool, will let you do it using duckduck go ai chat : https://gist.github.com/henri/34f5452525ddc3727bb66729114ca8b4

Only seems to work on mac and linux. Also, you need to use fish shell in the examples provided. But it is easy to change them to work in zsh

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

79609756

Date: 2025-05-07 03:38:18
Score: 2
Natty:
Report link

For .NET 4.0, add the following line code at the Application_start session of the Global.asax:

ServicePointManager.SecurityProtocol = (SecurityProtocolType)768 | (SecurityProtocolType)3072;

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

79609752

Date: 2025-05-07 03:36:17
Score: 1.5
Natty:
Report link

Another workaround is to use Git Bash. First, use GitHub Desktop Repository settings and set it to another user name and email just for this repository. Then, commit via GitHub Desktop. Then open Git Bash and CD into the repo and then run 'git push' command. A prompt would come up asking to authenticate after which git push command would work.

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

79609748

Date: 2025-05-07 03:30:16
Score: 2
Natty:
Report link

in Blender, when you select an edge in edit mode, a small menu will appear at the top that says “select” in that box you can check the selection you want for an edge.. enter image description here

You also have the possibility to choose the type of selection you want by clicking on any edge or group of edges and press “f3” this will display a small menu where by typing ‘select’ you can select the type of selection you want. for your specific case, you can select the loop of edges you want, select from the select menu “cheker deselect” and modify the parameters to select only a group of edges. enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Silva Quintero Ricardo Santiag

79609746

Date: 2025-05-07 03:25:15
Score: 2
Natty:
Report link

Issue is with EscapeTokenizer.java in mysql-connector-java-5.1.7. Apostrophe in comment is not properly interpreted.

This works fine with mysql-connector-java-5.1.49. If upgrade is not an option, you will have to remove or escape the apostrophe in comment.

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

79609739

Date: 2025-05-07 03:15:12
Score: 0.5
Natty:
Report link

Get yourself a copy of IPC-2221 Generic Standard on Printed Board Design (previously called IPC-D-275). My copy is printed in February 1998. Published by the Institute for Interconnecting and Packaging Electronic Circuits. It is 98 pages, very readable and well-organized. It has all sorts of good stuff like trace width, thickness, spacing, component connections, etc. For just trace widths there are several online trace width calculators provided for free by some circuit board companies, like AdvancedPCB. On their website the even cite IPC-2221 as their source.

In addition to these consideration there are also application-specific considerations having to do with high frequency signals and noise pickup. For example, a trace carrying an Radio Frequency signal cannot be too long or the trace itself will start acting like a transmission line.

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

79609733

Date: 2025-05-07 03:00:09
Score: 0.5
Natty:
Report link

Finally figured it out. @Vijay's comment gave me an insight where the issue may be. The solution was in the way the request was getting posted. By default, I had the request headers default to 'multipart form data'.

I had to update the post request function to have parameterized contenttype value:

public [return] DoPostRequest([param1], [param2], ContentTypes contentType)
{
    ...
    [httpclient].DefaultRequestHeaders.Add("ContentType", contentType.ToString());
    ...
}

where: ContentTypes is

public class ContentTypes
{
    public static readonly ContentTypes Name = new("ContentType");
    public static readonly ContentTypes JSON = new("application/json");
    public static readonly ContentTypes XML = new("application/xml");
    public static readonly ContentTypes TEXT = new("text/plain");
    public static readonly ContentTypes HTML = new("text/html");
    public static readonly ContentTypes FORM_URLENCODED = new("application/x-www-form-urlencoded");
    public static readonly ContentTypes MULTIPART_FORM_DATA = new("multipart/form-data");

    public string Value { get; }

    private ContentTypes(string value) => Value = value;

    public ContentTypes()
    {
    }

    public override string ToString() => Value;
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Vijay's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: the.herbert

79609731

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

This way works:

alertmanager:
  config:
    global:
      resolve_timeout: 5m
    route:
      receiver: 'slack-notifications'
      group_by: ['alertname']
      group_wait: 10s
      group_interval: 5m
      repeat_interval: 1h
    receivers:
      - name: 'slack-notifications'
        slack_configs:
          - api_url: 'https://hooks.slack.com/services/XXXXXXXX/YYYYYYYYY/ZZZZZZZZZZZZZZZZZZ'
            channel: '#alert-channel'
            send_resolved: true
            username: 'Prometheus'
            text: "{{ .CommonLabels.alertname }}: {{ .CommonAnnotations.description }}"
...
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: realworldchat

79609720

Date: 2025-05-07 02:36:03
Score: 4.5
Natty:
Report link

I was very impressed by SVG Path Visualizer with step-by-step explanation of paths:

SVG Path Visualizer screenshot

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

79609704

Date: 2025-05-07 02:10:58
Score: 0.5
Natty:
Report link

The most likely issue is that- because your collision detection is discrete rather than continuous- there are situations where an object moves from one side of a hitbox to another in a single step. You can always throw more steps at the problem so that fast-moving objects move less during each physics step. This doesn't completely prevent misses, it just means that objects would have to move faster in order to miss.

Another potential issue is that the reflection angle seems to be based entirely on the incident angle and not the normal of the hit surface. This will create unrealistic results and could cause objects to be sent further into each other upon colliding.

If you want the actual solution, it's a swept volume test. There are plenty of resources out there for implementing this yourself, so I'll skip right to the Python libraries. Google gives me pybox2d, or for 3D, pybullet, which in turn uses OpenGJK.

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

79609693

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

I would try removing await, await creates a new promise that your code isn't fulfilling so it just stops and doesn't respond back, also you might want to try using

(im new to await so I might have explained that wrong)
"interaction.deferReply();" in the future this give your bot up to 15 minutes to respond

i hope i helped!

id try removing await and just use:

 interaction.reply('Pong!');
Reasons:
  • RegEx Blacklisted phrase (1.5): im new
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: skyealar

79609690

Date: 2025-05-07 01:51:53
Score: 1
Natty:
Report link

Interesting enough after nearly 5 years passenger still does not support feature to upgrade Websockets, in this case socket.io.

I have used PM2 to run nodejs app and it requires terminal access, so may not be suitable (and solution) for everyone. I would not call it a solution.

Another way is if hosting company can add proxy pass for websockets in vHost file - this requires terminal acces from their end, restarting apache etc. Again something that isn't end-user friendly.

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

79609674

Date: 2025-05-07 01:15:43
Score: 3.5
Natty:
Report link

for local repeated usage, can have a look at https://maven.apache.org/download.cgi#Maven_Daemon

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

79609665

Date: 2025-05-07 00:56:38
Score: 4
Natty:
Report link

nvm the issue was just because I was missing spacing in the rgb values

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

79609664

Date: 2025-05-07 00:55:38
Score: 0.5
Natty:
Report link

I found the solution. Apparently there is a reporter argument in tar_make() . If I call instead tar_make(reporter = "terse") , then the progress bar disappears.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jvlandingin

79609656

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

yep was quite unexpected to me ...

something is null before and then not null after in the table ...
I'd say it's a BigQuery bug

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

79609651

Date: 2025-05-07 00:26:32
Score: 3.5
Natty:
Report link

Take a look at Primi (https://github.com/smuuf/primi) this is a scripting language written in PHP & interpreted in PHP.

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

79609642

Date: 2025-05-07 00:02:27
Score: 3.5
Natty:
Report link

Okay, my original question has been clearly answered, so this thread can be closed.
1. I now know about my_vec[0].get() for obtaining the pointer that I needed in this case.
2. I understand that I should not use C-style casts in C++; I have expressed the reason that I used it here, which was to debug the errors that I was getting.
3. Thank you all for the pointers (so to speak) to references on smart pointers in C++; I will indeed be pursuing these references further, to enhance my understanding of how to properly use them!!
4. and once again, I deeply thank the members of this community for your (sometimes gruff, but always helpful) assistance in solving my issues with this language; my earlier posts that led up to this one, were somewhat ambiguous and rambling - that can be a result of not initially knowing quite what I am trying to ask about, and what the correct terminology is... Nevertheless, you pursevered and stuck with me, and I now understand what I need to do, to proceed with my C++ development...

Long Live stackoverflow !!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I am trying to
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gorlash

79609636

Date: 2025-05-06 23:56:25
Score: 1.5
Natty:
Report link

HRESULT 0x80070002 means ERROR_FILE_NOT_FOUND, indicating a missing or misconfigured file. Fix it by verifying file paths, running sfc /scannow, or resetting Windows Update components.

Ever faced frustrating system errors? Let’s discuss troubleshooting strategies!

👉 Upgrade your productivity with AI-powered tools: Get Microsoft Office 2024 Here

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Joe Mahlow

79609617

Date: 2025-05-06 23:24:19
Score: 0.5
Natty:
Report link

A proposed solution (GitHub project) working on JDK 11 and later with corresponding version 11 of the openjfx libraries.

The gist is that you get a hold of the reference by creating and initializing the gui app yourself, not let Application.launch create the instance:

class Main {
    void work() {
        // Reference
        Gui gui = new Gui(this/*for callbacks*/, "data", 'U', "initialize", 17, "with");
        // Start
        Platform.startup(() -> gui.start(new Stage()));    
    }

    // Allow the Gui-app to return results by means of callback
    void reportResult(double d, String desc) {
    }
}

class Gui extends javafx.application.Application {
//... 
// has a button that calls `Main.reportResult()` when pressed virtually returning values as any function call.
}

The project covers the use case of repeatedly/sequentially calling the gui utility application from within the main workflow app.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: parml

79609611

Date: 2025-05-06 23:18:17
Score: 0.5
Natty:
Report link
using Moq;
using Xunit;
using System.Data;
using Oracle.ManagedDataAccess.Client;

public class CConexionContextTests
{
    [Fact]
    public void GetConnection_ShouldOpenConnection_WhenConexionIsNull()
    {
        // Arrange
        var mockOracleConnection = new Mock<OracleConnection>();
        var mockConexionContext = new Mock<CConexionContext>();

        // Simulamos que la cadena de conexión es la esperada
        mockConexionContext.Setup(c => c.getStringConnection()).Returns("Data Source=someSource;User Id=someUser;Password=somePass;");
        
        // Simulamos el comportamiento de la conexión Oracle
        mockOracleConnection.Setup(c => c.Open()).Verifiable();
        mockOracleConnection.Setup(c => c.State).Returns(ConnectionState.Open);

        // Act
        var result = mockConexionContext.Object.GetConnection(ref mockOracleConnection.Object);

        // Assert
        mockOracleConnection.Verify(c => c.Open(), Times.Once()); // Verifica que Open haya sido llamado exactamente una vez.
        Assert.Equal(ConnectionState.Open, result.State); // Verifica que la conexión esté abierta.
    }

    [Fact]
    public void GetConnection_ShouldReturnExistingConnection_WhenConexionIsNotNull()
    {
        // Arrange
        var mockOracleConnection = new Mock<OracleConnection>();
        var mockConexionContext = new Mock<CConexionContext>();

        // Configurar la conexión mockeada
        mockOracleConnection.Setup(c => c.State).Returns(ConnectionState.Open);
        mockConexionContext.Setup(c => c.getStringConnection()).Returns("Data Source=someSource;User Id=someUser;Password=somePass;");
        
        // Act
        var result = mockConexionContext.Object.GetConnection(ref mockOracleConnection.Object);
        
        // Assert
        Assert.Equal(ConnectionState.Open, result.State); // Verifica que la conexión esté abierta.
        mockOracleConnection.Verify(c => c.Open(), Times.Never()); // No debe llamarse a Open, ya que la conexión ya está abierta.
    }
}
Reasons:
  • Blacklisted phrase (1): está
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alan Godinez Rodriguez

79609603

Date: 2025-05-06 23:04:14
Score: 5.5
Natty: 4.5
Report link

@Ludwig I see that you stated gbeaven's answer was what helped you resolve your issue. I'm using pythonshell for Glue 3.0 to trigger my etl job. How exactly did you list your modules in additional python modules parameter? Even when I do that I still receive an error about pip resolver finding python module version incompatibilities with libraries I don't explicitly import or use. I only list pandas and boto3 as the extrnal libraries I'm using for my project.

Reasons:
  • RegEx Blacklisted phrase (1): I still receive an error
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Ludwig
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Cecelia

79609600

Date: 2025-05-06 23:03:13
Score: 7.5 🚩
Natty:
Report link

im pretty new to discord js and stack overflow but i can try and help! can you share the code for the command your running?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you share the code
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: skyealar

79609578

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

Question is pretty old, however, this works atm

navigator.clipboard.write(
    arrayOf(
        ClipboardItem(
            recordOf(
                "text/html" to Blob(arrayOf(content)),
                "text/plain" to Blob(arrayOf(content))
            )
        )
    )
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Adam Brangenberg

79609567

Date: 2025-05-06 22:21:03
Score: 1.5
Natty:
Report link

Add this two imports and this will fix the error:


import 'leaflet';
import 'leaflet.markercluster';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sergio Correnti

79609564

Date: 2025-05-06 22:19:02
Score: 3
Natty:
Report link

Kedija hussien kemal from Ethiopia my fon 00251965929671 my bank commercial bank of Ethiopia 1000372093513 Kedija hussien kemal

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

79609562

Date: 2025-05-06 22:18:01
Score: 7.5 🚩
Natty: 4.5
Report link

any updates on this? I get the same issue

Reasons:
  • Blacklisted phrase (1): any updates on
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I get the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aïmane Najja

79609552

Date: 2025-05-06 22:05:58
Score: 2.5
Natty:
Report link

Use cygwin setup to downgrade to vim 9.0.2155-2 (make sure to downgrade gvim, vim-common, vim-doc and vim-minimal as well). This fixes it. Looks like problem was introduced in 9.1.1054-1
(only happens if you have both vim and cygwin installed)

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

79609549

Date: 2025-05-06 22:03:58
Score: 0.5
Natty:
Report link

Castling can be a bit tricky to implement. Let's break it down.

You want to check if the move is a castling attempt by verifying four conditions:

1. The king and rook are on the same rank (row).

2. The king and rook are on the same board (not across different boards, obviously!).

3. The king hasn't moved already.

4. The rook involved in castling hasn't moved already.

If these conditions are met, you can then check if there are pieces in between the king and rook.

Here's a possible approach:

1. Identify the king and rook: Determine which pieces are involved in the potential castling move.

2. Check the four conditions: Verify that the king and rook meet the requirements.

3. Check for pieces in between: If the conditions are met, check if there are any pieces between the king and rook.

You can implement this logic in your Python code using conditional statements and loops to check for pieces in between.

If you'd like, I can help you with some sample code or pseudocode to get you started. Just let me know!

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

79609545

Date: 2025-05-06 22:00:57
Score: 0.5
Natty:
Report link

Please include your code. Including your code makes communicating and solving problems much easier. Aside from that, does the number represent an arbitrary index or is this number a representation of an important order such as a ranking or a priority?

I believe you are looking for Python collections: Lists, Dictionaries, Sets, and Tuples.

Your solution could be a simple List containing a Tuple of two values: your movie and your number. However dictionaries already do this very well. Dictionaries are represented with key-value-pairs. You could have a dictionary with keys as numbers and values as a movie.

movies = {
            1: "Hellraiser",
            2: "From Dusk till Dawn",
            3: "Army of Darkness"
        }

Dictionaries already have built in ways of doing CRUD (create, read, update, delete) that are useful for what you are trying to do.

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

79609531

Date: 2025-05-06 21:53:54
Score: 9.5 🚩
Natty: 5
Report link

Please post answer...................................

Reasons:
  • RegEx Blacklisted phrase (2.5): Please post answer
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Filler text (0.5): ...................................
  • Low entropy (1):
  • Low reputation (1):
Posted by: Tom M

79609522

Date: 2025-05-06 21:45:51
Score: 1
Natty:
Report link

Doing monitor.clear returns a function as a value instead of executing it. So computercraft tells you that it is expected of you to assighn the value to something (e.g. local cls = monitor.clear), but you are trying to call the function, so instead you should do monitor.clear() telling it to call the function with no arguments. Functions are also values so in the example I gave earlier cls would become also a function, and you could do cls().

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

79609520

Date: 2025-05-06 21:43:51
Score: 0.5
Natty:
Report link

Thanks! @kulatamicuda for hint.
I'm using liquibase with sprinboot, I made working using below setup -

  1. I have sql in fn_count.sql

    CREATE OR REPLACE FUNCTION totalRecords ()
    RETURNS integer AS $total$
    declare
      total integer;
    BEGIN
       SELECT count(*) into total FROM COMPANY;
       RETURN total;
    END;
    $total$ LANGUAGE plpgsql\
    
  2. fn_count.xml - here important part is - endDelimiter="\"

    <?xml version="1.0" encoding="UTF-8"?>
    <databaseChangeLog
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
            xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
             http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd">
        <changeSet id="2025050605" author="AUTHOR">
            <sqlFile path="sql-scripts/fn_count.sql"
                     relativeToChangelogFile="true"
                     endDelimiter="\"
                     splitStatements="true"
                     stripComments="true"/>
        </changeSet>
    </databaseChangeLog>
    
  3. db.changelog-master.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <databaseChangeLog
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
    xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
             http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd">
    
    <include file="fn_count.xml" relativeToChangelogFile="true"/>
    
    </databaseChangeLog>
    

    File structure looks like this -

    src/main/resources/
    ├── db/
    │   ├── changelog/
    │   │   └── fn_count.xml, db.changelog-master.xml
    │   │   └── sql-scripts/
    │   │       └── fn_count.sql
    
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @for
  • Low reputation (0.5):
Posted by: drt

79609514

Date: 2025-05-06 21:39:49
Score: 1.5
Natty:
Report link

You might be getting Invalid payload signature because the AWS SDK is using chunked transfer encoding, which GarageHQ doesn't support.

In your AmazonConfig set UseChunkEncoding = false

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

79609511

Date: 2025-05-06 21:35:48
Score: 0.5
Natty:
Report link

i just did rm -rf node_modules and then npm install but the npm install was still displaying esolve error and then i went to win + R and and input cmd and i added this line of command del /f /q "C:\Users\shenc\Documents\tests\node_modules\esbuild-windows-64\esbuild.exe" then i went back to my terminal and did npm install force and boom when i run the npm run dev again it worked without stress

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Low reputation (1):
Posted by: patience okwori

79609506

Date: 2025-05-06 21:32:47
Score: 8.5
Natty: 7.5
Report link

can anyone help me to get the same result (remove duplicates and count them in a new column) from csv file using shell script?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can anyone help me
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): can anyone help me to
Posted by: xsukax

79609504

Date: 2025-05-06 21:31:47
Score: 0.5
Natty:
Report link

NGINX request_time starts when the first byte of the request is received in NGINX and ends when the last byte of the response has been sent to the local NIC (i.e. network adapter). By, local, I mean local to the machine where NGINX software is running. The NIC then sends the request packets down to the client. So, NGINX request_time doesn't technically include all the time "sending the request to the client". That wording is a bit misleading.

However, my team uses request_time - upstream_request_time to get an approximation of client network issues because, while request_time doesn't reflect much of the response time, it does reflect some of the request time. NGINX request_time includes the time between the first and last byte of the request being received and on a slow network connection, this will be slower.

So it could be imagined like this:

Client gets a socket (e.g. TCP)
Client sends handshake
Handshake goes through local network and proxies
Handshake goes across internet
Handshake reaches edge of server network
Handshake gets to NGINX - request_time starts
Rest of HTTP request goes up to NGINX
Last request byte received in NGINX
First byte of request sent to upstream server (e.g. Tomcat servlet) - upstream_request_time (URT) starts
Upstream server handles the request and sends back a response
Last byte of response received from upstream server - upstream_request_time (URT) ends
NGINX sends response through kernel buffer to NIC - this is usually nearly instantaneous
Last byte sent to local NIC by kernel
NGINX finishes writing to log file - request_time ends
NIC sends response to client
Internet
Local network: proxies, routers, switches, etc.
Client receives last byte of response (NGINX has no idea about when this occurs. To measure this you'd need to implement something in the client side of your application. For example, assuming your client is a browser application, see https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseEnd)

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

79609496

Date: 2025-05-06 21:22:45
Score: 1
Natty:
Report link

Hosted Onboarding isn't supported inside a webview - https://docs.stripe.com/connect/custom/hosted-onboarding#supported-browsers

SFSafariViewController is similar to a "web browser" view so it behaves like a safari tab but inside your app. So you can't launch your app from within the app. This other answer explains it

So the only option is to have the app open those links in native Safari on mobile + use the universal link

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

79609479

Date: 2025-05-06 21:02:40
Score: 4
Natty:
Report link

I was looking at the GitHub Docs (since I haven't personally used workflow_run as a trigger yet) and I was wondering if it was the quotation marks in your workflows that is failing the match?

https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#using-data-from-the-triggering-workflow

The example used in the docs doesn't have them.

Reasons:
  • Blacklisted phrase (2): was wondering
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Naylor

79609473

Date: 2025-05-06 20:59:39
Score: 2.5
Natty:
Report link

try margin-left: 10em; margin-top: -2em; depending on the width of the first button or image

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

79609466

Date: 2025-05-06 20:53:38
Score: 1.5
Natty:
Report link

This happened to me in a while ago and it turned out something was using the same port I was connecting to. I rebuilt a computer and some of my configuration was reset, and a port I manually changed reverted back to default causing a conflict. I can't remember if it was my local machine or the host, but I would monitor traffic on your local machine first and see if anything else is using the port you are trying to use.

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

79609460

Date: 2025-05-06 20:48:36
Score: 2.5
Natty:
Report link

Solution for "ps1 cannot be loaded because running scripts is disabled" Error

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Example: Real problem solved image

If you want to know more, you can see the link below

About_Execution_Policies

Reasons:
  • Blacklisted phrase (1): the link below
  • RegEx Blacklisted phrase (1): see the link
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hafez Abdullah Al Noman

79609449

Date: 2025-05-06 20:41:34
Score: 1.5
Natty:
Report link

Using palimpalim:: doesn't stop it being indented.

Instead precede the line with [indent = 0].

[indent = 0]
palimpalim::
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: paulc4

79609446

Date: 2025-05-06 20:39:33
Score: 1
Natty:
Report link

With no information on how your animation is set up, it's hard to give a definitive answer.

For the collider to match the object and move with it, you should see if your model consists of multiple meshes or bones. If so, you could make several box colliders on your bones or meshes that roughly match the shape of the object / bone. Then they will move, rotate and scale along with their game objects.

If you did not use bones and just a single mesh in blender in the first place, I would advise you to rework the animation for your unity project.

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

79609444

Date: 2025-05-06 20:38:33
Score: 0.5
Natty:
Report link

As of EFCore 9 there is a .ToHashSetAsync() methods in case you need to lookup the results many times.

Sources is very much the same as .ToListAsync() (not as in .ToArrayAsync() with List->Array conversion)

Docs

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

79609433

Date: 2025-05-06 20:30:31
Score: 1.5
Natty:
Report link

This article helped in my app when I was getting this logs Sentry breadcrumbs. Basically, breadcrumbs are the events triggered before an error. And the logs you are getting are ui breadcrumbs, you can disable this logs by adding a meta tag in AndroidManifest.xml

<application>
   <!-- To disable the user interaction breadcrumbs integration -->
    <meta-data android:name="io.sentry.breadcrumbs.user-interaction" android:value="false" />
</application>

If this doesn't work for you, please add the ListView widget.

Reasons:
  • Blacklisted phrase (1): This article
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jabbar shaikh

79609430

Date: 2025-05-06 20:29:31
Score: 1
Natty:
Report link

1.Take first word from first list
2. Check in all lists if it is absent, or always first.
3.If you find some word earlier, take it instead and check again.
4.When you finish with all lists put it in result and continue with next word.
5.Used words can be deleted from lists, or filtered based on result list.

1.Let's assume list B is the first one. 'second' is our first word.
2.It is absent in A - ok.
3.In С it is not the first. Let's take first word here ('first') and begin from the beginning.
4.Finally 'first' is selected. Let's put it to result and continue with next word.
5.Remove 'first' from all lists, or bypass when meet members of result.

When you change word in step 3, make some kind of temporary stack of words for avoiding recursion. Or use some increment and not go higher than some N (maybe it is the total number of words? Or even only the number of lists)

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

79609417

Date: 2025-05-06 20:14:27
Score: 1.5
Natty:
Report link
 location / {
            
            try_files $uri $uri/ $uri.html /index.html;

    }
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ultrafunkamsterdam

79609408

Date: 2025-05-06 20:05:24
Score: 2.5
Natty:
Report link

routerLink={en/${site.id}} React js 10.22

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Javi Marambio

79609404

Date: 2025-05-06 20:01:23
Score: 3.5
Natty:
Report link

https://learn.microsoft.com/en-us/powershell/module/az.paloaltonetworks/get-azpaloaltonetworksfirewallstatus?view=azps-13.5.0&viewFallbackFrom=azps-13.1.0

Hope this helps. Random characters to get to the limit of 30.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: scorpio4u

79609402

Date: 2025-05-06 19:59:22
Score: 1.5
Natty:
Report link

I found out something that works, but i can't explain why as it seems weird.

If the path to the script delivering the PDF file is e.g. domain.com/reader/delivery.php where delivery.php reads the file and echoes it to show it in the browser, just add the filename you want to appear in the download dialog like this:

domain.com/reader/delivery.php/filename.pdf

Tested in Chrome, Firefox and Edge.

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