79551179

Date: 2025-04-02 17:21:37
Score: 1
Natty:
Report link

How many tickets are where ? How can I check ?

There is always one ticket (the service ticket) under ap-req > ticket. It's sent in the clear, but always paired with a one-time authenticator (aka checksum) that proves the client knows the session key.

When delegation is enabled, the second ticket (delegated) is stored within that authenticator, under ap-req > authenticator > cipher > authenticator > cksum > krb-cred.

How many tickers are in request ?

Impossible to tell from the screenshot.

if there are 2: please point me out to them. And how to accept them on server side ?

It should be automatically stored as part of the server's (acceptor's) GSSContext. That seems to be happening here and here.

if there is 1: How should I add one more ticket ?

In HTTP, at least as far as I understand it, the client needs to perform delegation proactively (since only one step is possible for GSSAPI so the server can't request it).

  1. The client's klist needs to show a TGT that is forwardable.

    Also, the user principal needs to not have any KDC-side restrictions. For example, Domain Admins on Windows might have the "This account is sensitive and cannot be delegated" flag set on them.

  2. If the HTTP service ticket happens to be cached in klist, then it should show the ok_as_delegate flag, corresponding to "Trust this user for delegation[...]".

    Windows and some other clients require that flag (treating it as admin-set policy), other clients ignore that flag and always delegate if configured; e.g. a Java client could use requestDelegPolicy().

  3. The HTTP client needs to be configured to do delegation.

    In Firefox, network.negotiate-auth.delegation-uris would be set to https:// for example or to .example.com (or a combination) to make the browser initiate delegation. (Make sure you don't make the 'delegation' list too broad; it should only allow a few specific hosts.)

    With curl you would specify curl --negotiate --delegation always (doesn't work for me on Windows, but does work on Linux).

    If you were making a custom HTTP client in Java, I think you would call .requestCredDeleg(true) on the GSSContext object before getting a token.

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (1): How should I
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How
  • High reputation (-2):
Posted by: grawity_u1686

79551178

Date: 2025-04-02 17:21:37
Score: 0.5
Natty:
Report link

I unzipped and then zipped:

SELECT
    boxes.box_id,
    ARRAY_AGG(contents.label)
FROM
    boxes,
    LATERAL FLATTEN(input => boxes.contents) AS item,
    contents
WHERE
    item.value = contents.content_id
GROUP BY boxes.box_id
ORDER BY boxes.box_id;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bryan Crystal-Thurston

79551176

Date: 2025-04-02 17:20:36
Score: 4
Natty:
Report link

i accidently deleted all the files

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

79551174

Date: 2025-04-02 17:19:36
Score: 2.5
Natty:
Report link

Deleting the Derived Data solved it for me.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Abdurrahman Mubeen Ali

79551168

Date: 2025-04-02 17:16:35
Score: 1.5
Natty:
Report link

I found the real problem. The phone I use for debugging is Android 11. When I went to install the app, it complained about minimum SDK version. Without thinking, I changed that and didn't notice the newly appearing yellow warning marks on the permissions.

Moving to a phone with Android 12 and building for that fixes everything.

I do really need to target Android 11, so I'll have to set up the coding to support both, but I can do that now that I understand.

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

79551166

Date: 2025-04-02 17:14:34
Score: 0.5
Natty:
Report link

pytorch should be installed via pip as conda is not supported. You can follow the instructions here https://pytorch.org/get-started/locally/

For Cuda 11.8 the command is

pip3 install torch --index-url https://download.pytorch.org/whl/cu118

To be sure, you can first uninstall other version

python -m pip uninstall torch
python -m pip cache purge
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: pas-calc

79551164

Date: 2025-04-02 17:11:34
Score: 0.5
Natty:
Report link

You can do this easily with Raku/Sparrow:

begin:
regexp: ^^ \d\d "/" \d\d "/" \d\d\d\d
generator: <<RAKU
!raku
say '^^ \s+ "', config()<pkg>, '" \s+';
RAKU
end:

code: <<RAKU
!raku
for matched() -> $line {
    say $line
}
RAKU

Then just - s6 —task-run@pkg=openssl.base

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

79551153

Date: 2025-04-02 17:06:32
Score: 0.5
Natty:
Report link

Please note it is only available in Snowsight. Since you are unable to view the code collapse feature I am assuming you are logging in directly to classic console.

You just need to navigate to Snowsight from Classic console as mentioned in documentation

enter image description here

It should not be an access issue as even your account is in the first stage of Snowsight upgrade you can still choose between classic console and Snowsight.

Documentation:

enter image description here

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

79551150

Date: 2025-04-02 17:04:31
Score: 0.5
Natty:
Report link

I was able to do it like this in Visual Studio 2022:

@{ #region Some region }
<p>Some HTML</p>
<p>Some more HTML</p>
@{ #endregion }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: mikl

79551143

Date: 2025-04-02 16:59:29
Score: 2.5
Natty:
Report link

Try invalidating the cache, and when Android Studio opens again, the "code", "split", and "design" buttons should appear. On Mac, you can invalidate the cache by going to: File → Invalidate Caches → Invalidate and Restart.

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

79551136

Date: 2025-04-02 16:54:28
Score: 1.5
Natty:
Report link

Got it! changed /n to <br>

"value": "@{items('For_each')?['job_description']} is over due <br>"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: LJHHouston

79551126

Date: 2025-04-02 16:50:26
Score: 4.5
Natty:
Report link

Starship supports Enabling Right Prompt. Work for me on MacOS with the zsh shell. I tried add_newline = false but it doesn't work for me. I don't know if they have the option for Left Prompt 😂.

Reasons:
  • Blacklisted phrase (1): 😂
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Phạm Huy Cường Thịnh

79551120

Date: 2025-04-02 16:44:25
Score: 1.5
Natty:
Report link

You can go on Kaggle (which is a place where you can find datasets and Machine Learning Models), sign up, and go to the "learn" section. There, you can learn basic Pandas and data visualization. For numpy, https://numpy.org/learn/ has a bunch of resources. Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kevin Zhou

79551110

Date: 2025-04-02 16:41:24
Score: 0.5
Natty:
Report link

Fixed it by adding --wait argument to the command in the .gitconfig file (or ./.git/config file for local change). Like:

[diff]
    tool = vscode
[difftool "vscode"]
    cmd = code --wait --diff $LOCAL $REMOTE

Then running the following command:

git difftool --no-prompt --tool=vscode ProgrammingRust/projs/actix-gcd/src/main.rs
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ziad Amerr

79551108

Date: 2025-04-02 16:39:23
Score: 0.5
Natty:
Report link

The issue was due to a difference between general tflite implementations and specifically tflm implementations. TfLite will not specify the dimensions of the output tensors prior to the model being invoked and instead relies on dynamically allocating the necessary space when the model is invoked. TFLM does not support dyanmic allocation and instead relies on the predefined dimensions from the metadata of the tflite model to statically allocate. I used netron.app to determine that this metadata was missing. I used the flatbuffer compiler to convert the .tflite file to a .json file where I could see and manipulate the metadata:

.\flatc.exe -t --strict-json --defaults-json -o . schema.fbs -- model2.tflite

I added the missing dimensions to the output tensors and then recompiled from the json back into a .tflite file:

flatc -b --defaults-json -o new_model schema.fbs model2.json

Make sure to have all the proper file paths, I put all of mine in the same folder.

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

79551102

Date: 2025-04-02 16:36:22
Score: 1.5
Natty:
Report link

In Rails 6+, you can invalidate a specific fragment using:

Rails.cache.clear(key: "the-key")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Francisco Saez

79551097

Date: 2025-04-02 16:33:22
Score: 2.5
Natty:
Report link

this happened to me in Angular 16, and the solution was check the @ng-bootstrap/ng-bootstrap table Dependencies, and use the exactly ng-bootstrap, Bootstrap CSS and Popper versions, for my angular version.

enter image description here

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

79551089

Date: 2025-04-02 16:29:20
Score: 0.5
Natty:
Report link

I also faced similar problem after updating Android Studio to Ladybug. My Flutter project was in working condition but after updating Android Studio, started getting this error. After browsing through many answers, below steps solved the issue:

  1. Open the android folder in the flutter project folder into Android Studio and update the Gradle and Android Gradle Plugin to the latest version (You can update using the Update prompt you get when you open the project or manually).

  2. In the android/app/build.gradle file make sure correct JDK version is being used in compileOptions and kotlinOptions blocks.

    enter image description here

  3. Make sure the correct Gradle and Android Gradle Plugin versions are used in the build.gradle file.

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

79551069

Date: 2025-04-02 16:21:16
Score: 6 🚩
Natty:
Report link

what does --only-show-errors command do in such case ? Will it be helpful to track only errors ? - https://learn.microsoft.com/en-us/cli/azure/vm/run-command?view=azure-cli-latest#az-vm-run-command-invoke-optional-parameters

Have you given a try ?

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): what do
  • Low reputation (1):
Posted by: Pratiyush Pushkar

79551058

Date: 2025-04-02 16:15:14
Score: 2.5
Natty:
Report link

It's the apostrophe in one of the labels that did it. I thought the `""' construction in `splitvallabels' could deal with it, but it can't. Will have to change the labels I guess. Also see here.

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

79551057

Date: 2025-04-02 16:14:14
Score: 0.5
Natty:
Report link
i know its an old post, but here are steps


download glab

generate a token under gitlab instance you have access to

GITLAB_HOST=https://your-gitlab-host ./glab auth login

GITLAB_HOST=https://your-gitlab-host ./glab repo clone --group group-you-have-access
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: shailesh gavathe

79551056

Date: 2025-04-02 16:14:14
Score: 1
Natty:
Report link

I believe the URL you are requesting is already cached with the CORS response and you need to invalidate it first.

Your CloudFront configuration shows that you are not caching "OPTIONS" methods, so the preflight calls will be accessing non-cached version of the URLs - allowing the CORS test site to return a successfuly response, since it never executes the actual GET request. However, GET is cached by default, so if you tested this access before setting these header configurations on S3/CloudFront, you would be still getting the cached response.

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

79551053

Date: 2025-04-02 16:12:13
Score: 0.5
Natty:
Report link

These are JSON numbers in string format. Based on SQL syntax notation rules. The GoogleSQL documentation commonly uses the following syntax notation rules and one of those rules are: Double quotes ": Syntax wrapped in double quotes ("") is required.

Based on working with JSON data in GoogleSQL, By using the JSON data type, you can load semi-structured JSON into BigQuery without providing a schema for the JSON data upfront. This lets you store and query data that doesn't always adhere to fixed schemas and data types. By ingesting JSON data as a JSON data type, BigQuery can encode and process each JSON field individually. You can then query the values of fields and array elements within the JSON data by using the field access operator, which makes JSON queries intuitive and cost efficient.

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

79551048

Date: 2025-04-02 16:10:13
Score: 3
Natty:
Report link

if you go on the code window, and click on the line numbers you will see a down arrow, you can click and collapse it .

enter image description here

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

79551046

Date: 2025-04-02 16:09:12
Score: 5.5
Natty:
Report link

try to tick this settings on excel
enter image description here

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

79551035

Date: 2025-04-02 16:07:10
Score: 10.5 🚩
Natty:
Report link

sir did you solve the problem?

Reasons:
  • RegEx Blacklisted phrase (3): did you solve the problem
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Duygu Karataş

79551028

Date: 2025-04-02 16:00:09
Score: 2
Natty:
Report link

You can achieve this by adding .devcontainers/ to a global .gitignore file.

See this answer for more information on how to achieve this.

With this set up, all my dev containers are ignored until they are explicitly tracked in the repo.

Reasons:
  • Blacklisted phrase (1): how to achieve
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dionysaw

79551014

Date: 2025-04-02 15:55:07
Score: 2
Natty:
Report link

KazuCocoa pointed me to the documentation, which makes it clear:

https://appium.github.io/appium-xcuitest-driver/latest/reference/locator-strategies/

nameaccessibility id : These locator types are synonyms and internally get transformed into search by element's name attribute for IOS

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

79551012

Date: 2025-04-02 15:54:07
Score: 1
Natty:
Report link

There are multiple ways how you can achieve this:

  1. Use outputPath in angular.json
  2. Create a shell script, which does it for you.
  3. If you are interested in this automatization when you deploy your app and you are using Docker, you can use Dockerfile. It is briefly documented in the last point of the article https://medium.com/@boris.haviar/serving-angular-ssr-with-django-8d2ad4e894be
Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Boris Haviar

79551008

Date: 2025-04-02 15:53:06
Score: 2
Natty:
Report link

The answer can be found at this link, github.com/jetty/jetty.project/issues/12938.

This is what was posted in the link by joakime

"If the work directory contents do not match the WAR it's re-extracted.
If you don't want this behavior, then don't use WAR deployment, use Directory deployment.
Just unpack the WAR into a directory in ${jetty.base}/webapps/<appname>/ and use that as the main deployment. (just don't put the WAR file in ${jetty.base}/webapps/)"

Though, I would've like an option for altering the work directory in emergency scenarios.

Reasons:
  • Blacklisted phrase (1): this link
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jason

79551006

Date: 2025-04-02 15:52:06
Score: 3
Natty:
Report link

Turns out the problem was simply that my python script was not named main, and there was another python app main.py on the same working directory.

For anyone else who may face similar issues in the future:

Please note that the name of your python script should match the uvicorn.run("<filename>:app", ...) part.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): face similar issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ananda

79551004

Date: 2025-04-02 15:51:06
Score: 4.5
Natty:
Report link

Hello and welcome to Los pollos hermanos family My name is Anton Chigurh but you can call me Gus

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anton Chigurh

79550990

Date: 2025-04-02 15:42:03
Score: 1.5
Natty:
Report link

Trust me, this must work!

import * as Icons from "@mui/icons-material";
const { Home } = Icons;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mihyun Lee

79550989

Date: 2025-04-02 15:31:00
Score: 0.5
Natty:
Report link

The TuningModel.RandomSearch ranges documentation specifies "a pair of the form (field, s)".
To specify field samplers:

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

79550979

Date: 2025-04-02 15:01:55
Score: 2
Natty:
Report link

I had this same issue when I was starting out and all I had done was miss the starting @ off the package name.

So npm -i primeng

this caused the forced github login prompt

But npm -i @primeng

This was what I meant to type and worked as expected but because I was a n00b I didn't notice I'd missed off the @ symbol.

So....

Reasons:
  • No code block (0.5):
  • User mentioned (1): @primeng
  • User mentioned (0): @packagename
  • Low reputation (0.5):
Posted by: Mordy

79550965

Date: 2025-04-02 14:55:53
Score: 2.5
Natty:
Report link

Stepping into the Go SDK's internals after the program finishes is expected in this case. The debugger continues to operate even after your program's code has completed. We are considering a feature to hide these internal debugger steps from the user if the user requests it, so it appears that the debugger stops cleanly after your program finishes. Here is a feature request tracking this improvement: https://youtrack.jetbrains.com/issue/GO-10534

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

79550958

Date: 2025-04-02 14:51:52
Score: 2
Natty:
Report link

Have you tried adding the top level CompanyAPI to your PYTHONPATH environment variable?

I don't think you should need to use hidden-imports.

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: quite68

79550954

Date: 2025-04-02 14:50:52
Score: 2
Natty:
Report link

How about restricting Access by IP range?

  1. Go to organization settings → security → IP restrictions
  2. Add allowed corporate IP addresses
  3. Block all other external IP addresses

... or use restricted git authentication via PAT policies:

  1. Go to organization settings → security -> policies
  2. Under "Personal Access Tokens", disable PAT usage
  3. Under git Credential manager", require azure AD authentication

Problem is that PATs are easy to misuse, and I see PATs getting misused a LOT of times.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: schmark

79550952

Date: 2025-04-02 14:50:52
Score: 6
Natty: 7
Report link

if you still want to have one container instead of 2/3 check this article. https://medium.com/@boris.haviar/serving-angular-ssr-with-django-8d2ad4e894be

Reasons:
  • Blacklisted phrase (1): this article
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Boris Haviar

79550941

Date: 2025-04-02 14:45:50
Score: 1
Natty:
Report link

The compression can be specified per column using the USING COMPRESSION syntax:

CREATE TABLE my_table(my_col INTEGER USING COMPRESSION bitpacking);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mytherin

79550934

Date: 2025-04-02 14:43:50
Score: 0.5
Natty:
Report link

To make things work we need to use the method replaceText() to replace a text in the document body then using the reverse() method to reverse the text.

Sample Script:

function myFunction() {
  const docs = DocumentApp.getActiveDocument();
  const body = docs.getBody();
  // store your variable names with value here
  const [varOne, varTwo, varThree] = ["foo", "bar", "sample"]

  // reverse the string by converting the it into array by using split and convert it back to string by using join method
  const reverseText = (string) => {return string.split("").reverse().join("")}

  // using replaceText to replace a text in the body
  body.replaceText("{variableOne}", reverseText(varOne));
  body.replaceText("{variableTwo}", reverseText(varTwo));
  body.replaceText("{variableThree}", reverseText(varThree));
}

Output:

Note: Image is for visibility only.

Sample Input: Sample Image Input

Sample Output: Sample Image Output

Reference:

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

79550923

Date: 2025-04-02 14:39:48
Score: 6.5 🚩
Natty: 4
Report link

Hi I have the exact same Problem!!

I use python and marimo in a uv env in my workspace Folder (Win11) . And get the same marimo not loading problem and want to share some Additional information, that could maybe help:

screenshot

Basically it seems the ports of the marimo server, the marimo VSCode extention and the native VSCode notebook editor do not match up. When I change the port in the marimo VSCode Extention from 2818 to 2819, the marimo server starts on port 2820, but not always, it seems the port difference of 1 between settings and marimo server start is only happening sporadically.

I managed to at one point get all ports to match up, but still had the same issue:

screenshot2

Also restarting my PC, VSCode, it's extentions, or marimo did not work for me.

Reasons:
  • Blacklisted phrase (1): did not work
  • RegEx Blacklisted phrase (2): Hi I have the
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the exact same Problem
  • Low reputation (1):
Posted by: Max Jost

79550922

Date: 2025-04-02 14:38:47
Score: 6.5 🚩
Natty:
Report link

I have some doubt:
I am getting the Error as:

Argument of type "tuple[Any, NDArray[Any] | Unbound, NDArray[Any] | Unbound] | tuple[Any, NDArray[Any] | Unbound] | Any | tuple[Any | Unknown, Unknown, Unknown] | tuple[Any | Unknown, Unknown] | Unknown" cannot be assigned to parameter "x" of type "ConvertibleToFloat" in function "__new__"
  Type "tuple[Any, NDArray[Any] | Unbound, NDArray[Any] | Unbound] | tuple[Any, NDArray[Any] | Unbound] | Any | tuple[Any | Unknown, Unknown, Unknown] | tuple[Any | Unknown, Unknown] | Unknown" is not assignable to type "ConvertibleToFloat"
    Type "tuple[Any, NDArray[Any] | Unbound, NDArray[Any] | Unbound]" is not assignable to type "ConvertibleToFloat"
      "tuple[Any, NDArray[Any] | Unbound, NDArray[Any] | Unbound]" is not assignable to "str"
      "tuple[Any, NDArray[Any] | Unbound, NDArray[Any] | Unbound]" is incompatible with protocol "Buffer"
        "__buffer__" is not present
      "tuple[Any, NDArray[Any] | Unbound, NDArray[Any] | Unbound]" is incompatible with protocol "SupportsFloat"
        "__float__" is not present
      "tuple[Any, NDArray[Any] | Unbound, NDArray[Any] | Unbound]" is incompatible with protocol "SupportsIndex"
  ...

code section is as:

def calculating_similarity_score(self, encoded_img_1, encoded_img_2):
        print(f"calling similarity function .. SUCCESS .. ")
        print(f"decoding image .. ")
        decoded_img_1 = base64.b64decode(encoded_img_1)
        decoded_img_2 = base64.b64decode(encoded_img_2)

        print(f"decoding image .. SUCCESS ..")
        # Read the images

        print(f"Image reading ")
        img_1 = imageio.imread(decoded_img_1)
        img_2 = imageio.imread(decoded_img_2)
        print(f"image reading .. SUCCESS .. ")

        # Print shapes to diagnose the issue
        print(f"img_1 shape = {img_1.shape}")
        print(f"img_2 shape = {img_2.shape}")

        # ")
        # Convert to float
        img_1_as = img_as_float(img_1)
        img_2_as = img_as_float(img_2)
        print(f"converted image into the float ")

        print(f"calculating score .. ")
        # Calculate SSIM without the full parameter
        if len(img_1_as.shape) == 3 and img_1_as.shape[2] == 3:
            # For color images, specify the channel_axis
            ssim_score = ssim(img_1_as, img_2_as, data_range=img_1_as.max() - img_1_as.min(), channel_axis=2, full=False, gradient=False)
        else:
            # For grayscale images
            ssim_score = ssim(img_1_as, img_2_as, data_range=img_1_as.max() - img_1_as.min())
        print(f"calculating image .. SUCCESS .. ")

        return ssim_score

so upon returning the value form this function I and adding the operator on it like:
if returned_ssim_score > 0.80: ## then for this line it gives me the above first one error.
but when I am printing this returned value then it is working fine like showing me the v alue as: 0.98745673...

so can you help me with this

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (2): I have some doubt
  • RegEx Blacklisted phrase (3): can you help me
  • RegEx Blacklisted phrase (1): I am getting the Error
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lakshay

79550914

Date: 2025-04-02 14:32:44
Score: 1.5
Natty:
Report link

The solution is this : add your sso role as IAM or Assumed Role with a wildcard to match all users in that role : AWSReservedSSO_myname_randomstring/* .

The caveat is that the approval rule is not re-evaluated after updating the rule , so you need to delete and recreate the pull request .

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Stelian Zaharia

79550913

Date: 2025-04-02 14:32:44
Score: 0.5
Natty:
Report link

Press combine keys Shift + Right click, Save as

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Vy Do

79550887

Date: 2025-04-02 14:22:41
Score: 0.5
Natty:
Report link

@Tiny Wang

You can reproduce it with following code in a form.

 @(Html.Kendo().DropDownListFor(c => c.reg)
     .Filter(FilterType.Contains)
     .OptionLabel("Please select a region...")
     .DataTextField("RegName")
     .DataValueField("RegID")
     .Events( e=>e.Change("onRegionChange"))
     .DataSource(source =>
     {
         source.Read(read =>
         {
             read.Action("GetRegions", "Location");
         });
     })
     )

 @Html.HiddenFor(m => m.LocationId)
 @(
     Html.Kendo().DropDownListFor(c => Location)
         .Filter(FilterType.Contains)
         .OptionLabel("Please select an office...")
         .DataTextField("OfficeName")
         .DataValueField("OfficeId")
         .Events(e => e.Change("changeDefLocation"))
         .AutoBind(true)
         .DataSource(source =>
         {
             source.Read(read =>
             {
             read.Action("GetLocations", "Location").Data("additionalInfo");
             });
     })
     )


@(Html.Kendo().MultiSelectFor(m => m.OtherLocation)
    .DataTextField("OfficeName")
    .DataValueField("OfficeId")
    .DataSource(dataSource =>
    dataSource.Read(x => x.Action("GetLocationss", "Location").Data("sdaAndLocinfo"))
    .ServerFiltering(false)
    )
    .Events( x=>x.Change("OnOfficeChange"))
    .AutoBind(true)
    )
     
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Tiny
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gulumal

79550886

Date: 2025-04-02 14:22:41
Score: 1
Natty:
Report link

Can I upload a document to an Issue in github?

Yes. Search for:

<span
  data-component="text"
  class="prc-Button-Label-pTQ3x"
> Paste, drop, or click to add files </span>

This shall invoke <input type="file">.


I have a document that I would like to reference from a github issue, but there is not a way to upload it. Any ideas?

Unfortunately, its Accept header is */*, which means that all file upload type validation occurs server-side.

If you upload an impermissible file type (say, .pak), you shall see:

File type not allowed: .pak

However, this occurs after file upload. To avoid this, GitHub luckily documents its upload restrictions:

Types [1]

We support these files:

  • PNG (.png)

  • GIF (.gif)

  • JPEG (.jpg, .jpeg)

  • SVG (.svg)

  • Log files (.log)

  • Markdown files (.md)

  • Microsoft Word (.docx), PowerPoint (.pptx), and Excel (.xlsx) documents

  • Text files (.txt)

  • Patch files (.patch)

    If you use Linux and try to upload a .patch file, you will receive an error message. This is a known issue.

  • PDFs (.pdf)

  • ZIP (.zip, .gz, .tgz)

  • Video (.mp4, .mov, .webm)

Sizes [2]

The maximum file size is:

  • 10MB for images and gifs
  • 10MB for videos uploaded to a repository owned by a user or organization on a free plan
  • 100MB for videos uploaded to a repository owned by a user or organization on a paid plan
  • 100MB for videos
  • 25MB for all other files
Reasons:
  • Blacklisted phrase (1): Any ideas
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can I
  • Low reputation (0.5):
Posted by: RokeJulianLockhart

79550876

Date: 2025-04-02 14:19:40
Score: 5
Natty: 5.5
Report link

@Parfait
I am getting error "NoneType' object has no attribute 'text'.

All the "content" nodes (sort to be based upon) has some value in it.

Reasons:
  • Blacklisted phrase (1.5): m getting error
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Parfait
  • Low reputation (1):
Posted by: Writer Oh One

79550858

Date: 2025-04-02 14:08:37
Score: 0.5
Natty:
Report link

venv being now in standard python library, there is no need to install virtualenv (apart from some very peculiar circumstances):

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: andrea m.

79550844

Date: 2025-04-02 14:03:35
Score: 9 🚩
Natty: 5
Report link

I have the same question: can someone tell me if I can adjust the estimation window? As I understand the package description, all the data available before the event date is used for the estimation.

"estimation.period: If “type” is specified, then estimation.period is calculated for each firm-event in “event.list”, starting from the start of the data span till the start of event period (inclusive)."

That would lead to different length of the estimation depending on the event date. Can I manually change this (e.g estimation window t:-200 until t:-10)?

Reasons:
  • Blacklisted phrase (1): I have the same question
  • RegEx Blacklisted phrase (2.5): can someone tell me
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same question
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Juana

79550843

Date: 2025-04-02 14:03:35
Score: 1
Natty:
Report link

Removing headers is not actual solution if you actually use the Appname-Swift.h header - in such cases you need to find which additional headers to import in order to fix the issue. The solution for current issue can be

#import <PassKit/PassKit>

Found the solution in this thread: https://stackoverflow.com/a/34397364/1679620

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Vladimir Iliev

79550840

Date: 2025-04-02 14:01:34
Score: 0.5
Natty:
Report link

For anyone looking for how read files in tests, You can just import like so:

import DATA from "./data.txt";
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: danleyb2

79550833

Date: 2025-04-02 13:58:33
Score: 1
Natty:
Report link

To answer your question directly, you are assigning a display name to the original 'Popover' component, not your custom wrapper. I don't know why you would have to do that in the first place as that behavior is generally implicit when exporting components, unless you are generating components with a factory function.

Perhaps related but still breaking code, you have your state defined outside the component which is a no-no. I would try and moving the state inside the component wrapper.

I can't think of a compelling reason to re-export 'Popover' as this should be accessible straight from the package.

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

79550830

Date: 2025-04-02 13:57:33
Score: 0.5
Natty:
Report link

I was able to resolve similar problem on Oracle Linux 8 with SELinux enabled like this:

sudo yum install policycoreutils-python-utils 

sudo setsebool -P use_nfs_home_dirs 1

sudo semanage fcontext -a -t nfs_t "/nethome(/.\*)?"

sudo restorecon -R -v /nethome

NFS share here is /nethome

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

79550828

Date: 2025-04-02 13:56:33
Score: 0.5
Natty:
Report link

Thank you Jon. That was very helpful.

public void CheckApi(string apiName, ref Int64 apiVersion)
{
  Int64 v1 = FileVersionInfo.GetVersionInfo(apiName).FileMajorPart;
  Int64 v2 = FileVersionInfo.GetVersionInfo(apiName).FileMinorPart;
  Int64 v3 = FileVersionInfo.GetVersionInfo(apiName).FileBuildPart;
  Int64 v4 = FileVersionInfo.GetVersionInfo(apiName).FilePrivatePart;

  apiVersion = (v1 << 48) | (v2 << 32) | (v3 << 16) | v4;
}

This returns the File Version which for my purposes will always be the same as the Product Version. For anyone who really needs the Product Version there are also four properties to get that info ProductMajorPart, ProductMinorPart, ProductBuildPart, and ProductPrivatePart.

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

79550826

Date: 2025-04-02 13:55:32
Score: 1
Natty:
Report link

So I found the answer ... I saved the copied pages to an array and then had to add the image to each copied page

             foreach (var page in copiedPages)
             {
                 page.Canvas.DrawImage(results.Item2, results.Item1.Left, results.Item1.Top, results.Item1.Width, results.Item1.Height);
             }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user30143181

79550822

Date: 2025-04-02 13:54:32
Score: 3.5
Natty:
Report link

I am not getting any dark line .I think you must have put on a border or something

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

79550820

Date: 2025-04-02 13:52:31
Score: 0.5
Natty:
Report link

In case someone is using compose profiles, this may happen when you start services with profiles but forget to stop services with them.

In short:

COMPOSE_PROFILES=background-jobs docker compose up -d
COMPOSE_PROFILES=background-jobs docker compose down
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yarik

79550816

Date: 2025-04-02 13:50:31
Score: 2.5
Natty:
Report link

No, TwinCAT’s FindAndReplace function does not operate directly on an in-place string. Instead, it returns a modified copy of the input string with the specified replacements applied.

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

79550812

Date: 2025-04-02 13:47:30
Score: 4
Natty: 4
Report link

Here is a dirty way to remove O( ) : add ".subs(t**6,0)" to your solution

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

79550790

Date: 2025-04-02 13:40:27
Score: 1
Natty:
Report link

Reposting it as an answer: I found a solution for my problem in this question, I can specify an explicitly defined schema when reading the json data from an rdd into a DataFrame:

json_df: DataFrame = spark.read.schema(schema).json(json_rdd)

It seems however that I'm reading the data twice now:

    df_1_0_0 = _read_specific_version(json_rdd, '1.0.0', schema_1_0_0)
    df_1_1_0 = _read_specific_version(json_rdd, '1.1.0', schema_1_1_0)

def _read_specific_version(json_rdd, version, schema):
    json_df: DataFrame = spark.read.schema(schema).json(json_rdd)
    return json_df.filter(col('version') == version)

Is there a more efficient way to do this? Like, is this exploiting parallel execution, or do I enforce sequential execution here? Maybe a spark newbie question.

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

79550782

Date: 2025-04-02 13:36:26
Score: 1.5
Natty:
Report link

Something I learned today:

You can just paste the text into your spreadsheet. Go to Data > Split text to columns > select your formatting option.

That's super helpful and solved my issue!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Maria Clara Bezerra

79550775

Date: 2025-04-02 13:35:25
Score: 0.5
Natty:
Report link

Here's the updated code to identify whether the don't keep activities flag is turned on or not.

val dka = Settings.System.getInt(contentResolver,Global.ALWAYS_FINISH_ACTIVITIES)
Log.i(TAG,"dka -> $dka")

source

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

79550772

Date: 2025-04-02 13:34:25
Score: 1
Natty:
Report link

I got the same problem but I solved it by using the following instruction:

Reasons:
  • Blacklisted phrase (1): I got the same problem
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: jessiR

79550770

Date: 2025-04-02 13:33:25
Score: 1
Natty:
Report link

Solved it. Only the first cell can have text. So, remove all text (and runs) from subsequent cells in the merge.

Something like:

tc = table.Elements<TableCell>();
foreach (Paragraph pg in tc.Elements<Paragraph>())
  pg.RemoveAllChildren();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: unqualified

79550767

Date: 2025-04-02 13:33:25
Score: 2.5
Natty:
Report link

gmp-placeselect changed from gmp-placeselect to gmp-select.

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

79550759

Date: 2025-04-02 13:30:24
Score: 3.5
Natty:
Report link

I got this error after installed the @hot-loader/react-dom

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

79550753

Date: 2025-04-02 13:26:23
Score: 2
Natty:
Report link

So I finally figured it out! It happens to be that when reaching any of this site's url, in case you don't have their cookies, it attempts to set cookies and then redirect to the same url. Browsers (and postman) do handle this interaction with something called a cookie jar, if I am correct, but node-fetch and others seem to not to, so they need custom agent which implements this, I used this one and it has good examples npmjs.com/package/http-cookie-agent

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

79550749

Date: 2025-04-02 13:25:22
Score: 4.5
Natty:
Report link

TELEGRAM Chat

TELEGRAM Admin

YouTube Channel

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

79550742

Date: 2025-04-02 13:24:22
Score: 1.5
Natty:
Report link

Open Azure AI Foundry > Deployments > + Deploy Model

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

79550739

Date: 2025-04-02 13:23:20
Score: 9 🚩
Natty: 5
Report link

Did this get resolved? Facing the same error.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Facing the same error
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did this
  • Low reputation (1):
Posted by: user30143847

79550736

Date: 2025-04-02 13:22:20
Score: 3.5
Natty:
Report link

The issue was solved after instaling Microsoft redistributable package. download from here https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

check this issue for reference

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

79550733

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

Add a new property "skin.dynamic" and set the skin name based on your device resolution

Example:

enter image description here

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

79550732

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

This solved it for me:

create a new form, go to MyProject change the application framework to something else, then change it back, then select the new form..

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

79550726

Date: 2025-04-02 13:19:19
Score: 3
Natty:
Report link

In ASP.NET web applications, I have found the null-forgiving operator to be useful for defining navigation properties, as in the following example.

Suppose we have two related tables, Course and Teacher.

In the definition of the Course class, we could have something like this:

public int TeacherID { get; set; }

public Teacher Teacher { get; set; } = null!;

The assignment in the second line, using the null-forgiving operator, allows Course.Teacher to be null in C# code, but not in the database, and that can be very useful.

Is there a better way to achieve the same effect?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Eric Weinberger

79550722

Date: 2025-04-02 13:15:18
Score: 1
Natty:
Report link

you join tables with wrong columns (you need to use GenreID, not Name)

SELECT 
    Track.Name AS TrackName, 
    Track.GenreId, 
    Track.Composer, 
    Genre.Name AS GenreName
FROM Track
INNER JOIN Genre ON Track.GenreId = Genre.GenreId
WHERE 
    Track.GenreId IN (1, 3, 4, 5, 23, 9)
ORDER BY Track.Name;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anastasia

79550720

Date: 2025-04-02 13:14:18
Score: 2
Natty:
Report link

How is LIBRARY_SOURCE defined? In the Doxygen configure file, you can set it via PREDEFINED:

PREDEFINED = LIBRARY_SOURCE

You can also check whether the documentation shows up if preprocessing is disabled (enabled by default):

ENABLE_PREPROCESSING = NO
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How is
  • Low reputation (1):
Posted by: nx105

79550711

Date: 2025-04-02 13:12:17
Score: 1.5
Natty:
Report link

It appears that the PATH system variable is too long.

I suggest you manually system environment variables and correct anything that looks abnormal (e.g., repetitions).

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

79550708

Date: 2025-04-02 13:10:16
Score: 1.5
Natty:
Report link

The sitemap looks accessible and valid, but Google may reject it if the server isn't returning the correct Content-Type (should be application/xml). Also check for redirects, HTTP/HTTPS inconsistencies, or robots.txt blocks. Sometimes Search Console delays processing — try again after 24–48 hours.

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

79550707

Date: 2025-04-02 13:10:16
Score: 2.5
Natty:
Report link

Was using Bootstrap 5 and jQuery 1.12 in my project. Upgrading jQuery version from 1.12 to 3.7 fixed my issue.

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

79550699

Date: 2025-04-02 13:06:15
Score: 1
Natty:
Report link

I hope the issue has been fixed by now 😂, but for any developer looking up on this issue, please remember to call glGetError() in a loop and make sure it is clear, as the function returns one error at a time, while functions can output more than one.

It is hard to deduce what's going on since OpenGL is highly contextual, more code is needed regarding the current state of things in the GL context.

I do strongly recommend to use a wrapper function for glGetError, or even move to glDebugMessageCallback.

static void GLClearErrors() {
    while (glGetError() != GL_NO_ERROR);
}

static void GLCheckErrors() {
    while (GLenum error = glGetError()) {
        std::cout << "[OpenGL error] " << error << std::endl;
    }
}

it is the little functions like these that ensure safety in your code, simple yet darn useful.

Reasons:
  • Blacklisted phrase (1): 😂
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: John Baxter

79550694

Date: 2025-04-02 13:05:15
Score: 1
Natty:
Report link

for .Net 8 you should add package 'Microsoft.Extensions.Hosting.WindowsServices' and add UseWindowsService(). It's activate only if it detects the process is running as a Windows Service.

IHost host = Host.CreateDefaultBuilder(args)
   .UseWindowsService()
   .... 
  .Build();
await host.RunAsync();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aleksei Beliaev

79550681

Date: 2025-04-02 13:00:13
Score: 0.5
Natty:
Report link

I found a solution, how to make proper IN clauses in case somebody needs to search based on multiple values in a field that is from a PosgreSQL type as the John Williams's solution works BUT on Varchar field

 return jdbcClient.sql("""
                                SELECT * 
                                FROM configuration 
                                WHERE status IN (:status)
                        """)
                .param("status", request.configurationStatus().stream().map(Enum::name).collect(Collectors.toList()), OTHER)
                .query((rs, rowNum) -> parseConfiguration(rs))
                .list();

The key thing is that the third parameter should be used, which defines the SQL type

enter image description here

In my case I used OTHER (Call type can be seen from java.sql.Types)
enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Tsvetoslav Tsvetkov

79550680

Date: 2025-04-02 12:58:12
Score: 3
Natty:
Report link

since you're the package author maybe you can tell me if I can adjust the estimation window. As I understand the package description, all the data available before the event date is used for the estimation.

"estimation.period: If “type” is specified, then estimation.period is calculated for each firm-event in “event.list”, starting from the start of the data span till the start of event period (inclusive)."

That would lead to different length of the estimation depending on the event date. Can I manually change this (e.g estimation window t:-200 until t:-10)?

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

79550676

Date: 2025-04-02 12:57:11
Score: 11.5 🚩
Natty: 6
Report link

Did you ever find a solution for this? I'm having the same problem, container seems to be running infinitely and I want it to be marked as "success" so the next tasks can move on.

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • RegEx Blacklisted phrase (3): Did you ever find a solution
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • 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):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Gonçalo Martins

79550666

Date: 2025-04-02 12:53:09
Score: 1.5
Natty:
Report link

Thanks to siggermannen and Dan Guzman I made it to the following query:

use [OmegaCA_Benchmark]

select 
a.database_specification_id,
a.audit_action_id, a.audit_action_name, 
a.class, a.class_desc, 
a.major_id,
object_schema_name = 
CASE 
    WHEN a.class_desc = 'OBJECT_OR_COLUMN' THEN OBJECT_SCHEMA_NAME(a.major_id)
    ELSE NULL
END,
object_name = 
CASE 
    WHEN a.class_desc = 'OBJECT_OR_COLUMN' THEN OBJECT_NAME(a.major_id)
    WHEN a.class_desc = 'SCHEMA' THEN SCHEMA_NAME(a.major_id)
    WHEN a.class_desc = 'DATABASE' THEN 'OmegaCA_Benchmark'
    ELSE NULL
END,
a.minor_id,
a.audited_principal_id, c.name as Principal_Name,
a.audited_result, 
a.is_group,
b.name as DB_Aud_Spec_Name, 
b.create_date, b.modify_date, 
b.audit_guid, 
b.is_state_enabled

from sys.database_audit_specification_details a

inner join sys.database_audit_specifications b
on a.database_specification_id = b.database_specification_id

inner join sys.database_principals c 
on a.audited_principal_id = c.principal_id

best regards
Altin

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

79550656

Date: 2025-04-02 12:47:07
Score: 1
Natty:
Report link

import React from 'react'; import { motion } from 'framer-motion'; import { Card } from '@/components/ui/card'; import './styles.css';

const HardixFFIntro = () => { return ( <motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: 3 }} className="smoke-bg" /> <motion.img src="/mnt/data/file-Gkk3FLHg8Uaa2FJ1CcVHZD" alt="Hardix.FF Logo" initial={{ scale: 0.8, opacity: 0 }} animate={{ scale: 1, opacity: 1 }} transition={{ duration: 2, delay: 1 }} className="logo-img" /> <motion.h1 initial={{ y: 100, opacity: 0 }} animate={{ y

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

79550655

Date: 2025-04-02 12:47:07
Score: 7 🚩
Natty:
Report link

Looking at it, the only thing it triggers me would be the dataloader...
But if it work with the other models, would work with this too.

Can you share your dataloader code?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share your
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Eduardo L da Silva

79550654

Date: 2025-04-02 12:47:07
Score: 2
Natty:
Report link

bro just use border-spacing

table.that-has-your-th {
  border-spacing: 9px 9px 9px 8px;
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Varpi

79550651

Date: 2025-04-02 12:46:06
Score: 1
Natty:
Report link

Old Post but I had the same issue. We had to install ReqnRoll to replace spekflow and this stopped working for me at one point. I looked everywhere and event reinstalled reqnroll based on recommendations but that still didn't work.

I finally reinstalled: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-8.0.14-windows-x64-installer and it started working again.

Hopefully this solution helps someone.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Donbot

79550647

Date: 2025-04-02 12:45:06
Score: 2
Natty:
Report link

The binlog mode of logproxy should be used with flink-mysql-cdc, which is equivalent to treating observer + logproxy + obproxy as a mysql instance. In this way, the connection information uses jdbc (that is, connecting to obproxy).
Reference to https://nightlies.apache.org/flink/flink-cdc-docs-release-3.1/docs/connectors/flink-sources/mysql-cdc/

It is recommended to use the latest version 3.1.1.

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

79550645

Date: 2025-04-02 12:45:06
Score: 4.5
Natty: 5
Report link

I rcommend https://min.io/docs/minio/linux/reference/minio-mc.html, which is well maintained these days.

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

79550640

Date: 2025-04-02 12:43:05
Score: 1.5
Natty:
Report link

The issue seemed to be with the matching clause I was using in the code, which was omitted here in the example as I thought it was not the issue. I was matching using a string id instead of an ObjectId. I thought this was not the issue because it seems these string ids work when querying through various methods.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: ThriceGood

79550638

Date: 2025-04-02 12:41:04
Score: 3.5
Natty:
Report link

Hope answer given in below link will help to resolve your issue.

Angular 18, VS Code 1.95.2, after ng serve, hitting F5 starts the browser and spins indefinitely

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

79550629

Date: 2025-04-02 12:35:03
Score: 2.5
Natty:
Report link

No this behavior is not specified in any standard it is just how browsers interpretate the pre tag . Although as per HTML standard it the line break should be there but the browsers interpretate it like this.

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

79550625

Date: 2025-04-02 12:32:02
Score: 1
Natty:
Report link
public static function matchesPatternTrc20(string $address) : bool 
{
    return boolval(preg_match('/^T[1-9a-zA-Z]{33}$/', $address));
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: buzz8year

79550621

Date: 2025-04-02 12:30:02
Score: 0.5
Natty:
Report link

So, after some more time/issues, I figured that my phpunit/phpunit bundle version was to old (9.*) and so I updated it to works with dama/doctrine-test-bundle (need phpunit version > 10).

But in the end, I removed dama/doctrine-test-bundle and used hautelook/alice-bundle.

I had to add this code in my /test/bootstrap.php to create the db and the schema.

$appKernel = new Kernel('test', false);
$appKernel->boot();

$application = new Application($appKernel);
$application->setCatchExceptions(false);
$application->setAutoExit(false);

$application->run(new ArrayInput([
    'command' => 'doctrine:database:drop',
    '--force' => '1',
]));

$application->run(new ArrayInput([
    'command' => 'doctrine:database:create',
]));

$application->run(new ArrayInput([
    'command' => 'doctrine:schema:create',
]));

$appKernel->shutdown();

And added use ReloadDatabaseTrait; at the beginning of my TestClass.

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

79550617

Date: 2025-04-02 12:28:01
Score: 1.5
Natty:
Report link

Microsoft is painfully vague on the details of this but:

  1. Add a role assignment to your key vault in the IAM tab.

  2. Choose Key Vault Certificate User (or whatever role you chose)

  3. For users choose "Users, group, or service principal". In the selection menu search for "microsoft azure app service". This will bring up the built-in service SPN which is needed to bind the certificate in Key Vault (you'll notice its application id is abfa0a7c-a6b6-4736-8310-5855508787cd).

I don't think you even need the user assigned managed identity once this in-built SPN is set up but you can test that.

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

79550613

Date: 2025-04-02 12:26:00
Score: 1
Natty:
Report link

Used in dotnet new react to launch nodejs app.
Glance over aspnetcore repo, folder \src\Middleware\Spa\SpaProxy\

  1. SpaHostingStartup adds IStartupFilter implementation to services collection.
  2. SpaProxyStartupFilter runs npm start and adds SpaProxyMiddleware
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DmitryKosarev

79550609

Date: 2025-04-02 12:25:00
Score: 2.5
Natty:
Report link
from io import BytesIO
import twain
import tkinter as tk
from tkinter import ttk, messagebox, filedialog
import logging
import PIL.ImageTk
import PIL.Image
import datetime

scanned_image = None
current_settings = {
    'scan_mode': 'Color',
    'resolution': 300,
    'document_size': 'A4',
    'document_type': 'Normal',
    'auto_crop': False,
    'brightness': 0,
    'contrast': 0,
    'destination': 'File',
    'file_format': 'JPEG',
    'file_path': ''
}

def check_adf_support(src):
    """Check if the scanner supports ADF and return ADF status"""
    try:
        # Check if ADF is supported
        if src.get_capability(twain.CAP_FEEDERENABLED):
            print("ADF is supported by this scanner")
            
            # Check if ADF is loaded with documents
            if src.get_capability(twain.CAP_FEEDERLOADED):
                print("ADF has documents loaded")
                return True
            else:
                print("ADF is empty")
                return False
        else:
            print("ADF is not supported")
            return False
            
    except twain.excTWCC_CAPUNSUPPORTED:
        print("ADF capability not supported")
        return False

def apply_settings_to_scanner(src):
    """Apply the current settings to the scanner source"""
    try:
        # Set basic scan parameters
        if current_settings['scan_mode'] == 'Color':
            src.set_capability(twain.ICAP_PIXELTYPE, twain.TWPT_RGB)
        elif current_settings['scan_mode'] == 'Grayscale':
            src.set_capability(twain.ICAP_PIXELTYPE, twain.TWPT_GRAY)
        else:  # Black & White
            src.set_capability(twain.ICAP_PIXELTYPE, twain.TWPT_BW)
        
        src.set_capability(twain.ICAP_XRESOLUTION, float(current_settings['resolution']))
        src.set_capability(twain.ICAP_YRESOLUTION, float(current_settings['resolution']))
        
        # Set document size (simplified)
        if current_settings['document_size'] == 'A4':
            src.set_capability(twain.ICAP_SUPPORTEDSIZES, twain.TWSS_A4)
        
        # Set brightness and contrast if supported
        src.set_capability(twain.ICAP_BRIGHTNESS, float(current_settings['brightness']))
        src.set_capability(twain.ICAP_CONTRAST, float(current_settings['contrast']))
        
        # Set auto crop if supported
        if current_settings['auto_crop']:
            src.set_capability(twain.ICAP_AUTOMATICBORDERDETECTION, True)
        
    except twain.excTWCC_CAPUNSUPPORTED:
        print("Some capabilities are not supported by this scanner")

def process_scanned_image(img):
    """Handle the scanned image (save or display)"""
    global scanned_image
    
    # Save to file if destination is set to file
    if current_settings['destination'] == 'File' and current_settings['file_path']:
        file_ext = current_settings['file_format'].lower()
        if file_ext == 'jpeg':
            file_ext = 'jpg'
        # Add timestamp to filename for ADF scans
        timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S_%f")
        img.save(f"{current_settings['file_path']}_{timestamp}.{file_ext}")
    
    # Display in UI (only the last image for ADF)
    width, height = img.size
    factor = 600.0 / width
    scanned_image = PIL.ImageTk.PhotoImage(img.resize(size=(int(width * factor), int(height * factor))))
    image_frame.destroy()
    ttk.Label(root, image=scanned_image).pack(side="left", fill="both", expand=1)

def scan():
    global scanned_image
    with twain.SourceManager(root) as sm:
        src = sm.open_source()
        if src:
            try:
                # Check ADF support
                adf_supported = check_adf_support(src)
                
                # Apply settings before scanning
                apply_settings_to_scanner(src)
                
                if adf_supported:
                    # Enable ADF mode
                    src.set_capability(twain.CAP_FEEDERENABLED, True)
                    src.set_capability(twain.CAP_AUTOFEED, True)
                    print("Scanning using ADF mode...")
                else:
                    print("Scanning in flatbed mode...")
                
                # Scan loop for ADF (will scan once if flatbed)
                while True:
                    src.request_acquire(show_ui=False, modal_ui=False)
                    (handle, remaining_count) = src.xfer_image_natively()
                    
                    if handle is None:
                        break
                        
                    bmp_bytes = twain.dib_to_bm_file(handle)
                    img = PIL.Image.open(BytesIO(bmp_bytes), formats=["bmp"])
                    process_scanned_image(img)
                    
                    # Break if no more documents in ADF
                    if remaining_count == 0:
                        break
                        
            except Exception as e:
                messagebox.showerror("Scan Error", f"Error during scanning: {e}")
            finally:
                src.destroy()
        else:
            messagebox.showwarning("Warning", "No scanner selected")

def test_adf_support():
    """Test if ADF is supported and show result in messagebox"""
    with twain.SourceManager(root) as sm:
        src = sm.open_source()
        if src:
            try:
                # Check basic ADF support
                try:
                    has_adf = src.get_capability(twain.CAP_FEEDER)
                except:
                    has_adf = False
                
                # Check more detailed ADF capabilities
                capabilities = {
                    'CAP_FEEDER': has_adf,
                    'CAP_FEEDERENABLED': False,
                    'CAP_FEEDERLOADED': False,
                    'CAP_AUTOFEED': False,
                    'CAP_FEEDERPREP': False
                }
                
                for cap in capabilities.keys():
                    try:
                        capabilities[cap] = src.get_capability(getattr(twain, cap))
                    except:
                        pass
                
                # Build results message
                result_msg = "ADF Test Results:\n\n"
                result_msg += f"Basic ADF Support: {'Yes' if capabilities['CAP_FEEDER'] else 'No'}\n"
                result_msg += f"ADF Enabled: {'Yes' if capabilities['CAP_FEEDERENABLED'] else 'No'}\n"
                result_msg += f"Documents Loaded: {'Yes' if capabilities['CAP_FEEDERLOADED'] else 'No'}\n"
                result_msg += f"Auto-feed Available: {'Yes' if capabilities['CAP_AUTOFEED'] else 'No'}\n"
                result_msg += f"Needs Preparation: {'Yes' if capabilities['CAP_FEEDERPREP'] else 'No'}\n"
                
                messagebox.showinfo("ADF Test", result_msg)
                
            except Exception as e:
                messagebox.showerror("Error", f"Error testing ADF: {e}")
            finally:
                src.destroy()
        else:
            messagebox.showwarning("Warning", "No scanner selected")

def browse_file():
    filename = filedialog.asksaveasfilename(
        defaultextension=f".{current_settings['file_format'].lower()}",
        filetypes=[(f"{current_settings['file_format']} files", f"*.{current_settings['file_format'].lower()}")]
    )
    if filename:
        current_settings['file_path'] = filename
        file_path_var.set(filename)

def update_setting(setting_name, value):
    current_settings[setting_name] = value
    if setting_name == 'file_format' and current_settings['file_path']:
        # Update file extension if file path exists
        base_path = current_settings['file_path'].rsplit('.', 1)[0]
        current_settings['file_path'] = base_path
        file_path_var.set(base_path)

def create_settings_panel(parent):
    # Scan Mode
    ttk.Label(parent, text="Scan Mode:").grid(row=0, column=0, sticky='w')
    scan_mode = ttk.Combobox(parent, values=['Color', 'Grayscale', 'Black & White'], state='readonly')
    scan_mode.set(current_settings['scan_mode'])
    scan_mode.grid(row=0, column=1, sticky='ew')
    scan_mode.bind('<<ComboboxSelected>>', lambda e: update_setting('scan_mode', scan_mode.get()))
    
    # Resolution
    ttk.Label(parent, text="Resolution (DPI):").grid(row=1, column=0, sticky='w')
    resolution = ttk.Combobox(parent, values=[75, 150, 300, 600, 1200], state='readonly')
    resolution.set(current_settings['resolution'])
    resolution.grid(row=1, column=1, sticky='ew')
    resolution.bind('<<ComboboxSelected>>', lambda e: update_setting('resolution', int(resolution.get())))
    
    # Document Size
    ttk.Label(parent, text="Document Size:").grid(row=2, column=0, sticky='w')
    doc_size = ttk.Combobox(parent, values=['A4', 'Letter', 'Legal', 'Auto'], state='readonly')
    doc_size.set(current_settings['document_size'])
    doc_size.grid(row=2, column=1, sticky='ew')
    doc_size.bind('<<ComboboxSelected>>', lambda e: update_setting('document_size', doc_size.get()))
    
    # Document Type
    ttk.Label(parent, text="Document Type:").grid(row=3, column=0, sticky='w')
    doc_type = ttk.Combobox(parent, values=['Normal', 'Text', 'Photo', 'Magazine'], state='readonly')
    doc_type.set(current_settings['document_type'])
    doc_type.grid(row=3, column=1, sticky='ew')
    doc_type.bind('<<ComboboxSelected>>', lambda e: update_setting('document_type', doc_type.get()))
    
    # Auto Crop
    auto_crop = tk.BooleanVar(value=current_settings['auto_crop'])
    ttk.Checkbutton(parent, text="Auto Crop", variable=auto_crop, 
                   command=lambda: update_setting('auto_crop', auto_crop.get())).grid(row=4, column=0, columnspan=2, sticky='w')
    
    # Brightness
    ttk.Label(parent, text="Brightness:").grid(row=5, column=0, sticky='w')
    brightness = ttk.Scale(parent, from_=-100, to=100, value=current_settings['brightness'])
    brightness.grid(row=5, column=1, sticky='ew')
    brightness.bind('<ButtonRelease-1>', lambda e: update_setting('brightness', brightness.get()))
    
    # Contrast
    ttk.Label(parent, text="Contrast:").grid(row=6, column=0, sticky='w')
    contrast = ttk.Scale(parent, from_=-100, to=100, value=current_settings['contrast'])
    contrast.grid(row=6, column=1, sticky='ew')
    contrast.bind('<ButtonRelease-1>', lambda e: update_setting('contrast', contrast.get()))
    
    # Destination
    ttk.Label(parent, text="Destination:").grid(row=7, column=0, sticky='w')
    dest_frame = ttk.Frame(parent)
    dest_frame.grid(row=7, column=1, sticky='ew')
    
    destination = tk.StringVar(value=current_settings['destination'])
    ttk.Radiobutton(dest_frame, text="Screen", variable=destination, value="Screen",
                   command=lambda: update_setting('destination', destination.get())).pack(side='left')
    ttk.Radiobutton(dest_frame, text="File", variable=destination, value="File",
                   command=lambda: update_setting('destination', destination.get())).pack(side='left')
    
    # File Format
    ttk.Label(parent, text="File Format:").grid(row=8, column=0, sticky='w')
    file_format = ttk.Combobox(parent, values=['JPEG', 'PNG', 'BMP', 'TIFF'], state='readonly')
    file_format.set(current_settings['file_format'])
    file_format.grid(row=8, column=1, sticky='ew')
    file_format.bind('<<ComboboxSelected>>', lambda e: update_setting('file_format', file_format.get()))
    
    # File Path
    ttk.Label(parent, text="File Path:").grid(row=9, column=0, sticky='w')
    global file_path_var
    file_path_var = tk.StringVar(value=current_settings['file_path'])
    path_frame = ttk.Frame(parent)
    path_frame.grid(row=9, column=1, sticky='ew')
    ttk.Entry(path_frame, textvariable=file_path_var).pack(side='left', fill='x', expand=True)
    ttk.Button(path_frame, text="Browse...", command=browse_file).pack(side='left')
    
    # Scan Button
    ttk.Button(parent, text="Scan", command=scan).grid(row=10, column=0, columnspan=2, pady=10)
    
    # ADF Test Button
    ttk.Button(parent, text="Test ADF Support", command=test_adf_support).grid(row=11, column=0, columnspan=2, pady=5)

# Main application setup
logging.basicConfig(level=logging.DEBUG)
root = tk.Tk()
root.title("Scanner Application with ADF Test")

# Main frame
main_frame = ttk.Frame(root, padding=10)
main_frame.pack(fill='both', expand=True)

# Settings panel on the left
settings_frame = ttk.LabelFrame(main_frame, text="Scanner Settings", padding=10)
settings_frame.pack(side='left', fill='y')

# Image display area on the right
image_frame = ttk.Frame(main_frame)
image_frame.pack(side='right', fill='both', expand=True)

create_settings_panel(settings_frame)

root.mainloop()

I have this for only flat bet mode.
But I want ADF mode using python.

Anybody experieced?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: ricky Feli