79552675

Date: 2025-04-03 10:38:38
Score: 4
Natty:
Report link

Go to SQL Workshop => Utilities => sample database

enter image description here

then select schema to download

enter image description here

then install dataset

enter image description here

then create application

enter image description here

follow all steps for creating application but I only have changed application name and icon

enter image description here

finally, you got the application

enter image description here

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

79552669

Date: 2025-04-03 10:34:36
Score: 3.5
Natty:
Report link

FOR THIS ARRAY STRING MULTIDIMENTIONAL:

import numpy as np

ARRAYSTRING = np.chararray((100, 4, 10), 5, order='F')

print(ARRAYSTRING.shape);

OUTPUT : (100, 4, 10)

this IS an ONE-DIMENTIONAL ARRAY TO START INDEX 0,1,... ,N

, SO IF YOU WANT A SPECIFIC RANK OF ONE SPECIFIC DIMENTION YOU CAN

INDICATE THE OUTPUT OF SPECIFIC ELEMENT OF THIS ARRAY :

print(ARRAYSTRING.shape[2]);

OUTPUT : 10  # IT S THE LEN OF THIRD DIMENTION OF ARRAYSTRING

print(ARRAYSTRING.shape[1]);

OUTPUT : 4  # IT S THE LEN OF SECOND DIMENTION OF ARRAYSTRING

print(ARRAYSTRING.shape[0]);

OUTPUT : 100  # IT S THE LEN OF FIRST DIMENTION OF ARRAYSTRING

best regards

-----

Nevada – zone 51 - S4- vimanas technology extraterrestrial

Paul Hellyer, John Lear, Bob Lazar, E. Snodwen, etc.)

Elément 115 (applications d’antigravité) :

https://www.dailymotion.com/video/x18q4bp

--

https://www.youtube.com/watch?v=ypHNy2-JC-Q

--

https://www.youtube.com/watch?v=Z2_f3YXGGuA

scientist in Analyse mathématique – Numérique – Physique – Électro

Reasons:
  • Blacklisted phrase (0.5): best regards
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (1): youtube.com
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: D'Aversa Nicolas

79552663

Date: 2025-04-03 10:32:36
Score: 1
Natty:
Report link

Deleting cluster-admin role blocks all the access in case of DigitalOcean's managed DOKS. Till date 3rd April, 2025, the only solution is to create a support ticket and they will restore the role.

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

79552654

Date: 2025-04-03 10:29:35
Score: 2
Natty:
Report link

Problem was solved, when I set return value of MarkNotifications from IReadOnlyCollection<NotificationMarkResultDto> to NotificationMarkResult[] and in NotificationMarkResultDto were no setters written before (because I wanted to do that for the immutable response), but now they have been added.

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

79552635

Date: 2025-04-03 10:23:33
Score: 2.5
Natty:
Report link

My solution was to delete the /opt/triplestore-fuseki/tdb.lock file, the restart the service

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

79552627

Date: 2025-04-03 10:20:32
Score: 0.5
Natty:
Report link

Removing the version in below dependency worked for me

<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-core</artifactId>   
</dependency>
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sai praveena

79552626

Date: 2025-04-03 10:20:32
Score: 3.5
Natty:
Report link

You can search up a wiring diagram for the purifier and re do the wiring to work without the smart device. Re-wire according to schematic. It should be pretty easy.

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

79552625

Date: 2025-04-03 10:19:31
Score: 1
Natty:
Report link
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Azzouz Amine

79552618

Date: 2025-04-03 10:17:31
Score: 1.5
Natty:
Report link

If you want to read existing lines/records, you might enable Read_from_Head from Tail input.

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

79552616

Date: 2025-04-03 10:15:30
Score: 2.5
Natty:
Report link

There may be conflicts or misconfigurations when adding a new dependency in Flutter. It is necessary to verify that all dependencies are compatible and configured properly in order to resolve this issue. Flutter pub get and flutter clean can be used to refresh the project.

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

79552611

Date: 2025-04-03 10:13:30
Score: 2
Natty:
Report link

Sorry for posting the solution so late. And thanks to @j23 and @Gilles Gouaillardet helping me with the answer.

I found the OpenMPI documentation, which suggested using ompi_info --param btl tcp to search for TCP-related parameters.

$ ompi_info --param btl tcp
         MCA btl: tcp (MCA v2.1.0, API v3.3.0, Component v5.0.7)
     MCA btl tcp: ---------------------------------------------------
     MCA btl tcp: parameter "btl_tcp_if_include" (current value: "",
                  data source: default, level: 1 user/basic, type:
                  string)
                  Comma-delimited list of devices and/or CIDR
                  notation of networks to use for MPI communication
                  (e.g., "eth0,192.168.0.0/16").  Mutually exclusive
                  with btl_tcp_if_exclude.
     MCA btl tcp: parameter "btl_tcp_if_exclude" (current value:
                  "127.0.0.1/8,sppp", data source: default, level: 1
                  user/basic, type: string)
                  Comma-delimited list of devices and/or CIDR
                  notation of networks to NOT use for MPI
                  communication -- all devices not matching these
                  specifications will be used (e.g.,
                  "eth0,192.168.0.0/16").  If set to a non-default
                  value, it is mutually exclusive with
                  btl_tcp_if_include.
     MCA btl tcp: parameter "btl_tcp_progress_thread" (current value:
                  "0", data source: default, level: 1 user/basic,
                  type: int)

In my case, my processes attempt to communicate with each other over any available network, including the inappropriate network docker0.

Adding --mca btl_tcp_if_include <proper network> or --mca btl_tcp_if_exclude docker0 both solved the problem.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (0.5): Sorry for posting
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @j23
  • User mentioned (0): @Gilles
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Leonel Chen

79552609

Date: 2025-04-03 10:12:29
Score: 1
Natty:
Report link

One thing I would like to add to PaulS' answer is that if any of your variables are strings, you should put the %s associated with that variable inside quotes.

var1 = str()
var2 = int()
var3 = float()

print("INSERT INTO table VALUES ('%s', %s, %s)" % (var1, var2, var3))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: miad dehghani

79552604

Date: 2025-04-03 10:10:29
Score: 1
Natty:
Report link

My Answer:

 radius = float(input("Enter a radius for the circle: "))
    area = math.pi * radius ** 2

    circumference = 2 * math.pi * radius

    print(f"The area of the circle is {area:.2f}")
    print(f"The circumference of the circle is {circumference:.2f}")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user22868976

79552599

Date: 2025-04-03 10:09:28
Score: 0.5
Natty:
Report link

I had a very similar problem. My parameter is of type List<Something>, so I had to do it this way:

            String json = objectMapper.writeValueAsString(parameter);
            jsonObject.setValue(json);
            ps.setObject(i, jsonObject);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stephan Wack

79552595

Date: 2025-04-03 10:06:28
Score: 1
Natty:
Report link

I will give you a very simple and straight-forward solution.

The condition freq[char] evaluates to true if freq[char] is defined and has a truthy value (i.e., it is not undefined, null, 0, false, or an empty string). In this context, freq is being used as an associative array (or object) where the keys are characters and the values are their counts. If the arg provided for the removeDupl(arg) function is "Helloooooo", the freq will come out as [ H: 1, e: 1, l: 2, o: 6 ]

So, the if-condition gets executed if the current character is already present in the freq array otherwise else condition gets executed.

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

79552590

Date: 2025-04-03 10:03:27
Score: 1.5
Natty:
Report link

Someone on reddit foudn this workign solution, it is a backend problem on some macs:

"""import matplotlib

matplotlib.use('TkAgg')

import matplotlib.pyplot as plt

from skimage.io import imread

f = imread('house.png', as_gray=True)

plt.imshow(f)"""

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

79552585

Date: 2025-04-03 10:00:26
Score: 1.5
Natty:
Report link

i did it with the fall back intent insted of the qnaintent when it goes to fallback i triggered a lambda function to retrive the data from the knowledge base

service: claude-lex-bedrock-bot

provider:
  name: aws
  runtime: nodejs22.x
  region: eu-west-2
  environment:
    KNOWLEDGE_BASE_ID: ${env:KNOWLEDGE_BASE_ID, 'M86AHPZ6CL'}
  iam:
    role:
      statements:
        - Effect: Allow
          Action:
            - bedrock:InvokeModel
            - bedrock:Retrieve
            - bedrock:RetrieveAndGenerate
            - logs:CreateLogGroup
            - logs:CreateLogStream
            - logs:PutLogEvents
            - lambda:InvokeFunction
            - lex:*
          Resource: "*"

functions:
  LexBedrockHandler:
    handler: handler.handler
    name: claude-lex-bedrock-bot-dev-LexBedrockHandler
    timeout: 15  
    events:
      - httpApi:
          path: /chat
          method: post
  BotInputHandler:
    handler: lexHandler.handler
    name: lex-chat
    environment:
      BOT_ID: !Ref MyLexBot
      BOT_ALIAS_ID: !GetAtt MyLexBotAlias.BotAliasId
      LOCALE_ID: "en_US"
    events:
      - httpApi:
          path: /bot
          method: post

resources:
  Resources:
    MyLexBot:
      Type: AWS::Lex::Bot
      Properties:
        Name: MyBot
        DataPrivacy:
          ChildDirected: false
        IdleSessionTTLInSeconds: 300
        RoleArn: !GetAtt LexBotRole.Arn
        BotLocales:
          - LocaleId: en_US
            NluConfidenceThreshold: 0.40
            Intents:
              - Name: GreetingIntent
                SampleUtterances:
                  - Utterance: "Hi"
                  - Utterance: "Hello"
                  - Utterance: "Good morning"
                  - Utterance: "Hey"
                IntentClosingSetting:
                  ClosingResponse:
                    MessageGroupsList:
                      - Message:
                          PlainTextMessage:
                            Value: "Hello! How can I assist you today?"
              - Name: FallbackIntent
                ParentIntentSignature: AMAZON.FallbackIntent
                FulfillmentCodeHook:
                  Enabled: true  # Invoke Lambda for dynamic response

    MyLexBotVersion:
      Type: AWS::Lex::BotVersion
      Properties:
        BotId: !Ref MyLexBot
        BotVersionLocaleSpecification:
          - LocaleId: en_US
            BotVersionLocaleDetails:
              SourceBotVersion: "DRAFT"
      DependsOn: MyLexBot

    MyLexBotAlias:
      Type: AWS::Lex::BotAlias
      Properties:
        BotAliasName: prod
        BotId: !Ref MyLexBot
        BotVersion: "1"
        BotAliasLocaleSettings:
          - LocaleId: en_US
            BotAliasLocaleSetting:
              Enabled: true
              CodeHookSpecification:
                LambdaCodeHook:
                  CodeHookInterfaceVersion: "1.0"
                  LambdaArn: !Sub "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:claude-lex-bedrock-bot-dev-LexBedrockHandler"
      DependsOn: MyLexBotVersion

    LexBotRole:
      Type: AWS::IAM::Role
      Properties:
        AssumeRolePolicyDocument:
          Version: "2012-10-17"
          Statement:
            - Effect: Allow
              Principal:
                Service: lexv2.amazonaws.com
              Action: sts:AssumeRole
        Policies:
          - PolicyName: LexBotAccessPolicy
            PolicyDocument:
              Version: "2012-10-17"
              Statement:
                - Effect: Allow
                  Action:
                    - logs:CreateLogGroup
                    - logs:CreateLogStream
                    - logs:PutLogEvents
                    - lambda:InvokeFunction
                    - bedrock:InvokeModel
                    - bedrock:Retrieve
                    - bedrock:RetrieveAndGenerate
                  Resource: "*"

    LexLambdaPermission:
      Type: AWS::Lambda::Permission
      Properties:
        Action: lambda:InvokeFunction
        FunctionName: claude-lex-bedrock-bot-dev-LexBedrockHandler
        Principal: lexv2.amazonaws.com
        SourceArn: !Sub "arn:aws:lex:${AWS::Region}:${AWS::AccountId}:bot-alias/${MyLexBot}/${MyLexBotAlias.BotAliasId}"

  Outputs:
    BotId:
      Description: The ID of the Lex Bot
      Value: !Ref MyLexBot
    AliasId:
      Description: The ID of the Lex Bot Alias
      Value: !GetAtt MyLexBotAlias.BotAliasId

plugins:
  - serverless-api-gateway-throttling
  - serverless-dotenv-plugin

custom:
  apiGatewayThrottling:
    maxRequestsPerSecond: 10
    maxConcurrentRequests: 5

package:
  exclude:
    - node_modules/**
    - .git/**
    - .gitignore
    - test/**
    - "*.md"
Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (1): Good morning
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Thomas Joseph

79552565

Date: 2025-04-03 09:52:23
Score: 1
Natty:
Report link

There are no specific compiler option(s), but You can switch to new Visual Studio compiler to compile the script (3rd party Inno Setup extension is needed: https://marketplace.visualstudio.com/items?itemName=unSignedsro.VisualInstaller) based on MSBuild.

Visual Studio in general is very well optimized, compiling, parsing etc. is really fast, which may reduce the times for you.

Also you may try switching the library, for example https://github.com/solodyagin/jsonconfig looks promising and is using different approach than koldev's JsonParser but its newer.

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

79552560

Date: 2025-04-03 09:48:22
Score: 1.5
Natty:
Report link

To run a python code before start, an easy way is to use Python Snippet block in GNU radio. Select section of Flow graph to After Init or After Start as required. Put the code to Code Snippet

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

79552552

Date: 2025-04-03 09:44:21
Score: 0.5
Natty:
Report link

use this code on phpmyadmi

SELECT user_id, meta_value AS phone_number
FROM wp_usermeta
WHERE meta_key = 'billing_phone';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Omid Ahmadyani

79552551

Date: 2025-04-03 09:44:21
Score: 2
Natty:
Report link

I rebooted my computer. Only it works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sergo

79552548

Date: 2025-04-03 09:43:20
Score: 4
Natty: 6.5
Report link

can you design a typing game that only english easy understanderable artikle are in there. and ignore uppercase and false, when false just make a sound to remind but dont stop the typing prosses. can you do that? that would be very helpful. thank you very much!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can you
  • Low reputation (1):
Posted by: Diming Qian

79552546

Date: 2025-04-03 09:42:20
Score: 0.5
Natty:
Report link

It may happen a little later, but here's the answer as of now.

Unfortunately, that seems to be impossible because:

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

79552530

Date: 2025-04-03 09:35:17
Score: 1.5
Natty:
Report link

Why do you have output_category_mask=False and are expecting 2 outputs ? You are specifically asking the model to only return 1 output.

Please check the documentation and source code.

output_confidence_masks: Whether to output confidence.

output_category_mask: Whether to output category mask.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why do you have
  • Low reputation (0.5):
Posted by: anxiousPI

79552527

Date: 2025-04-03 09:33:16
Score: 4.5
Natty:
Report link

You can try using SmartCodable for a better experience than Codable.

https://github.com/intsig171/SmartCodable

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

79552526

Date: 2025-04-03 09:32:15
Score: 7.5 🚩
Natty: 5
Report link

I am having same issue.
How to reset the Admin ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Vinay Kumar

79552520

Date: 2025-04-03 09:30:14
Score: 1
Natty:
Report link

matlabplot version 3.7.2

I prefer to use OOP-style code

ax = fig.add_subplot(111, projection='3d') # not oo style code

If you want to use OOP-style code

fig, ax = plt.subplots(subplot_kw={"projection": "3d"}) 
# it works but I dont like subplot_kw
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: domonnss

79552510

Date: 2025-04-03 09:27:13
Score: 0.5
Natty:
Report link

It's in your DerivedData,

Xcode 15, iPhone simulator

/<user>/Library/Developer/Xcode/DerivedData/<app name>/Build/Products/Debug-<flavors_if_any>-iphoneos

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Heshan Sandeepa

79552504

Date: 2025-04-03 09:25:13
Score: 1
Natty:
Report link

This is an old thread but there's a lot of confusion.

The issue is actually the fact, that <~only allows updating the rightmost component of the version, as detailed in the https://developer.hashicorp.com/terraform/language/expressions/version-constraints .

Therefore in your ~> 1.0.0 case, only Patch versions of 1.0.* are allowed. ~> 1.0 works, because it allows the Minor version of your 1.2.

\>= 1.0.0 is any version equal or higher to 1.0.0, including a Major version.

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

79552501

Date: 2025-04-03 09:24:13
Score: 0.5
Natty:
Report link

Modify your .desktop file to track and kill the Java process when Firefox exits:

Exec=sh -c "java -jar /home/claus/sterlingpdf/Stirling-PDF-with-login.jar & JAVAPID=$!; while ! nc -z localhost 8080; do sleep 1; done; firefox --new-tab http://localhost:8080/; kill $JAVAPID"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: susie

79552498

Date: 2025-04-03 09:22:12
Score: 1
Natty:
Report link

If you know the name of the app, this deletes all copies: (takes a while to complete):

 sudo find / -name "NAME_OF_THE_APP.app" 2>/dev/null -exec rm -rf {} \;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Michel Storms

79552494

Date: 2025-04-03 09:21:11
Score: 0.5
Natty:
Report link

You can also get the permission via an entry in the manifest.json file. This is perfect for kiosk or standalone applications.


{
    "permissions": [
        "serial"
    ]
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: bluelemonade

79552493

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

Try to install the required package: npm i @inquirer/prompts For me this solved the issue.

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

79552492

Date: 2025-04-03 09:20:11
Score: 3.5
Natty:
Report link

Try changing the timestamp to a future time, about 1 minute ahead. For example, if the current time is 11:58:11, set the timestamp to 11:59:11 (1743656351).

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

79552486

Date: 2025-04-03 09:18:11
Score: 1.5
Natty:
Report link

The proper command for this import would be:

terraform import azurerm_storage_account.my_storage_account "/subscriptions/..."

Double quotes are required.

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

79552457

Date: 2025-04-03 09:08:08
Score: 3.5
Natty:
Report link

You can also use Xcodes now, which is easier.

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

79552454

Date: 2025-04-03 09:07:08
Score: 1.5
Natty:
Report link

Although there is no good tutorial, I have made a usable example with OAuth for you to consider. I have tried all the steps described below.

The repository is here. I have tested the code, and I logged in via OAuth Apps.

To try the application, you need

git clone https://github.com/Hdvlp/SpringBootSecurityFilterChainMigration.git

and other steps in developing a Spring Boot application. (not a complete tutorial here)

To create your OAuth Apps, you need these:

Fill in:

Your client-id and client-secret in application.yml.

Homepage URL:

http://127.0.0.1:8080

Authorization callback URL:

http://127.0.0.1:8080/login/oauth2/code/github

After running the Spring Boot application locally, open in the browser:

http://127.0.0.1:8080

You may try other paths in the browser to see the effect before and after logging in, e.g.

http://127.0.0.1:8080/member/area

http://127.0.0.1:8080/actuator/health/servicea

As illustrated below, you need to decide what paths are in what order.

This is what I tried: The logic of evaluation is like...

The @Order which is smaller in number wins. The path matching matchedPaths wins.

If you have two @Order annotations with the same matchedPaths, and one @Order contains a smaller value, the latter wins. (The SecurityFilterChain with the larger @Order annotation produces no effect.)

If you have two SecurityFilterChains with @Order annotations with different matchedPaths, both SecurityFilterChains are run.

As far as I tried, matching "/actuator/health/**" left prefix works. Whereas, matching "/**/actuator/health" right suffix does not work (easily). You may need to change your paths accordingly.

    @Bean
    @Order(500)
    SecurityFilterChain securityFilterChainActuator(HttpSecurity http) throws Exception {
        String[] matchedPaths = { "/actuator/health/**" };
        http
            .csrf(AbstractHttpConfigurer::disable)
            .securityMatcher(matchedPaths)
            .authorizeHttpRequests(
                auth -> 
                    auth
                        .requestMatchers(matchedPaths)
                        .permitAll()
            );

        return http.build();
    }
Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Order
  • User mentioned (0): @Order
  • User mentioned (0): @Order
  • User mentioned (0): @Order
  • User mentioned (0): @Order
  • Low reputation (1):
Posted by: Hdvlp

79552450

Date: 2025-04-03 09:04:07
Score: 1.5
Natty:
Report link

I still got the same error even with Basic Authentication turned On - in my case, it was due to the App Service being disabled for public network access.

I whitelisted my IP under App Service settings in Azure Portal:

Settings -> Networking -> Public network access

My publish worked fine afterwards.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Danny Meyer-Kristensen

79552447

Date: 2025-04-03 09:04:07
Score: 1
Natty:
Report link

I was facing the same thing! The solution is for your Facebook app to be live to send events. Apps in development mode cannot send events. Hope this helps you!

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

79552444

Date: 2025-04-03 09:02:06
Score: 2.5
Natty:
Report link

I get the error below:

vercel error

Reading at https://nextjs.org/docs/app/api-reference/config/next-config-js/output#caveats, about outputFileTracingExcludes. I have add the code below in next.config.ts:

const nextConfig: NextConfig = { ..., outputFileTracingExcludes: { "/api/docs": ["./.next/cache/**/*"] }, .... };

Then the project working right, my nextjs version is 15.1.6, you can check my config at my project. Hope this help everyone.

Reasons:
  • Whitelisted phrase (-1): Hope this help
  • RegEx Blacklisted phrase (1): I get the error
  • Probably link only (1):
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: holedev

79552439

Date: 2025-04-03 09:00:06
Score: 0.5
Natty:
Report link

Let's say you've put an image in your main repository in folder img.
You want to use relative paths in your image tag.

linking to it in the github readme.md:
![myimage](img/myimage.png?raw=true)

linking to it in a github issue comment:
![myimage](../blob/main/img/myimage.png?raw=true)

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

79552438

Date: 2025-04-03 08:59:05
Score: 1
Natty:
Report link

Maybe you can elaborate a bit on the dot product you are trying to take?

Because taking the dot product along vector [1,1,1] is just the same as the sum:

>>> x = np.random.sample(3)

>>> np.isclose(np.dot(x, [1,1,1]), np.sum(x)) # it's the same up to numerical precision
True

Which would imply that you'd like to do something like:

sb.heatmap(np.cos(X+Y+2*np.pi));

That would result in an image like this: enter image description here

To prove the point, we can do something slow:

def cos_dot(x_grid, y_grid, z_fixed = 2 * np.pi):
    res = np.zeros_like(x_grid)
    # Loop over all x,y coordinates. 
    # Just to be explicit we only use the indices i and j.
    for i, _ in enumerate(x_grid):
        for j, _ in enumerate(y_grid[i[):
            res[i][j] = np.cos(
                np.dot(
                    [x_grid[i][j], y_grid[i][j], z_fixed],
                    [1,1,1]
                ))
    return res

# Let's check that this function gives the same answer as just X+Y+2*np.pi
np.isclose(cos_dot(X,Y), np.cos(X+Y+2*np.pi)).all() 

which returns True

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: J. R.

79552427

Date: 2025-04-03 08:56:04
Score: 1.5
Natty:
Report link

Set the code-fold chunk option to show or false:

---
  code-fold: true
---

```
# Block to fold initially
```

```
#| code-fold: show
# Block to keep unfolded initially
```

```
#| code-fold: false
# This block is always shown and not foldable
```

Here's the relevant page in the quarto guide.

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

79552426

Date: 2025-04-03 08:55:04
Score: 3
Natty:
Report link

In my case, I had to comment it out index.css & app.css.

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Garp

79552423

Date: 2025-04-03 08:54:03
Score: 1.5
Natty:
Report link

To prevent Tailwind CSS from affecting the host webpage in your Chrome extension, you can encapsulate styles using Shadow DOM.

A well-structured setup like chrome-ext-starter provides an effective approach. It ensures your styles remain scoped to your extension while maintaining compatibility with Tailwind CSS and React.

Additionally, disabling Tailwind’s preflight reset corePlugins: { preflight: false } can prevent global style conflicts.

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

79552420

Date: 2025-04-03 08:52:03
Score: 0.5
Natty:
Report link

I don't know much about Gatsby but I'm guessing that it's generated a structure like this which you've deployed to your S3 bucket?

/index.html
/path1/index.html
...etc

And you want GET / to return the content from index.html, and GET /path1 to return the content from /path1/index.html etc.? And your plan to do this was to set /index.html as the 403 custom error response?

If I've understood that correctly, then this isn't going to work as you want. If you've set things up as described I would expect GET /path1 to return the content from /index.html.

One way of getting this working as you want is to change the 403 custom error response to something more appropriate (i.e. a /404.html page) and then associate a viewer-request function with your CloudFront distribution that rewrites requests to include /index.html at the end of the path if needed. Something like:

function handler(event) {
  var request = event.request;
  var uri = request.uri;

  if (uri.endsWith("/")) {
    request.uri += "index.html";
  } else if (!uri.includes(".")) {
    request.uri += "/index.html";
  }
  return request;
}

Here's a CloudFormation template where this is set up if you want to see how it all fits together (disclaimer: this is my github repo).

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

79552419

Date: 2025-04-03 08:49:02
Score: 0.5
Natty:
Report link

Well, I got the idea from Wael Ltifi to resize my window when opening my component.

I know it's not a clean solution at all, but given the urgency and the fact that I'm not a C# expert, it's the only workaround I could find.

I added this code right after opening my editor.

var window = this;
bool isMaximized = window.WindowState == FormWindowState.Maximized;

if (isMaximized)
{
    window.WindowState = FormWindowState.Normal;
    window.Width -= 10;
    window.Width += 10;
    window.WindowState = FormWindowState.Maximized;
} else
{
    window.Width -= 10;
    window.Width += 10;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: PépéMax

79552418

Date: 2025-04-03 08:49:02
Score: 0.5
Natty:
Report link

Actually, the key thing to remember here is that named variables aren't implicitly moved - so while it looks like a typical move construction case, the compiler won't automatically move x into FooResult unless std::move(x) is explicitly used. Otherwise, we fall back to copy semantics if a copy constructor exists.

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

79552406

Date: 2025-04-03 08:46:01
Score: 2.5
Natty:
Report link

Variable 'region' was already declared in the first foreach loop, it was no longer available in the second loop due to scoping rules. Each foreach loop creates its own separate variable, but the debugger might have gotten confused or optimized out the second instance.

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

79552405

Date: 2025-04-03 08:46:01
Score: 5.5
Natty:
Report link

Making computation code cancellable

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kirill

79552399

Date: 2025-04-03 08:44:00
Score: 12
Natty: 8.5
Report link

@kevmo314 can you share some hints how you got your user-space UVC driver working?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you share some
  • RegEx Blacklisted phrase (2): working?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @kevmo314
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Karel

79552395

Date: 2025-04-03 08:43:00
Score: 1.5
Natty:
Report link

Had a similar problem. The fact that it doesn't hang when you use a regular mutex means two things: (1) the mutex in that case is recursive; (2) this piece of code is definetly being reached by another thread (since there is no other calls within the provided block, so not a recursion case). So, dude, check your code again and again...

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

79552385

Date: 2025-04-03 08:38:58
Score: 8.5 🚩
Natty: 5
Report link

Did you find a solution for this question?

Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find a solution for this
  • Low reputation (0.5):
Posted by: sgallego

79552384

Date: 2025-04-03 08:38:58
Score: 4.5
Natty:
Report link

Have you tried writing the password and username directly in the application.yml file?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DjulPerec

79552382

Date: 2025-04-03 08:37:58
Score: 1
Natty:
Report link

I'm dealing with vectors that aren't all dates using the optional = TRUE.

The existing answers in base R fail when the string vector starts with a none date. Here is my solution based on this answer https://stackoverflow.com/a/46358096/7840119

x <- c("abc", "01.02.2025", "04/05/2026")
Reduce(c, lapply(x, FUN = 
function(x){as.Date(x, tryFormats = c("%d.%m.%Y", "%d/%m/%Y"), optional = T)}
))

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lukas Lohse

79552380

Date: 2025-04-03 08:36:57
Score: 0.5
Natty:
Report link

Introduction

I have been coming across this topic in my searches quite a bit as I always seem to hit blockers when implementing needed functionality on the various devices I compile to for Android. Perhaps the following thoughts can demystify the .aar file and how one can use it in RAD Studio. As of RAD Studio 12.2 you can apparently just add the .aar file to your project but it is not clear how to reference it in code.

.aar and .jar files are zip files

It is true that the .aar file is merely a zip file, it is easy to rename and extract the contents. A lot of libraries are distributed in this format and work really nicely in Android Studio by simply including the files in the gradle build. The .aar file in many cases contains a jni folder which contains the c++ libraries for the supported android OS, either 32 bit or 64 bit.

.so files from jni can be added to RAD Studio project

These .so files need to be included separately as part of the RAD Studio Deployment on the Menu(Project -> Deployment). It is also here where you can deploy any res files that are part of the .aar library which you have extracted. Inside the .aar library is a classes.jar file which also can be extracted and renamed then added to your project under Libraries (Android Target).

You can manually merge multiple .jar and .aar files together

I have successfully combined multiple .aar files into a single .jar file by extracting each classes.jar file then merging each of their contents together in a single .jar file. Once this has been done the initial hard work is over. Running JAVA2OP on this .jar file will result in a .pas file which you can include in your project. The only issue here being that all the dependencies need to be resolvable in the .jar file. So if the code in the .jar file relies on some 3rd party library code, you will need to download that package and include it in your .jar file.

Make sure you have all the dependencies covered

In principal when I do these builds I still check if the libraries I build in Android Studio actually work with a test application. If I am simply building a module / library in Android studio I start it by building a "blank" Android application then add a module which is essentially a folder within the project.

Summary

Conclusion

I find that this topic is not very well documented and frankly very black boxed. Even keeping up with all the changes in Android is difficult for me (Manifest!) Let me know if I need to clarify anything better, I put this here in the hopes that it will help.

Lastly, you cannot build multiple .aar files into a single .aar module without much pain, don't waste energy trying that!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Andre Van Zuydam

79552371

Date: 2025-04-03 08:32:55
Score: 2
Natty:
Report link

You can select option from Select dropdown like this:

page.FindElement(DROPDOWN).ClickItem("first option")

Where DROPDOWN is your dropdown XPATH for example "//select[@name='Gender']" and first option is name of option for example "Male"

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

79552369

Date: 2025-04-03 08:32:55
Score: 1.5
Natty:
Report link

The aggregation is a wrong choice, a LeaseAgreement is not made up of Person

You are right when considering the real world as the standard. In my opinion, it would be better to consider the software requirements as the standard. After all, UML class diagrams are used to model software architectures.

Notice tenant is shown both as an attribute and a relation's role, making the diagram unnecessarily complex.

Thanks for pointing that out. So, either an attribute or a relation's role, but not both?

Sorry, I misspoke earlier. The LeaseAgreement should actually only contain one person, the tenant. For this, the Person class has the attribute tenant. However, instances of the Person type should not contain any attributes of the LeaseAgreement type. A Person instance should have no knowledge of the LeaseAgreement instances that reference it. Therefore, I would set the multiplicity to 0 on the LeaseAgreement side.

Now, someone suggested that I should still represent the multiplicity as 0..* on the LeaseAgreement side. However, in my opinion, this doesn't make sense. 0..* on the LeaseAgreement side would mean that Person instances own a collection of LeaseAgreements. I hope I was able to clear up the confusion.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Z.J

79552356

Date: 2025-04-03 08:28:54
Score: 2.5
Natty:
Report link

Always good to due diligence run it, I run it thru visual studio check misspelled or etc. Before installing it right butterfly 🦋 🤔 😜 😉 what point of installing if alot we get is half booth, that what mean freedom 😉 🤔 😜 j/k always ✔️

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

79552354

Date: 2025-04-03 08:26:54
Score: 1
Natty:
Report link

You can't return from a controller's constructor. If you want to exit and display a message, instead try:

abort(response('Message here', 500));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tyler

79552353

Date: 2025-04-03 08:25:53
Score: 1.5
Natty:
Report link

I observed NCLS-ADMIN_00010 while starting the domain when my keystore.jks file was corrupted. It is resolved when keystore.jks is restored from original installation bundle.

I was using Payara 5 with JDK11. Error messages in the logs were not very helpful.

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

79552346

Date: 2025-04-03 08:20:52
Score: 1.5
Natty:
Report link

PrimeFaces CSP does not work with Mojarra f:ajax, it works however with MyFaces f:ajax.
See our documentation: https://primefaces.github.io/primefaces/15_0_0/#/core/contentsecuritypolicy?id=known-limitations

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

79552345

Date: 2025-04-03 08:19:52
Score: 1.5
Natty:
Report link

Seems like I found a way. Assuming the network driver creating the net_device does SET_NETDEV_DEV(), then it's possible to get the associated struct pci_dev *pdev = to_pci_dev(netdev->dev.parent) and with that pdev->bus->number which is the PCI bus id, and PCI_SLOT(pdev->devfn) which is the PCI device id.

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

79552337

Date: 2025-04-03 08:15:51
Score: 2
Natty:
Report link

You can simply press right key on "Extension" and select "Hide badge". Can't upload screenshot, sorry) It will hide only notification, but the Extensions menu will be still there

POST https://stackoverflow.com/upload/image?method=json 503 (Service Unavailable)
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roman Troy

79552334

Date: 2025-04-03 08:13:50
Score: 3
Natty:
Report link

Welcome to Download From Pinterest, your trusted online tool for downloading Pinterest videos, images, and GIFs seamlessly. We’re passionate about providing a simple, free, and efficient solution for users to save their favorite Pinterest content for personal use, without needing an account.

From https://downloadfrompinterest.com/

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

79552325

Date: 2025-04-03 08:07:48
Score: 0.5
Natty:
Report link

So my issue was actually that my Google play API key did not match in Playfab/Unity/Play Store.

Once I fixed that I didn't have this error anymore

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jonny Holmes

79552305

Date: 2025-04-03 07:57:45
Score: 2.5
Natty:
Report link

visual studio logs, LimeWire site. This is the link to download the vslogs in zip format that you said to get with Collector. 
I tried to examine the contents, but I couldn't find an error.
If this not what you mean later - please, answer me.

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

79552304

Date: 2025-04-03 07:56:45
Score: 1.5
Natty:
Report link

a different tool xmlstartlet supports namespaces

xmlstarlet sel -t -c '/_:chat' chat.xml

or

xmlstarlet sel -t -v '/_:chat/_:message/_:div' /tmp/chat.xml

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

79552288

Date: 2025-04-03 07:47:43
Score: 2.5
Natty:
Report link

That's right.You can check this page from React website. https://react.dev/reference/react/useActionState And there is an example to introduce the hook

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

79552285

Date: 2025-04-03 07:46:42
Score: 3.5
Natty:
Report link

https://ms-info-app-e4tt.vercel.app/reactNative/webrtc

try this page step easy to implement💯💯💯

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mukesh M

79552283

Date: 2025-04-03 07:46:42
Score: 0.5
Natty:
Report link

My solution is below:

  1. First, install plugin https://plugins.jetbrains.com/plugin/14004-protocol-buffers

  2. needs some extra effort to parse Google and validate imports: clone these two repo you need in your project

  3. manually add the import path in the settings (Settings -> Languages&Frameworks -> Protocol Buffers) Import paths

PS: It's so dull IDEA still supports protocol not very well now.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • No code block (0.5):
Posted by: Ridox

79552270

Date: 2025-04-03 07:34:39
Score: 2
Natty:
Report link

One more option - in addition to locals and not something I recommend doing - is using inspect module: https://stackoverflow.com/a/582206/2273896.

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

79552267

Date: 2025-04-03 07:33:39
Score: 1.5
Natty:
Report link

I fixed it by compiling in a real terminal. VS Code's terminal is apparently sandboxed and that caused an error when compiling using it.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Luka Talevski

79552263

Date: 2025-04-03 07:31:37
Score: 9 🚩
Natty: 5.5
Report link

I have the same issue. Is anyone have some leads for resolving this incident ?

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): I have the same issue
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: retry_mk_mail

79552246

Date: 2025-04-03 07:23:35
Score: 1
Natty:
Report link

Try to add response body to your API. For example return userWasAddedSuccessfully ? 'User was added' : 'Smth went wrong'. Then your console.log() show result. Now your 200 OK show success request to API, but not result.

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

79552237

Date: 2025-04-03 07:17:34
Score: 2
Natty:
Report link

Using the code proposed by @hrbrmstr, it is possible to test the minimum version of the dependencies of a package not published on CRAN if you have the source code of this package:

purrr::map_chr(desc::desc_get_deps("/path/to/the/package/source")$package, min_r_version)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @hrbrmstr
  • Low reputation (1):
Posted by: David Dorchies

79552234

Date: 2025-04-03 07:14:33
Score: 3.5
Natty:
Report link

End up I have to remove Projection part and map from Customer to T002Dto manually in order to Hibernate doesn't use alias in WHERE clause

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nguyễn Phú Khang

79552233

Date: 2025-04-03 07:14:33
Score: 1
Natty:
Report link

You can invoke the custom action using pure XMLHttpRequest:

function executeRequest(
  httpAction: HttpAction,
  uri: string,
  data?: any): Promise<XMLHttpRequest> {
  // Construct a fully qualified URI if a relative URI is passed in.
  if (uri.startsWith("/")) {
    uri = `${getWebApiUrl()}${uri}`;
  }
  const preferHeaders = [
    "OData.Community.Display.V1.FormattedValue",
    "Microsoft.Dynamics.CRM.associatednavigationproperty",
    "Microsoft.Dynamics.CRM.lookuplogicalname",
  ].join(",");
  return new Promise(function (resolve, reject) {
    const request = new XMLHttpRequest();
    request.open(httpAction, encodeURI(uri), true);
    request.setRequestHeader("OData-MaxVersion", "4.0");
    request.setRequestHeader("OData-Version", "4.0");
    request.setRequestHeader("Accept", "application/json");
    request.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    request.setRequestHeader("Prefer", `odata.include-annotations='${preferHeaders}'`);
    request.onreadystatechange = function () {
      if (this.readyState === 4) {
        request.onreadystatechange = null;
        let error: any;
        switch (this.status) {
          case 200: // Success with content returned in response body.
          case 204: // Success with no content returned in response body.
            resolve(this);
            break;
          default: // All other statuses are unexpected so are treated like errors.
            try {
              const resp = JSON.parse(request.response as string) as { error: any };
              error = resp.error;
            } catch (e) {
              error = new Error("Unexpected Error");
            }
            reject(error);
            break;
        }
      }
    };
    if (data) {
      request.send(JSON.stringify(data));
    } else {
      request.send();
    }
  });
}

Usage:

const actionName = "/new_MyActionName";
const data = {};  // Your action input parameter data
  // If you have 2 input params: Name (string), Age (number);
  // You will define the data as following:
  // const data = { Name: "John", Age: 18 };
 
executeRequest("POST", actionName, data).then((resp) => {
  const respObj = resp.responseText 
    ? (JSON.parse(resp.responseText))
    : ({});
  console.log(respObj);
}).catch(e => console.error(e));

Details: https://kalcancode.wordpress.com/2025/04/01/generic-js-function-to-execute-custom-action-in-power-apps/

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

79552228

Date: 2025-04-03 07:11:32
Score: 1.5
Natty:
Report link

Vaadin Copilot does not currently support creating new files, and the error message is misleading :(.

It was a somewhat tough decision not to support at the first round to make sure, everything was handled properly from a security perspective.

There is already work, and PR to change this and support creating the file, so when this PR is merged and the new copilot client (Vaadin framework) is released, probably this will be changed, and you can do this without any issues.

If you have any other problem or idea, please continue raising it here on stackoverflow, or even in the relevant repository. It is listened to and concerned, and it is super helpful!

Thank you very much alexanoid.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: czupe

79552225

Date: 2025-04-03 07:10:32
Score: 1
Natty:
Report link

from PIL import Image

# បើករូបភាព

image = Image.open("your_image.jpg")

# កំណត់ទំហំ (4x6 cm) (ម្យ៉ាងត្រូវដឹង DPI)

dpi = 300 # ឧ. 300 DPI

width_px = int(4 * dpi / 2.54) # 4 cm to pixels

height_px = int(6 * dpi / 2.54) # 6 cm to pixels

# កាត់ (crop) ចេញពីកណ្ដាល

center_x, center_y = image.width // 2, image.height // 2

left = center_x - width_px // 2

top = center_y - height_px // 2

right = center_x + width_px // 2

bottom = center_y + height_px // 2

cropped_image = image.crop((left, top, right, bottom))

# រក្សាទុករូបដែលបានកាត់

cropped_image.save("cropped_image.jpg", dpi=(dpi, dpi))

print("✅ រូបត្រូវបាន crop ទំហំ 4x6 cm ដោយជោគជ័យ!")

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

79552222

Date: 2025-04-03 07:09:32
Score: 0.5
Natty:
Report link

Another cheap way of getting your work done(Windows) is:

  1. Open the generated .war file in Winrar.

  2. In Winrar, go to WEB-INF/lib

  3. Click the Add button on top of the Winrar window.

  4. Add all the external jar files. Done! You can use this war file.

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

79552216

Date: 2025-04-03 07:07:31
Score: 1
Natty:
Report link

If you are using a single process, you can store the connection and reuse it (you may want to have a look at sshkit connection pooling)

If you want to reuse the same connection in several ruby processes, I guess there is no easy solution since ControlMaster is not supported : https://net-ssh.github.io/net-ssh/classes/Net/SSH/Config.html.

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

79552213

Date: 2025-04-03 07:07:31
Score: 3
Natty:
Report link

Older question, but for us the only fix was to completely remove the Spark pool and recreate it. After that, all our notebooks ran succesfully again.

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

79552212

Date: 2025-04-03 07:07:31
Score: 11.5
Natty: 7.5
Report link

I've the same issue with chrome driver 135.0.7049.42 (stable), do we any solution for it?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution for it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): 've the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sumit Chawla

79552209

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

The steps that helped me to solve this problem

1. Go to azure key vault service and select the key vault
2. In my case access policies for the key vault was showing
"Access policies not available. The access configuration for this key vault is set to role-based access control. To add or manage your access policies, go to the Access control (IAM) page.", so go to the Access control (IAM)
3. Select "add role assignment"
4. From 'Role' tab select "Key Vault Certificate User"
5. From "Members" tab select "Assign access to User, group, or service principal"
6. Click on + Select members and in the right search menu you will see users list, past in that menu -> "Microsoft.AzureFrontDoor-Cdn", the item will appear , select that and go to next and save
7. Then go back to azure cdn and continue

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

79552206

Date: 2025-04-03 07:04:30
Score: 1
Natty:
Report link

Here I found the best way how to upload and retrieve files from nested arrays in Laravel with clear, step-by-step instructions.

// Access the first request's image file
$file = $request->file('request.0.image');

// Access the second request's image file
$file = $request->file('request.1.image');

Here In below article I found full detail description and usecases

https://tutorial-tools.com/post/how-to-upload-and-retrieve-files-from-nested-arrays-in-laravel-the-ultimate-guide

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

79552193

Date: 2025-04-03 06:58:28
Score: 0.5
Natty:
Report link

The from x import y import mechanism in Python is specifically designed to work with Python modules (.py files). It looks for a module named x and then imports the name y defined inside it.
A .pem file is simply a text file containing data and not a Python module, you cannot directly use this import syntax to access its contents.
Instead, you should read the .pem file's content within a Python module located (for example) in your lib directory and then import that content.

Make a new Python file in your lib directory called sharepoint_credentials.py.

import os

def load_sharepoint_key(filename="sharepoint_key.pem"):
    filepath = os.path.join(os.path.dirname(__file__), filename)  # sharepoint_key.pem file in the lib directory
    try:
        with open(filepath, 'r') as f:
            private_key = f.read().strip()
        return private_key
    except FileNotFoundError:
        print(f"Error: File not found at {filepath}")
        return None

SHAREPOINT_PRIVATE_KEY = load_sharepoint_key()

You can now access the content by importing it into your various Python scripts.

import sys, os

current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(current_dir, "..", "..", ".."))
import __root__

from lib.sharepoint_credentials import SHAREPOINT_PRIVATE_KEY, load_sharepoint_key

if SHAREPOINT_PRIVATE_KEY:
    print("Loaded SharePoint Private Key:")
    print(SHAREPOINT_PRIVATE_KEY)
else:
    print("Failed to load SharePoint Private Key.")

# Or you can call the function directly if needed
key = load_sharepoint_key()
if key:
    # Use key

While the method of calculating the current directory and appending to `sys.path` can enable imports from your `lib` directory across various script locations, it's important to understand that this approach has limitations and it's not the most Pythonic way to handle module dependencies.
It doesn't clearly establish a "project root". Instead, it depends on navigating up the directory tree using relative path counting. Consequently, any changes to your project's folder organization will necessitate manually adjusting the number of `..` segments in your `os.path.join` calls across all your scripts. Have we considered turning `lib` into a Python package?
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: Lewis

79552190

Date: 2025-04-03 06:58:28
Score: 1
Natty:
Report link

There are two different route types (admin and content-api). API tokens and U&P only work on content-api routes, not admin.

You can create content-api routes from your custom plugin with the following syntax:

const contentAPIRoutes = require('./content-api');

const routes = {
  'content-api': {
    type: 'content-api',
    routes: contentAPIRoutes,
  },
};

module.exports = routes;

Reference:
https://github.com/strapi-community/plugin-healthcheck/blob/b86874915cf2087dd84f4fa922476f7071791e6d/server/src/routes/index.js#L4

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Drashti Kheni

79552185

Date: 2025-04-03 06:56:28
Score: 1.5
Natty:
Report link

Just import the CSS with the following path in layout.tsx:

import "public/assets/css/styles.css";

I had missed the public keyword.

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

79552180

Date: 2025-04-03 06:51:27
Score: 1
Natty:
Report link

This expression surprisingly returns false.
Surprisingly,

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Guillaume Outters

79552172

Date: 2025-04-03 06:47:25
Score: 2
Natty:
Report link

enter image description here

const text = "HELLO WORLD".split("");
 
   <div style={{ display: "flex", justifyContent: "space-between", width: "100%", fontSize: "24px", textTransform: "uppercase" }}>
      {text.map((char, index) => (
        <span key={index}>{char}</span>
      ))}
    </div>
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sagar Vaghela

79552168

Date: 2025-04-03 06:44:25
Score: 2
Natty:
Report link
for(int x:map.values())
{
       //to get the values using forEach loop
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Arul G

79552167

Date: 2025-04-03 06:43:24
Score: 1.5
Natty:
Report link

in windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

then close your powershell and open a new one
uv
will work after

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

79552166

Date: 2025-04-03 06:42:24
Score: 0.5
Natty:
Report link

We ended up changing the approach: instead of telling ESBuild to ignore a file on watch mode, we do not write the file if its contents are the same, like so:


const newContent = (...)

if (fs.existsSync(path)) {
  const currentContent = fs.readFileSync(path, 'utf8');
  if (currentContent === newContent) {
    process.exit(0);
  }
}

fs.writeFileSync(path, newContent);

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

79552162

Date: 2025-04-03 06:41:24
Score: 1
Natty:
Report link
GET /_search
{
  "query": { "match_all": {} },
  "script_fields": {
    "my_score": {
      "script": {
        "lang": "painless",
        "source": "return params['_score'] * 2"
      }
    }
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Brijesh Kishore Purohit

79552151

Date: 2025-04-03 06:34:21
Score: 3.5
Natty:
Report link

It is estimated that the slot should be increased, or the concurrency of flink itself should be lowered.

🔗 Apache Doris Slack:https://join.slack.com/t/apachedoriscommunity/shared_invite/zt-334x05e5d-aWmc4_xs1pZAzA6cu5qRwA

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

79552146

Date: 2025-04-03 06:31:20
Score: 0.5
Natty:
Report link

Why you're getting the Error

This happens when you are running Docker Desktop in Linux Containers mode.

Docker Desktop either runs Linux Containers or Windows Containers. It can't run both.

How to Fix it

You have to switch it to Windows Containers mode before trying to pull Windows based images. To do this

  1. Right click on the Docker Desktop tray icon
  2. Hit Switch to Windows Containers

Additional Steps you might need

You may be asked to add Windows features like Containers, HyperV, WSL as the requirements are different when you switch to Windows containers.

I also had to enable this feature via Powershell (admin)

Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Why you
  • Low reputation (0.5):
Posted by: madacoda

79552145

Date: 2025-04-03 06:31:20
Score: 1
Natty:
Report link

This helped me to catch unhandled exceptions.

.UseSentry(options =>
{
  options.SetBeforeSend((sentryEvent, hint) =>
  {
    if (sentryEvent?.SentryExceptions.FirstOrDefault()?.Mechanism.Handled == false)
    {
        return sentryEvent;
    }
    return null;
  });

MinimumEventLevel is of type Microsoft.Extensions.Logging LogLevel not SentryLevel, I tried to set it to LogLevel.Critical but is not sure if it did help.

options.MinimumEventLevel = LogLevel.Critical;

The reason it did not work to set SentryLevel.Fatal was that the SetBeforeSend did not get the modified exception.

SentrySdk.ConfigureScope(scope =>
{
    scope.Level = SentryLevel.Fatal;                
});
SentrySdk.CaptureException(ex);
options.SetBeforeSend((sentryEvent, hint) =>
       {
          if (sentryEvent?.Level == SentryLevel.Fatal)
          {
             return sentryEvent;
          }
          return null;
       });
Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Anders

79552142

Date: 2025-04-03 06:28:19
Score: 0.5
Natty:
Report link

This is what works for me if anyone else need the same:

DB_HOST=host.docker.internal
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stefan Pavlov

79552120

Date: 2025-04-03 06:08:14
Score: 2.5
Natty:
Report link

Consider trying TConsider trying Total Control. It enables PC-based control of up to 100 Android devices simultaneouslyotal Control. It enables PC-based control of up to 100 Android devices simultaneously

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