79217503

Date: 2024-11-23 09:22:52
Score: 3
Natty:
Report link

After some googling, I found the answer by @ChrisMM in this post: "GCC's libstdc++ does not support P2465R3 yet, which allows for import std;". One can get the same answer from compiler_support for c++23.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @ChrisMM
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ezyman

79217502

Date: 2024-11-23 09:22:52
Score: 3
Natty:
Report link

The new resource editor is indeed a proverbial pain in the backside. Even after a few more updates (currently on 7.11.5) its still buggy as f***.

Currently for me its even causing my entire Visual Studio to crash, loosing code in the proces.

For now my workaround is to open them trough right click -> open with and select Managed Resource Editor (Legacy). Just select this option and press the Default button to revert back to the classic editor as a default till Microsoft can wrap its head around and fix it.

Perhaps Microsoft can also learn to release features like this after a more extensive testing phase as should be done with all software development?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: John Van der Aa

79217500

Date: 2024-11-23 09:21:51
Score: 12.5 🚩
Natty: 6
Report link

What is this my phone has been getting hacked I have a police report can u help me

https://mac.lc/002B70BE3A5B

https://mac.lc/00:2B:70:BE:3A:5B

https://mac.lc/00-2B-70-BE-3A-5B

00:2B:70:BE:3A:5B diuG)QErW/TrV#6

This is everything I could find can you please help me

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can you please help me
  • RegEx Blacklisted phrase (3): can u help me
  • RegEx Blacklisted phrase (1): I could find can you please
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): What is this
  • Low reputation (1):
Posted by: Bart Smith

79217490

Date: 2024-11-23 09:14:49
Score: 3
Natty:
Report link

This was enough for me:

pip install scikit-learn

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

79217489

Date: 2024-11-23 09:12:48
Score: 5
Natty:
Report link

Have exactly the same problem with couple plugins.

Still working on solutions but yeah all happened after last update.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): Have exactly the same problem
  • Low reputation (1):
Posted by: Adam Michalak

79217486

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

What worked for me in similar situation:

  1. Go to File Editor, rename wp-content/plugins folder to whatever
  2. This allowed me to log in at /wp-admin
  3. Go to updates and reinstall wordpress even if it is most recent
  4. Go to plugins page, it will show you plugins are missing files
  5. Then go back to file editor, rename folder back to "plugins"
  6. Update all plugins

error should disappear

Reasons:
  • Whitelisted phrase (-1): worked for me
  • No code block (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: tokach

79217485

Date: 2024-11-23 09:09:48
Score: 1
Natty:
Report link

You can declare a alter the global interface and add innerText to the Element interface

declare global {
  interface Element {
    innerText: string
  }
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Emmanuel David

79217480

Date: 2024-11-23 09:04:47
Score: 3.5
Natty:
Report link

I've built it on my macOS (no docker). The build is working fine just with the clang version 15 (at the moment).

Here's how I've done.

https://medium.com/@davideraffaele.marro/how-to-handle-pjrt-on-a-mac-mx-arm-26d16a0c9bd9

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: lordav

79217479

Date: 2024-11-23 09:03:47
Score: 0.5
Natty:
Report link

The wrangler init command, used to initialize a new Worker project, provides an argument called from-dash which could be used to obtain a Worker initialized from the dashboard.

Usage: wrangler init --from-dash <WORKER_NAME>

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

79217478

Date: 2024-11-23 09:03:47
Score: 3.5
Natty:
Report link

I was facing the same issue and installing this extension fixed the issue for me:Markdown Checkboxes (Matt Bierner)

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

79217475

Date: 2024-11-23 08:59:46
Score: 2
Natty:
Report link

In my case the problem solved when i change my hashed password in database from starting '$2a$' to '$2y$'

eg: $2a$12$POGG9oYZvS/8ijd8PiA3Q.bxTMMv4Ca77nIdZ6VFOEJOQGtM4ltUC

to this, $2y$12$POGG9oYZvS/8ijd8PiA3Q.bxTMMv4Ca77nIdZ6VFOEJOQGtM4ltUC

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dhanush J.A

79217473

Date: 2024-11-23 08:59:46
Score: 5.5
Natty:
Report link

I have the same issue with MacOS 15.1.1 and Macbook Pro M3 Pro. After updating to Android studio Ladybug 2024.2.1 Patch 2, it repeatedly did not respond and I had to force quit it.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (1):
Posted by: Nightfury

79217471

Date: 2024-11-23 08:57:45
Score: 2.5
Natty:
Report link

you do not use ' when data type is float

you should write: Select case when A_AMT = 0 then ... else A_AMT end from table_a

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

79217468

Date: 2024-11-23 08:55:45
Score: 2
Natty:
Report link

i tested on microsoft edge and it runs as expected but in google chrome my css style doesn't have any effect on my other files and it genertaes Not Found: /favicon.ico [23/Nov/2024 11:41:50] "GET /favicon.ico HTTP/1.1" 404 2366 [23/Nov/2024 11:42:08] "GET / HTTP/1.1" 200 536 error so what is the issues

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

79217452

Date: 2024-11-23 08:47:43
Score: 1
Natty:
Report link

Yes, It is possible to rename the PDF document title (metadata) using Rust by working with libraries such as lopdf or pdf.

Here are the steps you can follow,

  1. Load the PDF Document: The Document::load function reads the existing PDF into memory.

  2. Access Metadata: The metadata of a PDF is stored in the Info dictionary of the trailer. You can retrieve and modify this dictionary.

  3. Update Title: The Title field in the dictionary holds the document title. This example sets it to "New PDF Title".

  4. Save Changes: Save the modified PDF back to a file using doc.save.

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

79217451

Date: 2024-11-23 08:47:42
Score: 6 🚩
Natty: 4.5
Report link

لا افهم في في النصوص التي تريدها لاكن اكثر من سنه وانا احتفظ في المستندات وكيف شبكة لاسلكية خارجية تتصل في هاتف وكنت اتوقع انكم شركة العاب عليكم ارجاع حساباتي وشكيات ومكافأة حصل عليها انا اظهر لكم بشكل واضح انتم من تستخدمون نشاطي وحفظ في المواقع لكم ستأخذ نصيبك من القضاء

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Rame Aldbas

79217430

Date: 2024-11-23 08:30:39
Score: 2.5
Natty:
Report link

It seems you're facing an issue with script autosave in Roblox Studio. I recommend checking out `RBXScriptPro.com for helpful tools and executors that might streamline your development process. They provide resources and solutions for scripting challenges like this, along with a community to help troubleshoot problems.

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

79217418

Date: 2024-11-23 08:22:37
Score: 1.5
Natty:
Report link

background-image: url('/public/images/banner.jpeg');

this works for me. No need to move it inside ./src

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kabir Batra

79217415

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

In the end I changed 2 lines of code and now this works:

client.connect_signal("unfocus", function(c)
    awful.spawn.easy_async_with_shell("xkb-switch", function(stdout)
        if c.valid then -- To avoid 'Invalid Object' error
            c.keyboard_layout = stdout
        end
    end)
end)

client.connect_signal("focus", function(c)
    if c.keyboard_layout == nil then
        c.keyboard_layout = "us(altgr-intl)"
    end
    awful.spawn("xkb-switch -s "..c.keyboard_layout, false) -- `false` to prevent cursor being stuck in 'loading' state
end)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: RobberFokZ

79217414

Date: 2024-11-23 08:16:35
Score: 9.5 🚩
Natty: 6
Report link

оÑÑ , неÑжели ÑабоÑа на ÑмаÑкÑ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Pepeepoisj

79217407

Date: 2024-11-23 08:14:34
Score: 1.5
Natty:
Report link

TensorFlow & PyTorch: These libraries provide the core tools to build and train GANs, VAEs, and other deep learning models for geometry generation. Open3D: A library for working with 3D data, which can help with point clouds, meshes, and 3D visualizations. PyTorch3D: A library specifically designed for deep learning-based 3D shape representation and manipulation. DeepSDF: A model that uses neural networks to represent 3D shapes as signed distance fields.

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

79217402

Date: 2024-11-23 08:11:33
Score: 2.5
Natty:
Report link

Yes, you can rename the title (metadata) of a PDF document using Rust. To accomplish this, you'll need to parse and modify the PDF's metadata. A popular Rust crate for working with PDFs is lopdf, which provides functionality for reading and modifying PDF documents

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

79217395

Date: 2024-11-23 08:03:32
Score: 1
Natty:
Report link

It looks like you're trying to use import/export syntax, but in your final line, you're using module.exports. In ES modules, you should consistently use export and import throughout your code.

Export Statement: Changed module.exports = router; to export default router;.

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

79217394

Date: 2024-11-23 08:02:31
Score: 0.5
Natty:
Report link

You are using /bin/python3 instead of /usr/local/bin/python. This can lead to the ModuleNotFoundError.

Try this:

/usr/local/bin/python /files/dags/play.py

Reasons:
  • Whitelisted phrase (-2): Try this:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kirti Dhull

79217393

Date: 2024-11-23 08:02:31
Score: 2
Natty:
Report link

The mentioned links are related to your question, you can go with the discussions, hopefully this can resolve your query.

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Pratik Prakash Bindage

79217390

Date: 2024-11-23 08:00:31
Score: 1.5
Natty:
Report link

I found out that there is nothing wrong with the code in the end, by just removing the UUID id from the User entity Constructor solved the issue, for some reason hibernate tries to create and re-create/overwrite it when the createUser method is invoked requesting a UUID.randomUUID, just by removing it and letting it create by itself just works out, weird though, I had a very similar Api where in the method createUser I had the same structure and worked out normally, don't know, it's running.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ederson Dias

79217386

Date: 2024-11-23 07:58:30
Score: 8.5
Natty: 7.5
Report link

Hello there did you solve your issue and find a way to streaming throuh HLS on expo?

Reasons:
  • RegEx Blacklisted phrase (3): did you solve your
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: tarık çelebi

79217377

Date: 2024-11-23 07:54:30
Score: 1.5
Natty:
Report link
rules_version = '2';

service firebase.storage {
  match /b/{bucket}/o {
 match /{allPaths=**} {
     allow read, write;

    }
​

  }

}

​

User this it will solve your problem

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

79217375

Date: 2024-11-23 07:52:29
Score: 2.5
Natty:
Report link

In my case I just stoped the server runs in local, and I could connect to the mssql container from the spring boot application

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

79217370

Date: 2024-11-23 07:49:28
Score: 3.5
Natty:
Report link

I have provided my answer to a similar question seeking the same solution here using a custom hook: https://stackoverflow.com/a/79217363/14216997

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

79217369

Date: 2024-11-23 07:49:28
Score: 3
Natty:
Report link

To implement an Android VPN app with a local DNS resolver, you should extend the VpnService class and configure it to route DNS queries through a local resolver.

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

79217364

Date: 2024-11-23 07:46:27
Score: 1
Natty:
Report link

please check whether you've installed cudatoolkit and cudnn correctly.

run this command to check your cuda nvcc -V

determine whether your cuda directory includes the comparable version of cudnn

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

79217347

Date: 2024-11-23 07:29:25
Score: 0.5
Natty:
Report link

If you're looking to create a table where the footer always stays fixed at the bottom of every printed page without overlapping the table content, follow these steps:

@media print {
            table {
                width: 100%;
                border-collapse: collapse;
                page-break-inside: auto;
            }

            thead {
                display: table-header-group;
            }

            tfoot {
                display: table-footer-group;
            }

            tbody {
                display: table-row-group;
            }

            tr {
                page-break-inside: avoid;
                page-break-after: auto;
            }

            tfoot tr {
                position: fixed;
                bottom: 0;
                width: 100%;
            }

            tfoot td .footer-space {
                height: 50px; /* Reserve space for footer */
            }

            tfoot td .footer-content {
                position: fixed;
                bottom: 0;
                background-color: #f9f9f9;
                width: 100%;
                text-align: center;
                font-weight: bold;
                padding: 5px 0;
            }
        }

        table, th, td {
            border: 1px solid black;
            text-align: left;
            padding: 8px;
        }
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Table with Footer on Print</title>
</head>
<body>
    <h1>Table with Fixed Footer on Print</h1>
    <table>
        <thead>
            <tr>
                <th>Column 1</th>
                <th>Column 2</th>
                <th>Column 3</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Data 1</td>
                <td>Data 2</td>
                <td>Data 3</td>
            </tr>
            <tr>
                <td>Data 4</td>
                <td>Data 5</td>
                <td>Data 6</td>
            </tr>
            <tr>
                <td>Data 7</td>
                <td>Data 8</td>
                <td>Data 9</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="3">
                    <div class="footer-space"></div> <!-- Empty div with a class -->
                    <div class="footer-content">This is the footer. It will always stay at the bottom of the printed page.</div>
                </td>
            </tr>
        </tfoot>
    </table>
</body>
</html>

Explanation Empty Space Reservation:

The reserves space at the bottom of the table to prevent the footer from overlapping the table content. You can adjust its height as needed (e.g., 50px). Footer Disclaimer:

The contains the actual footer content. It’s positioned at the bottom of each page using position: fixed.

CSS Print Media Query:

The @media print query ensures these styles only apply during printing.

Avoiding Overlap:

By reserving space using .footer-space, the footer only overlaps the empty space at the bottom of the table, avoiding any overlap with the content.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @media
  • Low reputation (1):
Posted by: Farhan

79217345

Date: 2024-11-23 07:25:24
Score: 0.5
Natty:
Report link

you can use Elasticvue 1.1.0-stable It's very easy and user friendly, it is available on Mozilla and Chrome browser in Extensions/Add On

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sangat

79217337

Date: 2024-11-23 07:20:23
Score: 1
Natty:
Report link

In my case it was not enough space on VM in Swarm.

Drain machine -> Stop/Start -> docker image/system prune -> Activate Machine 

helped to fix the problem

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

79217336

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

you need a paid Apple Developer account to use the com.apple.developer.applesignin entitlement. Free accounts don’t support advanced entitlements like Apple Sign-In. Without a paid account, your provisioning profile won’t include this capability, so the build will fail. If you don’t have a paid account, you’ll need to either remove Apple Sign-In from your project or upgrade to a paid account to enable this entitlement and build the app successfully.

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

79217329

Date: 2024-11-23 07:13:22
Score: 0.5
Natty:
Report link

To use the Apple Sign In feature in your app, you must include the required permissions in your provisioning profile. Unfortunately, the free Apple Developer account does not support certain features, such as Apple Sign In. As a result, you will need a paid Apple Developer account to solve this issue and properly develop your app with the necessary rights.

To fix the build error and use Apple Sign In, you'll need to get a Apple Developer account. This will let you build a provisioning profile with the necessary permissions for your app.

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

79217318

Date: 2024-11-23 06:59:19
Score: 1.5
Natty:
Report link

Easy: use

std::wcout << L"გამარჯობა, ამხანაგო!";
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79217314

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

There's nothing strange in that, you'll have to understand Prototype vs Instance properties

You are expecting Object.keys(enumerableA) to be ['a', 'b'], like 'forin': keys, but:

Enumerability and ownership of properties Enumerability and ownership of properties

Check this MDN blog for more info. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties#querying_object_properties

Explaination of the Outputs

for (const key in enumerableA)


Object.keys(enumerableA)


Object.keys(Object.getPrototypeOf(enumerableA))


Object.getOwnPropertyNames(enumerableA)


Object.getOwnPropertyNames(Object.getPrototypeOf(enumerableA))

Why Object.entries throws an error

Object.entries access all the enumerable own properties.

You must understand how private properties are handled by typescript.

Is there any way to use a decorator to make an accessor method an enumerable property?

No, it is not possible to make instance properties enumerable directly using decorators in Typescript because property decorators in Typescript only have access to the class prototype for instance members, not the instance itself.




I hope, I've addressed all your issues. If anything else you'd like to clarify, feel free to ask. Happy learning!

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Sparrow

79217306

Date: 2024-11-23 06:48:16
Score: 4.5
Natty:
Report link

fixed code half

fixed code remaining part

remaining code

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

79217297

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

Is there a way to distribute editable global variable string across multiprocessing and threads?

You gave few details about your code; the OP doesn't offer a repex.

Across threads is straightforward. Though you probably want to protect access with a mutex.

Across processes implies writing to a file descriptor, such as a pipe or an mmap'd file. Easiest thing to do would be to append lines to a log file, or INSERT rows in a relational database.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there a
  • High reputation (-2):
Posted by: J_H

79217289

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

This solution works but input syntax is not as easy as in NodeJS:

$("Hello") - for string. $(25) - for number. $(true) - for bool.

here is the code:

window.$input = (() => {
  let waitingCallback = null;

  Object.defineProperty(window, '$', {
    get: () => {
      if (waitingCallback) {
        const callback = waitingCallback;
        waitingCallback = null;
        return callback;
      }
      return () => { };
    }
  });

  return prompt => {
    console.log(prompt);
    return new Promise(resolve => waitingCallback = resolve);
  };
})();

// modify the function body. use 'await $input()'
async function example() {
  const name = await $input('What is your name?');
  const age = await $input('How old are you?');
  console.log(`Your name is ${name} and you are ${age} years old.`);
}

// do not forget to call the function
example();
Reasons:
  • Blacklisted phrase (1): What is your
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bachi

79217288

Date: 2024-11-23 06:37:14
Score: 1
Natty:
Report link

You have to remove opencv and its dependencies: sudo apt remove python3-opencv sudo apt autoremove Then install again with the version you want: sudo apt install python3-opencv=4.6.0 Hope it works.

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

79217275

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

window.getSelection() actually works fine. The problem here is because when the focus is lost, then the selection is cleared as well.

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

79217266

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

I ended up using this code that uses #include <stdio.h>.

   while (1) {
       // Send the ADC buffer over USB
       if (buffer_index >= BUFFER_SIZE) {
           // Send buffer to USB
           for (size_t i = 0; i < BUFFER_SIZE; i++) {
             printf("ADC0: %d, ADC1: %d\n", adc_buffer[i * 2], adc_buffer[i * 2 + 1]);
           }
           buffer_index = 0; // Reset buffer index
       }
       vTaskDelay(pdMS_TO_TICKS(100)); // Adjust delay as needed
   }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dustin LaRoche

79217263

Date: 2024-11-23 06:12:09
Score: 4
Natty:
Report link

in EditText

android:background="@null" android:inputType="textVisiblePassword"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: user28443117

79217259

Date: 2024-11-23 06:10:08
Score: 1
Natty:
Report link

The issue is the reset part of the sequence. For some reason, the Grafana parser doesn't seem to like 0; or 1; in the sequence's reset (closing) part.

For example:

You can see how some are working and some are not here: enter image description here

The difference is simply the reset (closing) part of the sequence. enter image description here

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

79217246

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

autoflake can now do this with the --expand-star-imports option, provided

So you could do something like

autoflake --expand-star-imports --remove-all-unused-imports --in-place --exclude "__init__.py"  my-python-project/*.py

Ref. https://pypi.org/project/autoflake/

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): can now
  • Low reputation (0.5):
Posted by: Gokulakrishnan Shankar

79217233

Date: 2024-11-23 05:50:04
Score: 3
Natty:
Report link

I know why!!!

I had an assume: some games were imported successfully, but the retor's list_game cannot list it, so I want to figure out which game was imported but unlisted.

When I manually imported those games, I found many games in the ROMs have same name, forexample, "Robotank" occur 3 times, that's why I imported 167 games, but only have 59 in list. because there are same games in the ROMs. I use this ROMS: https://www.atarimania.com/rom_collection_archive_atari_2600_roms.html

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Chuckie Zhu

79217226

Date: 2024-11-23 05:44:03
Score: 5
Natty:
Report link
clip().background().border().padding().clickable() 

All this modifiers require values. For example:

.clip(shape: Shape) 
.background(color: Color)

Or, if your code has this, can you provide mode code for understanding your problem ?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you provide
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Орест Третяк

79217218

Date: 2024-11-23 05:39:02
Score: 2.5
Natty:
Report link

For someone who cannot find "Python (.py)" in "Save and Export Notebook As" menu in the Jupyter notebook.

It may be called as "Executable Script" depending on the version.

It took me for a while to find this so I am guessing that there may be someone else facing the same challenge.

Executable Script instead of save as python (.py)

This page helped me: https://github.com/jupyter/notebook/issues/7079

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

79217217

Date: 2024-11-23 05:38:01
Score: 1
Natty:
Report link

you can import cookie like this

import { cookies } from "next/headers";

and after that you should use set method from cookie which you have imported from next/headers like this :

cookies().set('name of token', yourtoken ,  { httpOnly: true })

and then return your token

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

79217211

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

I removed the node_modules directory and reinstalled it, which worked.

Execute this command in your project root

sudo rm -rf ./node_modules
npm install
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: ORHAN ERDAY

79217208

Date: 2024-11-23 05:35:00
Score: 1.5
Natty:
Report link

How to filter model views and retrieve data in the embedded Tandem Viewer?

After successfully initializing and starting the Autodesk Tandem Viewer, I can load and display the entire model. Based on a previous REST API call and user selection, I receive a twinId and a viewId.

Question 1: How can I display only the view (associated with the sViewId), not the entire model?

Question 2: How can I retrieve the data associated with the view (e.g., like the inventory table shown in the Tandem Viewer)?

Below is the relevant part of my current implementation:

displayFacility: function (sTwin, sViewId) {
  const app = this.oApp;
  return new Promise((resolve, reject) => {
    app.getCurrentTeamsFacilities()
      .then((facilitiesSharedWithMe) => {
        app.getUsersFacilities()
          .then((myFacilities) => {
            const aFacilities = [].concat(facilitiesSharedWithMe, myFacilities);
            const matchingFacility = aFacilities.find(facility => facility.twinId === sTwin);
            if (!matchingFacility) {
              const msg = `Facility with twinId '${sTwin}' not found.`;
              console.error(msg);
              reject(new Error(msg));
              return;
            }
            const currentFacility = app.displayFacility(matchingFacility, false, this.oViewer);
            resolve();
          });
      });
  });
}
Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: Peter

79217195

Date: 2024-11-23 05:18:57
Score: 3.5
Natty:
Report link

Directly use trim() to remove character from last of string

String a=1,2,3,4,5,;

I want to remove last ,

a.trim(); It'll get the task done

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pawan

79217174

Date: 2024-11-23 05:07:55
Score: 2
Natty:
Report link

Use:

if ((i + j) % 2 == 0)
    cout << "\033[47m\033[30m  \033[0m";
else
    cout << "  ";

See Colorizing text in the console with C++.

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

79217126

Date: 2024-11-23 04:46:52
Score: 2.5
Natty:
Report link

I don’t have experience with your immediate concern, but in case you or others reading this post missed it, Microsoft has posted this page, which is a gateway to migrating from Bing Enterprise Maps to Azure Maps, including a link to a migration guide.

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

79217119

Date: 2024-11-23 04:38:50
Score: 0.5
Natty:
Report link

1 hour and 2 dislikes, what a toxic community. I am glad gpt came out.

Anyway, I managed to use voice meeter as a fake microphone input. This way, I stream audio into a virtual cable (the one recorded by ffmpeg) and this virtual cable routes information to my actual headset -- so I can simultanously listen to it while recording it with ffmpeg. I am calling it from C++ as:

void startVideoRecording(std::string image_name) {
std::string ffmpegCommand = 
    "ffmpeg -f gdigrab -framerate 30 -i desktop -f dshow -i audio=\"Voicemeeter Out B1 (VB-Audio Voicemeeter VAIO)\" "
    "-c:v libx264 -preset veryfast -s 640x480 -pix_fmt yuv420p -acodec aac " + image_name;
std::system(ffmpegCommand.c_str());

}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Snykral fa Ashama

79217115

Date: 2024-11-23 04:36:49
Score: 1.5
Natty:
Report link

If you define the second Curve Loop similar to the first one, you will have desired result. Namely, change the Curve Loop(2) = {12, 3, 5, -6, 7, 8}; to the Curve Loop(2) = {-6,5,3,12,8,7};.

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

79217111

Date: 2024-11-23 04:35:48
Score: 4.5
Natty:
Report link

I am having some problems. I am using React Native with Firebase and the getRedirectResult(auth) is consistently returning null even though I have already signed in with the google provider. I think it is because the page is doing a full reload?

 const provider = new GoogleAuthProvider();
    try {
      await signInWithRedirect(auth, provider)
      const result = await getRedirectResult(auth);
      if (result) {
        router.push('/HomeScreen');
      }
    } catch (error: any) {
        console.error(error);
    }

This is my code which doesnt work. Please help!

Reasons:
  • Blacklisted phrase (1): doesnt work
  • RegEx Blacklisted phrase (3): Please help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: clara

79217108

Date: 2024-11-23 04:29:47
Score: 2.5
Natty:
Report link

had the same error

turned out that my app is re-requesting (re-fetching) automatically while the search query is empty

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yousif AL Badri

79217092

Date: 2024-11-23 04:08:44
Score: 0.5
Natty:
Report link

vector<?> is not in the global namespace. It is in the std namespace, and unless you want to use usings, you are going to have to qualify all references to it. Simply replace all instances of vector<?> that do not have a std:: prefix (such as the one at line 15) with std::vector<?> and that particular error should go away.

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

79217077

Date: 2024-11-23 03:45:40
Score: 2.5
Natty:
Report link

padding-left: 15px; /* Adds padding */

box-sizing: border-box; /* Ensures padding doesn't increase the total width */

add this lines to .sections class

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

79217069

Date: 2024-11-23 03:33:38
Score: 1.5
Natty:
Report link

Source: How to Manage .Net Tools

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

79217068

Date: 2024-11-23 03:33:38
Score: 4.5
Natty: 6.5
Report link

I am using gitlab ci to build the project like that to the google appengine, so how can we override the gitlab variable on application.yml. Many thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): how can we
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nin Tran

79217039

Date: 2024-11-23 02:54:31
Score: 0.5
Natty:
Report link

The issue you’re encountering—where your Python application processes XML files correctly when run standalone but raises an “expecting an int” exception in Visual Studio Code (VS Code)—could stem from several factors. Let’s explore potential causes and solutions:

  1. Environment Differences: • Python Interpreter: Ensure that VS Code is configured to use the same Python interpreter as your standalone environment. Differences in interpreter versions or environments can lead to discrepancies in behavior. • Dependencies: Verify that all necessary libraries and modules are installed and consistent across both environments. Missing or mismatched dependencies can cause unexpected errors.

  2. Exception Handling and Debugging: • Detailed Logging: Enhance your exception handling to log detailed error messages, including stack traces. This can help pinpoint where the “expecting an int” exception originates. • Isolated Testing: Create minimal test cases that replicate the issue. This approach can help isolate the problematic code and determine if the issue is specific to VS Code.

  3. VS Code Configuration: • Extensions: Disable unnecessary extensions that might interfere with your Python environment. Some extensions can cause conflicts or unexpected behavior. • Settings: Review your VS Code settings, especially those related to Python and debugging, to ensure they align with your standalone environment.

  4. XML Parsing Considerations: • Parser Behavior: Different XML parsers may handle data types differently. Ensure that the parser you’re using is consistent across environments and that it correctly interprets the XML data types. • Data Validation: Implement validation checks to ensure that the XML data conforms to expected formats and types before processing.

  5. External Resources: • Similar issues have been discussed in the developer community. For instance, a Stack Overflow thread addresses exceptions encountered when parsing XML using lxml in Python. 

By systematically examining these areas, you can identify and resolve the discrepancies between your standalone script and its execution within VS Code.

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

79217038

Date: 2024-11-23 02:53:30
Score: 1
Natty:
Report link

nslookup <your-azure-config-endpoint>.azconfig.io run this command inside your VM to check the connectivity to your service endpoint. If it is fail you need to check your DNS settings. And check your Virtual machine NSG rules whether it blocking your request or not.

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

79217037

Date: 2024-11-23 02:53:30
Score: 4
Natty: 4.5
Report link

Do you execute the command php artisan storage:link ?

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Trance Code

79217023

Date: 2024-11-23 02:40:27
Score: 3.5
Natty:
Report link

If you're open to using a service for this, you can try https://chatter-box.io/

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

79217022

Date: 2024-11-23 02:37:27
Score: 1.5
Natty:
Report link

You can try this way:

  1. right click on file .py, click on the arrow at "Open with"
  2. click on "choose another app"
  3. choose spyder 6 and tick on option always use this app for .py file
Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hoàng Trần Văn

79217021

Date: 2024-11-23 02:37:27
Score: 2
Natty:
Report link

I am hitting this issue. CGI::Application with a Session plugin. Every request returns the same CGISESSID to different clients. I am running the latest versions of perl and (Fast)CGI.

see https://rt.cpan.org/Ticket/Display.html?id=17541

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

79217016

Date: 2024-11-23 02:31:26
Score: 0.5
Natty:
Report link

No, you are not right. The documentation on readonly struct is perfectly correct. Your question contains a broken link, the correct URL of this documentation page and section is this.

The explanation is pretty simple. Consider this example:

    readonly struct A {
        internal A(int first, string second) { First = first; Second = second; }
        internal readonly int First { get; init; }
        internal readonly string Second { get; init; }
    }

    static class ReadonlyUsage {
        static A value = new(0, "original value");
        internal static void Demo() {
            A a = new(1, "constant value");
            //a.First = 12; // will fail to compile
            a = new(2, "another value");
            // this is mutable:
            value = new(3, "one more value");
            //value.First = 13; // will fail to compile
            // still mutable:
            value = new(4, "How much longer?!");
        }
    }

What is mutable here? Nothing except ReadonlyUsage.value, and it makes ReadonlyUsage also mutable. It has nothing to do with struct A — it is immutable. Exactly as System.String.

Let's see: what about the assignment to A a? Does this assignment make ReadonlyUsage mutable? No. You assign a new value (and struct A is a value type) to a stack variable. It exists only in the stack and will be removed after the exit of a current stack frame. The stack does not belong to the class, it belongs to the thread calling ReadonlyUsage.Demo. The assignment does not modify anything in the Demo class if it was an instance class. We simply create a new struct A instance and never modify any of the already existing instances, that's why it is called immutable.

Now, what about the assignment to ReadonlyUsage.value? It is possible, because ReadonlyUsage is mutable. Again, we create new instances of struct A and never modify any of the already existing instances.

How to prevent the assignment to ReadonlyUsage.value? Easy: make it readonly, too:

static readonly A value = new(0, "original value");

That's it. I hope the misunderstanding is dismissed. Will you accept the answer then? If not, please ask further questions.

Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov

79217006

Date: 2024-11-23 02:22:24
Score: 1
Natty:
Report link

Try this

Step 1: Go to Settings

Step 2: Click 'Apps'

Step 3: Click on 'Defaults apps'

Step 4: Click 'Choose default apps by file type'

Step 5: Scroll down to '.py' file types

Step 6: Click on 'Choose a default' if there is no default app, otherwise click the current default app and choose 'spyder'.

Done!

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anele Nkayi Aceoroal

79216998

Date: 2024-11-23 02:11:22
Score: 4
Natty: 6
Report link

notebook.output.scrolling is instantiated when there's some overflow; but i think the overflow is related to text lines.

How do i collapse for scrolling a cell with tons of figures?

Reasons:
  • Blacklisted phrase (1): How do i
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Brett Buzzanga

79216993

Date: 2024-11-23 02:05:21
Score: 3
Natty:
Report link

I want to leave this solution here for anyone trying to add the pin and show the actual place card with name and details (instead of just a pin with coordinates):

if (UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!)) {
    let encodedName = self.location.name.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? ""
    let googleMapsURL = "comgooglemaps://?q=\(encodedName)&center=\(self.location.coordinate.latitude),\(self.location.coordinate.longitude)&views=satellite&zoom=15"
    UIApplication.shared.open(URL(string: googleMapsURL)!, options: [:], completionHandler: nil)
} else {
    print("Can't use comgooglemaps://")
}

This works perfectly if there's only one place with that specific name. Unfortunately, if there are multiple places with the same name (like if there's a bus station right next to your location), it will show a list of all matching places. I haven't found a way to only get the wanted place, even if I use it's ID.

Note: This solution requires the place name (location.name) in addition to the coordinates.

If anyone has a better solution that can handle multiple places with the same name, please share it in the comments as I'm also looking for one!

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: fran.stante

79216990

Date: 2024-11-23 02:02:21
Score: 1.5
Natty:
Report link

If your PHP is running through a proxy like PHP-FPM, the proxy might report a timeout if the underlying PHP process is halted by the debugger. In that case you would still be able to debug and run the code line by line, but the output would never reach the proxy and the client of the request. Perhaps increasing timeout values somewhere in PHP-FPM configuration might help.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sinus the Tentacular

79216979

Date: 2024-11-23 01:52:18
Score: 2
Natty:
Report link

I am stuck at this issue now with AS Ladybug 2.1.

I did extensive search and did not find a solution. Some poster got rid of this issue but none worked in my case. And a few posted that the button does not have to be MaterialButton.

Here is the error message I had:

FAILURE: Build failed with an exception.

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource linking failed com.bignerdranch.android.geoquiz.app-mergeDebugResources-43:/layout/activity_main.xml:49: error: attribute iconGravity (aka com.bignerdranch.android.geoquiz:iconGravity) not found. error: failed linking file resources.

Android resource linking failed com.bignerdranch.android.geoquiz.app-mergeDebugResources-43:/layout/activity_main.xml:49: error: attribute iconGravity (aka com.bignerdranch.android.geoquiz:iconGravity) not found. error: failed linking file resources.

Reasons:
  • RegEx Blacklisted phrase (1.5): I am stuck
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andios

79216973

Date: 2024-11-23 01:48:17
Score: 0.5
Natty:
Report link

surely you can Depends in function get_user_token, but you should get the header by Request

def get_user_token(request: Request):
    x_user_token = request.headers.get('x_user_token')
    return return 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RockyDon

79216959

Date: 2024-11-23 01:31:14
Score: 1
Natty:
Report link

I would personally use ngOnChanges as a solution. With the set input function, you would need to create a variable like #_username and validate whether the variable has actually changed or not. Otherwise, you could end up in a loop or trigger the ExpressionChangedAfterItHasBeenChecked error. But I wonder, couldn't the parent component update its signal? This way, you would avoid having an input 'username' in your component and instead receive the signal directly in a computed property, making your component more independent and clean.

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

79216938

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

I solved this problem by downgrading Typescript version from 5.x.x to 4.x.x.

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 신동혁

79216936

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

After looking into it further I found the following Reddit post which encounters a similar issue and uses keyboard.read_event(suppress=True). This prevents the event from being propagated further to the input().

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

79216926

Date: 2024-11-23 01:01:08
Score: 1
Natty:
Report link

Here is how you could pass the post using state.

<Link to={{pathname: `/blog/${post.id}`}} state={{post: post}}>Read More...</Link>

To access it from the destination component:

import { useLocation } from "react-router-dom";

const location = useLocation();
console.log(location.state.post)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ALFRED OKORONKWO

79216925

Date: 2024-11-23 01:00:08
Score: 2
Natty:
Report link

I've been having this same issue recently and it's driving me mad.

macOS Sequoia Version 15.1 python 3.9.6 64bit vscode insiders 1.96.0-insider (Universal)

Extensions: Python (microsoft) - rolled back to 2024.14.0 Pylance Python debugger github copilot github copilot chat

Read countless threads trying to find others with the same issue, trying all recommended solutions but no luck.

Your issue sounds identical to mine, running any more than a few selected lines of code at a time results in the output to terminal freezing up while executing the code, only running a few lines before getting stuck/frozen halfway through running a random line (depending on where I start the selection from).

It seems as though the code WILL run if I go line by line but in a file with 100+ lines this is not ideal.

This functionality was working fine before and something has broken it but I cannot for the life of me figure out what.

The only other major change to my computer recently was upgrading the OS to Sequoia, so i will likely try that next but was avoiding having to revert OS.

example of code stopping halfway through line selection

Reasons:
  • Blacklisted phrase (1): no luck
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tim V

79216922

Date: 2024-11-23 00:56:07
Score: 1
Natty:
Report link
cd ~/.m2 && find . -name "_*.repositories" | xargs rm -rf 

works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: yuming

79216911

Date: 2024-11-23 00:45:05
Score: 2.5
Natty:
Report link

/*!

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed?
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: kang seller

79216904

Date: 2024-11-23 00:27:02
Score: 0.5
Natty:
Report link

Like this:

const var1 = 'dynFuncName';
const obj = { [var1]() { throw 'error' } };
// or const obj = { [var1]: function() { throw 'error' } };
// or const obj = { [var1]: () => { throw 'error' } };

const fn = obj[var1];
fn();

Results in the following console error message:

VM83:5 Uncaught error
dynFuncName @   VM83:5
(anonymous) @   VM83:9
(anonymous) @   VM83:10

As per:

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

79216901

Date: 2024-11-23 00:24:02
Score: 0.5
Natty:
Report link

  cy.get('#warn-dialog-submit')
        .should(()=>{}) //this disable the failure if the element does not exist
        .then(($el) =>{
            if($el && $el.length){
               cy.wrap($el).click()
            }
        })


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

79216891

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

There is a property on the sprite batch for a scissor rectangle, use it to specify the area which it is allowed to draw within.

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

79216888

Date: 2024-11-23 00:13:59
Score: 0.5
Natty:
Report link

I finally made it back to this project and found a solution. Here are the arguments to ffmpeg I ended up using:

I believe -x264opts bluray-compat=1 was the key.

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

79216886

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

To upload data, send a GET request to https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php

A full example URL: https://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=KCASANFR5&PASSWORD=XXXXXX&dateutc=2000-01-01+10%3A32%3A35&winddir=230&windspeedmph=12&windgustmph=12&tempf=70&rainin=0&baromin=29.1&dewptf=68.2&humidity=90&weather=&clouds=&softwaretype=vws%20versionxx&action=updateraw

The minimum required query parameters are:

Documentation for available parameters is at https://support.weather.com/s/article/PWS-Upload-Protocol

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

79216883

Date: 2024-11-23 00:04:57
Score: 5.5
Natty: 5
Report link

Konrad: Thank You so much. THX

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Blacklisted phrase (1): THX
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28440658

79216880

Date: 2024-11-23 00:03:57
Score: 2.5
Natty:
Report link

Thanks for letting us know, we recently added support for WebJobs in Linux and it is in Preview at the moment.

We will make sure the 'PythonScriptHost' works well for GA.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Joaquín Vano

79216874

Date: 2024-11-23 00:00:56
Score: 3.5
Natty:
Report link

I tried your code, and after setting CommitChanges = true in the Customization Project Editor, I was able to get a filtered list by warehouse.

CommitChangeTrue

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

79216872

Date: 2024-11-22 23:57:56
Score: 1
Natty:
Report link

Simple way to know if loading vs not found in Vue:

const item = useObservable(Dexie.liveQuery(() => db.items.get(id.value).then(o => o || null)))

// Handle not found (undefined = still loading, null = not found)
watch(item, (newItem) => {
  if (newItem === null) {
    // HANDLE NOT FOUND
  }
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Peter Coppinger

79216862

Date: 2024-11-22 23:50:54
Score: 4.5
Natty:
Report link

Found the answer https://github.com/vercel/next.js/discussions/52336 is was using pages router instead of app router

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Hugo Del-Negro

79216847

Date: 2024-11-22 23:40:51
Score: 2.5
Natty:
Report link

So after troubleshooting a little more I was able to finally get it working. Turns out it was just some user-error on my part. In the reddit script I made three major errors, in my meme function I simply had an extra space between "def" and the function. Secondly I made some indention errors with the if statements inside the meme function. Then lastly I misspelled the "posts_lists" variable when assigning it to the "random_post" variable later in the same block of code

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

79216845

Date: 2024-11-22 23:40:51
Score: 1
Natty:
Report link

The best way is to loop over all pixels and create a diff image. In your loop you subtract the lower color value from the higher. That means black if the pixels are identical. So you should use 255 - pixelcolor and let it be the pixel value in the diff vector and when you are done, you save it as a png. I just made such a program in c++ and i used the windows imaging component to create raw byte vectors for both files and then looped over every pixel and every color to create a raw byte array with values. It reveals how jpegmini works but you have to multiply the close to zero values that you get. Quite revealing

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Fredrik Wahlgren

79216842

Date: 2024-11-22 23:39:50
Score: 6 🚩
Natty:
Report link

I think I found sometihing that my help me to get the results I want to have. https://overthere.co.uk/2012/07/29/using-qstyleditemdelegate-on-a-qtableview/

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dag

79216828

Date: 2024-11-22 23:28:48
Score: 0.5
Natty:
Report link

Problem solved!

the problem was not using the correct name in my flyway.conf

flyway.url=jdbc:sqlserver://localhost:1433;databaseName=${DB_NAME};TrustServerCertificate=True;

this configuration was incorrect, and instead should have been:

flyway.url=jdbc:sqlserver://database:1433;databaseName=${DB_NAME};TrustServerCertificate=True;

I needed to use database from the docker-compose because thats what the database configuration was configured to use.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Marqueone

79216825

Date: 2024-11-22 23:27:47
Score: 0.5
Natty:
Report link

Like you mentionned it was a conflict with the plugin

mini.nvim When required : mini.indentscope.setup() which uses in line 226 :

 -- Which character to use for drawing scope indicator
 -- symbol = '╎',

That gave the dashed line in my previous examples.

My advertise is not to use both indent-blankline and mini.indentscope at the same time.

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