79526836

Date: 2025-03-22 01:49:03
Score: 2.5
Natty:
Report link

Either use object-oriented programming(declare classes) and make but_01 a static variable. Or pass this but_01 as an argument to the function get_display_ent_01() when you call it.

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

79526821

Date: 2025-03-22 01:21:59
Score: 0.5
Natty:
Report link

This is the fix

"[todo]": {
    "github.copilot.editor.enableAutoCompletions": false,
  }

You can also right click on Select Language Mode in bottom right corner, and select Configure 'Todo' Language based settings. This adds this language specific JSON part to your VSCode Settings.

enter image description here

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

79526819

Date: 2025-03-22 01:18:58
Score: 7.5 đźš©
Natty: 6.5
Report link

I am a total beginner to .NET MVC core and trying to self-learn. I am going through your code for this traffic signal application and I understand most of it. But how do I actually create the SQL database and table with that Create Table script? Do I have to have SQL Server Management Studio installed? Do I generate it right through the c# compiler? Your help would be greatly appreciated. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): how do I
  • RegEx Blacklisted phrase (3): help would be greatly appreciated
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rocker2982

79526814

Date: 2025-03-22 01:08:56
Score: 0.5
Natty:
Report link

I have a solution. It is a very hacky solution but works.

The issue is googles pointerdown event listener hides the modal before the click triggers.

You can override the shadow root to make it accessible (it is closed by default).

    const originalAttachShadow = Element.prototype.attachShadow;
    Element.prototype.attachShadow = function (init: ShadowRootInit) {
      if (init.mode === "closed") {
        console.log("Intercepted closed shadow root!");
        (this as any)._shadowRoot = originalAttachShadow.call(this, init);
        return (this as any)._shadowRoot;
      }
      return originalAttachShadow.call(this, init);
    };

Then add a MutationObserver that triggers when children are created. The li's are created on demand so you need to wait for them. You can then override the pointer down and manually do the click.

        var predictions = this.searchBox._shadowRoot.querySelector('.dropdown')

        // Ensure the predictions element exists before proceeding
        if (predictions) {
          // Create a MutationObserver to monitor child additions
          const observer = new MutationObserver((mutationsList) => {
            mutationsList.forEach(mutation => {
              if (mutation.type === 'childList' && mutation.addedNodes.length > 0) {
                mutation.addedNodes.forEach(node => {
                  if (node.nodeType === 1) { // Make sure the node is an element node
                    //@ts-ignore
                     node.addEventListener('pointerdown', () => {
                      //@ts-ignore
                      node.click()
                     })
                  }
                });
              }
            });
          });

          // Start observing the predictions element for added child elements
          observer.observe(predictions, {
            childList: true,  // Observe added/removed child elements
            subtree: true     // Observe all descendants (not just direct children)
          });

This should allow autocomplete to work in the modal. I also tried modifying the z-index of a bunch of elements and that did not work so you have a better solution be sure to let me know!

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jerome Kessler

79526806

Date: 2025-03-22 00:59:54
Score: 0.5
Natty:
Report link

CGImage supports a wide variety of content, including formats that are 16 bits per channel, and have non RGB colorspaces, half-float samples, etc. So the above code (second example) doesn’t necessarily handle these cases correctly. The function will do conversions and such, but it isn’t guaranteed that the source colorspace combined with a 32-bit four channel pixel make any sense. More likely, it may just be you are visualizing the contents of the vImage buffer incorrectly. I would be especially cautious of endian problems. The image could be BGRA and you might be visualizing it as ARGB or RGBA, for example. As you can see for some of these cases the alpha and blue channels can be swapped and in those cases the mostly opaque alpha will become a mostly blue image, with some swapping also of red and green.

What is primarily missing in this problem description is how you are visualizing the vImage buffer. You also should go find out what the colorspace and CGBitmapInfo for the image are and report back. The colorspace will self report its contents using the po command in the debugger. The CGBitmapInfo bit field may or may not resolve itself in the debugger but it is fairly simple to decode by hand.

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

79526796

Date: 2025-03-22 00:49:52
Score: 0.5
Natty:
Report link

The problem is how you handle the case when your tree reaches the bottom.

In you case if you use if statement it should keep oupting 7 while you do preOrder(7) because

When you do the recursion

return preordernextRecursive(node.parent);

Node will become 5 and fall in the below statement since node.left = 7

 else if (node.left != null) {
            return node.left.element; 
        } 

Solution 1 (Using recursion)

Instead of using if else you can try using while loop:

while (node.parent != null) {
      if (node.parent.left == node && node.parent.right != null) {
        return node.parent.right.element;
      }
      node = node.parent;
}

This simply keep moving up until it reached the root element and return the node of right subtree,


Solution 2 (Just while loop)

Node<E> current = node;
    while (current.parent != null) {
        if (current.parent.left == current && current.parent.right != null) {
            return current.parent.right.element;
        }
        current = current.parent;
    }

This is similar to solution 1 but remove the recursion part, which should have a slightly better space complexity.

probably not the best solutions but should be able to solve your problem !

This is my first time to comment here (and literally just made an account)

Hope this is clear for you !🙂

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Karso

79526792

Date: 2025-03-22 00:43:51
Score: 3
Natty:
Report link

What I think you're looking for is ::deep

I found it on https://learn.microsoft.com/en-us/aspnet/core/blazor/components/css-isolation?view=aspnetcore-9.0

::deep {
     --mblue: #0000ff;
}
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What I
  • Low reputation (0.5):
Posted by: MrSethT

79526790

Date: 2025-03-22 00:40:50
Score: 2
Natty:
Report link

If I understand the question correctly, you want to disable the security settings. One thing I would check is to make sure there are no setup or start scripts running that will undo you intending settings. For example, their may be an environment variable such as DISABLE_SECURITY_PLUGIN that may need to be set to true like: DISABLE_SECURITY_PLUGIN=true

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: malkebu-lan at uequations.com

79526785

Date: 2025-03-22 00:36:49
Score: 3.5
Natty:
Report link

The API is deprecated and any SDKs for it are no longer available.

Source: https://developer.samsung.com/galaxy-edge/overview.html

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

79526783

Date: 2025-03-22 00:33:48
Score: 1
Natty:
Report link

According to the JavaDoc, it is

import static org.mockserver.model.JsonBody.json;
Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Sören

79526773

Date: 2025-03-22 00:21:46
Score: 2.5
Natty:
Report link

Kindly refer the book by Ben Watson C# 4.0 for proper understanding of the concepts, and for lot of practical ideas.

A Gem of a Book...!!

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: chandra play l Srinivasan

79526767

Date: 2025-03-22 00:15:45
Score: 0.5
Natty:
Report link

Since it is an <input type="checkbox"> Cypress wants to use the .check() command - https://docs.cypress.io/api/commands/check.

// before checking, assert that it's not checked
cy.get('[test-id="A02-checkbox"] input').should('not.be.checked')

cy.get('[test-id="A02-checkbox"] input')
  .check()

// after checking, assert that it is checked
cy.get('[test-id="A02-checkbox"] input').should('be.checked')

// ... now you can uncheck() it
cy.get('[test-id="A02-checkbox"] input')
  .uncheck()

// after un-checking, assert that it is not checked
cy.get('[test-id="A02-checkbox"] input').should('not.be.checked')
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Leta Waldergrave

79526764

Date: 2025-03-22 00:14:44
Score: 2.5
Natty:
Report link

I faced System.Security.Cryptography.AuthenticationTagMismatchException while decrypting text using AESGCM-

Using same key for encryption and decryption fixed above exception.

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

79526762

Date: 2025-03-22 00:11:44
Score: 0.5
Natty:
Report link

I know it's been a long time since this question is up but here is a possible soultion.

The only way I could work around it was to save the style object attached to the original cell and then apply these styles back to each cell in the newly inserted row. I know it's very tedious but that's the only way I could do it and it works.

The code below gets sampleStyles via getCellStyles() from designated cells defined in a sampleRowNum and then applying these styles to the new row cells using writeTransactionToRow()

function writeTransactionToRow(row, transaction, sampleStyles) {
    row.getCell(dateColumn).value = transaction.date;
    row.getCell(descColumn).value = transaction.description;
    row.getCell(amountColumn).value = transaction.amount;

    // Apply original cell format styles to the row
    const { dateCellStyle, descCellStyle, amountCellStyle } = sampleStyles;
    row.getCell(dateColumn).style = { ...dateCellStyle };
    row.getCell(descColumn).style = { ...descCellStyle };
    row.getCell(amountColumn).style = { ...amountCellStyle };
}

function getCellStyles(worksheet) {
    // get format style object from sample row
    const dateCellStyle = worksheet
        .getRow(sampleRowNum)
        .getCell(dateColumn).style;
    const descCellStyle = worksheet
        .getRow(sampleRowNum)
        .getCell(descColumn).style;
    const amountCellStyle = worksheet
        .getRow(sampleRowNum)
        .getCell(amountColumn).style;
    return { dateCellStyle, descCellStyle, amountCellStyle };
}

Reasons:
  • Blacklisted phrase (1): I know it's been
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hamid Ali

79526757

Date: 2025-03-22 00:00:43
Score: 2.5
Natty:
Report link

I got this same error when I mistakenly installed 'ants' and not 'antspyx'. I realize that's not the original question, but it may help someone.

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

79526749

Date: 2025-03-21 23:50:41
Score: 3.5
Natty:
Report link

test answer test answer test answer

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

79526747

Date: 2025-03-21 23:46:40
Score: 0.5
Natty:
Report link

From your error messages, you seem to be using Python 3.13. But the stable release of gensim (i.e. 4.3.3) currently has Python 3.8 - 3.12 wheels for all major platforms. There's no support yet for Python 3.13. You can downgrade to Python 3.12 to install this package.

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

79526746

Date: 2025-03-21 23:42:39
Score: 3
Natty:
Report link

On my Samsung Galaxy S22 all I needed to do is Check for Updates on Windows. It installed a driver for my phone, afterwards the popup appeared immediately. I'm not sure that's your problem here but still wanted to add this to the thread in case someone else has this particular issue.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: K Rotacios

79526745

Date: 2025-03-21 23:42:39
Score: 2.5
Natty:
Report link

smarty is the grand father of template frameworks. I hated it the first time I lay eyes on smarty code around 2007-8. Thankfully it has gone extinct. I have seen 100s of template frameworks & MVC frameworks in PHP. Hate them all. The most complicated I saw was Typo3. It had 6 or 7 layers of template parsing in between. 23 years career in PHP coding... I am a purist. Hate the Javascript template frameworks too... jquery, Angular...etc

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

79526742

Date: 2025-03-21 23:38:38
Score: 0.5
Natty:
Report link

Leaving this as an answer as a reference for people what seems to work, but is just plain wrong:

It seems that the PID of `zfs send` is always `+1` of the PID returned by `$!`. However, it has been pointed out that this is no guarantee and thus should not be relied upon.
$!+1 might be a different process than intended, which results in the wanted process to keep running, and an unwanted process being killed.


crypt_keydata_backup=""
time while IFS= read -r line; do
    crypt_keydata_backup+="${line}"$'\n'
    if [[ "${line}" == *"end crypt_keydata"* ]]; then
        kill $(( $! + 1 )) &>/dev/null
        break
    fi
done< <(stdbuf -oL zfs send -w -p ${backup_snapshot} | stdbuf -oL zstream dump -v)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Maanloper

79526738

Date: 2025-03-21 23:32:37
Score: 2
Natty:
Report link

If anyone was wondering for an answer, basically I wanted to test the code within the service bus message handler (processmessageasync) and was initially looking for a way to simulate message dispatching and then processing. I was a new engineer and saw our legacy code had untested code within the handler that was not separated to its own function. As a new eng, I asked the question assuming that was the norm.

Long story short (and what Jesse commented in my post) is that my question is effectively nonsensical. We are not concerned with testing the handler but our own logic.

As such, just abstract the code within the handler to a function and write a unit test of that instead :) Then you can moq the message and its completion handler also.

ex:

// Not written with exact syntax

// If want to unit test everything, don't do this
ProcessMessageAsync (args) => 
{
    data1 = args.smt
    etc
    etc
}

// Just do this
ProcessMessageAsync (args) =>
{
    MyMessageHandlerFunction(args) // test this
}


....

// just unpack everything here and mock the args and message completion handler also

MyMessageHandlerFunction(args){
    data1 = args.smt
    etc
    etc
}

All in all, this was basically a dumb question lol. Thanks to Jesse who still put in time to answer it.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): was wondering
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: linglingslinguini

79526728

Date: 2025-03-21 23:21:35
Score: 5
Natty:
Report link

Android Meerkat 2024.3.1 has broken the plugin again! If anyone can help, here's a new thread into the issue.

Android Drawable Importer Broken (Again) in Android Studio Meerkat 2024.3.1

Reasons:
  • RegEx Blacklisted phrase (3): anyone can help
  • RegEx Blacklisted phrase (0.5): anyone can help
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Morgan Koh

79526727

Date: 2025-03-21 23:21:34
Score: 5
Natty:
Report link

Android Meerkat 2024.3.1 has broken the plugin again! If anyone can help, here's a new thread into the issue.

Android Drawable Importer Broken (Again) in Android Studio Meerkat 2024.3.1

Reasons:
  • RegEx Blacklisted phrase (3): anyone can help
  • RegEx Blacklisted phrase (0.5): anyone can help
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Morgan Koh

79526720

Date: 2025-03-21 23:17:34
Score: 1
Natty:
Report link

For anyone else finding this, since I'm still not sure where is in the documentation I got it to work with

"parameterValueSet": {
        "name": "managedIdentityAuth",
        "values": {}
      }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: OffByOne

79526705

Date: 2025-03-21 22:59:30
Score: 9.5
Natty: 7.5
Report link

Can you let me know if you overcame the issue? I have the very same issue as you did... Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Can you let me know
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the very same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: ogtvinzlee

79526701

Date: 2025-03-21 22:58:29
Score: 1
Natty:
Report link

If you are using cmake on windows the solution as in docs is following line:

set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sucicf1

79526700

Date: 2025-03-21 22:58:29
Score: 0.5
Natty:
Report link

Switching from MinGW to MSVC resolved the issue for me.

You can check your active Rust toolchain by running:

rustup show active-toolchain

If the output includes gnu at the end, you can switch to the MSVC toolchain with:

rustup default stable-x86_64-pc-windows-msvc
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alirezaarabi

79526699

Date: 2025-03-21 22:57:29
Score: 0.5
Natty:
Report link

Switching from MinGW to MSVC resolved the issue for me.

You can check your active Rust toolchain by running:

rustup show active-toolchain

If the output includes gnu at the end, you can switch to the MSVC toolchain with:

rustup default stable-x86_64-pc-windows-msvc
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alirezaarabi

79526695

Date: 2025-03-21 22:55:28
Score: 1
Natty:
Report link

Hit the same issue. After checking /opt/homebrew/share/zsh/site-functions, found several stale soft links pointing to deleted formulas. Running brew cleanup fixed this issue by removing those stale soft links.

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

79526688

Date: 2025-03-21 22:43:27
Score: 1
Natty:
Report link

The issue is in how you're handling file uploads in your frontend code. The MultipartException occurs because:

1- You're adding enctype="multipart/form-data" to your form, but the form isn't actually being submitted, instead you're using Axios directly.

2- Your Axios request in addNewAsset() isn't configured to send multipart/form-data:

addNewAsset(asset) {
    return axios.post(ASSETS_GOT_FROM_REST_API, asset);
}

3- Your Spring controller expects @RequestParam files but is receiving them as part of the @RequestBody

this is all the problem i saw.

also use FormData in your JavaScript to properly handle multipart uploads.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @RequestParam
  • User mentioned (0): @RequestBody
  • Low reputation (1):
Posted by: ayman belqadi

79526675

Date: 2025-03-21 22:33:24
Score: 4.5
Natty:
Report link

After updating to ver. 17.13.4 the problem is gone. Still no explanation why it happened.

Thanks all of you for trying to help me. Wish you alla a happy springtime.

/ Linnéa

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Linnéa Elvesjö

79526671

Date: 2025-03-21 22:32:24
Score: 4
Natty:
Report link

See this link

$('.multiselect').multiselect({
    includeSelectAllOption: true
});
Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): See this link
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Ali Rasouli

79526669

Date: 2025-03-21 22:31:23
Score: 3
Natty:
Report link

In Chrome browser in my case this bug was disappeared after closing Chrome developer tools panel. (it was opened in separate window).

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

79526665

Date: 2025-03-21 22:30:23
Score: 0.5
Natty:
Report link
git log --remerge-diff

You can also specific the commit hash to get more specific output. Will list all conflict resolution history for merges

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

79526650

Date: 2025-03-21 22:12:20
Score: 3
Natty:
Report link

None of the options above are good for Report Builder.

I need to convert a string (date) to date format.

Hire Date shows as 01011999 I need 01/01/1999

I attempted using
CHAR(DIGITS(HDT#01):1 2) || '/' || CHAR(DIGITS(HDT#01):3 2) || '/' || CHAR(DIGITS(HDT#01):5 4)
But report builder does not allow :

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: sam

79526649

Date: 2025-03-21 22:11:20
Score: 3
Natty:
Report link

0

In 2024, This worked for me.

import Swiper from 'swiper'; import { Autoplay, Navigation, Pagination } from 'swiper/modules';

Swiper.use([Autoplay, Navigation, Pagination]);

esta sugerencia de @Karan Datwani resolvio para mi tambien. Muchas gracias!!

Reasons:
  • Blacklisted phrase (2): gracias
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Karan
  • Low reputation (1):
Posted by: Jonatán Moyano

79526648

Date: 2025-03-21 22:11:20
Score: 0.5
Natty:
Report link

I tried all of these with no luck. Finally

   rm -rf ~/Library/Developer/Xcode/DerivedData

worked for me.

-Sequoia 15.4
-Xcode 16.2
-iPhone 16Pro
-iOS 18.3.2

Reasons:
  • Blacklisted phrase (1): no luck
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
Posted by: stever

79526642

Date: 2025-03-21 22:09:19
Score: 0.5
Natty:
Report link

This is likely misinterpreting the use case for left align. Depending on your flat file destination, it is not necessary or may be automatically performed by the destination application, such as Microsoft Excel file or CSV.

If you were to left-align your numerical values as if they were strings it would require casting them to strings and padding the strings on the left with spaces so all strings become the same length. This is computationally expensive, as you need to covert all rows in your dataset, and apply transformations to each individual record. Even worse, doing so will make the values unusable. Those strings will need to be converted back to numeric if you want to apply any computation to them, as strings cannot be used for calculations.

You'll be better off either ignoring the problem, or using your Excel file's built-in functionality to achieve this rather than writing bespoke code.

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

79526640

Date: 2025-03-21 22:07:19
Score: 1
Natty:
Report link

from PIL import Image

# Putanje do slika

background_path = "/mnt/data/A_stylish_Instagram_background_image_with_a_sleek,.png"

foreground_path = "/mnt/data/file-QW5Pt7v4FkSB6ZhxEk4x7e"

# Otvaranje slika

background = Image.open(background_path)

foreground = Image.open(foreground_path)

# Promjena veliÄŤine foreground slike da odgovara backgroundu

foreground = foreground.resize(background.size)

# Kombinovanje slika uz laganu transparentnost foregrounda

combined = Image.blend(background, foreground, alpha=0.6)

# Spremanje rezultata

output_path = "/mnt/data/combined_image.png"

combined.save(output_path)

output_path

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

79526638

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

You will find your answer in this article: https://learn.microsoft.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps#set-up-app-only-authentication

The key is that the permissions are still there, you have to add a permission. Go to APIs my organization uses. Then you do not search but press load more at the bottom until everything is loaded. Then scroll and search and you will find 'Office365 Exchange Online'. Choose application permissions and there are the Exchange.manageAsApp for instance.

Reasons:
  • Blacklisted phrase (1): this article
  • No code block (0.5):
Posted by: Bernard Moeskops

79526635

Date: 2025-03-21 22:02:18
Score: 0.5
Natty:
Report link

I strongly recommend using react-native-mmkv instead of @react-native-async-storage/async-storage. It’s significantly faster and fully compatible with the new React Native architecture.

Also, when starting a new project, try installing each dependency one by one rather than copying the entire package.json. This helps avoid version mismatches and makes it easier to troubleshoot issues as they come up.

Finally, I suggest researching which libraries are better adapted to the new React Native architecture. For example, use react-native-bootsplash instead of react-native-splash-screen for better support and performance.

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

79526620

Date: 2025-03-21 21:46:16
Score: 1
Natty:
Report link

A direct 'Next Runt time' property will no be available but you can use the ADF trigger Rest API and analyze trigger definitions and look for recurrence property(shown below in yellow) to get the schedule and based on current date calculate the next run.

ADF Schedule trigger definition

For more details abut schedule trigger definition, please check this link Schedule Trigger Definition

Also you can use the different methods explained in this link to get the details of trigger run. below is a sample azpowershell command to get the trigger run details. once you get the pattern based on that you can create some logic to calculate the next run

Get-AzDataFactoryV2TriggerRun -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -TriggerName "MyTrigger" -TriggerRunStartedAfter "2017-12-08T00:00:00" -TriggerRunStartedBefore "2017-12-08T01:00:00"

Also you can use azure monitor logs to check history run and understand the run pattern and calculate the approx next run.

Reasons:
  • Blacklisted phrase (1): please check this
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): check this link
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SQL006

79526596

Date: 2025-03-21 21:23:11
Score: 1
Natty:
Report link

In my case, I was copying the .exe to another directory and running it there. The Could not resolve CoreCLR path error was resolved by also copying MyProject.runtimeconfig.json to the target directory.

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

79526594

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

Answered by @thomas in a comment.

Essentially, container apps have a container resource allocation section that will be used per container. A node is the underlying VM. If there are more replicas than what can be created in the node, an error will be thrown.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @thomas
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: SamIAm

79526588

Date: 2025-03-21 21:18:10
Score: 2.5
Natty:
Report link

try with:

console.log(json[0].address);

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (0.5):
Posted by: Mario ECs

79526585

Date: 2025-03-21 21:13:09
Score: 3
Natty:
Report link

You have been able to this through the browser since 2021, though adoption in browsers is limited.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API#browser_compatibility

You might also use the WebUSB API: https://developer.mozilla.org/en-US/docs/Web/API/WebUSB_API

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

79526580

Date: 2025-03-21 21:12:09
Score: 0.5
Natty:
Report link
    public function getAge(string $birthday): int
    {
        return (new \DateTime('now'))->diff(new \DateTime($birthday))->y;
    }

    echo getAge('1982-08-22');

Enjoy

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

79526565

Date: 2025-03-21 21:01:07
Score: 0.5
Natty:
Report link

I think, there's something wrong with your request. Check your header "content-type" is set to "application/x-www-form-urlencoded" , but since you're sending a JSON object, try to switch it to application/json. As you can see , the error Cannot bind query parameter. Field 'name' could not be found in request message.", attribute is missing , it means there something wrong in sending request in your server.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jason V. Castellano

79526556

Date: 2025-03-21 20:50:05
Score: 1.5
Natty:
Report link

I hate to say this, but I gave the problem to Claude Sonnet, and got an acceptable result.

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

79526549

Date: 2025-03-21 20:45:04
Score: 0.5
Natty:
Report link

Thanks to Adon and Timus I found two solutions that work even faster within my class.

    def read_file(self, start):
        self.readstart = start

        with open(self.filename, "r") as f:
            f.seek(self.readstart)
            line = f.readline()
            content = ""
            while line:
                content += line.strip()
                line = f.readline()
                if line.strip().startswith('>'): 
                    self.content = content
                    return

and

    def alt_read_file(self, start, end):
        with open(self.filename, "r") as f:
            f.seek(start)
            self.content = re.sub(r"\s+", "", f.read(end-start))

The answer to my initial question is that probably by string concatenation of a class variable each time memory allocation is renewed by the Python interpreter.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user1491229

79526519

Date: 2025-03-21 20:25:00
Score: 0.5
Natty:
Report link

I see what you mean, but I don't fully understand why you see this as a problem ? if there aren't enough space you've at least 2 solutions

  1. Cropping and showing the text isn't full, and adding a label on mouse hover to see the full text

  2. Increasing the text container height, and breaking the text going on a new line

Going on a new line and increse select height

I think the crop is prettier so here how you would do it in your code

select {
  width: 100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
problem:
<select>  <option>IJREFOEIJFEFIJEIJIJIIJIJREFOEIJFEFIJEIJIJIIJIJREFOEIJFEFOIFEIJEIJIJIIJIJREF_OEIJFEFIJE</option>
  <option>IJREFOEIJFEFIJEIJIJIIJIJREFOEIJFEFIJEIJIJIIJIJREFOEIJFEFIJEFEFFIJIJIIJIJRE_FOEIJFEFIJE</option>
  <option>IJREFOEIJFEFIJEIJIJIIJIJREFOEIJFEFIJEIJIJFEIJIIJIJREFOEI__JFEFIJEIJIJIIJIJREFOEIJFEFIJE</option>
</select>

no problem:
<select>
  <option>ddd</option>
  <option>ddd</option>
  <option>ddd</option>
</select>

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

79526512

Date: 2025-03-21 20:20:59
Score: 3.5
Natty:
Report link

contexts won't do it.... but maybe you could run liquibase validate before? Or use update-testing-rollback in context b, then apply a ?

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

79526508

Date: 2025-03-21 20:17:59
Score: 0.5
Natty:
Report link

I had to fix it directly on the prefixIcon widget, and Transform.scale() did the job for me.

CustomTextFormField(
  prefixIcon: Transform.scale(
    scale: 0.5,
    child: SvgPicture.asset(
      SvgPaths.calendar,
      height: 20.0,
      width: 20.0,
    ),
  ),
  isDense: false,
  hint: "Select Date",
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Muhammad Adil Mehmood

79526504

Date: 2025-03-21 20:12:58
Score: 5
Natty:
Report link

I know it's a super old question... anyway:

The text inside the progress bar has been removed from GTK 3.14. If you would like to see it inside (GTK 3.14+ and GTK 4.0+), you have to use negative margins and min-heights.

The double text color has been removed from GTK 3.8. If you would like to have it, you need to patch GTK (gtk3.patch [incomplete, but it works], gtk4.patch - [not working, please help!]).

Example with human theme with GTK 3.24-classic :

enter image description here

Reasons:
  • RegEx Blacklisted phrase (3): please help
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: luigifab

79526502

Date: 2025-03-21 20:11:57
Score: 1
Natty:
Report link

You're trying to add touch event listeners to a list of elements (querySelectorAll), not individual elements.

Use a forEach loop to add the listeners to each element found by querySelectorAll.

For testing on IOS, if you have a computer running MacOS, you can enable the develop menu in safari's preferences.

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

79526488

Date: 2025-03-21 20:01:55
Score: 8 đźš©
Natty: 5
Report link

I hope you're doing well.

Were you able to make progress with this?

Reasons:
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Fabricio

79526478

Date: 2025-03-21 19:56:54
Score: 1.5
Natty:
Report link

The precondition in takeAll requires that every car is in every location. More precisely, the condition says that, for all cars, and for all locations, the car is in that location. This is too strict, as you seem to assume that a car can be in at most one location at a time.

An obvious fix is to require that every car is in some location. So the condition would have the structure (forall (?c - car) (exists (?p - place) (and (at ?c ?p) (not (taken ?))))).

Or, would it be OK that this action is possible even if no car can be taken? If so, get rid of the precondition, and have the effect part be something like (forall (?c - car ?p - place) (when (and (at ?c ?p) (not (taken ?c))) (and (not (at ?c ?p)) (taken ?c)))). So all those cars will be taken that can be taken.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jussi Rintanen

79526473

Date: 2025-03-21 19:51:53
Score: 1
Natty:
Report link

synchronized (obj) {

while (<condition does not hold> and <timeout not exceeded>) {

long timeoutMillis = ... ; // recompute timeout values

int nanos = ... ;

obj.wait(timeoutMillis, nanos);

}

  ... // Perform action appropriate to condition
header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: William Fuller

79526457

Date: 2025-03-21 19:41:51
Score: 1
Natty:
Report link

You can hide it by changing the button color and hover button color attributes to the same colour as the default background.

frame.configure(scrollbar_button_color="gray14",scrollbar_button_hover_color="gray14")

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

79526455

Date: 2025-03-21 19:41:50
Score: 6.5 đźš©
Natty: 6
Report link

could be trading and data permissions?

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

79526449

Date: 2025-03-21 19:39:50
Score: 1
Natty:
Report link
{
        test: /\.html$/,
        loader: "html-loader",
        options: {
          esModule: false,
        },
      },
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fethi Wap

79526447

Date: 2025-03-21 19:37:49
Score: 8.5
Natty: 7
Report link

did you figure this out by any chance? I need to do the same for my project as well.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (3): did you figure this out
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: user30017077

79526434

Date: 2025-03-21 19:31:48
Score: 0.5
Natty:
Report link

If none of the mentioned shortcuts worked, try the Shift + Down arrow.

It worked for me.

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Prof.Plague

79526431

Date: 2025-03-21 19:28:47
Score: 1
Natty:
Report link

I was very close originally. Thanks to this blog post by Tim Jacomb I was able to login to azcopy with an OIDC federated identity:
https://blog.timja.dev/using-azcopy-in-github-actions-with-federated-credentials/

Summary:
Making use of azcopy's auto-login, afaik, is the only way to use OIDC credentials when using azcopy with a Service Principal.
- The azcopy cli allows for various methods of authenticating via Service Principal, but OIDC is not one of them.
- The az cli as well as the Azure Login action, however, DO work with OIDC, and thus you need to first login with one of those and then auto-login to azcopy using environment variables and your target azcopy command.

Summary of modifications:
- I had other issues offscreen that were causing the AZCLI option for AZCOPY_AUTO_LOGIN_TYPE to not work. This is indeed the correct flag.
- allow-no-subscriptions: true when logging into az does not work with azcopy, as far as I can tell. I've removed that and replaced it with the subscription id for the resources with which I'm going to use the Service Principal.
- Only set the environment variables on the step you're going to use them.
- Use an azcopy login status as a sanity check. It will work same as the other commands with autologin, though azcopy login wont as it'll try to login again.

- name: Azure login with OIDC
  uses: azure/login@v2
  with:
    client-id: ${{ secrets.AZURE_CLIENT_ID }}
    tenant-id: ${{ secrets.AZURE_TENANT_ID }}
    subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Copy file to Azure Blob Storage
   env:
      AZURE_STORAGE_ACCOUNT: your-storage-account-name
      AZURE_CONTAINER_NAME: example
      AZCOPY_AUTO_LOGIN_TYPE: AZCLI # This is the auto login type you want
      AZCOPY_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} # Don't forget this
   run: |
      azcopy login status
      echo ""
      azcopy sync "." "https://$AZURE_STORAGE_ACCOUNT.file.core.windows.net/$AZURE_CONTAINER_NAME/"
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this blog
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: jkix

79526422

Date: 2025-03-21 19:22:46
Score: 2.5
Natty:
Report link

I'm attempting to use the "@artalat/react-native-tuya" library with Tuya SDK v6.0.0 (latest version), but the following error occurs. Can anyone assist me?

BUILD FAILED in 4s error Failed to install the app. Command failed with exit code 1: ./gradlew app:installRelease -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:mergeDexRelease'.

Could not resolve all dependencies for configuration ':app:releaseRuntimeClasspath'. > Could not find com.thingclips.smart:thingsmart:6.0.0. Searched in the following locations: - https://oss.sonatype.org/content/repositories/snapshots/com/thingclips/smart/thingsmart/6.0.0/thingsmart-6.0.0.pom - https://repo.maven.apache.org/maven2/com/thingclips/smart/thingsmart/6.0.0/thingsmart-6.0.0.pom - https://dl.google.com/dl/android/maven2/com/thingclips/smart/thingsmart/6.0.0/thingsmart-6.0.0.pom - https://www.jitpack.io/com/thingclips/smart/thingsmart/6.0.0/thingsmart-6.0.0.pom Required by: project :app > Could not find com.thingclips.smart:thingsmart:6.0.0. Searched in the following locations: - https://oss.sonatype.org/content/repositories/snapshots/com/thingclips/smart/thingsmart/6.0.0/thingsmart-6.0.0.pom - https://repo.maven.apache.org/maven2/com/thingclips/smart/thingsmart/6.0.0/thingsmart-6.0.0.pom - https://dl.google.com/dl/android/maven2/com/thingclips/smart/thingsmart/6.0.0/thingsmart-6.0.0.pom - https://www.jitpack.io/com/thingclips/smart/thingsmart/6.0.0/thingsmart-6.0.0.pom Required by: project

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Nimsara Thisal

79526415

Date: 2025-03-21 19:18:45
Score: 0.5
Natty:
Report link

Option 1: Pay for Copilot Enterprise

This is the Knowledge Base feature for Copilot Enterprise, where you will set up a group of repositories and for every prompting it will go there bases RAG, read more here https://docs.github.com/en/enterprise-cloud@latest/copilot/customizing-copilot/managing-copilot-knowledge-bases

enter image description here

Option 2: MCP Server

Create your own MCP Server reference to any source, even GitLab, GitHub, Slack, Database and so on. This technique is quite new but you can try to setup any sources you want, for more details here https://github.com/modelcontextprotocol/servers

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Alfred Luu

79526414

Date: 2025-03-21 19:18:45
Score: 2
Natty:
Report link

In my instance, there were special quotes around a single word in the my.ini file that were causing the problem.
In my Group Replication Related information, the word Unique was wrapped in the special quotes. As soon as I replaced those with regular quotes and saved the my.ini file, things started working.
Details can be found in bugs.mysql.com/bug.php with ?id=103332

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Global Ruckus

79526412

Date: 2025-03-21 19:17:45
Score: 4.5
Natty:
Report link

As far as I know there is not a layout for it, but you can add to your html tag the attribute: data-interception="off"

enter image description here

More information here:

https://github.com/microsoft-search/pnp-modern-search/issues/844

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

79526403

Date: 2025-03-21 19:12:43
Score: 0.5
Natty:
Report link

java.lang.NoSuchMethodError: No virtual method setAppPermission Control Open (I)V in class Lmiui/security/Security Manager; or its super classes (declaration of 'miui.security.Security Manager' appears in /system_ext/framework/miui-framework.jar)

at

com.lbe.security.Configuration.setPermis sionSwitch(Unknown Source:17)

at

com.lbe.security.service.provider.Permiss ionManager Provider.onCreate(Unknown Source:103)

at

android.content.ContentProvider.attachl nfo(ContentProvider.java:2636)

at

android.content.ContentProvider.attachl nfo(ContentProvider.java:2602)

at

android.app.ActivityThread.install Provide r(ActivityThread.java:8278)

at

android.app.ActivityThread.installConten tProviders(ActivityThread.java:7779)

at

android.app.ActivityThread.handleBindA pplication(ActivityThread.java:7462)

at android.app.ActivityThread.-$ $Nest$mhandleBindApplication(Unknow n Source:0)

at

android.app.ActivityThread$H.handleMe ssage (ActivityThread.java:2409)

at

android.os.Handler.dispatchMessage(Ha ndler.java:106)

at

android.os.Looper.loop Once (Looper.java:

at

android.os.Looper.loop (Looper.java:314)

at

android.app.ActivityThread.main(Activity Thread.java:8716)

at

java.lang.reflect.Method.invoke(Native Method)

at

com.android.internal.os.RuntimeInit$Met hodAndArgsCaller.run(RuntimeInit.java:5 65)

at

com.android.internal.os.ZygoteInit.main( ZygoteInit.java:1081)

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

79526401

Date: 2025-03-21 19:11:43
Score: 1
Natty:
Report link

You can address to specific folder in the picking up dropdown list, there is no way addressing path in the prompt currently.

E.g. I type #folder, enter, searching for the folder, you may notice that some folders not in top level but even in 2nd level.

enter image description here

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

79526388

Date: 2025-03-21 19:02:41
Score: 1
Natty:
Report link

If you set the task to "Run only when the user is logged on", then the script will be launched in the context of the user's desktop session. That allows you to see and interact with the console window.

When you have it set to "Run whether the user is logged on or not." then the launched script does not interact with the desktop. You cannot "see" the window.

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

79526371

Date: 2025-03-21 18:52:39
Score: 1
Natty:
Report link

Here's what worked for me with column values of Y, N, empty string. I had to use isNull for my derived column to be true, false, null.

toBoolean(toString(iif({ColumnName} == "Y", "1", iif(isNull({ColumnName}), "", "0"))))

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

79526370

Date: 2025-03-21 18:51:39
Score: 3.5
Natty:
Report link

I was able to solve this by having nginx host the files, rather than using pygbag's built-in development server.

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

79526367

Date: 2025-03-21 18:50:39
Score: 0.5
Natty:
Report link

I sympathise with your desire to stay DRY but I don't think it can be done.

I think it is safer to achieve your aim as follows:

@Component
public class WrappedBean {

    @Autowired
    public SomeBean starterBean;

    @Bean
    WrappedBean wrappedBean() {
        this.starterBean.doSomethingCustom();
        return this;
    }
}

Then access it as follows:

    @Autowired
    WrappedBean someOtherBean;
    
    SomeBean someBean;
    

    @EventListener(ApplicationReadyEvent.class)
    public void doSomethingAfterStartup() {
        someBean = someOtherBean.starterBean;
    }

These are attempts to subvert the Spring mechanisms/sequence.

Pulling the starter created bean directly from applicationContext:

@Configuration
@Lazy
public class MyConfiguration {

    @Autowired
    private ApplicationContext applicationContext;

    @Bean
    SomeBean someOtherBean() {
        SomeBean starterBean = (SomeBean) applicationContext.getBean("someBean");
        starterBean.doSomethingCustom();
        return starterBean;
    }
}

Resulted in error:

Field someOtherBean in com.example.abstractunmarshallexception.AbstractunmarshallexceptionApplication required a bean named 'someBean' that could not be found.

Messing about with @Qualifier

@Configuration
@Lazy
public class MyConfiguration {

      @Autowired
      private SomeBean starterBean;

      @Autowired
      private ApplicationContext applicationContext;

    @Bean
    SomeBean someOtherBean() {
        starterBean.doSomethingCustom();
        return starterBean;
    }
}

and usage:

    @Autowired
    SomeBean someOtherBean;

Results results in error as follows:


Error creating bean with name 'someOtherBean': Requested bean is currently in creation: Is there an unresolvable circular reference or an asynchronous initialization dependency?
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Qualifierand
  • High reputation (-1):
Posted by: John Williams

79526364

Date: 2025-03-21 18:48:38
Score: 8 đźš©
Natty: 5
Report link

me too have this error
did you find solution ?

Reasons:
  • RegEx Blacklisted phrase (3): did you find solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: yasin

79526357

Date: 2025-03-21 18:44:37
Score: 0.5
Natty:
Report link

First off thank you Tim Williams.

Final Code:
Numbers are different because I have two different data sets I'm going to be working with.
`

Sub HourColorsLong()
    Dim rg As Range
    Dim cs As ColorScale
 
    For Each rg In Selection.Cells
        If rg.Value < 4.75 Then
            Set cs = rg.FormatConditions.AddColorScale(ColorScaleType:=2)
                cs.ColorScaleCriteria(1).Type = xlConditionValueFormula
                cs.ColorScaleCriteria(1).Value = "0"
                cs.ColorScaleCriteria(1).FormatColor.Color = RGB(255, 0, 0)
                cs.ColorScaleCriteria(1).FormatColor.TintAndShade = 0
                cs.ColorScaleCriteria(2).Type = xlConditionValueFormula
                cs.ColorScaleCriteria(2).Value = "4.75"
                cs.ColorScaleCriteria(2).FormatColor.Color = RGB(255, 255, 0)
                cs.ColorScaleCriteria(2).FormatColor.TintAndShade = 0
                
        ElseIf rg.Value <= 14.25 Then
            Set cs = rg.FormatConditions.AddColorScale(ColorScaleType:=3)
                cs.ColorScaleCriteria(1).Type = xlConditionValueFormula
                cs.ColorScaleCriteria(1).Value = "4.75"
                cs.ColorScaleCriteria(1).FormatColor.Color = RGB(255, 255, 0)
                cs.ColorScaleCriteria(1).FormatColor.TintAndShade = 0
                cs.ColorScaleCriteria(2).Type = xlConditionValueFormula
                cs.ColorScaleCriteria(2).Value = "9.5"
                cs.ColorScaleCriteria(2).FormatColor.Color = RGB(0, 255, 0)
                cs.ColorScaleCriteria(2).FormatColor.TintAndShade = 0
                cs.ColorScaleCriteria(3).Type = xlConditionValueFormula
                cs.ColorScaleCriteria(3).Value = "14.25"
                cs.ColorScaleCriteria(3).FormatColor.Color = RGB(255, 255, 0)
                cs.ColorScaleCriteria(3).FormatColor.TintAndShade = 0
                
        ElseIf rg.Value > 14.25 Then
            Set cs = rg.FormatConditions.AddColorScale(ColorScaleType:=2)
                cs.ColorScaleCriteria(1).Type = xlConditionValueFormula
                cs.ColorScaleCriteria(1).Value = "14.25"
                cs.ColorScaleCriteria(1).FormatColor.Color = RGB(255, 255, 0)
                cs.ColorScaleCriteria(1).FormatColor.TintAndShade = 0
                cs.ColorScaleCriteria(2).Type = xlConditionValueFormula
                cs.ColorScaleCriteria(2).Value = "19"
                cs.ColorScaleCriteria(2).FormatColor.Color = RGB(255, 0, 0)
                cs.ColorScaleCriteria(2).FormatColor.TintAndShade = 0
        End If
    Next
End Sub
So things to note:
1 ColorScaleType:=3, scaling will not work if you only give it two values. Had to fix this to ColorScaleType:=2.
2 I had 14.25 set to less than rather than greater than.
3 Setting a range to selection then checking a range withing that range will not work and that's why I believe I was getting type mismatch.

Once again thank you for the help. Hopefully this helps other people too.
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ghost022

79526342

Date: 2025-03-21 18:36:35
Score: 2
Natty:
Report link

If Key is char*, the assumption that const Key is const char* is wrong. const Key is char* const.

typedef std::map<char*, void*, stlcompare_char, TestAllocatorA<std::pair<char* const, void*> > > MAPTEST;

What is the difference between const int*, const int * const, and int * const?

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • High reputation (-2):
Posted by: 3CxEZiVlQ

79526340

Date: 2025-03-21 18:35:35
Score: 4
Natty:
Report link

CUPS, as far as I am concerned, is like offloading printing for the sake of "printing everywhere" and all too often fails to be anything but some expedition into failure.

For example, I went to Open Printing and they haven't got 1, not 1 Brother "HL-L" script, and of course CUPS can't associate it with a PPD, errors out and won't process my printer add. Then the only "solutions" or at least sort of one but I can't find out really, is to type some command in terminal whose parameters I have no idea about but shazam if i type it in it fixes the problem, yet, I have to have the exact name of the printer etc., and as I can get it to connect to my network and computer the name there doesn't work in the command line. After hours of trying I can't even connect my Brother laser printer at all.

It's like "printing everwhere" is a group people who made sure to tailor the actuality of their theme to meet the needs of the corporations selling printers and regardless of those who don't have (and can't afford) the latest and greatest printer.

Then of course we go looking for websites for help and it just blows my mind, post after post, link after link, how much effort is made to force some "ahh ha" point of how inaccurate someone may have described something (that may have solely resulted from them being a bit lazy and / or not being as knowledgeable).

Newsflash: There are man new to Linux and we're glad to be away from Windows. I urge you experts to take that to heart and help us out without needing to beat us over the head with how wrong we are about something we said. And if you believe what is essentially a bullying behavior is what using Linux requires every user to accept from more informed Linux users then I ask those who surely know more about Linux than I ever will to appeal to Linus Torvalds regarding making Linux less command syntax intensive as that will deny those who use their extensive knowledge of the intricacies of Linux to apparently look for brow beating opportunities against us newbies. Reality: More Linux users is more influence on the end of the tech monopolies.

Reasons:
  • RegEx Blacklisted phrase (1): help us
  • RegEx Blacklisted phrase (2): help us out
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Printer Frustrated

79526339

Date: 2025-03-21 18:34:34
Score: 4.5
Natty: 5.5
Report link

I have this solution, although not simple. https://github.com/coreybutler/nvm-windows/issues/1209

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

79526333

Date: 2025-03-21 18:32:33
Score: 3
Natty:
Report link

if you need, web_concurrent_start(), then why not just lease some number of virtual user hours or a one month/three month license to cover your testing needs?

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

79526328

Date: 2025-03-21 18:29:32
Score: 14 đźš©
Natty: 6.5
Report link

were you able to resolve this issue? I'm facing the same issue and would appreciate your help.

Reasons:
  • Blacklisted phrase (2): appreciate your help
  • Blacklisted phrase (1.5): would appreciate
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aboli

79526327

Date: 2025-03-21 18:28:31
Score: 8 đźš©
Natty: 5
Report link

I have a doubt here. Even I'm also facing the same issue. But I need to pass this as a list but terraform is accepting only string. what to do in that case

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (2): I have a doubt
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: IJAZ MUHAMMED

79526318

Date: 2025-03-21 18:25:30
Score: 1
Natty:
Report link

The declaration of an anonymous block is wrong, you should use DO $$ and END $$. In sql use INTEGER, plpgsql only accepts the integer keyword. This is how you should write.

 DO $$ 
DECLARE 
    c INTEGER;
BEGIN
    EXECUTE 'SELECT count(1) FROM my_dwh.accounts' INTO c;
    RAISE NOTICE 'Count: %', c;
END $$;

I hope this is the answer you are looking for.

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

79526317

Date: 2025-03-21 18:25:30
Score: 0.5
Natty:
Report link

I'm not an animation expert, but I've used Canvas a lot; it's super fast for most use cases, so using multiple canvases probably won't help you.

From what I know, the answer to your question depends on two things: (1) whether or not the animated images are appearing in the same place, and (2) whether they are translucent or opaque.

If they're stationary and opaque, just redraw them in place on a 500ms timer; if they're translucent (alpha < 1.0), then you have to draw something over the last one before you draw the next one so the images don't blend together.

If they're moving, then you have to redraw the original background in the old place before you draw the next image in the new place. This can be arbitrarily complex depending on what else you're drawing on the canvas.

For simple drawings, redrawing the entire canvas every frame can be fast enough; for more complex stuff, perhaps not.

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

79526309

Date: 2025-03-21 18:20:29
Score: 0.5
Natty:
Report link

The current version of spacy (3.8.0) downloads the pretrained models by installing them with pip command. That is, it internally runs pip, as can be seen in its source code in spacy/cli/download.py, function download_model(). So the models are stored in the directory where your local modules installed by pip are stored, package name being the name of the model.

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

79526302

Date: 2025-03-21 18:16:27
Score: 3
Natty:
Report link

@kfir I'm working Kotlin so below is the converted code - took me a while because of the nullable variables. This works but it zooms to exactly the same level as setLinearZoom() in my original code - absolutely no difference. Really unclear as to why there are two ways to do exactly the same thing.

val P = zoomSliderPos * 100f // my slider value was already in the 0.0 - 1.0 range so this corrects it for your code

val minZoom = controller.cameraInfo?.zoomState?.value?.minZoomRatio
val maxZoom = controller.cameraInfo?.zoomState?.value?.maxZoomRatio
Log.d(TAG, "minZoom and maxZoom: $minZoom - $maxZoom")

if (minZoom != null && maxZoom != null) {

  val translatedValue = Math.pow((maxZoom / minZoom).toDouble(), (P / 100f).toDouble()).toFloat() * minZoom

  Log.d("translatedValue", "translatedValue: $translatedValue")

  controller.cameraControl?.setZoomRatio(translatedValue)
}
Reasons:
  • Blacklisted phrase (1): to do exactly the same
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @I'm
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: garrettlynchirl

79526298

Date: 2025-03-21 18:12:26
Score: 0.5
Natty:
Report link

On CentOS, I had to augment my PATH after installing openmpi3:

$ sudo yum install openmpi3-devel
...
$ export PATH=/usr/lib64/openmpi3/bin/:$PATH
$ mpicc --version
gcc (GCC) ... 
$ pip3 install mpi4py
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: w.t

79526273

Date: 2025-03-21 18:00:24
Score: 1.5
Natty:
Report link

For anyone wonder, they answered me with this:

test_report_url = self.driver.capabilities.get("testobject_test_report_url")
TelegramReport.send_tg(f"{test_report_url}")

and finally it works!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Z T M N

79526255

Date: 2025-03-21 17:54:23
Score: 0.5
Natty:
Report link

OK, so a non-challenge is just a flag (or lack of http, dns, etc..) that most acme clients use to basically not perform any type of challenge, skip right over that part. This is usually the case when you are using External Account Binding (EAB), and do not need to perform a challenge to show you are the owner of a domain, etc.

In the case of Sectigo/InCommon, they have an internal method of registering all the various domains with a specific ACME account, this eliminating the need to verify with a challenge.

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

79526254

Date: 2025-03-21 17:54:23
Score: 1.5
Natty:
Report link

As a hacky workaround, you can edit your program while it's running and use hot reload to see your changes. You'll probably have to re-show the popup (at least if StaysOpen is false), but it's better than editing, running the program to see the edits, stopping the program, making more changes, etc. etc...

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Erik Knowles

79526253

Date: 2025-03-21 17:53:22
Score: 1.5
Natty:
Report link

I answered this on your post to forums couchbase com. Since stackoverflow will spank me if I post the link, here's my post copy/pasted from there

ctx.insert(collection,

I don’t think your issue is transaction related.
Avoid mixing-and-matching the Couchbase Java SDK with Spring Data Couchbase. Spring Data Couchbase expects every document to have a _class property, and uses that as a predicate for all operations that are not -ById. So where you’ve used the Java SDK to insert a TransactionSubLedgerEntity document, it does not have a _class property. So when spring data queries with "SELECT … FROM … WHERE … AND _class = “com.example.TransactionSubLedgerEntity” it will only find documents inserted by Spring Data Couchbase (which have the _class property).
If you attempt to retrieve the document that you inserted using findById() - I believe you will find it.
There are exceptions, but by and large - that’s the deal.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: mn_test347

79526252

Date: 2025-03-21 17:53:22
Score: 2.5
Natty:
Report link

Try to open VSC setting and search Editor: Suggest On Trigger Characters and enable it.

The next step is to restart VSC, which is very common, and it should be ready to use~ :p

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

79526250

Date: 2025-03-21 17:51:22
Score: 2.5
Natty:
Report link

I made my own library for this, it uses flags to control what's allowed. This is my first time really using regex, and my first Python library, so apologies if I did anything badly. It supports negative numbers and decimals, and can either allow or prevent leading zeroes (ex. 01).

Apologies too for the somewhat neglected repository, I couldn't make a directory in the browser and didn't wanna use git cli. If you want the source code, it's probably better to use the PyPI source distribution.

https://pypi.org/project/better-is-numeric/

https://codeberg.org/Butter/numerical/

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Butter

79526247

Date: 2025-03-21 17:50:21
Score: 2.5
Natty:
Report link

I seem to have figure it out. I noticed that at times it would also show an error related to the different minor major version, which is often related to code compiled in one JDK version and running in a different one.

I cleaned up my computer of JDKs and reconfigured eclipse and things are now working.

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

79526246

Date: 2025-03-21 17:50:21
Score: 3
Natty:
Report link

I had a similar issue and it was due to the missing BOM after copying the project from my linux host.

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

79526243

Date: 2025-03-21 17:48:21
Score: 2.5
Natty:
Report link

Not sure if I understood your question correctly.. You want to use Dataframe from pandas python library in flutter? If so have a look at this: https://pub.dev/packages/dartframe this library offers comparable functionality in dart

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Paul Weibert

79526235

Date: 2025-03-21 17:47:21
Score: 1.5
Natty:
Report link

There is an interesting way to create a GCD queue that can be both concurrent and serial, to say allow thread safe "reads" from a structure to occur concurrently in any order, but only permit "write" to occur synchronously after all queued reads have completed. For example to access items where reads may actually take some time to search the structure. But writes must occur serially to prevent altering the structure while a read is taking place. Refer to the Related item on "barrier" for how to do this.

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

79526229

Date: 2025-03-21 17:43:20
Score: 6 đźš©
Natty:
Report link

Thanks to the link below i was able to jump over the hurdle.

.Net Maui - ShellContent navigation issue

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): the link below
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kenneth Goodwin

79526228

Date: 2025-03-21 17:42:19
Score: 1
Natty:
Report link

I have worked it around by suppressing this dll during build in my yaml. Because of the transitive dependency we have on this dll this fix makes sense at the moment.
Below are the steps:

  1. Create a folder under the source folder which is the root of your repo.

  2. Copy the .gdnsuppress file which BinSkim generates during the build failure and paste it in the above created folder.

  3. Create a Copy Files task in your build yaml file to copy this file to the target folder. The target folder would be $(Agent.BuildDirectory)/gdn, given the name of the folder you created at the 1st step is "gdn".

  4. Test the build.

This fixed the build failure.

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

79526225

Date: 2025-03-21 17:42:19
Score: 0.5
Natty:
Report link

It's easy with static data like this:

"properties": {
          "type": { "type": "string", "enum": [ "cell", "home", "work" ] },
          "number": { "type": "string" }
        },

But what should be done if my schema is dynamic?

enum can have different values for different element of array.

{
label,
selectedIds
}
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Sergey Nikolaevich Guk