79249930

Date: 2024-12-04 05:01:41
Score: 2.5
Natty:
Report link

https://packagecloud.io/cloudamqp/rabbitmq/packages/any/any/rabbitmq-server_3.10.7-1_all.deb?distro_version_id=35

curl -s https://packagecloud.io/install/repositories/cloudamqp/rabbitmq/script.deb.sh?any=true | sudo bash

sudo apt-get install rabbitmq-server=3.10.7-1
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wellex

79249924

Date: 2024-12-04 04:58:40
Score: 2
Natty:
Report link

I have a simple formula for A-B operation using Filter.

A-B = FILTER(A1:A10,IF(ISERROR(XMATCH(A1:A10,$B$1:$B$4)),1,0))

A1:A10 - refers to set A

$B$1:$B$4 - refers to set B

The formula gives the A-B set, no need of ordering the sets.

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

79249921

Date: 2024-12-04 04:57:40
Score: 1.5
Natty:
Report link

what i analyse from your question. i found this solution.

I want to make my movable circle view aligned with the top and left side of the window.

struct CircleView: View {
    
    init(parentSize: CGSize) {
        self.parentSize = parentSize
        _currentOffset = State(initialValue:.zero) // just set this line to zero
        _lastOffset = _currentOffset
    }
}
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Starts with a question (0.5): what i
  • Low reputation (0.5):
Posted by: Om Sanatan

79249918

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

How to Upload a Project to GitHub

Follow these steps to upload your project to GitHub:

Create a Repository on GitHub
    Go to GitHub and create a new repository.
    Copy the repository's clone URL.

Open Git Bash
    Use Git Bash as your terminal.

Navigate to Your Project Directory
    Use the cd command to go to the folder containing your project:

cd <path-to-folder>

Run the Following Commands

Initialize a Git Repository:

git init

Add the Remote Repository:

git remote add origin

Stage All Files:

git add .

Commit Your Changes:

git commit -m "Initial commit"

Push to GitHub:

    git push origin main

Reload Your GitHub Repository Page
    Refresh your repository on GitHub to verify the upload.

Your project is now successfully uploaded to GitHub!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: KALEESWARAN S

79249915

Date: 2024-12-04 04:52:38
Score: 2
Natty:
Report link

have you tried updating node.js to the latest version?

node.js download instructions

i was having the same problem, i kept getting errors that my request was getting timed out or that it was a whitelisting issue when i'd been able to connect to the cluster just fine not long ago. i'd allowed access from anywhere, reset my router, fiddled with dns settings etc, and updating to the current version of node (22) fixed it for me

Reasons:
  • Whitelisted phrase (-1): have you tried
  • Contains signature (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: sam

79249914

Date: 2024-12-04 04:50:37
Score: 0.5
Natty:
Report link

According to the documentation, there is no callback for when a user denies the Health Connect permission twice. We need to display a custom button that redirects the user to the Health Connect settings.

val requestPermissions =
        registerForActivityResult(requestPermissionActivityContract) { granted -> 
            mViewModel.checkHealthConnectPermissions(
                grantedPermissions = granted
            )

            //Update Permission Request Count
            if (granted.isEmpty()) {
              ShowCustomButton()
            }
        }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sudheer Karna

79249912

Date: 2024-12-04 04:49:37
Score: 11.5
Natty: 7.5
Report link

Have you found any solution for android 14 ?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2.5): Have you found any solution for android 14
  • RegEx Blacklisted phrase (2): any solution for android 14 ?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kamlesh Khatri

79249902

Date: 2024-12-04 04:44:35
Score: 2
Natty:
Report link

Leaving this here in case somebody needs it, as Vishwas says, remove any folder called "pages". I had a "pages" folder inside my components folder because that was the name of my component and this error was driving me crazy.

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

79249901

Date: 2024-12-04 04:44:35
Score: 3.5
Natty:
Report link

For the sake of users, who want to see the settings page (screenshot from azure portal), I have pasted it below:

enter image description here

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

79249893

Date: 2024-12-04 04:40:34
Score: 0.5
Natty:
Report link

In JS add event onKeyDown

 <input
     type="search"
     onKeyDown={(event) => {
     if (event.key === "Enter") {
      handleNavigation();
      }
    }}
                    
    />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Apurv

79249890

Date: 2024-12-04 04:39:33
Score: 5
Natty:
Report link

I've got this weird issue where the container sees /etc/avahi/services, which has the avahi-daemon.conf file in it, however, when I look at the logs in terminal, it's saying it doesn't see it.

Found user 'avahi' (UID 86) and group 'avahi' (GID 86).
Successfully dropped root privileges.
avahi-daemon 0.8 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Successfully called chroot().
Successfully dropped remaining capabilities.
No service file found in /etc/avahi/services.
*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***

Does anyone have any insight?

Reasons:
  • RegEx Blacklisted phrase (3): Does anyone have any insight
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ron Ramsay

79249886

Date: 2024-12-04 04:36:33
Score: 2.5
Natty:
Report link

reinstall rabbitmq doesn't work for me.

I have to delete the entire RabbitMQ data directory.

rm -rf /usr/local/var/lib/rabbitmq/mnesia 
Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (1):
  • Has code block (-0.5):
Posted by: khiav reoy

79249884

Date: 2024-12-04 04:35:32
Score: 3
Natty:
Report link

In Python, type and object have a special relationship. While object is the base class of all Python objects, type is the metaclass of all Python classes, including object.

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

79249880

Date: 2024-12-04 04:30:30
Score: 5.5
Natty: 4
Report link

Have you try to update libssh2?

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

79249875

Date: 2024-12-04 04:24:29
Score: 2
Natty:
Report link

Let Xi>max0 in the first comparison, then your function updates max0 to Xi

Consequently, Xi is no longer greater than max0 in the second comparison and max1 does not get updated.

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

79249870

Date: 2024-12-04 04:22:28
Score: 1.5
Natty:
Report link

I don't fully understand why but for me this solved the issue:

if __name__ == '__main__':
    import torch
    torch.multiprocessing.set_start_method('spawn')
    main()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Qbaza

79249864

Date: 2024-12-04 04:18:27
Score: 1.5
Natty:
Report link

Yes, I think even now we still don't have any built-in abap functions or classes to generate a password protected pdf file so we have to use other software such as PDFTKServer and call the command using SM69.

I explain more detail here on PDF encryption

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

79249860

Date: 2024-12-04 04:15:26
Score: 4.5
Natty:
Report link

Is an optimization applied in compose. It is known as doughnut skipping. Check this article: https://www.jetpackcompose.app/articles/donut-hole-skipping-in-jetpack-compose

Reasons:
  • Blacklisted phrase (1): this article
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pablo Valdes

79249853

Date: 2024-12-04 04:13:26
Score: 0.5
Natty:
Report link

Laravel password is not like sanctum (which I though it would be somewhat similar but no).

You don't need to get csrf cookie, but need to setup a few codes for the login api. You'll need to add grant_type, client_id & client_secret and pass it as data in the url.

const loginData = {
    grant_type: 'password',
    client_id: 'your_client_id',         // Replace with your client ID
    client_secret: 'your_client_secret', // Replace with your client secret
    username: email,               // The user's email
    password: password,
    scope: '',                           // Optional
  };

try {
    const response = await axios.post('http://localhost:8000/oauth/token', loginData, {
      headers: {
        'Content-Type': 'application/json',
      },
    });

Only login api needs that, the rest of api no need bcuz here is where access token is being generated.

You maybe asking where to get the client_id & client_secret, that's in the laravel documentation (pls read)

Reasons:
  • Blacklisted phrase (0.5): i need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: nur najihah

79249852

Date: 2024-12-04 04:13:26
Score: 2.5
Natty:
Report link

em resposta ao comentario: "@DanielStephens make sure to query the /installation/respositories endpoint ("List repositories accessible to the app installation") and not /users/{username}/repos ("List repositories for a user")", muito obrigado, era essa mesma a resolucao, porem, o correto é: /installation/repositories, apenas um erro de escrita no seu comentario me deixou maluco kkkkkkkkkkk

Reasons:
  • RegEx Blacklisted phrase (1): obrigado
  • Has code block (-0.5):
  • Single line (0.5):
  • Filler text (0.5): kkkkkkkkkkk
  • Low reputation (1):
Posted by: Rafael Lélis

79249840

Date: 2024-12-04 04:00:23
Score: 1
Natty:
Report link

You can achieve this by downloading the Format Files extension.

Once you install the extension, run the Start Format Files: From Glob command and use ** as the glob pattern. It will automatically format everything to comply with the .editorconfig file.

For example, I'm working on an Angular project and I wanted to change the indent size to 4 instead of 2 on the TypeScript files. So, after editing the .editorconfig file, I ran this command and used **.ts as the glob pattern. Worked like a charm!

Reasons:
  • Blacklisted phrase (1): Worked like a charm
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: janksmap

79249833

Date: 2024-12-04 03:57:22
Score: 3
Natty:
Report link

The scope of the resolve and reject can be outside the function body. By explicitly defining them, the developer can give me them specific names.

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

79249828

Date: 2024-12-04 03:50:20
Score: 6.5 🚩
Natty: 5.5
Report link

I had tried step3-4, but still not work. Any idea?

Reasons:
  • Blacklisted phrase (1): Any idea?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: default learn

79249826

Date: 2024-12-04 03:48:19
Score: 0.5
Natty:
Report link

This problem still exists for me in Dec 2024.

Only way I could solve the error was to add this to tsconfig.json at the root level.

"include": [
    "./src",
    ".svelte-kit/ambient.d.ts" // added this
]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jhickok

79249814

Date: 2024-12-04 03:41:17
Score: 0.5
Natty:
Report link

It's likely that you have executed rake assets:precompile. This compiles assets and saves them in the public/assets folder.

As mentioned in comments, you should be able to remove these with bundle exec rake assets:clean, which will cause your tests to build them from source each time.

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

79249812

Date: 2024-12-04 03:40:16
Score: 8 🚩
Natty: 4.5
Report link

you have any luck with this? I am having the same issue

Reasons:
  • Blacklisted phrase (1.5): any luck
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zach Meyers

79249808

Date: 2024-12-04 03:35:14
Score: 0.5
Natty:
Report link

The answer is no, you can't manually edit navmesh vertices.

As usual, Unity's built-in solutions are very rigid and narrow in their application.

Your best option for this would be to create a physics mesh specifically to be used with the navmesh, put it in it's own layer, then set the navmesh surface to target that layer only (Object collection -> Include layers). There are addons in the asset store that allow you to edit meshes in the editor if you want that functionality.

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

79249807

Date: 2024-12-04 03:34:13
Score: 10.5 🚩
Natty: 6.5
Report link

Were you able to find solution to that? I'm having the same problem in react js

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eddy Mono

79249806

Date: 2024-12-04 03:32:12
Score: 2.5
Natty:
Report link

pymssql does not support Azure Active Directory Authentication yet.

I suggest you use pyodbc instead. I also have tried for many times in airflow, but all failed.

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

79249776

Date: 2024-12-04 03:13:07
Score: 2
Natty:
Report link

I don't know whether I have to put the question in the decision node or above on the control flow? In my case, the Agree to Price should it be on the decision node or on the control flow arrow that inputs the node?

Problems should be placed at decision nodes.Back to your example,“the Agree to Price” should be placed at decision nodes, that is,on the decision node,not on the control flow arrow that inputs the node。

As well as that, if a use case only specifies a condition, such as " If a vehicle is available, the customer is offered the vehicle and a price is quoted. If the customer accepts then a rental is initiated." how does the decision node look like?

According to the conditions you provided, I used ProcessOn software to draw the decision nodes you described for your reference.

Moreover, what if there are three different actors, should there be a swimlane representing the actors or can the activity diagram be drawn without one?

UML activity diagrams can clearly describe the business or processing process, but they cannot clearly express who completes these activities or actions. Swimlanes can help us solve this problem. They group activities or actions according to the objects they are executed, and separate each group with swimlanes. In this way, the transfer of activities or actions is clearly described, and it is also clear who completes these activities or actions. Therefore, whether there are two participants or three participants, swimlanes can be used for better presentation, which makes reading more intuitive and clear.

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Carl

79249775

Date: 2024-12-04 03:12:07
Score: 0.5
Natty:
Report link

Building on @JosefZ's answer, I've analyzed the sequence of row values (and it's the same for column values) and found a cool pattern in the differences between consecutive terms. Starting from the third term, the differences between consecutive terms follow this sequence:

By taking the base-2 logarithm of these differences, we get the sequence of values:

What stands out is that the logarithmic value 7 appears once, 6 appears twice, 5 appears four times, and so on. In general, for a difference of (2^n), it appears (2^{7-n}) times.

To quantify this, I derived a formula for the difference between the (n)-th and ((n-1))-th terms of the sequence:

difference = math.pow(2, 7 - math.floor(math.log2(n - 2)))

Then, I created a function to generate a mapping of the sequence using this formula:

import math

def generate_mapping(n: int) -> dict:
    mapping = {0: 1, 16256: 2}
    tmp = 16256

    for i in range(3, n + 1):
        tmp += math.pow(2, 7 - math.floor(math.log2(i - 2)))
        mapping[tmp] = i
    return mapping

To optimize this, we can replace the expression math.pow(2, 7 - math.floor(math.log2(n - 2))) with a bit-shift operation:

1 << (7 - (i - 2).bit_length() + 1)

This reduces computation time by avoiding floating-point operations. Here's the updated version of the function with the optimization:

def generate_mapping(n: int) -> dict:
    mapping = {0: 1, 16256: 2}
    tmp = 16256

    for i in range(3, n + 1):
        tmp += 1 << (7 - (i - 2).bit_length() + 1)
        mapping[tmp] = i
    return mapping

As you can see, the latter is much faster though this kind of optimization may be needless. contrast

After applying the optimized mapping, I get the following result:

The result As you can see, the strange row and column values have been successfully converted into indexes.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @JosefZ's
  • Low reputation (1):
Posted by: zahiko

79249768

Date: 2024-12-04 03:07:05
Score: 5
Natty:
Report link

I read a website that said playsinline attribute is only supported on Safari on iOS 10 and above. Do you think that's the problem?

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

79249764

Date: 2024-12-04 03:04:04
Score: 2.5
Natty:
Report link

My situation and solution is a bit different as described here.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: JzHuai

79249754

Date: 2024-12-04 02:58:02
Score: 6 🚩
Natty: 6.5
Report link

This article explains what the issue is and how to solve it: https://forums.ironmansoftware.com/t/start-debugging-results-in-error/2934/11

Reasons:
  • Blacklisted phrase (1): This article
  • Blacklisted phrase (1): how to solve
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: J D

79249750

Date: 2024-12-04 02:55:01
Score: 1
Natty:
Report link

No. Android support Java and Kotlin. Both languages only support package. No namespaces supported.

kotlin

package com.jayc.countdownlocker

java

package com.trustmobi.devicepolicy;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jay chen

79249748

Date: 2024-12-04 02:53:01
Score: 1.5
Natty:
Report link

I tried running with the exact data you gave, and it works as expected when saving with value '0' instead of null in both DB or selecting with DAL. The Version is shopware 6.6.8.2.

I can't find exactly if there is a ticket fix issue for this or not. I suggest you upgrade to the latest version, currently 6.6.9.0, and try again. If you still have the problem, try investigating whether installed plugins are affected.

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

79249743

Date: 2024-12-04 02:49:00
Score: 0.5
Natty:
Report link

To add a signature input field in Excel using VBA, enable the Developer tab and insert a UserForm. Add an InkPicture control to the UserForm for drawing. If the control is not available, you can add it using the "Additional Controls" dialogue box:

enter image description here

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

79249740

Date: 2024-12-04 02:44:59
Score: 1.5
Natty:
Report link

Since I can't comment on a prior post...

In addition to the answer above by valentineProjects...

"compilerOptions": {
    "rootDir": "src",
    "baseUrl": "src"
}

You might also have to change the VSCode preferences for typescript.preferences.importModuleSpecifier to "non-relative". The default is "shortest" which caused me to still get ./ paths.

Reasons:
  • RegEx Blacklisted phrase (1): can't comment
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Smith5646

79249739

Date: 2024-12-04 02:43:59
Score: 3
Natty:
Report link

Can a similar script be used to return a checkbox if any of the previous 4 columns are FALSE, or return 'N/A', if the previous columns are false?

It's a Harry Potter fitness exercise, that allows 2 Tardy Passes per term; I'd like to leave a checkbox available to be checked if a Tardy Pass is not used, and replace the following weeks' columns' checkboxes with 'N/A' if a Tardy Pass has been used. There are 2 rows, 1 row for each Tardy Pass. And 8 columns, 1 column for each week of the 'term'.

:)

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Can a
  • Low reputation (1):
Posted by: mkk

79249738

Date: 2024-12-04 02:42:59
Score: 1
Natty:
Report link

The two applications, as well as the library, were all being compiled as Debug builds.

The issue was due to setting 'Project Properties -> Configuration Properties -> Use Debug Libraries' of the two executable projects being set to 'No', which I found entirely strange that this setting became an issue when it was not before.

I researched further and discovered:

The runtime issue when compiling a Debug version of TradeTools with Use Debug Libraries set to "No" could be caused by a mismatch between the build configuration and the libraries being linked or used. Here’s why this matters and how it could affect the applications:

Mismatch Between CRT Libraries

Debug builds typically link against debug versions of the C runtime (CRT), like MSVCRTD.lib, while Release builds link against MSVCRT.lib. If Use Debug Libraries is set to "No", the compiler links against the Release CRT, but the code and dependencies (like TradeTools) may still be expecting debug symbols and debug-specific memory management behavior.

Memory Allocation Differences

Debug and Release CRTs manage memory differently (e.g., debug CRT adds padding and performs extra checks). If the TradeTools library is compiled with Debug settings but linked against Release CRT, any cross-boundary allocation/deallocation (e.g., new in DLL, delete in EXE) could lead to heap corruption or invalid pointer exceptions.

Symbol Mismatch

Debug builds often include extra symbols for debugging (like assert, extra std::vector checks, etc.). If you're running a debug build but linking to the Release CRT, you may encounter "Entry Point Not Found" or unresolved symbol issues because the debug symbols aren’t present in the linked Release CRT.

Thank you to those that commented / helped.

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

79249737

Date: 2024-12-04 02:42:58
Score: 6.5 🚩
Natty: 6.5
Report link

i hope this later works, because i am in such a situation where i need to dial ussd in my flutter app and also have sequential dials. please show to do this. thank you, kindly.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (2.5): please show
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: adedoyin fadeko

79249735

Date: 2024-12-04 02:41:57
Score: 0.5
Natty:
Report link

In my case I had to add listen [::]:80 for ipv6 as well. After that - it works.

server {
    listen 80;
    listen [::]:80;
    server_name my-site.com;

    root /var/www/html;
    index index.html;
    .....
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ihormillion

79249731

Date: 2024-12-04 02:40:57
Score: 0.5
Natty:
Report link

The correct answer is that you do not need any processes at all. The best FSM code has zero processes. Every FSM has three parts: storage, next state logic, and output logic. All of those are best described in VHDL using concurrent statements. VHDL = Very high speed integrated circuit HARDWARE DESCRIPTION Language.

The goal is to describe hardware, not to write algorithms. You can describe hardware directly with concurrent statements, or go off in the weeds and describe it using processes. If you really understand the language, then you will never use a process. Your code will be more concise, easier to read, easier to debug, and easier to maintain.

Using processes in VHDL is similar to using inline assembly in C. If you understand the language, then you can specify what you want directly, writing code that uses fewer resources with fewer lines of code.

However, learning to write elegant VHDL code means that you have to wrap your brain around the concept of declarative programming. That is something that takes practice, so most people stick with the imperative style of processes.

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

79249709

Date: 2024-12-04 02:29:54
Score: 2.5
Natty:
Report link

Try to remove the jest from types in the line 7 of your tsconfig.json.

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

79249700

Date: 2024-12-04 02:17:52
Score: 1
Natty:
Report link

Even with the rapid development of AI today, there is no software that can automatically generate swimlane diagrams.

If you need to automatically generate complex swimlane diagrams through code or data, you can consider using tools such as PlantUML or Mermaid.js.

If you just need to automatically generate some simple swimlane diagrams, I can recommend you an alternative software: ProcessOn.

ProcessOn is an online drawing software that can be used to draw swimlane diagrams. It has built-in graphic elements such as swimlanes and pools. You can create swimlane diagrams by simply dragging and dropping.

The most important point is that ProcessOn provides a large number of swimlane diagram templates, which you can directly clone and use for free, and then make appropriate modifications. In this way, a swimlane diagram is drawn, which is basically the same as automatically generated.

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

79249695

Date: 2024-12-04 02:15:51
Score: 2
Natty:
Report link

Go to Edit Configurations -> Modify Options -> Add VM Options:

javaagentconfiguration

Put the full path of the javaagent for new relic, newrelic.jar file. Make sure that your newrelic.yml file is in the same folder that the newrelic.jar file.

then run your spring app and it will use new relic agent: Running app

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Julio Cesar Romero Perez

79249691

Date: 2024-12-04 02:14:51
Score: 1
Natty:
Report link

I have tried the following code based on a github discussion Remove a background text which is overlapped with other texts.. It works ok on current pymupdf release.

pip install PyMuPDF

import pymupdf

def process_page(page : pymupdf.Page):
    """Process one page."""
    # doc = page.parent  # the page's owning document
    # page.clean_contents()  # clean page painting syntax
    xref = page.get_contents()[0]  # get xref of resulting /Contents
    changed = 0  # this will be returned
    # read sanitized contents, splitted by line breaks
    cont_lines = page.read_contents().splitlines()
    print(len(cont_lines))
    # print(cont_lines)
    for i in range(len(cont_lines)):  # iterate over the lines
        line = cont_lines[i]
        # print(line)
        if not (line.startswith(b"/Artifact") and b"/Watermark" in line):
            continue  # this was not for us
        # line number i starts the definition, j ends it:
        print(line)
        j = cont_lines.index(b"EMC", i)
        for k in range(i, j):
            # look for image / xobject invocations in this line range
            do_line = cont_lines[k]
            if do_line.endswith(b"Do"):  # this invokes an image / xobject
                cont_lines[k] = b""  # remove / empty this line
                changed += 1
    if changed > 0:  # if we did anything, write back modified /Contents
        doc.update_stream(xref, b"\n".join(cont_lines))
    return changed

fpath = 'your_pdf_file_path/file_name.pdf'
doc = pymupdf.open(fpath)
changed = 0  # indicates successful removals
for page in doc:
    changed += process_page(page)  # increase number of changes
if changed > 0:
    x = "s" if doc.page_count > 1 else ""
    print(f"{changed} watermarks have been removed on {doc.page_count} page{x}.")
    doc.ez_save(doc.name.replace(".pdf", "-nowm.pdf"))
else:
    print("Nothing to change")

Reasons:
  • Blacklisted phrase (1): I have tried the following
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ocean11

79249689

Date: 2024-12-04 02:11:50
Score: 1.5
Natty:
Report link

Place this on your functions.php file.

function load_dashicons(){
    wp_enqueue_style('dashicons');
}
add_action('wp_enqueue_scripts', 'load_dashicons');
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: SAYAN MAITRA

79249679

Date: 2024-12-04 02:01:48
Score: 1
Natty:
Report link

Well, given James's answer, I came up with a workaround for my needs...Unicode!


    import holoviews as hv
    
    # create a dictionary to convert numbers to superscripts
    super_dict = {1:'\u00b1',
                  2:'\u00b2',
                  3:'\u00b2',
                  4:'\u2074',
                  5:'\u2075',
                  6:'\u2076',
                  7:'\u2077',
                  8:'\u2078',
                  9:'\u2079',
                  0:'\u2070'}
    
    # use some math to find the closest power of 10 that is below your
    # desired max. In my case, I wanted 10 rather than 1. One could also
    # probably modify this use %3 to cut off at some reasonable thousand
    def simplify_data(data, col):
        import math
        import numpy as np
        logscale = math.floor(np.log10(data[col].max()))
        new_data = data[col]/(10**(logscale-1))
        new_label = f'{col}/10{super_dict[logscale-1]}'
        data.loc[:, [new_label]] = new_data
        return data, new_label
    
    # create synthetic data
    x = np.linspace(start=0, stop=200000, num=25)
    y = np.linspace(start=0, stop=35, num=25)
    df_test = pd.DataFrame({'x':x, 'y': y})

    # run my new function to generate my scaled variable
    df_test, new_col = simplify_data(df_test, 'x')
    hv.Points(df_test, [new_col, 'y'])
    # the .opts(xlabel=...) is now not needed either

enter image description here

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

79249672

Date: 2024-12-04 01:59:48
Score: 1.5
Natty:
Report link

First get all the branch info from git

git fetch

Then go to the main branch:

git checkout main

You then need to update the version of main you have:

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

79249658

Date: 2024-12-04 01:46:45
Score: 5
Natty: 4.5
Report link

Next Step: https://link-target.net/508162/key-system1 https://link-center.net/508162/key-system Next Step: https://link-target.net/508162/key-system1Next Step: https://link-target.net/508162/key-system1Next Step: https://link-target.net/508162/key-system1Next Step: https://link-target.net/508162/key-system1

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Enos Alerrandro Francisco dSan

79249650

Date: 2024-12-04 01:39:43
Score: 4
Natty: 4
Report link

Deprecated since version 3.7:. Use matplotlib.colormaps[name] or matplotlib.colormaps.get_cmap() or pyplot.get_cmap() instead.

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

79249647

Date: 2024-12-04 01:36:42
Score: 0.5
Natty:
Report link

In DAX, measures are designed to perform calculations based on the filter context of your data model. Because of this, you can't use a column name directly in a measure without wrapping it in an aggregation or other function.

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

79249641

Date: 2024-12-04 01:33:41
Score: 0.5
Natty:
Report link

in my case, I found that a few dead pops were taking up the GPU resources on a few worker nodes which didn't allow for scheduling. I would suggest check your pod resources and limits.

kubectl describe node NODENAME

Check to see if anything is maxed out or resources that are expected are not avaialble.

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

79249615

Date: 2024-12-04 01:11:37
Score: 1
Natty:
Report link

It is not mentioned in docs, that if 'multi' is added while "mode" attribute is not set, or "mode" is "list", then you will end up with an error:

Invalid entity: multi

To fix it need to explicitly set mode="choice"

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

79249611

Date: 2024-12-04 01:09:37
Score: 3.5
Natty:
Report link

flutter_foreground_task also supports auto-starting a foreground service after a reboot.

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

79249599

Date: 2024-12-04 01:01:35
Score: 0.5
Natty:
Report link

You should import the component class like this.

import component from '@/somewhere/component.vue';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Knowledge Drilling

79249598

Date: 2024-12-04 01:01:35
Score: 1
Natty:
Report link

Use Geopy:

# RUN 'pip install geopy' before using code.


from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="your_app_name")
location = geolocator.reverse("{lat}, {long}")
print(location.address)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fritz Robinson

79249596

Date: 2024-12-04 01:00:35
Score: 1
Natty:
Report link

I have tried to add all IP addresses listed, but didn't work.

The updated documentation now states:

IP addresses

  • 142.251.74.0/23
  • 2001:4860:4807::/48 (Optional, for platforms that support IPv6)

If you're connecting to a Cloud SQL PostgreSQL instance, you'll need to add the listed IPs to the authorized networks list.

https://support.google.com/looker-studio/answer/7288010?hl=en# -- under "IP Addresses"

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

79249589

Date: 2024-12-04 00:55:34
Score: 0.5
Natty:
Report link

Just putting in code what @Jacob G correctly said.

    public class CountDuplicates {
    
    public static int count(List<Item> items) {
        int count = 0;
        if (items.size() == 0) {
            return 0;
        }

        items.sort(Comparator.comparingInt(Item::getId));
        System.out.println("items: " + items);
        Map<Object, Long> resultMap = new HashMap<>();
        items.forEach(e -> {
            System.out.println("e : " + e);
            resultMap.put(e, resultMap.getOrDefault(e, 0L) + 1L);   
        });
        System.out.println("Map size: " + resultMap.size());
        return count;
    }

    private static List<Item> convertToList(int[] values) {
        List<Item> items = new ArrayList<>();
        for (int num : values) {
            items.add(new Item(num));
        }
        return items;
    }

    public static void main(String[] args) {
        int[] itemsArray = {5, 5, 2, 4, 2};
        List<Item> items = convertToList(itemsArray);
        int duplicateCount = count(items);
        System.out.println("Duplicate Count: " + duplicateCount);
    }

}


class Item {

    int id;

    public Item(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }
    
    @Override
    public String toString() {
        return id+"";
    }
    
    @Override
    public boolean equals(Object i) {
        return ((Integer)id).equals(((Item)i).id);
    }
    
    @Override
    public int hashCode() {
        return ((Integer)id).hashCode();
    }

}

Output is:

items: [2, 2, 4, 5, 5]

e : 2

e : 2

e : 4

e : 5

e : 5

Map size: 3

Duplicate Count: 0

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Jacob
  • Low reputation (1):
Posted by: Singh Ravish K

79249573

Date: 2024-12-04 00:41:30
Score: 3
Natty:
Report link

The npda will accept aba as will, which does not belong to the language, so the npda is wrong.

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

79249572

Date: 2024-12-04 00:41:30
Score: 0.5
Natty:
Report link

For anyone landing on this thread using the Japan end-point, the configuration is

Dim config = New DatadogConfiguration(url:="https://http-intake.logs.ap1.datadoghq.com", port:=443)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jules Clements

79249569

Date: 2024-12-04 00:39:30
Score: 3
Natty:
Report link

I made the same mistake, to specify a context, you need to move the Dockerfile from the build line.

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

79249568

Date: 2024-12-04 00:39:30
Score: 1
Natty:
Report link

For anyone using the Japan end-point, the URL is as below...

"configuration": {
     "url": "https://http-intake.logs.ap1.datadoghq.com",
     "port": 443
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jules Clements

79249567

Date: 2024-12-04 00:39:30
Score: 1.5
Natty:
Report link

"I think I found your issue with npm. You should just add the environment variable directly, not using the full path."

NPM_BIN_PATH = 'npm.cmd'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Diego Gonzalez

79249548

Date: 2024-12-04 00:23:26
Score: 3.5
Natty:
Report link

This issue get resolved magically once after I get installed redis-cli on my window pc. Anyone knows the technical reason behind this?

p.s: Since Redis is not officially supported on Windows, first need to enable WSL2 (Windows Subsystem for Linux), followed by redis-cli installation

Reasons:
  • Blacklisted phrase (1): Anyone knows
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: pingpong2020

79249545

Date: 2024-12-04 00:22:26
Score: 3.5
Natty:
Report link

This command also works in Mongo Compass as an alternative.

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

79249544

Date: 2024-12-04 00:22:26
Score: 1
Natty:
Report link

In the course of writing my question, I found the answer.

The *** in the echo statement is not a null value, but instead is indicating the secret was accessed. Since the variable is meant to be secret, the value of the variable will not be printed in the console.

You can access your repository secrets with: ${{ secrets.SECRET-NAME }} but the value of the secret will not be displayed in the console.

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

79249532

Date: 2024-12-04 00:10:24
Score: 1
Natty:
Report link

Kind of. AMD created a project called ZLUDA, which is basically an AMD alternative to CUDA.

Refer here for more info.

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

79249525

Date: 2024-12-04 00:08:23
Score: 1.5
Natty:
Report link

Just do this:

key_words = ["enterprise", "customer"]
userInput = input("How may I help you?")

for word in userInput.split()
   if word in key_words:
      return true
   else:
      return false

Stuff like this may help. If it isn't or anything is wrong, plz tell me cuz im also a beginner! 😀

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

79249515

Date: 2024-12-04 00:03:22
Score: 3.5
Natty:
Report link

The issue was a missing environment variable on Netlify.

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

79249513

Date: 2024-12-04 00:01:21
Score: 9.5 🚩
Natty: 4.5
Report link

Did you ever figure this out mate I'm having the same issue Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Did you ever figure this out
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Adam Ward

79249503

Date: 2024-12-03 23:55:19
Score: 1.5
Natty:
Report link

To achieve high availability (HA) and enable traffic failover between two public subnets hosting EC2 instances with HA, you can utilize an Application Load Balancer (ALB).

Start by creating a target group and registering both EC2 instances (one in each subnet) as targets.

Next, configure an ALB to distribute incoming traffic across these targets. The ALB operates across multiple Availability Zones, ensuring failover by directing traffic to the healthy instance in the event of failure in one subnet. Additionally, configure health checks in the target group to monitor the EC2 instances’ availability and functionality, allowing the ALB to dynamically route traffic to the active instance. This setup ensures continuous traffic flow and enhances application reliability during subnet or instance failures.

these links have all the informations you need:

https://aws.amazon.com/elasticloadbalancing/ https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html

Reasons:
  • Blacklisted phrase (1): these links
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Fedi Bounouh

79249500

Date: 2024-12-03 23:53:18
Score: 2
Natty:
Report link

So there's two things that may result this issue:

1 - you need to ensure that the IAM role associated with the API Gateway has the correct permissions to write metrics and logs to CloudWatch:

cloudwatch:PutMetricData
logs:CreateLogStream
logs:PutLogEvents

These permissions should be part of the policy associated with the API Gateway execution role.

2 - it may need some time for the logs to appear, did you tried to send many requests and then checked the logs?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Fedi Bounouh

79249499

Date: 2024-12-03 23:53:18
Score: 0.5
Natty:
Report link

For cases when you are using InteractiveWebAssemblyRenderMode, you can disable prerendering so no code is :

@rendermode @(new InteractiveWebAssemblyRenderMode(prerender: false))

Then you can call JSInterop from OnInitialized(Async) with no issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Daniel Martínez Sarta

79249481

Date: 2024-12-03 23:42:16
Score: 0.5
Natty:
Report link

I tried a few changes and they did not correct the problem. I reviewed my constructor and realized I had set the constructor as:

Layout tl = new TableLayout(3, 1);

I changed the constructor to:

TableLayout tl = new TableLayout(3, 1);

This corrected the "cannot find symbol" error. Always check your constructors.

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

79249478

Date: 2024-12-03 23:41:15
Score: 1
Natty:
Report link

What resolved the issue for me is simply adding a aria-label to the select like so:

    <Select
      aria-label="locale-switcher"
      defaultSelectedKeys={[locale]}
      onChange={handleSelectionChange}
    >
      {routing.locales.map((locale) => (
        <SelectItem key={locale}>{t(locale)}</SelectItem>
      ))}
    </Select>);
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Kevin L.

79249472

Date: 2024-12-03 23:39:14
Score: 9 🚩
Natty: 4.5
Report link

Did you fix the issue? Im facing the same and wondering what was it

Reasons:
  • RegEx Blacklisted phrase (3): Did you fix the
  • RegEx Blacklisted phrase (1.5): fix the issue?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you fix the is
  • Low reputation (1):
Posted by: Enrique Pernía Garcia

79249468

Date: 2024-12-03 23:37:13
Score: 1
Natty:
Report link

You can try idle-js with configured short idle: 10, // miliseconds and then listen to onActive callback.

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

79249467

Date: 2024-12-03 23:37:13
Score: 1
Natty:
Report link

Current count: @currentCount

<button type="button" class="btn btn-primary" @onclick="IncrementCount">Click me

@code { private int currentCount = 0;

[Parameter]
public int InitialValue { get; set; }

[Parameter]
public EventCallback<int> currentCountChanged{ get; set; }

[Parameter]
public Action OnClickNew { get; set; }


private void IncrementCount() {

    currentCount++;

    currentCountChanged.InvokeAsync(currentCount);
}

protected override void OnParametersSet()
{
    currentCount = InitialValue;
}

}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @currentCount
  • User mentioned (0): @code
  • Low reputation (1):
Posted by: Reza.v

79249465

Date: 2024-12-03 23:36:12
Score: 6 🚩
Natty: 5
Report link

I am running Docker Desktop for Windows on my laptop. My build will run in the detached mode but it will not start the images in foreground mode. Where should I start to troubleshoot?

Reasons:
  • Blacklisted phrase (1.5): Where should I
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Duane Depew2

79249463

Date: 2024-12-03 23:34:11
Score: 1
Natty:
Report link

For GCP console in 2024, there is a little difference with ahmet's answer, here I would use VM Instance as an example: console.png
after click configure aligner, there would be a Alignment function next with it, then switch it from rate to sum, done.

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

79249458

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

library(RcmdrMisc) Error: package or namespace load failed for ‘RcmdrMisc’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘stringi’

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: DERRICK OWUSU GYENI

79249453

Date: 2024-12-03 23:26:09
Score: 1
Natty:
Report link

The issue probably is not because of the difference in columns but because of the custom types that you have added in for the columns sala and castEvento.

I tried running with varying columns, it seems to run fine but I have replaced the data type of sala and castEvento with valid data types(eg text).

Fiddle

You either need to define custom data types for those columns or use valid data types.

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

79249451

Date: 2024-12-03 23:26:09
Score: 1.5
Natty:
Report link

Ensure you have created and opened your project as a python project. (It should have a .pyproject file).

Then it is straightforward: create a new run configuration and run/debug it.

Notes:

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

79249447

Date: 2024-12-03 23:20:08
Score: 1.5
Natty:
Report link

You won't go away from creating a new object (I mean internally somewhere new object will still be created), if we are talking about API responses, a good approach is using DTO objects, that is simple data class, that contain all of the needed properties and even if you decide to extend your base object, you will not get those props as a result of endpoint, only adding those to DTO will do.

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

79249445

Date: 2024-12-03 23:20:08
Score: 3
Natty:
Report link

I have made a CardMarket Bot that works on every TCG(pokemon, magic yugioh...) free to use in private alpha. Join the discord to be part of the team. https://discord.gg/PtyxbjS4re

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

79249431

Date: 2024-12-03 23:09:06
Score: 1.5
Natty:
Report link

Based on my understanding you need the index of the path? let me know

WITH json_data AS (
    SELECT '{"Laptop": {"brand": "Dell", "price": 1200, "specs": [{"name": "CPU", "Brand": "Intel"}, {"name": "GPU", "Brand": "Nvdia"}, {"name": "RAM", "Brand": "Kingston"}]}}'::jsonb AS col
)
SELECT 
    CONCAT('$.Laptop.specs[', idx - 1, '].name') AS full_json_path
FROM 
    json_data,
    LATERAL jsonb_array_elements(col->'Laptop'->'specs') WITH ORDINALITY arr(elem, idx)
WHERE 
    elem->>'name' = 'CPU';

Output

$.Laptop.specs[0].name
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: samhita

79249427

Date: 2024-12-03 23:07:05
Score: 0.5
Natty:
Report link

I found this did the job for me.

#css
.p-input-icon-left .p-autocomplete-input {
  padding-left: 2.5rem
}
<span className="p-input-icon-left">
    <AutoComplete />
    <i className="pi pi-search" />
</span>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shane

79249417

Date: 2024-12-03 23:02:04
Score: 3
Natty:
Report link

If you go to Options -> Security -> Native Database Queries and uncheck "Require user approval for new native database queries" you won't be prompted to Run the native query after applying your changes

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

79249409

Date: 2024-12-03 22:59:03
Score: 0.5
Natty:
Report link

You can use LEFT Join and a NULL condition

SELECT a.Id, a.appleId
FROM TableA a
LEFT JOIN TableB b ON a.appleId = b.bappleId
WHERE b.bappleId IS NULL;

Output

enter image description here

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: samhita

79249408

Date: 2024-12-03 22:59:03
Score: 3.5
Natty:
Report link

I have found that the * operator (SELECT * ) does not work with the OpenQuery function. But listing each column you want should work.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Al A.

79249401

Date: 2024-12-03 22:55:02
Score: 1.5
Natty:
Report link

You were using a closing ) instead of a closing >.

Here is the corrected line:

preg_match_all('/<(video|audio)[^>]+src="([^"]+)">/', $str, $matches);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: waitwhat

79249397

Date: 2024-12-03 22:53:02
Score: 2.5
Natty:
Report link

Go 1.22

As said by @Mart, There's a library function for that, example usage:

w := [][]string{{"a", "b", "c"}, {"d", "e", "f"}}
v := slices.Concat(w...)
fmt.Println(v) // [a b c d e f]

see - https://pkg.go.dev/[email protected]#Concat

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Mart
  • Low reputation (0.5):
Posted by: Michael Tadnir

79249390

Date: 2024-12-03 22:47:00
Score: 3.5
Natty:
Report link

You call the set function without parameters like so: https://api.telegram.org/bot< YOURBOTTOKEN >/setMyDescription

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

79249389

Date: 2024-12-03 22:47:00
Score: 2.5
Natty:
Report link

Check if java -version returns the proper version in terminal. You may need to do some tinkering to point your machine to your java installation. Refer to this answer for help with Java. https://stackoverflow.com/a/19663996/19633851

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MotoMatt5040

79249388

Date: 2024-12-03 22:46:00
Score: 0.5
Natty:
Report link

The red file is probably and indication of uncommitted changes in Git.

Since build_runner generates new code, those files have been modified but haven't been committed

See also:

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

79249386

Date: 2024-12-03 22:43:59
Score: 1.5
Natty:
Report link

Thank to dioo1461, I double check my files in UpgradeHelper and now it works! In my case I forgot to update settings.gradle and gradle-wrapper.jar files after upgrading react-native to version ^0.76

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

79249378

Date: 2024-12-03 22:40:59
Score: 3
Natty:
Report link

console.system() is used to get system level logs displayed on the console. It is a built in logging feature of Chrome Dev tools

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

79249373

Date: 2024-12-03 22:39:58
Score: 2.5
Natty:
Report link

You're using <nuxt-picture/> and it should be <NuxtPicture/>

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